:root {
  --ink: #3B4854;
  --paper: #FFFFFF;
  --accent: #0ACDA4;
  --mid: #7A8A99;
  --line: rgba(59,72,84,0.12);
  --block-r: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Golos Text', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── ТИПОГРАФИКА ─── */
.display { font-family: 'Unbounded', sans-serif; line-height: 1.05; letter-spacing: -0.03em; }
.label {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ─── АНИМАЦИИ ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── ШАПКА ─── */
header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 32px;
  width: auto;
}

/* Навигация — десктоп: внутри header; мобайл: вынесена отдельным элементом */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-mobile {
  display: none;
}
.nav-desktop a, .nav-mobile a {
  font-family: 'Golos Text', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--mid);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 50px;
  transition: color 0.2s, background 0.2s;
}
.nav-desktop a:hover, .nav-mobile a:hover {
  color: var(--ink);
  background: rgba(10,205,164,0.08);
}
.nav-desktop a.active, .nav-mobile a.active {
  color: var(--paper);
  background: var(--accent);
  font-weight: 600;
}

.nav-cta {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Unbounded', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: none; border-radius: 50px;
  padding: 12px 24px; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.nav-cta:hover { background: var(--accent); transform: scale(1.04); }

/* ─── HERO ─── */
.hero {
  min-height: 96vh;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0;
  padding: 80px 48px 64px;
  position: relative;
  overflow: hidden;
}
.hero-bg-circle {
  position: absolute;
  right: -120px; top: -80px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,205,164,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, black 0%, transparent 70%);
  pointer-events: none;
}

.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  gap: 32px; padding-right: 60px;
  animation: fadeUp 0.9s ease both;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
}
.dot-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 900;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  display: inline-block;
  position: relative;
}
.hero h1 em::after {
  content: '';
  position: absolute; left: 0; bottom: 2px;
  width: 100%; height: 4px;
  background: var(--accent);
  border-radius: 2px;
}
.hero-sub {
  font-size: 19px; color: var(--mid); max-width: 520px; line-height: 1.65;
}
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-family: 'Unbounded', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em;
  border: none; border-radius: 50px;
  padding: 18px 36px; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none; display: inline-block;
  animation: pulse 3s ease-in-out infinite;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(10,205,164,0.35); }

.btn-ghost {
  background: none;
  color: var(--ink);
  font-family: 'Unbounded', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em;
  border: 2px solid var(--ink); border-radius: 50px;
  padding: 16px 32px; cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* HERO CARD */
.hero-right {
  display: flex; align-items: center;
  animation: fadeUp 0.9s 0.2s ease both;
}
.hero-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  padding: 36px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(10,205,164,0.15);
}
.hero-card-label { color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.timeline {
  display: flex; flex-direction: column; gap: 0;
}
.tl-item {
  display: flex; gap: 16px; position: relative;
  padding-bottom: 20px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item:not(:last-child) .tl-dot::after {
  content: '';
  position: absolute; left: 11px; top: 24px;
  width: 2px; height: calc(100% - 8px);
  background: rgba(255,255,255,0.15);
}
.tl-dot {
  position: relative;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Unbounded', sans-serif; font-size: 10px; font-weight: 900;
  color: #fff; margin-top: 2px;
}
.tl-text strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.tl-text span { font-size: 13px; color: rgba(255,255,255,0.55); }

.hero-card-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: space-between;
}
.price-tag {
  font-family: 'Unbounded', sans-serif;
  font-size: 26px; font-weight: 900;
}
.price-tag small {
  display: block;
  font-size: 11px; font-weight: 400;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.12em;
}
.badge-fast {
  background: var(--accent);
  color: #fff;
  font-family: 'Unbounded', sans-serif;
  font-size: 10px; font-weight: 900;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 50px;
}

/* ─── БЕГУЩАЯ СТРОКА ─── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  background: var(--ink);
}
.marquee-track {
  display: flex; gap: 0;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}
.marquee-item {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--paper);
  letter-spacing: 0.08em;
  padding: 0 40px;
}
.marquee-item span { color: var(--accent); margin-right: 40px; }

/* ─── СЕКЦИИ ─── */
.section { padding: 100px 48px; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border-radius: var(--block-r);
  overflow: hidden;
  margin-top: 48px;
}
.pain-card {
  background: var(--paper);
  padding: 36px 32px;
}
.pain-no {
  font-family: 'Unbounded', sans-serif;
  font-size: 48px; font-weight: 900;
  color: rgba(59,72,84,0.07);
  line-height: 1;
  margin-bottom: 16px;
}
.pain-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.pain-card p { color: var(--mid); font-size: 15px; line-height: 1.6; }

/* ─── ПРОДУКТ / ТЁМНАЯ СЕКЦИЯ ─── */
.product-section {
  background: var(--ink);
  color: var(--paper);
  padding: 100px 48px;
}
.product-inner { max-width: 1200px; margin: 0 auto; }

.product-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}
.product-header .label { color: rgba(255,255,255,0.4); }
.product-header h2 { font-size: clamp(34px, 4vw, 56px); font-weight: 900; }
.product-header p { color: rgba(255,255,255,0.6); font-size: 17px; margin-top: 20px; }

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.product-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px 22px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  cursor: default;
}
.product-card:hover {
  background: rgba(10,205,164,0.12);
  border-color: rgba(10,205,164,0.4);
  transform: translateY(-6px);
}
.product-card-icon {
  font-size: 28px; margin-bottom: 16px;
}
.product-card h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.product-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
}

/* ─── КАК ЭТО РАБОТАЕТ ─── */
.how-section { padding: 100px 48px; }
.how-inner { max-width: 1200px; margin: 0 auto; }

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  border-radius: var(--block-r);
  overflow: hidden;
  margin-top: 56px;
}
.how-step {
  background: var(--paper);
  padding: 40px 28px;
  position: relative;
}
.step-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 20px;
}
.how-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.how-step p { font-size: 14px; color: var(--mid); line-height: 1.6; }
.how-step-day {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Unbounded', sans-serif;
  font-size: 10px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
  margin-top: 16px;
}

/* ─── ДЛЯ КОГО / ПРЕИМУЩЕСТВА ─── */
.for-section {
  padding: 100px 48px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F4F7F6 100%);
}
.for-inner { max-width: 1200px; margin: 0 auto; }
.for-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}
.for-card {
  border-radius: 24px;
  padding: 44px 40px;
  position: relative; overflow: hidden;
}
.for-card.yes {
  background: var(--ink); color: var(--paper);
}
.for-card.no {
  background: rgba(59,72,84,0.05);
  border: 2px dashed var(--line);
}
.for-card-tag {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px; font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: inline-block;
  padding: 6px 14px; border-radius: 20px;
}
.for-card.yes .for-card-tag { background: var(--accent); color: #fff; }
.for-card.no .for-card-tag { background: var(--line); color: var(--mid); }
.for-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.for-card.no h3 { color: var(--mid); }
.for-item {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 12px; font-size: 15px;
}
.for-item::before {
  content: attr(data-icon);
  flex-shrink: 0; font-size: 16px; margin-top: 1px;
}
.for-card.no .for-item { color: var(--mid); }

/* ─── ПАРТНЁРЫ / АКЦЕНТНАЯ СЕКЦИЯ ─── */
.partner-section {
  background: var(--accent);
  color: #fff;
  padding: 100px 48px;
}
.partner-inner { max-width: 1200px; margin: 0 auto; }
.partner-inner .label { color: rgba(255,255,255,0.6); }
.partner-inner h2 { font-size: clamp(34px, 4vw, 56px); font-weight: 900; color: #fff; margin: 16px 0 48px; }

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.partner-benefit {
  background: rgba(255,255,255,0.12);
  border-radius: 20px; padding: 32px 28px;
  backdrop-filter: blur(8px);
}
.partner-benefit-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 40px; font-weight: 900;
  color: rgba(255,255,255,0.2);
  line-height: 1; margin-bottom: 12px;
}
.partner-benefit h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: #fff; }
.partner-benefit p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; }

/* ─── FAQ ─── */
.faq-section { padding: 100px 48px; }
.faq-inner { max-width: 800px; margin: 0 auto; }
.faq-list { margin-top: 48px; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-family: 'Golos Text', sans-serif;
  font-size: 17px; font-weight: 600;
  color: var(--ink);
}
.faq-arrow {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  transition: transform 0.3s, background 0.3s;
}
.faq-item.open .faq-arrow { transform: rotate(45deg); background: var(--accent); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  color: var(--mid); line-height: 1.7; font-size: 15px;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 24px; }

/* ─── CTA ФИНАЛ ─── */
.final-section {
  padding: 120px 48px;
  text-align: center;
  position: relative; overflow: hidden;
}
.final-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%,
    rgba(10,205,164,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.final-inner { max-width: 700px; margin: 0 auto; position: relative; }
.final-inner h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 900; margin-bottom: 20px; }
.final-inner p { font-size: 18px; color: var(--mid); margin-bottom: 40px; line-height: 1.65; }

.cursor { animation: blink 1s step-end infinite; }

/* ─── ФУТЕР ─── */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 48px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--mid);
}
.footer-logo { display: inline-flex; align-items: center; }
.footer-logo img { height: 24px; width: auto; }

/* ─── МОБИЛЬНОЕ МЕНЮ ─── */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 200;
}
.burger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}
.burger span:nth-child(1) { top: 2px; }
.burger span:nth-child(2) { top: 11px; }
.burger span:nth-child(3) { top: 20px; }
.burger.open span { background: var(--ink); }
.burger.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* Блокировка скролла при открытом меню */
body.menu-open {
  overflow: hidden;
  height: 100vh;
}

/* Мобильное меню — полноэкранный оверлей ВНЕ header */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 150;
}
.nav-mobile.open {
  display: flex;
}
.nav-mobile a {
  font-size: 20px;
  padding: 14px 28px;
}
/* Кнопка закрытия внутри мобильного меню */
.nav-mobile-close {
  position: absolute;
  top: 18px; right: 16px;
  width: 36px; height: 36px;
  background: none;
  border: 2px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink);
  transition: background 0.2s, border-color 0.2s;
  z-index: 160;
}
.nav-mobile-close:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ─── АДАПТИВ ПЛАНШЕТ ─── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 60px 28px 48px; min-height: auto; gap: 48px; }
  .hero-left { padding-right: 0; }
  .hero-right { justify-content: center; }
  .hero-card { max-width: 480px; }
  .product-cards { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: 1fr 1fr; }
  .for-grid { grid-template-columns: 1fr; }
}

/* ─── АДАПТИВ МОБИЛЬНЫЙ ─── */
@media (max-width: 768px) {
  header { padding: 14px 16px; }
  .logo { font-size: 15px; }
  /* Скрываем десктопную навигацию и длинную CTA-кнопку */
  .nav-desktop { display: none; }
  .nav-cta { font-size: 9px; padding: 8px 12px; letter-spacing: 0.04em; max-width: 140px; text-align: center; line-height: 1.3; }
  .burger { display: block; }
  .header-right { display: flex; align-items: center; gap: 8px; }

  .section, .product-section, .how-section, .for-section,
  .partner-section, .faq-section, .final-section { padding: 56px 16px; }

  /* Inline-стилизованные секции */
  [style*="padding"][style*="48px"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .hero { padding: 36px 16px 32px; gap: 32px; }
  .hero h1 { font-size: clamp(32px, 8.5vw, 48px); }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn-primary { text-align: center; padding: 16px 20px; font-size: 12px; }
  .btn-ghost { text-align: center; padding: 14px 20px; font-size: 11px; }
  .hero-card { padding: 22px 18px; border-radius: 20px; }
  .price-tag { font-size: 20px; }
  .badge-fast { font-size: 9px; padding: 6px 12px; }

  .pain-grid { grid-template-columns: 1fr; }
  .pain-no { font-size: 36px; }
  .pain-card { padding: 24px 20px; }

  .product-header { grid-template-columns: 1fr; gap: 20px; }
  .product-cards { grid-template-columns: 1fr; gap: 10px; }
  .product-card { padding: 18px 14px; }
  .product-card h3 { font-size: 11px; }
  .product-card p { font-size: 12px; }

  .how-steps { grid-template-columns: 1fr; }
  .how-step { padding: 24px 20px; }

  .for-grid { grid-template-columns: 1fr; }
  .for-card { padding: 28px 20px; }

  .partner-grid { grid-template-columns: 1fr; }
  .partner-benefit { padding: 24px 20px; }

  .faq-q { font-size: 14px; }

  .final-section { padding: 72px 16px; }
  .final-inner p { font-size: 15px; }

  footer { flex-direction: column; gap: 10px; text-align: center; padding: 24px 16px; font-size: 12px; }

  .final-inner .btn-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .final-inner .btn-ghost { text-align: center; }

  /* AI бот блок */
  .ai-bot-block {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 28px 18px !important;
  }

  /* Пример сайта */
  .example-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  /* Тарифы и отдельные услуги — мобильные сетки */
  #pricing .section-inner > div[style*="grid-template-columns"],
  #pricing .product-inner > div[style*="grid-template-columns"],
  #services .section-inner > div[style*="grid-template-columns"],
  #services .product-inner > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Любые inline-grid секции внутри product-inner */
  .product-inner > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Кейсы — 2 колонки в 1 */
  #example div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Сервисные гриды на мобильном */
  .services-grid {
    grid-template-columns: 1fr !important;
  }
}
