/* KOVEX Design Studio - Уникальный дизайн для немецкого рынка */

/* ========== ИМПОРТ УНИКАЛЬНЫХ ШРИФТОВ ========== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ========== CSS ПЕРЕМЕННЫЕ - УНИКАЛЬНАЯ ЦВЕТОВАЯ СХЕМА ========== */
:root {
  /* Основные цвета - необычная палитра */
  --color-primary: #7B2FFF;        /* Глубокий фиолетовый */
  --color-secondary: #00F5FF;      /* Электрический циан */
  --color-accent: #B794F6;         /* Мягкий лавандовый */
  --color-dark: #1a0f2e;           /* Темно-фиолетовый */
  --color-darker: #0d0817;         /* Почти черный с фиолетовым оттенком */
  --color-light: #f8f7ff;          /* Очень светлый фиолетовый */
  --color-white: #ffffff;
  
  /* Градиенты */
  --gradient-main: linear-gradient(135deg, #7B2FFF 0%, #00F5FF 100%);
  --gradient-reverse: linear-gradient(135deg, #00F5FF 0%, #7B2FFF 100%);
  --gradient-soft: linear-gradient(135deg, rgba(123, 47, 255, 0.1) 0%, rgba(0, 245, 255, 0.1) 100%);
  
  /* Шрифты */
  --font-main: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Размеры */
  --container-width: 1400px;
  --section-padding: 120px;
  --border-radius: 24px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== СБРОС И БАЗОВЫЕ СТИЛИ ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--color-darker);
  color: var(--color-light);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== АНИМИРОВАННЫЙ ГРАДИЕНТНЫЙ ФОН ========== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(123, 47, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 245, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(183, 148, 246, 0.1) 0%, transparent 60%);
  z-index: -1;
  animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

/* ========== ТИПОГРАФИКА ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 2rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

p {
  font-size: 1.125rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary);
}

/* ========== УТИЛИТЫ ========== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

/* ========== HEADER / НАВИГАЦИЯ ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: rgba(13, 8, 23, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(123, 47, 255, 0.2);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  padding: 1rem 0;
  background: rgba(13, 8, 23, 0.95);
  box-shadow: 0 10px 40px rgba(123, 47, 255, 0.2);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  transition: var(--transition);
}

.logo img {
  height: 50px;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 3rem;
  align-items: center;
}

.nav-link {
  color: var(--color-accent);
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--color-secondary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.75rem 2rem;
  background: var(--gradient-main);
  color: var(--color-white);
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(123, 47, 255, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(123, 47, 255, 0.5);
  color: var(--color-white);
}

/* Мобильное меню */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  width: 30px;
  height: 3px;
  background: var(--color-secondary);
  border-radius: 3px;
  transition: var(--transition);
}

/* ========== HERO СЕКЦИЯ ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  z-index: 2;
}

.hero-subtitle {
  font-family: var(--font-mono);
  color: var(--color-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-title {
  margin-bottom: 2rem;
}

.hero-description {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font-main);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-main);
  color: var(--color-white);
  box-shadow: 0 10px 30px rgba(123, 47, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(123, 47, 255, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

.btn-secondary:hover {
  background: var(--color-secondary);
  color: var(--color-dark);
  transform: translateY(-3px);
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-visual img {
  width: 100%;
  height: auto;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

/* ========== СЕКЦИЯ УСЛУГ ========== */
.services {
  background: rgba(26, 15, 46, 0.4);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-subtitle {
  font-family: var(--font-mono);
  color: var(--color-secondary);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: rgba(26, 15, 46, 0.6);
  padding: 3rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(123, 47, 255, 0.2);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-soft);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-secondary);
  box-shadow: 0 20px 50px rgba(0, 245, 255, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:target {
  animation: highlightCard 2s ease;
  border-color: var(--color-secondary);
  box-shadow: 0 20px 60px rgba(0, 245, 255, 0.4);
}

@keyframes highlightCard {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 245, 255, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 20px rgba(0, 245, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 20px 60px rgba(0, 245, 255, 0.4);
  }
}

.service-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.service-icon img {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.service-card p {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
}

/* ========== О НАС СЕКЦИЯ ========== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 30px 60px rgba(123, 47, 255, 0.3);
}

.about-text h2 {
  margin-bottom: 2rem;
}

.about-features {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-main);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}

.feature-content h4 {
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

/* ========== CTA СЕКЦИЯ ========== */
.cta {
  background: var(--gradient-main);
  border-radius: var(--border-radius);
  padding: 5rem 3rem;
  text-align: center;
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotateCta 20s linear infinite;
}

@keyframes rotateCta {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta h2 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn {
  background: var(--color-white);
  color: var(--color-primary);
}

.cta .btn:hover {
  background: var(--color-light);
}

/* ========== КОНТАКТНАЯ ФОРМА ========== */
.contact-section {
  background: rgba(26, 15, 46, 0.4);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 2rem;
}

.contact-details {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-main);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.contact-text h4 {
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.contact-text p {
  color: var(--color-accent);
  font-size: 1.1rem;
}

/* УНИКАЛЬНАЯ ФОРМА */
.contact-form {
  background: rgba(26, 15, 46, 0.6);
  padding: 3rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(123, 47, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-main);
  border-radius: var(--border-radius);
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.contact-form:hover::before {
  opacity: 0.5;
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.form-group label {
  display: block;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: rgba(13, 8, 23, 0.8);
  border: 2px solid rgba(123, 47, 255, 0.3);
  border-radius: 15px;
  color: var(--color-white);
  font-size: 1.05rem;
  font-family: var(--font-main);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(0, 245, 255, 0.1);
  background: rgba(13, 8, 23, 0.95);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-submit {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.2rem;
  background: var(--gradient-main);
  color: var(--color-white);
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(123, 47, 255, 0.5);
}

/* ========== FOOTER ========== */
.footer {
  background: rgba(13, 8, 23, 0.9);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(123, 47, 255, 0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  margin-bottom: 1rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  color: var(--color-accent);
  line-height: 1.8;
}

.footer-section h4 {
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--color-accent);
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-secondary);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(123, 47, 255, 0.1);
  color: var(--color-accent);
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1200px) {
  :root {
    --section-padding: 80px;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(13, 8, 23, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: var(--transition);
    border-top: 1px solid rgba(123, 47, 255, 0.2);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .hero-content,
  .about-content,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --section-padding: 60px;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ АНИМАЦИИ ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* ========== СТРАНИЦА БЛАГОДАРНОСТИ ========== */
.thanks-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thanks-content {
  max-width: 700px;
}

.thanks-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  animation: scaleIn 0.6s ease-out;
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* ========== LEGAL PAGES ========== */
.legal-page {
  padding-top: 120px;
  min-height: 100vh;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(26, 15, 46, 0.4);
  padding: 4rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(123, 47, 255, 0.2);
}

.legal-content h1 {
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

.legal-content h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
}

.legal-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.legal-content ul, .legal-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
}

.legal-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.legal-content a {
  color: var(--color-secondary);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--color-primary);
}

/* Прелоадер */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(123, 47, 255, 0.3);
  border-top-color: var(--color-secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
