/* ═══════════════════════════════════════════════════════════════════════════
   POSTA LANDING — общий слой двух главных страниц: index-ru.html (posta-smm.ru)
   и index-en.html (posta-smm.com). Подключается после fonts.css и ui.css, до
   собственного <style> страницы, поэтому страничные правила по-прежнему побеждают.

   Волна 4a редизайна (15.09.2026). До неё эти ~940 строк жили в каждой странице
   своей копией: из 133 правил совпадали 128, и правка «только на русской» тихо
   разводила лендинги. Здесь — всё общее; в страницах остаётся только своё:
   у русской — сноска про Instagram (ФЗ № 114), у английской — значок Instagram
   в хиро и иконка Google Maps.
   ═══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Обязательная маркировка при упоминании Instagram: звёздочка в тексте
   и сноска в подвале. ФЗ № 114 «О противодействии экстремистской
   деятельности», ответственность — ч. 2 ст. 13.15 КоАП. */


/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 40px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav-logo span { color: var(--accent); font-style: italic; }

.nav-cta {
  background: var(--ink);
  color: var(--cream);
  padding: 10px 24px;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.nav-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 80px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 80px;
  position: relative;
}

.hero-left::after {
  content: '';
  position: absolute; right: 0; top: 15%; bottom: 15%;
  width: 1px;
  background: var(--line);
}

.hero-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}

.hero-tag::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--accent);
  display: block;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 32px;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-subtitle {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 320px;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
  padding: 18px 36px;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  display: block;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 149, 106, 0.3);
}

.btn-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 80px 80px 60px;
  position: relative;
  /* Фон под телефоном — свой кадр `hero-bg.jpg` (он же og:image) поверх пастельного градиента,
     под кремовой плёнкой .hero-right::before. Так было до 15.09.2026, и к этому вернулись.
     Между делом здесь успели побывать: картинка с Unsplash (чужой хост — против правила
     «ассеты самохостим»), пустой градиент (правая половина стала голой), размытый кадр и
     карточки постов вместо фотографии. Roba посмотрел варианты живьём и вернул исходный.
     🚨 Менять фон хиро — только его решением. */
  background: url("./hero-bg.jpg") center/cover no-repeat,
              linear-gradient(145deg, var(--accent-light) 0%, var(--rose) 50%, var(--accent) 100%);
}
.hero-right::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(250, 247, 242, 0.85);
}
.hero-right > * { position: relative; z-index: 1; }

.phone-mockup {
  width: 260px;
  background: var(--ink);
  border-radius: 36px;
  padding: 16px;
  box-shadow: 0 40px 80px rgba(26, 22, 18, 0.25), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
  animation: float 6s ease-in-out infinite;
}

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

.phone-screen {
  background: var(--warm-white);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Экран телефона подстроен под пропорции записи (720×1248), поэтому
   object-fit: cover ничего не срезает — ни логотип слева, ни язык справа. */
.phone-video {
  width: 100%;
  aspect-ratio: 720 / 1248;
  object-fit: cover;
  display: block;
  background: linear-gradient(145deg, var(--accent-light) 0%, var(--rose) 50%, var(--accent) 100%);
}

.phone-status {
  background: var(--ink);
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-notch {
  width: 80px; height: 20px;
  background: var(--ink);
  border-radius: 0 0 12px 12px;
}



.post-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--rose));
}






.post-badge {
  position: absolute;
  top: -12px; right: -12px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--font-body);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(196, 149, 106, 0.4);
}

.floating-notif {
  position: absolute;
  bottom: -20px; left: -40px;
  background: white;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  display: flex; align-items: center; gap: 10px;
  min-width: 200px;
  animation: float-notif 6s ease-in-out infinite 1s;
}

@keyframes float-notif {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.notif-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  flex-shrink: 0;
}

.notif-text {
  font-size: 11px;
  color: var(--ink);
  line-height: 1.4;
}

.notif-text strong {
  display: block;
  font-weight: 500;
}

/* ── PAIN ── */
.section-pain {
  padding: 120px 80px;
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.section-pain::before {
  content: '"';
  position: absolute;
  top: -40px; left: 60px;
  font-family: var(--font-display);
  font-size: 300px;
  color: rgba(196, 149, 106, 0.06);
  line-height: 1;
}

.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.pain-intro {
  padding-right: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}

.section-label::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--accent);
  display: block;
}

.pain-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 24px;
}

.pain-title em { font-style: italic; color: var(--accent); }

.pain-desc {
  color: rgba(250, 247, 242, 0.6);
  font-size: 15px;
  line-height: 1.7;
}

.pain-quotes {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid rgba(196, 149, 106, 0.2);
}

.pain-quote {
  padding: 32px 40px;
  border-bottom: 1px solid rgba(196, 149, 106, 0.1);
  position: relative;
  transition: background 0.3s;
}

.pain-quote:hover {
  background: rgba(196, 149, 106, 0.05);
}

.pain-quote:last-child { border-bottom: none; }

.pain-quote-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(250, 247, 242, 0.85);
  margin-bottom: 8px;
}

.pain-quote-tag {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── HOW IT WORKS ── */
.section-how {
  padding: 120px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-title em { font-style: italic; color: var(--accent); }

.section-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
}

/* Планшеты и узкие ноутбуки: четыре колонки становятся слишком тесными,
   раскладываем шаги в две строки по два. */
@media (max-width: 1180px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

.step {
  background: var(--cream);
  padding: 48px 32px;
  position: relative;
  transition: background 0.3s;
}

.step:hover { background: var(--warm-white); }

.step-num {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 300;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 24px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
}

.step-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── PLATFORMS ── */
.section-platforms {
  padding: 80px;
  background: var(--warm-white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.platforms-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.platforms-text .section-label { margin-bottom: 20px; }

.platforms-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 20px;
}

.platforms-title em { font-style: italic; color: var(--accent); }

.platforms-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.fb-note {
  background: rgba(196, 149, 106, 0.1);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.fb-note strong { color: var(--accent-dark); }

.platforms-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.platform-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--cream);
  transition: transform 0.2s;
}

.platform-item:hover { transform: translateX(4px); }

.platform-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.platform-icon.social { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.platform-icon.messenger { background: var(--ink-soft); }
.platform-icon.ym { background: #FC3F1D; }
.platform-icon.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.platform-icon.telegram { background: #229ED9; }
.platform-icon.facebook { background: #1877F2; }

.platform-name {
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
}

.platform-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.platform-badge {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ── PRICING ── */
.section-price {
  padding: 120px 80px;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.price-text .section-label { margin-bottom: 20px; }

.price-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 20px;
}

.price-title em { font-style: italic; color: var(--accent); }

.price-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.price-card {
  background: var(--ink);
  color: var(--cream);
  padding: 56px 48px;
  position: relative;
}

.price-free {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 4px;
}

/* Вместо цифры — слово: в Cormorant Garamond цифры старостильные, одинокий «0»
   читается как строчная «о» и смотрится ошибкой вёрстки. Кегль меньше базовых 80px,
   чтобы длинное слово не переполняло карточку. */
.price-amount.is-free {
  font-size: 52px;
  letter-spacing: -0.01em;
}

.price-amount sup {
  font-size: 28px;
  vertical-align: top;
  margin-top: 16px;
  display: inline-block;
}

.price-period {
  font-size: 13px;
  color: rgba(250, 247, 242, 0.5);
  margin-bottom: 40px;
  letter-spacing: 0.06em;
}

/* Примечание под списком: сохраняет ценовой якорь на будущее, но без числа и без
   обещания списания — чтобы включение оплаты потом не стало сюрпризом для мастера. */
.price-note {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(250, 247, 242, 0.45);
  margin-bottom: 24px;
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.price-features li {
  font-size: 14px;
  color: rgba(250, 247, 242, 0.8);
  display: flex; align-items: center; gap: 12px;
}

.price-features li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
}

.btn-price {
  display: block;
  background: var(--accent);
  color: var(--cream);
  padding: 18px 36px;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  width: 100%;
}

.btn-price:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 149, 106, 0.4);
}

/* ── FORM ── */
.section-form {
  padding: 120px 80px;
  background: var(--ink);
  color: var(--cream);
}

.form-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.form-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 16px;
}

.form-title em { font-style: italic; color: var(--accent); }

.form-sub {
  color: rgba(250, 247, 242, 0.55);
  font-size: 15px;
  margin-bottom: 48px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-field {
  background: rgba(250, 247, 242, 0.06);
  border: 1px solid rgba(250, 247, 242, 0.12);
  padding: 18px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--cream);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-field::placeholder { color: rgba(250, 247, 242, 0.35); }

.form-field:focus {
  border-color: var(--accent);
  background: rgba(196, 149, 106, 0.06);
}

.form-submit {
  background: var(--accent);
  color: var(--cream);
  padding: 20px 36px;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.form-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 149, 106, 0.4);
}

.form-note {
  font-size: 12px;
  color: rgba(250, 247, 242, 0.35);
  margin-top: 16px;
  letter-spacing: 0.04em;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success .success-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 12px;
}

.form-success p {
  color: rgba(250, 247, 242, 0.55);
  font-size: 14px;
}

/* ── FOOTER ── */
footer {
  padding: 40px 80px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
}

.footer-logo span { color: var(--accent); font-style: italic; }

.footer-note {
  font-size: 12px;
  color: var(--muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 14px 14px; }
  body { overflow-x: hidden; }
  .nav-logo { font-size: 20px; }
  nav > div { gap: 8px !important; }
  /* «Войти» на узких экранах РАНЬШЕ скрывалась, чтобы шапка не переполнялась, —
     в расчёте на то, что вход доступен через основную кнопку. Но она ведёт на /start,
     то есть на регистрацию: вернувшемуся мастеру с телефона было некуда нажать.
     Поэтому ссылку оставляем всегда, а помещаем всё за счёт компактных размеров. */
  nav > div > a:not(.nav-cta) { font-size: 12px; letter-spacing: 0.02em; white-space: nowrap; }
  .nav-cta { padding: 6px 10px; font-size: 11px; white-space: nowrap; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-left {
    padding: 60px 24px 40px;
    order: 1;
  }

  .hero-left::after { display: none; }

  .hero-right {
    padding: 40px 24px 60px;
    order: 2;
  }

  .phone-mockup { width: min(80vw, 300px); }
  .floating-notif { display: none; }

  .pain-grid,
  .platforms-inner,
  .section-price {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .pain-intro { padding-right: 0; }
  .pain-quotes { border-left: none; border-top: 1px solid rgba(196, 149, 106, 0.2); }

  .section-pain,
  .section-how,
  .section-platforms,
  .section-form { padding: 80px 24px; }

  .section-price { padding: 80px 24px; }

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

  footer { padding: 32px 24px; flex-direction: column; gap: 12px; text-align: center; }
  .legal-note { padding: 0 24px 20px; }
}

/* Телефоны 361–420 px: в шапке четыре элемента (логотип, «Войти», кнопка, язык).
   Ужимаем каждый, чтобы поместились все, — вместо того чтобы выбрасывать вход. */
@media (max-width: 420px) {
  nav { padding: 12px 10px; }
  nav > div { gap: 6px !important; }
  .nav-logo { font-size: 18px; }
  nav > div > a:not(.nav-cta) { font-size: 11px; }
  /* padding по вертикали, а не размер шрифта: при 5px кнопка выходила 26px высотой —
     в такую цель пальцем не попасть. Шрифт оставлен 10px, чтобы шапка не поехала. */
  .nav-cta { padding: 10px 10px; font-size: 10px; letter-spacing: 0.02em; }
}

/* Уже 360 px четыре элемента не помещаются физически. Убираем из шапки кнопку
   «Попробовать бесплатно»: ровно такая же кнопка стоит в первом экране, сразу под
   шапкой, — то есть регистрация никуда не девается. А «Войти» здесь единственный
   путь в кабинет, поэтому остаётся именно она. */
@media (max-width: 360px) {
  .nav-cta { display: none; }
  nav > div > a:not(.nav-cta) { font-size: 12px; color: var(--ink); }
}


/* ─── FAQ (волна 4b, 15.09.2026) ────────────────────────────────────────────
   Пять вопросов, которые приходят в поддержку до регистрации. Ответы держим
   короткими: длинный текст здесь никто не читает, а возражение снимает факт. */
.section-faq { max-width: 860px; margin: 0 auto; padding: 100px 40px 20px; }
.faq-list { margin-top: 36px; display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line); padding: 26px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  font-family: var(--font-display); font-size: 22px; font-weight: 400;
  line-height: 1.3; color: var(--ink); margin-bottom: 10px;
}
.faq-a { font-size: 15px; line-height: 1.7; color: var(--ink-soft); max-width: 68ch; }
.faq-a a { color: var(--accent-dark); }
@media (max-width: 900px) {
  .section-faq { padding: 64px 24px 10px; }
  .faq-item { padding: 20px 0; }
  .faq-q { font-size: 19px; }
  .faq-a { font-size: 14px; }
}
