/* ═══════════════════════════════════════════
   landing.css — qabinet.ru
   Стили лендинга
═══════════════════════════════════════════ */

/* ── Навигация ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
  background: #fff;
  box-shadow: 0 1px 0 var(--border);
}
.nav-logo { font-size: 18px; font-weight: 700; color: var(--dark); }
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color var(--transition); }
.nav-links a:hover { color: var(--dark); }
.nav-right { display: flex; gap: 10px; align-items: center; }

/* ── Бургер и мобильное меню ──
   Кнопку и панель собирает landing.js из тех же ссылок, что в десктопном меню
   (.nav-links); в разметке страниц их нет. Показываем только там, где
   .nav-links скрыты, — иначе на десктопе появился бы лишний бургер. */
.nav-burger { display: none; }
.nav-mobile { display: none; }

@media (max-width: 768px) {
  /* CTA и бургер прижимаем вправо, логотип остаётся слева */
  .nav-right { margin-left: auto; }

  .nav-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-left: 8px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    flex: none;
  }
  .nav-burger span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--dark);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
  }
  .nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.is-open span:nth-child(2) { opacity: 0; }
  .nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Панель падает прямо под sticky-навигацию: top:100% измеряет её высоту сам,
     не завязываясь на конкретный паддинг (он на разных брейкпоинтах разный). */
  .nav-mobile {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 16px 28px -18px rgba(7, 59, 76, .35);
    padding: 6px 20px 20px;
    max-height: 82vh;
    overflow-y: auto;
  }
  .nav-mobile[hidden] { display: none; }

  .nav-mobile-link,
  .nav-mobile-sub {
    display: block;
    padding: 14px 4px;
    font-size: 16px;
    font-weight: 500;
    color: var(--dark);
    border-bottom: 1px solid var(--border);
  }
  .nav-mobile-sub {
    padding-left: 14px;
    font-size: 15px;
    font-weight: 400;
    color: var(--muted);
  }
  .nav-mobile-label {
    padding: 16px 4px 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
  }
}

/* Блокируем прокрутку фона, пока меню открыто */
body.nav-locked { overflow: hidden; }

/* ── Hero: текст слева, мокап справа ──
   На узких экранах колонки схлопываются в одну и текст снова центрируется. */
.hero {
  padding: 72px 48px 0;
  text-align: left;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.32fr);
  gap: 48px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  perspective: 1400px;
}
.hero-copy { min-width: 0; padding-bottom: 76px; }
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .1;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--coral-lt);
  color: var(--coral);
  border: 1px solid #ffcece;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  font-weight: 500;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero h1 { position: relative; z-index: 2; margin: 0 0 20px; }
.hero h1 span { color: var(--primary); }
.hero-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 470px;
  margin: 0 0 32px;
  position: relative;
  z-index: 2;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
  position: relative;
  z-index: 2;
}
/* Только на главной: первый экран двухколоночный, кнопки прижаты влево.
   Класс .hero-cta общий со всеми посадочными — там он остаётся по центру. */
.hero .hero-cta { justify-content: flex-start; margin-bottom: 0; }
.hero-note { margin: 14px 0 0; font-size: 14px; color: #94a3b8; }

/* ── Превью экрана ── */
.screen-wrap { position: relative; z-index: 2; margin: 0 auto; max-width: 680px; }
.screen {
  background: #fff;
  border-radius: 20px 20px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  overflow: hidden;
  box-shadow: 0 -8px 48px rgba(91,91,214,.14);
  transition: transform .1s ease;
}
.screen-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: #f8f9fc;
  border-bottom: 1px solid var(--border);
}
.screen-dot { width: 10px; height: 10px; border-radius: 50%; }
.screen-dot:nth-child(1) { background: var(--coral); }
.screen-dot:nth-child(2) { background: var(--warning); }
.screen-dot:nth-child(3) { background: var(--success); }
.screen-url {
  flex: 1;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
  padding: 5px 14px;
  border-radius: 7px;
  border: 1px solid var(--border);
  text-align: center;
}
.screen-body { display: grid; grid-template-columns: 180px 1fr; min-height: 220px; }
.screen-side { padding: 14px; border-right: 1px solid var(--border); background: #f8f9fc; }
.screen-logo-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.screen-logo-ico { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--coral)); flex-shrink: 0; }
.screen-co { font-size: 13px; font-weight: 600; color: var(--dark); }
.screen-nav { font-size: 12px; color: var(--muted); padding: 6px 10px; border-radius: 8px; margin-bottom: 3px; font-weight: 500; }
.screen-nav.active { background: var(--primary-lt); color: var(--primary); font-weight: 600; }
.screen-main { padding: 14px; background: #fff; }
.screen-metrics { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.screen-metric { background: #f8f9fc; border-radius: 10px; padding: 10px; }
.sm-label { font-size: 10px; color: var(--muted); margin-bottom: 3px; font-weight: 500; }
.sm-value { font-size: 16px; font-weight: 700; color: var(--dark); }
.screen-deal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8f9fc;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
}

/* ── Секции ── */
.section { padding: 72px 48px; }
.section-white { background: #fff; }
.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--coral);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 12px;
}
.section-title { text-align: center; margin-bottom: 14px; }
.section-sub { text-align: center; margin-bottom: 44px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ── Фичи ── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.feature {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke-width: 1.5; }
.fi-purple { background: var(--primary-lt); } .fi-purple svg { stroke: var(--primary); }
.fi-green  { background: var(--success-lt); } .fi-green  svg { stroke: var(--success); }
.fi-coral  { background: var(--coral-lt);   } .fi-coral  svg { stroke: var(--coral); }
.fi-orange { background: var(--warning-lt); } .fi-orange svg { stroke: var(--warning); }
.fi-gray   { background: var(--border-lt);  } .fi-gray   svg { stroke: var(--muted); }
.fi-dark   { background: var(--dark);       } .fi-dark   svg { stroke: #fff; }
.feature h4 { margin-bottom: 6px; }
.feature p  { font-size: 13px; }

/* ── Шаги ── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.step { padding: 28px 20px; border-right: 1px solid var(--border-lt); text-align: center; }
.step:last-child { border-right: none; }
.step-num {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--primary-lt);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.step-num.coral { background: var(--coral-lt); color: var(--coral); }
.step h4 { margin-bottom: 6px; }
.step p  { font-size: 13px; }

/* ── Тарифы ── */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.plan {
  background: #fff;
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}
.plan:hover { transform: translateY(-3px); }
.plan-hot { background: linear-gradient(145deg, var(--primary), #7b6fe8); box-shadow: 0 8px 28px rgba(91,91,214,.32); }
.plan-hot .plan-name,
.plan-hot .plan-price,
.plan-hot .plan-feature { color: #fff; }
.plan-hot .plan-price-sub { color: rgba(255,255,255,.7); }
.plan-hot .plan-feature svg { stroke: rgba(255,255,255,.8); }
.plan-badge { font-size: 11px; padding: 4px 10px; border-radius: 20px; background: var(--coral-lt); color: var(--coral); font-weight: 600; display: inline-block; margin-bottom: 12px; align-self: flex-start; }
.plan-name  { font-size: 15px; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.plan-price { font-size: 30px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.plan-price-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.plan-feature { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #4a4d5e; margin-bottom: 8px; }
.plan-feature svg { width: 14px; height: 14px; stroke: var(--success); fill: none; stroke-width: 2.5; flex-shrink: 0; }
.plan-spacer { flex: 1; }
.plan-btn { display: block; width: 100%; margin-top: 18px; padding: 12px; border-radius: 12px; font-size: 14px; font-weight: 500; text-align: center; transition: opacity var(--transition); }
.plan-btn:hover { opacity: .85; }
.plan-btn-dark  { background: var(--dark);        color: #fff; }
.plan-btn-white { background: #fff;               color: var(--primary); font-weight: 600; }
.plan-btn-light { background: var(--primary-lt);  color: var(--primary); }
.plan-meta { display: flex; flex-wrap: wrap; gap: 14px; margin: -8px 0 16px; font-size: 12.5px; color: var(--muted); }
.plan-meta b { color: var(--dark); font-weight: 700; }
.plan-hot .plan-meta { color: rgba(255,255,255,.75); }
.plan-hot .plan-meta b { color: #fff; }
.plan-addons { text-align: center; margin-top: 26px; font-size: 13.5px; color: var(--muted); max-width: 640px; margin-left: auto; margin-right: auto; }
.plan-addons b { color: var(--dark); font-weight: 600; }
.sol-tag { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--primary); background: var(--primary-lt); padding: 4px 11px; border-radius: 20px; }

/* ── CTA ── */
.cta-section {
  padding: 80px 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--coral) 100%);
  text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 12px; }
.cta-section p  { color: rgba(255,255,255,.8); margin-bottom: 32px; font-size: 15px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-cta-outline { background: rgba(255,255,255,.15); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }

/* ── Футер ── */
.footer {
  padding: 24px 48px;
  background: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo { font-size: 16px; font-weight: 700; color: #fff; }
.footer-logo span { color: var(--primary); }
.footer-links { display: flex; gap: 20px; font-size: 13px; }
.footer-links a { color: var(--muted); transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 13px; color: var(--muted); }

/* ── Fade-up анимация ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.fade-up.in { opacity: 1; transform: none; }

/* ── Адаптив ── */
@media (max-width: 768px) {
  .nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .hero { padding: 56px 20px 0; }
  .section { padding: 48px 20px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer { flex-direction: column; gap: 16px; text-align: center; padding: 24px; }
  .cta-section { padding: 56px 20px; }
}

/* ═══════════════════════════════════════════
   АДАПТИВ landing.css (дополнение к 768px)
═══════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Nav — уже скрыты nav-links */
  .nav-right .btn-ghost { display: none; }
  .nav-right .btn-coral { padding: 8px 14px; font-size: 13px; }

  /* Hero */
  .hero { padding: 44px 16px 0; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 15px; margin-bottom: 28px; }
  .hero-cta { gap: 8px; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* Screen preview */
  .screen-body { grid-template-columns: 130px 1fr; }
  .screen-side { padding: 10px; }
  .screen-main { padding: 10px; }
  .sm-value { font-size: 14px; }

  /* Sections */
  .section { padding: 40px 16px; }
  .section-title { font-size: 22px; }

  /* Features */
  .features { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .feature { padding: 18px; }

  /* Steps — уже 2 колонки */
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { padding: 20px 14px; }

  /* Plans */
  .plans { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }

  /* CTA */
  .cta-section { padding: 48px 16px; }
  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn { width: 100%; max-width: 320px; justify-content: center; }
}

@media (max-width: 480px) {
  .nav { padding: 12px 16px; }
  .hero h1 { font-size: 26px; }
  .features { grid-template-columns: 1fr; }
  .screen-body { grid-template-columns: 110px 1fr; }
  .screen-metrics { grid-template-columns: 1fr 1fr; }
  .screen-metric:last-child { display: none; }
  .steps { grid-template-columns: 1fr; }
}

/* ── Попап «Уведомить о старте» (waitlist) ── */
.wl-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.wl-modal[hidden] { display: none; }
.wl-overlay { position: absolute; inset: 0; background: rgba(26,29,46,.55); backdrop-filter: blur(3px); animation: wlFade .18s ease; }
.wl-card {
  position: relative; z-index: 1; width: 100%; max-width: 420px; background: #fff;
  border-radius: 18px; padding: 36px 32px 30px; box-shadow: 0 24px 64px -16px rgba(26,29,46,.35);
  animation: wlPop .2s cubic-bezier(.16,1,.3,1);
}
@keyframes wlFade { from { opacity: 0; } }
@keyframes wlPop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.wl-x {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: none;
  background: var(--bg); color: var(--muted); border-radius: 9px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .14s;
}
.wl-x:hover { background: #e9ebf4; color: var(--dark); }
.wl-title { font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.wl-sub { font-size: 15px; color: var(--muted); line-height: 1.5; margin-bottom: 22px; }
.wl-input {
  width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: 11px;
  font-family: inherit; font-size: 15px; background: var(--bg); margin-bottom: 11px;
  transition: border-color .15s, background .15s; box-sizing: border-box;
}
.wl-input:focus { outline: none; border-color: var(--primary); background: #fff; }
.wl-submit { width: 100%; justify-content: center; margin-top: 4px; cursor: pointer; }
.wl-submit:disabled { opacity: .6; cursor: not-allowed; }
.wl-err { color: #d92d4b; font-size: 13.5px; margin-top: 10px; min-height: 18px; }
.wl-done { text-align: center; padding: 8px 0; }
.wl-done-ico { color: var(--primary); display: flex; justify-content: center; margin-bottom: 14px; }

/* Меню «Для кого» (выпадающее) + страницы вертикалей */
.nav-dd { position: relative; display: flex; align-items: center; }
.nav-dd-trigger { cursor: pointer; }
.nav-dd-menu {
  position: absolute; top: 100%; left: 0; margin-top: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .14); padding: 8px; min-width: 252px;
  display: none; z-index: 60;
}
/* Прозрачный «мост» через зазор (margin-top) — иначе при движении курсора к меню теряется hover и оно прячется. */
.nav-dd-menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-dd:hover .nav-dd-menu { display: block; }
.nav-dd-menu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: #334155; white-space: nowrap; }
.nav-dd-menu a:hover { background: #f1f5f9; color: var(--dark); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.page-hero { padding: 120px 24px 56px; text-align: center; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.12; letter-spacing: -.02em; margin: 14px 0 16px; color: var(--dark); }
.page-hero h1 span { color: var(--primary); }
.page-lead { font-size: 18px; color: var(--muted); line-height: 1.6; max-width: 720px; margin: 0 auto 26px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; background: #fff; }
.faq-item summary { font-weight: 600; font-size: 16px; color: var(--dark); cursor: pointer; }
.faq-item p { margin: 10px 0 0; color: var(--muted); line-height: 1.65; }
@media (max-width: 720px) { .nav-dd-menu { position: static; box-shadow: none; border: none; padding: 0; min-width: 0; } }

/* Скриншот-плейсхолдер + SEO-текст на отраслевых страницах */
.shot-frame { max-width: 940px; margin: 8px auto 0; }
.shot-frame img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 18px 50px rgba(15, 23, 42, .10); }
.shot-ph { aspect-ratio: 16 / 9; border: 2px dashed var(--border); border-radius: 16px; background: linear-gradient(135deg, #f5f6fb, #ebedf7); display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.shot-ph__label { font-size: 16px; font-weight: 600; color: var(--muted); line-height: 1.5; }
.shot-ph__label span { display: block; font-weight: 400; font-size: 13px; margin-top: 8px; opacity: .8; }
.seo-text { max-width: 820px; margin: 0 auto; text-align: left; }
.seo-text p { font-size: 15.5px; line-height: 1.75; color: #4b5563; margin: 0 0 14px; }
.seo-text p:last-child { margin-bottom: 0; }
.seo-text b { color: var(--dark); font-weight: 600; }

/* Плашка «Скоро» — функциональность заявлена, но ещё в разработке.
   Янтарный, а не красный: это не ошибка, а планы. */
.soon {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  background: #fff4e5;
  color: #b45309;
  border: 1px solid #fde3c0;
  white-space: nowrap;
  vertical-align: middle;
  margin-left: 8px;
  letter-spacing: .01em;
}
/* Баннер для страницы целиком: конфиг ещё не собран */
.soon-banner {
  display: inline-block;
  margin: 14px auto 0;
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 10px;
  background: #fff4e5;
  color: #b45309;
  border: 1px solid #fde3c0;
}
.feature h4 .soon { margin-left: 6px; }
.section-sub .soon, .plan-addons .soon { margin-left: 4px; }

/* Мобильный экран внахлёст на десктопный скриншот кабинета */
.shot-frame--mobile { position: relative; }
.shot-frame--mobile .shot-mobile {
  position: absolute;
  right: -10px;
  bottom: -28px;
  width: 19%;
  max-width: 185px;
  border: 6px solid #fff;
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .20);
}
@media (max-width: 760px) {
  .shot-frame--mobile .shot-mobile {
    position: static;
    width: 58%;
    max-width: 240px;
    margin: 16px auto 0;
    display: block;
    border-width: 5px;
  }
}

/* ── Мокап на устройствах в hero ──
   Одна картинка вместо прежнего коллажа из трёх кусков с CSS-рамками.
   Собирается вручную в deviceframes.com, см. комментарий в index.html. */
.hero-shot {
  position: relative;
  z-index: 2;
  min-width: 0;
  align-self: end;   /* тень мокапа упирается в границу секции */
  will-change: transform;
}
/* Наклон за курсором живёт на внутреннем слое, чтобы не конфликтовать
   со сдвигом от скролла на самом .hero-shot. */
.hero-shot picture {
  display: block;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Появление первого экрана: текст и мокап всплывают со сдвигом по времени */
.hero-copy > *, .hero-shot { animation: heroIn .7s cubic-bezier(.22,.68,.36,1) backwards; }
.hero-copy > *:nth-child(1) { animation-delay: .02s; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .14s; }
.hero-copy > *:nth-child(4) { animation-delay: .20s; }
.hero-copy > *:nth-child(5) { animation-delay: .26s; }
.hero-shot { animation-delay: .12s; animation-duration: .9s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* Уважаем системную настройку «меньше движения» */
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-shot { animation: none; }
  .hero-shot, .hero-shot picture, .hero-blob { transform: none !important; }
}
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
}
/* Схлопывание hero в одну колонку — раньше, чем ломается остальная сетка:
   при узкой правой колонке мокап становится нечитаемым. */
@media (max-width: 980px) {
  .hero { padding: 60px 32px 0; text-align: center; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy { padding-bottom: 0; }
  .hero-sub { max-width: 520px; margin-left: auto; margin-right: auto; }
  .hero .hero-cta { justify-content: center; }
  .hero-shot { max-width: 720px; margin: 0 auto; }
}

/* ── «Подходит для»: отрасли и сценарии, где конфигурация применима ──
   Пилюли, а не карточки: выше на странице уже есть грид .features,
   второй такой же читался бы как повтор. */
.fits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}
.fit {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.35;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.fit:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.fit svg { width: 14px; height: 14px; flex-shrink: 0; stroke: var(--success); fill: none; stroke-width: 2.8; }
.fits-note {
  text-align: center;
  max-width: 720px;
  margin: 28px auto 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}
.fits-note b { color: var(--dark); font-weight: 600; }

/* ── «Разработка или конструктор»: два пути запуска ──
   Конверсионный блок для тех, кто пришёл по запросу «разработка личного
   кабинета» — показываем альтернативу привычной парадигме. */
.vs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
  align-items: stretch;
}
.vs-col {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  min-width: 0;
}
.vs-col--us {
  border-color: var(--primary);
  box-shadow: 0 12px 36px rgba(91, 91, 214, .16);
}
.vs-tag {
  position: absolute;
  top: -12px;
  left: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 5px 11px;
  border-radius: 20px;
  background: var(--primary);
  color: #fff;
}
.vs-head { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.vs-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; line-height: 1.55; }
.vs-row {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--border-lt);
}
.vs-row:first-of-type { border-top: 0; padding-top: 0; }
.vs-k {
  flex: 0 0 92px;
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 2px;
}
/* min-height в две строки: строки «Срок», «Бюджет» и т.д. должны стоять
   на одной высоте в обеих колонках, иначе сравнивать глазами неудобно. */
.vs-v { flex: 1 1 auto; min-width: 0; min-height: 44px; font-size: 14px; line-height: 1.55; color: var(--dark); font-weight: 500; }
.vs-col--old .vs-v { color: #6b7280; font-weight: 400; }
.vs-note {
  text-align: center;
  max-width: 760px;
  margin: 30px auto 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}
.vs-note b { color: var(--dark); font-weight: 600; }
@media (max-width: 620px) {
  .vs-col { padding: 22px 18px; }
  .vs-row { flex-direction: column; gap: 3px; padding: 11px 0; }
  .vs-k { flex: none; }
  .vs-v { min-height: 0; }
  .fit { font-size: 13.5px; padding: 10px 15px; }
}

/* ── Галерея кабинетов на главной ──
   Вкладки по конфигурациям + один большой экран. Скрытые панели держим на
   hidden: изображения в них ленивые и не грузятся, пока вкладку не откроют. */
.gal { max-width: 980px; margin: 0 auto; }
.gal-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
}
.gal-tab {
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: #55607a;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.gal-tab:hover { color: var(--dark); border-color: #cfd4e6; }
.gal-tab.is-on {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(91, 91, 214, .28);
}
.gal-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.gal-panel[hidden] { display: none; }
.gal-shot { position: relative; }
.gal-shot > picture > img,
.gal-shot > img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .10);
}
/* display:block обязателен: .gal-mob — это <picture>, а он инлайновый,
   и ширина на нём молча не сработает (на десктопе спасает position:absolute). */
.gal-mob { display: block; position: absolute; right: -10px; bottom: -26px; width: 19%; max-width: 178px; }
.gal-mob img {
  display: block;
  width: 100%;
  height: auto;
  border: 6px solid #fff;
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .20);
}
.gal-cap {
  max-width: 760px;
  margin: 46px auto 0;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}
.gal-cap b { color: var(--dark); font-weight: 600; }
.gal-cap a { color: var(--primary); font-weight: 500; white-space: nowrap; }
.gal-cap a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .gal-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .gal-tabs::-webkit-scrollbar { height: 0; }
  .gal-mob { position: static; width: 58%; max-width: 230px; margin: 16px auto 0; }
  .gal-mob img { border-width: 5px; }
  .gal-cap { margin-top: 20px; }
}

/* ── «Знакомая ситуация»: боли и чем закрываются ──
   Пара обязательна: без строки «Закрывает» блок только расстраивает читателя,
   а не ведёт дальше по странице. */
.pains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}
.pain {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 22px 0;
  min-width: 0;
  overflow: hidden;
}
.pain-h {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
}
/* Коралловая засечка — маркер «это про боль», без иконок и восклицаний */
.pain-h::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 4px; height: 16px;
  border-radius: 2px;
  background: var(--coral);
}
.pain-p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 20px;
  flex: 1 1 auto;
}
.pain-fix {
  margin: 0 -22px;
  padding: 16px 22px;
  /* Полосы «Закрывает» должны начинаться на одной высоте во всех карточках,
     иначе ряд выглядит рваным. 121px — замеренный максимум по всем восьми
     страницам (три строки текста); двухстрочные дотягиваются до него. */
  min-height: 121px;
  border-top: 1.5px solid var(--border-lt);
  background: var(--success-lt);
  font-size: 14px;
  line-height: 1.55;
  color: var(--dark);
}
.pain-fix span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--success);
  margin-bottom: 5px;
}
@media (max-width: 620px) {
  .pain { padding: 20px 18px 0; }
  /* В одну колонку карточки идут стопкой — выравнивать нечего, лишний воздух убираем */
  .pain-fix { margin: 0 -18px; padding: 14px 18px; min-height: 0; }
}
