/* about.dom.gd/clergy — продолжение about.dom.gd для духовенства.
   Мир унаследован: грамматика dom.gd/auth (системный гротеск, заголовок 400/−.055em, кикер 850 капсом,
   пилюли 999, оранжевый #ff8811, чернила #21160d) и иконки сервисов DOM (суперэллипс, градиент, белый глиф).
   Спуск тона тот же, что на about: светлый дом → бумага пути → чернила каталога → глубже принципы →
   оранжевое поле входа → почти чёрный подвал.
   Разделение свойств: ПОЯВЛЕНИЕ на translate/scale/opacity, НАВЕДЕНИЕ на transform. */

:root {
  --orange: #ff8811;
  --orange-hover: #ed7600;
  --orange-deep: #d96600;
  --orange-text: #b05200;
  --ink: #21160d;
  --muted: #765f4b;
  --small: #8c6c54;
  --line: #ead8c9;
  --line-hover: #dcc3ad;
  --soft: #fff1e2;
  --ground: #fbf7f2;
  --paper: #fffaf5;
  --sheet-top: #33200e;
  --sheet-bot: #2b1a0b;
  --sheet-fg: #f7ece1;
  --sheet-mid: #bda791;
  --sheet-small: #b39880;
  --sheet-line: rgba(255, 236, 220, .13);
  --foot-bg: #150d05;
  --foot-fg: #fdf4ea;
  --foot-link: #ecdfd3;
  --foot-mid: #b39880;
  --foot-line: rgba(255, 236, 220, .13);
  --e-display: cubic-bezier(.16, 1, .3, 1);
  --e-body: cubic-bezier(.25, .46, .45, .94);
  --e-ui: cubic-bezier(.4, 0, .2, 1);
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pad-y: clamp(1.15rem, 2.6vw, 2.2rem);
  --pad-x: clamp(1.25rem, 5vw, 5rem);
  --bar: 48px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; scrollbar-width: thin; scrollbar-color: #e2cdb8 #f7f1ea; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; caret-color: var(--orange); text-underline-offset: 4px;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 3px solid rgba(255, 136, 17, .5); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #f7f1ea; }
::-webkit-scrollbar-thumb { background: #e2cdb8; border-radius: 999px; border: 3px solid #f7f1ea; }

.wrap { max-width: 76rem; margin: 0 auto; padding: 0 var(--pad-x); }
.kicker {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .75rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-text);
}
.kicker::before { content: ""; width: 2.1rem; height: 2px; border-radius: 2px; background: currentColor; transform-origin: left; }
h2 { font-size: clamp(2.3rem, 4.8vw, 4.2rem); font-weight: 400; line-height: .98; letter-spacing: -.05em; text-wrap: balance; margin-top: 1rem; }
.sec-head { margin-bottom: clamp(2.2rem, 4.5vw, 3.5rem); }
.sec-lead { margin-top: 1.25rem; max-width: 34rem; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.65; color: var(--muted); }

/* ---------- статусы ---------- */
.dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; }
.dot-L { background: var(--orange); box-shadow: 0 0 0 3px rgba(255, 136, 17, .16); }
.dot-B { background: transparent; box-shadow: inset 0 0 0 2px var(--orange); }
.dot-P { background: #d9c7b6; }
.st {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 .7rem; border-radius: 999px; white-space: nowrap;
  font-size: .72rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase;
}
.st-L { background: var(--orange); color: #fff; }
.st-B { box-shadow: inset 0 0 0 1.5px var(--orange); color: var(--orange-text); }
.st-P { background: rgba(33, 22, 13, .06); color: var(--small); }

/* ---------- кнопки (= .dom-auth-primary) ---------- */
.btn-primary, .btn-secondary, .btn-ghost, .btn-white, .btn-line {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.5rem; padding: .9rem 1.65rem; border-radius: 999px;
  font-size: 1rem; font-weight: 850; white-space: nowrap; cursor: pointer;
  transition: transform .35s var(--e-display), background-color .22s var(--e-ui), border-color .22s var(--e-ui), box-shadow .3s var(--e-ui), color .22s var(--e-ui);
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 14px 30px rgba(255, 136, 17, .26); overflow: hidden; }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary::after {
  content: ""; position: absolute; inset: -2px; z-index: 0; transform: translateX(-125%);
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .42) 48%, transparent 66%);
  transition: transform .95s var(--e-display);
}
.btn-primary:hover { background: var(--orange-hover); box-shadow: 0 18px 38px rgba(255, 136, 17, .36); transform: translateY(-2px); }
.btn-primary:hover::after { transform: translateX(125%); }
.btn-secondary { background: rgba(255, 255, 255, .8); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { background: #fff; border-color: var(--line-hover); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--foot-fg); border: 1px solid rgba(255, 236, 220, .3); }
.btn-ghost:hover { background: rgba(255, 236, 220, .09); border-color: rgba(255, 236, 220, .55); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 16px 34px rgba(80, 30, 0, .25); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 22px 44px rgba(80, 30, 0, .32); }
.btn-line { color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.btn-line:hover { background: rgba(255, 255, 255, .12); border-color: #fff; transform: translateY(-2px); }
.arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--e-display); }
.btn-secondary:hover .arrow { transform: translateY(3px); }

/* ---------- шапка: общая с about.dom.gd — /assets/dom-nav.css ---------- */

/* ---------- первый экран: дом из тридцати трёх окон ---------- */
.hero {
  position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh;
  padding: calc(var(--pad-y) * 2 + var(--bar) + 1rem) var(--pad-x) clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(44% 52% at 76% 46%, rgba(255, 136, 17, .16), rgba(255, 136, 17, 0) 70%),
    radial-gradient(60% 40% at 10% 100%, rgba(255, 196, 140, .18), rgba(255, 196, 140, 0) 70%),
    linear-gradient(180deg, #fdfaf6, var(--ground));
  display: flex; align-items: center;
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.hero-in {
  position: relative; width: 100%; max-width: 86rem; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero-copy { max-width: 42rem; }
.hero h1 {
  margin-top: 1.4rem; max-width: 38rem;
  font-size: clamp(3rem, 6.4vw, 6rem); font-weight: 400; line-height: .93; letter-spacing: -.055em; text-wrap: balance;
}
/* колонки сетки не распирает длинное слово (финское «Kolmekymmentäkolme», немецкие составные) */
.hero-copy, .start-copy, .path-head, .steps, .sec-head, .cat-head > div, .parts, .packs li, .tile, .vow { min-width: 0; }
h1, h2, h3, .mod-title, .step-t, .tile h3, .vow h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.ln { display: block; clip-path: inset(-.5em -100vw 0 -100vw); padding-bottom: .06em; margin-bottom: -.06em; }
.ln-i { display: inline-block; }
.lead { margin-top: 1.6rem; max-width: 34rem; font-size: clamp(1.02rem, 1.45vw, 1.22rem); line-height: 1.65; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.1rem; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2.2rem; font-size: .82rem; font-weight: 700; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: .55rem; }

.house { --t: clamp(52px, 5.2vw, 76px); --g: clamp(9px, .9vw, 13px); position: relative; justify-self: center; perspective: 1100px; }
.house-glow {
  position: absolute; left: 50%; bottom: -8%; width: 135%; height: 60%; translate: -50% 0; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 60%, rgba(255, 136, 17, .3), rgba(255, 136, 17, 0) 70%); filter: blur(10px);
}
.house-grid {
  position: relative; display: grid;
  grid-template-columns: repeat(5, var(--t)); grid-template-rows: repeat(7, var(--t)); gap: var(--g);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
}
.win { position: relative; display: block; border-radius: 31%; outline-offset: 4px; }
.win-face {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: inherit; overflow: hidden;
  background: rgba(33, 22, 13, .05); color: #b9a493;
  transition: transform .45s var(--e-display), box-shadow .45s var(--e-ui);
}
.win-face::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: linear-gradient(150deg, #ffb055 0%, #ff8811 48%, #f06a00 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}
.win-face svg { position: relative; width: 44%; height: 44%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.win-B .win-face { background: #fff; color: var(--orange-deep); box-shadow: inset 0 0 0 1.5px rgba(255, 136, 17, .5), 0 8px 18px rgba(120, 60, 10, .07); }
.win-L .win-face { background: #fff; color: var(--orange-deep); box-shadow: 0 8px 18px rgba(120, 60, 10, .07); }
.win-L .win-face::before { opacity: 1; }
.win-L .win-face { color: #fff; box-shadow: 0 14px 28px rgba(240, 106, 0, .3); }
.win:hover .win-face, .win:focus-visible .win-face { transform: translateY(-4px) scale(1.07); }
.house-tip {
  position: absolute; z-index: 3; left: 0; top: 0; translate: -50% calc(-100% - 12px); pointer-events: none;
  display: grid; gap: .2rem; padding: .6rem .85rem; border-radius: 14px; background: var(--ink); color: #fff; white-space: nowrap;
  box-shadow: 0 14px 30px rgba(33, 22, 13, .28); opacity: 0; scale: .96; transition: opacity .18s var(--e-ui), scale .25s var(--e-display);
}
.house-tip.on { opacity: 1; scale: 1; }
.house-tip b { font-size: .9rem; font-weight: 800; }
.house-tip span { display: inline-flex; align-items: center; gap: .45rem; font-size: .74rem; font-weight: 700; color: #d8c3ae; }

/* вход: копия поднимается, окна встают снизу вверх, потом работающие загораются */
.js .hero .kicker, .js .lead, .js .hero .actions, .js .legend { opacity: 0; translate: 0 16px; transition: opacity .9s var(--e-body) var(--d, 0s), translate 1.1s var(--e-display) var(--d, 0s); }
.js .hero .kicker::before { transform: scaleX(0); transition: transform .78s var(--e-display) .1s; }
.js .hero .kicker { --d: .05s; } .js .lead { --d: .42s; } .js .hero .actions { --d: .56s; } .js .legend { --d: .7s; }
.js .ln-i { translate: 0 130%; transition: translate 1.05s var(--e-display) calc(.14s + var(--i) * 90ms); }
.js .win { opacity: 0; translate: 0 34px; scale: .82; transition: opacity .6s var(--e-body) var(--rise), translate 1s var(--e-display) var(--rise), scale 1s var(--e-display) var(--rise); }
.js .win-L .win-face::before { opacity: 0; transition: opacity .55s var(--e-body) var(--lit); }
.js .win-L .win-face { color: var(--orange-deep); box-shadow: 0 8px 18px rgba(120, 60, 10, .07); transition: transform .45s var(--e-display), box-shadow .7s var(--e-ui) var(--lit), color .4s var(--e-ui) var(--lit); }
.js .house-glow { opacity: 0; scale: .7; transition: opacity 1.6s var(--e-body) 1.4s, scale 2s var(--e-display) 1.4s; }
.js.is-ready .hero .kicker, .js.is-ready .lead, .js.is-ready .hero .actions, .js.is-ready .legend { opacity: 1; translate: none; }
.js.is-ready .hero .kicker::before { transform: none; }
.js.is-ready .ln-i { translate: none; }
.js.is-ready .win { opacity: 1; translate: none; scale: none; }
.js.is-ready .win-L .win-face::before { opacity: 1; }
.js.is-ready .win-L .win-face { color: #fff; box-shadow: 0 14px 28px rgba(240, 106, 0, .3); }
.js.is-ready .house-glow { opacity: 1; scale: 1; }
.js.is-ready .win-L:hover .win-face { transition-delay: 0s; }
.safety .win, .safety .win-face, .safety .win-face::before { transition-delay: 0s !important; }

/* ---------- «уже сегодня»: поля без рамок ---------- */
.today { padding: clamp(5rem, 10vw, 8.5rem) 0 clamp(2rem, 4vw, 3rem); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.9rem, 1.4vw, 1.25rem); }
.tile { position: relative; overflow: hidden; border-radius: 1.75rem; padding: clamp(1.5rem, 2.6vw, 2.3rem); background: #fff; display: flex; flex-direction: column; }
.tile h3 { font-size: clamp(1.35rem, 1.9vw, 1.7rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.1; }
.tile p { margin-top: .75rem; color: var(--muted); line-height: 1.6; font-size: .98rem; max-width: 34rem; }
.tile .ico { margin-bottom: auto; }
.tile .ico + h3 { margin-top: 2.2rem; }
.ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 31%; background: linear-gradient(150deg, #ffb055, #ff8811 48%, #f06a00); color: #fff; box-shadow: 0 12px 24px rgba(240, 106, 0, .26), inset 0 1px rgba(255, 255, 255, .45); }
.ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-lg { width: 76px; height: 76px; }
.ico-lg svg { width: 34px; height: 34px; }
.ico-white { background: #fff; color: var(--orange); box-shadow: 0 16px 34px rgba(110, 40, 0, .25); }
.tile-room { grid-column: span 3; grid-row: span 2; color: #fff; background:
  radial-gradient(70% 60% at 85% 10%, rgba(255, 210, 150, .45), rgba(255, 210, 150, 0) 70%),
  linear-gradient(155deg, #ff9a2e 0%, #ef6c00 55%, #c25200 100%); min-height: 30rem; }
.tile-room h3 { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -.045em; margin-top: auto; padding-top: 3rem; }
.tile-room p { color: rgba(255, 255, 255, .92); font-size: 1.05rem; }
.room-steps { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.6rem; counter-reset: rs; }
.room-steps li { counter-increment: rs; display: inline-flex; align-items: center; gap: .5rem; min-height: 34px; padding: 0 .85rem 0 .35rem; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: .82rem; font-weight: 750; }
.room-steps li::before { content: counter(rs); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #c25200; font-size: .74rem; font-weight: 850; }
.tile-map { grid-column: span 3; background: radial-gradient(70% 90% at 100% 0%, rgba(255, 136, 17, .28), rgba(255, 136, 17, 0) 65%), linear-gradient(160deg, var(--sheet-top), var(--sheet-bot)); color: var(--sheet-fg); }
.tile-map p { color: var(--sheet-mid); }
.tile .big-num { margin: 0; color: inherit; max-width: none; font-size: clamp(3.4rem, 6.5vw, 5.6rem); font-weight: 400; line-height: .9; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.tile .big-num span { color: var(--orange); }
.tile-map .big-num + h3, .tile-lang .big-num + h3 { margin-top: .5rem; }
.tile-hours { grid-column: span 3; }
.tile-hours .ico + h3 { margin-top: 1.4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.2rem; }
.chips li { min-height: 30px; display: inline-flex; align-items: center; padding: 0 .75rem; border-radius: 999px; background: var(--soft); font-size: .8rem; font-weight: 750; color: var(--ink); transition: background-color .2s var(--e-ui), color .2s var(--e-ui); }
.chips li:hover { background: var(--orange); color: #fff; }
.tile-live, .tile-page, .tile-lang { grid-column: span 2; min-height: 17rem; }
.tile-lang { background: var(--soft); }
.tile-lang .big-num.big-num { color: var(--orange-text); }

/* ---------- путь: рейка наливается прокруткой ---------- */
.path { padding: clamp(4rem, 8vw, 7rem) 0 clamp(5rem, 10vw, 8rem); background: linear-gradient(180deg, var(--ground), var(--paper)); }
.path-in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.path-head { position: sticky; top: 7.5rem; }
.steps { position: relative; --fill: 0; }
.steps::before, .steps::after { content: ""; position: absolute; left: 11px; top: 1.6rem; bottom: 1.6rem; width: 2px; border-radius: 2px; }
.steps::before { background: var(--line); }
.steps::after { background: linear-gradient(180deg, #ffb055, var(--orange)); transform-origin: top; transform: scaleY(var(--fill)); }
.step { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 0 1.25rem 3.2rem; border-bottom: 1px solid #f0e1d4; }
.step:last-child { border-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 4px; top: 1.62rem; z-index: 1; width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 2px var(--line-hover); transition: background-color .4s var(--e-ui), box-shadow .4s var(--e-ui), scale .5s var(--e-display);
}
.step.in::before { background: var(--orange); box-shadow: 0 0 0 5px rgba(255, 136, 17, .18); scale: 1.1; }
.step[data-s="B"].in::before { background: var(--paper); box-shadow: inset 0 0 0 4px var(--orange), 0 0 0 5px rgba(255, 136, 17, .12); }
.step[data-s="P"].in::before { background: #e9d9ca; box-shadow: none; scale: 1; }
.step-t { font-size: clamp(1.12rem, 1.7vw, 1.42rem); letter-spacing: -.02em; line-height: 1.3; max-width: 30rem; }
.step .st { margin-top: .2rem; }
.js .step { opacity: .25; translate: 0 10px; transition: opacity .7s var(--e-body), translate .9s var(--e-display); }
.js .step.in { opacity: 1; translate: none; }

/* ---------- каталог на чернилах ---------- */
.sheet {
  position: relative; z-index: 1; color: var(--sheet-fg); border-radius: 2.5rem 2.5rem 0 0; margin-top: -2.5rem;
  background:
    radial-gradient(140% 9rem at 50% 0%, rgba(255, 150, 40, .2), rgba(255, 150, 40, 0)),
    radial-gradient(58% 30rem at 86% 0%, rgba(255, 136, 17, .24), rgba(255, 136, 17, 0) 70%),
    linear-gradient(180deg, var(--sheet-top), var(--sheet-bot) 40%, #24160a);
  box-shadow: 0 -34px 90px rgba(20, 10, 2, .3);
}
.sheet::before { content: ""; position: absolute; left: 2.5rem; right: 2.5rem; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--orange), transparent); opacity: .7; }
.sheet-in { max-width: 80rem; margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) var(--pad-x) clamp(4rem, 8vw, 6rem); }
.sheet .kicker { color: var(--orange); }
.sheet .sec-lead { color: var(--sheet-mid); }
.sheet .dot-P { background: rgba(255, 236, 220, .22); }
.sheet .st-B { color: #ffb066; }
.sheet .st-P { background: rgba(255, 236, 220, .08); color: var(--sheet-small); }
.cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.filters { display: inline-flex; flex-wrap: wrap; gap: .35rem; padding: .3rem; border-radius: 999px; background: rgba(255, 236, 220, .06); border: 1px solid var(--sheet-line); }
.filter { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: 0 1rem; border: 0; border-radius: 999px; background: transparent; color: var(--sheet-mid); font-size: .84rem; font-weight: 800; cursor: pointer; transition: background-color .2s var(--e-ui), color .2s var(--e-ui); }
.filter:hover { color: #fff; }
.filter.is-on { background: var(--sheet-fg); color: var(--ink); }
.filter.is-on .dot-P { background: #cdb8a5; }
.cat-body { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.rail { position: sticky; top: 7rem; display: grid; gap: .1rem; }
.rail a { display: grid; grid-template-columns: 2.4rem 1fr; align-items: baseline; gap: .3rem; padding: .5rem .7rem; border-radius: 12px; color: var(--sheet-small); font-size: .86rem; font-weight: 700; line-height: 1.3; transition: color .2s var(--e-ui), background-color .2s var(--e-ui); }
.rail a b { font-size: .74rem; font-weight: 850; letter-spacing: .08em; }
.rail a:hover { color: var(--sheet-fg); }
.rail a.on { color: #fff; background: rgba(255, 236, 220, .07); }
.rail a.on b { color: var(--orange); }
.part + .part { margin-top: clamp(3rem, 6vw, 4.5rem); }
.part-head { display: flex; align-items: baseline; gap: 1.2rem; margin-bottom: 1rem; }
.part-n { font-size: clamp(2.6rem, 4.5vw, 3.8rem); font-weight: 400; letter-spacing: -.05em; line-height: 1; color: rgba(255, 236, 220, .3); }
.part-head h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 400; letter-spacing: -.035em; }
.mod { border-top: 1px solid var(--sheet-line); }
.part .mod:last-child { border-bottom: 1px solid var(--sheet-line); }
.mod summary {
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 24px; gap: 1.25rem; align-items: center;
  padding: 1.3rem .25rem; cursor: pointer; list-style: none;
}
.mod summary::-webkit-details-marker { display: none; }
.mod summary::after { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--e-display); }
.mod summary:hover::after, .mod[open] summary::after { transform: scaleX(1); }
.mod-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 31%; transition: transform .45s var(--e-display); }
.mod-ico svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-L { background: linear-gradient(150deg, #ffb055, #ff8811 48%, #f06a00); color: #fff; box-shadow: 0 10px 24px rgba(240, 106, 0, .3), inset 0 1px rgba(255, 255, 255, .4); }
.ico-B { background: rgba(255, 136, 17, .1); color: #ffa244; box-shadow: inset 0 0 0 1.5px rgba(255, 136, 17, .55); }
.ico-P { background: rgba(255, 236, 220, .06); color: #a08a76; }
.mod summary:hover .mod-ico { transform: rotate(-6deg) scale(1.06); }
.mod-txt { display: grid; gap: .15rem; min-width: 0; }
.mod-name { font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; color: var(--sheet-small); }
.mod-title { font-size: clamp(1.2rem, 1.8vw, 1.5rem); letter-spacing: -.03em; line-height: 1.2; color: var(--sheet-fg); transition: transform .45s var(--e-display); }
.mod summary:hover .mod-title { transform: translateX(5px); }
.mod-lede { font-size: .92rem; color: var(--sheet-mid); line-height: 1.5; }
.mod-side { display: grid; justify-items: end; gap: .6rem; }
.meter { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; max-width: 8.6rem; }
.meter .dot { width: 7px; height: 7px; box-shadow: none; }
.meter .dot-B { box-shadow: inset 0 0 0 1.5px var(--orange); }
.mod-chev { width: 22px; height: 22px; fill: none; stroke: var(--sheet-small); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--e-display), stroke .2s; }
.mod[open] .mod-chev { transform: rotate(180deg); stroke: var(--orange); }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem 2.25rem; padding: .3rem .25rem 1.8rem calc(56px + 1.5rem); }
.feats li { display: flex; gap: .8rem; padding: .7rem 0; border-top: 1px solid rgba(255, 236, 220, .07); }
.feats .dot { margin-top: .42rem; }
.feats b { display: block; font-size: .96rem; font-weight: 700; color: var(--sheet-fg); line-height: 1.35; }
.feats small { display: block; margin-top: .15rem; font-size: .86rem; color: var(--sheet-mid); line-height: 1.5; }
.feats li[data-s="P"] b { color: #d9c9b9; }
.mod[open] .feats li { animation: featIn .55s var(--e-display) both; }
.mod[open] .feats li:nth-child(n+3) { animation-delay: .04s; } .mod[open] .feats li:nth-child(n+5) { animation-delay: .08s; }
.mod[open] .feats li:nth-child(n+7) { animation-delay: .12s; } .mod[open] .feats li:nth-child(n+9) { animation-delay: .16s; }
@keyframes featIn { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: none; } }

.js .reveal { opacity: 0; translate: 0 22px; transition: opacity .8s var(--e-body), translate 1s var(--e-display); }
.js .reveal.in { opacity: 1; translate: none; }
.bento .reveal:nth-child(2) { transition-delay: .08s; } .bento .reveal:nth-child(3) { transition-delay: .16s; }
.bento .reveal:nth-child(4) { transition-delay: .1s; } .bento .reveal:nth-child(5) { transition-delay: .18s; } .bento .reveal:nth-child(6) { transition-delay: .26s; }

/* ---------- принципы: глубже чернила ---------- */
.trust { position: relative; color: var(--sheet-fg); padding: clamp(4.5rem, 9vw, 7.5rem) 0; background: linear-gradient(180deg, #24160a, #1d1208); }
.trust .kicker { color: var(--orange); }
.vows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); }
.vow { padding: 2rem 0 2.3rem; border-top: 1px solid var(--sheet-line); position: relative; }
.vow::before { content: ""; position: absolute; left: 0; top: -1px; width: 3.5rem; height: 2px; background: var(--orange); }
.vow h3 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.02; }
.vow p { margin-top: 1rem; color: var(--sheet-mid); line-height: 1.65; max-width: 30rem; }
.vows .reveal:nth-child(2) { transition-delay: .1s; } .vows .reveal:nth-child(4) { transition-delay: .1s; }

/* ---------- вход: оранжевое поле ---------- */
.start { position: relative; overflow: hidden; color: #fff; padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  background: radial-gradient(50% 80% at 100% 0%, rgba(255, 196, 120, .55), rgba(255, 196, 120, 0) 70%), linear-gradient(100deg, #a64900 0%, #d05e00 52%, #ff8811 100%); }
.start-in { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.start h2 { margin-top: 0; font-size: clamp(2.6rem, 5.4vw, 4.8rem); }
.start-copy p { margin-top: 1.4rem; max-width: 32rem; font-size: 1.1rem; line-height: 1.65; color: rgba(255, 255, 255, .94); }
.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.packs li { display: grid; gap: .15rem; padding: .85rem 1.1rem; border-radius: 1.1rem; background: rgba(255, 255, 255, .94); color: var(--ink); transition: transform .4s var(--e-display), background-color .2s; }
.packs li:hover { transform: translateY(-3px); background: #fff; }
.packs b { font-size: .95rem; font-weight: 850; letter-spacing: .02em; }
.packs b::before { content: "D.O.M. "; color: var(--small); font-weight: 700; }
.packs span { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.packs .pack-free { background: var(--ink); color: #fff; }
.packs .pack-free b::before { color: var(--orange); }
.packs .pack-free span { color: #d8c3ae; }

/* ---------- подвал (= about.dom.gd) ---------- */
.foot { position: relative; z-index: 2; overflow: hidden; color: var(--foot-fg); background: linear-gradient(180deg, #1f1409 0%, var(--foot-bg) 55%); }
.foot::before { content: ""; position: absolute; left: -10%; top: -40%; width: 70%; height: 120%; background: radial-gradient(50% 50% at 50% 50%, rgba(255, 136, 17, .12), rgba(255, 136, 17, 0) 70%); pointer-events: none; }
.foot-in { position: relative; max-width: 72rem; margin: 0 auto; padding: clamp(3.25rem, 7vw, 6rem) var(--pad-x) clamp(1.6rem, 3vw, 2.25rem); }
.foot-top { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.foot-id { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 1.8rem); }
.foot-mark { position: relative; display: inline-grid; place-items: center; flex: none; }
.foot-mark::before { content: ""; position: absolute; width: 16rem; height: 16rem; border-radius: 50%; background: radial-gradient(50% 50% at 50% 50%, rgba(255, 136, 17, .3), rgba(255, 136, 17, 0) 70%); }
.foot-mark img { position: relative; width: 152px; height: 152px; }
.foot-word { font-size: 1.5rem; font-weight: 850; letter-spacing: .1em; }
.foot-note { margin-top: .55rem; color: var(--foot-mid); font-size: .88rem; line-height: 1.5; max-width: 18rem; }
.foot-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.foot-actions .btn-primary, .foot-actions .btn-ghost { min-height: 3.25rem; padding: .8rem 1.5rem; font-size: .95rem; }
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 1.5rem; padding-top: .5rem; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; }
.foot-col h3 { margin: 0 0 .85rem; font-size: .74rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; color: var(--foot-mid); }
.foot-col a { display: inline-block; padding: .36rem 0; color: var(--foot-link); font-size: .95rem; line-height: 1.4;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat; transition: background-size .45s var(--e-display), color .2s var(--e-ui); }
.foot-col a:hover { color: #fff; background-size: 100% 1px; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--foot-line); color: var(--foot-mid); font-size: .82rem; }
.foot-up { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--foot-mid); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: color .22s var(--e-ui); }
.foot-up svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--e-display); }
.foot-up:hover { color: #fff; }
.foot-up:hover svg { transform: translateY(-4px); }
.foot :focus-visible, .sheet :focus-visible, .trust :focus-visible, .start :focus-visible { outline-color: rgba(255, 200, 140, .85); }
.js .foot-mark img { opacity: 0; translate: 0 20px; rotate: -8deg; scale: .92; transition: opacity .85s var(--e-body), translate 1.15s var(--e-display), rotate 1.25s var(--e-display), scale 1.25s var(--e-display); }
.js .foot.in .foot-mark img { opacity: 1; translate: none; rotate: none; scale: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .cat-body { grid-template-columns: 1fr; }
  .rail { position: relative; top: 0; display: flex; gap: .3rem; overflow-x: auto; margin: 0 calc(var(--pad-x) * -1); padding: 0 var(--pad-x) .5rem; scrollbar-width: none; }
  .rail a { display: inline-flex; flex: none; gap: .45rem; border: 1px solid var(--sheet-line); border-radius: 999px; }
  .rail a span { white-space: nowrap; }
}
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .house { --t: clamp(46px, 11vw, 64px); justify-self: start; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-room, .tile-map, .tile-hours { grid-column: span 2; }
  .tile-room { grid-row: auto; min-height: 0; }
  .tile-live, .tile-page { grid-column: span 1; }
  .tile-lang { grid-column: span 2; min-height: 0; }
  .path-in { grid-template-columns: 1fr; }
  .path-head { position: static; }
  .start-in, .foot-top { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .btn-primary, .btn-secondary, .btn-ghost, .btn-white, .btn-line { white-space: normal; text-align: center; line-height: 1.25; }
  h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .start h2 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hero { min-height: 0; align-items: flex-start; }
  .hero h1 { font-size: clamp(2.7rem, 12vw, 3.6rem); }
  .actions > a { width: 100%; }
  .house { justify-self: center; margin-top: .5rem; }
  .tile-live, .tile-page { grid-column: span 2; min-height: 0; }
  .tile .ico + h3 { margin-top: 1.2rem; }
  .step { flex-direction: column; gap: .6rem; padding-left: 2.8rem; }
  .sheet { border-radius: 1.6rem 1.6rem 0 0; }
  .mod summary { grid-template-columns: 48px minmax(0, 1fr) 22px; gap: .9rem; }
  .mod-ico { width: 48px; height: 48px; }
  .mod-side { grid-column: 2 / 3; grid-row: 2; justify-items: start; }
  .meter { justify-content: flex-start; max-width: none; }
  .mod-chev { grid-column: 3; grid-row: 1; }
  .mod-lede { display: none; }
  .feats { grid-template-columns: 1fr; padding-left: .25rem; }
  .vows { grid-template-columns: 1fr; }
  .packs { grid-template-columns: 1fr; }
  .foot-mark img { width: 104px; height: 104px; }
  .foot-mark::before { width: 11rem; height: 11rem; }
  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-col a { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 480px) {
  .foot-nav { grid-template-columns: 1fr; }
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; border-radius: 1.4rem; }
  .filter { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
  .house-grid { transform: none; }
}
