/* ============================================================
   Sexy Jutsu — V2 (манга-версия). Vanilla CSS, no build step.
   Display: Unbounded (self-hosted). Body: Inter (self-hosted).
   Печатная манга: бумага, офсетный чёрный, один акцент.
   ============================================================ */

/* === Fonts (self-hosted, latin + cyrillic subsets) === */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/public/fonts/inter-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/public/fonts/inter-cyr-400.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/public/fonts/inter-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/public/fonts/inter-cyr-600.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/public/fonts/inter-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/public/fonts/inter-cyr-700.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/public/fonts/unbounded-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/public/fonts/unbounded-cyr-700.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/public/fonts/unbounded-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/public/fonts/unbounded-cyr-800.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Кана для декоративных японских надписей (self-hosted сабсет Noto Sans JP:
   хирагана + катакана, 44 КБ). Латиница и кириллица в этот @font-face не
   попадают: unicode-range отдаёт их Unbounded/Inter. */
@font-face {
  font-family: 'JP Kana'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/noto-jp-kana-700.woff2') format('woff2');
  unicode-range: U+3001-3002, U+3041-307F, U+3081-308F, U+3091-3093, U+3099-309A, U+309D-309E, U+30A1-30E1, U+30E3-30ED, U+30EF-30F0, U+30F2-30F4, U+30FB-30FE;
}

/* === Tokens === */
:root {
  --paper: #f1ede5;          /* бумага манги */
  --paper-2: #e6e1d6;        /* поле страницы */
  --ink: #14110f;            /* офсетный чёрный */
  --ink-soft: #514b45;
  --accent: #ff3d8b;         /* единственный акцент, бренд */
  --on-accent: #14110f;      /* текст на акценте: чёрный, контраст 6:1 */
  --tone: rgba(20, 17, 15, .22);   /* точки скринтона */
  --rule: 3px;               /* толщина обводки панели */
  --container: 1280px;
  --nav-h: 68px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131110;
    --paper-2: #0b0a09;
    --ink: #f1ede5;
    --ink-soft: #a49c92;
    --tone: rgba(241, 237, 229, .18);
  }
}

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

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

body {
  margin: 0;
  background: var(--paper-2);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* Заголовки балансируем по строкам, абзацы — по «красоте» хвоста: браузер
   сам не оставит одно слово на последней строке. Неразрывные пробелы в тексте
   страхуют браузеры, которые этих значений ещё не понимают. */
h1, h2, h3, .hero__title, .about__head, .about__quote, .modal__title, .age-gate__title, .kicker {
  text-wrap: balance;
}
p, li, dd, dt, .rule-card, .price__foot, .footer p {
  text-wrap: pretty;
}
a { color: inherit; }

/* Скринтон: растр из точек, как в печатной манге */
.tone {
  background-image: radial-gradient(var(--tone) 1.1px, transparent 1.2px);
  background-size: 6px 6px;
}

/* Спидлайны: расходящиеся лучи */
.speedlines::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: repeating-conic-gradient(from 0deg at 50% 50%,
    var(--tone) 0deg .35deg, transparent .35deg 3.6deg);
  opacity: .5;
  pointer-events: none;
}

/* === Общий каркас страницы === */
.page {
  max-width: var(--container);
  margin: 0 auto;
  background: var(--paper);
  border-left: var(--rule) solid var(--ink);
  border-right: var(--rule) solid var(--ink);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* === Навигация: одна строка, до 68px === */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 3vw, 2rem);
  background: var(--paper);
  border-bottom: var(--rule) solid var(--ink);
}
.brand {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--accent); }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.75rem);
  font-weight: 600;
  font-size: .9rem;
}
.nav__links a { text-decoration: none; white-space: nowrap; }
.nav__links a:not(.btn):hover { color: var(--accent); }
.nav__stamp {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 800;
  font-size: .78rem;
  padding: .3rem .5rem;
  border: 2px solid var(--ink);
  background: var(--accent);
  color: var(--on-accent);
}

/* === Кнопки: прямые углы, печатная тень === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: .92rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  border: var(--rule) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--sm { padding: .6rem .9rem; font-size: .8rem; box-shadow: 4px 4px 0 var(--ink); }
.btn--lg { padding: 1.05rem 1.7rem; font-size: 1.02rem; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* === Hero: асимметричный сплит, помещается в экран === */
.hero {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 3vh, 2.5rem) clamp(1rem, 3vw, 2rem) clamp(1.5rem, 3vh, 2rem);
  overflow: hidden;
}
.hero__content { position: relative; z-index: 2; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(.64rem, 1.1vw, .76rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .45rem .7rem;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.hero__title {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 4.1rem);
  line-height: .94;
  letter-spacing: -.035em;
  text-transform: uppercase;
  margin: clamp(.8rem, 2vh, 1.2rem) 0 0;
}
.hero__title i {
  font-style: normal;
  display: block;
  color: var(--accent);
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
}
.hero__sub {
  max-width: 34ch;
  margin: clamp(.75rem, 2vh, 1.1rem) 0 0;
  font-size: clamp(.98rem, 1.35vw, 1.12rem);
  color: var(--ink-soft);
}
.hero__sub b { color: var(--ink); font-weight: 700; }
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: clamp(1.1rem, 2.6vh, 1.8rem);
}

/* Вертикальная катакана вдоль левого края */
.hero__vertical {
  position: absolute;
  left: .35rem;
  bottom: 1.5rem;
  writing-mode: vertical-rl;
  font-family: 'JP Kana', 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .32em;
  color: var(--ink);
  opacity: .5;
  z-index: 1;
}

/* === Коллаж: панели манги внахлёст === */
.collage {
  position: relative;
  height: min(72vh, 620px);
  z-index: 1;
}
.panel {
  position: absolute;
  border: var(--rule) solid var(--ink);
  background: var(--paper);
  overflow: hidden;
  box-shadow: 7px 7px 0 var(--ink);
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.panel img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(1.06);
}
.panel:hover { transform: translateY(-6px) rotate(0deg) !important; }
/* Правая верхняя панель поднята выше левой и лежит НА ней: перекрытие по
   горизонтали даёт z-index выше, чем у панели a. */
.panel--a { top: 6%; left: 2%; width: 54%; height: 62%; transform: rotate(-2.4deg); z-index: 2; }
.panel--b { top: 0; left: 50%; right: auto; width: 44%; height: 44%; transform: rotate(2.6deg); z-index: 4; }
.panel--c { bottom: 2%; left: 0; width: 40%; height: 34%; transform: rotate(1.8deg); z-index: 3; }
.panel--d { bottom: 0; right: 3%; width: 50%; height: 46%; transform: rotate(-1.6deg); z-index: 5; }

/* Штамп «сгенерировано в боте» */
.stamp {
  position: absolute;
  z-index: 6;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: .6rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .32rem .5rem;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--paper);
}
.stamp--collage { right: 8%; bottom: 44%; }

/* Штамп 18+ поверх коллажа */
.rating {
  position: absolute;
  z-index: 7;
  top: 2%;
  right: 6%;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: var(--rule) solid var(--ink);
  background: var(--accent);
  color: var(--on-accent);
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 800;
  font-size: .92rem;
  transform: rotate(9deg);
}

/* === Полоса-бегущая строка (одна на страницу) === */
.ticker {
  border-top: var(--rule) solid var(--ink);
  border-bottom: var(--rule) solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: .55rem 0;
}
.ticker__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  font-family: 'JP Kana', 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: ticker 32s linear infinite;
}
.ticker__track span { white-space: nowrap; }
.ticker__track span::after { content: "/"; margin-left: 2.5rem; color: var(--accent); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* === Футер === */
.footer {
  border-top: var(--rule) solid var(--ink);
  padding: 1.1rem clamp(1rem, 3vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  font-size: .82rem;
  color: var(--ink-soft);
  background: var(--paper);
}
.footer a { text-decoration: none; font-weight: 600; color: var(--ink); }
.footer a:hover { color: var(--accent); }
.footer__links { display: flex; flex-wrap: wrap; gap: .9rem 1.3rem; }

/* === Модалка «что ты умеешь» === */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(20, 17, 15, .72);
  backdrop-filter: blur(3px);
}
.modal__card {
  position: relative;
  width: min(560px, 100%);
  max-height: 88dvh;
  overflow-y: auto;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--paper);
  border: var(--rule) solid var(--ink);
  box-shadow: 10px 10px 0 var(--accent);
}
.modal__title {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.3rem, 3.4vw, 1.8rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 .9rem;
}
.modal__list {
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .55rem;
}
.modal__list li {
  padding-left: 1.5rem;
  position: relative;
  font-size: .96rem;
}
.modal__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: .7rem;
  height: .7rem;
  background: var(--accent);
  border: 2px solid var(--ink);
}
.modal__note {
  margin: 0 0 1.3rem;
  font-size: .88rem;
  color: var(--ink-soft);
}
.modal__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.modal__close {
  position: absolute;
  top: .6rem;
  right: .6rem;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 2px solid var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.modal__close:hover { background: var(--accent); color: var(--on-accent); }

/* === Age gate === */
.age-gate[hidden] { display: none; }
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: var(--paper-2);
}
.age-gate__card {
  position: relative;
  width: min(520px, 100%);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background: var(--paper);
  border: var(--rule) solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  text-align: center;
}
.age-gate__badge {
  display: inline-grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: var(--rule) solid var(--ink);
  background: var(--accent);
  color: var(--on-accent);
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 800;
  margin-bottom: .9rem;
}
.age-gate__title {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 3.6vw, 1.7rem);
  line-height: 1.05;
  margin: 0 0 .7rem;
}
.age-gate__text { font-size: .92rem; color: var(--ink-soft); margin: 0 0 1.4rem; }
.age-gate__actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }

/* === Страница «о боте» === */
.about {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  padding: clamp(1.25rem, 3vh, 2rem) clamp(1rem, 3vw, 2rem);
  align-items: start;
}
.about__aside {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  display: grid;
  gap: 1.1rem;
}
.about__art {
  position: relative;
  border: var(--rule) solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.about__art img { width: 100%; height: 100%; object-fit: cover; }
.about__quote {
  margin: 0;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.15rem, 2.1vw, 1.6rem);
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.about__quote b { color: var(--accent); -webkit-text-stroke: 1.2px var(--ink); paint-order: stroke fill; }

.about__main { display: grid; gap: clamp(.9rem, 2vh, 1.35rem); }
.about__head {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: .98;
  letter-spacing: -.03em;
  text-transform: uppercase;
  margin: 0;
}

.about__strip {
  position: relative;
  margin: 0;
  border: var(--rule) solid var(--ink);
  box-shadow: 5px 5px 0 var(--accent);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.about__strip img { width: 100%; height: 100%; object-fit: cover; }
.about__strip figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .45rem .6rem;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: .68rem;
  text-transform: uppercase;
}

/* Карточки цен: 3 панели с разным весом */
.prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}
.price {
  position: relative;
  border: var(--rule) solid var(--ink);
  background: var(--paper);
  padding: 1rem;
  box-shadow: 5px 5px 0 var(--ink);
}
.price--accent { background: var(--accent); color: var(--on-accent); }
.price h3 {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 800;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0 0 .7rem;
}
.price dl { margin: 0; overflow-wrap: anywhere; display: grid; gap: .38rem; font-size: .88rem; }
.price div { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.price dt { color: inherit; opacity: .78; }
.price dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price__foot {
  margin: .8rem 0 0;
  font-size: .78rem;
  opacity: .78;
}

/* Правила: горизонтальная лента панелей */
.rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
}
.rule-card {
  border: var(--rule) solid var(--ink);
  overflow-wrap: anywhere;
  hyphens: auto;
  padding: .85rem;
  background: var(--paper);
  font-size: .84rem;
}
.rule-card b {
  display: block;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: .8rem;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.rule-card--ink { background: var(--ink); color: var(--paper); }

/* FAQ */
.faq { display: grid; gap: .55rem; }
.faq details {
  border: var(--rule) solid var(--ink);
  background: var(--paper);
}
.faq summary {
  cursor: pointer;
  padding: .8rem 1rem;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: .88rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.1rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 0; padding: 0 1rem 1rem; font-size: .9rem; color: var(--ink-soft); }
.faq a { color: var(--ink); }

.about__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem;
  padding-top: .2rem;
}

/* === Появление элементов при скролле === */
@media (prefers-reduced-motion: no-preference) {
  .load-in { animation: rise .7s cubic-bezier(.16,1,.3,1) both; }
  .load-in.d1 { animation-delay: .06s; }
  .load-in.d2 { animation-delay: .14s; }
  .load-in.d3 { animation-delay: .22s; }
  .load-in.d4 { animation-delay: .3s; }
  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
}

/* === Мобильная раскладка === */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__aside { position: static; }
  .prices { grid-template-columns: 1fr; }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --nav-h: 60px; --rule: 2.5px; }
  .page { border-left: 0; border-right: 0; }
  .hero {
    /* minmax(0, 1fr), а не 1fr: иначе кнопка с white-space: nowrap задаёт
       колонке min-content и распирает её шире экрана вместе с коллажем. */
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.25rem 1rem 1.75rem;
  }
  .hero__vertical { display: none; }
  /* Коллаж ужат, чтобы кнопки помещались в первый экран вместе с заголовком */
  .collage {
    height: min(42vh, 330px);
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    order: -1;
  }
  .kicker { font-size: .62rem; padding: .35rem .55rem; }
  .hero__title { font-size: 2rem; margin-top: .6rem; }
  .hero__sub { font-size: .95rem; margin-top: .55rem; }
  .hero__cta { margin-top: .9rem; gap: .6rem; }
  .btn--lg { padding: .9rem 1.3rem; font-size: .95rem; }

  /* Мобильная композиция коллажа: три ПОРТРЕТНЫЕ панели вместо четырёх.
     Панель b (исходник широкий) кадрируется в портрет и уходит левым краем
     за переднюю панель a примерно на шестую часть своей ширины, остальное
     остаётся открытым. Четвёртая панель на такой ширине превращала коллаж
     в кашу и вылезала за экран, поэтому на мобилке она скрыта. */
  .panel--a { top: 4%; left: 1%; right: auto; width: 47%; height: 78%; transform: rotate(-2.2deg); z-index: 3; }
  .panel--b { top: 0; left: 44%; right: auto; width: 41%; height: 68%; transform: rotate(2.4deg); z-index: 4; }
  .panel--c { display: none; }
  .panel--d { bottom: 0; right: 0; left: auto; width: 34%; height: 41%; transform: rotate(-1.8deg); z-index: 5; }
  .panel--b img { object-position: 50% 38%; }
  .rating { width: 52px; height: 52px; font-size: .8rem; top: 0; right: 2%; }
  /* Штамп прижат к левому краю коллажа, иначе на узком экране уезжает за край */
  .stamp--collage { right: auto; left: 1%; bottom: 6%; font-size: .55rem; z-index: 6; }
  .hero__cta .btn { flex: 1 1 100%; }
  .nav__links { gap: .6rem; font-size: .82rem; }
  .nav__links .nav__about { display: none; }
  .footer { flex-direction: column; align-items: flex-start; }
  .footer__links { gap: 0 1.2rem; }
}
@media (max-width: 520px) {
  .rules { grid-template-columns: 1fr; }
  .about__quote { font-size: 1.1rem; }
}

/* Пальцу нужна площадь нажатия. Правило по типу указателя, а не по ширине:
   планшет и телефон в ландшафте шире 760px, но управляются тем же пальцем. */
@media (pointer: coarse) {
  .footer__links { gap: 0 1.2rem; }
  .footer__links a,
  .footer ul a { display: inline-block; padding: .7rem 0; }
  .brand, .logo { display: inline-block; padding: .4rem 0; }
  .nav__about { display: inline-block; padding: .7rem .2rem; }
  .btn--sm { padding: .82rem .9rem; }
  .faq summary { padding: 1rem; }
}

/* Телефон в ландшафте: высоты мало, поэтому ужимаем первый экран целиком,
   иначе кнопки уходят под фолд, а вертикальная катакана наезжает на текст. */
@media (orientation: landscape) and (max-height: 540px) {
  .hero {
    padding: 1rem clamp(1rem, 3vw, 2rem) 1.4rem;
    gap: 1.5rem;
    align-items: center;
  }
  .hero__vertical { display: none; }
  .hero__title { font-size: clamp(1.55rem, 4.4vw, 2.4rem); margin-top: .5rem; }
  .hero__sub { font-size: .9rem; margin-top: .5rem; max-width: 42ch; }
  .hero__cta { margin-top: .9rem; gap: .6rem; }
  .btn--lg { padding: .7rem 1rem; font-size: .84rem; }
  .kicker { font-size: .58rem; padding: .3rem .5rem; }
  .collage { height: min(76vh, 260px); }
  .nav { height: 54px; }
  :root { --nav-h: 54px; }
}

/* 320-360px: длинный лейбл кнопки не переносится (white-space: nowrap),
   поэтому на таких экранах уменьшаем кегль и поля, иначе кнопка распирает
   страницу и появляется горизонтальный скролл. */
@media (max-width: 380px) {
  .hero { padding: 1rem .75rem 1.4rem; }
  .hero__title { font-size: 1.8rem; }
  .btn--lg { font-size: .82rem; padding: .85rem .9rem; }
  .btn--lg svg { width: .95em; height: .95em; }
  .nav { padding: 0 .75rem; }
  .nav__links { gap: .5rem; }
  .nav__stamp { display: none; }
  .brand { font-size: .82rem; padding: .6rem 0; }
  .btn--sm { padding: .8rem .55rem; font-size: .7rem; }
  .collage { height: min(34vh, 235px); }
  .footer { padding: 1rem .75rem; }
}
