/* Onest — self-hosted variable subset (cyrillic + latin) */
@font-face {
  font-family: Onest;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Onest;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2018-201A, U+2032-2033, U+2212, U+2044, U+20BD;
}

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

/* видимый фокус для клавиатуры (P1-4) */
:focus-visible {
  outline: 2px solid var(--hot);
  outline-offset: 3px;
  border-radius: 2px;
}

/* на розовых кнопках — белый ринг внутри для контраста */
.button--primary:focus-visible {
  outline-color: #fff;
  outline-offset: -5px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
}

.landing {
  /* палитра — бренд-цвет кабинета (design-system.css --primary) */
  --hot: #c3134e;
  --ink: #121217;
  --muted: #625d61;
  --line: #eee5e8;

  /* радиусы (из дизайн-системы) */
  --radius-pill: 999px;
  --radius-round: 50%;
  --radius-surface: 20px;
  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 8px;

  /* типографика */
  --fs-h1: clamp(38px, 5vw, 66px);
  --fs-h2: clamp(30px, 3.4vw, 44px);
  --fs-h3: 24px;
  --fs-kicker: 12px;
  --fs-body: 16px;
  --fs-caption: 14px;
  --fs-small: 13px;

  min-height: 100vh;
  background: #fffdfc;
  color: var(--ink);
  font-family: Onest, sans-serif;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* ── Header ─────────────────────────────────────────────── */
.landing-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 78px;
  border-bottom: 1px solid rgb(238 229 232 / 75%);
  background: rgb(255 253 252 / 88%);
  backdrop-filter: blur(18px);
}

.landing-header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 28px;
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .landing-header {
      animation: header-shrink linear both;
      animation-timeline: scroll(root);
      animation-range: 0 110px;
    }

    @keyframes header-shrink {
      to {
        height: 62px;
        box-shadow: 0 8px 24px rgb(56 38 45 / 8%);
      }
    }
  }
}

.landing-logo img {
  display: block;
  width: 154px;
  height: auto;
}

.landing-nav {
  display: flex;
  margin-left: 38px;
  gap: 28px;
}

.landing-nav a,
.landing-footer a {
  color: inherit;
  text-decoration: none;
}

.landing-nav a {
  position: relative;
  transition: color 0.16s ease;
}

.landing-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  border-radius: var(--radius-pill);
  background: var(--hot);
  content: '';
  transition: transform 0.16s ease;
}

.landing-header .landing-login {
  margin-left: auto;
}

/* ── Buttons ────────────────────────────────────────────── */
.button {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}

.button b {
  transition: transform 0.16s ease;
}

@media (hover: hover) {
  .landing-nav a:hover {
    color: var(--hot);
  }

  .landing-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .button:hover {
    transform: translateY(-2px);
  }

  .button:hover b {
    transform: translateX(3px);
  }

  .button--primary:hover {
    box-shadow: 0 10px 24px rgb(195 19 78 / 20%);
  }

  .button--quiet:hover {
    background: #ffe2ec;
    box-shadow: 0 12px 24px rgb(80 48 60 / 10%);
  }
}

.button:active {
  transform: scale(0.98);
}

.button--primary {
  background: var(--hot);
  color: white;
  box-shadow: 0 6px 16px rgb(195 19 78 / 14%);
}

.button--quiet {
  background: #fff1f5;
}

.button--large {
  min-height: 54px;
  padding-inline: 28px;
  font-size: 16px;
}

/* ── Mobile menu (class-toggle .is-open; см. app.js) ─────── */
.landing-menu,
.landing-mobile-nav {
  display: none;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  display: grid;
  min-height: 460px;
  padding-block: 18px 12px;
  grid-template-columns: 0.86fr 1.14fr;
  align-items: start;
}

.hero-copy {
  padding-top: 58px;
  animation: hero-copy-enter 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
  max-width: 650px;
  margin: 20px 0;
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-subtitle {
  max-width: 45ch;
  margin: 20px 0 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  text-wrap: pretty;
}

.hero h1 em {
  color: var(--hot);
  font-style: normal;
}

.hero-visual {
  position: relative;
  /* высота подстраивается под ноутбук (top:82 + width/1.65 + база), а не фиксированные 500px —
     иначе на нешироком десктопе под ноутом зияет ~100px пустоты до второй секции.
     ponytail: коэффициенты подогнаны под aspect ноутбука; поменяется макет — пересчитать */
  min-height: min(500px, calc(412px + (100vw - 900px) * 0.34));
  animation: hero-visual-enter 0.55s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-parallax-layer {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-parallax-layer--back {
  transform: translate(calc(var(--parallax-x, 0) * -18px), calc(var(--parallax-y, 0) * -14px));
}

.hero-parallax-layer--middle {
  transform: translate(calc(var(--parallax-x, 0) * 24px), calc(var(--parallax-y, 0) * 18px));
}

.hero-parallax-layer--front {
  transform: translate(calc(var(--parallax-x, 0) * 34px), calc(var(--parallax-y, 0) * 25px));
}

.hero-parallax-owl {
  position: absolute;
  z-index: 3;
  width: 72px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 12px 16px rgb(42 27 34 / 14%));
}

.hero-parallax-owl--left {
  top: 260px;
  left: -18px;
  width: 62px;
}

.hero-parallax-owl--right {
  right: -38px;
  bottom: 72px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-parallax-layer {
    transition: none;
  }
}

@keyframes hero-copy-enter {
  from {
    transform: translateX(-40px);
    opacity: 0;
  }
}

@keyframes hero-visual-enter {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
}

.hero-owl-wrap {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 46%;
  width: 136px;
}

.hero-owl {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: bottom center;
}

/* одноразовое приветствие совы после появления интерфейса (V-4) */
@media (prefers-reduced-motion: no-preference) {
  .hero-owl {
    animation: owl-greet 0.45s 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @keyframes owl-greet {
    0%,
    100% {
      transform: rotate(0);
    }
    50% {
      transform: rotate(-4deg);
    }
  }
}

.hero-owl-wrap .thought {
  top: -8px;
  left: -190px;
}

.thought {
  position: absolute;
  z-index: 4;
  top: -8px;
  left: calc(46% - 190px);
  width: 172px;
  padding: 15px 18px;
  transform: translateY(8px) scale(0.9);
  border: 1px solid #f0dbe3;
  border-radius: var(--radius-surface);
  background: white;
  box-shadow: 0 12px 30px rgb(84 54 66 / 10%);
  color: #6a5660;
  font-weight: 650;
  text-align: center;
  opacity: 0;
  transition: 0.26s ease;
}

.thought::before {
  position: absolute;
  bottom: 12px;
  right: -10px;
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
  border-top: 1px solid #f0dbe3;
  border-right: 1px solid #f0dbe3;
  background: white;
  content: '';
}

.laptop {
  position: absolute;
  z-index: 2;
  top: 82px;
  right: 0;
  width: 95%;
  transform: perspective(900px) rotateY(-5deg) rotateX(1deg);
}

.laptop-screen {
  overflow: hidden;
  aspect-ratio: 1.65;
  border: 12px solid #19191b;
  border-radius: var(--radius-surface) var(--radius-surface) var(--radius) var(--radius);
  background: #f9f7f6;
  box-shadow: 0 28px 50px rgb(43 30 37 / 18%);
}

.laptop-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.laptop-base {
  width: 112%;
  height: 23px;
  margin-left: -6%;
  transform: perspective(180px) rotateX(42deg);
  border-radius: var(--radius-sm) var(--radius-sm) var(--radius-surface) var(--radius-surface);
  background: linear-gradient(#d9d6d5, #888688);
  box-shadow: 0 18px 20px rgb(0 0 0 / 18%);
}

.phone {
  display: none;
}

/* до 1100px убрать боковых сов и распрямить ноутбук, чтобы его не подрезало (P2-10) */
@media (min-width: 761px) and (max-width: 1100px) {
  .hero-parallax-owl {
    display: none;
  }

  .laptop {
    width: 100%;
  }
}

/* ── Section scaffolding ────────────────────────────────── */
.section {
  padding-block: 28px;
}

.section-title {
  margin-bottom: 40px;
}

.section-kicker {
  color: #777178;
  font-size: var(--fs-kicker);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-kicker b {
  margin-right: 10px;
  color: var(--hot);
}

.section-heading {
  padding-top: 0;
}

.section-heading h2 {
  margin: 0;
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* ── Features ───────────────────────────────────────────── */
.feature-section {
  position: relative;
}

.feature-scroller {
  position: relative;
}

/* Сетка служит запасной раскладкой до расчёта независимых колонок. */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 18px;
}

.feature-card {
  position: relative;
  display: flex;
  overflow: hidden;
  padding: 34px 34px 0;
  flex-direction: column;
  border-radius: var(--radius-surface);
}


.feature-card--pink {
  --feature-bg: #fce7ee;
  background: var(--feature-bg);
}
.feature-card--blue {
  --feature-bg: #e3f1fc;
  background: var(--feature-bg);
}
.feature-card--green {
  --feature-bg: #e4f5ec;
  background: var(--feature-bg);
}
.feature-card--peach {
  --feature-bg: #fbe9dd;
  background: var(--feature-bg);
}
.feature-card--lavender {
  --feature-bg: #e9e4fa;
  background: var(--feature-bg);
}
.feature-card--yellow {
  --feature-bg: #fff0ca;
  background: var(--feature-bg);
}

.feature-copy h3 {
  margin: 0 0 6px;
  font-size: var(--fs-h3);
  font-weight: 650;
  line-height: 1.2;
}

.feature-copy p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.45;
  text-wrap: pretty;
}

.feature-card--blue .feature-copy h3 {
  padding-right: 82px;
}

.feature-card-owl {
  position: absolute;
  z-index: 3;
  top: 22px;
  right: 20px;
}

.feature-card-owl img {
  display: block;
  width: 72px;
  height: auto;
  transform: translateY(9px) rotate(5deg);
  transition: transform 0.16s ease;
}

.feature-card-owl .thought {
  top: 4px;
  right: 80px;
  left: auto;
  width: 150px;
}

.feature-shots {
  position: relative;
  width: 94%;
  margin: 20px auto -12px;
  transform: rotate(-1deg);
  transform-origin: bottom center;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.45s ease;
}

.feature-card:nth-child(even) .feature-shots {
  transform: rotate(1deg);
}

.feature-shots img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  object-position: top;
  border: 3px solid white;
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: 0 18px 35px rgb(56 46 51 / 14%);
}

.feature-shots--double {
  height: 340px;
}

.feature-shots--double picture {
  position: absolute;
  width: 78%;
}

.feature-shots--double picture:first-child {
  top: 0;
  left: 0;
}

.feature-shots--double picture:last-child {
  right: 0;
  bottom: -4px;
  transform: rotate(3deg);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-shots--double img {
  max-height: none;
}

@media (hover: hover) {
  .feature-shots:has(img:hover) {
    transform: rotate(0) scale(1.035);
    filter: drop-shadow(0 20px 20px rgb(56 46 51 / 10%));
  }

  .feature-card:nth-child(even) .feature-shots:has(img:hover) {
    transform: rotate(0) scale(1.035);
  }

  .feature-shots--double:has(img:hover) picture:last-child {
    transform: rotate(0) scale(1.02);
  }
}

.feature-dots {
  display: none;
}

@media (min-width: 761px) {
  .feature-grid.is-masonry {
    position: relative;
    display: block;
    height: var(--masonry-height);
  }

  .feature-grid.is-masonry .feature-card {
    position: absolute;
    top: var(--masonry-top);
    left: 0;
    width: calc(50% - 9px);
  }

  .feature-grid.is-masonry .feature-card:nth-child(even) {
    left: calc(50% + 9px);
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .feature-card {
    padding: 28px 28px 0;
  }

  .feature-card--blue .feature-copy h3 {
    padding-right: 58px;
  }

  .feature-card-owl {
    top: 12px;
    right: 16px;
  }

  .feature-card-owl img {
    width: 46px;
  }

  .feature-shots {
    width: calc(100% + 52px);
    margin: 12px 0 -12px -8px;
  }

  .feature-shots img {
    height: clamp(220px, 25vw, 280px);
    max-height: none;
  }

  .feature-shots--double {
    display: grid;
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    transform: none;
  }

  .feature-shots--double picture,
  .feature-shots--double picture:first-child,
  .feature-shots--double picture:last-child,
  .feature-shots--double:has(img:hover) picture:last-child {
    position: static;
    width: auto;
    transform: none;
  }

  .feature-shots--double img {
    object-position: top left;
  }
}

/* owls */
.owl-zone > img {
  transform-origin: bottom center;
  transition: transform 0.16s ease;
}

@media (hover: hover) {
  .owl-zone:has(> img:hover) .thought {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .owl-zone > img:hover {
    transform: translateY(-5px) rotate(-3deg) scale(1.04);
  }

  .feature-card-owl > img:hover {
    transform: translateY(4px) rotate(-3deg) scale(1.04);
  }
}

/* ── Pricing ────────────────────────────────────────────── */
.pricing {
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  background: white;
  transition:
    transform 0.26s ease,
    box-shadow 0.26s ease;
}

.price-card.featured {
  border-color: #ffc5da;
}

@media (hover: hover) {
  .price-card:hover {
    z-index: 3;
    transform: translateY(-4px);
    box-shadow: 0 24px 55px rgb(74 40 53 / 12%);
  }
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: #fff0f5;
  color: var(--hot);
  font-size: var(--fs-kicker);
}

.price-card h3 {
  margin: 0;
  font-size: 24px;
}

.price {
  margin: 12px 0 28px;
  font-size: 48px;
  font-weight: 800;
}

.price small {
  display: block;
  color: #716b70;
  font-size: var(--fs-caption);
  font-weight: 500;
}

.price-card ul {
  display: grid;
  flex: 1;
  margin: 0;
  padding: 0;
  gap: 12px;
  list-style: none;
  align-content: start;
}

.price-card li::before {
  margin-right: 10px;
  color: var(--hot);
  content: '✓';
}

.price-card__action {
  width: 100%;
  margin-top: 28px;
  box-shadow: 0 6px 16px rgb(195 19 78 / 14%);
}

.pricing-owl {
  position: absolute;
  z-index: 5;
  top: -92px;
  right: 30px;
  width: 130px;
}

.pricing-owl img {
  width: 100%;
  height: auto;
}

.pricing-owl .thought {
  top: -22px;
  right: 100px;
  left: auto;
  width: 170px;
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq-layout {
  position: relative;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #faf7f7;
  transition: background-color 0.26s ease;
}

.faq-item[open] {
  background: #fff0f5;
}

.faq-question {
  display: flex;
  width: 100%;
  padding: 22px 24px;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

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

.faq-chevron {
  flex: 0 0 auto;
  color: var(--hot);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer p {
  max-width: 65ch;
  margin: 0 24px;
  padding-bottom: 24px;
  color: #746d71;
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }

  .faq-item::details-content {
    overflow: hidden;
    height: 0;
    opacity: 0;
    transition:
      height 0.26s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.25s ease,
      content-visibility 0.35s allow-discrete;
  }

  .faq-item[open]::details-content {
    height: auto;
    opacity: 1;
  }
}

.faq-owl {
  position: absolute;
  right: 34px;
  bottom: 100%;
  width: 130px;
}

.faq-owl img {
  width: 100%;
  height: auto;
}

.faq-owl .thought {
  top: -45px;
  right: 100px;
  left: auto;
  width: 170px;
}

/* ── Footer ─────────────────────────────────────────────── */
.landing-footer {
  padding: 24px 0 28px;
  background: #171719;
  color: #aaa;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px 0 12px;
  border: 1px solid #343337;
  border-radius: var(--radius-pill);
  color: white;
  font-size: 14px;
  font-weight: 650;
  transition:
    border-color 0.22s ease,
    transform 0.22s ease;
}

.footer-social a svg {
  color: #ff4f8d;
}

@media (hover: hover) {
  .footer-social a:hover {
    transform: translateY(-2px);
    border-color: var(--hot);
  }
}

.footer-bottom {
  display: flex;
  padding-top: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #343337;
  font-size: 12px;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  line-height: 1.5;
  white-space: nowrap;
}

.footer-docs {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #ddd;
}

@media (hover: hover) {
  .footer-docs:hover {
    color: white;
  }
}

/* ── Reveal on scroll (CSS scroll-driven) ───────────────── */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      transform: translateY(48px);
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 35%;
    }

    /* только подъём, без прозрачности — фейд читался как «блюр» нижнего контента */
    @keyframes reveal-in {
      to {
        transform: none;
      }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-visual {
    animation: none;
  }

  /* никакого движения нигде: hover-переходы, повороты шотов, сов (P2-2) */
  .button,
  .button b,
  .feature-shots,
  .feature-shots--double picture:last-child,
  .owl-zone > img,
  .feature-card-owl img,
  .thought,
  .faq-item,
  .faq-chevron,
  .price-card,
  .footer-social a {
    transition: none !important;
  }
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 760px) {
  .landing {
    --fs-h2: clamp(30px, 7vw, 32px);
    --fs-h3: 22px;
    --fs-kicker: 13px;
    --fs-body: 16px;
  }

  .container {
    width: min(100% - 32px, 580px);
  }
}

/* компактный хедер с бургер-меню уже с ~900px, чтобы десктоп-ряд кнопок не переполнялся (P1-2) */
@media (max-width: 900px) {
  .landing-header {
    height: 62px;
  }

  .landing-header-inner {
    padding-inline: 4px;
    gap: 12px;
  }

  .landing-logo img {
    width: 126px;
  }

  .landing-nav,
  .landing-login,
  .landing-try {
    display: none;
  }

  .landing-menu {
    position: relative;
    display: grid;
    width: 44px;
    height: 44px;
    margin-left: auto;
    place-content: center;
    gap: 5px;
    border: 0;
    border-radius: var(--radius-round);
    background: #fff1f5;
    anchor-name: --menu-btn;
  }

  .landing-menu span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #171719;
    transition:
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.2s ease;
  }

  /* burger → cross when the menu is open */
  .landing-menu[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .landing-menu[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
  }

  .landing-menu[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* закрытое меню остаётся display:none (из базового правила) — не ловит клики по CTA
     и не попадает в таб-порядок (P0-1); grid включается только на открытом */
  .landing-mobile-nav {
    position: fixed;
    inset: auto 16px auto auto;
    top: 66px;
    width: 232px;
    margin: 0;
    padding: 14px;
    border: 0;
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: 0 18px 50px rgb(0 0 0 / 15%);
  }

  .landing-mobile-nav.is-open {
    display: grid;
    animation: menu-in 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes menu-in {
    from {
      transform: translateY(-10px);
      opacity: 0;
    }
  }

  /* enter/exit with discrete display animation where supported */
  @supports (transition-behavior: allow-discrete) {
    .landing-mobile-nav {
      transform: translateY(-10px);
      opacity: 0;
      transition:
        transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.2s ease,
        overlay 0.24s allow-discrete,
        display 0.24s allow-discrete;
    }

    .landing-mobile-nav.is-open {
      transform: translateY(0);
      opacity: 1;
      animation: none;
    }

    @starting-style {
      .landing-mobile-nav.is-open {
        transform: translateY(-10px);
        opacity: 0;
      }
    }
  }

  .landing-mobile-nav a {
    padding: 12px;
    color: inherit;
    text-decoration: none;
  }

  .landing-mobile-nav .button {
    margin-top: 6px;
  }

  /* CTA в меню: белый текст, 14px — «Попробовать бесплатно» влезает в одну строку в панели 232px */
  .landing-mobile-nav .button--primary {
    min-height: 44px;
    padding-inline: 14px;
    color: #fff;
    font-size: 14px;
    text-align: center;
  }

  @media (prefers-reduced-motion: reduce) {
    .landing-mobile-nav,
    .landing-mobile-nav.is-open {
      transition: none;
      animation: none;
    }

    .landing-menu span {
      transition: none;
    }
  }
}

@media (max-width: 760px) {
  /* hero: copy on top, phone below, rising into next section */
  .hero {
    min-height: auto;
    padding-block: 12px 0;
    grid-template-columns: 1fr;
  }

  .hero h1 {
    margin: 14px 0 16px;
    font-size: clamp(36px, 10vw, 40px);
    letter-spacing: -0.03em;
  }

  .hero-subtitle {
    margin: 0 0 20px;
    font-size: 16px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero .button {
    width: min(100%, 320px);
    min-height: 52px;
    margin-inline: auto;
    font-size: 15px;
    box-shadow: 0 10px 24px rgb(195 19 78 / 20%);
  }

  .hero-visual {
    min-height: 420px;
    margin-top: 40px;
  }

  .laptop,
  .hero-parallax-owl {
    display: none;
  }

  .hero-owl-wrap {
    z-index: 3;
    top: 8px;
    right: calc(50% - 168px);
    left: auto;
    width: 74px;
  }

  .phone {
    position: relative;
    z-index: 2;
    display: block;
    width: min(86vw, 340px);
    margin-inline: auto;
    padding: 6px;
    border-radius: 44px;
    background: #202024;
    box-shadow: 0 28px 55px rgb(39 25 31 / 22%);
  }

  .phone-screen {
    overflow: hidden;
    aspect-ratio: 0.631;
    border-radius: 38px;
    background: white;
  }

  .phone-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }

  /* нижнее меню вырезано из скролл-фото и закреплено плавающей пилюлей —
     как в реальном приложении: контент едет, таб-бар стоит */
  .phone-screen .phone-nav {
    position: absolute;
    z-index: 2;
    bottom: 4%;
    left: 50%;
    width: 92%;
    height: auto;
    transform: translateX(-50%);
    filter: drop-shadow(0 6px 14px rgb(39 25 31 / 14%));
  }

  /* phone rises as the hero scrolls through the viewport */
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .phone {
        animation: phone-rise linear both;
        animation-timeline: view();
        animation-range: entry 10% cover 45%;
      }

      @keyframes phone-rise {
        from {
          transform: translateY(40px);
        }
        to {
          transform: translateY(-12px);
        }
      }

      /* контент внутри телефона едет в сторону скролла: длинный скрин дашборда
         панорамируется сверху вниз. Таймлайн — корневой скролл, а не view():
         телефон стоит в самом верху и при загрузке уже в кадре, поэтому view()
         с entry/exit залипал на top. ponytail: 720px ≈ путь скролла, пока
         телефон читаем; поменяется высота hero — подправить */
      .phone-screen img {
        animation: phone-content-scroll linear both;
        animation-timeline: scroll(root block);
        animation-range: 0 720px;
      }

      @keyframes phone-content-scroll {
        from {
          object-position: top;
        }
        to {
          object-position: bottom;
        }
      }
    }
  }

  .thought {
    display: none;
  }

  .section {
    padding-block: 20px;
  }

  .section-title {
    margin-bottom: 22px;
  }

  .section-heading {
    padding-top: 0;
  }

  .section-heading h2 {
    line-height: 1.04;
  }

  /* features → full-bleed scroll-snap carousel */
  .feature-scroller {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    padding-bottom: 34px;
  }

  .feature-grid {
    display: flex;
    grid-auto-flow: unset;
    grid-template-columns: none;
    gap: 8px;
    padding-inline: max(16px, calc(50vw - 290px));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .feature-grid::-webkit-scrollbar {
    display: none;
  }

  .feature-card {
    flex: 0 0 calc(100% - 40px);
    width: calc(100% - 40px);
    height: 365px;
    min-height: 0;
    padding: 26px 22px 0;
    grid-column: auto !important;
    grid-row: auto !important;
    scroll-snap-align: center;
  }

  .feature-card--blue .feature-copy h3 {
    padding-right: 62px;
  }

  .feature-card--blue .feature-copy p {
    padding-right: 0;
  }

  .feature-copy h3 {
    margin-bottom: 10px;
    line-height: 1;
  }

  .feature-copy p {
    font-size: 16px;
    line-height: 1.4;
  }

  .feature-card-owl {
    top: 14px;
    right: 14px;
  }

  .feature-card-owl img {
    width: 58px;
  }

  .feature-shots {
    width: calc(100% + 44px);
    margin: 12px 0 0 -6px;
  }

  .feature-shots img {
    height: 220px;
    max-height: none;
  }

  .feature-shots--double {
    display: grid;
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    transform: none;
  }

  .feature-shots--double picture,
  .feature-shots--double picture:first-child,
  .feature-shots--double picture:last-child {
    position: static;
    width: auto;
    transform: none;
  }

  .feature-shots--double img {
    height: 190px;
    object-position: top left;
  }

  /* dots overlay */
  .feature-dots {
    position: absolute;
    bottom: 0;
    left: 50%;
    display: flex;
    transform: translateX(-50%);
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: rgb(255 255 255 / 82%);
    box-shadow: 0 8px 22px rgb(67 35 47 / 14%);
    backdrop-filter: blur(6px);
  }

  /* зона нажатия 44×44, видимая точка через ::before (P1-7) */
  .feature-dots button {
    position: relative;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    place-content: center;
    cursor: pointer;
  }

  .feature-dots button::before {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-round);
    background: #dfd7da;
    content: '';
    transition:
      width 0.26s ease,
      background 0.26s ease;
  }

  .feature-dots button.active::before {
    width: 24px;
    border-radius: var(--radius-pill);
    background: #efc9d5;
  }

  /* индикатор автолистания: активная точка-полоска заполняется брендом за 4.5с (V-4) */
  .feature-dots button.active::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 8px;
    margin: -4px 0 0 -12px;
    border-radius: var(--radius-pill);
    background: var(--hot);
    content: '';
    transform-origin: left center;
    animation: dot-fill 4.5s linear both;
  }

  .feature-dots.paused button.active::after {
    animation-play-state: paused;
  }

  @keyframes dot-fill {
    from {
      transform: scaleX(0);
    }
    to {
      transform: scaleX(1);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .feature-dots button.active::after {
      animation: none;
      transform: scaleX(1);
    }
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .price-card {
    padding: 30px;
  }

  .price {
    font-size: 42px;
  }

  .pricing-owl,
  .faq-owl {
    display: none;
  }

  .faq-question {
    padding: 18px;
  }

  .faq-answer p {
    margin-inline: 18px;
  }
}

@media (max-width: 700px) {
  .footer-social {
    flex-direction: column;
    gap: 8px;
  }

  .footer-social a {
    gap: 6px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .footer-social a svg {
    width: 18px;
    height: 18px;
  }

  .footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
  }

  .footer-meta {
    display: grid;
    gap: 6px;
    white-space: normal;
  }
}
