/* Агентство КМ — 2026
   Скругления: кнопки и чипы — капсула; карточки и медиа — 20px; поля ввода и мелкие плашки — 12px. */

@font-face {
	font-family: "Onest";
	src: url("../fonts/onest-cyrillic-wght-normal.woff2") format("woff2-variations");
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Onest";
	src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2-variations");
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--bg: #fbfcfa;
	--surface: #ffffff;
	--soft: #f2f5ef;
	--ink: #18201b;
	--ink-2: #3c463f;
	--muted: #5f6a63;
	--line: #e3e8e0;
	--line-2: #cfd7cb;
	--brand: #8cc751;
	--accent: #2f6a17;
	--accent-hover: #24540f;
	--accent-soft: #e8f3dc;
	--accent-softer: #f3f8ec;
	--danger: #b42318;

	--r-lg: 20px;
	--r-md: 12px;
	--shadow: 0 1px 2px rgb(30 50 25 / .04), 0 12px 32px -16px rgb(30 50 25 / .18);
	--shadow-lg: 0 2px 4px rgb(30 50 25 / .04), 0 24px 60px -24px rgb(30 50 25 / .28);

	--container: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 72px;
	--section: clamp(56px, 7vw, 104px);
	--ease: cubic-bezier(.16, 1, .3, 1);

	--font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: clamp(1rem, .97rem + .15vw, 1.0625rem);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-feature-settings: "ss01", "cv11";
}
body.is-locked { overflow: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.022em; line-height: 1.12; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.5rem); }
h3 { font-size: 1.1875rem; letter-spacing: -.012em; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
dl, dd { margin: 0; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--r-md); }
.skip-link:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .8125rem; font-weight: 600; line-height: 1.5; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }

/* ---------- Кнопки ---------- */
.btn {
	--h: 46px;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: var(--h); padding: 0 22px;
	border: 1px solid transparent; border-radius: 999px;
	font-size: .9375rem; font-weight: 600; line-height: 1.2; white-space: nowrap; text-decoration: none;
	transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon-arrow-right, .btn:hover [href="#i-arrow-right"] { transform: translateX(3px); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: .875rem; }
.btn--lg { --h: 54px; padding: 0 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / .15) inset, 0 6px 16px -8px rgb(47 106 23 / .6); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .6; pointer-events: none; }

.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
	border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink);
	transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn:active { transform: scale(.96); }
.icon-btn[disabled] { opacity: .35; pointer-events: none; }
.icon-btn--dark { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .18); color: #fff; }
.icon-btn--dark:hover { border-color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); text-decoration: none; }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-btn { padding: 0; border: 0; background: none; color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }

/* ---------- Шапка ---------- */
.site-header {
	position: sticky; top: 0; z-index: 40;
	background: rgb(251 252 250 / .86);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgb(30 50 25 / .4); }
.site-header__in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: block; flex: none; }
.logo img { width: 96px; height: auto; }
.nav { margin-left: auto; display: none; }
.nav ul { display: flex; gap: 4px; }
.nav a {
	position: relative; display: block; padding: 8px 12px; border-radius: 999px;
	color: var(--ink-2); font-size: .9375rem; font-weight: 500; text-decoration: none; transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--brand); }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-phone { display: none; align-items: center; gap: 8px; font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap; }
.header-phone .icon { color: var(--accent); }
.header-cta { display: none; }
.burger {
	position: relative; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
}
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (min-width: 640px) { .header-cta { display: inline-flex; } }
@media (min-width: 1024px) {
	.nav { display: block; }
	.site-header__actions { margin-left: 8px; }
	.burger { display: none; }
}
@media (min-width: 1200px) { .header-phone { display: inline-flex; } }

.mnav {
	position: fixed; inset: var(--header-h) 0 0; z-index: 39;
	display: flex; flex-direction: column; gap: 28px;
	padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
	background: var(--bg); overflow-y: auto;
	animation: fade-in .3s var(--ease);
}
.mnav[hidden] { display: none; }
.mnav ul { display: grid; }
.mnav li + li { border-top: 1px solid var(--line); }
.mnav nav a { display: block; padding: 14px 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.mnav nav a[aria-current="page"] { color: var(--accent); }
.mnav__contacts { display: grid; gap: 6px; color: var(--ink-2); }
.mnav__contacts a { text-decoration: none; }
.mnav__phone { font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.mnav__contacts p { color: var(--muted); font-size: .9375rem; }
.mnav .btn { margin-top: auto; }

/* ---------- Секции ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .7); }
.section--soft { background: var(--soft); }
.section-head .link-arrow { white-space: nowrap; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head--stack { display: block; max-width: 720px; }
.section-head--stack > p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 1.0625rem; max-width: 60ch; }
.section-head__sub { margin-top: 8px; color: var(--muted); }

/* ---------- Первый экран ---------- */
.hero { padding-block: clamp(28px, 4vw, 64px) clamp(40px, 5vw, 72px); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(32px, 4vw, 56px); align-items: center; }
.hero__title { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.75rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 650; max-width: 17ch; }
.hero__lead { margin-top: 20px; max-width: 46ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__media {
	display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px;
	height: clamp(300px, 46vw, 520px);
}
.hero__photo { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--soft); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--1 { grid-row: span 2; }
.hero__photo--2 img { object-position: 50% 35%; }
@media (min-width: 1024px) {
	.hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
@media (max-width: 599px) {
	.hero__media { grid-template-columns: 1fr 1fr; grid-template-rows: 1.4fr 1fr; height: auto; aspect-ratio: 1 / 1.02; gap: 8px; }
	.hero__photo--1 { grid-row: auto; grid-column: span 2; }
	.hero__cta .btn { flex: 1 1 auto; }
}
.js .hero__copy > *, .js .hero__photo { animation: settle .9s var(--ease) both; }
.js .hero__copy > :nth-child(2) { animation-delay: .06s; }
.js .hero__copy > :nth-child(3) { animation-delay: .12s; }
.js .hero__copy > :nth-child(4) { animation-delay: .18s; }
.js .hero__photo--1 { animation-delay: .1s; }
.js .hero__photo--2 { animation-delay: .22s; }
.js .hero__photo--3 { animation-delay: .32s; }

/* ---------- Цифры ---------- */
.facts { padding-bottom: clamp(16px, 3vw, 32px); }
.facts__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; border-top: 1px solid var(--line); }
.facts__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 24px 0 8px; min-width: 0; }
.facts__num { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts__unit { font-weight: 600; color: var(--accent); }
.facts__text { flex-basis: 100%; margin-top: 8px; color: var(--muted); font-size: .9375rem; line-height: 1.45; max-width: 24ch; }
@media (min-width: 900px) {
	.facts__list { grid-template-columns: repeat(4, 1fr); }
	.facts__list li + li { padding-left: 28px; border-left: 1px solid var(--line); }
}

/* ---------- Ближайшее мероприятие ---------- */
.next {
	display: grid; gap: 24px;
	padding: clamp(20px, 3vw, 36px);
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.next__date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.next__day { font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem); font-weight: 600; letter-spacing: -.05em; line-height: .9; color: var(--accent); font-variant-numeric: tabular-nums; }
.next__month { font-size: 1.125rem; font-weight: 600; }
.next__countdown:empty { display: none; }
.next__countdown { flex-basis: 100%; margin-top: 12px; display: inline-flex; width: fit-content; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .875rem; font-weight: 600; }
.next__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: .9375rem; }
.next__meta > span:not(.tag) { display: inline-flex; align-items: center; gap: 6px; }
.next__title { margin-top: 14px; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); line-height: 1.22; }
.next__title a { text-decoration: none; }
.next__title a:hover { text-decoration: underline; text-decoration-color: var(--brand); }
.next__goal { margin-top: 12px; color: var(--ink-2); max-width: 62ch; }
.next__facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 20px; }
.next__facts dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8125rem; }
.next__facts dd { font-weight: 600; }
.next__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.next__media { display: block; overflow: hidden; border-radius: var(--r-md); background: var(--soft); aspect-ratio: 4 / 3; }
.next__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.next__media:hover img { transform: scale(1.03); }
.next__media.is-portrait img { object-fit: contain; padding: 12px; }
@media (min-width: 900px) {
	.next { grid-template-columns: 170px minmax(0, 1fr) minmax(0, 300px); gap: 36px; align-items: start; }
	.next__date { flex-direction: column; gap: 6px; padding-right: 24px; border-right: 1px solid var(--line); min-height: 100%; }
	.next__countdown { flex-basis: auto; }
	.next__media { aspect-ratio: 3 / 4; }
}
@media (min-width: 900px) and (max-width: 1099px) {
	.next { grid-template-columns: 150px minmax(0, 1fr); }
	.next__media { display: none; }
}
.upcoming-list { margin-top: 16px; display: grid; }
.upcoming-list li { display: grid; grid-template-columns: 160px 1fr auto; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.upcoming-list time { color: var(--accent); font-weight: 600; }
.upcoming-list a { font-weight: 600; text-decoration: none; }
.upcoming-list a:hover { text-decoration: underline; }
.upcoming-list span { color: var(--muted); }
@media (max-width: 699px) { .upcoming-list li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Услуги ---------- */
.services { display: grid; gap: 12px; }
.service {
	position: relative; display: flex; flex-direction: column; gap: 12px;
	padding: clamp(22px, 2.4vw, 32px);
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
	transition: border-color .25s, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.service__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }
.service__icon .icon { width: 26px; height: 26px; }
.service__title a { text-decoration: none; }
.service__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service__text { color: var(--muted); }
.service__more { position: absolute; top: clamp(22px, 2.4vw, 32px); right: clamp(22px, 2.4vw, 32px); color: var(--muted); transition: transform .3s var(--ease), color .2s; }
.service:hover .service__more { color: var(--accent); transform: translate(2px, -2px); }
.service--main { background: linear-gradient(160deg, var(--accent-softer), var(--surface) 70%); border-color: #d9e8c8; }
.service--main .service__icon { background: var(--accent); color: #fff; width: 56px; height: 56px; }
.service--main .service__title { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); }
.service--main .service__text { color: var(--ink-2); font-size: 1.0625rem; max-width: 40ch; }
.checklist { display: grid; gap: 10px; margin-top: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { margin-top: .2em; color: var(--accent); }
@media (min-width: 700px) {
	.services { grid-template-columns: repeat(2, 1fr); }
	.service--main { grid-column: span 2; }
	.service--main .checklist { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
}
@media (min-width: 1100px) {
	.services { grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; }
	.service--main { grid-column: 1; grid-row: span 2; }
	.service--main .checklist { grid-template-columns: 1fr; margin-top: auto; padding-top: 24px; }
}

/* ---------- Этапы ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 28px 56px; counter-increment: step; }
.steps li::before {
	content: counter(step); position: absolute; left: 0; top: -4px;
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px;
	background: var(--surface); border: 1px solid var(--line-2); font-weight: 600; font-size: .9375rem; font-variant-numeric: tabular-nums;
}
.steps li::after { content: ""; position: absolute; left: 18px; top: 36px; bottom: 0; width: 1px; background: var(--line-2); }
.steps li:last-child::after { display: none; }
.steps li:last-child::before { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps h3 { font-size: 1.0625rem; }
.steps p { margin-top: 6px; color: var(--muted); font-size: .9375rem; }
@media (min-width: 900px) {
	.steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
	.steps li { padding: 56px 0 0; }
	.steps li::before { top: 0; }
	.steps li::after { left: 44px; right: -20px; top: 18px; bottom: auto; width: auto; height: 1px; }
}

/* ---------- Портфолио: лента и карточки ---------- */
.format-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.format-links a, .fchip {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
	border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
	font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: border-color .2s, background-color .2s, color .2s;
}
.format-links a span, .fchip span { color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.format-links a:hover, .fchip:hover { border-color: var(--ink); }

.rail {
	--pad: max(var(--gutter), calc((100vw - var(--container)) / 2));
	display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 320px); gap: 16px;
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
	padding: 4px var(--pad) 20px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: none; gap: 8px; }
@media (min-width: 900px) { .rail-nav { display: flex; } }
.rail__more {
	display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 24px;
	border-radius: var(--r-lg); background: var(--accent); color: #fff; text-decoration: none; min-height: 100%;
	transition: background-color .2s;
}
.rail__more:hover { background: var(--accent-hover); }
.rail__more strong { font-size: 3.5rem; line-height: 1; letter-spacing: -.04em; font-weight: 600; }
.rail__more .icon { width: 28px; height: 28px; margin-top: 8px; transition: transform .3s var(--ease); }
.rail__more:hover .icon { transform: translateX(4px); }

.ecard { position: relative; display: flex; flex-direction: column; gap: 14px; }
.ecard__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-lg); background: var(--soft); }
.ecard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ecard:hover .ecard__media img { transform: scale(1.04); }
.ecard__media.is-portrait { background: #edf1ea; }
.ecard__media.is-portrait img { object-fit: contain; padding: 10px; }
.ecard:hover .ecard__media.is-portrait img { transform: scale(1.02); }
.ecard__media.is-empty { display: grid; place-items: center; background: linear-gradient(140deg, var(--accent-softer), var(--soft)); color: var(--accent); }
.ecard__placeholder .icon { width: 44px; height: 44px; opacity: .8; }
.ecard__count {
	position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px;
	padding: 3px 9px; border-radius: 999px; background: rgb(20 28 22 / .62); color: #fff; font-size: .75rem; font-weight: 600;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ecard__body { display: flex; flex-direction: column; gap: 6px; padding-inline: 2px; }
.ecard__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .875rem; }
.ecard__meta time { color: var(--ink-2); font-weight: 500; }
.ecard__title { font-size: 1.0625rem; line-height: 1.35; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ecard__title a { text-decoration: none; }
.ecard__title a::after { content: ""; position: absolute; inset: 0; }
.ecard:hover .ecard__title a { text-decoration: underline; text-decoration-color: var(--brand); }
.ecard__format { font-size: .8125rem; font-weight: 600; color: var(--accent); }

/* ---------- География ---------- */
.geo__grid { display: grid; gap: 40px; }
.geo h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); max-width: 22ch; }
.geo__big { display: block; font-size: clamp(3.5rem, 2.5rem + 4vw, 6rem); line-height: .95; letter-spacing: -.05em; color: var(--accent); }
.city-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.city-cloud li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9375rem; }
.city-cloud li span { color: var(--accent); font-weight: 600; font-size: .8125rem; }
.city-cloud .is-extra { display: none; }
.city-cloud.is-open .is-extra { display: inline-flex; animation: fade-in .4s var(--ease) both; }
.geo .link-btn { margin-top: 16px; }
.geo__years { padding: clamp(20px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.geo__years figcaption { font-weight: 600; margin-bottom: 20px; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; gap: 6px; height: 240px; }
.bars li { height: 100%; }
.bars a { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; text-decoration: none; }
.bars__bar {
	width: 100%; max-width: 40px; height: calc(var(--v) / var(--max) * 100% - 48px); min-height: 4px;
	border-radius: 8px 8px 3px 3px; background: var(--brand); transform-origin: bottom;
	transition: background-color .2s, transform 1s var(--ease);
}
.js .reveal:not(.is-in) .bars__bar { transform: scaleY(.05); }
.bars li:nth-child(2) .bars__bar { transition-delay: .04s; } .bars li:nth-child(3) .bars__bar { transition-delay: .08s; }
.bars li:nth-child(4) .bars__bar { transition-delay: .12s; } .bars li:nth-child(5) .bars__bar { transition-delay: .16s; }
.bars li:nth-child(6) .bars__bar { transition-delay: .2s; } .bars li:nth-child(7) .bars__bar { transition-delay: .24s; }
.bars li:nth-child(8) .bars__bar { transition-delay: .28s; } .bars li:nth-child(9) .bars__bar { transition-delay: .32s; }
.bars li:nth-child(10) .bars__bar { transition-delay: .36s; }
.bars a:hover .bars__bar { background: var(--accent); }
.bars__val { font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.bars__year { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
	.geo__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: start; }
}

/* ---------- Партнёры ---------- */
.partners { padding-block: clamp(24px, 3vw, 40px) calc(var(--section) * .4); }
.partners__title { font-size: .9375rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-bottom: 16px; }
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.logos a {
	display: grid; place-items: center; height: 104px; padding: 18px 24px;
	border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-decoration: none; font-weight: 600;
	transition: border-color .2s;
}
.logos a:hover { border-color: var(--line-2); }
.logos img { width: auto; height: var(--h, 48px); max-width: 100%; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.logos a:hover img { filter: none; opacity: 1; }
@media (min-width: 800px) { .logos { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Заявка ---------- */
.lead { background: linear-gradient(180deg, var(--bg), var(--soft)); }
.lead__grid { display: grid; gap: 32px; }
.lead__intro h2 { max-width: 18ch; }
.lead__intro > p:not(.eyebrow) { margin-top: 16px; color: var(--ink-2); max-width: 44ch; }
.contact-list { display: grid; gap: 16px; margin-top: 32px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { margin-top: .25em; color: var(--accent); }
.contact-list a { font-weight: 600; font-size: 1.125rem; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.lead__form { padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow); }
@media (min-width: 1000px) {
	.lead__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
	.lead__intro { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- Форма ---------- */
.lead-form { display: grid; gap: 20px; }
.lead-form__topic { padding: 12px 16px; border-radius: var(--r-md); background: var(--accent-softer); border: 1px solid #d9e8c8; font-size: .9375rem; color: var(--ink-2); }
.lead-form__topic strong { color: var(--ink); }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 20px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field > label, .field legend { font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.field legend { padding: 0; margin-bottom: 8px; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; display: block; }
.req { color: var(--accent); }
.field input:not([type="radio"]):not([type="checkbox"]), .field textarea, .select, .search input {
	width: 100%; min-height: 48px; padding: 11px 14px;
	border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface);
	font-size: 1rem; line-height: 1.4; transition: border-color .2s, box-shadow .2s;
	-webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field textarea:hover { border-color: #b4bfae; }
.field input:focus, .field textarea:focus, .select:focus, .search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.has-error input { border-color: var(--danger); }
.hint { color: var(--muted); font-size: .8125rem; }
.error { color: var(--danger); font-size: .8125rem; font-weight: 500; }
.error:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
	border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
	font-size: .9375rem; transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.field--check.has-error .check { color: var(--danger); }
.lead-form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.lead-form__status { color: var(--danger); font-size: .9375rem; }
.lead-form.is-sending .btn span::after { content: "…"; }
.lead-done { display: grid; justify-items: start; gap: 12px; padding: 12px 0; }
.lead-done[hidden] { display: none; }
.lead-done:focus { outline: none; }
.lead-done__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; background: var(--accent); color: #fff; animation: pop .6s var(--ease) both; }
.lead-done__icon .icon { width: 28px; height: 28px; }
.lead-done h3 { font-size: 1.5rem; }
.lead-done p { color: var(--ink-2); max-width: 48ch; }

/* ---------- Карта ---------- */
.mapblock { padding-bottom: var(--section); }
.mapblock__grid { display: grid; gap: 12px; }
.mapblock__info { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3vw, 32px); }
.mapblock__info h2 { font-size: 1.375rem; }
.mapblock__info address { color: var(--ink-2); }
.mapblock__info .link-arrow { margin-top: auto; }
.mapblock__map { position: relative; min-height: 340px; overflow: hidden; border-radius: var(--r-lg); background: var(--soft); border: 1px solid var(--line); }
.mapblock__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapblock__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); }
@media (min-width: 900px) { .mapblock__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } .mapblock__map { min-height: 380px; } }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-top: clamp(40px, 5vw, 64px); }
.site-footer__grid { display: grid; gap: 32px; }
.site-footer__brand p { margin-top: 16px; color: var(--muted); font-size: .9375rem; max-width: 36ch; }
.site-footer__nav ul { display: grid; gap: 10px; }
.site-footer__nav a { text-decoration: none; color: var(--ink-2); }
.site-footer__nav a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__contacts { display: grid; gap: 8px; align-content: start; color: var(--ink-2); }
.site-footer__contacts a { text-decoration: none; }
.site-footer__contacts a:hover { text-decoration: underline; }
.site-footer__phone { font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.site-footer__contacts address { color: var(--muted); font-size: .9375rem; }
.site-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
	margin-top: 40px; padding-block: 20px calc(20px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem;
}
.site-footer__bottom a { color: inherit; }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
@media (max-width: 767px) { .site-footer { padding-bottom: 76px; } }

/* ---------- Нижняя панель на телефоне ---------- */
.mbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
	display: grid; grid-template-columns: 1fr 1.7fr; gap: 8px;
	padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
	background: rgb(255 255 255 / .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border-top: 1px solid var(--line);
	transform: translateY(110%); transition: transform .4s var(--ease);
}
.mbar .btn { --h: 48px; padding: 0 12px; }
.mbar.is-visible { transform: none; }
@media (min-width: 768px) { .mbar { display: none; } }

/* ---------- Модальное окно ---------- */
.modal {
	width: min(720px, 100% - 32px); max-height: min(92dvh, 900px); padding: 0;
	border: 0; border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
	overflow: auto; overscroll-behavior: contain;
}
.modal::backdrop { background: rgb(18 26 20 / .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .45s var(--ease); }
.modal[open]::backdrop { animation: fade-in .3s ease; }
.modal__panel { padding: clamp(20px, 3vw, 36px); }
.modal__head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.modal__head h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.875rem); }
.modal__head p { margin-top: 8px; color: var(--muted); }
@media (max-width: 599px) {
	.modal { width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
	.modal[open] { animation: sheet-in .45s var(--ease); }
	.modal__panel { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

/* ---------- Просмотр фото ---------- */
.lightbox {
	width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0;
	border: 0; background: rgb(12 16 13 / .95); color: #fff;
}
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: fade-in .25s ease; }
.lightbox::backdrop { background: transparent; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; padding: 16px; touch-action: pan-y; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; user-select: none; transition: opacity .2s; }
.lightbox__stage img.is-loading { opacity: .3; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); }
.lightbox__bar span { font-variant-numeric: tabular-nums; color: rgb(255 255 255 / .75); }
.lightbox__nav { display: flex; gap: 8px; }

/* ---------- Внутренние страницы ---------- */
.page-hero { padding-block: clamp(24px, 3vw, 40px) clamp(28px, 4vw, 48px); }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); letter-spacing: -.03em; line-height: 1.06; max-width: 22ch; }
.page-hero__lead { margin-top: 16px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--ink-2); max-width: 56ch; }
.crumbs { margin-bottom: 20px; font-size: .875rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li { display: inline-flex; gap: 8px; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--line-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 40ch; }

.prose { max-width: 68ch; font-size: 1.0625rem; color: var(--ink-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; color: var(--ink); }
.prose h3 { margin-top: 1.4em; color: var(--ink); }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--accent); }

/* Портфолио */
.toolbar {
	position: sticky; top: var(--header-h); z-index: 20;
	padding-block: 12px; margin-bottom: 28px;
	background: rgb(251 252 250 / .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.toolbar__in { display: grid; gap: 10px; }
.toolbar .chips-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.toolbar .chips-scroll::-webkit-scrollbar { display: none; }
.fchip { cursor: pointer; }
.fchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.fchip[aria-pressed="true"] span { color: rgb(255 255 255 / .7); }
.toolbar__row { display: grid; grid-template-columns: 1fr 132px; gap: 8px; }
.search { position: relative; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { padding-left: 42px; min-height: 44px; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.select {
	min-height: 44px; padding-right: 36px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%235f6a63' d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
@media (min-width: 900px) {
	.toolbar__in { grid-template-columns: 1fr auto; align-items: center; gap: 16px; }
	.toolbar .chips-scroll { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }
	.toolbar__row { grid-template-columns: 260px 132px; }
}
.results-meta { margin-bottom: 20px; color: var(--muted); font-size: .9375rem; }
.grid-cards { display: grid; gap: 32px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid-cards .ecard[hidden] { display: none; }
.more-wrap { display: flex; justify-content: center; margin-top: 48px; }
.empty {
	display: grid; justify-items: center; gap: 12px; padding: 64px 24px; text-align: center;
	border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted);
}
.empty[hidden] { display: none; }
.empty .icon { width: 40px; height: 40px; color: var(--accent); }
.empty h3 { color: var(--ink); }

/* Мероприятие */
.event-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 16px; color: var(--muted); }
.event-head__meta > span:not(.tag) { display: inline-flex; gap: 6px; align-items: center; }
.event-head h1 { max-width: 28ch; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); }
.event-layout { display: grid; gap: 32px; padding-bottom: var(--section); }
.event-cover { overflow: hidden; border-radius: var(--r-lg); background: var(--soft); }
.event-cover img { width: 100%; max-height: 640px; object-fit: cover; }
.event-cover.is-portrait { display: grid; place-items: center; padding: 20px; background: #edf1ea; }
.event-cover.is-portrait img { max-height: 620px; width: auto; object-fit: contain; border-radius: 8px; }
.event-section + .event-section { margin-top: 48px; }
.event-section h2 { font-size: 1.5rem; margin-bottom: 16px; }
.event-goal { font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem); line-height: 1.5; color: var(--ink); max-width: 56ch; }
.facts-card { padding: clamp(20px, 2.6vw, 28px); display: grid; gap: 18px; }
.facts-card dl { display: grid; gap: 16px; }
.facts-card dl > div { display: grid; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.facts-card dl > div:last-child { padding-bottom: 0; border-bottom: 0; }
.facts-card dt { display: flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); }
.facts-card dd { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.facts-card dd p + p { margin-top: 8px; }
.facts-card dd a { color: var(--accent); }
.facts-card__actions { display: grid; gap: 8px; }
.files { display: grid; gap: 8px; }
.files a {
	display: flex; align-items: center; gap: 12px; padding: 12px 16px;
	border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); text-decoration: none;
	transition: border-color .2s;
}
.files a:hover { border-color: var(--ink); }
.files .icon { color: var(--accent); width: 22px; height: 22px; }
.files small { margin-left: auto; color: var(--muted); white-space: nowrap; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); gap: 8px; }
.gallery button { position: relative; display: block; padding: 0; border: 0; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-md); background: var(--soft); cursor: zoom-in; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }
.gallery button[hidden] { display: none; }
.gallery-more { margin-top: 16px; }
@media (min-width: 1000px) {
	.event-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
	.event-aside { position: sticky; top: calc(var(--header-h) + 24px); }
}
.related { padding-block: var(--section); border-top: 1px solid var(--line); }

/* Услуга */
.service-hero { display: grid; gap: 32px; padding-bottom: var(--section); }
.service-hero__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--accent); color: #fff; margin-bottom: 20px; }
.service-hero__icon .icon { width: 32px; height: 32px; }
.service-hero .checklist { margin-top: 24px; font-size: 1.0625rem; }
.service-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.service-hero__photo { overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; background: var(--soft); }
.service-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1000px) { .service-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; } }
.other-services { display: grid; gap: 8px; }
.other-services a {
	display: flex; align-items: center; gap: 14px; padding: 16px 18px;
	border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-decoration: none; font-weight: 600;
	transition: border-color .2s;
}
.other-services a:hover { border-color: var(--ink); }
.other-services .service__icon { margin: 0; width: 40px; height: 40px; border-radius: 12px; }
.other-services .service__icon .icon { width: 22px; height: 22px; }
.other-services a > .icon:last-child { margin-left: auto; color: var(--muted); }
@media (min-width: 700px) { .other-services { grid-template-columns: repeat(2, 1fr); } }

/* Контакты */
.contact-cards { display: grid; gap: 12px; margin-bottom: 12px; }
.contact-card { display: grid; gap: 8px; align-content: start; padding: clamp(20px, 2.6vw, 28px); }
.contact-card > .icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 8px; }
.contact-card h2 { font-size: .875rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.contact-card a.big { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); font-weight: 600; text-decoration: none; letter-spacing: -.01em; }
.contact-card a.big:hover { text-decoration: underline; }
@media (min-width: 800px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }

/* 404 */
.notfound { padding-block: clamp(64px, 10vw, 140px); }
.notfound h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.75rem); }
.notfound p { margin-top: 16px; color: var(--ink-2); max-width: 48ch; }
.notfound .hero__cta { margin-top: 28px; }

/* ---------- Анимации ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: translateY(14px); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .services .reveal:nth-child(2), .js .steps .reveal:nth-child(2), .js .facts__list .reveal:nth-child(2) { transition-delay: .06s; }
.js .services .reveal:nth-child(3), .js .steps .reveal:nth-child(3), .js .facts__list .reveal:nth-child(3) { transition-delay: .12s; }
.js .services .reveal:nth-child(4), .js .steps .reveal:nth-child(4), .js .facts__list .reveal:nth-child(4) { transition-delay: .18s; }
.js .services .reveal:nth-child(5), .js .steps .reveal:nth-child(5) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	.js .reveal { opacity: 1; transform: none; }
}

@media print {
	.site-header, .mbar, .site-footer, .lead, .mapblock, .modal { display: none !important; }
}
.event-cover__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.event-cover.is-portrait .event-cover__btn { display: grid; place-items: center; }
.h3 { font-size: 1.1875rem; }
.section-head h2 .count { color: var(--muted); font-weight: 500; }
.event-cover + .event-section--first { margin-top: 40px; }
.event-section--first:first-child { margin-top: 0; }
.event-section h2 .count { color: var(--muted); font-weight: 500; }
.upcoming-stack { display: grid; gap: 16px; }
.page-body { padding-bottom: var(--section); }
.facts-card .next__countdown { margin: 0; }
.partner-hero { display: grid; gap: 32px; align-items: start; }
.partner-hero__logo { display: grid; place-items: center; padding: 32px; aspect-ratio: 3 / 2; }
.partner-hero__logo img { max-height: 100%; width: 100%; object-fit: contain; mix-blend-mode: multiply; }
@media (min-width: 900px) { .partner-hero { grid-template-columns: 360px 1fr; gap: 56px; } }
.logos--big a { height: 140px; }
.logos--big img { height: calc(var(--h, 48px) * 1.25); }
.prose--spaced { margin-top: 24px; }
.about-hero { display: grid; gap: 32px; }
@media (min-width: 1000px) { .about-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: start; } }
.mapblock__map--wide { min-height: 420px; margin-bottom: var(--section); }

@media (max-width: 899px) {
	.next__date { align-items: center; }
	.next__countdown { flex-basis: auto; margin: 0 0 0 auto; }
	.next__media { order: -1; aspect-ratio: 16 / 9; }
}
.toolbar .fchip { padding: 0 14px; font-size: .875rem; min-height: 38px; }
.toolbar .search input, .toolbar .select { min-height: 40px; }
.lightbox__stage { overflow: hidden; }
.lightbox__stage img { max-height: calc(100dvh - 112px - env(safe-area-inset-bottom)); width: auto; }
