:root { --radius: 20px; --on-red: #fffaf3; --cta-shadow: rgba(171, 59, 50, .22); --sticky-bg: rgba(251, 247, 239, .94); }

    main { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }
    section { padding: 32px 0; }
    h1, h2, h3 { margin: 0; text-wrap: balance; }
    h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -.035em; text-align: center; }
    .sub { max-width: 560px; margin: 10px auto 0; color: var(--muted); text-align: center; line-height: 1.55; }
    .center { text-align: center; }
    html { scroll-behavior: smooth; }
    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

    .cta {
      position: relative; isolation: isolate; overflow: hidden;
      display: inline-flex; align-items: center; justify-content: center; gap: 10px;
      min-height: 60px; padding: 0 32px; border-radius: 16px;
      color: var(--on-red); background: var(--red); text-decoration: none; white-space: nowrap;
      font-size: 18px; font-weight: 750; letter-spacing: -.02em;
      box-shadow: 0 10px 24px var(--cta-shadow);
      transition: background .15s, transform .15s;
    }
    .cta:hover { background: var(--red-dark); transform: translateY(-1px); }
    .cta::before {
      content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
      background: linear-gradient(110deg, transparent 32%, rgba(255,255,255,.12) 42%, rgba(255,255,255,.38) 50%, rgba(255,255,255,.12) 58%, transparent 68%);
      background-size: 250% 100%; background-repeat: no-repeat; background-position: 150% 0; animation: cta-shine 4s ease-in-out 1.4s infinite;
    }
    @keyframes cta-shine {
      0% { background-position: 150% 0; }
      45%, 100% { background-position: -50% 0; }
    }
    @media (prefers-reduced-motion: reduce) { .cta::before, .ready i, .hint span { animation: none !important; } }
    .cta .arr { font-size: 20px; line-height: 1; }
    .block-cta { margin-top: 28px; }

    /* Первый экран */
    /* ПК: низ видео ровно по низу кнопки, плашка «без ИИ» в одной строке с «Время ожидания» */
    .hero {
      display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); column-gap: 40px;
      grid-template-areas: "brand brand" "intro media" "cta media" "ready .";
      padding-top: 24px;
    }
    .intro { grid-area: intro; }
    .hero-brand { grid-area: brand; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 24px; }
    .hero-brand img { display: block; width: 90px; height: auto; filter: brightness(0) invert(1); }
    .hero-brand span { color: #e1eee8; font-size: 11px; line-height: 1.4; }
    .hero-cta { grid-area: cta; justify-self: start; }
    .hero .ready { grid-area: ready; }
    .media { grid-area: media; align-self: end; display: flex; flex-direction: column-reverse; align-items: flex-start; }
    .hero .no-ai-pill { margin: 0 0 12px; }
    .hero .trailer { width: 100%; }
    .hero h1 { font-size: clamp(30px, 3.1vw, 39px); font-weight: 850; line-height: 1.08; letter-spacing: -.04em; }
    .hero h1 em { font-style: normal; color: var(--red); white-space: nowrap; }
    .hero-lead { margin: 14px 0 0; color: var(--muted); font-size: 18px; line-height: 1.5; }
    .perks4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0 22px; padding: 0; list-style: none; }
    .perks4 li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); line-height: 1.3; }
    .perks4 img { flex: 0 0 36px; width: 36px; height: 36px; }
    .perks4 span { min-width: 0; }
    .perks4 b { display: block; font-size: 15px; white-space: nowrap; }
    .perks4 small { display: block; color: var(--muted); font-size: 13px; }
    .ready { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; color: var(--muted); font-size: 14px; }
    .ready b { color: var(--ink); }
    .ready i { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #45ef8b; animation: pulse 1.6s ease-out infinite; }
    @keyframes pulse { 0% { box-shadow: 0 0 0 0 #45ef8b88; } 100% { box-shadow: 0 0 0 9px #45ef8b00; } }
    .hero-more { display: none; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
    .hero-more:hover { color: var(--ink); }
    .hero-more span { display: inline-block; font-size: 20px; line-height: 1; animation: more-down 1.6s ease-in-out infinite; }
    @keyframes more-down { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
    @media (prefers-reduced-motion: reduce) { .hero-more span { animation: none; } }

    /* Трейлер: обложка остаётся, видео грузится только по клику */
    .trailer { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; outline: 1px solid rgba(255,255,255,.48); outline-offset: -1px; background: #2a2420; box-shadow: 0 24px 60px rgba(74, 53, 34, .18); }
    .trailer > img, .trailer video { display: block; width: 100%; height: 100%; object-fit: cover; }
    .play {
      position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
      padding: 16px; border: 0; color: #fff; background: radial-gradient(circle at center, rgba(0, 0, 0, .28), rgba(0, 0, 0, .05) 70%);
      font-size: 16px; font-weight: 700; text-align: center; text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
    }
    .play-btn { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--red); box-shadow: 0 8px 26px rgba(0, 0, 0, .35), 0 0 0 6px rgba(255, 250, 243, .25); transition: transform .2s; }
    .play:hover .play-btn { transform: scale(1.07); }
    .play svg { width: 24px; margin-left: 4px; fill: var(--on-red); }
    .duration { position: absolute; right: 12px; bottom: 12px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 13px; font-weight: 600; text-shadow: none; }
    .no-ai-pill b { font-weight: 700; color: #0d3a29; font-synthesis: weight; }
    /* Если не влезает в строку, «Снято без ИИ,» остаётся сверху, остальное целиком переносится вниз */
    .pill-text { text-align: center; }
    .pill-text > * { display: inline-block; white-space: nowrap; }

    /* Листалка «Сказка» */
    .carousel { position: relative; margin-top: 30px; }
    .story { display: flex; gap: 16px; margin: 0; padding: 0 0 4px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .story::-webkit-scrollbar { display: none; }
    .story li { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; }
    .story img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; object-fit: cover; box-shadow: var(--shadow); }
    .story h3 { margin: 12px 0 0; font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
    .story p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
    .nav { position: absolute; top: 0; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); box-shadow: 0 6px 18px rgba(74, 53, 34, .14); font-size: 20px; }
    .nav.prev { left: -18px; } .nav.next { right: -18px; }
    .nav:disabled { opacity: 0; pointer-events: none; }
    .dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
    .dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line); transition: width .2s, background .2s; }
    .dots i.on { width: 22px; background: var(--red); }
    .hint { display: none; }

    /* Как это работает */
    .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0 0; padding: 0; list-style: none; counter-reset: s; }
    .steps li { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
    .steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 10px; color: var(--on-red); background: var(--red); font-weight: 800; transform: rotate(-6deg); }
    .steps h3 { font-size: 19px; letter-spacing: -.02em; }
    .steps p { flex: 1; margin: 6px 0 0; color: var(--muted); line-height: 1.5; font-size: 15px; }
    .steps .time { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 8px; background: var(--red-pale); color: var(--red-dark); font-size: 13px; font-weight: 650; }

    /* Что внутри */
    .feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; }
    .feats li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
    .feats img { flex: 0 0 42px; width: 42px; height: 42px; }
    .feats b { display: block; font-size: 15px; }
    .feats small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.4; }

    .final { text-align: center; padding: 52px 24px; border-radius: 28px; background: var(--red-pale); }
    .final .cta { margin-top: 24px; }
    .final .ready { justify-content: center; }
    .final h2 em { font-style: normal; color: var(--red); white-space: nowrap; }

    .sticky { display: none; }

    @media (max-width: 860px) {
      section { padding: 24px 0; }
      .site-brand { justify-content: center; }
      .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "media" "intro" "cta" "ready"; text-align: center; max-width: 600px; margin-inline: auto; }
      .hero-brand { align-items: center; margin-bottom: 12px; }
      /* Планшеты: как на ПК — иконки в одну колонку по левому краю карточек, текст слева */
      .perks4 li { text-align: left; padding: 14px 18px; }
      .final .cta { max-width: 560px; margin-inline: auto; }
      .media { flex-direction: column; align-items: center; margin-bottom: 22px; }
      .hero .no-ai-pill { margin: 18px 0 0; }
      .hero-cta { justify-self: stretch; }
      .hero-lead { font-size: 16px; }
      .perks4 { margin: 18px 0 20px; }
      .ready { justify-content: center; }
      .cta { display: flex; width: 100%; min-height: 56px; padding: 0 18px; font-size: 17px; }
      .play { font-size: 15px; gap: 10px; }
      .play-btn { width: 58px; height: 58px; }
      .play svg { width: 20px; }

      .story { margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px; gap: 12px; }
      .story li { flex-basis: 82%; }
      .nav { display: none; }
      .hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 0 0; color: var(--muted); font-size: 13px; transition: opacity .3s; }
      .hint span { display: inline-block; animation: nudge 1.4s ease-in-out infinite; }
      .hint.gone { opacity: 0; }

      .steps { grid-template-columns: 1fr; gap: 10px; }
      .steps li { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; padding: 16px; }
      .steps li::before { grid-row: span 3; margin: 0; }
      .steps .time { justify-self: start; margin-top: 8px; }
      .feats { grid-template-columns: 1fr 1fr; }

      .sticky {
        position: fixed; z-index: 10; left: 0; right: 0; bottom: 0;
        display: block; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: var(--sticky-bg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
        border-top: 1px solid var(--line);
        transform: translateY(110%); transition: transform .25s;
      }
      .sticky.on { transform: none; }
      .sticky .cta { box-shadow: none; }
    }
    @media (max-width: 860px) {
      .hero { grid-template-areas: "brand" "media" "heading" "cta" "ready" "perks" "more"; }
      .intro { display: contents; }
      .hero h1 { grid-area: heading; }
      .hero-lead { display: none; }
      .hero-cta { margin-top: 20px; }
      .perks4 { grid-area: perks; margin: 22px 0 0; }
      .hero-more { grid-area: more; display: inline-flex; justify-self: center; margin-top: 18px; }
    }
    /* На узких экранах карточки вертикальные: иконка сверху, текст по центру */
    @media (max-width: 380px) {
      .cta { gap: 8px; padding: 0 14px; font-size: 16px; }
      .final { padding: 36px 14px; }
      .final .cta { font-size: 15px; gap: 6px; }
      .hero h1 { font-size: 27px; }
    }
    @media (min-width: 481px) and (max-width: 600px) {
      .perks4 li { padding-inline: 14px; gap: 10px; }
    }
    @media (min-width: 861px) and (max-width: 1000px) {
      .perks4 li { padding-inline: 8px; gap: 8px; }
    }
    @media (max-width: 480px) {
      .perks4 { gap: 8px; }
      .perks4 li { flex-direction: column; gap: 6px; padding: 12px 6px; text-align: center; }
      .perks4 img { flex-basis: auto; width: 32px; height: 32px; }
      .perks4 b { font-size: 14px; }
      .perks4 small { font-size: 12px; }
      .feats { grid-template-columns: 1fr; }
    }
    @keyframes nudge { 50% { transform: translateX(6px); } }

    :root { --red:#ac080b; --red-dark:#90070a; --red-pale:#f8e5e5; --on-red:#fffaf7; --cta-shadow:rgba(172,8,11,.24); }
    body { overflow-x:clip; }
    .hero,.final { --ink:#fff; --muted:#d2e4dd; --surface:rgba(255,255,255,.14); --line:rgba(255,255,255,.26); color:#fff; }
    .hero { position:relative; z-index:0; padding-bottom:42px; }
    .hero::before { content:''; position:absolute; z-index:-1; top:0; bottom:0; left:calc(50% - 50vw); right:calc(50% - 50vw); border-radius:0 0 32px 32px; background:#10493c url('/_assets/5070dc12a3bdb983/assets/landing/green-pattern-repeat.svg') center top / clamp(840px, 140vw, 2000px) auto repeat; }
    .site-brand .brand-logo { filter:brightness(0) invert(1); }
    .hero h1 em,.final h2 em { color:#1f6a56; background:#fff; display:inline-block; padding:0 .25em; border-radius:.35em; transform:rotate(-2deg); }
    .perks4 li { background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.26);  }
    .final { border:1px solid rgba(255,255,255,.5); background:#10493c url('/_assets/5070dc12a3bdb983/assets/landing/green-pattern-repeat.svg') center 48% / clamp(520px, 130vw, 1600px) auto repeat; box-shadow:0 18px 44px rgba(16,73,60,.2); }
    .steps li::before { color:#fff; background:#1f6a56; }
    .steps .time { color:#1f6a56; }
    body .hero-lead, body .hero .ready, body .perks4 small { color:#e1eee8; }
    body .hero h1, body .hero h1 em, body .final h2, body .final h2 em { color:#fff; } body .hero h1 em, body .final h2 em { color:#1f6a56; }
    body .final .sub, body .final .ready { color:#e1eee8; } body .hero .ready b, body .final .ready b { color:#fff; }
