/* ============================================================
   Ася — лендинг по макету Figma «Для Клода» (node 2603-4876)
   Десктоп 1920 (контент 1120) · мобайл 375 (брейкпоинт ≤1023px)
   ============================================================ */
@font-face{font-family:"Gilroy";src:url("fonts/gilroy-regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Gilroy";src:url("fonts/gilroy-bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}

:root{
  --accent:#00b9bf; --accent-hover:#17c4c9; --accent-pressed:#009fa4; --accent-soft:#def3f4;   /* бирюзовый по DS Askona */
  --red:#c94c46; --gray-text:#666; --title:rgba(33,33,33,.8); --text:#212121; --white:#fff;
  --font:'Gilroy','Helvetica Neue',Arial,sans-serif;
  --shadow-card:0 3.3px 16.5px rgba(0,0,0,.12);
  --radius-card:30px;
  --t:200ms ease;
  --container:1128px;
  --gutter:16px;
  --edge:max(var(--gutter),calc((100% - var(--container)) / 2));
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--text);font-family:var(--font);font-size:16px;line-height:1.35;overflow-x:hidden}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
h1,h2,h3,p{margin:0;font-weight:inherit}
/* обрезка текстового бокса по кап-высоте, как в Figma (text-box-trim) */
.t{text-box:trim-both cap alphabetic}
.visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.m-only{display:none}

.layout{display:flex;flex-direction:column;min-height:100vh}
.main{flex:1 0 auto;overflow-x:hidden}
.container{position:relative;width:100%;max-width:calc(var(--container) + var(--gutter) * 2);margin:0 auto;padding:0 var(--gutter)}
.section{position:relative;overflow:hidden;background:#fff center top/1920px auto no-repeat}

/* ---------- Кнопка ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;height:53px;padding:0 28px;border-radius:40px;background:var(--accent);color:#fff;font-weight:700;font-size:18px;line-height:24px;letter-spacing:.36px;white-space:nowrap;transition:background-color var(--t),transform var(--t)}
.btn:hover{background:var(--accent-hover)}
.btn:active{background:var(--accent-pressed)}
.btn:focus-visible,.card:focus-visible,.close:focus-visible,.cookie__hit:focus-visible,.carousel:focus-visible{outline:3px solid var(--accent-soft);outline-offset:3px}

/* ---------- Заголовки секций ---------- */
.head{text-align:center;margin:0 auto}
.eyebrow{font-size:35px;line-height:35px;color:var(--gray-text)}
.title{margin-top:22px;font-weight:700;font-size:50px;line-height:1.1;color:var(--title)}
.lead{margin:42px auto 0;width:582px;font-size:28px;line-height:1.35}


/* ============ Блок 1 · Hero (750) ============ */
/* высота баннера = 100% высоты экрана − высота шапки из виджета (--hdr считает скрипт) */
.hero{background-color:#8fbaf0;height:max(600px,calc(100svh - var(--hdr,0px)));background-image:url("hero.webp");background-size:cover;background-position:center}
.hero .container{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding-top:var(--hero-pad,0px)}
.hero__title{width:643px;font-weight:700;font-size:80px;line-height:80px;color:var(--title)}
.hero__sub{margin-top:37px;width:548px;font-size:40px;line-height:1.35}
.hero .btn{margin-top:86px}

/* ============ Блок 2 · Героиня (750) ============ */
.heroine{height:750px}
.heroine .container{padding-top:91px}
.heroine__row{display:flex;gap:71px;margin-top:63px}
.carousel{position:relative;flex:0 0 572px;height:367px;border-radius:var(--radius-card);overflow:hidden;box-shadow:var(--shadow-card);background:#e9f1fa;cursor:pointer}
.carousel img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .5s ease-in-out}
.carousel img.is-active{opacity:1}
.dots{position:absolute;left:50%;bottom:17px;transform:translateX(-50%);display:flex;gap:4px;z-index:1}
.dots button{width:16px;height:16px;border-radius:50%;background:var(--accent-soft);transition:background-color var(--t)}
.dots button.is-active{background:var(--accent)}
.dots button:hover{background:var(--accent-hover)}
.dots button:active{background:var(--accent-pressed)}
.heroine__text{width:477px;padding-top:33px}
.heroine__text p{font-size:28px;line-height:1.35}
.heroine__text .btn{margin-top:38px}

/* ============ Блок 3 · Печенька (1030) ============ */
.cookie{height:1030px;background:#bcd9f7 url("cookie-bg.webp") center top/cover no-repeat}
.cookie .container{height:100%;padding-top:91px}
.cookie .lead{position:relative;z-index:3}
.cookie__stage{position:absolute;left:50%;top:167px;width:1132px;height:846px;margin-left:-571px;pointer-events:none}
/* Состояния из Figma «Печенька — состояния»: Целая → Тряска (0.45с, 7°, ×1.03) → Раскрытие (0.6с, Bouncy: целая ×1.15 и гаснет, разломанная ×1→×1.667) → Разломана */
.cookie__whole,.cookie__parts{position:absolute;transform-origin:50% 50%;will-change:transform,opacity}
.cookie__whole{left:0;top:0;width:1132px;height:846px;transition:opacity .4s ease-in-out,transform .4s ease-in-out}
.cookie__parts{left:136.4px;top:165.8px;width:859.2px;height:479.4px;opacity:0;transform:scale(1.667);transition:opacity .3s ease-in-out}
.cookie__part{position:absolute;display:block;will-change:transform}
.cookie__part img{display:block;width:100%;height:100%;pointer-events:none;user-select:none}
.cookie.is-float .cookie__part{animation:drift var(--dur) ease-in-out var(--dl) infinite alternate}
@keyframes drift{from{transform:translate(0,0) rotate(0)}to{transform:translate(var(--dx),var(--dy)) rotate(var(--dr))}}
.cookie__hit{position:absolute;left:50%;top:330px;width:560px;height:480px;margin-left:-280px;border-radius:50%;z-index:2}
.cookie .btn{position:absolute;left:50%;top:886px;transform:translateX(-50%);z-index:3}
.cookie.is-shaking .cookie__whole{animation:shake .45s cubic-bezier(.36,.07,.19,.97) forwards}
.cookie.is-open .cookie__whole{opacity:0;transform:rotate(0) scale(1.15);transition:opacity .25s ease-out,transform .6s cubic-bezier(.34,1.56,.64,1)}
.cookie.is-open .cookie__parts{opacity:1;transition:none}
@keyframes shake{
  0%{transform:rotate(0) scale(1)}
  15%{transform:rotate(-5deg) scale(1.01) translateX(-6px)}
  30%{transform:rotate(6deg) scale(1.015) translateX(6px)}
  45%{transform:rotate(-6deg) scale(1.02) translateX(-5px)}
  60%{transform:rotate(7deg) scale(1.025) translateX(4px)}
  75%{transform:rotate(-3deg) scale(1.03) translateX(-2px)}
  100%{transform:rotate(7deg) scale(1.03)}
}
/* крошки и вспышка в момент разлома */
.cookie__flash{position:absolute;left:50%;top:50%;width:520px;height:520px;margin:-260px 0 0 -260px;border-radius:50%;background:radial-gradient(closest-side,rgba(255,250,230,.85) 0%,rgba(255,240,205,.45) 40%,rgba(255,240,205,.12) 70%,rgba(255,240,205,0) 100%);opacity:0;transform:scale(.3);pointer-events:none}
.cookie.is-open .cookie__flash{animation:flash .7s ease-out}
@keyframes flash{0%{opacity:0;transform:scale(.3)}25%{opacity:1}100%{opacity:0;transform:scale(1.6)}}

/* ============ Блок 4 · Выберите Асю (1574) ============ */
.choose{height:1574px}
.choose .container{padding-top:91px}
.grid3{display:grid;grid-template-columns:repeat(3,357px);column-gap:24px}
.choose .grid3{margin-top:58px;row-gap:64px}
.card{display:flex;flex-direction:column;gap:40px;text-align:left;width:357px}
.card__photo{position:relative;height:366px;border-radius:var(--radius-card);overflow:hidden;background:#f1ece9}   /* цвет фона фото овечек */
.card__photo>img:first-child{width:100%;height:100%;object-fit:cover;transition:opacity .45s ease,transform .45s cubic-bezier(.2,.7,.2,1)}
/* карточка овечки не растёт: при наведении (мышь) и нажатии (тач и клик) плавно увеличивается только фото внутри рамки */
@media (hover:hover){.card:hover .card__photo>img:first-child{transform:scale(1.06)}}
.card:active .card__photo>img:first-child{transform:scale(1.08);transition-duration:.45s,.25s}
.card__arrow{transition:filter var(--t)}
.card:hover .card__arrow{filter:brightness(1.1)}   /* тот же ховер, что у .btn: #00b9bf → #17c4c9 */
.card:active .card__arrow{filter:brightness(.86)}
.card__arrow{position:absolute;right:12px;bottom:12px;width:48px;height:48px}
.card__body{display:flex;flex-direction:column;gap:24px}
.card__name{font-weight:700;font-size:30px;line-height:1.18;color:var(--title)}
.card__text{min-height:93px;font-size:25px;line-height:1.35}

/* ============ Блок 7 · Символ года (920) ============ */
.symbol{background-color:#e4eefb;height:920px;background-image:url("symbol-bg.webp");background-size:1920px 920px}
.symbol .container{padding-top:91px;text-align:center}
.symbol .grid3{margin-top:68px;text-align:left}
.use{display:flex;flex-direction:column;gap:40px}
.use__photo{height:266px;border-radius:var(--radius-card);overflow:hidden;box-shadow:var(--shadow-card);background:#e9f1fa}
.use__photo img{width:100%;height:100%;object-fit:cover}
.use .card__text{min-height:120px}
.symbol .btn{margin-top:64px}

/* ============ Блок 5 · Первые реакции (1118) ============ */
.reactions{height:1118px}
.reactions .container{padding-top:91px;text-align:center}
.reactions .lead{width:auto}
/* плавное появление картинок после загрузки (до этого виден мягкий голубой фон) */
.js .carousel img,.js .card__photo img,.js .use__photo img,.js .popup__photo img,.js .kcf__poster{opacity:0;transition:opacity .45s ease,transform .45s cubic-bezier(.2,.7,.2,1)}
.js .carousel img.is-loaded,.js .card__photo img.is-loaded,.js .use__photo img.is-loaded,.js .popup__photo img.is-loaded,.js .kcf__poster.is-loaded{opacity:1}
/* слайды лежат стопкой: видим только активный (иначе is-loaded показывает все три, сверху последний) */
.js .carousel img.is-loaded:not(.is-active){opacity:0}
/* ===== KCoverflow — 3D-карусель видео-карточек ===== */
/* Выше 1239px это обычная сетка из 3 карточек, ниже — карусель с центральной
   карточкой и двумя соседями по бокам (как «Давай распакуем вместе» на лендинге). */

.kcf{--w:320px;--h:549px;--off:262px;--ks-accent:#00b9bf;--ks-dot:#def3f4}

/* Сетка (десктоп) */
.kcf__stage{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:48px}
.kcf__card{position:relative;display:block;aspect-ratio:368/631;overflow:hidden;border-radius:20px;
  background:#e9f1fa;box-shadow:0 3.3px 16.5px rgba(0,0,0,.12);cursor:pointer}
.kcf__card img.kcf__poster{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s ease}
.kcf__card:hover img.kcf__poster{transform:scale(1.04)}
.kcf__dots{display:none}

/* Видео поверх постера: плавно появляется, когда карточка играет */
.kcf__video{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover;background:#000;
  opacity:0;transition:opacity .4s ease;pointer-events:none}
.kcf__card.playing .kcf__video{opacity:1}

/* Кнопка play/stop: две иконки, переключаются поворотом */
.kcf__play{position:absolute;left:50%;top:50%;width:90px;height:90px;margin:-45px 0 0 -45px;border-radius:50%;
  background:rgba(255,255,255,.9);color:#212121;display:flex;align-items:center;justify-content:center;
  transition:transform .2s ease,background-color .2s ease,opacity .3s ease}
.kcf__card:hover .kcf__play{transform:scale(1.05)}
.kcf__play svg{position:absolute;left:50%;top:50%;transition:opacity .35s ease,transform .35s cubic-bezier(.3,.7,.3,1)}
.kcf__play .i-play{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(0)}
.kcf__play .i-stop{opacity:0;transform:translate(-50%,-50%) scale(.4) rotate(-90deg)}
.kcf__card.playing .kcf__play .i-play{opacity:0;transform:translate(-50%,-50%) scale(.4) rotate(90deg)}
.kcf__card.playing .kcf__play .i-stop{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(0)}
.kcf__card.playing .kcf__play{opacity:0;background:rgba(255,255,255,.55)}
.kcf__card.playing.hint .kcf__play{opacity:1}                 /* на 1.5 с показываем кнопку после старта */
@media (hover:hover){.kcf__card.playing:hover .kcf__play{opacity:1}}
@media (prefers-reduced-motion:reduce){.kcf__play svg{transition:opacity .2s linear}}

/* Карусель (≤1239px) */
@media (max-width:1239px){
  .kcf__stage{display:block;perspective:3000px;transform-style:preserve-3d;position:relative;height:var(--h);
    touch-action:pan-y;user-select:none;-webkit-user-select:none}
  .kcf__card{position:absolute;left:50%;top:0;width:var(--w);height:var(--h);aspect-ratio:auto;
    margin-left:calc(var(--w) / -2);-webkit-user-drag:none;
    transition:transform .6s cubic-bezier(.4,0,.2,1),box-shadow .6s ease}
  .kcf__card img{-webkit-user-drag:none;user-select:none}
  /* позиции: 0 — центр, -1 — слева, 1 — справа; остальные скрыты */
  .kcf__card[data-pos="0"]{transform:translate3d(0,0,0);box-shadow:0 6px 74px 13px rgba(0,0,0,.25);cursor:default}
  .kcf__card[data-pos="-1"]{transform:translate3d(calc(var(--off) * -1),0,-60px) scale(.75)}
  .kcf__card[data-pos="1"]{transform:translate3d(var(--off),0,-60px) scale(.75)}
  .kcf__card:not([data-pos="-1"]):not([data-pos="0"]):not([data-pos="1"]){opacity:0;pointer-events:none}
  .kcf__dots{display:flex;justify-content:center;gap:4px;margin-top:16px}
  .kcf__dots span{width:9px;height:9px;border-radius:50%;background:var(--ks-dot);cursor:pointer;transition:background-color .3s ease}
  .kcf__dots span.on{background:var(--ks-accent)}
}
/* Узкие экраны: уменьшаем карточки (--off — вынос боковых карточек) */
@media (max-width:479px){.kcf{--w:196px;--h:339px;--off:160px}.kcf__play{width:60px;height:60px;margin:-30px 0 0 -30px}.kcf__play svg{width:22px;height:22px}}

.reactions .kcf{margin-top:68px}
.reactions .kcf__stage{grid-template-columns:repeat(3,357px);gap:24px;justify-content:center}
.reactions .kcf__card{aspect-ratio:auto;height:603px;border-radius:var(--radius-card);box-shadow:var(--shadow-card)}
.reactions .kcf__play{width:100px;height:100px;margin:-50px 0 0 -50px}
.reactions .kcf__play svg{width:36px;height:36px}
@media (max-width:1239px){
  .reactions .kcf{--w:357px;--h:603px;--off:300px;margin-top:40px;overflow:hidden;padding:20px 0 4px}
  .reactions .kcf__stage{display:block;justify-content:normal}
  .reactions .kcf__card{width:var(--w);height:var(--h)}
}
@media (max-width:767px){.reactions .kcf{--w:320px;--h:549px;--off:262px;margin-top:28px}}
@media (max-width:479px){.reactions .kcf{--w:214px;--h:400px;--off:170px}.reactions .kcf__play{width:60px;height:60px;margin:-30px 0 0 -30px}.reactions .kcf__play svg{width:22px;height:22px}}
.reactions .btn{margin-top:68px}

/* ============ Блок 6 · Почта будущего (1168) + футер ============ */
.mail{background-color:#e4eefb;height:1076px;background-image:url("mail-bg.webp");background-size:1920px 1168px}
.mail .container{padding-top:91px}
.mail .lead{width:930px}
.mail__row{position:relative;height:578px;margin-top:43px}
.steps{position:absolute;left:1px;top:47px;width:550px;margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:43px}
.step{display:flex;align-items:center;gap:24px}
.step__num{flex:0 0 71px;height:71px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:50px;line-height:1}
.step__text{width:453px;font-size:30px;line-height:1.35}
.form{position:absolute;left:560px;top:0;width:560px;height:578px;padding:35px;background:#fff;border-radius:var(--radius-card);box-shadow:-3px -2px 17.8px 14px rgba(0,0,0,.05),var(--shadow-card)}
.form__label{display:block;font-weight:700;font-size:30px;line-height:1.18;color:var(--title)}
.form__field{display:block;width:490px;margin-top:21px;padding:16px 20px;border:1px solid rgba(33,33,33,.4);border-radius:20px;background:transparent;font:inherit;font-size:20px;line-height:1.35;color:var(--text);resize:none;outline:0;transition:border-color var(--t)}
.form__field::placeholder{color:rgba(33,33,33,.5)}
.form__field:focus{border-color:var(--accent)}
.form__field.is-error{border-color:var(--red)}
textarea.form__field{height:137px}
input.form__field{height:50px;padding-top:0;padding-bottom:0}
.form__row{display:flex;gap:20px;margin-top:21px}
.form__row .form__field{width:235px;margin-top:0}
.form__label--email{margin-top:33px}
.form .btn{display:flex;margin:27px auto 0;width:242px}
.form__note{margin-top:18px;text-align:center;font-size:14px;line-height:20px}
.form__note a{text-decoration:underline;text-underline-position:from-font}
.form__error{position:absolute;left:35px;top:416px;font-size:14px;line-height:1;color:var(--gray-text)}


/* ============ Модальные окна ============ */
.modal{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:opacity .3s ease-out,visibility 0s linear .3s}
.modal.is-open{opacity:1;visibility:visible;transition:opacity .3s ease-out}
.modal__backdrop{position:absolute;inset:0;background:rgba(0,58,61,.55)}
.modal__deco{display:none}
.close{position:absolute;right:24px;top:24px;width:48px;height:48px;border-radius:24px;background:#f6f6f6;z-index:3;display:flex;align-items:center;justify-content:center;transition:background-color var(--t)}
.close:hover{background:var(--accent-soft)}
.close::before,.close::after{content:"";position:absolute;width:20px;height:2.5px;border-radius:2px;background:var(--accent);transform:rotate(45deg)}
.close::after{transform:rotate(-45deg)}

.popup{position:relative;width:1200px;height:687px;border-radius:30px;background:#fff;overflow:hidden;filter:drop-shadow(0 24px 32px rgba(0,48,50,.25));transform:translateY(16px);transition:transform .35s ease-out}
.modal.is-open .popup{transform:none}
.popup__tree{position:absolute;left:881px;top:112px;width:770px;height:667px;pointer-events:none}
.popup__garland{display:none}
.popup__inner{position:relative;z-index:1;display:flex;align-items:center;gap:24px;padding:35px}
.popup__photo{flex:0 0 553px;height:617px;border-radius:30px;overflow:hidden;background:#f1ece9}
.popup__photo img{width:100%;height:100%;object-fit:cover}
.popup__col{width:553px;display:flex;flex-direction:column;align-items:flex-start;gap:56px}
.popup__top{display:flex;flex-direction:column;gap:32px;width:100%}
.popup__heads{display:flex;flex-direction:column;gap:24px}
.popup__eyebrow{font-size:35px;line-height:35px;color:#999}
.popup__name{margin-top:22px;font-weight:700;font-size:50px;line-height:1.1;color:var(--title)}
.popup__lead{width:533px;font-size:28px;line-height:1.35}
.facts{width:481px;display:flex;flex-direction:column;gap:24px;font-size:25px;line-height:1.35}
.facts b{font-weight:700}
.facts__advice{padding:20px 24px;border-radius:30px;background:#f7f7f7}
.predict{position:relative;width:481px;padding:32px 48px 32px 32px;border-radius:30px;background:#f7f7f7;overflow:hidden;display:flex;flex-direction:column;gap:18px}
.predict__label{font-weight:700;font-size:18px;line-height:1;letter-spacing:1.08px;text-transform:uppercase;color:#999}
.predict__text{font-size:32px;line-height:1.3}
/* кавычка прижата к правому краю без отступа; -.043em убирает правое поле самого символа в шрифте */
.predict__quote{position:absolute;right:-.043em;top:-30px;font-weight:700;font-size:200px;line-height:normal;color:#ebebeb;pointer-events:none}
[data-kind="talisman"] .predict,[data-kind="prediction"] .popup__lead,[data-kind="prediction"] .facts{display:none}

.popup--sent{width:560px;height:507px;filter:none;box-shadow:0 24px 64px rgba(0,48,50,.25)}
.sent__body{position:absolute;left:48px;right:48px;top:52px;display:flex;flex-direction:column;align-items:center;gap:23px;text-align:center}
.sent__icon img{width:148px;height:140px}
.sent__title{font-weight:700;font-size:30px;line-height:1.18;color:var(--title)}
/* text-box-trim здесь выключен: в Safari он с <br> даёт разный интервал между строками; top уменьшен на 8.4px, чтобы текст стоял на прежнем месте */
.sent__text{position:absolute;left:0;right:0;top:333.1px;text-align:center;font-size:28px;line-height:1.35;text-box:normal}
.sent__ok{display:none}


/* ============ 1024–1199: пропорциональное уменьшение ============ */
@media (min-width:1024px) and (max-width:1199px){ .main{zoom:.85} .hero{height:max(600px,calc((100svh - var(--hdr,0px)) / .85))} }

/* ============================================================
   Мобильная версия (макет 375)
   ============================================================ */
@media (max-width:1023px){
  .d-only{display:none!important}
  .m-only{display:block}
  .container{max-width:552px}
  .section{background-size:cover}
  .btn{display:flex;width:100%;height:52px;padding:0 24px;font-size:16px;line-height:1;letter-spacing:0}
  .eyebrow{font-size:18px;line-height:1.2}
  .title{margin-top:14px;font-size:26px;line-height:1.15}
  .lead{margin-top:14px;width:auto;font-size:16px;line-height:1.4}
  .head{text-align:center}


  /* Hero */
  /* таббар сайта (48px) есть на экранах до 1023px; первый экран = экран − шапка − таббар;
     текст сверху с отступом 32px от шапки, кнопка внизу с отступом 16px от таббара */
  :root{--tabbar:48px}
  .hero{height:max(360px,calc(100svh - var(--hdr,0px) - var(--tabbar,0px)));background-image:url("m-hero.webp");background-size:cover;background-position:center bottom}
  .hero .container{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;text-align:center;height:100%;padding-top:calc(32px + var(--hero-pad,0px));padding-bottom:16px}
  .hero__title{width:auto;font-size:38px;line-height:1.05}
  .hero__sub{margin-top:16px;width:auto;font-size:18px;line-height:1.3}
  .hero .btn{margin-top:auto}

  /* Героиня */
  .heroine{height:auto;padding:56px 0}
  .heroine .container{padding-top:0}
  .heroine__row{flex-direction:column;align-items:center;gap:30px;margin-top:30px}
  .carousel{flex:0 0 auto;width:100%;max-width:488px;height:auto;aspect-ratio:343/220}
  .dots{bottom:16px}
  .heroine__text{width:100%;padding-top:0;text-align:center}
  .heroine__text p{font-size:16px;line-height:1.4}
  .heroine__text .btn{margin-top:30px}

  /* Печенька */
  .cookie{height:592px;background-image:url("m-cookie-bg.jpg")}
  .cookie .container{padding-top:56px}
  .cookie__stage{top:138.4px;width:540px;height:403.2px;margin-left:-270px}
  .cookie__whole{width:540px;height:403.2px;object-fit:contain}
  .cookie__parts{left:133.5px;top:125.55px;width:273px;height:152.1px;transform:scale(2.167)}
  .cookie__flash{width:260px;height:260px;margin:-130px 0 0 -130px}
  .cookie__hit{top:230px;width:300px;height:220px;margin-left:-150px}
  .cookie .btn{top:480px;width:calc(100% - 32px);max-width:488px}

  /* Выберите Асю */
  .choose{height:auto;padding:56px 0}
  .choose .container{padding-top:0}
  .grid3,.choose .grid3{grid-template-columns:1fr 1fr;column-gap:16px;row-gap:30px;margin-top:30px}
  .card{width:auto;gap:10px}
  .card__photo{height:auto;aspect-ratio:163.5/170;border-radius:20px}
  .card__arrow{right:10px;bottom:10px;width:33.6px;height:33.6px}
  .card__body{gap:10px}
  .card__name{font-size:17px;line-height:1.2}
  .card__text{min-height:0;font-size:13px;line-height:1.4}

  /* Символ года */
  .symbol{height:auto;padding:56px 0;background-image:url("m-symbol-bg.jpg")}
  .symbol .container{padding-top:0}
  .symbol .grid3{grid-template-columns:1fr;row-gap:30px;margin-top:30px}
  .use{gap:12px}
  .use__photo{height:200px;border-radius:20px;box-shadow:none}
  .use .card__name{font-size:20px}
  .use .card__text{min-height:0;font-size:15px}
  .symbol .btn{margin-top:30px}

  /* Первые реакции */
  .reactions{height:auto;padding:56px 0}
  .reactions .container{padding-top:0;max-width:none;padding:0}
  .reactions .head{padding:0 16px}
  .reactions .btn{margin:28px auto 0;width:calc(100% - 32px);max-width:520px}   /* та же ширина, что у кнопок в соседних блоках (контейнер 552 − отступы) */

  /* Почта будущего */
  .mail{height:auto;padding:56px 0 72px;background-image:url("m-mail-bg.webp");background-position:center top}
  .mail .container{padding-top:0}
  .mail .lead{width:auto}
  .mail__row{height:auto;margin-top:28px;display:flex;flex-direction:column;gap:28px}
  .steps{position:static;width:auto;gap:16px;padding:20px;border-radius:24px;background:rgba(255,255,255,.85)}
  .step{gap:14px}
  .step__num{flex:0 0 44px;height:44px;font-size:22px}
  .step__text{width:auto;flex:1;font-size:16px}
  .form{position:static;width:auto;height:auto;padding:24px 20px;border-radius:24px;box-shadow:0 8px 12px rgba(0,185,191,.14)}
  .form__label{font-size:18px;line-height:1.2}
  .form__field{width:100%;margin-top:14px;padding:14px 16px;border:1px solid #d9e0de;border-radius:16px;background:#f6f8f7;font-size:15px}
  .form__field::placeholder{color:#8c8c8c}
  textarea.form__field{height:120px}
  .form__row{flex-direction:column;gap:14px;margin-top:14px}
  .form__row .form__field{width:100%}
  .form__label--email{margin-top:16px}
  .form .btn{width:100%;margin-top:14px}
  .form__note{margin-top:14px;font-size:12px;line-height:1.4;color:#666}
  .form__error{position:static;display:block;margin-top:8px;font-size:13px}


  /* Модальные окна → нижняя шторка */
  .modal{align-items:flex-end}
  .modal__deco{display:block;position:absolute;left:50%;bottom:min(656px,calc(100% - 40px));width:375px;height:156px;margin-left:-187.5px;pointer-events:none}
  .modal__snow{position:absolute;left:0;top:-114px;width:375px;height:270px}
  .modal__tree{position:absolute;left:219px;top:-128px;width:150px;height:210px;object-fit:cover;object-position:50% 0;z-index:1}
  .popup{width:100%;max-width:520px;height:min(656px,calc(100% - 40px));border-radius:28px 28px 0 0;filter:none;transform:translateY(40px);display:flex;flex-direction:column;overflow:hidden}
  .modal.is-open .popup{transform:none}
  .popup__tree{display:none}
  .popup__garland{display:block;position:absolute;left:50%;top:4px;width:375px;height:40px;margin-left:-187.5px;z-index:2;pointer-events:none}
  .popup__inner{flex:1;flex-direction:column;align-items:stretch;gap:16px;padding:44px 16px 32px;overflow-y:auto}
  .popup__photo{flex:0 0 240px;height:240px;border-radius:20px;background:#f1ece9}
  .popup__photo img{object-fit:cover;object-position:50% 40%}   /* широкое фото: по центру, овечка целиком */
  .close{top:56px;right:28px}
  .popup__col{width:auto;flex:1;gap:16px}
  .popup__top{gap:16px}
  .popup__heads{gap:16px}
  .popup__eyebrow{font-size:17px;line-height:1.2}
  .popup__name{margin-top:10px;font-size:28px}
  .popup__lead{width:auto;font-size:16px;line-height:1.4}
  .facts{width:auto;gap:12px;font-size:15px;line-height:1.4}
  .facts__advice{padding:14px 16px;border-radius:20px}
  .predict{width:auto;padding:22px 44px 22px 20px;border-radius:24px;gap:14px}
  .predict__label{font-size:13px;letter-spacing:.78px}
  .predict__text{font-size:21px;line-height:1.35}
  .predict__quote{top:-6px;font-size:140px;line-height:1}
  .popup__col .btn{margin-top:auto}

  .popup--sent{width:100%;height:min(656px,calc(100% - 40px));box-shadow:none}
  .popup--sent .close{top:44px;right:16px}
  .sent__body{position:static;flex:1;justify-content:center;gap:20px;padding:56px 24px 0}
  .sent__icon{width:132px;height:132px;border-radius:66px;background:#def3f4;display:flex;align-items:center;justify-content:center}
  .sent__icon img{width:80px;height:75.7px}
  .sent__title{font-size:24px;line-height:1.2}
  .sent__text{position:static;padding:20px 24px 0;font-size:17px;line-height:1.4;text-box:trim-both cap alphabetic}   /* до 1023px переносов <br> нет — обрезку оставляем, вёрстка не сдвигается */
  .sent__ok{display:flex;margin:auto 24px 32px;width:auto}

}
/* десктоп: целая и разломанная печеньки меньше (−10%, затем ещё −7%) */
@media (min-width:1024px){
  .cookie__stage{transform:translateY(14px) scale(.837);transform-origin:50% 50%}   /* 1 → .9 → ещё −7% */
  .cookie__hit{top:386px;width:469px;height:402px;margin-left:-234.5px}
}
/* планшет: печеньки (целая и разломанная) выше на 7% высоты печеньки */
/* фото первого экрана: от 480px планшетное, до 479px мобильное (десктоп — hero.webp) */
@media (min-width:480px) and (max-width:1023px){.hero{background-image:url("t-hero.webp");background-position:center bottom}}
/* мобильный: заголовок первого экрана 32px */
@media (max-width:767px){.hero__title{font-size:32px}}
/* телефоны шире 400px: заголовок и подзаголовок первого экрана ниже на 48px */
@media (min-width:401px) and (max-width:767px){.hero .container{padding-top:calc(80px + var(--hero-pad,0px))}}
@media (min-width:768px) and (max-width:1023px){
  .cookie__stage{top:110px}
  .cookie__hit{top:202px}
}
/* мелкий снег на фоне: холст поверх страницы, не перехватывает клики */
.snow{position:fixed;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:2}
/* плавное появление текстов и кнопок при скролле (свойство translate не конфликтует с transform) */
.rv{opacity:0;translate:0 26px;transition:opacity .8s ease var(--rvd,0s),translate .8s cubic-bezier(.2,.7,.2,1) var(--rvd,0s)}
.btn.rv{transition:background-color var(--t),transform var(--t),opacity .8s ease var(--rvd,0s),translate .8s cubic-bezier(.2,.7,.2,1) var(--rvd,0s)}
.rv.is-in{opacity:1;translate:0 0}
.step__num.rv{translate:none;scale:.5;color:transparent;transition:opacity .5s ease var(--rvd,0s),scale .7s cubic-bezier(.34,1.56,.64,1) var(--rvd,0s),color .45s ease calc(var(--rvd,0s) + .35s)}
.step__num.rv.is-in{scale:1;color:#fff}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}
