/* ============================================
   СтройСайт — Сайты, приложения и IT-решения
   Цветовая схема: светлая + голубой акцент
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --color-bg: #f8fafc;
  --color-bg-alt: #f1f5f9;
  --color-bg-card: #ffffff;
  --color-bg-card-hover: #f8fafc;
  --color-surface: #e2e8f0;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-text-dim: #94a3b8;
  --color-accent: #38bdf8;
  --color-accent-hover: #0ea5e9;
  --color-accent-subtle: rgba(56, 189, 248, 0.1);
  --color-accent2: #818cf8;
  --color-accent2-subtle: rgba(129, 140, 248, 0.1);
  --color-accent3: #2dd4bf;
  --color-border: #e2e8f0;
  --color-border-glow: rgba(56, 189, 248, 0.2);
  --color-success: #22c55e;
  --color-white: #ffffff;
  --gradient-main: linear-gradient(135deg, #38bdf8, #818cf8, #2dd4bf);
  --gradient-card: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(129, 140, 248, 0.05));

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.08);
  --transition: 0.3s ease;
  --container: 1200px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Секционные заголовки ---------- */
.section-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-main);
  background-size: 200% 200%;
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
  animation: btn-gradient 4s ease infinite;
}

.btn--primary:hover {
  box-shadow: 0 6px 28px rgba(56, 189, 248, 0.4), 0 0 40px rgba(129, 140, 248, 0.15);
  transform: translateY(-2px);
}

@keyframes btn-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn--full {
  width: 100%;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-text);
}

.header__logo span {
  color: var(--color-accent);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.header__link:hover {
  color: var(--color-text);
}

.header__link--cta {
  background: var(--gradient-main);
  background-size: 200% 200%;
  animation: btn-gradient 4s ease infinite;
  color: var(--color-white) !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
}

.header__link--cta:hover {
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
}

/* Burger */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

.header__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== HERO ========== */
.hero {
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

/* Анимированный фон hero */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Сетка на фоне */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
  animation: grid-pulse 8s ease-in-out infinite;
}

@keyframes grid-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Светящиеся орбы */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orb-float 12s ease-in-out infinite;
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.3), transparent 70%);
  top: -10%;
  left: -5%;
  animation-duration: 14s;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.25), transparent 70%);
  top: 40%;
  right: -5%;
  animation-duration: 18s;
  animation-delay: -4s;
}

.hero__orb--3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.2), transparent 70%);
  bottom: -10%;
  left: 30%;
  animation-duration: 16s;
  animation-delay: -8s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 30px) scale(1.02); }
}

/* Частицы */
.hero__particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0;
  animation: particle-rise linear infinite;
}

@keyframes particle-rise {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  10% { opacity: 0.6; }
  90% { opacity: 0.1; }
  100% { opacity: 0; transform: translateY(-400px) scale(1); }
}

/* Плавающие блоки кода */
.hero__code {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 16px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--color-text-muted);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.5;
  z-index: 1;
}

.code-purple { color: #7c3aed; }
.code-blue { color: #2563eb; }
.code-green { color: #059669; }

.hero__code--1 {
  top: 18%;
  right: 8%;
  animation: code-float-1 10s ease-in-out infinite;
}

.hero__code--2 {
  bottom: 25%;
  left: 5%;
  animation: code-float-2 12s ease-in-out infinite;
  animation-delay: -3s;
}

.hero__code--3 {
  top: 60%;
  right: 15%;
  animation: code-float-3 14s ease-in-out infinite;
  animation-delay: -6s;
}

@keyframes code-float-1 {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); opacity: 0.5; }
  50% { transform: translate(-15px, 20px) rotate(1deg); opacity: 0.7; }
}

@keyframes code-float-2 {
  0%, 100% { transform: translate(0, 0) rotate(1deg); opacity: 0.4; }
  50% { transform: translate(20px, -15px) rotate(-1deg); opacity: 0.6; }
}

@keyframes code-float-3 {
  0%, 100% { transform: translate(0, 0) rotate(-1deg); opacity: 0.35; }
  50% { transform: translate(-10px, 15px) rotate(2deg); opacity: 0.55; }
}

/* Свечение за курсором */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.cursor-glow.active {
  opacity: 1;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-block;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__title span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__proof {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.hero__proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__proof-item span {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* ========== MOCKUP: Десктоп (браузер) ========== */
.mockup {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.mockup__browser {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--color-border);
}

.mockup__dots {
  display: flex;
  gap: 6px;
}

.mockup__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup__dots span:nth-child(1) { background: #ff5f57; }
.mockup__dots span:nth-child(2) { background: #febc2e; }
.mockup__dots span:nth-child(3) { background: #28c840; }

.mockup__url {
  flex: 1;
  padding: 6px 12px;
  background: var(--color-surface);
  border-radius: 6px;
  font-size: 12px;
  color: var(--color-text-dim);
  text-align: center;
}

.mockup__screen {
  background: var(--color-bg);
  padding: 20px;
}

.mockup__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.mockup__logo-bar {
  width: 60px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 4px;
}

.mockup__nav-links {
  display: flex;
  gap: 10px;
}

.mockup__nav-links span {
  width: 32px;
  height: 6px;
  background: var(--color-surface);
  border-radius: 3px;
}

.mockup__hero-area {
  margin-bottom: 24px;
  padding: 20px 0;
}

.mockup__text-lg {
  width: 85%;
  height: 14px;
  background: var(--color-text);
  border-radius: 4px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.mockup__text-md {
  width: 65%;
  height: 10px;
  background: var(--color-text-muted);
  border-radius: 4px;
  margin-bottom: 8px;
  opacity: 0.5;
}

.mockup__text-sm {
  width: 45%;
  height: 8px;
  background: var(--color-text-muted);
  border-radius: 4px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.mockup__cta-btn {
  width: 100px;
  height: 28px;
  background: var(--color-accent);
  border-radius: 6px;
}

.mockup__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mockup__card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 14px;
}

.mockup__card-icon {
  width: 24px;
  height: 24px;
  background: var(--color-accent-subtle);
  border: 2px solid rgba(56, 189, 248, 0.3);
  border-radius: 6px;
  margin-bottom: 10px;
}

.mockup__card-line {
  width: 100%;
  height: 6px;
  background: var(--color-surface);
  border-radius: 3px;
  margin-bottom: 6px;
}

.mockup__card-line.short {
  width: 60%;
}

/* ========== MOCKUP: Телефон ========== */
.mockup--phone {
  max-width: 280px;
  margin: 0 auto;
  border-radius: 32px;
  background: #1e293b;
  padding: 8px;
  border: 2px solid #334155;
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 2px #475569;
}

.mockup__phone-notch {
  width: 80px;
  height: 6px;
  background: #334155;
  border-radius: 10px;
  margin: 4px auto 8px;
}

.mockup__phone-screen {
  background: var(--color-bg);
  border-radius: 24px;
  padding: 16px;
  min-height: 380px;
}

.mockup__phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mockup__burger-icon {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mockup__burger-icon span {
  width: 16px;
  height: 2px;
  background: var(--color-text-muted);
  border-radius: 2px;
}

.mockup__phone-hero {
  margin-bottom: 20px;
}

.mockup__phone-hero .mockup__text-lg {
  width: 90%;
  height: 12px;
  margin-bottom: 8px;
}

.mockup__phone-hero .mockup__text-sm {
  width: 70%;
  margin-bottom: 14px;
}

.mockup__phone-hero .mockup__cta-btn {
  width: 100%;
  height: 26px;
}

.mockup__phone-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 20px;
}

.mockup__stat-box {
  height: 36px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.mockup__phone-form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 14px;
}

.mockup__input-line {
  width: 100%;
  height: 24px;
  background: var(--color-surface);
  border-radius: 6px;
  margin-bottom: 8px;
}

.mockup__cta-btn.wide {
  width: 100%;
}

.mockup__phone-bar {
  width: 80px;
  height: 4px;
  background: #475569;
  border-radius: 4px;
  margin: 8px auto 4px;
}

/* ========== PROBLEMS ========== */
.problems {
  padding: 100px 0;
  background: var(--color-bg);
}

.problems__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.problems__card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all 0.4s ease;
  position: relative;
}

.problems__card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--gradient-main);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.problems__card:hover {
  border-color: transparent;
  background: var(--color-bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.1);
}

.problems__card:hover::before {
  opacity: 1;
}

.problems__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.problems__card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.problems__card p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ========== SOLUTION ========== */
.solution {
  padding: 100px 0;
}

.solution__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.solution__text {
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.solution__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.solution__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
}

.solution__list li svg {
  color: var(--color-success);
  flex-shrink: 0;
}

/* ========== SERVICES (Что входит) ========== */
.services {
  padding: 100px 0;
  background: var(--color-bg-alt);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.services__card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.services__card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--gradient-main);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.services__card:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(129, 140, 248, 0.1);
}

.services__card:hover::before {
  opacity: 1;
}

.services__number {
  font-size: 48px;
  font-weight: 800;
  color: rgba(56, 189, 248, 0.2);
  line-height: 1;
  margin-bottom: 16px;
}

.services__card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.services__card p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ========== ADVANTAGES ========== */
.advantages {
  padding: 100px 0;
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantages__card {
  text-align: center;
  padding: 40px 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.4s ease;
  position: relative;
}

.advantages__card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--gradient-main);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.advantages__card:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(45, 212, 191, 0.1);
}

.advantages__card:hover::before {
  opacity: 1;
}

.advantages__icon-wrap {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  border-radius: var(--radius-md);
  margin: 0 auto 20px;
}

.advantages__card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.advantages__card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ========== PROCESS (Как мы работаем) ========== */
.process {
  padding: 100px 0;
  background: var(--color-bg-alt);
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process__step {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}

.process__number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-main);
  background-size: 200% 200%;
  animation: btn-gradient 4s ease infinite;
  color: var(--color-white);
  font-size: 22px;
  font-weight: 800;
  border-radius: 50%;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
}

.process__line {
  position: absolute;
  top: 56px;
  left: calc(50% + 36px);
  width: calc(100% - 72px);
  height: 2px;
  background: var(--color-border);
}

.process__step:last-child .process__line {
  display: none;
}

.process__step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.process__step p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ========== FAQ ========== */
.faq {
  padding: 100px 0;
}

.faq__list {
  max-width: 760px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}

.faq__question:hover {
  color: var(--color-accent);
}

.faq__question svg {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--color-text-muted);
}

.faq__item.active .faq__question svg {
  transform: rotate(180deg);
  color: var(--color-accent);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq__item.active .faq__answer {
  max-height: 200px;
}

.faq__answer p {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ========== PORTFOLIO / MARQUEE (Наши работы) ========== */
.portfolio {
  padding: 100px 0;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
  padding: 20px 0;
  cursor: grab;
}

.marquee.dragging {
  cursor: grabbing;
}

.marquee__track {
  display: flex;
  gap: 48px;
  width: max-content;
  will-change: transform;
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 32px;
  white-space: nowrap;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
  text-decoration: none;
  color: inherit;
  opacity: 0.45;
}

.marquee__item:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Тултип с описанием (фиксированный, через JS) */
.marquee__tooltip {
  display: none;
}

.marquee-tooltip-float {
  position: fixed;
  z-index: 9999;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.marquee-tooltip-float.visible {
  opacity: 1;
}

.marquee__logo {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.marquee__logo img {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
}

.marquee__logo--svg svg {
  width: 60px;
  height: 60px;
}

.marquee__name {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text);
}

/* ========== CTA SECTION ========== */
.cta-section {
  padding: 80px 0;
  background: var(--color-bg-alt);
}

.cta-section__inner {
  text-align: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(129, 140, 248, 0.08), rgba(45, 212, 191, 0.05));
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
}

.cta-section__inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(56, 189, 248, 0.05), transparent, rgba(129, 140, 248, 0.05), transparent);
  animation: cta-rotate 10s linear infinite;
}

@keyframes cta-rotate {
  100% { transform: rotate(360deg); }
}

.cta-section__inner h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-section__inner p {
  font-size: 17px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

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

/* ========== CONTACT ========== */
.contact {
  padding: 100px 0;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact__info p {
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact__benefits {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact__benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
}

.contact__benefit svg {
  color: var(--color-success);
  flex-shrink: 0;
}

/* Форма */
.contact__form-wrap {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.contact__form h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact__form > p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.contact__field {
  margin-bottom: 16px;
}

.contact__field input {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition);
}

.contact__field input::placeholder {
  color: var(--color-text-dim);
}

.contact__field input:focus {
  border-color: var(--color-accent);
}

.contact__form .btn {
  margin-top: 8px;
}

.contact__disclaimer {
  font-size: 12px;
  color: var(--color-text-dim);
  margin-top: 16px;
  text-align: center;
}

.contact__disclaimer a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ========== FOOTER ========== */
.footer {
  padding: 60px 0 0;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer__logo {
  font-size: 22px;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 12px;
}

.footer__logo span {
  color: var(--color-accent);
}

.footer__brand p {
  font-size: 14px;
  color: var(--color-text-muted);
  max-width: 300px;
  line-height: 1.6;
}

.footer__links h4,
.footer__contacts h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-dim);
  margin-bottom: 16px;
}

.footer__links a,
.footer__contacts a,
.footer__contacts p {
  display: block;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer__links a:hover,
.footer__contacts a:hover {
  color: var(--color-accent);
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  text-align: center;
}

.footer__bottom p {
  font-size: 13px;
  color: var(--color-text-dim);
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: white;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.modal__icon {
  color: var(--color-success);
  margin-bottom: 16px;
}

.modal h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal p {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* ========== SCROLL ANIMATIONS ========== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fade-left"] {
  transform: translateX(30px);
}

[data-animate].animated {
  opacity: 1;
  transform: translate(0, 0);
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__proof {
    justify-content: center;
  }

  .hero__image {
    display: none;
  }

  .solution__inner {
    grid-template-columns: 1fr;
  }

  .solution__image {
    order: -1;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process__line {
    display: none;
  }

  .contact__inner {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .header__nav.active {
    opacity: 1;
    visibility: visible;
  }

  .header__burger {
    display: flex;
  }

  .header__link {
    font-size: 18px;
  }

  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .hero__code {
    display: none;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__proof {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .problems__grid,
  .services__grid,
  .advantages__grid,
  .process__grid {
    grid-template-columns: 1fr;
  }

  .marquee__track {
    animation-duration: 20s;
  }

  .cta-section__inner {
    padding: 40px 24px;
  }

  .contact__form-wrap {
    padding: 28px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand p {
    max-width: 100%;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .btn--lg {
    padding: 14px 24px;
    font-size: 15px;
  }
}
