/* Bali Afisha — базовый слой: структура, сетка, адаптивность, доступность. Общий для всех 10 дизайнов.
   Дизайн (public/designs/<NN>/design.css) переопределяет ТОЛЬКО токены и внешний вид, не ломая раскладку.
   Токены задаются для [data-theme="light"] и [data-theme="dark"]. */
:root {
  --bg: #f7f6f2; --bg2: #ffffff; --fg: #15151a; --fg2: #5b5b66; --line: rgb(0 0 0 / .12);
  --accent: #e8462a; --accent-fg: #fff; --accent2: #2d5bff; --free: #0b7a4b; --gl: #7a3cff;
  --card-bg: var(--bg2); --card-fg: var(--fg); --chip-bg: var(--bg2); --chip-fg: var(--fg);
  --radius: 14px; --radius-sm: 10px; --radius-btn: 999px; --shadow: 0 1px 2px rgb(0 0 0 / .06);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --font-display: var(--font-body); --font-mono: ui-monospace, Menlo, monospace;
  --h1: clamp(2.1rem, 1.2rem + 4.2vw, 4.6rem); --h2: clamp(1.45rem, 1.1rem + 1.4vw, 2.2rem);
  --wrap: 1240px; --gutter: clamp(16px, 4vw, 40px); --hdr-h: 56px; --sticky-h: 0px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0e0f13; --bg2: #171920; --fg: #f3f3f6; --fg2: #a6a8b3; --line: rgb(255 255 255 / .14);
  --accent: #ff6a3d; --accent-fg: #0e0f13; --accent2: #7d97ff; --free: #3ddc97; --gl: #b48cff;
  color-scheme: dark;
}
@media (min-width: 1024px) { :root { --hdr-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; min-height: 100svh; background: var(--bg); color: var(--fg); font: 400 1rem/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: clip; padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom)); }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; overflow-wrap: anywhere; hyphens: auto; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent2); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.25em;
  border-radius: var(--radius-btn); border: 2px solid transparent; font-weight: 650; line-height: 1.15; text-decoration: none; text-align: center;
  cursor: pointer; transition: transform .18s var(--ease), background-color .2s, color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: var(--accent-fg); }
.btn--secondary { background: transparent; color: var(--fg); border-color: currentColor; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--lg { min-height: 56px; padding: .8em 1.6em; font-size: 1.06rem; }
.btn--block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; text-decoration: none; font-weight: 700; font-size: .8rem; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); transition: transform .3s var(--ease); padding-top: env(safe-area-inset-top); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in { display: flex; align-items: center; gap: 12px; height: var(--hdr-h); }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 800 1.12rem/1 var(--font-display); letter-spacing: -.01em; white-space: nowrap; }
.logo__mark { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); flex: none; }
.nav { display: none; gap: 4px; margin-inline-start: 12px; }
.nav__a { padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 550; white-space: nowrap; }
.nav__a:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.hdr__tools { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.hdr__cta { display: none; min-height: 44px; padding-block: .55em; }
.langs { position: relative; }
.langs summary { list-style: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs__list { position: absolute; inset-inline-end: 0; top: 48px; list-style: none; background: var(--bg2); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; padding: 6px; min-width: 190px; box-shadow: 0 12px 40px rgb(0 0 0 / .2); z-index: 60; }
.langs__list a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.langs__list a:hover, .langs__list a[aria-current] { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.theme-btn svg { display: none; }
[data-theme-pref="light"] .ico-sun, [data-theme-pref="dark"] .ico-moon, [data-theme-pref="system"] .ico-auto { display: block; }
.drawer { border-top: 1px solid var(--line); background: var(--bg); max-height: calc(100svh - var(--hdr-h)); overflow: auto; }
.drawer__nav { display: grid; gap: 2px; padding-block: 12px 20px; }
.drawer__nav a:not(.btn) { padding: 14px 4px; text-decoration: none; font-size: 1.15rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.drawer__nav .btn { margin-top: 14px; }
@media (min-width: 1024px) {
  .nav, .hdr__cta { display: inline-flex; }
  .burger { display: none; }
  .drawer { display: none !important; }
}
@media (min-width: 1024px) and (max-width: 1180px) { .nav__a { padding-inline: 8px; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(28px, 6vw, 80px) clamp(28px, 5vw, 64px); }
.hero__fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__in { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; }
.hero__slogan { font-weight: 650; color: var(--fg2); margin-bottom: 14px; }
.hero__h1 { font-size: var(--h1); letter-spacing: -.02em; max-width: 16ch; }
.hero__sub { margin-top: 16px; font-size: clamp(1.02rem, .95rem + .35vw, 1.22rem); color: var(--fg2); max-width: 46ch; }
.hero__count { margin-top: 18px; display: flex; align-items: baseline; gap: .4em; flex-wrap: wrap; font-weight: 600; }
.hero__n { font: 800 clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.hero__ctas { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero__secondary { font-weight: 600; text-underline-offset: 4px; padding-block: 12px; }
.hero__stack { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 560px; width: 100%; justify-self: center; }
.hero__stack .card__acts { display: none; }
.hero__stack .card__where, .hero__stack .card__price { display: none; }
.hero__stack .card__title { font-size: .92rem; -webkit-line-clamp: 3; }
@media (min-width: 900px) { .hero__in { grid-template-columns: 1.15fr .85fr; } }

/* ---------- чипы ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 6px 14px; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chips--wrap { flex-wrap: wrap; overflow: visible; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--chip-bg); color: var(--chip-fg); text-decoration: none; font-weight: 600; white-space: nowrap; scroll-snap-align: start; transition: transform .15s var(--ease); }
.chip:active { transform: scale(.96); }
.chip[aria-current] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- секции ---------- */
.sec { padding-block: clamp(28px, 5vw, 64px); }
.sec__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec__title { font-size: var(--h2); letter-spacing: -.015em; }
.sec__more { flex: none; font-weight: 650; text-underline-offset: 4px; padding-block: 10px; }

/* ---------- карточка ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--card-bg); color: var(--card-fg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.card__link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: hsl(var(--hue) 45% 30%); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__cover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 14px;
  background: radial-gradient(120% 90% at 20% 0%, hsl(var(--hue) 80% 62%), hsl(calc(var(--hue) + 40) 70% 32%) 60%, hsl(calc(var(--hue) + 70) 60% 16%)); color: #fff; }
.card__cover-emoji { font-size: 2rem; line-height: 1; margin-bottom: auto; }
.card__cover-title { font: 800 clamp(1rem, .9rem + .6vw, 1.4rem)/1.1 var(--font-display); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card__cover-date { font-weight: 650; opacity: .9; font-size: .9rem; }
.card__badges { position: absolute; inset-inline: 10px 64px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.badge { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 4px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; line-height: 1.2; background: rgb(0 0 0 / .62); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.badge--free { background: #0b7a4b; }
.badge--gl { background: #6a2fe0; }
.badge--today { background: #c2410c; }
.card__body { display: grid; gap: 4px; padding: 12px 14px 16px; }
.card__when { font-size: .86rem; font-weight: 650; color: var(--fg2); font-variant-numeric: tabular-nums; }
.card__title { font-size: 1.04rem; line-height: 1.25; font-weight: 750; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__where { font-size: .88rem; color: var(--fg2); display: flex; gap: .35em; min-width: 0; }
.card__where > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__venue::before { content: "· "; }
.card__area { flex: none; }
.card__price { font-weight: 700; font-size: .92rem; }
.card__price.is-free { color: var(--free); }
.card__acts { position: absolute; top: 6px; inset-inline-end: 6px; display: flex; gap: 2px; }
.card__acts .icon-btn { background: rgb(0 0 0 / .5); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.card__acts .icon-btn svg { width: 19px; height: 19px; }

/* лента и сетки */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; overscroll-behavior-x: contain; scroll-padding-inline: max(var(--gutter), env(safe-area-inset-left)); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 2vw, 20px); }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .list .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 380px) { .grid .card__body { padding: 10px; } .grid .card__title { font-size: .95rem; } }

/* плитки */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile a { display: grid; gap: 4px; align-content: end; min-height: 120px; height: 100%; padding: 16px; border-radius: var(--radius); background: var(--bg2); border: 1px solid var(--line); text-decoration: none; position: relative; overflow: hidden; isolation: isolate; }
.tile__ico { font-size: 1.6rem; margin-bottom: auto; }
.tile__name { font: 750 1.05rem/1.2 var(--font-display); }
.tile__n { font-size: .88rem; color: var(--fg2); }
.tile--area a { min-height: 150px; color: #fff; border: 0; }
.tile--area img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tile--area a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(0 0 0 / .78), rgb(0 0 0 / .1) 70%); }
.tile--area .tile__n { color: rgb(255 255 255 / .88); }

/* блок «В боте» */
.bot { display: grid; gap: 28px; align-items: center; }
.bot__steps { list-style: none; display: grid; gap: 14px; margin: 20px 0 26px; counter-reset: s; }
.bot__step { display: grid; gap: 2px; padding-inline-start: 46px; position: relative; counter-increment: s; }
.bot__step::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--accent); color: var(--accent-fg); }
.bot__t { font-size: 1.08rem; }
.bot__d { color: var(--fg2); }
.phone { width: min(280px, 76vw); aspect-ratio: 9 / 18.5; margin-inline: auto; border-radius: 40px; padding: 12px; background: #111; box-shadow: 0 30px 80px rgb(0 0 0 / .35), inset 0 0 0 2px #333; }
.phone__screen { height: 100%; border-radius: 30px; overflow: hidden; background: var(--bg); display: grid; align-content: center; padding: 14px; }
.phone .card__acts { display: none; }
@media (min-width: 900px) { .bot { grid-template-columns: 1.1fr .9fr; } }

/* Instagram */
.ig__sub { color: var(--fg2); margin: -8px auto 16px; }
.ig { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; list-style: none; }
@media (min-width: 768px) { .ig { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.ig__item a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; }
.ig__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.ig__item a:hover img { transform: scale(1.05); }
.ig__cta { margin-top: 18px; }

/* email */
.email { display: grid; gap: 18px; padding-block: clamp(24px, 4vw, 40px); border-radius: calc(var(--radius) * 1.4); }
.email__sub { margin-top: 10px; color: var(--fg2); max-width: 52ch; }
.email__form { display: grid; grid-template-columns: 1fr; gap: 10px; align-content: start; }
.email__consent, .email__msg { font-size: .86rem; color: var(--fg2); }
.email__msg:empty { display: none; }
.email__msg.is-ok { color: var(--free); font-weight: 650; }
.email__msg.is-err { color: #d63a2f; font-weight: 650; }
@media (min-width: 640px) { .email__form { grid-template-columns: 1fr auto; } .email__consent, .email__msg { grid-column: 1 / -1; } }
@media (min-width: 900px) { .email { grid-template-columns: 1fr 1fr; align-items: center; } }
.input { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg2); color: var(--fg); font-size: 16px; }
.input:focus { outline: 3px solid var(--accent2); outline-offset: 1px; border-color: transparent; }
.input--lg { min-height: 58px; font-size: 1.1rem; }
textarea.input { min-height: 110px; resize: vertical; }

/* организаторы */
.org { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; padding-block: clamp(24px, 4vw, 44px); }
.org__sub { margin-top: 8px; color: var(--fg2); max-width: 56ch; }

/* FAQ */
.faq { max-width: 860px; }
.faq .sec__title { margin-bottom: 14px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 700; font-size: 1.06rem; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; position: absolute; inset-inline-end: 6px; top: 50%; translate: 0 -50%; font-size: 1.5rem; font-weight: 400; transition: rotate .2s; }
.faq__item[open] .faq__q::after { rotate: 45deg; }
.faq__a { padding: 0 0 18px; color: var(--fg2); max-width: 70ch; }

/* футер */
.ftr { margin-top: clamp(24px, 4vw, 56px); border-top: 1px solid var(--line); padding-block: 40px 24px; font-size: .95rem; }
.ftr__in { display: grid; gap: 28px; }
.ftr__brand { display: grid; gap: 14px; justify-items: start; max-width: 380px; }
.ftr__note { color: var(--fg2); }
.ftr__col { display: grid; gap: 2px; align-content: start; }
.ftr__col a { padding-block: 8px; text-decoration: none; color: var(--fg2); }
.ftr__col a:hover { color: var(--fg); }
.ftr__h { font-size: .95rem; margin-bottom: 6px; }
.ftr__bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; color: var(--fg2); font-size: .86rem; }
.ftr__bottom a { color: inherit; padding-block: 6px; }
@media (min-width: 768px) { .ftr__in { grid-template-columns: 2fr 1fr 1fr; } }

/* липкая нижняя панель (< 1024 px) */
.sticky-cta { position: fixed; z-index: 40; inset-inline: 0; bottom: 0; display: flex; gap: 12px; align-items: center; padding: 10px max(14px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); transition: transform .3s var(--ease); }
.sticky-cta.is-off { transform: translateY(110%); }
.sticky-cta .btn { flex: 1; }
.sticky-cta__price { font-weight: 750; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body { --sticky-h: 72px; }
@media (min-width: 1024px) { .sticky-cta { display: none; } body { --sticky-h: 0px; } }

/* списки */
.lhead { padding-block: clamp(20px, 4vw, 48px) 10px; display: grid; gap: 12px; justify-items: start; }
.lhead__h1 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.4rem); letter-spacing: -.02em; max-width: 22ch; }
.lhead__intro { color: var(--fg2); max-width: 62ch; font-size: 1.05rem; }
.lhead__meta { color: var(--fg2); font-size: .92rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--fg2); font-size: .88rem; }
.crumbs a { color: inherit; padding-block: 6px; }
.crumbs > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; padding-block: 6px; }
.list { display: grid; gap: 28px; padding-block: 10px 20px; }
.list__date { font-size: 1.15rem; margin-bottom: 12px; text-transform: capitalize; position: sticky; top: calc(var(--hdr-h) + env(safe-area-inset-top)); z-index: 5; background: var(--bg); padding-block: 8px; }
.pager { display: grid; justify-items: center; gap: 12px; padding-block: 10px 24px; }
.pager__nums { display: flex; gap: 16px; align-items: center; color: var(--fg2); }
.pager__nums a { padding: 10px; }
.empty { padding-block: 30px; color: var(--fg2); }
.endcta { display: grid; justify-items: center; gap: 14px; text-align: center; }
.endcta p { font: 700 1.3rem/1.2 var(--font-display); }
.relinks { display: grid; gap: 10px; padding-block: 18px; }
.relinks__h { font-size: 1.05rem; }

/* событие */
.ev { padding-bottom: 10px; }
.ev .crumbs { padding-block: 12px 4px; }
.ev__head { display: grid; gap: 20px; }
.ev__cover { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: hsl(var(--hue) 45% 30%); }
.ev__cover img { width: 100%; height: 100%; object-fit: cover; }
.ev__kind { color: var(--fg2); font-weight: 650; margin-bottom: 6px; }
.ev__title { font-size: clamp(1.8rem, 1.1rem + 2.6vw, 3.2rem); letter-spacing: -.02em; }
.ev__facts { list-style: none; display: grid; gap: 8px; margin-top: 16px; font-size: 1.04rem; }
.ev__fact { display: flex; gap: .5em; align-items: baseline; flex-wrap: wrap; }
.ev__fact::first-letter { text-transform: uppercase; }
.ev__fact--price { font-weight: 750; }
.ev__fact--price.is-free { color: var(--free); }
.ev__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ev__ctas .btn--primary { flex: 1 1 100%; }
.ev__note { margin-top: 12px; font-size: .88rem; color: var(--fg2); }
.ev__body { display: grid; gap: 28px; padding-block: 28px; }
.ev__desc { display: grid; gap: 12px; max-width: 70ch; }
.ev__desc p { overflow-wrap: anywhere; }
.ev__side { display: grid; gap: 14px; align-content: start; }
.ev__table { width: 100%; border-collapse: collapse; }
.ev__table th, .ev__table td { text-align: start; vertical-align: top; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ev__table th { width: 38%; color: var(--fg2); font-weight: 600; padding-inline-end: 12px; }
.ev__table td { overflow-wrap: anywhere; }
.ev__map { min-height: 160px; border-radius: var(--radius); border: 1px dashed var(--line); display: grid; place-items: center; overflow: hidden;
  background: repeating-linear-gradient(45deg, transparent 0 12px, color-mix(in srgb, var(--fg) 5%, transparent) 12px 13px); }
.ev__map iframe { width: 100%; height: 260px; border: 0; }
@media (min-width: 900px) {
  .ev__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .ev__cover { aspect-ratio: 4 / 5; position: sticky; top: calc(var(--hdr-h) + 16px); }
  .ev__ctas .btn--primary { flex: 0 1 auto; }
  .ev__body { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
@media (min-width: 1200px) { .ev__cover { aspect-ratio: 16 / 12; } }

/* гайды и текст */
.prose { max-width: 760px; font-size: 1.06rem; line-height: 1.7; padding-block: 10px 20px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.3em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { text-underline-offset: 3px; color: var(--accent2); }
.toc { padding-block: 6px 0; }
.toc__h { font-size: 1rem; margin-bottom: 6px; }
.toc ol { padding-inline-start: 1.3em; color: var(--fg2); }
.toc a { display: inline-block; padding-block: 5px; }
.guide__cta { padding-block: 10px 0; }
.guides { display: grid; gap: 14px; list-style: none; padding-block: 10px 10px; }
@media (min-width: 768px) { .guides { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.guide-card a { display: grid; gap: 8px; height: 100%; padding: 20px; border-radius: var(--radius); background: var(--bg2); border: 1px solid var(--line); text-decoration: none; }
.guide-card__t { font-size: 1.2rem; }
.guide-card__d, .guide-card__date { color: var(--fg2); }

/* партнёры */
.who { display: grid; gap: 12px; list-style: none; padding-block: 10px 24px; }
@media (min-width: 768px) { .who { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.who__item { padding: 20px; border-radius: var(--radius); background: var(--bg2); border: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.who__t { font-size: 1.15rem; }
.pform { display: grid; gap: 16px; max-width: 720px; padding-block: 10px 30px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; font-weight: 600; }
.field legend { margin-bottom: 6px; }
.pform__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); font-weight: 550; cursor: pointer; }
.opt input { width: 20px; height: 20px; accent-color: var(--accent); }
.pform__msg:empty { display: none; }
.pform__msg { font-weight: 650; }

/* поиск */
.search { width: 100%; max-width: 720px; }
.search__hint { color: var(--fg2); }
.search__res { list-style: none; display: grid; gap: 2px; padding-block: 10px 20px; max-width: 760px; }
.search__res a { display: grid; gap: 2px; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.search__res b { font-size: 1.05rem; }
.search__res span { color: var(--fg2); font-size: .9rem; }

.ighub { justify-items: stretch; text-align: center; max-width: 520px; }
.ighub .chips { justify-content: center; }

.design-badge { position: fixed; z-index: 70; inset-inline-start: 12px; bottom: calc(var(--sticky-h) + 12px + env(safe-area-inset-bottom)); background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 10px; font-size: .8rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print { .hdr, .sticky-cta, .ftr, .card__acts { display: none; } }
