/* Мара: сайт игры. Поверх кита (system.css, layout.css): лён, вышивка, шерстяная нить.
   Палитра — src/ui/ui.gd; шрифты — Ponomar (заголовки), Oswald (интерфейс, как в игре), Alegreya (текст). */

@font-face { font-family: "Ponomar Mara"; src: url("../fonts/ponomar.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Oswald Mara"; src: url("../fonts/oswald.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
/* Alegreya лежит у нас (SIL OFL, fonts/OFL-alegreya.txt): страница не ходит за шрифтом на чужой сервер */
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/alegreya-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/alegreya-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("../fonts/alegreya-italic-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("../fonts/alegreya-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --p-bg: #241c19; --p-surface: #2f2622; --p-ink: #f1e5d0; --p-muted: #ab9d88;
  --p-accent: #d6a45c; --p-accent-ink: #231c19; --p-action: #e3d1ad; --p-action-ink: #231c19;
  --p-inv-bg: #e3d1ad; --p-inv-surface: #d8c4a0; --p-inv-ink: #231c19; --p-inv-muted: #5e5248;
  --p-inv-accent: #693a31; --p-inv-accent-ink: #f1e5d0; --p-inv-action: #362d29; --p-inv-action-ink: #f1e5d0;
  --font-display: "Ponomar Mara", Georgia, serif;
  --font-text: "Alegreya", Georgia, serif;
  --font-ui: "Oswald Mara", "Oswald", "Arial Narrow", sans-serif;
  --display-weight: 400; --display-tracking: 0; --display-tracking-xl: 0;
  --ly-scale: 0.95;
  --t-body: 18px;
  --thread: #b73d31; --thread-lit: #d04b3c; --amber: #d6a45c; --bone: #e3d1ad; --peat: #171210;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---------------------------------------------------------------- материал: лён и зерно гуаши */
body { background: var(--bg) url("../img/linen-dark.webp") repeat; background-size: 384px; position: relative; }
body::after { /* матовое зерно поверх всего: гуашь, а не стекло */
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main > section.section, .hero { background: transparent; }
.ground-inverse { background: var(--bone) url("../img/linen-light.webp") repeat !important; background-size: 384px !important; }
.nav { background: rgb(36 28 25 / .96); }

/* ---------------------------------------------------------------- шрифты */
h2 { font: 400 clamp(40px, 3.3vw + 8px, 60px)/1.02 var(--font-display); letter-spacing: .005em; text-wrap: balance; }
.lede { margin-top: var(--s-4); font: italic 400 clamp(19px, .5vw + 15px, 22px)/1.45 var(--font-text); color: var(--muted); max-width: 46ch; text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--s-4); font: 500 13px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.ground-inverse .eyebrow { color: #8a3a2c; }
.eyebrow::before { content: ""; width: 12px; height: 12px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 2l8 8M10 2l-8 8' stroke='%23d04b3c' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.card > h3, .faq .faq__item > h3, .rows__name, .platform .rows__name { font-family: var(--font-ui); font-weight: 500; letter-spacing: .02em; }
.card > h3 { font-size: 20px; }
.card > p, .faq p, .rows p { font-family: var(--font-text); font-size: 18px; line-height: 1.5; }
.tag { display: block; margin-top: 2px; font: 500 12px/1.2 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------------------------------------------------------------- кнопки: заплатки со строчкой, как в меню игры */
.btn { font: 500 16px/1 var(--font-ui); letter-spacing: .04em; border-radius: 3px; position: relative; isolation: isolate;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease; }
.btn::after { content: ""; position: absolute; inset: 4px; border-radius: 2px; pointer-events: none; transition: border-color 200ms ease; }
.btn--primary { background: var(--bone) url("../img/linen-light.webp") center/256px; color: #231c19; }
.btn--primary::after { border: 1.5px dashed rgb(183 61 49 / .85); }
.btn--secondary { background: rgb(241 229 208 / .06); color: var(--ink); box-shadow: inset 0 0 0 1px rgb(241 229 208 / .14); }
.btn--secondary::after { border: 1.5px dashed rgb(241 229 208 / .28); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background-color: #efe0bf; }
  .btn--primary:hover::after { border-color: var(--thread-lit); border-style: solid; }
  .btn--secondary:hover { background: rgb(241 229 208 / .1); }
  .btn--secondary:hover::after { border-color: rgb(241 229 208 / .55); }
}
.btn:active { transform: scale(.97); }
.ground-inverse .btn--primary, .footer--statement .btn--primary { background: #362d29 url("../img/linen-dark.webp") center/256px; color: #f1e5d0; }
.ground-inverse .btn--primary::after, .footer--statement .btn--primary::after { border-color: rgb(227 209 173 / .5); }
.nav__link { font: 500 15px/1 var(--font-ui); letter-spacing: .06em; }
.nav__logo { font: 400 26px/1 var(--font-display) !important; letter-spacing: .06em; text-transform: uppercase; }
.nav__actions .btn { font-size: 15px; }

/* ---------------------------------------------------------------- рамки: уголки строчкой, как плашки игры */
.stitched { position: relative; }
.stitched > .corner { position: absolute; width: 44px; height: 44px; pointer-events: none; z-index: 2;
  background: url("../img/corner-bone.svg") 0 0 / 48px no-repeat; }
.stitched > .corner--tl { left: -10px; top: -10px; }
.stitched > .corner--tr { right: -10px; top: -10px; transform: scaleX(-1); }
.stitched > .corner--bl { left: -10px; bottom: -10px; transform: scaleY(-1); }
.stitched > .corner--br { right: -10px; bottom: -10px; transform: scale(-1); }
.ground-inverse .stitched > .corner { background-image: url("../img/corner-red.svg"); }
.frame--photo { box-shadow: 0 1px 0 rgb(241 229 208 / .06), 0 24px 48px -28px rgb(0 0 0 / .7); }

/* ---------------------------------------------------------------- каймы рушника */
.band { display: block; height: 51px; background: url("../img/band-red.svg") center / auto 51px repeat-x; opacity: .95; }
.band--bone { height: 43px; background-image: url("../img/band-bone.svg"); background-size: auto 43px; opacity: .55; }
#city { padding-top: 0; }
#city > .wrap { padding-top: calc(var(--padt) - 51px - 24px); }
#city .band--top { margin: 24px 0 0; }
.footer--statement { background: var(--bone) url("../img/linen-light.webp") repeat !important; background-size: 384px !important; }
.footer--statement > .band { position: absolute; left: 0; right: 0; top: 22px; }

/* ---------------------------------------------------------------- hero */
.hero .hero__bg { animation: hero-breathe 26s var(--ease-in-out) infinite alternate; transform-origin: 75% 80%; }
@keyframes hero-breathe { from { transform: scale(1); } to { transform: scale(1.045); } }
.hero__lamp { position: absolute; z-index: 0; pointer-events: none; width: 36vw; height: 36vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(235 207 148 / .22), rgb(214 164 92 / .08) 55%, transparent);
  mix-blend-mode: soft-light; animation: lamp 5.5s ease-in-out infinite; }
@keyframes lamp { 0%, 100% { opacity: .75; } 38% { opacity: 1; } 41% { opacity: .82; } 44% { opacity: .98; } 70% { opacity: .86; } }
.wordmark { display: block; font: 400 clamp(84px, 9.4vw, 156px)/.86 var(--font-display); letter-spacing: .02em; text-transform: uppercase; color: var(--ink); } /* прописные, как логотип в меню игры: у них нет хвостов, строки не сталкиваются */
.wordmark small { display: block; margin-top: .45em; font: 400 clamp(22px, 2vw, 32px)/1 var(--font-display); letter-spacing: .22em; }
.h1-genre { display: block; margin-top: var(--s-5); font: 400 clamp(20px, 1.5vw, 25px)/1.25 var(--font-ui); letter-spacing: .03em; color: var(--ink); }
.hero__lead { font: italic 400 21px/1.5 var(--font-text) !important; color: rgb(241 229 208 / .86) !important; max-width: 36ch !important; }
.stitch-row { display: block; width: 252px; height: 12px; margin-top: var(--s-5); overflow: visible; }
.stitch-row path { stroke: var(--thread-lit); stroke-width: 2.2; stroke-linecap: round; fill: none; }
.hero__facts dt { font: 500 12px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.hero__facts dd { font: 500 17px/1.3 var(--font-ui); letter-spacing: .02em; }

/* первый экран собирается один раз при загрузке */
.js .rise { opacity: 0; transform: translateY(14px); animation: rise 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .stitch-row path { opacity: 0; animation: stitch 160ms ease-out forwards; animation-delay: calc(var(--k) * 45ms + 600ms); }
@keyframes stitch { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.stitch-row path { transform-box: fill-box; transform-origin: center; }

/* картинки проявляются при первом появлении (один раз) */
.js .reveal { clip-path: inset(0 0 100% 0); transition: clip-path 750ms var(--ease-out); }
.js .reveal.is-in { clip-path: inset(0 0 0 0); }

/* ---------------------------------------------------------------- трейлер */
#trailer .film { position: relative; padding: 10px; border-radius: 6px;
  background: #1a1411 url("../img/linen-dark.webp") center/256px; box-shadow: 0 30px 70px -30px rgb(0 0 0 / .85), inset 0 0 0 1px rgb(241 229 208 / .08); }
#trailer .film .frame { --ratio: 56.25%; border-radius: 3px; background: var(--peat); box-shadow: none; }
#trailer video { object-fit: cover; }
#trailer .wrap { justify-content: flex-start; }
/* кнопка поверх постера: без скрипта её нет, ролик играют родные кнопки браузера */
.frame > .film__play { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-4);
  width: 100%; max-width: none; padding: var(--s-6); border: 0; cursor: pointer; text-align: center; color: var(--ink);
  background: radial-gradient(circle 250px at 50% 54%, rgb(23 18 16 / .8), rgb(23 18 16 / 0)), rgb(23 18 16 / .16); }
.film__label { text-shadow: 0 1px 12px rgb(23 18 16 / .9); }
.frame > .film__play[hidden] { display: none; }
.film__disc { display: grid; place-items: center; flex: none; width: 72px; height: 72px; border-radius: 50%;
  background: var(--bone) url("../img/linen-light.webp") center/256px; color: #231c19;
  box-shadow: inset 0 0 0 4px var(--bone), inset 0 0 0 5.5px rgb(183 61 49 / .85); transition: transform 200ms var(--ease-out); }
.film__disc svg { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
.film__label { display: block; font: 500 20px/1.15 var(--font-ui); letter-spacing: .04em; }
.film__label small { display: block; margin-top: 6px; font: 500 12px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
@media (hover: hover) and (pointer: fine) { .film__play:hover .film__disc { transform: scale(1.06); } }
.film__play:active .film__disc { transform: scale(.96); }
.film__play:focus-visible { outline: 2px solid var(--amber); outline-offset: -6px; }
.film__meta { display: flex; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-4); font: 500 12px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.loop-pause { background: rgb(36 28 25 / .82); color: var(--ink); border-color: rgb(241 229 208 / .2); }

/* ---------------------------------------------------------------- карточки и списки */
.card--open > .panel { border-radius: 4px; }
.card--open { gap: var(--s-2); }
.rows > li { border-color: rgb(241 229 208 / .12); }
.ground-inverse .rows > li { border-color: rgb(35 28 25 / .16); }
.faq > .faq__item { border-color: rgb(241 229 208 / .12); }
.city__chapters .rows__name { font-size: 18px; }
.city__chapters .num { font: 400 40px/1 var(--font-display); color: #8a3a2c; margin-bottom: var(--s-2); }

/* ---------------------------------------------------------------- скачать */
.platforms > li { display: block; padding: 0; }
.platform { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-5) 0; color: inherit; text-decoration: none;
  transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .platform:hover { transform: translateX(6px); } }
.platform__text { display: flex; flex-direction: column; gap: 4px; margin-right: auto; }
.platform__size { color: var(--muted); font: 500 13px/1.2 var(--font-ui); letter-spacing: .08em; }
.ic-ink { filter: invert(93%) sepia(8%) saturate(380%) hue-rotate(340deg); }

/* ---------------------------------------------------------------- финал */
.close__word { font-family: var(--font-display); letter-spacing: .01em; font-size: clamp(44px, 7.6vw, 112px); line-height: 1; white-space: normal; color: #362d29; }
.footer--statement h2 { color: #231c19; }
.footer--statement .t-lead { font: italic 400 20px/1.45 var(--font-text); }
.footer--statement > .wrap { padding-top: 60px; }
.footer__lede { font: italic 400 20px/1.4 var(--font-text) !important; max-width: 30ch; }
.footer__legal, .footer h4, .footer__col a { font-family: var(--font-ui); letter-spacing: .04em; }

/* ---------------------------------------------------------------- шерстяная нить через всю страницу */
.yarn { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; overflow: visible; }
.yarn path, .yarn circle { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.yarn__shadow { stroke: #050302; stroke-opacity: .42; stroke-width: 3.6; transform: translate(.6px, 2.2px); }
.yarn__base { stroke: #a9372c; stroke-width: 3.1; }
.yarn__lit { stroke: #e06a52; stroke-width: 1; stroke-opacity: .55; transform: translate(-.5px, -.7px); }
.yarn__knot { fill: #a9372c !important; stroke: none; }

/* ---------------------------------------------------------------- телефон и планшет */
@media (max-width: 1023px) {
  main > section.section > .wrap > .grid.fill { flex: none; height: auto; }
  main > section.section > .wrap > .grid.fill > .frame.frame--fill { flex: none; width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  #city .city__map { flex: none; aspect-ratio: 16 / 10; }
}
@media (max-width: 639px) {
  main > section.section:not(.hero), footer.closing { height: auto; min-height: 0; }
  main > section.hero { height: auto; min-height: 100svh; }
  .wordmark { font-size: 72px; }
  .wordmark small { font-size: 20px; }
  .h1-genre { margin-top: var(--s-4); font-size: 19px; }
  .stitch-row { width: 180px; }
  .hero__lamp { display: none; }
  .platform { flex-wrap: wrap; }
  .platform .btn { flex: 1 0 100%; }
  .close__word { font-size: clamp(40px, 12.5vw, 64px); }
  .band { height: 38px; background-size: auto 38px; }
  #city > .wrap { padding-top: calc(var(--padt) - 38px - 16px); }
  #city .band--top { margin-top: 16px; }
  h2 { font-size: 40px; }
  #trailer .film { padding: 6px; }
  .frame > .film__play { padding: var(--s-4); gap: var(--s-3); }
  .film__disc { width: 56px; height: 56px; }
  .film__label { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero__bg, .hero__lamp { animation: none; }
  .js .rise, .js .stitch-row path { animation: none; opacity: 1; transform: none; }
  .js .reveal { clip-path: none; transition: none; }
}

/* ---------------------------------------------------------------- правки раскладки */
html, body { overflow-x: clip; }
#trailer { height: auto; min-height: 100svh; }
#city .section-head { margin-bottom: var(--s-6); }
.city__map { min-height: 240px; }
.city__chapters { list-style: none; margin: var(--s-6) 0 0; padding: 0; }
.city__chapters li { display: grid; grid-template-columns: 56px 1fr; column-gap: var(--s-3); align-items: baseline; }
.city__chapters .num { grid-row: 1 / span 2; margin: 0; font: 400 44px/1 var(--font-display); color: #8a3a2c; }
.city__chapters p { margin: 4px 0 0; }
@media (max-width: 1023px) { .city__chapters { row-gap: var(--s-5); } }

/* планшет в ширину: три карточки остаются рядом (кит на 1024 ломал их в 2+1) */
@media (min-width: 900px) and (max-width: 1279px) {
  #play .grid, #beasts .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #play .grid > .card, #beasts .grid > .card { grid-column: auto; }
}
/* строки скачивания: в узкой колонке кнопка уходит под название */
@media (max-width: 1279px) {
  .platform { flex-wrap: wrap; row-gap: var(--s-3); }
  .platform .btn { flex: 1 0 100%; }
}
/* на узком экране ролик невысокий: блок не тянется на целый экран */
@media (max-width: 1023px) { #trailer { min-height: 0; } }
@media (max-width: 1023px) { #world .grid { row-gap: 36px; } }

/* ---------------------------------------------------------------- шапка: язык и переход к делу */
.nav__lang { letter-spacing: .12em; color: var(--muted); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 16px; border-radius: 3px;
  background: var(--bone); color: #231c19; font: 500 15px/1 var(--font-ui); letter-spacing: .04em; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- скриншоты и просмотр кадра */
.shots { row-gap: var(--s-5); }
.shot { display: block; border-radius: 4px; cursor: zoom-in; }
.shot .frame { border-radius: 4px; }
.shot .frame__img { transition: transform 420ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .shot:hover .frame__img { transform: scale(1.03); } }
.shot:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
@media (min-width: 640px) and (max-width: 1279px) { .shots > .shot { grid-column: span 6; } }

.lightbox { position: fixed; inset: 0; z-index: 90; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(16 12 10 / .94); color: var(--ink); overflow: hidden; }
.lightbox::backdrop { background: rgb(16 12 10 / .6); }
.lightbox[open] { display: grid; grid-template: 1fr auto / auto 1fr auto; align-items: center; animation: lightbox-in 220ms var(--ease-out); }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__img { grid-area: 1 / 1 / 2 / 4; justify-self: center; max-width: min(96vw, 1920px); max-height: calc(100dvh - 96px); width: auto; height: auto;
  border-radius: 3px; box-shadow: 0 30px 80px -30px #000; background: var(--peat); }
.lightbox__count { grid-area: 2 / 2; justify-self: center; padding: 0 0 20px; font: 500 13px/1 var(--font-ui); letter-spacing: .16em; color: var(--muted); }
.lightbox__btn { z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; margin: 0 16px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgb(241 229 208 / .1); color: var(--ink); transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.lightbox__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__btn--prev { grid-area: 1 / 1; }
.lightbox__btn--next { grid-area: 1 / 3; }
.lightbox__btn--close { position: absolute; right: 0; top: 16px; }
@media (hover: hover) and (pointer: fine) { .lightbox__btn:hover { background: rgb(241 229 208 / .2); } }
.lightbox__btn:active { transform: scale(.94); }
.lightbox__btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
@media (max-width: 639px) {
  .lightbox__btn { width: 44px; height: 44px; margin: 0 8px; }
  .lightbox__btn--prev, .lightbox__btn--next { grid-row: 2; margin-bottom: 14px; }
  .lightbox__img { max-width: 100vw; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } .shot .frame__img, .film__disc { transition: none; } }

/* ---------------------------------------------------------------- ранние версии */
/* списки обновлений и вопросов растут с каждой версией: блок по высоте текста, а не ровно в экран */
#updates, #faq { height: auto; min-height: 100svh; }
@media (max-width: 1023px) { #updates, #faq { min-height: 0; } }
/* без скрипта ранние версии просто видны; со скриптом они убраны под кнопку (mara.js) */
.faq__toggle { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: var(--s-5) 0; border: 0; background: none; cursor: pointer;
  font: 500 15px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.faq__toggle[hidden] { display: none; }
.faq__toggle::before { content: ""; width: 12px; height: 12px; flex: none; transition: transform 200ms var(--ease-out);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%23d04b3c' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.faq__toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.faq__toggle:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .faq__toggle:hover { color: var(--ink); } }
.faq__older > .faq__item { display: grid; gap: var(--s-2); padding: var(--s-5) 0; border-bottom: 1px solid rgb(241 229 208 / .12); }
.faq__older > .faq__item:first-child { border-top: 1px solid rgb(241 229 208 / .12); }

/* ---------------------------------------------------------------- подвал: ссылка на лицензию */
.footer__legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- страница 404 */
.lost { min-height: 100svh; display: grid; }
.lost__main { align-self: center; width: min(100% - 48px, 880px); margin: 0 auto; padding: 64px 0; }
.lost__mark { text-decoration: none; font-size: clamp(64px, 12vw, 120px); }
.lost__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; }
.lost__cols h1, .lost__cols h2 { font: 400 clamp(28px, 3vw, 38px)/1.05 var(--font-display); }
.lost__cols p { margin: var(--s-3) 0 var(--s-5); font: italic 400 19px/1.45 var(--font-text); color: var(--muted); max-width: 30ch; }
@media (max-width: 639px) { .lost__cols { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- английская концовка длиннее русской */
:lang(en) .closing__cta .section-head--split > div { max-width: none; }
:lang(en) .close__word { font-size: clamp(30px, 4.5vw, 68px); }
