/* ============================================================
   Movlo — movlo.izberg.net.ua
   Палитра наследует DarkColorScheme приложения
   (app/src/main/java/com/dsokoliuk/voicenotes/ui/Theme.kt):
   фон #121417, акцент #F59E0B, текст #E8E6E3, поверхность #22262C.
   Тональные оттенки добавлены как производные тех же цветов.
   ============================================================ */

:root {
  /* Бренд */
  --bg:          #121417;
  --bg-deep:     #0d0f11;
  --surface:     #191c21;
  --surface-2:   #22262c;
  --text:        #e8e6e3;
  --text-dim:    #a8adb4;
  --text-faint:  #767c85;
  --amber:       #f59e0b;
  --amber-lift:  #ffb62e;
  --amber-deep:  #d97706;
  --blue:        #8fb3c7;

  --line:        rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --wrap: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------- Типографика ---------- */

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.06rem; letter-spacing: -0.01em; }

.grad-text {
  background: linear-gradient(135deg, var(--amber-lift), var(--amber-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  color: var(--text-dim);
  margin: 20px 0 0;
  max-width: 46ch;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 52px;
}

.section-head .lead { margin-left: auto; margin-right: auto; }

/* ---------- Фоновые градиентные пятна ---------- */

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.glow-amber { background: rgba(245, 158, 11, 0.16); }
.glow-blue  { background: rgba(143, 179, 199, 0.10); }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber-lift), var(--amber-deep));
  color: #17120a;
  box-shadow: 0 10px 30px -8px rgba(245, 158, 11, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -8px rgba(245, 158, 11, 0.62);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

.btn-sm { padding: 10px 18px; font-size: 0.88rem; }

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ---------- Шапка ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 20, 23, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.brand img { width: 34px; height: 34px; border-radius: 9px; }

nav.site-nav { display: flex; gap: 30px; }

nav.site-nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.94rem;
  transition: color 0.18s var(--ease);
}

nav.site-nav a:hover { color: var(--text); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(60px, 8vw, 96px);
  overflow: hidden;
}

.hero .glow-amber { width: 620px; height: 620px; top: -220px; left: -120px; }
.hero .glow-blue  { width: 520px; height: 520px; top: 40px; right: -180px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-cta {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.83rem;
}

.pill svg { width: 15px; height: 15px; flex: none; color: var(--amber); }

/* ---------- Рамка устройства ---------- */

.device-stage {
  display: flex;
  justify-content: center;
  position: relative;
}

.device {
  position: relative;
  width: min(290px, 78vw);
  padding: 11px;
  background: linear-gradient(155deg, #333941, #14161a 55%);
  border-radius: 42px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09),
    0 50px 90px -28px rgba(0, 0, 0, 0.85),
    0 0 70px -14px rgba(245, 158, 11, 0.24);
}

.device::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
  z-index: 2;
}

.device img {
  border-radius: 32px;
  width: 100%;
  background: var(--bg);
}

/* Наклон держим в transform, а парение - в отдельном свойстве translate.
   Так анимация не перебивает transform у наведения (hover) и наоборот. */
.device-hero {
  transform: rotate(-3deg);
  animation: floaty-lg 7s ease-in-out infinite;
}

@keyframes floaty-lg {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -14px; }
}

/* ---------- Левитация блоков ----------
   Размах меньше, чем у телефона в шапке (7px против 14) - декоративным
   элементам хватает намёка. Фазы разведены отрицательной задержкой, а слегка
   разная длительность не даёт им со временем сойтись в такт: иначе весь блок
   качается синхронно и страница рябит. */

.floaty { animation: floaty 6.5s ease-in-out infinite; }

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -7px; }
}

.floaty:nth-child(4n+2) { animation-delay: -1.6s; }
.floaty:nth-child(4n+3) { animation-delay: -3.2s; }
.floaty:nth-child(4n+4) { animation-delay: -4.8s; }
.floaty:nth-child(3n)   { animation-duration: 7.4s; }
.floaty:nth-child(5n)   { animation-duration: 6.1s; }

/* Пока блок ещё не появился при прокрутке, парение не запускаем -
   иначе оно спорит с анимацией появления. */
.js .reveal.floaty { animation-play-state: paused; }
.js .reveal.floaty.in { animation-play-state: running; }

/* ---------- Живая волна ---------- */

.wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 56px;
  margin: 22px 0 24px;
}

.wave i {
  display: block;
  width: 4px;
  height: 16%;
  border-radius: 3px;
  background: var(--amber);
  opacity: 0.32;
  transition: opacity 0.3s var(--ease);
}

/* Статичный «силуэт» дорожки, пока запись не идёт —
   при записи высоту перебивает анимация wv. */
.wave i:nth-child(3n)   { height: 34%; }
.wave i:nth-child(4n)   { height: 54%; }
.wave i:nth-child(5n+2) { height: 26%; }
.wave i:nth-child(7n+1) { height: 72%; }
.wave i:nth-child(11n)  { height: 44%; }
.wave i:nth-child(9n+4) { height: 88%; }

.wave.on i { animation: wv 1.05s ease-in-out infinite; }

@keyframes wv {
  0%, 100% { height: 14%; opacity: 0.45; }
  50%      { height: 100%; opacity: 1; }
}

/* ---------- Цифры ---------- */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
}

.stats .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 44px;
  padding-bottom: 44px;
  text-align: center;
}

.stat-n {
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 9px;
}

.stat-l { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Секции ---------- */

section { position: relative; padding: clamp(64px, 9vw, 108px) 0; }

.sec-deep { background: var(--bg-deep); border-block: 1px solid var(--line); }

/* ---------- Демка ---------- */

.demo-card {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 40px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.langs {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.lang {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.lang:hover { border-color: var(--amber); color: var(--text); }

.lang[aria-pressed="true"] {
  background: rgba(245, 158, 11, 0.14);
  border-color: var(--amber);
  color: var(--amber);
}

.demo-out {
  width: 100%;
  min-height: 132px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
}

.demo-out::placeholder { color: var(--text-faint); }

.demo-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.mic-btn {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--amber-lift), var(--amber-deep));
  color: #17120a;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 34px -10px rgba(245, 158, 11, 0.65);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  flex: none;
}

.mic-btn:hover { transform: scale(1.05); }
.mic-btn svg { width: 30px; height: 30px; }

.mic-btn.rec {
  background: linear-gradient(135deg, #ff7a5c, #d1442a);
  color: #fff;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(209, 68, 42, 0.5); }
  50%      { box-shadow: 0 0 0 18px rgba(209, 68, 42, 0); }
}

.demo-status {
  color: var(--text-dim);
  font-size: 0.9rem;
  min-height: 1.5em;
  text-align: center;
  margin-top: 18px;
}

.demo-note {
  margin: 24px auto 0;
  max-width: 560px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-faint);
  line-height: 1.55;
}

.demo-fallback {
  text-align: center;
  color: var(--amber);
  font-size: 0.92rem;
  margin-top: 16px;
}

/* ---------- Сетка карточек ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
              background 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.card .ic {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber);
  margin-bottom: 18px;
}

.card .ic svg { width: 22px; height: 22px; }
.card p { margin: 9px 0 0; color: var(--text-dim); font-size: 0.94rem; }

.card h3 a {
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.card h3 a:hover { color: var(--amber); }

/* Вся карточка-ссылка кликабельна, а не только заголовок.
   position:relative задан у самой .card (см. правило выше), а не через
   :has() - иначе в браузерах без поддержки :has() невидимая ссылка
   растянулась бы на ближайшего позиционированного предка. */
.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* ---------- Список сравнения ---------- */

.compare {
  max-width: 780px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 4px;
}

.compare li {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--r);
  transition: background 0.2s var(--ease);
}

.compare li:hover { background: rgba(255, 255, 255, 0.03); }

.compare .tick {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.14);
  color: var(--amber);
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.compare .tick svg { width: 13px; height: 13px; }

/* ---------- Карусель скриншотов ---------- */

.shots {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 10px 24px 34px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-2) transparent;
}

.shots::-webkit-scrollbar { height: 7px; }
.shots::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 4px; }

.shot {
  scroll-snap-align: center;
  flex: none;
  text-align: center;
  width: 218px;
}

.shot .device { width: 218px; padding: 8px; border-radius: 32px; }
.shot .device::before { width: 44px; height: 4px; top: 15px; }
.shot .device img { border-radius: 25px; }

.shot figcaption {
  margin-top: 16px;
  font-size: 0.87rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* ---------- Языки ---------- */

.lang-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.lang-card {
  padding: 22px 34px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
  min-width: 168px;
}

.lang-code {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.03em;
}

.lang-name { color: var(--text-dim); font-size: 0.9rem; margin-top: 4px; }

/* ---------- Чипы аудитории ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 780px;
  margin: 0 auto;
}

.chip {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.89rem;
  transition: all 0.2s var(--ease);
}

.chip:hover { border-color: var(--amber); color: var(--text); }

/* ---------- FAQ ---------- */

.faq { max-width: 780px; margin: 0 auto; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 11px;
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

.faq details[open] { border-color: var(--line-strong); }

.faq summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }

.faq .answer { padding: 0 24px 22px; color: var(--text-dim); }
.faq .answer p { margin: 0; }

/* ---------- Финальный CTA ---------- */

.final {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}

.final .glow-amber { width: 700px; height: 420px; bottom: -220px; left: 50%; transform: translateX(-50%); }

/* ---------- Футер ---------- */

footer.site {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--text-faint);
  font-size: 0.88rem;
}

/* Flex только для нижней строки подвала. Раньше правило висело на всех .wrap
   внутри footer, из-за чего ряд соцсетей становился flex-элементом по ширине
   содержимого и прижимался влево вместо центра. */
footer.site .foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

footer.site a { color: var(--text-dim); text-decoration: none; }
footer.site a:hover { color: var(--amber); }
footer.site .links { display: flex; gap: 22px; flex-wrap: wrap; }

footer.site .foot-bottom { margin-top: 22px; }

/* ---------- Соцсети в подвале ----------
   Сквозной ряд на всех страницах. Иконки парят вразнобой, как и остальные
   блоки сайта, при наведении подсвечиваются акцентным цветом. */

.socials {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.soc {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-faint);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
              background 0.2s var(--ease), transform 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
  animation: floaty 6.5s ease-in-out infinite;
}

.soc:nth-child(4n+2) { animation-delay: -1.6s; }
.soc:nth-child(4n+3) { animation-delay: -3.2s; }
.soc:nth-child(4n+4) { animation-delay: -4.8s; }
.soc:nth-child(3n)   { animation-duration: 7.4s; }
.soc:nth-child(5n)   { animation-duration: 6.1s; }

.soc svg { width: 18px; height: 18px; }

.soc:hover {
  color: var(--amber);
  border-color: var(--amber);
  background: rgba(245, 158, 11, 0.12);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 10px 24px -8px rgba(245, 158, 11, 0.55);
}

/* ---------- Переключатель языков ---------- */

.head-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.lang-pick {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

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

.lang-pick.is-on {
  background: rgba(245, 158, 11, 0.16);
  color: var(--amber);
}

/* ---------- Блик на кнопке ----------
   Проходит быстро и потом ждёт несколько секунд: привлекает внимание,
   но не мигает без остановки. */

.btn-shine { position: relative; overflow: hidden; }

.btn-shine::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 42%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  animation: shine 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine {
  0%           { left: -60%; }
  16%, 100%    { left: 130%; }
}

.btn-lg {
  padding: 17px 34px;
  font-size: 1.05rem;
}

.btn-lg.btn-primary { animation: cta-glow 3.6s ease-in-out infinite; }

.btn-lg.btn-primary:hover { animation-play-state: paused; }

@keyframes cta-glow {
  0%, 100% { box-shadow: 0 10px 30px -8px rgba(245, 158, 11, 0.45); }
  50%      { box-shadow: 0 16px 42px -6px rgba(245, 158, 11, 0.75); }
}

/* ---------- Инструкция «где работает демка» ---------- */

.support {
  max-width: 760px;
  margin: 22px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.support summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  list-style: none;
}

.support summary::-webkit-details-marker { display: none; }

.support summary svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--amber);
}

.support ul {
  margin: 0;
  padding: 0 22px 18px 44px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.support li { margin-bottom: 11px; }
.support li:last-child { margin-bottom: 0; }
.support strong { color: var(--text); }

.mic-btn.is-off {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------- Видео ----------
   Ролики вертикальные (YouTube Shorts), поэтому рамка портретная -
   иначе по бокам были бы широкие чёрные поля. */

.video-wrap {
  width: min(320px, 82vw);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8),
              0 0 60px -18px rgba(245, 158, 11, 0.2);
}

.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: linear-gradient(165deg, #22262c, #101215);
  cursor: pointer;
  display: block;
}

.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transition: opacity 0.25s var(--ease), scale 0.4s var(--ease);
}

.video-poster:hover img { opacity: 0.8; scale: 1.03; }

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber-lift), var(--amber-deep));
  color: #17120a;
  box-shadow: 0 12px 34px -10px rgba(245, 158, 11, 0.7);
  transition: scale 0.2s var(--ease);
}

.video-poster:hover .video-play { scale: 1.08; }
.video-play svg { width: 30px; height: 30px; }

.video-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 18px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  text-align: left;
  background: linear-gradient(to top, rgba(13, 15, 17, 0.95), transparent);
}

.video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   Страницы блога (site/blog/*.html)
   Своя, более простая раскладка: одна колонка, текст статьи.
   ============================================================ */

.section-title {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 14px;
  text-align: center;
}

.section-sub {
  color: var(--text-dim);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 34px;
}

.amber { color: var(--amber); }

.crumbs {
  font-size: 0.86rem;
  color: var(--text-faint);
  margin-bottom: 26px;
}

.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--amber); }

article.post {
  max-width: 740px;
  margin: 0 auto;
}

article.post p,
.post-body p { color: var(--text-dim); }

article.post h2,
article.post h3 { margin-top: 44px; }

article.post a { color: var(--amber); }

article.post ul,
article.post ol { color: var(--text-dim); padding-left: 22px; }

article.post li { margin-bottom: 9px; }

/* На страницах блога пункты списков - обычный текст с инлайновым маркером,
   а не flex-строка как на главной (иначе каждый кусок текста внутри li
   становится отдельным flex-элементом и строка разъезжается). */
body.blog .compare li {
  display: block;
  padding: 10px 0;
}

body.blog .compare li:hover { background: none; }

.compare .mark {
  display: inline-block;
  min-width: 22px;
  color: var(--amber);
  font-weight: 700;
}

/* Финальный блок статьи */
.cta-final {
  text-align: center;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}

.cta-final.alt { background: var(--bg-deep); }

/* Шапка статьи: в отличие от главной, выравнивание по левому краю */
.hero .section-title,
.hero h1 { text-align: left; }

.hero .section-sub {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.hero > .wrap > .lead { margin-left: 0; }

/* Шапка статьи по ширине совпадает с колонкой текста ниже */
body.blog .hero { padding-bottom: 8px; }
body.blog .hero > .wrap { max-width: 720px; }
body.blog section > .wrap { max-width: 720px; }

/* ---------- Появление при прокрутке ----------
   Класс .js ставится скриптом. Без JS контент виден сразу —
   это важно и для пользователей, и для поисковых/ИИ-краулеров. */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-badges { justify-content: center; }
  .device-hero { margin-top: 12px; }
}

@media (max-width: 720px) {
  nav.site-nav { display: none; }
  .stats .wrap { grid-template-columns: 1fr; gap: 30px; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
