/* Локальные стили сайта. Общие компоненты в ../system/web.css не менять. */

/* Шапка */
.topbar { position: sticky; }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; color: var(--color-text); }
.topbar .wrap { gap: 14px; }
.topbar__cta { flex: none; padding: 7px 7px 7px 16px; font-size: 13px; gap: 10px; }
.topbar__cta i { width: 26px; height: 26px; font-size: 13px; }
.topbar__cta .short { display: none; }
.theme-switch { position: relative; flex: none; width: 64px; height: 34px; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-bg-tertiary); cursor: pointer; padding: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; color: var(--color-text); }
.theme-switch:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--color-accent); }
.theme-switch svg { width: 14px; height: 14px; display: block; }
.theme-switch__side { display: grid; place-items: center; color: var(--color-text-muted); transition: opacity .25s; }
.theme-switch__knob { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--color-bg); border: 1px solid var(--color-border); display: grid; place-items: center; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.theme-switch__k { grid-area: 1 / 1; display: grid; place-items: center; color: var(--color-text); transition: opacity .2s, transform .35s; }
.theme-switch__k--moon { opacity: 0; transform: rotate(-60deg); }
.theme-switch__side--sun { opacity: 0; }
.is-dark .theme-switch__knob { transform: translateX(30px); }
.is-dark .theme-switch__k--sun { opacity: 0; transform: rotate(60deg); }
.is-dark .theme-switch__k--moon { opacity: 1; transform: none; }
.is-dark .theme-switch__side--sun { opacity: 1; }
.is-dark .theme-switch__side--moon { opacity: 0; }
.theming, .theming *, .theming *::before, .theming *::after { transition: background-color .35s ease, color .35s ease, border-color .35s ease !important; }
.scrollbar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--color-accent); transition: width .1s linear; }
.nav a.active { background: var(--color-accent); color: var(--color-accent-on); }
.burger { display: none; }
.menu { display: none; }
section[id] { scroll-margin-top: var(--tb, 56px); }
@media (max-width: 980px) {
  .topbar .nav, .topbar .theme-switch { display: none; }
  .topbar .wrap { gap: 10px; }
  .topbar__cta { margin-left: auto; }
  .topbar__cta .full { display: none; } .topbar__cta .short { display: inline; }
  .burger { display: block; position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--color-border); background: transparent; color: var(--color-text); cursor: pointer; padding: 0; }
  .burger:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--color-accent); }
  .burger span { position: absolute; left: 11px; right: 11px; height: 1.8px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
  .burger span:nth-child(1) { top: 13px; } .burger span:nth-child(2) { top: 18.5px; } .burger span:nth-child(3) { top: 24px; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
  .menu { position: fixed; left: 0; right: 0; top: var(--tb, 56px); bottom: 0; z-index: 49; display: flex; flex-direction: column; padding: 6px 20px 28px; background: var(--color-bg); overflow-y: auto; animation: menuIn .22s ease-out; }
  .menu[hidden] { display: none; }
  .menu__nav { display: flex; flex-direction: column; }
  .menu__nav a { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--color-border); font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.1; letter-spacing: -.03em; color: var(--color-text); text-decoration: none; }
  .menu__nav a::after { content: "→"; font: 400 18px/1 var(--font-sans); color: var(--color-text-muted); }
  .menu__row { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 0; font-size: 15px; color: var(--color-text-muted); }
  .menu .theme-switch { display: grid; }
  html.menu-open { overflow: hidden; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .menu { animation: none; } }

/* Экраны: один блок помещается в экран */
.screen { min-height: calc(100svh - 56px); display: flex; flex-direction: column; justify-content: center; scroll-margin-top: 0; padding: 72px 0; }
.screen > .wrap, .hero > .wrap { width: 100%; }
.screen .slide__head { margin-bottom: 40px; }
.screen--short { min-height: 70svh; }
@media (max-width: 900px) { .screen, .screen--short { min-height: 0; } }

/* Первый экран */
.hero { position: relative; min-height: calc(100svh - 56px); display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 40px 0 92px; }
.hero .wrap { display: block; }
.hero h1 { margin-inline: auto; }
.hero .lead { margin-inline: auto; }
.hero .demo { margin-inline: auto; }
.hero h1 { max-width: 20ch; font-size: clamp(44px, 6.4vw, 84px); }
.hero .lead { margin-top: 16px; max-width: 46ch; }
.hero--home h1 { font-size: clamp(42px, 5.6vw, 74px); max-width: 19ch; }
.hero__sub { margin: 16px auto 0; max-width: 46ch; font-size: 19px; line-height: 1.45; color: var(--color-text-muted); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 14px; margin-top: 36px; }
.hero__case { margin-top: 28px; }
.hero__case .chip { text-decoration: none; }
.link { color: var(--color-text); font-weight: 500; text-decoration: none; border-bottom: 2px solid var(--color-accent); padding-bottom: 1px; }
.link--muted { color: var(--color-text-muted); border-color: var(--color-border); }
@media (max-width: 640px) { .hero { padding: 48px 0 110px; min-height: 0; } .hero__case { margin-top: 28px; } }

/* Бегущая строка */
.marquee { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--color-border); padding: 18px 0; overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; color: var(--color-text-muted); animation: marquee 36s linear infinite; will-change: transform; }
.marquee__track i { font-style: normal; color: var(--color-accent); }
@media (hover: hover) { .marquee:hover .marquee__track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Анимации: слова заголовка, появление блоков, маркер */
.js .hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
.js .hero h1 .w > span { display: inline-block; transform: translateY(110%); transition: transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js.ready .hero h1 .w > span { transform: none; }
.js .hero .mark { background: linear-gradient(var(--color-accent), var(--color-accent)) left / 0% 100% no-repeat; transition: background-size .8s cubic-bezier(.2, .7, .2, 1) .75s; }
.js.ready .hero .mark { background-size: 100% 100%; }
.js .r { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.js .r.in { opacity: 1; transform: none; }
.js.still .hero h1 .w > span, .js.still .r { transform: none; opacity: 1; transition: none; }
.js.still .hero .mark { background-size: 100% 100%; transition: none; }
.js.still .marquee__track { animation: none; }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* Ховеры */
.pill i { transition: transform .2s; }
.card[href], .work { transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.fan img { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
/* движение на ховере только там, где есть курсор: на тачскрине оно залипает после тапа */
@media (hover: hover) {
  .pill:hover i { transform: translateX(3px); }
  .card[href]:hover { transform: translateY(-4px); }
  .fan:hover img:first-child { transform: rotate(-5deg) translate(-6px, 4px); }
  .fan:hover img:nth-child(2) { transform: translateY(-8px); }
  .fan:hover img:last-child { transform: rotate(5deg) translate(6px, 4px); }
}

/* Пульс у статуса «в продаже» */
.chip--sale { background: var(--color-accent); color: var(--color-accent-on); }
.chip--sale::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent-on); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30, 5, 24, .35); } 70% { box-shadow: 0 0 0 8px rgba(30, 5, 24, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 5, 24, 0); } }
.chip--soon { background: transparent; border: 1.5px dashed color-mix(in srgb, var(--color-text) 28%, transparent); color: var(--color-text-muted); }

/* Обучение */
.product { position: relative; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: 44px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: end; }
.product__status { position: absolute; top: 24px; right: 24px; }
.product .eyebrow { margin-bottom: 18px; }
.product h3 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -.04em; line-height: 1; }
.product__buy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.price__num { font-family: var(--font-display); font-weight: 600; font-size: 48px; letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
@media (max-width: 720px) { .product { grid-template-columns: 1fr; padding: 28px; } .product__status { position: static; justify-self: start; } }
.card__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: auto; padding-top: 14px; font-size: 14px; }

.cards--lessons .card, .apps .card { text-decoration: none; padding: 0; gap: 0; overflow: hidden; background: var(--color-bg); border: 1px solid var(--color-border); }
.lesson__media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.cards--lessons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.lesson__cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.lesson__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: var(--color-accent); color: var(--color-accent-on); display: grid; place-items: center; font-size: 14px; padding-left: 3px; transition: transform .2s; }
@media (hover: hover) { .card[href]:hover .lesson__play { transform: translate(-50%, -50%) scale(1.12); } }
.lesson__body, .app__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 20px 18px; }
.lesson__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lesson__meta .eyebrow, .app__body .eyebrow { margin: 0; }
.chip--sm { padding: 5px 10px; font-size: 12px; }
.lesson h3, .app h3 { font-size: 20px; margin: 0; }

/* Работы и проекты */
.works { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
/* карусель участницы: стопка слайдов */
.stack { position: relative; display: block; aspect-ratio: 4 / 5; margin: 0 14px 18px 0; }
.stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid var(--color-border); display: block; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.stack__p--2 { transform: translate(7px, 7px); }
.stack__p--3 { transform: translate(14px, 14px); }
@media (hover: hover) { .work:hover .stack__p--2 { transform: translate(12px, 9px) rotate(1.5deg); } .work:hover .stack__p--3 { transform: translate(24px, 18px) rotate(3deg); } }
/* продукты, которые скоро выйдут */
.cards--next { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.next { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 26px; align-items: center; padding: 22px 26px 22px 22px; border-radius: var(--radius-lg); background: var(--color-bg); border: 1px solid var(--color-border); }
.next__media { display: block; position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--color-bg); }
.next__media img, .next__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.next__media video { object-position: 50% 20%; }
.next__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.next__head { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.next__body .eyebrow { margin: 0; color: var(--color-text); opacity: .55; }
.next__body h3 { font-size: 24px; }
.next__note { font-size: 14px; line-height: 1.4; color: var(--color-text-muted); max-width: 42ch; }
.next__body .chips { gap: 6px; }
.next__foot { display: flex; align-items: center; gap: 16px; margin-top: 2px; }
/* скрины из чата интенсива */
.chatshots { columns: 2; column-gap: 16px; margin-top: 18px; }
.chatshot { break-inside: avoid; margin: 0 0 16px; border-radius: 16px; overflow: hidden; border: 1px solid var(--color-border); }
.chatshot img { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { .cards--next { grid-template-columns: 1fr; } }

/* Лента работ участниц: карточка-стопка, по клику карусель раскрывается на весь экран */
.rail.works--rail { grid-auto-columns: 272px; }
.works--fans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.work--gallery { appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.work--gallery:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--color-accent); border-radius: 16px; }
.work__title { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.2; letter-spacing: -.03em; }
.lb { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: color-mix(in srgb, #0B0A0F 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lb[hidden] { display: none; }
.lb__bar { display: flex; align-items: center; gap: 16px; padding: 14px 18px; color: #fff; }
.lb__title { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -.02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb__count { margin-left: auto; font-size: 13px; opacity: .7; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb__close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.lb__track { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.lb__track::-webkit-scrollbar { display: none; }
.lb__slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; padding: 0 18px 22px; }
.lb__slide img { max-width: min(100%, 560px); max-height: calc(100svh - 100px); width: auto; height: auto; object-fit: contain; border-radius: 14px; display: block; }
.lb__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 18px; cursor: pointer; }
.lb__arrow--prev { left: 18px; } .lb__arrow--next { right: 18px; }
@media (hover: hover) { .lb__arrow:hover, .lb__close:hover { background: rgba(255,255,255,.28); } }
@media (max-width: 640px) { .lb__arrow { display: none; } .lb__slide { padding: 0 12px 18px; } .lb__bar { padding: 10px 14px; } }
html.lb-open { overflow: hidden; }
.work { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.work__handle { font-size: 13px; color: var(--color-text-muted); margin-top: 8px; }
.work h3 { font-size: 20px; }
.fan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fan img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; display: block; }
.app__cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.apps .card .link { align-self: flex-start; margin-top: 6px; font-size: 14px; }

/* Заказчикам: мягкий переход между светлым и тёмным при прокрутке.
   В тёмной теме баклажановый блок больше не инвертируется в светлый остров. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --aub: #1B0A18; --aub-on: #F2EFF4; --aub-overlay: rgba(255, 255, 255, .07); --aub-border: rgba(255, 255, 255, .14); --aub-muted: rgba(242, 239, 244, .62); }
}
:root[data-theme="dark"] { --aub: #1B0A18; --aub-on: #F2EFF4; --aub-overlay: rgba(255, 255, 255, .07); --aub-border: rgba(255, 255, 255, .14); --aub-muted: rgba(242, 239, 244, .62); }
/* полоса не красится сама: при подходе к ней вся страница перекрашивается в баклажан */
.slide--aub { background: transparent; }
html:root.band {
  --color-bg: var(--aub);
  --color-bg-alt: color-mix(in srgb, var(--aub-on) 4%, var(--aub));
  --color-bg-tertiary: color-mix(in srgb, var(--aub-on) 10%, var(--aub));
  --color-text: var(--aub-on);
  --color-text-muted: color-mix(in srgb, var(--aub-on) 62%, transparent);
  --color-border: color-mix(in srgb, var(--aub-on) 16%, transparent);
  --color-accent-soft: color-mix(in srgb, var(--color-accent) 26%, var(--aub));
  --color-cta: var(--aub-on); --color-cta-on: var(--aub);
}
.bandfade, .bandfade *, .bandfade *::before, .bandfade *::after { transition: background-color .5s ease, color .5s ease, border-color .5s ease !important; }

/* Заказчикам */
.slide--aub h2 { max-width: 14ch; }
.slide--aub .pill { background: var(--aub-on); color: var(--aub); }
.slide--aub .pill i { background: var(--aub); color: var(--aub-on); }
.slide--aub .hero__ctas { margin-top: 36px; justify-content: flex-start; }

/* Обо мне */
.photo-slot { background: var(--card-lavender); border-radius: var(--radius-xl); aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; }
.photo-slot .big { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 4.6vw, 60px); line-height: .95; letter-spacing: -.04em; }
.facts li { font-size: 16px; }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles--3 .tile { padding: 20px 20px 18px; }
.tiles--3 .tile__num { font-size: 36px; }

/* Контакты и подвал */
.contacts .chips { margin-top: 32px; }
.chips a.chip { text-decoration: none; transition: background .15s; }
.chips a.chip:hover { background: var(--color-accent-soft); }
.foot .wrap { grid-template-columns: 1.2fr 1fr; }
@media (max-width: 720px) { .foot .wrap { grid-template-columns: 1fr; } }

/* Страница продукта */
.hero--product { padding: 40px 0 56px; }
.hero--product h1 { max-width: none; font-size: clamp(40px, 5.6vw, 72px); }
.hero--product .eyebrow { margin-top: 16px; }
.demo { width: 100%; max-width: 980px; margin-top: 32px; display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--color-border); border-radius: var(--radius-xl); overflow: hidden; text-align: left; background: var(--color-bg); }
.demo > div { padding: 22px 26px; }
.demo__out { background: var(--color-bg-alt); border-left: 1px solid var(--color-border); }
.demo__prompt { font-size: 18px; line-height: 1.4; letter-spacing: -.01em; min-height: 2.2em; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--color-text); vertical-align: -.15em; margin-left: 2px; animation: blink .9s steps(1) infinite; }
.type.done + .caret { animation: none; opacity: 0; }
@keyframes blink { 50% { opacity: 0; } }
.demo__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.demo__list li { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 12px; padding: 9px 14px; font-size: 15px; display: flex; gap: 10px; align-items: center; }
.demo__list li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--color-accent); color: var(--color-accent-on); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
@media (max-width: 720px) { .demo { grid-template-columns: 1fr; } .demo__out { border-left: 0; border-top: 1px solid var(--color-border); } }
.lessons-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .lessons-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .lessons-grid { grid-template-columns: 1fr; } }
.lessons-grid .card { padding: 24px; gap: 8px; min-height: 150px; }
.lessons-grid .card h3 { font-size: 19px; }
.circles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.circle { aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 6px; }
.circle .eyebrow { margin: 0; color: var(--color-text); opacity: .55; }
.circle .num { font-size: clamp(24px, 2.6vw, 34px); line-height: 1; }
.circle p { font-size: 14px; opacity: .8; line-height: 1.35; max-width: 18ch; }
@media (max-width: 900px) { .circles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.faq details { border-top: 1px solid var(--color-border); }
.faq details:last-child { border-bottom: 1px solid var(--color-border); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.03em; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--color-bg-tertiary); display: grid; place-items: center; font-size: 20px; font-weight: 500; transition: transform .25s, background .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--color-accent); color: var(--color-accent-on); }
.faq details p { padding: 0 0 24px; max-width: 60ch; opacity: .85; font-size: 16px; }
.price-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: center; }
.price-card .list li { font-size: 16px; }
@media (max-width: 720px) { .price-card { grid-template-columns: 1fr; } }

/* Аватар, стопка фото, лента каруселей */
.avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 22px; box-shadow: 0 0 0 4px var(--color-bg), 0 0 0 6px var(--color-accent); }
.pile { position: relative; aspect-ratio: 4 / 5; }
.pile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-xl); border: 5px solid var(--color-bg); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.pile img:nth-child(1) { transform: rotate(-7deg) translate(-5%, 2%); }
.pile img:nth-child(2) { transform: rotate(5deg) translate(5%, -1%); }
@media (hover: hover) and (min-width: 901px) {
  .pile:hover img:nth-child(1) { transform: rotate(-13deg) translate(-16%, 5%); }
  .pile:hover img:nth-child(2) { transform: rotate(11deg) translate(16%, -3%); }
  .pile:hover img:nth-child(3) { transform: translateY(-3%); }
}
.strip { padding: 26px 0 30px; border-top: 1px solid var(--color-border); overflow: hidden; }
.strip .eyebrow { text-align: center; margin-bottom: 18px; }
.strip__row { display: flex; gap: 12px; width: max-content; animation: marquee 70s linear infinite; }
.strip__row--back { animation-direction: reverse; margin-top: 12px; }
.strip__row img { width: 150px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; display: block; }
@media (hover: hover) { .strip:hover .strip__row { animation-play-state: paused; } }
.js.still .strip__row { animation: none; }
@media (prefers-reduced-motion: reduce) { .strip__row { animation: none; } }
@media (max-width: 640px) { .strip__row img { width: 110px; } }

/* Страницы гайдов: компактная строка-шапка и сплошное журнальное полотно */
.ghead { padding: 36px 0 28px; border-bottom: 1px solid var(--color-border); }
.ghead__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.ghead h1 { font-size: clamp(28px, 3.4vw, 44px); max-width: 22ch; }
.ghead .eyebrow { margin-bottom: 14px; }
.ghead__actions { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; }
.greader { padding: 0 0 72px; background: var(--color-bg); }
.reader { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; }
.gpage { position: relative; width: 100%; overflow: hidden; }
.gpage__frame { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; display: block; }
.gpage__img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .reader { margin: 0 calc(var(--gx) * -1); } }
.gfoot { padding: 48px 0 0; text-align: center; }

/* Рукописная подпись и вторая кнопка */
.mark { white-space: nowrap; }
.sig { font-family: 'Rozovii Chulok', 'Homemade Apple', cursive; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; color: var(--color-text); transform: rotate(-2.5deg); margin: 0 0 18px; }
.js .sig { transform: rotate(-2.5deg) translateY(0); }
.pill--outline { background: transparent; color: var(--color-text); border: 1.5px solid var(--color-border); padding: 8.5px 8.5px 8.5px 22px; }
.pill--outline i { background: var(--color-bg-tertiary); color: var(--color-text); }
.slide--aub .pill--outline { color: var(--aub-on); border-color: var(--aub-border); }
.group { margin: 0 0 18px; }
.group--gap { margin-top: 32px; }

.contacts .hero__ctas { justify-content: flex-start; margin-top: 8px; }

/* Обложка интенсива в карточке */
.product--cover { grid-template-columns: 220px minmax(0, 1fr) auto; column-gap: 40px; }
.product__cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; align-self: center; }
.price-card--cover { grid-template-columns: 220px minmax(0, 1fr) auto; }
@media (max-width: 900px) { .product--cover, .price-card--cover { grid-template-columns: 1fr; } .product__cover { max-width: 320px; } }

a.work { text-decoration: none; color: inherit; }

/* Карточка интенсива как ссылка */
.product--link { text-decoration: none; color: inherit; cursor: pointer; transition: border-color .2s, transform .25s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { .product--link:hover { border-color: var(--color-accent); transform: translateY(-3px); } .product--link:hover .product__go i { transform: translateX(3px); } }
.product--link:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--color-accent); }
.product__body { display: block; min-width: 0; }
.product__body .eyebrow { display: block; }
.product__title { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 4.4vw, 56px); letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
@media (max-width: 900px) { .product__title { white-space: normal; } }
.product__body .chips { display: flex; }
.product__go { align-self: center; justify-self: end; white-space: nowrap; }
@media (max-width: 900px) { .product__go { justify-self: start; } }

/* «Бесплатно» плотнее, чтобы влезать в экран */

/* Пиксельный котик */
#cat { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; will-change: transform; --cat-eye: var(--color-bg); }
#cat.on-dark { --cat-eye: var(--aub); }
.cat__sprite { position: relative; display: block; transform-origin: 50% 100%; }
.cat__sprite svg { display: block; color: var(--color-text); }
#cat.on-dark .cat__sprite svg { color: var(--aub-on); }
.cat__heart, .cat__angry { position: absolute; opacity: 0; }
.cat__heart { left: 50%; top: -8px; margin-left: -10px; }
#cat.is-end .cat__heart { animation: catheart 2.6s ease-out infinite; }
.cat__angry { left: 6px; top: -14px; }
#cat.is-angry .cat__angry { animation: catangry .5s steps(2) infinite; }
@keyframes catheart { 0% { opacity: 0; transform: translateY(6px); } 15% { opacity: 1; } 70% { opacity: 1; transform: translateY(-16px); } 100% { opacity: 0; transform: translateY(-26px); } }
@keyframes catangry { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 1; transform: scale(1.25); } }

/* Стикеры-вырезки, подписи от руки и стрелки */
.hero { overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.stickers { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.stk { position: absolute; pointer-events: none; transform: translate(calc(var(--px, 0) * var(--z, .5) * 16px), calc(var(--py, 0) * var(--z, .5) * 12px)); }
.stk__in { animation: stkfloat 6s ease-in-out infinite; animation-delay: var(--d, 0s); transform: rotate(var(--r, 0deg)); }
.stk__img { display: block; width: 100%; height: auto; filter: drop-shadow(2.5px 0 0 #fff) drop-shadow(-2.5px 0 0 #fff) drop-shadow(0 2.5px 0 #fff) drop-shadow(0 -2.5px 0 #fff) drop-shadow(1.8px 1.8px 0 #fff) drop-shadow(-1.8px -1.8px 0 #fff) drop-shadow(1.8px -1.8px 0 #fff) drop-shadow(-1.8px 1.8px 0 #fff); }
@keyframes stkfloat { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-9px) rotate(calc(var(--r, 0deg) + 2deg)); } }
.js.still .stk__in { animation: none; transform: rotate(var(--r, 0deg)); }
.js.still .stk { transform: none; }
@media (prefers-reduced-motion: reduce) { .stk__in { animation: none; } }
.contacts { position: relative; overflow: hidden; }
@media (min-width: 901px) and (max-width: 1100px) { .vs--ideal2 { display: none; } .vs--enemy { left: 3%; top: 22%; width: 200px; } .vs--vert { right: 3%; top: 26%; width: 140px; } .hand--reel { display: none; } }

/* Мини-ролики вместо стикеров */
.vcard { position: relative; display: block; overflow: hidden; border: 3px solid #fff; border-radius: 14px; background: #1E0518; }
.vcard--h { aspect-ratio: 16 / 9; }
.vcard--v { aspect-ratio: 9 / 16; }
.vcard__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vcard__tag { display: none; }
.vs--rain { left: 5%; top: 8%; width: 280px; }
.vs--laptop { right: 2.5%; bottom: 6%; width: 250px; }
.vs--grass { left: 3%; top: 27%; width: 150px; }
.vs--enemy { left: 5%; top: 16%; width: 250px; }
.vs--ideal2 { left: 5%; bottom: 23%; width: 250px; }
.vs--vert { right: 6%; top: 24%; width: 200px; }

/* Подписи от руки: коротко, крупно, цветом, со стрелкой */
.hand { position: absolute; display: inline-flex; align-items: flex-end; gap: 4px; font-family: 'Rozovii Chulok', cursive; font-size: 34px; line-height: 1; white-space: nowrap; color: var(--hand, var(--color-text)); pointer-events: none; }
.hand i { font-style: normal; }
.hand__arrow { width: 68px; height: 40px; flex: none; }
.hand--pink { --hand: color-mix(in srgb, var(--color-accent) 58%, var(--color-text)); }
.hand--sage { --hand: color-mix(in srgb, var(--color-success) 78%, var(--color-text)); }
.hand--warm { --hand: color-mix(in srgb, var(--color-warn) 80%, var(--color-text)); }
.hand--reel { left: 50%; bottom: -64px; transform: translateX(-60%) rotate(-4deg); align-items: flex-end; }
.hand--reel .hand__arrow { transform: rotate(-58deg); margin-bottom: 14px; margin-left: -6px; }
.hand--pile { left: -60px; top: -52px; z-index: 3; transform: rotate(-6deg); align-items: flex-start; }
.hand--pile .hand__arrow { transform: scaleX(-1) rotate(-50deg); margin-top: 14px; }
@media (max-width: 900px) { .hand--reel { display: none; } .hand--pile { left: -6px; top: -50px; } }

/* Заказчикам: кейс с плавающим роликом (16:9) и отзывом */
.brands { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr); gap: 44px; align-items: center; }
.case__stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.case__float { position: relative; z-index: 2; width: 92%; }
.case__float .case__card { animation: stkfloat 6s ease-in-out infinite; animation-delay: var(--d, 0s); --r: -4deg; }
.case__card { position: relative; aspect-ratio: 16 / 9; border: 3px solid #fff; border-radius: 18px; overflow: hidden; background: #0d0a10; cursor: pointer; transform: rotate(var(--r, 0deg)); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.case__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.case__slot { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--aub-muted); font-size: 13px; line-height: 1.35; border: 1.5px dashed var(--aub-border); border-radius: 14px; margin: 6px; }
.case__hint { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 8px); display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; background: rgba(255,255,255,.94); color: #1E0518; font: 500 13px/1 var(--font-sans); white-space: nowrap; opacity: 0; transition: opacity .2s, transform .25s; pointer-events: none; }
.case__hint i { width: 0; height: 0; border-left: 8px solid #1E0518; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.case__card:hover .case__hint, .case__card:focus-visible .case__hint { opacity: 1; transform: translate(-50%, 0); }
.case__close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #1E0518; font-size: 20px; line-height: 1; cursor: pointer; display: none; }
.case__review { margin: 0 0 0 auto; width: 46%; border-radius: 14px; overflow: hidden; background: var(--aub-overlay); transform: translateY(-30px) rotate(2deg); transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .3s, width .45s cubic-bezier(.2, .7, .2, 1); }
.case__review img { display: block; width: 100%; }
.case__review figcaption { display: none; }
/* развёрнуто: карточка ровная и на всю ширину сцены, отзыв уезжает вниз и гаснет */
.case.is-open .case__float { width: 100%; }
.case.is-open .case__float .case__card { animation: none; transform: none; cursor: default; }
.case.is-open .case__hint { display: none; }
.case.is-open .case__close { display: grid; place-items: center; }
.case.is-open .case__review { transform: translateY(6px) rotate(0deg); opacity: .6; width: 40%; }
.case__float { transition: width .45s cubic-bezier(.2, .7, .2, 1); }
.js.still .case__float .case__card { animation: none; transform: none; }
/* Полка журналов на главной */
.slide__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.rail__nav { display: flex; gap: 8px; flex: none; }
.rail__btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--color-border); background: var(--color-bg); color: var(--color-text); font-size: 16px; cursor: pointer; }
.rail__btn:hover { border-color: var(--color-accent); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 224px; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: -8px calc(50% - 50vw) 0; padding: 16px var(--gx) 8px; scroll-padding-inline: var(--gx); }
.rail::-webkit-scrollbar { display: none; }
.mag-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 5px; text-decoration: none; color: inherit; min-width: 0; }
.mag-card__cover { position: relative; display: block; aspect-ratio: 2 / 3; perspective: 1000px; margin: 0 8px 10px 0; }
.mag-card__body { position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.mag-card__page { position: absolute; inset: 3px -3px -3px 3px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 4px 10px 10px 4px; }
.mag-card__page--2 { inset: 6px -6px -6px 6px; }
.mag-card__body img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 4px 10px 10px 4px; border: 1px solid var(--color-border); }
.mag-card__spine { position: absolute; left: 0; top: 0; bottom: 0; width: 16px; border-radius: 4px 0 0 4px; background: linear-gradient(to right, rgba(0,0,0,.26), rgba(0,0,0,.06) 55%, rgba(0,0,0,0)); pointer-events: none; }
.mag-card:hover .mag-card__body { transform: rotateY(-14deg) translateX(4px); }
.mag-card__open { position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 8px); padding: 9px 16px; border-radius: 999px; background: var(--color-accent); color: var(--color-accent-on); font: 500 13px/1 var(--font-sans); white-space: nowrap; opacity: 0; transition: opacity .25s, transform .3s; }
.mag-card:hover .mag-card__open { opacity: 1; transform: translate(-50%, 0); }
.mag-card__issue { font: 500 11px/1.1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); }
.mag-card h3 { font-size: 17px; line-height: 1.2; letter-spacing: -.02em; }
.mag-card__meta { font-size: 13px; color: var(--color-text-muted); }
@media (max-width: 900px) { .slide__head--row { flex-direction: column; align-items: flex-start; } .rail__nav { display: none; } .rail { grid-auto-columns: max(140px, 21vw); gap: 16px; padding-top: 8px; } .mag-card h3 { font-size: 15px; } }

/* Страница гайда: журнал с перелистыванием */
.modebar { position: relative; z-index: 45; background: color-mix(in srgb, var(--color-bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--color-border); }
.is-flow .modebar { position: sticky; top: var(--tb, 56px); }
.modebar__row { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.modebar__hint { font-size: 13px; color: var(--color-text-muted); }
.is-flow .modebar__hint { display: none; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--color-bg-tertiary); border: 1px solid var(--color-border); }
.seg button { border: 1px solid transparent; background: transparent; padding: 8px 14px; border-radius: 999px; font: 500 13px/1 var(--font-sans); color: var(--color-text); cursor: pointer; }
.seg button.is-on { background: var(--color-bg); border-color: var(--color-border); }
.seg button:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--color-accent); }
.mag { background: var(--color-bg-alt); overflow-x: clip; }
.book { position: relative; max-width: 1480px; margin: 0 auto; padding: 32px 24px 16px; }
.book__stage { position: relative; z-index: 1; display: flex; justify-content: center; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.book__stage:focus-visible .book__spread { outline: 2px solid var(--color-accent); outline-offset: 6px; }
.book__spread { position: relative; }
.book__sheet { position: absolute; top: 0; height: 100%; transform-origin: left center; transform-style: preserve-3d; will-change: transform; }
.book__face { position: absolute; inset: 0; overflow: hidden; background: #fff; border: 1px solid rgba(30,5,24,.12); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.book__face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.book__face--front { border-radius: 0 6px 6px 0; }
.book__face--back { transform: rotateY(180deg); border-radius: 6px 0 0 6px; }
.book__face::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--shade, 0); }
.book__face--front::after { background: linear-gradient(to right, rgba(20,5,15,.95), rgba(20,5,15,0) 62%); }
.book__face--back::after { background: linear-gradient(to left, rgba(20,5,15,.95), rgba(20,5,15,0) 62%); }
.book__spine { position: absolute; top: 0; bottom: 0; left: 50%; width: 56px; margin-left: -28px; pointer-events: none; z-index: 400; background: linear-gradient(to right, rgba(20,5,15,0), rgba(20,5,15,.10) 46%, rgba(20,5,15,.16) 50%, rgba(20,5,15,.10) 54%, rgba(20,5,15,0)); }
.book.is-closed .book__spine { opacity: 0; }
.book__face--end { background: #1E0518; color: #fff; }
.endpage { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 8%; gap: 6px; }
.endpage__mark { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -.03em; margin-bottom: auto; }
.endpage__title { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.03em; line-height: 1.1; }
.endpage__sub { font-size: 13px; opacity: .7; line-height: 1.4; }
.book__arrow { position: absolute; top: calc(32px + var(--bh, 600px) / 2); transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--color-border); background: var(--color-bg); color: var(--color-text); font-size: 18px; cursor: pointer; z-index: 5; }
.book__arrow--prev { left: 24px; } .book__arrow--next { right: 24px; }
.book__arrow:disabled { opacity: .3; cursor: default; }
.book__arrow:not(:disabled):hover { border-color: var(--color-accent); }
.book__foot { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; font-size: 13px; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.book__bar { width: min(280px, 40vw); flex: none; }
@media (max-width: 640px) {
  .modebar__hint { display: none; }
  .book { padding: 16px 0 14px; }
  .book__arrow { top: calc(16px + var(--bh, 500px) / 2); width: 36px; height: 36px; font-size: 15px; background: rgba(255,255,255,.9); color: #1E0518; border-color: transparent; }
  .book__arrow--prev { left: 8px; } .book__arrow--next { right: 8px; }
}

/* ============================================================
   Мобильная версия: единые поля, ленты во всю ширину экрана, свои форматы для длинных блоков
   ============================================================ */
:root { --gx: max(24px, calc(50vw - 536px)); } /* левый край контента на любой ширине */
body > section { overflow-x: clip; }

@media (max-width: 900px) {
  /* первый экран: ролики стопкой над заголовком, под ними подпись, заголовок и кнопки */
  .hero--home { min-height: calc(100svh - var(--tb, 57px)); padding: 6px 0 84px; justify-content: center; }
  .hero--home > .wrap { order: 1; }
  .stickers { position: relative; inset: auto; order: 0; display: block; width: min(100%, 440px); aspect-ratio: 100 / 80; margin: 0 auto 12px; }
  .stk { transform: none; }
  .vs--enemy { left: 3%; top: 5.7%; width: 45%; --r: -8deg !important; z-index: 1; }
  .vs--vert { left: 50%; right: auto; margin-left: -18%; top: 6.8%; width: 38%; --r: 3deg !important; z-index: 2; }
  .vs--ideal2 { display: block; left: auto; right: 3%; top: 67%; bottom: auto; width: 45%; --r: 6deg !important; z-index: 3; }
  .stickers .hand--reel { display: inline-flex; left: auto; right: calc(100% + 2px); top: 60%; bottom: auto; width: 63%; font-size: 26px; white-space: normal; line-height: .95; flex-direction: column; align-items: flex-end; text-align: right; transform: rotate(-6deg); }
  .stickers .hand--reel .hand__arrow { width: 50px; height: 30px; transform: rotate(20deg); margin: 2px 0 0; }
  .stickers .stk__in { animation-name: stkfloat-sm; }
  .vcard { border-width: 2px; border-radius: 12px; }
  .case__card { border-width: 2px; border-radius: 14px; }
  .hero--home .sig { font-size: 32px; margin-bottom: 4px; }
  .hero--home h1 { font-size: clamp(34px, 10vw, 50px); }
  .hero--home .hero__sub { margin-top: 12px; font-size: 16px; }
  .hero--home .hero__ctas { margin-top: 22px; }

  /* обо мне: имя, фото, факты, цифры */
  .about-grid { gap: 0; }
  .about-text { display: contents; }
  .about-grid .eyebrow { order: 1; } .about-grid h2 { order: 2; } .about-grid .pile { order: 3; } .about-grid .facts { order: 4; } .about-grid .tiles, .about-grid .about-more { order: 5; }
  .pile { width: min(76%, 320px); margin: 66px auto 6px; }
  .pile img { border-width: 4px; }
  .pile img:nth-child(1) { transform: rotate(-5deg) translate(-5%, 2%); }
  .pile img:nth-child(2) { transform: rotate(4deg) translate(5%, -1%); }

  /* заказчикам: ролик и отзыв друг под другом, без наложения */
  .brands { grid-template-columns: 1fr; gap: 32px; }
  .case__float { width: 100%; }
  .case__float .case__card { --r: -1.5deg; }
  .case__review, .case.is-open .case__review { width: 62%; transform: rotate(2deg); opacity: 1; }
}
@keyframes stkfloat-sm { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-3px) rotate(var(--r, 0deg)); } }
@media (hover: none) { .case__hint { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 640px) {
  :root { --gx: 20px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .slide, .screen { padding: 56px 0; }
  .slide--aub { padding-top: 88px; padding-bottom: 88px; }
  .slide__head, .screen .slide__head { margin-bottom: 28px; }
  .mt-40 { margin-top: 28px; }
  .lead { font-size: 17px; margin-top: 18px; }

  /* кнопки во всю ширину колонки, стрелка у правого края */
  .hero__ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__ctas .pill, .product__go, .product__buy .pill { width: 100%; justify-content: space-between; }
  .hero__ctas .link { align-self: center; margin-top: 8px; }
  .slide--aub .hero__ctas { margin-top: 28px; }
  .contacts .chips { margin-top: 24px; }

  /* вбок листается только полка журналов, остальные блоки вертикальные */
  .rail { grid-auto-columns: 38vw; gap: 14px; }


  /* уроки: по две карточки в ряд */
  .cards--lessons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .lesson__body { padding: 10px 12px 14px; gap: 4px; }
  .lesson h3 { font-size: 15px; line-height: 1.25; }
  .lesson__meta { gap: 6px; }
  .lesson__meta .eyebrow { font-size: 10px; }
  .lesson__play { width: 38px; height: 38px; font-size: 12px; }

  /* мультсериалы: карточка во всю ширину с тремя обложками */
  .works--fans { grid-template-columns: 1fr; gap: 26px; }
  .works--fans .fan { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .works--fans .fan img:nth-child(n+2) { display: block; }
  .works--fans .work h3 { font-size: 20px; }
  .works--fans .work__handle { font-size: 13px; }

  /* работы участниц листаются лентой */
  .rail.works--rail { grid-auto-columns: 62vw; gap: 16px; }
  .work h3, .work__title { font-size: 16px; }
  .work__handle { font-size: 12px; }
  .stack { margin: 0 8px 12px 0; }

  /* продукты: обложка слева, теги под ней во всю карточку */
  .next { grid-template-columns: 136px minmax(0, 1fr); gap: 12px 16px; padding: 16px; align-items: start; }
  .next__media { aspect-ratio: 4 / 5; height: auto; width: 100%; min-height: 0; grid-column: 1; grid-row: 1; }
  .next__body { display: contents; }
  .next__head { grid-column: 2; grid-row: 1; gap: 8px; }
  .next .chips { grid-column: 1 / -1; gap: 6px; }
  .next__foot { grid-column: 1 / -1; margin: 0; }
  .next__body h3 { font-size: 20px; }
  .next__note { font-size: 13px; }
  .chatshots { columns: 1; }

  /* обучение */
  .product { padding: 20px; border-radius: 24px; gap: 18px; }
  .product__cover { max-width: none; }
  .product__title { font-size: 36px; }
  .product__body .chips { margin-top: 16px; gap: 6px; }
  .product__buy { align-items: stretch; gap: 14px; }

  /* мини-аппы: строки, как в магазине приложений */
  .apps { grid-template-columns: 1fr; gap: 10px; }
  .apps .card { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; column-gap: 14px; padding: 10px 16px 10px 10px; border-radius: 22px; }
  .app__cover { width: 76px; height: 76px; aspect-ratio: 1; border-radius: 16px; }
  .app__body { padding: 0; gap: 2px; }
  .app h3 { font-size: 18px; }
  .apps .card .link { margin-top: 4px; font-size: 13px; }

  /* цифры обо мне в один ряд */
  .tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tiles--3 .tile { padding: 14px 12px 12px; gap: 10px; border-radius: 18px; justify-content: space-between; }
  .tiles--3 .tile__label { font-size: 10px; letter-spacing: .04em; line-height: 1.2; }
  .tiles--3 .tile__num { font-size: 30px; }
  .tiles--3 .tile__num small { font-size: 14px; margin-left: 2px; }

  /* интенсив */
  .lessons-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lessons-grid .card { min-height: 0; padding: 16px 14px; gap: 6px; border-radius: 18px; }
  .lessons-grid .card .eyebrow { font-size: 10.5px; }
  .lessons-grid .card h3 { font-size: 15px; line-height: 1.25; letter-spacing: -.02em; }
  .circles { gap: 10px; }
  .circle { padding: 14px; gap: 4px; }
  .circle .eyebrow { font-size: 10.5px; }
  .circle p { font-size: 13px; line-height: 1.3; }
  .faq summary { font-size: 18px; padding: 18px 0; }
  .demo > div { padding: 18px 20px; }

  /* страница гайда */
  .ghead { padding: 24px 0 20px; }
  .ghead__row { gap: 18px; }
  .ghead__actions { width: 100%; gap: 8px; }
  .ghead__actions .pill { flex: 1 1 auto; justify-content: space-between; padding: 6px 6px 6px 16px; gap: 8px; font-size: 14px; }
  .ghead__actions .pill--outline { padding: 4.5px 4.5px 4.5px 16px; }
  .ghead__actions .pill i { width: 30px; height: 30px; font-size: 14px; }
}

/* Подарок к гайду: файлы скиллов на странице гайда и под полкой журналов */
.ghead .gift { margin-top: 28px; }
#guides .gift { margin-top: 40px; }
.gift { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px 40px; padding: 24px 24px 24px 30px; border-radius: var(--radius-xl); background: var(--card-pink); color: var(--color-text); }
.gift .eyebrow { margin: 0 0 10px; color: var(--color-text); opacity: .6; }
.gift__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.12; letter-spacing: -.03em; max-width: 24ch; text-wrap: balance; }
.gift__files { display: grid; grid-template-columns: repeat(2, 300px); gap: 10px; }
.gift__file { display: grid; grid-template-columns: 40px minmax(0, 1fr) 30px; column-gap: 12px; align-items: center; padding: 11px; border-radius: 18px; background: var(--color-bg); border: 1px solid var(--color-border); color: var(--color-text); text-decoration: none; transition: border-color .2s; }
.gift__file:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--color-accent); }
.gift__icon { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--color-accent); color: var(--color-accent-on); display: grid; place-items: center; }
.gift__icon svg { width: 18px; height: 18px; display: block; }
.gift__name { grid-column: 2; align-self: end; font: 600 14px/1.2 var(--font-sans); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gift__meta { grid-column: 2; align-self: start; margin-top: 3px; font-size: 12.5px; line-height: 1.2; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gift__file i { grid-column: 3; grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--color-cta); color: var(--color-cta-on); display: grid; place-items: center; font-style: normal; font-size: 14px; transition: transform .2s; }
@media (hover: hover) { .gift__file:hover { border-color: var(--color-accent); } .gift__file:hover i { transform: scale(1.1); } }
.mag-card__gift { position: absolute; left: 10px; top: 10px; z-index: 3; padding: 6px 10px; border-radius: 999px; background: var(--color-accent); color: var(--color-accent-on); font: 600 12px/1 var(--font-sans); letter-spacing: -.01em; pointer-events: none; }
@media (max-width: 1000px) { .gift { grid-template-columns: 1fr; } .gift__files { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ghead .gift { margin-top: 20px; } #guides .gift { margin-top: 28px; } .gift { padding: 20px; border-radius: 24px; gap: 16px; } .gift__title { font-size: 22px; } .gift__files { grid-template-columns: 1fr; } .mag-card__gift { left: 8px; top: 8px; padding: 5px 8px; font-size: 11px; } }

/* ============================================================
   Страница интенсива: уроки с обложками, шаги, отзывы, автор, тариф
   ============================================================ */
/* теги на сером фоне не сливаются */
.slide--alt .chip:not(.chip--sale):not(.chip--soon):not(.chip--accent):not(.chip--dark):not(.chip--soft) { background: var(--color-bg); }

/* уроки */
.lgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lcard { display: flex; flex-direction: column; min-width: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-bg); border: 1px solid var(--color-border); transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .2s; }
.lcard__cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
/* обложки уроков: лёгкая графика по смыслу, оживает при появлении и наведении */
.lcard__cover--art { background: var(--art-bg, var(--card-lavender)); --art-line: color-mix(in srgb, var(--color-text) 70%, transparent); --art-soft: color-mix(in srgb, var(--color-text) 13%, transparent); }
.art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.art .p { fill: var(--color-bg); stroke: var(--art-line); stroke-width: 1.4; }
.art .s { fill: var(--art-soft); }
.art .a { fill: var(--color-accent); }
.art .i { fill: var(--art-line); }
.art .l { fill: none; stroke: var(--art-line); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.art .thick { stroke-width: 6; } .art .thick2 { stroke-width: 2.4; }
.art .lens { fill: color-mix(in srgb, var(--color-accent) 24%, transparent); stroke: var(--art-line); stroke-width: 3; }
.art .sel { fill: none; stroke: var(--art-line); stroke-width: 1.4; stroke-dasharray: 4 4; }
.art .al { fill: none; stroke: var(--color-accent); stroke-width: 2.4; stroke-linecap: round; }
.art .mv, .art .pop, .art .ty { transform-box: fill-box; transform-origin: center; }
.art .ty { transform-origin: left center; }
.art .mv { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.art .caret { animation: blink 1s steps(1) infinite; }
.lcard.in .art .pop, .how__panel.is-on .art .pop { animation: artpop .5s cubic-bezier(.2, .9, .3, 1.4) var(--d, .2s) both; }
.lcard.in .art .ty, .how__panel.is-on .art .ty { animation: typeline .7s ease-out var(--d, .2s) both; }
.lcard.in .art .sig, .how__panel.is-on .art .sig { stroke-dasharray: 170; animation: sigdraw 1.4s ease var(--d, .7s) both; }
@keyframes artpop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes typeline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sigdraw { from { stroke-dashoffset: 170; } to { stroke-dashoffset: 0; } }
.lcard__cover .lesson__play { left: auto; top: auto; right: 10px; bottom: 10px; width: 32px; height: 32px; font-size: 10px; padding-left: 2px; transform: none; transition: transform .25s; }
.js.still .art * { animation: none !important; }
.lcard__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 18px; }
.lcard__body .eyebrow { margin: 0; }
.lcard h3 { font-size: 17px; line-height: 1.25; letter-spacing: -.02em; }
@media (hover: hover) {
  .lcard:hover { transform: translateY(-4px); border-color: var(--color-accent); }
  .lcard:hover .art .mv { transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--rr, 0deg)); }
  .lcard:hover .lcard__cover .lesson__play { transform: scale(1.12); }
}

/* как работает: вкладки-шаги и живое превью */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: stretch; }
.how__tabs { display: flex; flex-direction: column; gap: 10px; }
.how__tab { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 16px; text-align: left; padding: 18px 20px 22px; border-radius: 20px; border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-text); font: inherit; cursor: pointer; opacity: .6; overflow: hidden; transition: opacity .25s, border-color .25s; }
.how__tab:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--color-accent); }
.how__tab.is-on { opacity: 1; border-color: var(--color-accent); }
.how__n { width: 44px; height: 44px; border-radius: 50%; background: var(--color-bg-tertiary); display: grid; place-items: center; font: 700 15px/1 var(--font-sans); transition: background .25s, color .25s; }
.how__tab.is-on .how__n { background: var(--color-accent); color: var(--color-accent-on); }
.how__t { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.2; letter-spacing: -.02em; }
.how__bar { position: absolute; left: 20px; right: 20px; bottom: 10px; height: 3px; border-radius: 3px; background: var(--color-bg-tertiary); overflow: hidden; opacity: 0; transition: opacity .25s; }
.how__tab.is-on .how__bar { opacity: 1; }
.how__bar i { display: block; height: 100%; width: 0; background: var(--color-accent); }
.how.is-running .how__tab.is-on .how__bar i { animation: howbar var(--how-dur, 5s) linear forwards; }
.how:hover .how__tab.is-on .how__bar i { animation-play-state: paused; }
@keyframes howbar { to { width: 100%; } }
.how__stage { position: relative; min-height: 380px; border-radius: 28px; background: var(--color-bg); border: 1px solid var(--color-border); overflow: hidden; }
.how__panel { position: absolute; inset: 0; display: grid; place-items: center; padding: 28px; opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .5s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.how__panel.is-on { opacity: 1; transform: none; pointer-events: auto; }
.player { position: relative; width: min(100%, 520px); aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #111; }
.player.lcard__cover--art { background: var(--art-bg); border: 1px solid var(--color-border); }
.player .lesson__play { left: 50%; top: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); }
.player__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player__play { width: 58px; height: 58px; font-size: 16px; }
.player__bar { position: absolute; left: 16px; right: 16px; bottom: 14px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.player__bar i { display: block; height: 100%; width: 0; background: #fff; }
.how.is-running .how__panel.is-on .player__bar i { animation: howbar var(--how-dur, 5s) linear forwards; }
.folder { width: min(100%, 520px); border-radius: 18px; background: var(--color-bg-alt); border: 1px solid var(--color-border); overflow: hidden; }
.folder__top { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--color-border); font-size: 13px; }
.folder__top span { width: 10px; height: 10px; border-radius: 50%; background: var(--color-border); }
.folder__top b { margin-left: 10px; font-weight: 500; color: var(--color-text-muted); }
.folder__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; padding: 22px 18px; }
.file { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; line-height: 1.2; text-align: center; opacity: 0; transform: translateY(-18px) scale(.9); transition: opacity .35s ease, transform .45s cubic-bezier(.2, .9, .3, 1.3); }
.file i { width: 64px; height: 78px; border-radius: 10px; background: var(--color-bg); border: 1px solid var(--color-border); display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: 22px; color: var(--color-accent); }
.file img { width: 64px; height: 78px; object-fit: cover; border-radius: 10px; border: 1px solid var(--color-border); }
.how__panel.is-on .file { opacity: 1; transform: none; }
.how__panel.is-on .file:nth-child(2) { transition-delay: .12s; } .how__panel.is-on .file:nth-child(3) { transition-delay: .24s; }
.how__panel.is-on .file:nth-child(4) { transition-delay: .36s; } .how__panel.is-on .file:nth-child(5) { transition-delay: .48s; } .how__panel.is-on .file:nth-child(6) { transition-delay: .6s; }
.result { width: min(100%, 520px); display: flex; flex-direction: column; gap: 20px; }
.result__prompt { align-self: flex-end; max-width: 90%; padding: 12px 16px; border-radius: 18px 18px 6px 18px; background: var(--color-accent); color: var(--color-accent-on); font-size: 15px; line-height: 1.35; }
.result__slides { display: flex; justify-content: center; gap: 12px; }
.result__slides img { width: 30%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; border: 1px solid var(--color-border); opacity: 0; transform: translateY(24px) rotate(var(--r, 0deg)); transition: opacity .4s ease, transform .6s cubic-bezier(.2, .9, .3, 1.25); }
.result__slides img:nth-child(1) { --r: -4deg; } .result__slides img:nth-child(3) { --r: 4deg; }
.how__panel.is-on .result__slides img { opacity: 1; transform: rotate(var(--r, 0deg)); }
.how__panel.is-on .result__slides img:nth-child(1) { transition-delay: .45s; } .how__panel.is-on .result__slides img:nth-child(2) { transition-delay: .6s; } .how__panel.is-on .result__slides img:nth-child(3) { transition-delay: .75s; }

/* формат: круги плавают и откликаются на курсор */
.circle { transition: transform .35s cubic-bezier(.2, .7, .2, 1); animation: circfloat 6s ease-in-out infinite; }
.circle:nth-child(2) { animation-delay: -1.5s; } .circle:nth-child(3) { animation-delay: -3s; } .circle:nth-child(4) { animation-delay: -4.5s; }
@keyframes circfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (hover: hover) { .js .circle.r.in:hover { transform: scale(1.06) rotate(-4deg); } }
.js.still .circle { animation: none; }

/* отзывы из чата: целые скрины лентой, по клику крупно */
.shots__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 56px 0 6px; }
.shots__head .eyebrow { margin: 0; }
.rail.shots { grid-auto-columns: max-content; gap: 16px; align-items: start; }
.shot { appearance: none; padding: 0; margin: 0; background: none; border: 1px solid var(--color-border); border-radius: 18px; overflow: hidden; cursor: zoom-in; scroll-snap-align: start; }
.shot img { display: block; height: 440px; width: auto; max-width: none; }
.shot:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--color-accent); }
@media (hover: hover) { .shot { transition: transform .3s cubic-bezier(.2, .7, .2, 1); } .shot:hover { transform: translateY(-4px); } }

/* автор: фото держится рядом, путь подсвечивается при прокрутке */
.author { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.author__photo { position: sticky; top: calc(var(--tb, 56px) + 48px); }
.author .pile { width: min(100%, 400px); margin: 40px auto 0; }
.path { list-style: none; margin: 36px 0 0; padding: 0 0 0 32px; position: relative; }
.path::before, .path::after { content: ""; position: absolute; left: 8px; top: 8px; width: 2px; border-radius: 2px; }
.path::before { bottom: 30px; background: var(--color-border); }
.path::after { height: calc((100% - 38px) * var(--p, 0)); background: var(--color-accent); }
.path li { position: relative; padding: 0 0 24px; }
.path li::before { content: ""; position: absolute; left: -30px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--color-bg); border: 2px solid var(--color-border); transition: background .3s, border-color .3s, transform .3s; }
.path li.is-lit::before { background: var(--color-accent); border-color: var(--color-accent); transform: scale(1.15); }
.path__k { display: block; font: 500 11px/1.1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 6px; }
.path p { font-size: 17px; line-height: 1.45; transition: opacity .35s; }
.js .path li:not(.is-lit) p { opacity: .45; }

/* тариф */
.deal { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 56px; padding: 44px; border-radius: var(--radius-xl); background: var(--aub); color: var(--aub-on); border: 1px solid var(--aub-border); }
.deal__label { font: 500 12px/1.1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--aub-muted); margin: 0 0 22px; }
.deal__label--end { text-align: right; }
.deal__name { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.15; letter-spacing: -.03em; }
.deal__price { font-family: var(--font-display); font-weight: 600; font-size: clamp(64px, 7vw, 96px); line-height: 1; letter-spacing: -.05em; margin: 18px 0 28px; }
.deal__price span { font-size: .42em; vertical-align: .95em; margin-left: 8px; color: var(--color-accent); }
.pill.deal__cta { position: relative; overflow: hidden; width: 100%; justify-content: space-between; padding: 12px 12px 12px 26px; font-size: 16px; background: var(--aub-on); color: var(--aub); }
.pill.deal__cta i { background: var(--aub); color: var(--aub-on); }
.deal__cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(239, 172, 223, .55) 50%, transparent 70%); transform: translateX(-120%); animation: sheen 4s ease-in-out 1.5s infinite; pointer-events: none; }
@keyframes sheen { 0%, 62% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.deal__note { margin-top: 14px; font-size: 13.5px; color: var(--aub-muted); }
.deal__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.deal__list li { position: relative; padding: 16px 0 16px 36px; border-bottom: 1px solid var(--aub-border); font-size: 16px; line-height: 1.4; }
.deal__list li::before { content: "✓"; position: absolute; left: 0; top: 15px; width: 22px; height: 22px; border-radius: 50%; background: var(--color-accent); color: var(--color-accent-on); display: grid; place-items: center; font-size: 12px; font-weight: 700; transform: scale(0); transition: transform .45s cubic-bezier(.2, .9, .3, 1.4); }
.deal.in .deal__list li::before, .js.still .deal__list li::before { transform: scale(1); }
.deal.in .deal__list li:nth-child(1)::before { transition-delay: .4s; } .deal.in .deal__list li:nth-child(2)::before { transition-delay: .55s; } .deal.in .deal__list li:nth-child(3)::before { transition-delay: .7s; }
.deal.in .deal__list li:nth-child(4)::before { transition-delay: .85s; } .deal.in .deal__list li:nth-child(5)::before { transition-delay: 1s; } .deal.in .deal__list li:nth-child(6)::before { transition-delay: 1.15s; }
.deal__more { margin-top: 18px; padding: 26px 30px; border-radius: var(--radius-xl); border: 1.5px dashed var(--color-border); display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; }
.deal__more .eyebrow { margin: 0 0 8px; }
.deal__more p:not(.eyebrow) { font-size: 16px; line-height: 1.5; max-width: 68ch; }
.js.still .deal__cta::after { animation: none; }

@media (max-width: 1000px) { .lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .how { grid-template-columns: 1fr; gap: 14px; }
  .how__stage { min-height: 320px; }
  .author { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .author__info { display: contents; }
  .author__info > .eyebrow { order: 1; } .author__info > h2 { order: 2; } .author__photo { order: 3; position: static; } .author .path { order: 4; } .author .tiles { order: 5; }
  .author .pile { width: min(76%, 320px); margin: 64px auto 16px; }
  .deal { grid-template-columns: 1fr; padding: 30px; }
  .deal__label--end { text-align: left; }
}
@media (max-width: 640px) {
  .lgrid { gap: 10px; }
  .lcard { border-radius: 18px; }
  .lcard__body { padding: 10px 12px 14px; gap: 4px; }
  .lcard h3 { font-size: 14px; }
  .lcard__body .eyebrow { font-size: 10px; }
  .how__tab { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 12px 14px 16px; border-radius: 16px; }
  .how__n { width: 34px; height: 34px; font-size: 13px; }
  .how__t { font-size: 16px; }
  .how__bar { left: 14px; right: 14px; bottom: 7px; }
  .how__stage { min-height: 290px; border-radius: 22px; }
  .how__panel { padding: 16px; }
  .folder__grid { gap: 12px 8px; padding: 16px 12px; }
  .file { font-size: 11.5px; }
  .file i, .file img { width: 52px; height: 64px; }
  .shots__head { margin-top: 40px; }
  .shot img { height: 360px; }
  .path p { font-size: 16px; }
  .deal { padding: 22px; border-radius: 24px; gap: 8px; }
  .deal__name { font-size: 24px; }
  .deal__list { grid-template-columns: 1fr; }
  .deal__more { padding: 20px; border-radius: 24px; }
  .deal__more .pill { width: 100%; justify-content: space-between; }
}

/* ===== Страница 404 ===== */
.e404 { display: flex; align-items: center; min-height: calc(100svh - var(--tb, 57px) - 96px); padding: 48px 0 72px; }
.e404 .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.e404__num { display: flex; align-items: center; gap: 4px; margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; font-size: clamp(104px, 21vw, 208px); line-height: .84; letter-spacing: -.06em; }
.e404__d { display: block; }
.e404__d--a { transform: rotate(-4deg); }
.e404__d--b { transform: rotate(5deg); }
.e404__o { position: relative; display: inline-grid; place-items: center; width: .82em; height: .82em; color: var(--color-text); }
.e404__o svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin404 14s linear infinite; }
.e404__o i { font-style: normal; font-size: .3em; line-height: 1; color: var(--color-accent); animation: pulse404 2.4s ease-in-out infinite; }
@keyframes spin404 { to { transform: rotate(360deg); } }
@keyframes pulse404 { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.18) rotate(22deg); } }
.e404 h1 { margin: 0; font-size: clamp(30px, 5vw, 48px); line-height: 1.05; letter-spacing: -.04em; }
.e404__chat { width: min(520px, 100%); display: flex; flex-direction: column; gap: 8px; margin: 26px 0 4px; }
.e404__b { max-width: 88%; margin: 0; padding: 13px 19px; border-radius: 22px; font-size: 17px; line-height: 1.35; text-align: left; }
.e404__b--out { align-self: flex-end; background: var(--color-accent); color: var(--color-accent-on); border-bottom-right-radius: 8px; }
.e404__b--in { align-self: flex-start; min-height: 3em; background: var(--color-bg-tertiary); border-bottom-left-radius: 8px; }
.e404__acts { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.hand--e404 { left: calc(100% + 10px); bottom: -6px; font-size: 30px; align-items: center; transform: rotate(4deg); }
.hand--e404 .hand__arrow { width: 62px; height: 34px; }
.e404__note { margin: 26px 0 0; max-width: 34ch; color: var(--color-text-muted); font-size: 15px; line-height: 1.45; }
@media (max-width: 900px) { .hand--e404 { display: none; } }
@media (max-width: 640px) {
  .e404 { padding: 28px 0 56px; }
  .e404__chat { margin-top: 22px; }
  .e404__b { font-size: 16px; }
}
