/* Клуб робототехники «Мой робот».
   Палитра из логотипа: оранжевый робот и голубые радиоволны. Заголовки — Unbounded, текст — Onest. */

@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("../fonts/unbounded-cyrillic.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: 500 800; font-display: swap;
  src: url("../fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/onest.woff2") format("woff2"); }

:root {
  --ground: #FFFFFF;
  --surface: #FFFFFF;
  --paper: #FFF5EA;
  --sky: #EAF6FD;
  --mist: #F4F7FA;
  --ink: #13233A;
  --ink-soft: #4A5B72;
  --ink-faint: #7D8CA0;
  --line: #E4EAF1;
  --line-strong: #CCD7E3;
  --accent: #F28A1C;
  --accent-hover: #E07908;
  --accent-ink: #9A4D02;
  --accent-soft: #FFE8D1;
  --wave: #1C9FDB;
  --wave-ink: #0A6E9E;
  --wave-soft: #DDF1FB;
  --gold: #E8A919; --gold-ink: #6B4A00;
  --silver: #A9B5C3; --silver-ink: #3B4757;
  --bronze: #C77B43; --bronze-ink: #5A2F0F;
  --ok: #1F8A4C; --ok-soft: #DDF5E6;
  --warn: #8A5A00; --warn-soft: #FFF1C9;
  --danger: #B42318; --danger-soft: #FDE7E5;
  --shadow-s: 0 1px 2px rgba(19, 35, 58, .06), 0 10px 24px -16px rgba(19, 35, 58, .35);
  --shadow-l: 0 2px 6px rgba(19, 35, 58, .06), 0 34px 70px -42px rgba(19, 35, 58, .55);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --f-d: "Unbounded", "Trebuchet MS", sans-serif;
  --f-b: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--ground); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--f-b); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--f-d); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.6vw, 52px); }
h2 { font-size: clamp(24px, 3.2vw, 38px); }
h3 { font-size: 19px; }
p { margin: 0; }
a { color: var(--wave-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--wave); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -10000px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.count { display: inline-block; min-width: 1.7em; padding: 1px 8px; border-radius: 999px; background: var(--mist); color: var(--ink-soft); font: 600 13px/1.6 var(--f-b); text-align: center; vertical-align: middle; letter-spacing: 0; }
.icon { width: 20px; height: 20px; flex: none; }

/* ——— кнопки ——— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px;
  font: 600 15px/1.2 var(--f-d); border-radius: 14px; border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s, border-color .15s, color .15s; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #1B1204; box-shadow: 0 12px 24px -14px var(--accent); }
.btn-primary:hover { background: var(--accent-hover); color: #1B1204; }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--wave); color: var(--wave-ink); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 13px; border-radius: 11px; }
.btn-block { width: 100%; }
.link-button { background: none; border: 0; padding: 0; color: var(--wave-ink); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--wave-ink); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ——— шапка ——— */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-bar { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 2px var(--accent-soft); background: #fff; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text b { font: 800 18px/1.1 var(--f-d); }
.brand-text small { font-size: 12.5px; color: var(--ink-soft); letter-spacing: .02em; }
.brand-inverse { color: #fff; }
.brand-inverse .brand-text small { color: rgba(255, 255, 255, .7); }
.nav-desktop { display: flex; gap: 4px; margin-left: auto; }
.nav-desktop a { padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px; white-space: nowrap; }
.nav-desktop a:hover { background: var(--mist); color: var(--ink); }
.nav-desktop a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle .menu-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close { display: inline-flex; }
.menu-toggle span { display: inline-flex; }
.nav-mobile { border-top: 1px solid var(--line); background: var(--ground); padding: 8px 0 18px; }
.nav-mobile-link { display: block; padding: 13px 4px; font: 600 17px/1.3 var(--f-d); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.nav-mobile-link[aria-current="page"] { color: var(--accent-ink); }

/* ——— общие секции ——— */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-first { padding-top: clamp(28px, 4vw, 44px); }
.section-tight { padding: 0 0 8px; }
.section-tint { background: linear-gradient(180deg, var(--mist), #fff 85%); }
.section-head { max-width: 70ch; margin-bottom: 32px; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 18px 32px; flex-wrap: wrap; }
.section-head-row > div { max-width: 70ch; }
.section-lead { margin-top: 12px; color: var(--ink-soft); font-size: 18px; }
.subhead { font-size: 18px; margin: 8px 0 18px; color: var(--ink-soft); }
.subhead + .cards { margin-bottom: 36px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font: 700 12px/1.3 var(--f-d); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; flex: none; }
.eyebrow-light { color: #FFC48A; }
.lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--ink-soft); max-width: 68ch; margin-top: 16px; }
.page-head { padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 28px); background: radial-gradient(1200px 300px at 85% -40%, var(--sky), transparent 70%), radial-gradient(900px 260px at -10% 0%, var(--paper), transparent 70%); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 15px; margin-bottom: 16px; color: var(--ink-faint); }
.crumbs a { color: var(--ink-soft); }

/* ——— главный экран с видео ——— */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; background: #0E1624; overflow: hidden; isolation: isolate; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 16, 30, .88) 0%, rgba(8, 16, 30, .62) 48%, rgba(8, 16, 30, .25) 100%), linear-gradient(0deg, rgba(8, 16, 30, .7) 0%, transparent 45%); }
.hero-in { width: 100%; padding-block: clamp(64px, 10vw, 120px) clamp(36px, 6vw, 64px); }
.hero h1 { font-size: clamp(34px, 6vw, 72px); font-weight: 800; max-width: 15ch; line-height: 1.05; }
.hero-lead { margin-top: 20px; max-width: 54ch; font-size: clamp(17px, 1.8vw, 21px); color: rgba(255, 255, 255, .88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, max-content); gap: 10px 40px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); }
.hero-stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.hero-stats dt { font-size: 14px; color: rgba(255, 255, 255, .72); }
.hero-stats dd { margin: 0; font: 800 clamp(28px, 3.6vw, 42px)/1 var(--f-d); color: #FFB45C; }
.hero-pause { position: absolute; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(8, 16, 30, .45); color: #fff; cursor: pointer; display: grid; place-items: center; }
.hero-pause .when-paused { display: none; }
.hero-pause[aria-pressed="true"] .when-playing { display: none; }
.hero-pause[aria-pressed="true"] .when-paused { display: inline-flex; }
.hero-pause span { display: inline-flex; }
.hero-credit { position: absolute; right: 76px; bottom: 30px; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.page-home .site-header { background: color-mix(in srgb, #fff 94%, transparent); }

/* ——— объявление о наборе ——— */
.enroll { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 20px; align-items: center; margin-top: -32px; position: relative; z-index: 2;
  background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow-l); }
.section-first .enroll, .contact-aside .enroll { margin-top: 0; }
.enroll-icon { width: 34px; height: 34px; color: var(--accent); }
.enroll-title { font: 700 18px/1.3 var(--f-d); margin-bottom: 4px; }
.enroll p:not(.enroll-title) { color: var(--ink-soft); }
.enroll-open { border-left-color: var(--ok); }
.enroll-open .enroll-icon { color: var(--ok); }

/* ——— бейджи и медали ——— */
.badge { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; line-height: 1.5; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-muted { background: var(--mist); color: var(--ink-soft); border: 1px solid var(--line); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-level { background: var(--wave-soft); color: var(--wave-ink); }
.badge-level.level-int { background: #FFE2C2; color: var(--accent-ink); }
.badge-level.level-rus { background: var(--wave-soft); color: var(--wave-ink); }
.badge-level.level-msk { background: #E8ECF8; color: #3A4A8A; }
.badge-level.level-loc { background: var(--mist); color: var(--ink-soft); }
.medal { --c: var(--accent); --t: #fff; display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
  font: 800 18px/1 var(--f-d); color: var(--t); background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .55), transparent 42%), var(--c);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .45), 0 4px 10px -4px rgba(19, 35, 58, .45); }
.medal-gold { --c: var(--gold); --t: var(--gold-ink); }
.medal-silver { --c: var(--silver); --t: var(--silver-ink); }
.medal-bronze { --c: var(--bronze); --t: #fff; }
.medal-prize { --c: var(--wave); --t: #fff; }
.medal-special { --c: #8E9BB0; --t: #fff; }
.medal .medal-star { width: 55%; height: 55%; }
.medal-xs { width: 24px; height: 24px; font-size: 11px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); }
.medal-lg { width: 56px; height: 56px; font-size: 22px; }
.medal-xl { width: 76px; height: 76px; font-size: 30px; }
.awards-strip { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.strip-item { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-soft); }

/* ——— карточки мероприятий ——— */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.cards-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.event-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s); transition: transform .2s, box-shadow .2s; }
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); }
.event-card.is-cancelled { opacity: .7; }
.event-cover { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--mist); overflow: hidden; }
.event-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.event-card:hover .event-img { transform: scale(1.03); }
.photo-empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--paper), var(--sky)); }
.photo-empty img { width: 96px; height: 96px; border-radius: 50%; opacity: .9; }
.event-date { position: absolute; left: 14px; top: 14px; display: grid; justify-items: center; min-width: 62px; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: var(--shadow-s); line-height: 1.1; }
.event-date b { font: 800 22px/1 var(--f-d); }
.event-date b small { font-size: 14px; }
.event-date span { font-size: 12.5px; color: var(--ink-soft); }
.event-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(8, 16, 30, .62); color: #fff; font-size: 13px; }
.event-count .icon { width: 15px; height: 15px; }
.event-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.event-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.event-meta:empty { display: none; }
.event-body h3 { font-size: 17.5px; line-height: 1.3; }
.event-body h3 a { color: var(--ink); text-decoration: none; }
.event-body h3 a:hover { color: var(--accent-ink); }
.event-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14.5px; color: var(--ink-soft); }
.event-facts li { display: flex; gap: 8px; align-items: flex-start; }
.event-facts .icon { width: 17px; height: 17px; margin-top: 3px; color: var(--ink-faint); }
.event-facts-lg { font-size: 17px; margin-top: 18px; gap: 8px; }
.event-facts-lg .icon { width: 20px; height: 20px; color: var(--accent); }
.event-summary, .event-note { font-size: 15px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.event-note { color: var(--warn); }
.event-body .link-arrow { margin-top: auto; padding-top: 4px; }

/* ——— победы ——— */
.victory { display: grid; grid-template-columns: 200px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s); }
.victory-photo { display: block; background: var(--mist); text-decoration: none; }
.victory-img { width: 100%; height: 100%; object-fit: cover; min-height: 170px; }
.victory-art { display: grid; place-items: center; align-content: center; gap: 6px; width: 100%; height: 100%; min-height: 170px; color: var(--gold-ink);
  background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .7), transparent 55%), linear-gradient(140deg, #FFE7A8, #F5B83A 55%, #E08A12); }
.victory-art.tone-silver { color: var(--silver-ink); background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .7), transparent 55%), linear-gradient(140deg, #F1F4F8, #C3CCD7 60%, #9AA7B6); }
.victory-art.tone-bronze { color: #fff; background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .45), transparent 55%), linear-gradient(140deg, #F0C29C, #C77B43 60%, #8F4F23); }
.victory-art-icon { width: 38%; height: auto; max-width: 140px; stroke-width: 1.4; }
.victory-art b { font: 800 clamp(18px, 2.2vw, 28px)/1.1 var(--f-d); }
.victory-art small { font: 700 15px/1 var(--f-d); opacity: .8; letter-spacing: .1em; }
.victory-hero .victory-art { min-height: 340px; }
.victory-body { padding: 20px 22px; display: grid; gap: 8px; align-content: start; }
.victory-medal { display: flex; align-items: center; gap: 14px; }
.victory-place { font: 800 16px/1.2 var(--f-d); }
.victory-level { font-size: 13.5px; color: var(--ink-soft); }
.victory h3 { font-size: 17.5px; line-height: 1.3; }
.victory h3 a { color: var(--ink); text-decoration: none; }
.victory h3 a:hover { color: var(--accent-ink); }
.victory-event { font-size: 14.5px; color: var(--ink-soft); }
.victory-text { color: var(--ink-soft); }
.victories { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 20px; margin-top: 20px; }
.victories-3 { margin-top: 0; }
.victory-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border: 0; background: linear-gradient(135deg, #13233A, #1B3A5C); color: #fff; box-shadow: var(--shadow-l); }
.victory-hero .victory-img { min-height: 340px; }
.victory-hero .victory-body { padding: clamp(24px, 4vw, 44px); gap: 14px; align-content: center; }
.victory-hero .victory-place { font-size: 22px; color: #FFD27A; }
.victory-hero .victory-level, .victory-hero .victory-event, .victory-hero .victory-text { color: rgba(255, 255, 255, .78); }
.victory-hero h3 { font-size: clamp(22px, 2.6vw, 32px); }
.victory-hero h3 a { color: #fff; }
.victory-hero h3 a:hover { color: #FFD27A; }

/* ——— список наград ——— */
.award-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.award-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px 18px; align-items: center; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.award-row.tone-gold { border-left: 4px solid var(--gold); }
.award-row.tone-silver { border-left: 4px solid var(--silver); }
.award-row.tone-bronze { border-left: 4px solid var(--bronze); }
.award-row.tone-prize { border-left: 4px solid var(--wave); }
.award-title { line-height: 1.4; }
.award-event { font-size: 14.5px; color: var(--ink-soft); margin-top: 2px; }
.award-meta { display: grid; justify-items: end; gap: 4px; font-size: 13.5px; color: var(--ink-soft); text-align: right; }
.level-block { margin-top: 40px; }
.level-head { display: grid; gap: 6px; margin-bottom: 16px; }
.level-head p { color: var(--ink-soft); }
.stat-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.stat-tile { display: grid; gap: 2px; min-width: 150px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-s); }
.stat-tile b { font: 800 30px/1.1 var(--f-d); color: var(--accent-ink); }
.stat-tile span { font-size: 14px; color: var(--ink-soft); }

/* ——— турниры ——— */
.tours { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.tour-card { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-s); transition: border-color .15s, transform .15s; }
.tour-card:hover { border-color: var(--wave); transform: translateY(-2px); color: var(--ink); }
.tour-logo { width: 80px; height: 80px; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.tour-logo img { width: 100%; height: 100%; object-fit: contain; }
.tour-initials { font: 800 26px/1 var(--f-d); color: var(--wave-ink); background: var(--wave-soft); width: 100%; height: 100%; display: grid; place-items: center; }
.tour-text { display: grid; gap: 3px; min-width: 0; }
.tour-text b { font: 700 16px/1.3 var(--f-d); }
.tour-text small { font-size: 14px; color: var(--ink-soft); }
.tour-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 13.5px; color: var(--ink-soft); }
.tour-stats span { display: inline-flex; align-items: center; gap: 5px; }
.tour-stats .icon { width: 16px; height: 16px; color: var(--accent); }
.tour-go { color: var(--ink-faint); }
.tour-block { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 18px 28px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.tour-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tour-events li { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.tour-events a { display: flex; gap: 12px; text-decoration: none; color: var(--ink); }
.tour-events a:hover span { color: var(--accent-ink); text-decoration: underline; }
.tour-events time { font: 700 14px/1.6 var(--f-d); color: var(--ink-faint); }
.tour-more { color: var(--ink-soft); font-size: 15px; }

/* ——— руководитель ——— */
.leader-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.leader-teaser-photo, .leader-photo { margin: 0; }
.leader-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-l); }
.leader-teaser .lead { margin-bottom: 24px; }
.leader-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.leader-role { margin-top: 10px; font: 600 16px/1.4 var(--f-d); color: var(--accent-ink); }
.leader-photo figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.leader-photo a { display: block; }
.leader-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.check-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--ok); margin-top: 3px; width: 18px; height: 18px; }

/* ——— направления и история ——— */
.dirs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.dir { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 8px; align-content: start; }
.dir-icon { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.dir h3 { font-size: 17px; margin-top: 6px; }
.dir p { color: var(--ink-soft); font-size: 15.5px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 0; border-left: 3px solid var(--accent-soft); }
.timeline li { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0 14px 26px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 22px; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #fff; }
.timeline b { font: 800 18px/1.4 var(--f-d); color: var(--accent-ink); }
.after-timeline { margin-top: 20px; }

/* ——— галерея и просмотр ——— */
.gallery { columns: 4 220px; column-gap: 12px; }
.gallery a { display: block; margin-bottom: 12px; border-radius: 12px; overflow: hidden; background: var(--mist); break-inside: avoid; }
.gallery img { width: 100%; height: auto; transition: transform .3s, opacity .2s; }
.gallery a:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6, 12, 22, .94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 10px; padding: 56px 0 24px; max-height: 100vh; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: rgba(255, 255, 255, .75); font-size: 14px; }
.lightbox button { background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; justify-self: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lightbox-close { position: absolute; top: 12px; right: 12px; }
.lightbox-prev { grid-column: 1; }
.lightbox-next { grid-column: 3; }
body.no-scroll { overflow: hidden; }

/* ——— страница мероприятия ——— */
.page-head-event h1 { font-size: clamp(26px, 3.8vw, 44px); max-width: 30ch; margin-top: 10px; }
.event-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.event-main { display: grid; gap: 28px; min-width: 0; }
.event-hero { margin: 0; }
.event-hero a { display: block; }
.event-hero-img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-l); }
.block { display: grid; gap: 16px; scroll-margin-top: 90px; }
.block h2 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.prose { display: grid; gap: 14px; max-width: 72ch; }
.prose p { overflow-wrap: anywhere; }
.prose-lg { font-size: 18px; gap: 18px; }
.prose-report p { line-height: 1.7; }
.legal h2 { font-size: 20px; margin-top: 18px; }
.event-aside { display: grid; gap: 16px; position: sticky; top: 90px; }
.aside-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 12px; box-shadow: var(--shadow-s); }
.aside-quiet { background: var(--mist); box-shadow: none; }
.aside-title { font: 700 16px/1.3 var(--f-d); }
.aside-card p:not(.aside-title) { color: var(--ink-soft); font-size: 15px; }
.aside-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aside-links a { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; overflow-wrap: anywhere; }
.aside-links .icon { width: 18px; height: 18px; margin-top: 2px; }
.media-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.media-links a { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.media-links a:hover { border-color: var(--wave); }
.media-links .icon { grid-row: span 2; width: 30px; height: 30px; color: var(--accent); }
.media-links span { font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.media-links small { color: var(--ink-faint); font-size: 13px; }

/* ——— список мероприятий, фильтры, календарь ——— */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tabs, .view-switch { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--mist); border-radius: 14px; }
.tabs a, .view-switch a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.tabs a[aria-current="page"], .view-switch a[aria-current="page"] { background: var(--surface); box-shadow: var(--shadow-s); color: var(--accent-ink); }
.tabs .icon, .view-switch .icon { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; background: var(--surface); }
.chip:hover { border-color: var(--wave); color: var(--wave-ink); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .icon { width: 16px; height: 16px; }
.chip-toggle { margin-left: auto; }
.year-block { margin-bottom: 44px; }
.year-title { font-size: 28px; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.calendar { display: grid; gap: 16px; }
.calendar-head { display: flex; align-items: center; justify-content: center; gap: 18px; }
.calendar-head h2 { font-size: 24px; min-width: 9em; text-align: center; }
.calendar-jump { display: flex; justify-content: center; gap: 8px; align-items: center; }
.calendar-jump input { font: inherit; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 10px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-strong); color: var(--ink); background: var(--surface); }
.icon-btn:hover { border-color: var(--wave); color: var(--wave-ink); }
.calendar-grid { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed; }
.calendar-grid th { font-size: 13px; color: var(--ink-faint); font-weight: 600; padding-bottom: 4px; }
.calendar-grid td { vertical-align: top; height: 110px; padding: 6px; border-radius: 12px; background: var(--mist); overflow: hidden; }
.calendar-grid td.out { background: transparent; opacity: .45; }
.calendar-grid td.today { box-shadow: inset 0 0 0 2px var(--wave); }
.calendar-grid td.has { background: var(--paper); }
.day-num { display: block; font: 700 14px/1 var(--f-d); color: var(--ink-soft); margin-bottom: 4px; }
.cal-event { display: block; margin-top: 4px; padding: 4px 6px; border-radius: 7px; background: var(--surface); border-left: 3px solid var(--wave); font-size: 12.5px; line-height: 1.3; color: var(--ink); text-decoration: none; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.cal-event.has-awards { border-left-color: var(--gold); }
.cal-event:hover { background: var(--accent-soft); }
.cal-event.is-cancelled { text-decoration: line-through; }
.agenda { display: none; gap: 8px; }
.agenda-item { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.agenda-date { display: grid; justify-items: center; font-size: 12.5px; color: var(--ink-soft); }
.agenda-date b { font: 800 22px/1.1 var(--f-d); color: var(--ink); }
.agenda-text { display: grid; gap: 4px; justify-items: start; }
.agenda-text small { color: var(--ink-soft); }

/* ——— формы ——— */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.form { display: grid; gap: 20px; max-width: 640px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 600; font-size: 16px; padding: 0; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="password"], .field input[type="url"],
.field input[type="date"], .field input[type="time"], .field input[type="number"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 2px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wave); box-shadow: 0 0 0 3px rgba(28, 159, 219, .25); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 14.5px; font-weight: 500; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; }
.radio span { display: inline-block; padding: 11px 16px; border: 2px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; }
.radio input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.radio input:focus-visible + span { outline: 3px solid var(--wave); outline-offset: 2px; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; cursor: pointer; }
.checkbox input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-result { border-radius: var(--radius); padding: 20px 22px; }
.form-success { display: grid; gap: 12px; justify-items: start; background: var(--ok-soft); padding: 32px; }
.result-icon { width: 40px; height: 40px; color: var(--ok); }
.form-error { background: var(--danger-soft); color: var(--danger); }
.contact-aside { display: grid; gap: 16px; }

/* ——— уведомления, пустые состояния, CTA ——— */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 16px; }
.notice .icon { margin-top: 2px; }
.notice-info { background: var(--wave-soft); color: var(--wave-ink); margin-bottom: 22px; }
.notice-warn { background: var(--warn-soft); color: var(--warn); }
.notice-danger { background: var(--danger-soft); color: var(--danger); }
.notice-ok { background: var(--ok-soft); color: var(--ok); }
.empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 56px 24px; background: var(--mist); border-radius: var(--radius); }
.empty p { color: var(--ink-soft); max-width: 50ch; }
.empty-icon { width: 40px; height: 40px; color: var(--accent); }
.empty-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.empty-inline { color: var(--ink-soft); padding: 16px 0; }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: linear-gradient(120deg, var(--paper), var(--sky)); }
.cta h2 { font-size: clamp(22px, 2.6vw, 30px); }
.cta p { color: var(--ink-soft); margin-top: 8px; max-width: 56ch; }
.page-404 { min-height: 50vh; }

/* ——— подвал ——— */
.site-footer { background: #0E1624; color: rgba(255, 255, 255, .82); padding: 56px 0 28px; margin-top: 24px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #FFB45C; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand p { max-width: 46ch; font-size: 15px; }
.footer-title { font: 700 14px/1.3 var(--f-d); letter-spacing: .1em; text-transform: uppercase; color: #FFB45C; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15.5px; }
.footer-note { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.footer-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 4px; font-size: 13.5px; color: rgba(255, 255, 255, .55); }

/* ——— адаптив ——— */
@media (max-width: 1120px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 960px) {
  .event-layout, .contact-grid, .leader-body, .leader-head, .leader-teaser { grid-template-columns: 1fr; }
  .event-aside { position: static; }
  .victory-hero { grid-template-columns: 1fr; }
  .victory-hero .victory-img { min-height: 0; aspect-ratio: 16 / 9; }
  .tour-block { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .header-bar { min-height: 62px; gap: 12px; }
  .brand img { width: 40px; height: 40px; }
  .brand-text b { font-size: 16px; }
  .header-cta { display: none; }
  .hero { min-height: 92vh; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
  .hero-credit { display: none; }
  .hero-pause { top: 14px; bottom: auto; right: 14px; }
  .enroll { grid-template-columns: auto 1fr; padding: 18px; }
  .enroll .btn { grid-column: 1 / -1; justify-self: start; }
  .victory { grid-template-columns: 1fr; }
  .victory-img { aspect-ratio: 16 / 9; min-height: 0; }
  .award-row { grid-template-columns: auto 1fr; }
  .award-meta { grid-column: 2; justify-items: start; text-align: left; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .calendar-grid { display: none; }
  .agenda { display: grid; }
  .calendar-head h2 { font-size: 20px; }
  .chip-toggle { margin-left: 0; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .tour-card { grid-template-columns: 64px 1fr; }
  .tour-logo { width: 64px; height: 64px; }
  .tour-go { display: none; }
  .gallery { columns: 2 140px; column-gap: 8px; }
  .gallery a { margin-bottom: 8px; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox-nav { position: absolute; bottom: 16px; }
  .lightbox-prev { left: 24%; }
  .lightbox-next { right: 24%; }
  .stat-tile { min-width: 0; flex: 1 1 140px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
