/* Вариант 2 «Дофамин»: страница целиком в палитре выбранной Плюши, переключается */
@font-face { font-family: "Permanent Marker"; src: url("../assets/fonts/PermanentMarker.ttf") format("truetype"); font-display: swap; }
:root, [data-palette=blue] { --bg: #9BD8E7; --sh: #8FC9D8; --body: #468DA3; --hat: #C17679; --light: #F1F8FF; }
[data-palette=pink] { --bg: #F3D7DD; --sh: #DFBEC6; --body: #CF747B; --hat: #0299BA; --light: #F1F8FF; }
[data-palette=green] { --bg: #A0E68E; --sh: #84CD71; --body: #7D8737; --hat: #EEB001; --light: #F1F8FF; }
/* лимитки: в брендбуке тело и шляпа белые, поэтому кнопки красим цветом текста/шляпы */
[data-palette=snow] { --bg: #DCE7EF; --sh: #C3D3DE; --body: #5E7A8C; --hat: #5E7A8C; --light: #FFFFFF; }
[data-palette=ny] { --bg: #F2DCD8; --sh: #E3C3BE; --body: #C8423F; --hat: #C8423F; --light: #FFFFFF; }
/* ваза: палитра ПАКЕТА; «О нас»: мастер-бренд, белый фон и чёрный текст */
[data-palette=vase] { --bg: #EFC03E; --sh: #E0AE2A; --body: #4F392B; --hat: #4F392B; --light: #FBEECA; }
[data-palette=mono] { --bg: #FFFFFF; --sh: #E6E6E6; --body: #111111; --hat: #111111; --light: #F4F4F2; }
:root { --ink: #111; --wrap: 1360px; --pad: clamp(16px, 3.4vw, 40px); --r: 32px; --rs: 14px; }
/* углы с плавной кривизной (суперэллипс), а не дуга окружности; без поддержки — обычное скругление */
*, ::before, ::after { corner-shape: squircle; }
/* фигуры брендбука (круг, арка, чаша) остаются круглыми */
.f-circle, .f-arch, .f-bowl, .tcard.round, .char .pic, .limited .photo, .arch-photo, .fig-mark { corner-shape: round; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--ink); transition: background .5s; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
section { padding: clamp(56px, 8vw, 112px) 0; }

/* показываем картинку только своей палитры */
[data-show] { display: none !important; }
[data-palette=blue] [data-show=blue], [data-palette=pink] [data-show=pink], [data-palette=green] [data-show=green],
[data-palette=snow] [data-show=snow], [data-palette=ny] [data-show=ny] { display: block !important; }
/* текст только для лимиток / только для классики */
[data-limited] { display: none; }
[data-palette=snow] [data-limited], [data-palette=ny] [data-limited] { display: revert; }
[data-palette=snow] [data-classic], [data-palette=ny] [data-classic] { display: none; }

.header { position: sticky; top: 0; z-index: 50; padding: 14px 0; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; background: color-mix(in srgb, var(--light) 68%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-radius: 22px; padding: 8px 8px 8px 24px; box-shadow: 0 6px 30px rgba(0,0,0,.06), inset 0 0 0 1px rgba(255,255,255,.35); }
/* логотип ENGIN MINDS design, вариант 2 «Маркер»: размеры от ширины знака --w */
.lockup { --w: 128px; position: relative; display: inline-block; width: var(--w); margin-right: calc(var(--w) * .2); line-height: 0; flex: none; }
.lockup img { width: 100%; }
.lockup .d { position: absolute; left: calc(var(--w) * .64); top: calc(var(--w) * .39); transform: rotate(-6deg); transform-origin: left center; font-family: "Permanent Marker"; font-size: calc(var(--w) * .13); line-height: 1; white-space: nowrap; color: #C8423F; pointer-events: none; }
.nav { display: flex; gap: 26px; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current] { color: var(--body); }
.nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.hbtns { display: flex; gap: 8px; align-items: center; }
.hbtns svg { width: 18px; height: 18px; flex: none; }
.hbtns [data-cart-count] { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 7px; background: var(--light); color: var(--ink); font-size: 12px; }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: var(--rs); background: var(--body); color: var(--light); font-weight: 700; font-size: 14px; border: 0; transition: background .5s, transform .2s; cursor: pointer; }
.pill:hover { transform: translateY(-2px); }
.pill.hat { background: var(--hat); }
.pill.light { background: var(--light); color: var(--ink); }
.pill.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.pill.big { height: 64px; padding: 0 36px; font-size: 16px; }
.burger { display: none; width: 48px; height: 48px; border-radius: var(--rs); border: 0; background: var(--bg); padding: 14px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; }

/* hero: перекрытие */
/* по x обрезаем, по y ваза на L может выйти за край первого экрана */
.hero { padding: 24px 0 0; overflow-x: clip; }
.stage { position: relative; height: min(78vh, 760px); min-height: 520px; }
.stage .word { position: absolute; left: 50%; top: 2%; transform: translateX(-50%); font-family: "Playfair Display"; font-weight: 400; color: var(--light); font-size: min(23vw, 340px); line-height: 1; letter-spacing: -.02em; white-space: nowrap; user-select: none; }
.stage .lamp { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 92%; width: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.12)); }
.stage .corner { position: absolute; bottom: 28px; font-family: "Arimo"; font-weight: 700; font-size: 12px; letter-spacing: .04em; color: var(--light); text-transform: uppercase; line-height: 1.3; }
.stage .corner.l { left: 0; } .stage .corner.r { right: 0; text-align: right; }
.hero-bottom { display: grid; grid-template-columns: 1fr auto auto; gap: 32px; align-items: center; background: var(--light); border-radius: var(--r); padding: 36px 40px; position: relative; z-index: 2; }
.hero-bottom h1 { font-family: "Playfair Display"; font-weight: 400; font-size: clamp(28px, 2.8vw, 42px); line-height: 1.12; max-width: 620px; }
.switch { display: flex; gap: 8px; flex-wrap: wrap; }
.switch button { height: 44px; padding: 0 16px 0 8px; border-radius: 12px; border: 1.5px solid transparent; background: #fff; font-weight: 600; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.switch button.is-active { border-color: var(--ink); }
.switch i { width: 28px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

/* бегущая строка про лимитку */
/* лента стоит прямо над блоком лимитки */
.ticker { display: block; background: var(--hat); color: var(--light); overflow: hidden; padding: 14px 0; transition: background .5s; }
.ticker div { display: flex; align-items: center; gap: 34px; white-space: nowrap; animation: run 30s linear infinite; font-weight: 800; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; width: max-content; }
.ticker span { display: inline-flex; align-items: center; }
.ticker span::after { content: "✦"; margin-left: 34px; font-size: 16px; }
.after-ticker { padding-top: clamp(24px, 3vw, 40px); }
.ticker:hover div { animation-play-state: paused; }
@keyframes run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker div { animation: none; } }

/* заголовки */
.h2 { font-family: "Playfair Display"; font-weight: 400; font-size: clamp(40px, 6vw, 96px); line-height: .98; letter-spacing: -.015em; }
.h2.light { color: var(--light); }
.kicker { font-family: "Arimo"; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.sec-head p { max-width: 380px; font-size: 16px; line-height: 1.5; }
.lead { font-size: 17px; line-height: 1.6; max-width: 520px; margin-top: 20px; }

/* персонажи: верх арки растворяется в фоне, при наведении Плюша включается */
.chars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.char { display: flex; flex-direction: column; transition: transform .3s; }
.char:hover { transform: translateY(-6px); }
.char .pic { position: relative; aspect-ratio: 3/3.4; border-radius: 999px 999px 0 0; overflow: hidden; }
.char .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; }
.char .pic .off { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%); mask-image: linear-gradient(to bottom, transparent 0, #000 16%); }
/* свет «загорается снизу»: маска втрое выше картинки, при наведении едет вверх */
.char .pic .on { -webkit-mask: linear-gradient(to top, #000 45%, transparent 55%) 0 0 / 100% 300% no-repeat; mask: linear-gradient(to top, #000 45%, transparent 55%) 0 0 / 100% 300% no-repeat; transition: -webkit-mask-position 1.4s cubic-bezier(.45, 0, .25, 1), mask-position 1.4s cubic-bezier(.45, 0, .25, 1); }
@media (hover: hover) { .char:hover .pic .on { -webkit-mask-position: 0 100%; mask-position: 0 100%; } }
.char.is-lit .pic .on { -webkit-mask-position: 0 100%; mask-position: 0 100%; }
/* классика: фон студийных фото подогнан под цвет страницы (tools/match_bg.py), поэтому растушёвка короче;
   Строгий поднят, чтобы ноги не упирались в низ арки */
.char .pic .off:is([data-show=blue], [data-show=pink], [data-show=green]) { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%); mask-image: linear-gradient(to bottom, transparent 0, #000 9%); }
.char[data-char-link=strict] .pic img:is([data-show=blue], [data-show=pink], [data-show=green]) { object-position: 50% 90%; }
.char .meta { background: var(--light); border-radius: 0 0 var(--r) var(--r); padding: 24px 28px 28px; display: grid; gap: 6px; }
.char h3 { font-family: "Playfair Display"; font-weight: 400; font-size: 36px; line-height: 1; }
.char .pose { font-family: "Arimo"; font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--body); }
.char .pill { margin-top: 14px; justify-content: center; }

/* лимитка */
.limited { background: var(--light); border-radius: var(--r); padding: clamp(28px, 5vw, 72px); display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.limited .photo { border-radius: 999px 999px var(--r) var(--r); overflow: hidden; aspect-ratio: 3/3.6; }
.limited .photo img { width: 100%; height: 100%; object-fit: cover; }
.limited .kicker { color: #C8423F; }
.lim-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.lim-card { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center; padding: 10px 18px 10px 10px; border-radius: 26px; background: #fff; box-shadow: inset 0 0 0 1.5px #EEE; transition: transform .2s; }
.lim-card:hover { transform: translateY(-3px); }
.lim-card img { border-radius: 18px; aspect-ratio: 1; object-fit: cover; }
.lim-card b { display: block; font-family: "Playfair Display"; font-weight: 400; font-size: 26px; line-height: 1.1; }
.lim-card small { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #555; margin-top: 4px; }
.lim-card small i { width: 12px; height: 12px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.lim-card em { font-style: normal; font-size: 20px; }
.lim-gift { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; margin-top: 12px; padding: 10px; border-radius: 26px; background: #F2DCD8; }
.lim-gift img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; object-position: 50% 70%; }
.lim-gift p { font-size: 14px; line-height: 1.45; }
.lim-gift b { display: block; font-size: 15px; }

/* предмет как персонаж: фигуры только у фото, текст на спокойных карточках */
.shapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shapes > * { aspect-ratio: 1; overflow: hidden; position: relative; }
.shapes img { width: 100%; height: 100%; object-fit: cover; }
.f-circle { border-radius: 50%; } .f-arch { border-radius: 999px 999px 0 0; } .f-bowl { border-radius: 0 0 999px 999px; }
.tcard { background: var(--light); border-radius: var(--r); padding: clamp(18px, 2.2vw, 30px); display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; transition: background .5s; }
.tcard small { font-family: "Arimo"; font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--body); margin-bottom: auto; }
.tcard b { font-family: "Playfair Display"; font-weight: 400; font-size: clamp(20px, 2vw, 30px); line-height: 1.15; }
.tcard p { font-size: 14px; line-height: 1.45; color: #444; }
.tcard.c-body { background: var(--body); color: var(--light); } .tcard.c-hat { background: var(--hat); color: var(--light); }
.tcard.c-body small, .tcard.c-hat small, .tcard.c-body p, .tcard.c-hat p { color: var(--light); }
.tcard.round { border-radius: 50%; align-items: center; justify-content: center; text-align: center; }
.tcard .num { font-family: "Playfair Display"; font-size: clamp(48px, 6vw, 104px); line-height: .9; }

/* ваза: свой блок в палитре ПАКЕТА */
.vase { background: #EFC03E; color: #4F392B; border-radius: var(--r); display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; }
.vase .text { padding: clamp(28px, 5vw, 72px); display: flex; flex-direction: column; gap: 20px; }
.vase h2 { font-family: "Montserrat"; font-weight: 900; text-transform: uppercase; color: #fff; font-size: clamp(48px, 7vw, 112px); line-height: .86; letter-spacing: -.02em; }
.vase .text > p { font-size: 17px; line-height: 1.55; max-width: 480px; }
.vsizes { display: flex; gap: 8px; flex-wrap: wrap; border: 0; padding: 0; margin: 8px 0 0; }
.vsizes label { position: relative; }
.vsizes input { position: absolute; opacity: 0; }
.vsizes span { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px 0 8px; border-radius: var(--rs); background: #FBEECA; border: 2px solid transparent; font-weight: 600; font-size: 14px; cursor: pointer; }
.vsizes b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #4F392B; color: #fff; font-size: 16px; }
.vsizes input:checked + span { border-color: #4F392B; }
.vsizes input:focus-visible + span { outline: 2px solid #4F392B; outline-offset: 2px; }
.vbtn { align-self: start; display: inline-flex; align-items: center; height: 64px; padding: 0 36px; border-radius: var(--rs); background: #4F392B; color: #fff; font-weight: 700; font-size: 16px; }
.vase .photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; }
.vase .photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; cursor: zoom-in; }

/* отзывы с Маркета */
.rev-side { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.rev-side p { max-width: 380px; font-size: 15px; line-height: 1.45; text-align: right; }
.score { font-family: "Playfair Display"; font-weight: 400; font-size: 56px; line-height: 1; display: block; }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 52px; height: 52px; border-radius: var(--rs); border: 0; background: var(--light); font-size: 20px; cursor: pointer; }
.reviews { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.reviews::-webkit-scrollbar { display: none; }
.review { flex: 0 0 min(380px, 84vw); scroll-snap-align: start; background: var(--light); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.review .stars { color: var(--hat); font-size: 18px; letter-spacing: 3px; transition: color .5s; }
.review q { font-size: 16px; line-height: 1.55; quotes: "«" "»"; }
.review .who { font-family: "Arimo"; font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--body); margin-top: auto; }
.review a { font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* галерея */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 12px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; cursor: zoom-in; transition: transform .3s; }
.gallery img:hover { transform: scale(.985); }
.gallery .tall { grid-row: span 2; } .gallery .wide { grid-column: span 2; }

/* полноэкранный просмотр */
.lb { padding: 0; margin: 0; border: 0; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(12,12,12,.95); }
.lb::backdrop { background: rgba(0,0,0,.6); }
.lb-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-track figure { flex: 0 0 100%; height: 100%; margin: 0; padding: 5vh 6vw; display: grid; place-items: center; scroll-snap-align: start; }
.lb-track img { max-width: 100%; max-height: calc(100dvh - 10vh); object-fit: contain; border-radius: 12px; }
.lb-btn { position: fixed; width: 52px; height: 52px; border-radius: var(--rs); border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; cursor: pointer; }
.lb-x { top: 16px; right: 16px; } .lb-prev { left: 16px; top: calc(50% - 26px); } .lb-next { right: 16px; top: calc(50% - 26px); }

/* подарок */
.gift { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gift > div { border-radius: var(--r); overflow: hidden; }
.gift .text { background: var(--body); color: var(--light); padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; transition: background .5s; }
.gift .text p { font-size: 17px; line-height: 1.6; max-width: 440px; }
.gift img { width: 100%; height: 100%; object-fit: cover; }

/* инфо и FAQ */
.info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: var(--light); border-radius: var(--r); padding: clamp(28px, 3.6vw, 48px); }
.panel h3 { font-family: "Playfair Display"; font-weight: 400; font-size: 36px; margin-bottom: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tags span { background: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; transition: background .5s; }
.panel p { color: #333; line-height: 1.6; }
details { border-top: 1.5px solid var(--bg); padding: 18px 0; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; gap: 16px; }
summary::after { content: "+"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--hat); color: var(--light); flex: none; transition: background .5s; }
details[open] summary::after { content: "−"; }
details p { margin-top: 10px; font-size: 15px; line-height: 1.55; }

/* подвал */
.footer { background: var(--body); color: var(--light); border-radius: var(--r) var(--r) 0 0; padding: 56px 0 32px; margin-top: 40px; transition: background .5s; }
.footer .big { font-family: "Playfair Display"; font-size: clamp(56px, 12vw, 200px); line-height: .9; letter-spacing: -.02em; margin-bottom: 40px; }
.footer-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer .lockup { --w: 150px; }
.footer .lockup img { filter: invert(1); }
.footer .lockup .d { color: var(--light); }
.footer h4 { font-family: "Arimo"; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; opacity: .7; }
.footer li { padding: 3px 0; font-size: 15px; }
.legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.25); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12px; opacity: .85; }

/* ---------- товар ---------- */
.product { padding: 16px 0 72px; }
.product .grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
/* квадрат фото + миниатюры целиком помещаются в экран */
.p-gallery { position: sticky; top: 96px; width: 100%; max-width: max(340px, calc(100vh - 230px)); justify-self: center; }
.p-main { position: relative; }
.p-main img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); background: var(--sh); cursor: zoom-in; }
.p-main span { position: absolute; right: 14px; bottom: 14px; pointer-events: none; background: rgba(255,255,255,.85); border-radius: 10px; padding: 8px 14px; font-size: 13px; font-weight: 600; }
.p-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.p-thumbs button { flex: 0 0 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 16px; overflow: hidden; background: none; cursor: pointer; }
.p-thumbs button.is-active { border-color: var(--ink); }
.p-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.p-buy { background: var(--light); border-radius: var(--r); padding: clamp(28px, 3.6vw, 48px); }
.p-buy h1 { font-family: "Playfair Display"; font-weight: 400; font-size: clamp(48px, 6vw, 88px); line-height: .95; margin: 12px 0 8px; }
.p-buy .sub { font-size: 18px; color: var(--body); font-weight: 600; margin-bottom: 28px; }
.opt { border: 0; padding: 0; margin: 0 0 24px; }
.opt legend { font-family: "Arimo"; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.opt-sub { font-family: "Arimo"; font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #C8423F; margin: 14px 0 8px; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choices.two { grid-template-columns: repeat(2, 1fr); }
.tile { position: relative; }
.tile input { position: absolute; opacity: 0; }
.tile span { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: 20px; background: #fff; border: 2px solid transparent; font-weight: 600; font-size: 14px; cursor: pointer; text-align: center; }
.choices.two .tile span { flex-direction: row; justify-content: center; }
.tile input:checked + span { border-color: var(--ink); }
.tile input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.tile i { width: 40px; height: 40px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.choices.two .tile i { width: 28px; height: 28px; }
.tile small { font-weight: 500; color: #666; font-size: 12px; }
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 24px 0; }
.badges div { background: var(--bg); border-radius: 18px; padding: 16px; font-size: 13px; line-height: 1.4; transition: background .5s; }
.badges b { display: block; font-size: 15px; margin-bottom: 2px; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.specs td { padding: 10px 0; border-bottom: 1px solid var(--bg); vertical-align: top; }
.specs td:first-child { color: #666; width: 40%; }
.src { font-size: 12px; color: #777; margin-top: 10px; }

/* ---------- оформление ---------- */
.checkout { padding: 16px 0 80px; }
.checkout .grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.checkout h1 { font-family: "Playfair Display"; font-weight: 400; font-size: clamp(48px, 7vw, 112px); line-height: .95; color: var(--light); margin: 24px 0 32px; }
.step-card { background: var(--light); border-radius: var(--r); padding: clamp(24px, 3vw, 40px); margin-bottom: 16px; }
.step-card h2 { display: flex; align-items: center; gap: 14px; font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.step-card h2 b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--hat); color: var(--light); font-size: 16px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields .full { grid-column: 1 / -1; }
.field input { width: 100%; height: 58px; border: 0; border-radius: 18px; padding: 0 20px; background: #fff; font-size: 16px; box-shadow: inset 0 0 0 1.5px var(--sh); }
.field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.field label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px 6px; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.optc { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 22px; background: #fff; cursor: pointer; border: 2px solid transparent; position: relative; }
.optc:has(input:checked) { border-color: var(--ink); }
.optc input { position: absolute; opacity: 0; }
.optc b { font-size: 16px; }
.optc small { color: #666; font-size: 13px; }
.optc em { font-style: normal; font-weight: 800; margin-top: 8px; }
.consent { display: flex; gap: 10px; font-size: 13px; margin: 20px 0; align-items: flex-start; }
.consent input { width: 18px; height: 18px; accent-color: var(--ink); margin-top: 1px; flex: none; }
.consent a { text-decoration: underline; }
.cart { background: var(--light); border-radius: var(--r); padding: clamp(24px, 3vw, 36px); position: sticky; top: 96px; }
.cart h2 { font-family: "Playfair Display"; font-weight: 400; font-size: 34px; margin-bottom: 16px; }
.item { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; background: var(--bg); padding: 10px; border-radius: 24px; transition: background .5s; }
.item img { border-radius: 16px; aspect-ratio: 1; object-fit: cover; }
.item b { display: block; font-size: 16px; }
.item small { font-size: 13px; }
.qty { display: inline-flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 3px; margin-top: 8px; }
.qty button { width: 30px; height: 30px; border-radius: 9px; border: 0; background: var(--bg); font-weight: 700; }
.totals { margin: 20px 0; }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.totals .grand { font-size: 24px; font-weight: 800; border-top: 2px dashed var(--bg); margin-top: 8px; padding-top: 14px; }
.promo { display: flex; gap: 8px; margin-bottom: 16px; }
.promo input { flex: 1; height: 48px; border-radius: var(--rs); border: 0; padding: 0 18px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--sh); }

/* ---------- мобильная ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  /* backdrop-filter делает .bar опорным блоком, поэтому меню считаем от шапки */
  .header .bar { position: relative; }
  body.menu-open .nav { display: flex; flex-direction: column; position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: var(--light); border-radius: 24px; padding: 28px; gap: 18px; font-size: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.15); }
}
@media (max-width: 900px) {
  .header { padding: 10px 0; }
  .header .bar { padding: 6px 6px 6px 16px; border-radius: 18px; }
  .header .lockup { --w: 88px; }
  .header .pill { height: 44px; padding: 0 13px; }
  .header .pill .label { display: none; }
  .stage { height: 64vh; min-height: 440px; }
  .stage .word { font-size: 26vw; top: 10%; }
  .stage .lamp { height: 82%; }
  .stage .corner { font-size: 10px; bottom: 16px; }
  .hero-bottom { grid-template-columns: 1fr; padding: 28px 20px; gap: 18px; }
  .hero-bottom .pill { width: 100%; justify-content: center; }
  .ticker div { font-size: 16px; }
  .sec-head { flex-direction: column; align-items: start; }
  .rev-side { align-items: flex-start; } .rev-side p { text-align: left; }
  .chars { grid-template-columns: 1fr; }
  .limited { grid-template-columns: 1fr; }
  .limited .photo { aspect-ratio: 4/3.6; }
  .lim-opts { grid-template-columns: 1fr; }
  .shapes { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tcard { padding: 16px; }
  .tcard b { font-size: 18px; } .tcard p { font-size: 12px; }
  .vase { grid-template-columns: 1fr; }
  .vase .photos { grid-template-columns: 1fr 1fr; aspect-ratio: 1.3; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 8px; }
  .gallery img { border-radius: 16px; }
  .lb-prev, .lb-next { display: none; }
  .lb-track figure { padding: 64px 12px 24px; }
  .lb-track img { max-height: calc(100dvh - 96px); }
  .gift, .info { grid-template-columns: 1fr; }
  .gift .photo { aspect-ratio: 4/3; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > :first-child { grid-column: 1 / -1; }
  .product .grid, .checkout .grid { grid-template-columns: minmax(0, 1fr); }
  .p-gallery, .cart { position: static; max-width: none; }
  .p-thumbs button { flex-basis: 60px; height: 60px; }
  .fields, .opts, .opts.two { grid-template-columns: 1fr; }
  .mbuy { display: flex !important; }
}
.mbuy { display: none; position: sticky; bottom: 10px; z-index: 40; margin: 0 10px; background: var(--ink); color: #fff; border-radius: 20px; padding: 8px 8px 8px 24px; align-items: center; justify-content: space-between; gap: 12px; }
.mbuy b { font-size: 15px; }

/* ---------- итерация 3: отдельные страницы ---------- */
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.page-head { padding: 24px 0 8px; }
.page-head h1 { font-family: "Playfair Display"; font-weight: 400; font-size: clamp(56px, 8vw, 128px); line-height: .92; letter-spacing: -.02em; }
.page-head p { max-width: 600px; font-size: 17px; line-height: 1.55; margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 24px; }
.chips button { height: 42px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--light); font-weight: 600; font-size: 14px; transition: background .3s; }
.chips button.is-active { background: var(--ink); color: #fff; }

/* hero лимитки: фото в арке поверх слова; hero вазы: вырезанная ваза поверх ПАКЕТ */
.stage .arch-photo { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 90%; aspect-ratio: 3/3.8; border-radius: 999px 999px 0 0; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.18); }
.arch-photo img { width: 100%; height: 100%; object-fit: cover; }
[data-palette=snow] .stage .word, [data-palette=ny] .stage .word, [data-palette=snow] .stage .corner, [data-palette=ny] .stage .corner,
[data-palette=snow] .checkout h1, [data-palette=ny] .checkout h1 { color: var(--body); }
.stage .word.paket { font-family: "Montserrat"; font-weight: 900; text-transform: uppercase; color: #fff; font-size: min(22vw, 330px); letter-spacing: -.03em; top: 6%; }
.stage .lamp.vase-cut { height: 86%; }

/* два варианта (размеры вазы) */
.chars.two { grid-template-columns: repeat(2, 1fr); }
.chars.two .pic { aspect-ratio: 4/3.3; background: var(--light); }
.char .pic.cut img { inset: auto 0 0; height: var(--h); object-fit: contain; object-position: 50% 100%; }

/* галерея: много фото, фильтр по тегам */
.masonry { columns: 4 260px; column-gap: 12px; }
.masonry img { width: 100%; margin-bottom: 12px; border-radius: 20px; break-inside: avoid; cursor: zoom-in; background: var(--sh); }

/* все отзывы */
.rev-sum { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; background: var(--light); border-radius: var(--r); padding: 24px 28px; margin-top: 28px; }
.rev-sum .score { font-size: 72px; }
.rev-sum p { max-width: 520px; line-height: 1.5; }
.rev-grid { columns: 3 320px; column-gap: 16px; }
.rev-grid .review { break-inside: avoid; margin-bottom: 16px; }
.review p { font-size: 15px; line-height: 1.55; }
.rev-pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rev-pics img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; cursor: zoom-in; }

/* корзина */
.cart-page { padding: 16px 0 80px; }
.cart-page h1, .acc h1 { font-family: "Playfair Display"; font-weight: 400; font-size: clamp(48px, 7vw, 112px); line-height: .95; margin: 24px 0 32px; }
.cart-page .grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cart-list { display: grid; gap: 10px; }
.cart-list .item { grid-template-columns: 96px 1fr auto; }
.cart-list .rm { border: 0; background: none; font-size: 24px; line-height: 1; padding: 8px 12px; border-radius: 10px; }
.cart-list .rm:hover { background: rgba(0,0,0,.06); }
.empty { font-size: 17px; line-height: 1.6; }
.empty a { text-decoration: underline; font-weight: 700; }

/* кабинет: вход по телефону, «Войти» показывает заказы (#orders, без JS) */
.acc { padding: 16px 0 80px; }
.acc-login { max-width: 560px; }
.acc-login .fields { grid-template-columns: 1fr; }
.acc-login .code { display: flex; gap: 8px; align-items: end; }
.acc-login .code .field { flex: 1; }
.acc-orders { display: none; }
.acc-orders:target { display: block; }
.acc:has(.acc-orders:target) .acc-login { display: none; }
.order { background: var(--light); border-radius: var(--r); padding: clamp(22px, 3vw, 36px); margin-bottom: 16px; display: grid; gap: 22px; }
.order-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.order-head b { font-size: 20px; }
.order-head .st { background: var(--bg); padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 13px; }
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.track li { padding-top: 12px; border-top: 5px solid var(--sh); font-size: 13px; font-weight: 600; color: #888; }
.track li.done { border-color: var(--body); color: var(--ink); }
.track li.now { border-color: var(--hat); color: var(--ink); }
.track small { display: block; font-weight: 500; color: #888; margin-top: 2px; }
.order-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 14px; }

@media (max-width: 900px) {
  .chars.two { grid-template-columns: 1fr; }
  .stage .lamp.vase-cut { height: 66%; }
  .masonry { columns: 2; column-gap: 8px; }
  .masonry img { margin-bottom: 8px; border-radius: 14px; }
  .cart-page .grid { grid-template-columns: minmax(0, 1fr); }
  .track { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .rev-sum .score { font-size: 56px; }
}

/* ---------- итерация 4 ---------- */
/* смотрите также: блок другого раздела в его собственной палитре */
.see-k { margin-bottom: 16px; }
.see { display: grid; grid-template-columns: 1fr 1.1fr; border-radius: var(--r); overflow: hidden; background: #9BD8E7; color: #111; transition: transform .3s; }
.see:hover { transform: translateY(-4px); }
.see .text { padding: clamp(28px, 5vw, 72px); display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.see h2 { font-family: "Playfair Display"; font-weight: 400; font-size: clamp(56px, 8vw, 128px); line-height: .9; color: #F1F8FF; }
.see .text > p:not(.kicker) { font-size: 17px; line-height: 1.55; max-width: 460px; }
.see .pill { align-self: start; background: #468DA3; color: #F1F8FF; }
.see .lamps { display: flex; align-items: flex-end; justify-content: center; padding: 40px 24px 0; }
.see .lamps img { height: min(380px, 27vw); width: auto; margin: 0 -2%; filter: drop-shadow(0 20px 30px rgba(0,0,0,.15)); }

/* ваза: первый экран как карточка «ver2» — ПАКЕТ слева, ваза с цветами снизу справа, низ прячется за блоком */
.stage .word.paket.left { left: 0; transform: none; top: 0; }
.stage .paket-sub { position: absolute; left: .4%; top: min(25vw, 330px); font-family: "Montserrat"; font-weight: 900; text-transform: uppercase; color: #fff; font-size: clamp(22px, 3.4vw, 52px); line-height: 1; }
.stage .paket-kicker { position: absolute; left: .4%; bottom: 40px; z-index: 1; color: var(--body); }
/* пакет по центру (центр пакета — 61,3 % ширины картинки), низ спрятан за блоком до перегиба M
   (75,2 % высоты картинки): bottom = −(1 − 0,752) × высота. На L растёт от точки перегиба,
   а clip-path срезает всё ниже перегиба: при любой высоте блока низ вазы из-под него не вылезет */
.vase-hero { position: absolute; left: 50%; bottom: calc(-.248 * 100%); height: 100%; width: auto; transform: translateX(-61.3%); transform-origin: 61.3% 75.2%; clip-path: inset(-20% -20% 24.8% -20%); transition: transform .8s cubic-bezier(.34, 1.56, .64, 1); filter: drop-shadow(0 30px 40px rgba(0,0,0,.18)); }
/* размер L: ваза подрастает на 25 % (25 см против 20) и выходит за край экрана */
.hero:has(input[value=L]:checked) .vase-hero { transform: translateX(-61.3%) scale(1.25); }
@media (prefers-reduced-motion: reduce) { .vase-hero { transition: none; } }
.hero-bottom .vsizes input:checked + span { border-color: var(--ink); }

/* карточки размеров целиком; при наведении снизу проявляется ваза с цветами */
.chars.two.sizes { max-width: 920px; margin: 0 auto; }
.sizes .char { border-radius: var(--r); box-shadow: 0 14px 40px rgba(79, 57, 43, .16); }
.char .pic.card { aspect-ratio: 2/3; border-radius: var(--r) var(--r) 0 0; corner-shape: squircle; background: var(--light); }

@media (max-width: 900px) {
  .see { grid-template-columns: 1fr; }
  .see .lamps { padding-top: 0; }
  .see .lamps img { height: 220px; }
  .stage .paket-sub { top: 26vw; }
  .stage .paket-kicker { bottom: auto; top: calc(26vw + 48px); }
  .vase-hero { height: 80%; bottom: calc(-.248 * 80%); }
}
.hero-bottom [data-size=L], .hero:has(input[value=L]:checked) [data-size=M] { display: none; }
.hero:has(input[value=L]:checked) [data-size=L] { display: inline-flex; }

/* ---------- «О нас» как научная статья ---------- */
@font-face { font-family: "PT Serif"; src: url("../assets/fonts/PTSerif-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "PT Serif"; src: url("../assets/fonts/PTSerif-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PT Serif"; src: url("../assets/fonts/PTSerif-Italic.ttf") format("truetype"); font-style: italic; font-display: swap; }
.paper { padding: 24px 0 80px; }
.sheet { max-width: 1040px; margin: 0 auto; padding: clamp(24px, 5vw, 72px); border: 1px solid #E6E6E6; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.06); font-family: "PT Serif", Georgia, serif; font-size: 17px; line-height: 1.6; hyphens: auto; }
.runhead { display: flex; justify-content: space-between; font: 600 11px/1 "Montserrat"; letter-spacing: .16em; text-transform: uppercase; color: #777; padding-bottom: 12px; border-bottom: 1px solid #111; }
.udk { margin-top: 28px; font-weight: 700; font-size: 15px; }
.sheet h1 { font-family: "Playfair Display"; font-weight: 400; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.08; text-align: center; margin: 28px auto 20px; max-width: 860px; hyphens: manual; }
.authors { text-align: center; font-style: italic; font-size: 19px; }
.affil { text-align: center; font-size: 13px; color: #555; margin-top: 6px; }
.abstract { margin: 36px auto 40px; max-width: 820px; padding: 22px 28px; border-top: 1px solid #111; border-bottom: 1px solid #111; font-size: 16px; }
.abstract p + p { margin-top: 10px; }
.cols { columns: 2 300px; column-gap: 48px; }
.cols > * { break-inside: avoid; }
.sheet h2 { font-family: "PT Serif"; font-weight: 700; font-size: 18px; margin: 28px 0 8px; break-after: avoid; }
.cols > h2:first-child { margin-top: 0; }
.sheet h3 { display: flex; align-items: center; gap: 10px; font-family: "PT Serif"; font-weight: 700; font-style: italic; font-size: 17px; margin: 20px 0 6px; break-after: avoid; }
.sheet p { margin: 0 0 10px; }
.sheet a { text-decoration: underline; text-underline-offset: 3px; }
.fig-mark { display: inline-block; width: 18px; height: 18px; flex: none; }
.fig-mark.arch { background: #CF747B; border-radius: 999px 999px 0 0; } .fig-mark.circle { background: #EEB001; border-radius: 50%; }
.fig-mark.leaf { background: #468DA3; border-radius: 100% 0; } .fig-mark.bowl { background: #7D8737; border-radius: 0 0 999px 999px; }
/* рисунки: подпись под рисунком по центру; таблица: подпись над таблицей */
.fig { margin: 18px 0 22px; }
.fig.wide { margin: 8px 0 32px; }
.fig img { width: 100%; border-radius: 4px; }
.fig figcaption { margin-top: 10px; text-align: center; font-size: 14px; color: #333; }
.fig .tcap { margin: 0 0 8px; text-align: left; }
.flow { display: flex; padding: 0; margin: 0; list-style: none; font-size: 14px; line-height: 1.4; }
.flow li { flex: 1; position: relative; border: 1.5px solid #111; border-radius: 10px; padding: 14px 16px; }
.flow li + li { margin-left: 40px; }
.flow li + li::before { content: "→"; position: absolute; left: -32px; top: 50%; transform: translateY(-50%); font-size: 20px; }
.flow b { display: block; font: 700 11px/1.3 "Montserrat"; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.swatches { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 13px; }
.swatches th { font-weight: 400; color: #555; text-align: left; }
.swatches thead th { text-align: center; font-family: "Montserrat"; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.swatches td { height: 28px; background: var(--c); border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
/* гистограммы: один ряд данных — один цвет, без легенды; сетка тихая, значения в подписях и в title */
.chart { display: grid; grid-template-columns: 24px 1fr; column-gap: 8px; }
.yax { height: 200px; display: flex; flex-direction: column-reverse; justify-content: space-between; font: 11px "Montserrat"; color: #888; text-align: right; }
.yax span { height: 0; line-height: 0; }
.bars { height: 200px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; border-bottom: 1px solid #111; background: repeating-linear-gradient(to top, transparent 0 39px, #E6E6E6 39px 40px); }
.bars i { display: block; width: 52%; margin: 0 auto; height: calc(var(--v) * 8px); background: #111; border-radius: 4px 4px 0 0; }
.bars div:hover i { background: #468DA3; }
.xlab { display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; font: 11px/1.3 "Montserrat"; color: #555; margin-top: 6px; }
.hbars { display: grid; grid-template-columns: 36px 1fr 28px; gap: 6px 10px; align-items: center; font: 12px "Montserrat"; }
.hbars i { height: 14px; width: calc(var(--v) / 47 * 100%); min-width: 2px; background: #111; border-radius: 0 4px 4px 0; }
.hbars b { font-weight: 600; }
.booktabs { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.4; border-top: 1.5px solid #111; border-bottom: 1.5px solid #111; }
.booktabs th { text-align: left; font-weight: 700; padding: 8px 8px 6px 0; border-bottom: 1px solid #111; }
.booktabs td { padding: 7px 8px 7px 0; vertical-align: top; }
.refs-h { margin-top: 40px !important; padding-top: 16px; border-top: 1px solid #111; }
.refs { padding-left: 22px; font-size: 14px; }
.refs li { padding: 2px 0; }
@media (max-width: 900px) {
  .flow { flex-direction: column; }
  .flow li + li { margin: 30px 0 0; }
  .flow li + li::before { content: "↓"; left: 50%; top: -26px; transform: translateX(-50%); }
  .sheet { font-size: 16px; }
}

/* ---------- «О нас»: переключатель вариантов (для обсуждения с командой, в продакшен не идёт) ---------- */
.vswitch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: max-content; max-width: 100%; margin: 8px auto 24px; padding: 6px; border: 1.5px dashed #BBB; border-radius: 16px; font: 600 13px/1 "Montserrat"; }
.vswitch span { padding: 0 8px; color: #888; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.vswitch a { padding: 10px 14px; border-radius: 10px; }
.vswitch a:hover { background: #F4F4F2; }
.vswitch a[aria-current] { background: #111; color: #fff; }

/* «О нас», вариант 1: панели и карточки принципов */
.about-lead, .page-head .about-lead { font-family: "Playfair Display"; font-size: clamp(26px, 3vw, 44px); line-height: 1.2; max-width: 1000px; margin: 40px 0 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-grid .photo { position: relative; border-radius: var(--r); overflow: hidden; min-height: 360px; }
.about-grid .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel .kicker { margin-bottom: 14px; color: #666; }
.panel > p + p { margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts .tcard { min-height: 220px; }
.facts .fig-mark { width: 52px; height: 52px; margin-bottom: auto; }
.facts .tcard b { font-family: "Montserrat"; font-weight: 700; font-size: 20px; margin-top: 28px; }

/* «О нас», вариант 3: интернет-статья */
.lr { padding: 24px 0 80px; }
.lr-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; background: #C8423F; transform-origin: 0 50%; transform: scaleX(0); animation: lr-read linear both; animation-timeline: scroll(root); }
@keyframes lr-read { to { transform: scaleX(1); } }
.lr-head { max-width: 860px; margin: 24px auto 40px; text-align: center; }
.lr-rubric { font: 700 12px/1 "Montserrat"; letter-spacing: .16em; text-transform: uppercase; color: #C8423F; }
.lr-head h1 { font-family: "Playfair Display"; font-weight: 400; font-size: clamp(44px, 7vw, 96px); line-height: .98; letter-spacing: -.015em; margin: 18px 0 22px; }
.lr-dek { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: #444; max-width: 700px; margin: 0 auto; }
.lr-byline { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; text-align: left; font-size: 15px; line-height: 1.45; }
.lr-byline small { color: #777; font-size: 13px; }
.ava { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; corner-shape: round; background: #111; color: #fff; font: 700 15px/1 "Montserrat"; letter-spacing: .04em; }
.lr-hero { margin: 0 0 48px; }
.lr-hero img { width: 100%; height: min(70vh, 640px); object-fit: cover; border-radius: var(--r); }
.lr figcaption { margin-top: 10px; text-align: left; font: 13px/1.5 "Montserrat"; color: #555; }
.lr figcaption b { color: #111; letter-spacing: .04em; }
.lr-body { max-width: 680px; margin: 0 auto; font-family: "PT Serif", Georgia, serif; font-size: 20px; line-height: 1.7; }
.lr-body > p { margin: 0 0 22px; }
.lr-body a { text-decoration: underline; text-decoration-color: #C8423F; text-underline-offset: 4px; }
.lr-body sup a { text-decoration: none; color: #C8423F; font-family: "Montserrat"; font-weight: 700; font-size: 12px; margin-left: 2px; }
.lr-body .drop::first-letter { float: left; font-family: "Playfair Display"; font-size: 5.2em; line-height: .82; margin: 8px 12px 0 0; }
.lr-body h2 { font: 700 26px/1.2 "Montserrat"; margin: 48px 0 16px; }
.lr-body h3 { display: flex; align-items: center; gap: 10px; font: 700 18px/1.3 "Montserrat"; margin: 32px 0 10px; }
.pull { margin: 44px 0; padding: 28px 0; border-top: 2px solid #111; border-bottom: 2px solid #111; }
.pull p { font-family: "Playfair Display"; font-style: italic; font-size: clamp(26px, 3vw, 36px); line-height: 1.25; margin: 0; }
.pull cite { display: block; margin-top: 14px; font: normal 600 13px/1 "Montserrat"; letter-spacing: .1em; text-transform: uppercase; color: #777; }
.lr-body .fig { margin: 28px 0 32px; }
.lr-body .fig.wide { width: min(1040px, calc(100vw - 2 * var(--pad))); margin-left: 50%; transform: translateX(-50%); }
.lr-sep { text-align: center; letter-spacing: .6em; color: #C8423F; margin: 48px 0 !important; }
.lr-authors { display: flex; gap: 18px; margin: 56px 0 24px; padding: 24px; border-radius: var(--r); background: #F4F4F2; font: 15px/1.6 "Montserrat"; }
.lr-authors p + p { margin-top: 8px; }
.lr-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 32px; list-style: none; font: 600 13px/1 "Montserrat"; }
.lr-tags li { padding: 9px 12px; border-radius: 10px; border: 1.5px solid #111; }
.lr-src { padding: 16px 0 0 22px; border-top: 1px solid #DDD; font: 13px/1.6 "Montserrat"; color: #555; }
.lr-related { margin-top: 72px; padding-top: 28px; border-top: 2px solid #111; }
.lr-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.lr-cards a { display: grid; gap: 8px; }
.lr-cards img { aspect-ratio: 4/3; width: 100%; object-fit: cover; border-radius: 20px; }
.lr-cards b { font-family: "Playfair Display"; font-weight: 400; font-size: 26px; line-height: 1.1; }
.lr-cards span { font-size: 14px; color: #555; }
@media (max-width: 900px) {
  .about-grid, .facts { grid-template-columns: 1fr; }
  .lr-body { font-size: 18px; }
  .lr-hero img { height: 56vh; }
  .lr-cards { grid-template-columns: 1fr; }
  .vswitch { width: auto; }
}
