/* DendroGames — стили темы. Шрифты локальные (assets/fonts), без Google. */

/* ---------- Шрифты ---------- */
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/unbounded-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/unbounded-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/unbounded-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/unbounded-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/unbounded-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/unbounded-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/manrope-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/manrope-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/manrope-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/manrope-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/manrope-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/manrope-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

/* ---------- Токены ---------- */
:root {
	--bg: #07100C;
	--s1: #0D1A14;
	--s2: #12231B;
	--line: #1F3A2C;
	--line-strong: #2C5240;
	--text: #E6FFF1;
	--muted: #A9C9B7;           /* ≈ 9:1 на --s2, ≈ 11:1 на --bg */
	--accent: #39FF88;
	--accent-soft: rgba(57, 255, 136, .14);
	--accent-line: rgba(57, 255, 136, .55);
	--error: #FFB4A2;

	--f-head: 'Unbounded', 'Arial Black', system-ui, sans-serif;
	--f-text: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

	/* Шкала: 13/15/17/20/28/40 */
	--t-13: .8125rem;
	--t-15: .9375rem;
	--t-17: 1.0625rem;
	--t-20: 1.25rem;
	--t-28: 1.75rem;
	--t-40: 2.5rem;

	--r-s: 6px;
	--r: 12px;

	--header: 72px;
	--section: 96px;
	--gutter: 32px;
}

@media (max-width: 767px) {
	:root { --header: 64px; --section: 64px; --gutter: 16px; }
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 var(--t-17)/1.6 var(--f-text);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-head); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }

.wrap { width: min(100% - var(--gutter) * 2, 1240px); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 8px 16px; background: var(--accent); color: var(--bg); border-radius: var(--r-s); font-weight: 600; }
.skip-link:focus { top: 8px; }
.accent-num { color: var(--accent); white-space: nowrap; }
.icon { width: 24px; height: 24px; flex: none; }

/* ---------- Кнопки ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 24px;
	border: 1px solid var(--accent); border-radius: var(--r-s);
	background: var(--accent); color: var(--bg);
	font: 600 var(--t-17)/1.2 var(--f-text); text-decoration: none; text-align: center;
	cursor: pointer;
	transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: #6BFFA7; border-color: #6BFFA7; box-shadow: 0 0 0 4px var(--accent-soft); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline-color: var(--text); }
.btn--ghost { background: transparent; color: var(--text); border-color: rgba(230, 255, 241, .4); }
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: var(--t-15); }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Шапка ---------- */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 50;
	height: var(--header);
	background: rgba(7, 16, 12, .94);
	border-bottom: 1px solid var(--line);
}
.site-header__in { display: flex; align-items: center; gap: 24px; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font: 700 var(--t-17)/1 var(--f-head); letter-spacing: -.01em; min-height: 44px; }
.logo__mark { width: 28px; height: 28px; color: var(--accent); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; gap: 8px; }
.nav__list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--text); text-decoration: none; font-size: var(--t-15); font-weight: 600; border-radius: var(--r-s); transition: color .2s ease; }
.nav__list a:hover { color: var(--accent); }
.nav__cta { display: none; }
.nav-toggle { display: none; }

@media (max-width: 1023px) {
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 48px; height: 48px; margin-right: -8px;
		background: none; border: 0; border-radius: var(--r-s); cursor: pointer; color: var(--text);
	}
	.nav-toggle__close { display: none; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
	.site-header__cta { margin-left: auto; }

	.nav {
		position: fixed; inset: var(--header) 0 0; z-index: 49;
		flex-direction: column; align-items: stretch; gap: 24px;
		margin: 0; padding: 24px var(--gutter) 32px;
		background: var(--bg);
		overflow-y: auto;
		visibility: hidden; opacity: 0; transform: translateY(-8px);
		transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
	}
	.nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list li { border-bottom: 1px solid var(--line); }
	.nav__list a { width: 100%; min-height: 56px; padding: 0; font: 600 var(--t-20)/1.2 var(--f-head); }
	.nav__cta { display: inline-flex; }
	html:not(.js) .nav { position: static; visibility: visible; opacity: 1; }
	body.nav-open { overflow: hidden; }
}
@media (max-width: 519px) {
	.site-header__cta { display: none; }
	.nav-toggle { margin-left: auto; }
}

/* Залогиненный админ: шапка и меню под панелью WordPress. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 1023px) { .admin-bar .nav { top: calc(var(--header) + 32px); } }
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
	.admin-bar .nav { top: calc(var(--header) + 46px); }
}
@media (max-width: 600px) { #wpadminbar { position: fixed; } }

/* ---------- Линии-схемы: разделитель ---------- */
.divider { height: 112px; margin-block: -8px; overflow: hidden; pointer-events: none; }
.divider svg { width: 100%; height: 100%; }
.divider__line, .divider__glow { fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.divider__line { stroke-width: 1.25; opacity: .55; }
.divider__glow { stroke-width: 6; opacity: .08; }
.divider__node { fill: var(--bg); stroke: var(--accent); stroke-width: 1.25; opacity: .8; vector-effect: non-scaling-stroke; }
.divider__node.is-root { fill: var(--accent); opacity: 1; }
@media (max-width: 767px) { .divider { height: 96px; } }

/* ---------- Первый экран ---------- */
.hero {
	position: relative; isolation: isolate;
	display: flex; align-items: flex-end;
	min-height: min(100svh, 940px);
	padding: calc(var(--header) + 64px) 0 48px;
	overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero__shade {
	position: absolute; inset: 0; z-index: -2;
	background:
		linear-gradient(90deg, rgba(7, 16, 12, .94) 0%, rgba(7, 16, 12, .82) 40%, rgba(7, 16, 12, .45) 75%, rgba(7, 16, 12, .35) 100%),
		linear-gradient(0deg, var(--bg) 0%, rgba(7, 16, 12, 0) 35%);
}
.hero__roots { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.root__line, .root__glow { fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.root__line { stroke-width: 1.5; opacity: .7; }
.root__glow { stroke-width: 7; opacity: .1; }
.root__node { fill: var(--accent); }
.hero__in { position: relative; }
.hero__title {
	max-width: 15ch;
	font-weight: 700;
	font-size: clamp(2.25rem, 1rem + 5vw, 5rem);
	line-height: 1.04;
	letter-spacing: -.025em;
}
.hero__lead { max-width: 52ch; margin-top: 24px; font-size: var(--t-20); line-height: 1.5; color: var(--text); }
.hero .actions { margin-top: 32px; }
.facts {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 64px; border-top: 1px solid var(--line-strong);
}
.fact { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 0 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line-strong); }
.fact__value { font: 700 var(--t-40)/1 var(--f-head); color: var(--accent); letter-spacing: -.02em; white-space: nowrap; }
.fact__label { font-size: var(--t-15); color: var(--muted); }

/* Появление линий: только opacity, один раз. Три узла мерцают — маленькие, дешёвые. */
@media (prefers-reduced-motion: no-preference) {
	.js .hero__roots .root { opacity: 0; animation: dg-fade .9s ease-out forwards; animation-delay: calc(300ms + var(--i) * 110ms); }
	.js .hero__roots .root__node { opacity: 0; animation: dg-fade .6s ease-out forwards; animation-delay: calc(1100ms + var(--i) * 90ms); }
	.js .hero__roots .root__node.is-pulse { animation: dg-fade .6s ease-out calc(1100ms + var(--i) * 90ms) forwards, dg-pulse 3.2s ease-in-out calc(2s + var(--i) * 700ms) infinite; }
}
@keyframes dg-fade { to { opacity: 1; } }
@keyframes dg-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

@media (max-width: 767px) {
	.hero { min-height: auto; padding-top: calc(var(--header) + 96px); padding-bottom: 32px; }
	.hero__bg { object-position: 70% 50%; }
	.hero__shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(7, 16, 12, .86) 45%, rgba(7, 16, 12, .6) 100%); }
	.hero__roots { opacity: .35; }
	.hero__lead { font-size: var(--t-17); }
	.hero .actions .btn { flex: 1 1 100%; }
	.facts { grid-template-columns: 1fr; margin-top: 40px; }
	.fact, .fact + .fact { flex-direction: row; align-items: baseline; gap: 16px; padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
	.fact__value { min-width: 5.2em; font-size: var(--t-28); }
}

/* ---------- Секции ---------- */
.section { padding-block: var(--section); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 48px; }
.section-head h2 { font-size: var(--t-40); }
.section-head p { max-width: 60ch; color: var(--muted); font-size: var(--t-20); line-height: 1.5; }
.sub-title { margin: 64px 0 24px; font-size: var(--t-28); }
@media (max-width: 767px) {
	.section-head { margin-bottom: 32px; }
	.section-head h2 { font-size: var(--t-28); }
	.section-head p { font-size: var(--t-17); }
	.sub-title { margin-top: 48px; font-size: var(--t-20); }
}

/* ---------- Зоны ---------- */
.zones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.zone { display: flex; flex-direction: column; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.zone__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--s2); }
.zone__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.zone:hover .zone__img { transform: scale(1.03); }
.zone__body { display: flex; flex-direction: column; gap: 16px; flex: 1; padding: 32px; }
.zone__name { font-size: var(--t-28); }
.zone__desc { max-width: 52ch; color: var(--muted); }
.zone__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 8px; }
.zone__price { font-size: var(--t-20); font-weight: 600; }
.zone--main { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; }
.zone--main .zone__media { aspect-ratio: auto; min-height: 400px; }
.zone--main .zone__body { justify-content: flex-end; padding: 40px; }
.zone--main .zone__name { font-size: var(--t-40); }
.zones__note { margin-top: 32px; padding-left: 24px; border-left: 2px solid var(--accent); color: var(--muted); }
@media (max-width: 1023px) {
	.zone--main { grid-template-columns: 1fr; }
	.zone--main .zone__media { aspect-ratio: 3 / 2; min-height: 0; }
	.zone--main .zone__body { padding: 32px; }
	.zone--main .zone__name { font-size: var(--t-28); }
}
@media (max-width: 767px) {
	.zones { grid-template-columns: 1fr; gap: 16px; }
	.zone__body, .zone--main .zone__body { padding: 24px; }
	.zone__name, .zone--main .zone__name { font-size: var(--t-20); }
	.zone__foot .btn { flex: 1 1 100%; }
}

/* ---------- Цены ---------- */
.price-example { max-width: 26ch; margin-bottom: 48px; font: 600 var(--t-40)/1.2 var(--f-head); letter-spacing: -.015em; text-wrap: balance; }
.prices { max-width: 760px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 24px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); }
.tab {
	display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center;
	min-height: 56px; min-width: 144px; padding: 8px 20px;
	background: none; border: 0; border-radius: var(--r-s); cursor: pointer;
	color: var(--text); text-align: left;
	transition: background-color .2s ease, color .2s ease;
}
.tab__label { font: 600 var(--t-17)/1.2 var(--f-head); }
.tab__hours { font-size: var(--t-13); color: var(--muted); }
.tab:hover { background: var(--s2); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--bg); }
.tab[aria-selected="true"] .tab__hours { color: var(--bg); }
.tab:focus-visible { outline-offset: 2px; }
.js .tabpanel:not(.is-active) { display: none; }
.tabpanel:focus-visible { outline-offset: 8px; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 20px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.price-table tr:first-child th, .price-table tr:first-child td { border-top: 1px solid var(--line); }
.price-table th { text-align: left; font-weight: 600; font-size: var(--t-20); }
.price-table td { text-align: right; font: 600 var(--t-28)/1 var(--f-head); white-space: nowrap; }
.price-table .per { margin-left: 4px; font: 400 var(--t-15)/1 var(--f-text); color: var(--muted); }

.packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.package { display: flex; flex-direction: column; gap: 8px; padding: 32px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); }
.package__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.package__name { font-size: var(--t-20); }
.package__saving { padding: 4px 8px; border: 1px solid var(--accent-line); border-radius: var(--r-s); color: var(--accent); font-size: var(--t-13); font-weight: 600; white-space: nowrap; }
.package__time { min-height: 1.6em; color: var(--muted); font-size: var(--t-15); }
.package__price { margin-top: 16px; font: 700 var(--t-40)/1 var(--f-head); color: var(--accent); letter-spacing: -.02em; }
.package__extra { font-weight: 600; font-size: var(--t-15); }
.package__note { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--t-15); }
#prices .actions { margin-top: 48px; }
@media (max-width: 1023px) { .packages { grid-template-columns: 1fr; max-width: 560px; } }
@media (max-width: 767px) {
	.price-example { font-size: var(--t-20); margin-bottom: 32px; }
	.tabs { display: flex; }
	.tab { flex: 1; min-width: 0; padding: 8px 16px; }
	.price-table th { font-size: var(--t-17); }
	.price-table td { font-size: var(--t-20); }
	.package { padding: 24px; }
	.package__price { font-size: var(--t-28); }
	#prices .actions .btn { flex: 1 1 100%; }
}

/* ---------- Железо: характеристики висят на дорожке, как на плате ---------- */
.hardware { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.rig__zone { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; font-size: var(--t-20); }
.rig__zone .icon { color: var(--accent); }
.rig__specs { position: relative; margin-left: 11px; padding-left: 28px; }
.rig__specs::before { content: ''; position: absolute; left: 0; top: 0; bottom: 28px; width: 1px; background: var(--accent-line); }
.rig__specs li { position: relative; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rig__specs li::before { content: ''; position: absolute; left: -28px; top: 50%; width: 20px; height: 1px; background: var(--accent-line); }
.rig__specs li::after { content: ''; position: absolute; left: -10px; top: calc(50% - 3px); width: 7px; height: 7px; border-radius: 50%; background: var(--bg); border: 1px solid var(--accent); }
.rig__specs li:last-child { border-bottom: 0; }
@media (max-width: 1023px) { .hardware { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .hardware { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Турниры ---------- */
.tour { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.tour__media { position: sticky; top: calc(var(--header) + 32px); border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: var(--s2); }
.tour__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.next-tour { display: grid; justify-items: start; gap: 8px; padding: 32px; background: var(--s2); border: 1px solid var(--line-strong); border-left: 2px solid var(--accent); border-radius: var(--r); }
.next-tour__label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--t-15); font-weight: 600; }
.next-tour__label .icon { color: var(--accent); width: 20px; height: 20px; }
.next-tour__game { font: 700 var(--t-40)/1.1 var(--f-head); letter-spacing: -.02em; }
.next-tour__when { display: flex; align-items: center; gap: 8px; font-size: var(--t-20); font-weight: 600; }
.next-tour__when .icon { color: var(--accent); width: 20px; height: 20px; }
.next-tour__terms { max-width: 52ch; color: var(--muted); }
.next-tour .btn { margin-top: 16px; }
.steps { counter-reset: step; position: relative; display: grid; gap: 24px; }
.steps::before { content: ''; position: absolute; left: 19px; top: 40px; bottom: 40px; width: 1px; background: var(--accent-line); }
.steps li { counter-increment: step; position: relative; display: flex; align-items: center; gap: 24px; min-height: 40px; max-width: 60ch; }
.steps li::before {
	content: counter(step);
	display: grid; place-items: center; flex: none;
	width: 40px; height: 40px; border: 1px solid var(--accent); border-radius: 50%;
	background: var(--bg); color: var(--accent); font: 600 var(--t-15)/1 var(--f-head);
}
@media (max-width: 1023px) {
	.tour { grid-template-columns: 1fr; gap: 40px; }
	.tour__media { position: static; aspect-ratio: 3 / 2; order: 2; }
}
@media (max-width: 767px) {
	.next-tour { padding: 24px; }
	.next-tour__game { font-size: var(--t-28); }
	.next-tour .btn { width: 100%; }
}

/* ---------- Отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.review figure { position: relative; display: flex; flex-direction: column; gap: 24px; height: 100%; margin: 0; padding-top: 32px; border-top: 1px solid var(--line-strong); }
.review figure::before { content: ''; position: absolute; left: 0; top: -1px; width: 48px; height: 2px; background: var(--accent); }
.review blockquote { margin: 0; }
.review__text p { font-size: var(--t-17); line-height: 1.65; }
.review__by { display: grid; gap: 4px; margin-top: auto; }
.review__name { font: 600 var(--t-15)/1.3 var(--f-head); }
.review__caption { color: var(--muted); font-size: var(--t-13); }
@media (max-width: 1023px) { .reviews { grid-template-columns: 1fr; max-width: 640px; } }

/* ---------- Бронирование ---------- */
.booking { position: relative; isolation: isolate; padding-block: calc(var(--section) + 32px); overflow: hidden; border-block: 1px solid var(--line); }
.booking__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.booking__shade { position: absolute; inset: 0; z-index: -1; background: rgba(7, 16, 12, .84); }
.booking__in { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.booking__head { margin-bottom: 0; }
.booking__phone { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.booking__phone .icon { color: var(--accent); }
.booking__phone a { color: var(--text); font: 600 var(--t-20)/1.2 var(--f-head); text-decoration: none; }
.booking__phone a:hover { color: var(--accent); }
.booking-box { padding: 40px; background: var(--s1); border: 1px solid var(--line-strong); border-radius: var(--r); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field--people { grid-column: 1 / -1; max-width: calc(50% - 12px); }
.field label { font-size: var(--t-15); font-weight: 600; }
.input {
	width: 100%; min-width: 0; min-height: 52px; padding: 12px 16px;
	background: var(--bg); color: var(--text);
	border: 1px solid var(--line-strong); border-radius: var(--r-s);
	font-size: var(--t-17); /* от 16px: iOS не увеличивает страницу при фокусе */
	color-scheme: dark;
	transition: border-color .2s ease;
}
.input::placeholder { color: #7FA090; }
.input:hover { border-color: #3E6B55; }
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.select {
	appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2339FF88' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
}
.field__error { color: var(--error); font-size: var(--t-13); }
.field__error:empty { display: none; }
.field.has-error .input { border-color: var(--error); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { grid-column: 1 / -1; display: grid; gap: 16px; margin-top: 8px; }
.form__consent { color: var(--muted); font-size: var(--t-13); }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--error); font-size: var(--t-15); }
.booking-done { display: none; align-items: center; gap: 16px; }
.booking-done .icon { width: 40px; height: 40px; padding: 8px; color: var(--bg); background: var(--accent); border-radius: 50%; }
.booking-done p { font: 600 var(--t-20)/1.4 var(--f-head); }
.booking-done:focus { outline: none; }
.booking-box.is-sent .form { display: none; }
.booking-box.is-sent .booking-done { display: flex; }
@media (max-width: 1023px) { .booking__in { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 767px) {
	.booking-box { padding: 24px 16px; }
	.form { grid-template-columns: 1fr; gap: 16px; }
	.field--people { max-width: none; }
	.booking-done p { font-size: var(--t-17); }
}

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.contacts__list { display: grid; gap: 16px; margin-bottom: 32px; }
.contacts__list li { display: flex; gap: 16px; align-items: flex-start; font-size: var(--t-20); }
.contacts__list .icon { margin-top: 3px; color: var(--accent); }
.contacts__list a { color: var(--text); text-decoration: none; font-weight: 600; }
.contacts__list a:hover { color: var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }
.socials a:hover { text-decoration: underline; }
.socials .icon { width: 20px; height: 20px; }

.scheme { margin: 0; aspect-ratio: 4 / 3; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.scheme svg { width: 100%; height: 100%; }
.scheme__streets path { fill: none; stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.scheme__canal, .scheme__canal-glow { fill: none; stroke: var(--accent); stroke-linecap: round; }
.scheme__canal { stroke-width: 2; opacity: .7; }
.scheme__canal-glow { stroke-width: 14; opacity: .07; }
.scheme__route path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 6; opacity: .8; }
.scheme__node { fill: var(--accent); }
.scheme__ring { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .5; transform-box: fill-box; transform-origin: center; }
.scheme__label { fill: var(--accent); font: 600 22px var(--f-head); }
.scheme__street { fill: var(--muted); font: 400 20px var(--f-text); }
@media (prefers-reduced-motion: no-preference) {
	.scheme__ring { animation: dg-ring 2.8s ease-out infinite; }
}
@keyframes dg-ring { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }
@media (max-width: 1023px) { .contacts { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 767px) {
	.contacts__list li { font-size: var(--t-17); }
	.contacts .actions .btn { flex: 1 1 100%; }
}

/* ---------- Подвал ---------- */
.site-footer { padding-bottom: 48px; }
.site-footer__in { display: grid; gap: 16px; }
.site-footer__note { max-width: 60ch; color: var(--text); font-size: var(--t-15); }
.site-footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; color: var(--muted); font-size: var(--t-13); }
.site-footer__meta a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.site-footer__meta a:hover { color: var(--accent); }

/* ---------- Обычная страница и 404 ---------- */
.page-article { padding: calc(var(--header) + 64px) 0 64px; }
.page__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 40px; }
.page__head h1 { font-size: var(--t-40); }
.page__lead { max-width: 60ch; color: var(--muted); font-size: var(--t-20); }
.page__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; justify-self: start; font-weight: 600; text-decoration: none; }
.page__back .icon { width: 20px; height: 20px; transform: scaleX(-1); }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 40px; font-size: var(--t-28); }
.prose h3 { margin-top: 32px; font-size: var(--t-20); }
.prose ul, .prose ol { padding-left: 24px; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 8px; }
.prose .concept-note { padding: 16px 24px; border-left: 2px solid var(--accent); background: var(--s1); border-radius: 0 var(--r-s) var(--r-s) 0; }
.notfound { padding: calc(var(--header) + 96px) 0 96px; display: grid; gap: 24px; justify-items: start; }
.notfound .notfound__code { font: 700 clamp(5rem, 3rem + 10vw, 10rem)/1 var(--f-head); color: var(--accent); }
.notfound h1 { font-size: var(--t-40); }
.notfound p { max-width: 52ch; color: var(--muted); }
@media (max-width: 767px) { .page__head h1, .notfound h1 { font-size: var(--t-28); } }
/* Узкий телефон: длинные слова («конфиденциальности») в Unbounded 28px не влезают в 360–390. */
@media (max-width: 419px) {
	.page__head h1 { font-size: var(--t-20); }
	.prose h2 { font-size: var(--t-17); }
}

/* ---------- Без анимаций по просьбе системы ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
