/* АМВ Космо, Чебоксары. Палитра — их сайт и логотип; подпись — монограмма AMV и круглый медальон, как на стене ресепшена. */
:root {
  --bg: #FAF7F2;      /* фон их сайта (250,247,242) */
  --walnut: #75604C;  /* акцент их сайта (117,96,76) — кнопки, белый текст 5.9:1 */
  --ink: #24211D;     /* тёмный их сайта (36,33,29) — текст */
  --gold: #A48868;    /* монограмма логотипа (пиксели PNG) — линии, знак */
  /* свои добавки */
  --sand: #F2ECE3;      /* фон чередующихся секций, темнее их фона */
  --walnut-deep: #5C4A3A; /* наведение на кнопки */
  --gold-soft: #C9AE86; /* золото на тёмном (сертификат, медальон) */
  --cocoa: #3A2F27;     /* медальон и тёмная карта, как ореховая стена */
  --muted: #6E655C;
  --line: #E4DCD1;
  --taupe: #D3C6B5;
  --star: #C9A24A;

  --f-head: 'Bona Nova', 'Times New Roman', serif;
  --f-text: 'Arsenal', system-ui, sans-serif;
  --f-hand: 'Marck Script', cursive;
  --gut: clamp(16px, 4vw, 40px);
  --max: 1280px;
  --sec: clamp(88px, 12vw, 160px);
  --r: 14px;
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 2px rgba(36, 33, 29, .05), 0 12px 32px -16px rgba(36, 33, 29, .22);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.7 var(--f-text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
h1, h2, h3, .h3 { margin: 0; font-weight: 400; font-family: var(--f-head); letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(38px, 5vw, 66px); line-height: 1.08; }
h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.14; }
h3, .h3 { font-size: 24px; line-height: 1.25; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--muted); }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { fill: currentColor; stroke: none; }
:focus-visible { outline: 2px solid var(--walnut); outline-offset: 3px; border-radius: 4px; }
mark.stub { background: #FFF1B8; color: #5B4A00; padding: 0 6px; border-radius: 6px; }

.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 16px; font-weight: 700; color: var(--walnut); }
.mono-s { width: 26px; height: 20px; fill: var(--gold); flex: none; }

/* ---------- Кнопки ----------
   Заливка расходится кругом от точки входа курсора, кнопка подсвечивается ореолом,
   стрелка уезжает вправо, а на её место приходит новая слева. */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 30px; border-radius: 999px; background: var(--walnut); color: #fff; font-weight: 700; font-size: 17px; white-space: nowrap; border: 1px solid transparent; box-shadow: 0 0 0 0 rgba(164, 136, 104, 0); transition: color .6s var(--ease-soft), border-color .6s var(--ease-soft), box-shadow .6s var(--ease-soft); --x: 50%; --y: 50%; }
.btn::before { content: ""; position: absolute; z-index: -1; left: var(--x); top: var(--y); width: 260%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #8C7259 0%, var(--walnut-deep) 70%); transform: translate(-50%, -50%) scale(0); transition: transform .65s var(--ease-soft); }
.btn:hover::before, .btn:focus-visible::before { transform: translate(-50%, -50%) scale(1); }
.btn:hover, .btn:focus-visible { box-shadow: 0 10px 28px -10px rgba(117, 96, 76, .75), 0 0 0 4px rgba(164, 136, 104, .16); }
.btn .i { transition: transform .5s var(--ease-soft); }
.arr { position: relative; display: inline-grid; width: 20px; height: 20px; overflow: hidden; flex: none; margin-right: -4px; }
.arr .i { grid-area: 1 / 1; transition: transform .55s var(--ease-soft); }
.arr .i + .i { transform: translateX(-140%); }
:is(a, button):hover > .arr .i:first-child, :is(a, button):focus-visible > .arr .i:first-child { transform: translateX(140%); }
:is(a, button):hover > .arr .i + .i, :is(a, button):focus-visible > .arr .i + .i { transform: none; }
/* стрелка «наискосок» уходит вверх-вправо */
.arr:has(use[href="#i-ne"]) .i + .i { transform: translate(-140%, 140%); }
:is(a, button):hover > .arr:has(use[href="#i-ne"]) .i:first-child { transform: translate(140%, -140%); }
:is(a, button):hover > .arr:has(use[href="#i-ne"]) .i + .i { transform: none; }
.btn-sm { height: 46px; padding: 0 22px; font-size: 16px; }
.btn-wide { width: 100%; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--taupe); }
.btn-line::before { background: radial-gradient(circle, #FFFFFF 0%, var(--sand) 70%); }
.btn-line:hover, .btn-line:focus-visible { border-color: var(--gold); box-shadow: 0 10px 28px -14px rgba(117, 96, 76, .45); }

/* круглая кнопка: стрелка улетает вверх-вправо, вторая приходит снизу-слева и встаёт по центру */
.rb { position: relative; display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--taupe); color: var(--walnut); overflow: hidden; isolation: isolate; transition: color .6s var(--ease-soft), border-color .6s var(--ease-soft); }
.rb::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--walnut); transform: scale(0); transition: transform .6s var(--ease-soft); }
.rb .i { grid-area: 1 / 1; width: 18px; height: 18px; transition: transform .6s var(--ease-soft); }
.rb .i + .i { transform: translate(-160%, 160%); }
:is(a, button):hover > .rb, :is(a, button):focus-visible > .rb { color: #fff; border-color: var(--walnut); }
:is(a, button):hover > .rb::before, :is(a, button):focus-visible > .rb::before { transform: scale(1); }
:is(a, button):hover > .rb .i:first-child, :is(a, button):focus-visible > .rb .i:first-child { transform: translate(160%, -160%); }
:is(a, button):hover > .rb .i + .i, :is(a, button):focus-visible > .rb .i + .i { transform: none; }
.rb-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.rb-light::before { background: #fff; }
:is(a, button):hover > .rb-light, :is(a, button):focus-visible > .rb-light { color: var(--walnut); border-color: #fff; }
.rb-btn { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; transition: color .6s var(--ease-soft); }
.rb-btn:hover { color: var(--walnut); }

/* MAX в шапке: значок окрашивается и расходится одна волна */
.max-ic { position: relative; display: grid; place-items: center; transition: color .6s var(--ease-soft), transform .6s var(--ease-soft); }
.max-ic::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 1.5px solid #7B5CFA; opacity: 0; transform: scale(.6); }
.hdr-max:hover .max-ic, .hdr-max:focus-visible .max-ic { color: #6A4CF0; transform: scale(1.1); }
.hdr-max:hover .max-ic::after, .hdr-max:focus-visible .max-ic::after { animation: wave 1.1s var(--ease-soft) 1; }
@keyframes wave { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.1); } }

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 242, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft); }
.hdr.is-compact { transform: translateY(-38px); box-shadow: 0 1px 0 var(--line); }
.hdr-top { background: var(--sand); font-size: 15px; color: var(--muted); }
.hdr-top-in { height: 38px; display: flex; align-items: center; gap: 28px; }
.meta { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.meta .i { width: 16px; height: 16px; color: var(--walnut); }
.meta-tel { margin-left: auto; font-weight: 700; color: var(--ink); transition: color .5s var(--ease-soft); }
.meta-tel:hover { color: var(--walnut); }
.meta-tel + .socials { margin-left: 0; }
.socials { display: inline-flex; gap: 4px; margin-left: auto; }
.socials a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); transition: background-color .5s var(--ease-soft), color .5s var(--ease-soft); }
.socials a svg { width: 17px; height: 17px; fill: currentColor; }
.socials a:hover { background: var(--walnut); color: #fff; }
.hdr-in { height: 80px; display: flex; align-items: center; gap: 16px; }
.hdr-in > .btn, .hdr-phone { flex: none; }
.brand { margin-right: auto; display: inline-flex; align-items: center; gap: 12px; color: var(--gold); flex: none; }
.brand-mark { width: 52px; height: 40px; fill: currentColor; }
.brand-text { display: flex; flex-direction: column; line-height: 1; color: var(--ink); }
.brand-text b { font: 400 25px/1 var(--f-head); letter-spacing: .01em; }
.brand-text small { margin-top: 5px; font-size: 13px; color: var(--muted); }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 11px; border-radius: 8px; font-size: 17px; white-space: nowrap; transition: background-color .5s var(--ease-soft), color .5s var(--ease-soft); }
.nav a:hover { background: var(--sand); color: var(--walnut); }
.hdr-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; transition: color .5s var(--ease-soft), background-color .5s var(--ease-soft); }
.hdr-phone .i { color: var(--walnut); }
.hdr-phone:hover { color: var(--walnut); }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--taupe); position: relative; flex: none; transition: background-color .5s var(--ease-soft); }
.burger:hover { background: var(--sand); }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); transition: transform .45s var(--ease-soft); }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mnav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(36, 33, 29, .35); max-height: calc(100dvh - 80px); overflow: auto; }
.mnav-in { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 24px; }
.mnav-in > a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 19px; transition: color .5s var(--ease-soft); }
.mnav-in > a:hover { color: var(--walnut); }
.mnav-foot { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; }
.mnav-phone { font-weight: 700; font-size: 21px; }
.mnav-foot .btn:first-of-type { margin-top: 12px; }

/* ---------- Первый экран ---------- */
.hero { padding: clamp(32px, 5vw, 72px) 0 clamp(64px, 8vw, 112px); overflow-x: clip; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero-lead { margin-top: 28px; font-size: 20px; color: var(--muted); max-width: 520px; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-offers { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--line); }
.hero-offers :is(button, a) { width: 100%; display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 17px; transition: color .6s var(--ease-soft); }
.ho-t { flex: 1; min-width: 0; }
.hero-offers b { font: 400 21px var(--f-head); color: var(--walnut); white-space: nowrap; }
.hero-offers :is(button, a):hover { color: var(--walnut); }
.hero-photo { position: relative; margin: 0; isolation: isolate; }
.hero-gal { position: relative; aspect-ratio: 4 / 5; border-radius: 240px 240px var(--r) var(--r); overflow: hidden; background: var(--sand); }
/* кольцо медальона за аркой: две тонкие окружности рисуются при загрузке */
.ring { position: absolute; z-index: -1; width: 118%; left: -9%; top: -6%; fill: none; stroke: var(--gold); stroke-width: .18; opacity: .75; }
.ring circle { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s var(--ease-out) .2s forwards; }
.ring circle + circle { animation-delay: .5s; opacity: .6; }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* медальон с монограммой — как круглая вывеска на ореховой стене */
.medal { position: absolute; z-index: 2; top: 9%; right: -22px; width: clamp(84px, 8vw, 112px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4A3C31, var(--cocoa) 70%); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--gold), 0 16px 32px -12px rgba(36, 33, 29, .5); }
.medal svg { width: 62%; height: 50%; fill: var(--gold-soft); }
/* галерея: кадры плавно сменяются, у активного — медленное приближение */
[data-fade] { position: relative; overflow: hidden; }
[data-fade] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.2s var(--ease-soft), transform 6s linear; }
[data-fade] > img.is-on { opacity: 1; transform: scale(1); }
.hero-dots { position: absolute; z-index: 2; left: 20px; bottom: 20px; display: flex; gap: 6px; padding: 8px 10px; border-radius: 999px; background: rgba(250, 247, 242, .86); backdrop-filter: blur(6px); }
.hero-dots button { width: 18px; height: 3px; border-radius: 2px; background: var(--taupe); transition: background-color .5s var(--ease-soft), width .5s var(--ease-soft); }
.hero-dots button:hover { background: var(--walnut-deep); }
.hero-dots button.is-on { width: 30px; background: var(--walnut); }
.hero-rate { position: absolute; z-index: 2; right: -16px; bottom: 32px; display: flex; gap: 14px; align-items: center; padding: 16px 20px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); font-size: 14px; line-height: 1.45; color: var(--muted); transition: box-shadow .5s var(--ease-soft); }
.hero-rate:hover { box-shadow: 0 2px 4px rgba(36, 33, 29, .06), 0 20px 40px -16px rgba(36, 33, 29, .32); }
.hero-rate-num { font: 400 42px/1 var(--f-head); color: var(--ink); }
.stars { display: flex; gap: 2px; color: var(--star); margin-bottom: 2px; }
.stars svg { width: 14px; height: 14px; fill: currentColor; }

/* направления */
.dirs { border-block: 1px solid var(--line); }
.dir-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; }
.dir-list a { display: block; padding: 18px 4px; font-size: 16px; font-weight: 700; white-space: nowrap; transition: color .5s var(--ease-soft); }
.dir-list a:hover { color: var(--walnut); }

/* ---------- Секции ---------- */
.sec { padding: var(--sec) 0; }
.sec-sand { background: var(--sand); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: clamp(48px, 6vw, 80px); }
.sec-head > div { max-width: 720px; }
.sec-lead { max-width: 460px; color: var(--muted); }

/* ---------- Обращение руководителя ---------- */
.letter { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.letter-photo { margin: 0; position: relative; }
.letter-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 240px 240px var(--r) var(--r); }
.letter-big { font: 400 clamp(28px, 2.9vw, 40px)/1.22 var(--f-head); letter-spacing: -.01em; }
.letter-body { margin-top: 32px; display: grid; gap: 16px; color: var(--muted); max-width: 560px; }
.sign { margin-top: 36px; display: grid; justify-items: start; gap: 0; }
.sign-hand { font: 400 clamp(44px, 4.4vw, 60px)/1 var(--f-hand); color: var(--walnut); padding: 0 10px 0 2px; clip-path: inset(0 100% 0 0); transition: clip-path 1.8s cubic-bezier(.55, .1, .35, 1) .3s; }
.sign-line { width: 240px; height: 16px; margin-top: -4px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease-out) 1.9s; overflow: visible; }
.letter-text.is-in .sign-hand { clip-path: inset(0 0 0 0); }
.letter-text.is-in .sign-line { stroke-dashoffset: 0; }
.sign-cap { margin-top: 14px; display: flex; flex-direction: column; font-size: 15px; line-height: 1.5; color: var(--muted); }
.sign-cap b { color: var(--ink); font-size: 17px; }
.letter-actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

/* ---------- Прайс ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin-bottom: 40px; box-shadow: inset 0 -1px var(--taupe); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; padding: 14px 18px; font-size: 17px; font-weight: 700; color: var(--muted); white-space: nowrap; box-shadow: inset 0 -2px transparent; transition: color .5s var(--ease-soft), box-shadow .5s var(--ease-soft); }
.tabs button:hover { color: var(--ink); box-shadow: inset 0 -2px var(--taupe); }
.tabs button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px var(--walnut); }
.panel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; animation: panel-in .6s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
.panel-gal { position: sticky; top: 120px; }
.pg-frames { aspect-ratio: 4 / 5; border-radius: var(--r); background: var(--line); }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.price-note { font-size: 16px; color: var(--muted); }
.price { list-style: none; margin: 0; padding: 0; }
.price li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 15px 0; border-bottom: 1px solid var(--taupe); }
.price span { display: flex; flex-direction: column; font-weight: 700; }
.price small { font-size: 15px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.price b { font: 400 20px var(--f-head); white-space: nowrap; }
.price b::after { content: " ₽"; }
.price b.ask { font: 400 16px var(--f-text); color: var(--muted); }
.price b.ask::after { content: none; }
.price-link { flex: none; font-weight: 700; color: var(--walnut); text-decoration: underline; text-decoration-color: var(--taupe); text-underline-offset: 4px; transition: text-decoration-color .5s var(--ease-soft), color .5s var(--ease-soft); }
.price-link:hover { color: var(--walnut-deep); text-decoration-color: currentColor; }
.price-foot { margin-top: 40px; font-size: 16px; color: var(--muted); }
.price-foot a { color: var(--ink); font-weight: 700; transition: color .5s var(--ease-soft); }
.price-foot a:hover { color: var(--walnut); }
.specs { margin-top: 32px; }
.specs-h { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.specs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.specs button { display: flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .55); border: 1px solid transparent; transition: background-color .5s var(--ease-soft), border-color .5s var(--ease-soft); }
.specs button:hover { background: #fff; border-color: var(--taupe); }
.specs img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; background: var(--line); }
.specs span { display: flex; flex-direction: column; font-size: 14px; line-height: 1.35; color: var(--muted); max-width: 190px; text-align: left; }
.specs b { font-size: 16px; color: var(--ink); }

/* ---------- Абонементы и сертификаты ---------- */
.gifts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.gift { display: flex; flex-direction: column; }
.stage { display: block; width: 100%; position: relative; aspect-ratio: 5 / 4; border-radius: var(--r); background: var(--sand); overflow: hidden; perspective: 1100px; --rx: 0deg; --ry: 0deg; }
.gift-ctl { padding: 32px 4px 0; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.gift-note { color: var(--muted); max-width: 520px; min-height: 3.4em; }
.gift-actions { margin-top: auto; padding-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--taupe); font-size: 16px; font-weight: 700; white-space: nowrap; transition: background-color .5s var(--ease-soft), color .5s var(--ease-soft), border-color .5s var(--ease-soft); }
.chips button:hover { border-color: var(--walnut); background: var(--sand); }
.chips button[aria-checked="true"] { background: var(--walnut); border-color: var(--walnut); color: #fff; }
.chips-sm button { height: 36px; padding: 0 14px; font-size: 15px; }
.chips-sm:empty { display: none; }

/* талон абонемента лежит поверх фото аппарата и чуть повёрнут */
.sub-photo { position: absolute; right: 0; top: 0; width: 70%; height: 74%; object-fit: cover; border-radius: 0 0 0 var(--r); transition: opacity .5s var(--ease-soft); }
.sub-photo.swap { opacity: 0; }
.ticket-wrap { position: absolute; left: 7%; bottom: 10%; width: 74%; filter: drop-shadow(0 2px 3px rgba(36, 33, 29, .08)) drop-shadow(0 22px 24px rgba(36, 33, 29, .22)); transform: rotateX(var(--rx)) rotateY(var(--ry)) rotate(-3deg); transition: transform .7s var(--ease-soft); }
.ticket { display: grid; grid-template-columns: minmax(0, 1fr) 30%; background: #FFFDF9; border-radius: 12px; color: var(--ink);
  /* полукруглые вырезы у линии отрыва */
  -webkit-mask: radial-gradient(circle 11px at 70% 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 70% 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 11px at 70% 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 70% 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; }
.ticket-wrap, .t-main, .t-stub, .t-n, .holes { display: flex; }
.t-main { padding: clamp(16px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t-top { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.t-mono { width: 30px; height: 23px; fill: var(--gold); }
.t-dev { margin-top: 10px; font: 400 clamp(22px, 2.4vw, 32px)/1.1 var(--f-head); }
.t-desc { font-size: 14px; color: var(--muted); }
.holes { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.holes i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px dashed var(--gold); position: relative; }
/* «пробитое» отверстие — тень внутрь, как сквозь бумагу виден фон */
.holes i::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: #E3D8C9; box-shadow: inset 0 1.5px 2.5px rgba(36, 33, 29, .45); transform: scale(0); animation: punch .45s var(--ease-out) forwards; animation-delay: calc(var(--i) * 90ms + 200ms); }
@keyframes punch { 60% { transform: scale(1.15); } to { transform: scale(1); } }
.t-stub { border-left: 1.5px dashed var(--taupe); padding: clamp(16px, 2.4vw, 28px) 12px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; gap: 12px; }
.t-n { display: flex; flex-direction: column; line-height: 1.1; font-size: 13px; color: var(--muted); }
.t-n b { font: 400 clamp(38px, 4vw, 54px)/1 var(--f-head); color: var(--walnut); }
.t-price { font: 400 clamp(16px, 1.6vw, 21px)/1.2 var(--f-head); }
.stage-sub:hover .ticket-wrap { transform: rotateX(var(--rx)) rotateY(var(--ry)) rotate(-1deg) translateY(-6px); }

/* конверт: задняя стенка, карта, передний карман; карта выезжает при появлении и при наведении */
.stage-cert { display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 20%, #FBF7F0, var(--sand) 70%); }
.env { position: relative; width: 76%; aspect-ratio: 16 / 10; margin-top: 14%; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .7s var(--ease-soft); }
.env-back { position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(#E6DACA, #EADFD0); box-shadow: 0 30px 50px -26px rgba(36, 33, 29, .45); }
.env-front { position: absolute; inset: 0; z-index: 3; border-radius: 6px; background: linear-gradient(170deg, #F3EADD, #ECE1D2); clip-path: polygon(0 34%, 50% 66%, 100% 34%, 100% 100%, 0 100%); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 7%; }
.env-front::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom right, transparent 49.6%, rgba(117, 96, 76, .16) 50%, transparent 50.6%), linear-gradient(to bottom left, transparent 49.6%, rgba(117, 96, 76, .16) 50%, transparent 50.6%); background-size: 50% 100%; background-position: left, right; background-repeat: no-repeat; opacity: .8; }
.env-label { position: relative; font: 400 clamp(20px, 2vw, 28px)/1 var(--f-hand); color: var(--walnut); }
.card { position: absolute; z-index: 2; left: 5%; right: 5%; top: 4%; aspect-ratio: 1.62; border-radius: 10px; background: radial-gradient(130% 90% at 20% 10%, #2E2924, #171512 70%); color: var(--gold-soft); display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto auto; column-gap: 6%; padding: 7% 8%; overflow: hidden; transform: translateY(0); transition: transform 1s var(--ease-out); box-shadow: 0 -2px 10px rgba(0, 0, 0, .12); }
.gift.is-in .card { transform: translateY(-46%); }
.stage-cert:hover .card { transform: translateY(-56%) rotate(-1.5deg); }
.card-frame { position: absolute; inset: 5%; border: 1px solid rgba(201, 174, 134, .55); border-radius: 4px; pointer-events: none; }
.card-medal { grid-row: 1 / 3; align-self: center; width: clamp(54px, 7vw, 84px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #E2C99D, #A48868 60%, #7D6548); display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18); }
.card-medal svg { width: 64%; height: 50%; fill: #2A241F; }
.card-t { align-self: end; font-size: clamp(11px, 1.05vw, 14px); letter-spacing: .14em; text-transform: uppercase; }
.card-sum { font: 400 clamp(24px, 3.2vw, 42px)/1.1 var(--f-head); color: #E9D6B4; }
.card-sum b { font-weight: 400; display: inline-block; transition: opacity .25s var(--ease-soft), transform .25s var(--ease-soft); }
.card-sum b.swap { opacity: 0; transform: translateY(-30%); }
.card-brand { grid-column: 1 / -1; margin-top: 6%; font-size: clamp(10px, .9vw, 12px); letter-spacing: .08em; color: rgba(201, 174, 134, .7); }
/* блик проходит по карте при наведении */
.card-sheen { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 238, 205, .22) 48%, transparent 60%); transform: translateX(-100%); transition: transform 1.2s var(--ease-soft); pointer-events: none; }
.stage-cert:hover .card-sheen { transform: translateX(100%); }

/* ---------- Специалисты: карточки кликабельны ---------- */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.person button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; text-align: left; }
.person-ph { grid-column: 1 / -1; position: relative; display: block; border-radius: 200px 200px var(--r) var(--r); overflow: hidden; background: var(--line); }
.person-ph img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; transform: scale(1); transition: transform 1.2s var(--ease-soft); }
.person button:hover .person-ph img { transform: scale(1.035); }
.person-tag { position: absolute; left: 14px; bottom: 14px; padding: 6px 14px; border-radius: 999px; background: rgba(250, 247, 242, .92); backdrop-filter: blur(6px); font-size: 14px; font-weight: 700; color: var(--walnut); }
.person-tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.person-tx b { font: 400 22px/1.25 var(--f-head); }
.person-tx > span { font-size: 16px; line-height: 1.5; color: var(--muted); }
.person-tx .person-docs { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--walnut); }
.person-docs .i { width: 17px; height: 17px; }
.person .rb { margin-top: 2px; }

/* ---------- О клинике ---------- */
.clinic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.clinic-lead { margin: 28px 0 16px; font-size: 21px; line-height: 1.55; }
.clinic-text > p:not(.eyebrow):not(.clinic-lead) { color: var(--muted); }
.facts { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.facts li { border-top: 1px solid var(--taupe); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.facts b { font: 400 19px/1.3 var(--f-head); }
.facts span { font-size: 15px; line-height: 1.55; color: var(--muted); }
.clinic-side { display: flex; flex-direction: column; gap: 16px; }
.clinic-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.clinic-photos figure { margin: 0; border-radius: var(--r); background: var(--sand); }
.cp-1 { grid-column: 1 / -1; aspect-ratio: 16 / 9; border-radius: 180px 180px var(--r) var(--r) !important; }
.cp-2, .cp-3 { aspect-ratio: 4 / 5; }
.mini-map { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: center; padding: 12px; background: var(--sand); border-radius: var(--r); }
.mm-map { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; }
.mm-map img, .map img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(.3) contrast(.92) brightness(1.03); transition: filter .6s var(--ease-soft); }
.mm-map:hover img { filter: grayscale(.5) sepia(.2); }
.mm-map .map-pin { width: 38px; height: 38px; margin: -38px 0 0 -19px; }
.mm-map .map-pin svg { width: 20px; height: 15px; }
.mm-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.mm-text b { font-weight: 700; }
.mm-text > span { font-size: 15px; color: var(--muted); margin-bottom: 10px; }

/* ---------- Отзывы ---------- */
.rates { display: flex; gap: 12px; flex: none; }
.rate { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--taupe); border-radius: var(--r); background: #fff; font-size: 14px; line-height: 1.4; color: var(--muted); transition: border-color .5s var(--ease-soft), box-shadow .5s var(--ease-soft); }
.rate b { font: 400 34px/1 var(--f-head); color: var(--ink); }
.rate .i { width: 16px; height: 16px; transition: transform .5s var(--ease-soft); }
.rate:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.rate:hover .i { transform: translate(2px, -2px); }
.rev-nav { display: flex; justify-content: flex-end; margin: -40px 0 28px; }
.pill2 { display: inline-flex; border: 1px solid var(--taupe); border-radius: 999px; background: #fff; }
.pill2 button { width: 52px; height: 44px; display: grid; place-items: center; transition: background-color .5s var(--ease-soft), color .5s var(--ease-soft); }
.pill2 button:first-child { border-radius: 999px 0 0 999px; border-right: 1px solid var(--taupe); }
.pill2 button:last-child { border-radius: 0 999px 999px 0; }
.pill2 button:hover { background: var(--sand); color: var(--walnut); }
.pill2 button:disabled { color: var(--taupe); background: transparent; cursor: default; }
.ribbon { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; padding: 8px 0 40px; margin: -8px 0 -40px; }
.ribbon::-webkit-scrollbar { display: none; }
.ribbon-row { --pad: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); display: grid; grid-auto-flow: column; grid-auto-columns: 380px; gap: 24px; padding: 0 var(--pad); width: max-content; }
.ribbon-row > * { scroll-snap-align: start; scroll-margin-left: var(--pad); }
.rev { margin: 0; padding: 28px; background: #fff; border-radius: var(--r); display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.rev .stars svg { width: 16px; height: 16px; }
.rev blockquote { margin: 0; font-size: 17px; line-height: 1.65; }
.rev figcaption { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--muted); }
.rev figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.rev figcaption span { display: flex; flex-direction: column; line-height: 1.45; }
.rev figcaption b { color: var(--ink); font-size: 16px; }
.rev-all { background: var(--cocoa); color: #fff; justify-content: flex-end; position: relative; overflow: hidden; min-height: 320px; transition: background-color .6s var(--ease-soft); }
.rev-all:hover { background: #2C231D; }
.ra-mono { position: absolute; right: -24px; top: 24px; width: 190px; height: 146px; fill: rgba(201, 174, 134, .14); }
.ra-n { font: 400 60px/1 var(--f-head); margin-bottom: auto; color: var(--gold-soft); }
.ra-t { font: 400 27px/1.2 var(--f-head); }
.ra-s { font-size: 15px; color: rgba(255, 255, 255, .75); margin-bottom: 8px; }
.rev-all .rb { align-self: flex-start; }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.cinfo { margin: 36px 0; display: grid; gap: 16px; }
.cinfo div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--taupe); }
.cinfo dt { color: var(--muted); font-size: 16px; }
.cinfo dd { margin: 0; }
.cinfo a { font-weight: 700; transition: color .5s var(--ease-soft); }
.cinfo a:hover { color: var(--walnut); }
.c-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.socials-lg { margin: 0; gap: 8px; }
.socials-lg a { width: 48px; height: 48px; border: 1px solid var(--taupe); }
.socials-lg a svg { width: 21px; height: 21px; }
.c-media { display: grid; gap: 16px; }
.map { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 650 / 400; }
.map:hover img { filter: grayscale(.6) sepia(.2) contrast(.95); }
.map-pin { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -54px 0 0 -27px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--cocoa); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--gold), 0 10px 24px -8px rgba(36, 33, 29, .5); }
.map-pin svg { width: 28px; height: 22px; fill: var(--gold-soft); transform: rotate(45deg); }
.map-tag { position: absolute; right: 14px; top: 14px; height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: background-color .5s var(--ease-soft), color .5s var(--ease-soft); }
.map-tag .i { width: 16px; height: 16px; }
.map:hover .map-tag { background: var(--walnut); color: #fff; }
.entrance { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.entrance img { border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; }
.entrance figcaption { font-size: 15px; color: var(--muted); }

/* ---------- Подвал ---------- */
.ftr { background: var(--ink); color: rgba(255, 255, 255, .68); padding: 80px 0 36px; font-size: 16px; }
.ftr-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.brand-light { color: var(--gold-soft); }
.brand-light .brand-text { color: #fff; }
.brand-light .brand-text small { color: rgba(255, 255, 255, .55); }
.ftr-about { margin-top: 20px; max-width: 320px; }
.ftr-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; align-content: start; }
.ftr-contacts { display: flex; flex-direction: column; gap: 6px; }
.ftr-contacts a { color: #fff; font-weight: 700; font-size: 18px; }
.ftr a, .ftr-docs button { transition: color .5s var(--ease-soft); }
.ftr a:hover, .ftr-docs button:hover { color: #fff; }
.ftr-legal { padding-top: 28px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: rgba(255, 255, 255, .5); }
.ftr-docs { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ftr-docs a, .ftr-docs button { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 3px; text-align: left; }

/* ---------- Модалки ---------- */
.modal { border: 0; padding: 0; border-radius: 18px; width: min(540px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(30, 26, 22, .45); }
.modal-wide { width: min(820px, calc(100vw - 24px)); }
.modal::backdrop { background: rgba(36, 33, 29, .55); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .4s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }
.modal-in { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 16px; position: relative; }
.modal-in .h3 { font-size: 28px; padding-right: 48px; }
.modal-x { position: absolute; z-index: 3; right: 16px; top: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); transition: background-color .5s var(--ease-soft); }
.modal-x:hover { background: var(--line); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted); }
.field input, .field select { height: 52px; border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; font-size: 17px; color: var(--ink); background-color: #fff; outline: none; width: 100%; transition: border-color .5s var(--ease-soft); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2375604C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; cursor: pointer; }
.field input:focus, .field select:focus { border-color: var(--walnut); }
.field input[readonly] { background: var(--sand); }
.field input.err { border-color: #C0453B; }
.check { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--walnut); }
.check a, .check button { color: var(--walnut-deep); text-decoration: underline; text-underline-offset: 2px; font-size: inherit; text-align: left; display: inline; }
.check.err { color: #B3372E; }
.max-alt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--walnut); transition: color .5s var(--ease-soft); }
.max-alt .i { width: 18px; height: 18px; }
.max-alt:hover { color: #6A4CF0; }
.note { font-size: 14px; color: var(--muted); text-align: center; }
.done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 16px; border-radius: 10px; background: var(--sand); }
.done .i { width: 32px; height: 32px; color: var(--walnut); }
/* карточка специалиста */
.doc-head { display: flex; gap: 20px; align-items: center; padding-right: 48px; }
.doc-ph { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--gold); }
.doc-head .h3 { padding-right: 0; }
.doc-role { margin-top: 4px; font-size: 16px; }
.doc-exp { margin-top: 6px; display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--sand); font-size: 15px; font-weight: 700; color: var(--walnut); }
.doc-exp:empty { display: none; }
.doc-sub { margin-top: 12px; font-size: 20px; }
.edu { list-style: none; margin: 0; padding: 0; display: grid; }
.edu li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.55; }
.edu b { font: 400 20px/1.2 var(--f-head); color: var(--walnut); }
.dips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.dips button { display: block; width: 100%; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); transition: border-color .5s var(--ease-soft), box-shadow .5s var(--ease-soft); }
.dips img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; transition: transform .8s var(--ease-soft); }
.dips button:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.dips button:hover img { transform: scale(1.04); }
.doc-book { margin-top: 12px; }
/* просмотр документа */
.modal-view { width: min(1100px, calc(100vw - 24px)); background: #1F1C19; }
.view-in { position: relative; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.view-img { width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 8px; background: #fff; }
.view-bar { display: flex; align-items: center; justify-content: center; gap: 16px; color: rgba(255, 255, 255, .7); font-size: 15px; }

/* ---------- Появление ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1320px) {
  .meta-lic { display: none; }
  .nav a { padding: 8px 7px; font-size: 16px; }
  .hdr-in { gap: 12px; }
}
@media (max-width: 1480px) {
  .hdr-phone span { display: none; }
  .hdr-phone { width: 46px; height: 46px; justify-content: center; border: 1px solid var(--taupe); border-radius: 50%; }
  .hdr-phone:hover { background: var(--sand); }
}
@media (max-width: 1240px) {
  .hdr-max { display: none; }
}
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
}
@media (max-width: 1100px) {
  .dir-list { justify-content: flex-start; gap: 0 24px; }
  .hero-rate { right: 12px; }
  .medal { right: 8px; }
  .gifts { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
}
@media (max-width: 900px) {
  .hero-in, .panel, .clinic, .contacts, .letter { grid-template-columns: minmax(0, 1fr); }
  .panel-gal { position: relative; top: 0; order: -1; }
  .pg-frames { aspect-ratio: 16 / 10; }
  .rev-nav { margin: 0 0 24px; justify-content: flex-start; }
  .hero-photo { max-width: 520px; }
  .letter-photo { max-width: 440px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr-top { grid-template-columns: 1fr 1fr; }
  .ftr-top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  body { font-size: 17px; }
  .hdr-top .meta:nth-child(1) { display: none; }
  .hdr-in { height: 68px; gap: 8px; }
  .hdr-cta .arr { display: none; }
  .brand-mark { width: 42px; height: 32px; }
  .brand-text b { font-size: 22px; }
  .brand-text small { font-size: 12px; }
  .ring { width: 112%; left: -6%; }
  .medal { top: 6%; right: 4px; }
  .ribbon-row { grid-auto-columns: min(320px, calc(100vw - 48px)); gap: 16px; }
  .mini-map { grid-template-columns: 120px minmax(0, 1fr); }
  .hero-rate { right: 8px; bottom: 16px; padding: 12px 14px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .dir-list { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); }
  .dir-list::-webkit-scrollbar { display: none; }
  .price li { flex-direction: column; gap: 4px; }
  .specs button { padding-right: 12px; }
  .stage { aspect-ratio: 1 / 1; }
  .sub-photo { width: 100%; height: 56%; border-radius: 0; }
  .ticket-wrap { left: 5%; width: 90%; bottom: 7%; }
  .env { width: 88%; }
  .team { gap: 36px 12px; }
  .person-ph { border-radius: 120px 120px var(--r) var(--r); }
  .person-tx b { font-size: 18px; }
  .person-tx > span { font-size: 14px; }
  .person-tx .person-docs { font-size: 13px; }
  .person-tag { left: 8px; bottom: 8px; padding: 4px 10px; font-size: 12px; }
  .person .rb { display: none; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .rates { width: 100%; }
  .rate { flex: 1; }
  .rev { padding: 24px; }
  .cinfo div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .entrance { grid-template-columns: minmax(0, 1fr); }
  .ftr-top { grid-template-columns: minmax(0, 1fr); }
  .doc-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .doc-ph { width: 76px; height: 76px; }
  .edu li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .dips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .hdr-cta { display: none; }
  .hdr-top .meta:nth-child(2) { display: none; }
}
@media (max-width: 400px) {
  .hdr-top .socials { display: none; }
  .mini-map { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
  .mm-text .arr { display: none; }
  .hero-offers :is(button, a) { gap: 10px; font-size: 16px; }
  .hero-offers b { font-size: 18px; }
  .hero-offers .rb { width: 38px; height: 38px; }
  .hero-actions .btn, .gift-actions .btn, .letter-actions .btn { width: 100%; }
  .gift-actions .btn, .letter-actions .btn { white-space: normal; height: auto; min-height: 56px; padding: 12px 22px; text-align: center; }
  .t-stub { padding-inline: 6px; }
}
@media (max-width: 359px) {
  .team { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-delay: 0s !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}
