/* MOSYA ERP — лендинг /promo. Mobile-first, без внешних зависимостей, системные шрифты.
   Визуальная система — по ДНК apple.com (docs/marketing/apple.com.md), снято 12.08.2026:
   - глубина без декора: секции разделяются чередованием фонов #FFF / #F5F5F7 / #000,
     рамок и теней в контенте нет (карточка = белая плашка на сером, серая на белом);
   - синий #0071E3 — только на кнопках и ссылках, никаких синих фонов/заголовков;
   - иерархия размером, не жирностью: заголовки weight 600, жирнее не используем;
   - кнопки — пилюли (radius 980px), вес 400: опознаются силуэтом, а не цветом. */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #1d1d1f;               /* синеватый чёрный заголовков */
  --body: rgba(0, 0, 0, 0.8);   /* основной текст */
  --muted: rgba(0, 0, 0, 0.56); /* подписи и второстепенное */
  --accent: #0071e3;            /* заливка CTA — единственный хроматический цвет UI */
  --accent-hover: #0077ed;
  --link: #0066cc;
  --link-dark: #2997ff;         /* ссылки на чёрном */
  --bg: #ffffff;
  --bg-soft: #f5f5f7;           /* холодный серый, второй «несущий» фон */
  --bg-dark: #000000;           /* тёмные секции-тайлы */
  --line: rgba(0, 0, 0, 0.1);   /* хэйрлайн — только там, где без него нельзя (FAQ, скриншоты) */
  --ok: #1a6b34;
  --radius: 18px;
  --ease: cubic-bezier(0.4, 0, 0.6, 1); /* единая кривая, как у оригинала (0.24s) */
}
html { scroll-behavior: smooth; scroll-padding-top: 64px; } /* 64 = высота липкой шапки + зазор */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--body); background: var(--bg);
  line-height: 1.5; font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
/* Масса заголовка — кегль и плотный интерлиньяж, не жирность (у Apple 56/600/1.07/−0.28px) */
h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.07; letter-spacing: -0.015em; font-weight: 600; color: var(--ink); }
h2 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.1; letter-spacing: -0.01em; font-weight: 600; color: var(--ink); margin-bottom: 36px; text-align: center; }
h3 { font-size: 21px; line-height: 1.2; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
p { max-width: 68ch; }
b, strong { font-weight: 600; color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }

/* Кнопки: пилюля — единственная форма; вес 400, размер 17px, как у оригинала */
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  border: none; border-radius: 980px; padding: 13px 26px; font-size: 17px; font-weight: 400;
  cursor: pointer; transition: background-color .24s var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn-big { padding: 16px 32px; font-size: 18px; }
.btn-small { padding: 9px 18px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--link); border: 1px solid var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }

/* Шапка: тонкая, полупрозрачная с блюром; ссылки мелкие и нейтральные */
.topnav { position: sticky; top: 0; background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); z-index: 50; }
.topnav-in { display: flex; align-items: center; gap: 18px; padding-top: 10px; padding-bottom: 10px; }
.logo { font-weight: 600; letter-spacing: .01em; font-size: 17px; color: var(--ink); }
.topnav-links { display: none; gap: 24px; flex: 1; justify-content: center; }
.topnav-links a { color: var(--body); text-decoration: none; font-size: 14px; transition: color .24s var(--ease); }
.topnav-links a:hover { color: var(--ink); }
.topnav .btn { margin-left: auto; }
@media (min-width: 760px) { .topnav-links { display: flex; } }

/* Хиро: белый фон, всё по центру — плакат, а не колонка текста */
.hero { padding: 72px 0 56px; background: var(--bg); text-align: center; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.hero-sub { margin-top: 20px; font-size: 21px; line-height: 1.4; color: var(--body); max-width: 44ch; }
.hero-price { margin-top: 24px; font-size: 17px; color: var(--muted); padding: 18px 24px; background: var(--bg-soft); border-radius: var(--radius); max-width: 640px; }
.hero-price b { color: var(--ink); font-size: 24px; font-weight: 600; }
.hero-price span { display: block; margin-top: 6px; font-size: 14px; }
.hero-cta { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-note { color: var(--muted); font-size: 14px; max-width: 420px; }
/* Скриншот: скругление без тени — глубину даёт контраст фона, хэйрлайн отделяет белое от белого */
.hero-shot { margin-top: 48px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); width: 100%; }

/* Боли: серая секция, белые карточки без рамок */
.pains { padding: 88px 0; background: var(--bg-soft); }
.pain-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .pain-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .pain-grid { grid-template-columns: 1fr 1fr 1fr; } }
.pain { background: var(--bg); border-radius: var(--radius); padding: 22px; display: flex; gap: 12px; align-items: flex-start; }
.pain span { font-size: 26px; line-height: 1; }
.pain p { font-size: 15.5px; }
.pains-bottom { margin-top: 28px; font-weight: 600; color: var(--ink); text-align: center; max-width: none; }

/* Как работает: белая секция */
.how { padding: 88px 0; background: var(--bg); }
.how-steps { list-style: none; counter-reset: step; display: grid; gap: 56px; }
.how-steps li { counter-increment: step; display: grid; gap: 20px; align-items: center; }
@media (min-width: 820px) {
  .how-steps li { grid-template-columns: 5fr 6fr; }
  .how-steps li:nth-child(even) { grid-template-columns: 6fr 5fr; }
  .how-steps li:nth-child(even) .how-text { order: 2; }
}
.how-text h3 { font-size: 24px; }
.how-text h3::before { content: counter(step) '. '; color: var(--muted); }
.how-text p { color: var(--body); font-size: 16px; }
.how-steps figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.how-steps figure.mobile-shot { max-width: 300px; justify-self: center; }

/* Обучающее видео: чёрный «кинозал» между как-работает и возможностями */
.video { padding: 88px 0; background: var(--bg-dark); }
.video h2 { color: #f5f5f7; }
.video-sub { color: rgba(255,255,255,.72); text-align: center; margin: -20px auto 36px; max-width: 60ch; }
.video-embed { max-width: 880px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #1d1d1f; }
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Возможности: серая секция, белые карточки (референс: карточки без рамок и теней) */
.features { padding: 88px 0; background: var(--bg-soft); }
.feat-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .feat-grid { grid-template-columns: 1fr 1fr 1fr; } }
.feat { background: var(--bg); border-radius: var(--radius); padding: 22px; }
.feat h3 { font-size: 19px; }
.feat p { color: var(--muted); font-size: 15px; }

/* Внедрение: серая секция, белые карточки */
.onboard { padding: 88px 0; background: var(--bg-soft); }
.onboard-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .onboard-grid { grid-template-columns: 1fr 1fr; } }
.ob { background: var(--bg); border-radius: var(--radius); padding: 22px; }
.ob b { display: block; margin-bottom: 6px; }
.ob p { color: var(--muted); font-size: 15.5px; }
.onboard-note { margin-top: 28px; font-weight: 600; color: var(--ink); text-align: center; max-width: none; }

/* ИИ и API: чёрный «тайл», как тёмные продуктовые секции референса */
.ai { padding: 88px 0; background: var(--bg-dark); color: #f5f5f7; }
.ai h2 { color: #f5f5f7; }
.ai a { color: var(--link-dark); }
.ai-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .ai-grid { grid-template-columns: 1fr 1fr 1fr; } }
.ai-card { background: #1d1d1f; border-radius: var(--radius); padding: 24px; }
.ai-card h3 { color: #f5f5f7; }
.ai-card p { color: rgba(255,255,255,.72); font-size: 15.5px; }

/* О создателе: белая секция, текст слева (история — читаем, не сканируем) */
.founder { padding: 88px 0; background: var(--bg); }
.founder h2 { text-align: left; }
.founder-text p { margin-top: 14px; font-size: 17.5px; }
.founder-text p:first-of-type { margin-top: 0; }

/* Тарифы: серая секция, белые карточки; рекомендованный тариф — чёрный тайл */
.pricing { padding: 88px 0; background: var(--bg-soft); }
.pricing-note { margin-bottom: 28px; color: var(--muted); text-align: center; max-width: none; }
.price-grid { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .price-grid { grid-template-columns: 1fr 1fr 1fr; } }
/* На телефоне рекомендованный тариф первым — иначе якорь 290 ₽ ведёт к самому дешёвому. */
@media (max-width: 859px) { .price-grid { display: flex; flex-direction: column; } .plan-hot { order: -1; } }
.plan { background: var(--bg); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.plan { position: relative; } /* якорь для .plan-badge на любом тарифе */
/* Выделение не рамкой, а инверсией фона — так «главный» тайл виден боковым зрением */
.plan-hot { background: var(--bg-dark); color: rgba(255,255,255,.8); }
.plan-hot h3, .plan-hot .price, .plan-hot b { color: #f5f5f7; }
.plan-hot .plan-tag, .plan-hot .price span { color: rgba(255,255,255,.56); }
.plan-hot li::before { color: #f5f5f7; }
.plan-badge { position: absolute; top: -13px; left: 24px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; border-radius: 980px; padding: 4px 14px; }
.price { font-size: 40px; font-weight: 600; color: var(--ink); }
.plan-tag { color: var(--muted); font-size: 14px; margin-top: -6px; }
.pricing-hint { margin-top: 24px; font-weight: 600; color: var(--ink); text-align: center; max-width: none; }
.price span { font-size: 16px; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; display: grid; gap: 8px; }
.plan li { padding-left: 24px; position: relative; font-size: 15.5px; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--ink); font-weight: 600; }
.plan .btn { text-align: center; margin-top: auto; }
.pricing-compare { margin-top: 24px; color: var(--muted); font-size: 15px; margin-left: auto; margin-right: auto; text-align: center; }

/* FAQ: хэйрлайны между вопросами — единственные линии на странице */
.faq { padding: 88px 0; background: var(--bg); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 600; color: var(--ink); cursor: pointer; font-size: 17px; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 0; color: var(--muted); font-size: 22px; font-weight: 400; transition: transform .24s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--body); }

/* Рефералка использует класс .features — серый фон приходит оттуда */

/* Форма: чёрный финальный тайл, белая карточка формы */
.lead {
  padding: 88px 0; background: var(--bg-dark); color: #f5f5f7;
  /* Секция добивается до низа экрана: под ней только футер, и на высоких окнах странице
     не хватало высоты — клик по «Попробовать бесплатно» останавливался, не доведя форму до верха. */
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  display: flex; flex-direction: column; justify-content: center;
}
.lead h2 { color: #f5f5f7; text-align: left; }
.lead-in { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .lead-in { grid-template-columns: 1fr 1fr; } }
.lead-text p { color: rgba(255,255,255,.72); margin-top: 10px; }
.lead-text b { color: #f5f5f7; }
#lead-form { display: grid; gap: 14px; background: #fff; color: var(--body); border-radius: var(--radius); padding: 28px; }
#lead-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink); }
#lead-form .opt { color: var(--muted); font-weight: 400; }
#lead-form input[type="text"], #lead-form input[type="email"], #lead-form input[type="tel"], #lead-form textarea {
  border: 1px solid var(--line); border-radius: 11px; padding: 12px; font-size: 16px; font-family: inherit; width: 100%;
}
#lead-form input:focus, #lead-form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
#lead-form .hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.agree { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; color: var(--muted); }
.agree input { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; }
.form-msg { min-height: 22px; font-size: 15px; }
.form-msg.ok { color: var(--ok); font-weight: 600; }
.form-msg.err { color: #c62828; font-weight: 600; }

/* Футер: серый служебный подвал, мелкий кегль, левый край — как «документная» зона референса */
.footer { padding: 32px 0 44px; background: var(--bg-soft); font-size: 12px; color: var(--muted); }
.footer b { font-weight: 600; }
.footer-muted { color: var(--muted); margin-top: 6px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Плавающий CTA на мобильном (появляется всегда внизу) */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-top: 1px solid var(--line); z-index: 60; }
  .sticky-cta .btn { display: block; text-align: center; }
  .footer { padding-bottom: 90px; }
  /* Cookie-баннер приподнят НАД плавающим CTA (иначе на телефоне перекрывал кнопку «14 дней бесплатно»). */
  .cookie-bar { bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 70; }
}
.hero-shot figcaption, .how-steps figcaption { font-size: 13px; color: var(--muted); padding: 8px 12px; background: #fff; border-top: 1px solid var(--line); }
.form-trust { font-size: 13px; color: var(--muted); margin-top: -4px; }
.founder-proof { margin-top: 16px; padding: 16px 20px; background: var(--bg-soft); border-radius: var(--radius); font-weight: 600; color: var(--ink); }

/* Маркетплейсы и «легко» */
.mp { padding: 88px 0; background: var(--bg-soft); }
.mp .feat { background: var(--bg); }
.mp-note { margin-top: 28px; font-weight: 600; color: var(--ink); text-align: center; max-width: none; margin-left: auto; margin-right: auto; }
.easy { padding: 72px 0; background: var(--bg); }
.easy-text { font-size: 21px; line-height: 1.4; text-align: center; margin: 0 auto; max-width: 54ch; }

/* Cookie-баннер (152-ФЗ/РКН): уведомление + принятие, выбор запоминается в localStorage. */
/* Атрибут hidden должен прятать плашку: без этого правила `display:flex` ниже перебивает hidden
   (авторский CSS сильнее UA-стиля), и кнопка «Принять» не закрывала плашку. */
.cookie-bar[hidden] { display: none !important; }
.cookie-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  max-width: 720px; margin: 0 auto;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: space-between;
  background: #1d1d1f; color: #f5f5f7; padding: 14px 18px; border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,.28); font-size: 14px; line-height: 1.4;
}
.cookie-bar a { color: var(--link-dark); }
.cookie-bar button {
  flex: 0 0 auto; background: var(--accent); color: #fff; border: 0; border-radius: 980px;
  padding: 10px 22px; font-size: 15px; font-weight: 400; cursor: pointer;
  transition: background-color .24s var(--ease);
}
.cookie-bar button:hover { background: var(--accent-hover); }
@media (max-width: 480px) { .cookie-bar { flex-direction: column; align-items: stretch; } .cookie-bar button { width: 100%; } }
