/* =========================================================
   Деловая Россия — Самарская область. Дизайн-система сайта.
   Цвета бренда: синий #1E40AF / #2563EB, красный акцент.
   Они же — цвета флага Самарской области.
   ========================================================= */

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/onest-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/onest-latin-wght-normal.woff2') format('woff2-variations');
  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 {
  --navy-950: #061340;
  --navy-900: #0A1F5C;
  --navy-800: #0F2B80;
  --blue-700: #1E40AF;
  --blue-600: #2563EB;
  --blue-500: #3D6EF0;
  --blue-100: #E2EAFD;
  --blue-50: #F0F4FF;
  --red-600: #D7262F;
  --red-700: #B31B23;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --surface: #F3F6FA;
  --white: #fff;
  --focus: #2563EB;

  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / .06), 0 1px 1px rgb(15 23 42 / .04);
  --shadow: 0 10px 30px -12px rgb(15 23 42 / .18), 0 2px 6px rgb(15 23 42 / .05);
  --shadow-lg: 0 30px 60px -20px rgb(10 31 92 / .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
  --pad: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 8vw, 116px);
}

*, *::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; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
dialog { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
::selection { background: var(--blue-100); color: var(--navy-900); }

[hidden] { display: none !important; }
.visually-hidden { 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: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--navy-900); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: 860px; }

.icon { width: 22px; height: 22px; flex: none; }
.icon--xs { width: 14px; height: 14px; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 32px; height: 32px; }
.icon--xl { width: 48px; height: 48px; }
.flip { transform: scaleX(-1); }

/* ---------- типографика ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-700); margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--red-600); border-radius: 2px; }
.eyebrow--light { color: rgb(255 255 255 / .78); }
.section-title { font-size: clamp(1.9rem, 1.15rem + 2.1vw, 3rem); letter-spacing: -0.032em; line-height: 1.06; color: var(--navy-900); }
.section-title--sm { font-size: clamp(1.45rem, 1.05rem + 1.1vw, 2rem); margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.section-lead { font-size: 18px; color: var(--ink-2); max-width: 56ch; margin-top: 16px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue-700); background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s var(--ease), color .2s; padding-bottom: 2px; }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover { background-size: 100% 1.5px; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- кнопки ---------- */
.btn { --bg: var(--blue-700); --fg: #fff; --bd: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd); font-weight: 600; font-size: 15.5px; line-height: 1.2; white-space: nowrap; transition: transform .18s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, color .2s; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { --bg: var(--blue-700); }
.btn--primary:hover { --bg: var(--navy-800); box-shadow: 0 8px 20px -8px rgb(30 64 175 / .6); }
.btn--red { --bg: var(--red-600); }
.btn--red:hover { --bg: var(--red-700); box-shadow: 0 8px 20px -8px rgb(215 38 47 / .55); }
.btn--outline { --bg: transparent; --fg: var(--navy-900); --bd: var(--line-2); }
.btn--outline:hover { --bd: var(--navy-900); }
.btn--ghost { --bg: rgb(255 255 255 / .06); --fg: #fff; --bd: rgb(255 255 255 / .35); }
.btn--ghost:hover { --bg: rgb(255 255 255 / .14); --bd: #fff; }
.btn--light { --bg: #fff; --fg: var(--navy-900); }
.btn--light:hover { --bg: var(--blue-50); }
.btn--text { --bg: transparent; --fg: var(--blue-700); padding: 0 8px; }
.btn--text:hover { --fg: var(--navy-900); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 16.5px; }
.btn--block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: var(--navy-900); transition: background-color .2s, transform .18s var(--ease); }
.icon-btn:hover { background: var(--surface); }
.icon-btn:active { transform: scale(.94); }
.icon-btn--line { border: 1.5px solid var(--line); }
.icon-btn--line:hover { border-color: var(--navy-900); }

/* ---------- верхняя полоса и шапка ---------- */
.editor-bar { background: #FFF4C2; font-size: 14px; }
.editor-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.editor-bar span { display: inline-flex; gap: 8px; align-items: center; }
.editor-bar .icon { width: 16px; height: 16px; }
.editor-bar a { font-weight: 600; text-decoration: underline; }
.topbar { background: var(--navy-950); color: rgb(255 255 255 / .72); font-size: 13px; }
.topbar__row { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 24px; }
.topbar a { transition: color .2s; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar__right { display: flex; gap: 22px; }

.header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .92); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgb(15 23 42 / .35); }
.header__row { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo__img { height: 40px; width: auto; }
.logo__region { padding-left: 14px; border-left: 1.5px solid var(--line-2); font-size: 13px; font-weight: 800; line-height: 1.12; letter-spacing: .02em; text-transform: uppercase; color: var(--blue-700); white-space: nowrap; }
.logo--light .logo__region { color: #fff; border-color: rgb(255 255 255 / .3); }
.wordmark__mark svg { width: 40px; height: 40px; }
.wordmark__text { display: flex; flex-direction: column; line-height: 1.05; }
.wordmark__text b { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase; color: var(--navy-900); }
.wordmark__text small { font-size: 13px; font-weight: 500; color: var(--blue-700); margin-top: 3px; }
.logo--light .wordmark__text b { color: #fff; }
.logo--light .wordmark__text small { color: rgb(255 255 255 / .7); }

.nav { margin-left: 8px; }
.nav__list { list-style: none; display: flex; gap: 2px; }
.nav__link { white-space: nowrap; position: relative; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 999px; font-size: 15.5px; font-weight: 500; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav__link:hover, .nav__link[aria-expanded='true'] { color: var(--navy-900); background: var(--surface); }
.nav__link .icon { transition: transform .25s var(--ease); }
.nav__link[aria-expanded='true'] .icon { transform: rotate(180deg); }
.nav__item.is-active > .nav__link { color: var(--navy-900); font-weight: 600; }
.nav__item.is-active > .nav__link::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--red-600); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: mega-in .25s var(--ease); }
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } }
.mega__grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr 1.1fr; gap: 40px; padding-block: 36px 40px; }
.mega__title { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.mega__col ul { list-style: none; display: grid; gap: 2px; }
.mega__col a { display: block; padding: 8px 0; font-size: 16px; font-weight: 500; color: var(--ink); transition: color .2s, transform .2s var(--ease); }
.mega__col a:hover, .mega__col a[aria-current] { color: var(--blue-700); transform: translateX(3px); }
.mega__card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 220px; padding: 26px; border-radius: var(--r-lg); background: linear-gradient(140deg, var(--navy-900), var(--blue-700)); color: #fff; transition: transform .25s var(--ease), box-shadow .25s; }
.mega__card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.mega__motif { position: absolute; right: 18px; top: 14px; height: 78%; width: auto; color: rgb(255 255 255 / .28); }
.mega__card-kicker { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; font-weight: 600; }
.mega__card-title { font-size: 20px; font-weight: 700; line-height: 1.2; max-width: 16ch; }
.mega__card .link-arrow { color: #fff; }

.mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: #fff; overflow-y: auto; overscroll-behavior: contain; }
.mobile-menu__inner { padding: 20px var(--pad) 48px; display: grid; gap: 4px; }
.mobile-menu__link, .mobile-menu__group summary { display: flex; justify-content: space-between; align-items: center; min-height: 56px; font-size: 22px; font-weight: 650; color: var(--navy-900); border-bottom: 1px solid var(--line); list-style: none; cursor: pointer; }
.mobile-menu__group summary::-webkit-details-marker { display: none; }
.mobile-menu__group[open] summary .icon { transform: rotate(180deg); }
.mobile-menu__group a { display: block; padding: 11px 0 11px 14px; font-size: 17px; color: var(--ink-2); border-left: 2px solid var(--line); }
.mobile-menu__group a:hover { color: var(--blue-700); border-color: var(--blue-700); }
.mobile-menu__actions { display: grid; gap: 10px; margin-top: 24px; }
.mobile-menu__contacts { display: grid; gap: 12px; margin-top: 24px; color: var(--ink-2); }
.mobile-menu__contacts a { display: inline-flex; gap: 10px; align-items: center; }

.search-overlay { position: fixed; inset: 0 0 auto 0; z-index: 60; background: #fff; box-shadow: var(--shadow-lg); animation: mega-in .25s var(--ease); }
.search-overlay__form { display: flex; align-items: center; gap: 14px; min-height: 96px; }
.search-overlay__form > .icon { color: var(--muted); }
.search-overlay input { flex: 1; border: 0; font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; outline: none; min-width: 0; background: transparent; padding: 10px 0; }

/* ---------- первый экран главной ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 85% -10%, #2a4fc4 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, #13328f 0%, transparent 55%), var(--navy-900); padding-top: clamp(32px, 4vw, 56px); --focus: #fff; }
.hero__luka { position: absolute; right: -8%; top: -12%; width: min(980px, 80vw); height: auto; color: rgb(255 255 255 / .07); pointer-events: none; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: clamp(32px, 4.5vw, 72px); align-items: start; padding-bottom: clamp(110px, calc(15.3vw - 56px), 420px); }
.hero__title { font-size: clamp(2.5rem, 1.25rem + 3.4vw, 4.35rem); line-height: 1.0; letter-spacing: -0.04em; max-width: 15ch; }
.hero__lead { margin-top: 24px; font-size: clamp(17px, 1rem + .35vw, 20px); color: rgb(255 255 255 / .82); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 44px 0 0; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .16); }
.hero__facts dt { font-size: clamp(28px, 1.4rem + 1vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.hero__facts dd { margin: 8px 0 0; font-size: 14px; line-height: 1.35; color: rgb(255 255 255 / .68); }
.hero__news { display: grid; gap: 12px; }
.lead-card { position: relative; background: #fff; color: var(--ink); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px -24px rgb(0 0 0 / .45); transition: transform .3s var(--ease), box-shadow .3s; }
.lead-card:hover { transform: translateY(-2px); }
.lead-card__media { display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--blue-100); }
.lead-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.lead-card:hover .lead-card__media img { transform: scale(1.03); }
.lead-card__body { padding: 22px 24px 26px; }
.lead-card__title { font-size: clamp(19px, 1rem + .5vw, 23px); line-height: 1.22; letter-spacing: -0.02em; color: var(--navy-900); }
.mini-news { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: baseline; padding: 16px 20px; border-radius: var(--r); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); transition: background-color .2s, border-color .2s, transform .2s var(--ease); }
.mini-news:hover { background: rgb(255 255 255 / .11); border-color: rgb(255 255 255 / .24); transform: translateY(-2px); }
.mini-news time { font-size: 13.5px; color: rgb(255 255 255 / .6); white-space: nowrap; }
.mini-news h3 { font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.hero__skyline { position: absolute; left: 0; right: 0; bottom: 0; color: rgb(255 255 255 / .34); pointer-events: none; }
.skyline { width: 100%; height: auto; aspect-ratio: 1440 / 220; min-height: 120px; }
.skyline .sk { stroke-dasharray: 1; stroke-dashoffset: 0; }
.skyline .sk-soft { opacity: .55; }
.js .hero .skyline .sk { animation: draw 2.8s var(--ease) .2s both; }
.js .hero .skyline .sk-water .sk { animation-delay: .9s; animation-duration: 2.2s; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- секции ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--surface { background: var(--surface); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(28px, 3.5vw, 48px); flex-wrap: wrap; }
.section-head__side { display: flex; gap: 16px; align-items: center; }
.section-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stack-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- метки и чипы ---------- */
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--blue-50); color: var(--blue-700); white-space: nowrap; }
.tag--soft { background: var(--surface); color: var(--ink-2); }
.tag--light { background: rgb(255 255 255 / .14); color: #fff; }
.tag--red { background: #FDECEC; color: var(--red-700); }
.status { font-size: 13px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--active { color: #15803D; }
.status--planned { color: #B45309; }
.status--search { color: var(--red-700); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--links { margin-bottom: 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14.5px; font-weight: 500; color: var(--ink-2); background: #fff; transition: border-color .2s, background-color .2s, color .2s, transform .15s var(--ease); }
.chip:hover { border-color: var(--navy-900); color: var(--navy-900); }
.chip:active { transform: scale(.97); }
.chip.is-on, .chip[aria-pressed='true'] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chip__n { font-size: 12.5px; opacity: .6; }
.segmented { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); flex-wrap: wrap; }
.segmented a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: background-color .2s, color .2s; }
.segmented a:hover { color: var(--navy-900); }
.segmented a[aria-current] { background: #fff; color: var(--navy-900); font-weight: 600; box-shadow: var(--shadow-sm); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.toolbar--wrap .chips--links { margin-bottom: 0; }

/* ---------- карточки ---------- */
.stretched::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 24px; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 13.5px; color: var(--muted); }
.lead-card .card__meta, .card .card__meta { margin-bottom: 2px; }
.card__title { font-size: 18.5px; line-height: 1.3; letter-spacing: -0.015em; color: var(--navy-900); }
.card__title a { transition: color .2s; }
.card:hover .card__title a { color: var(--blue-700); }
.card__text { font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-grid .card--big { grid-column: span 2; flex-direction: row; }
.news-grid .card--big .card__media { aspect-ratio: auto; flex: 1.25; min-height: 100%; }
.news-grid .card--big .card__body { flex: 1; padding: 30px; justify-content: center; }
.news-grid .card--big .card__title { font-size: clamp(21px, 1rem + .8vw, 27px); line-height: 1.2; }
.news-grid .card.is-hidden { display: none; }

/* плитки «чем полезны» */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 230px; padding: 26px 26px 60px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); text-align: left; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.tile__icon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--blue-50); color: var(--blue-700); margin-bottom: 8px; flex: none; }
.tile__icon--inline { width: 40px; height: 40px; border-radius: 12px; margin: 0; }
.tile__title { font-size: 19px; font-weight: 700; line-height: 1.22; letter-spacing: -0.015em; color: var(--navy-900); }
.tile__text { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.tile__go { position: absolute; left: 26px; bottom: 22px; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--navy-900); transition: transform .3s var(--ease), background-color .2s, border-color .2s, color .2s; }
.tile:hover .tile__go { transform: translateX(4px); background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.tile--accent { background: linear-gradient(150deg, var(--blue-700), var(--navy-900)); border-color: transparent; color: #fff; --focus: #fff; }
.tile--accent .tile__icon { background: rgb(255 255 255 / .14); color: #fff; }
.tile--accent .tile__title { color: #fff; }
.tile--accent .tile__text { color: rgb(255 255 255 / .8); }
.tile--accent .tile__go { border-color: rgb(255 255 255 / .4); color: #fff; }
.tile--accent:hover .tile__go { background: #fff; color: var(--navy-900); border-color: #fff; }

/* календарь */
.events-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.events-layout__side { position: sticky; top: calc(var(--header-h) + 32px); }
.event-row { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr) 44px; gap: 24px; align-items: center; padding: 22px 20px; margin-inline: -20px; border-radius: var(--r); transition: background-color .2s; }
.event-row + .event-row { box-shadow: 0 -1px 0 var(--line); }
.event-row:hover { background: var(--surface); }
.event-row__date { display: grid; justify-items: center; align-content: center; height: 88px; border-radius: var(--r); background: var(--blue-50); color: var(--navy-900); line-height: 1; }
.event-row__day { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; }
.event-row__month { font-size: 14px; font-weight: 600; margin-top: 4px; color: var(--blue-700); }
.event-row__wd { font-size: 12px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; }
.event-row__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.event-row__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.event-row__title { font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; color: var(--navy-900); }
.event-row__text { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.event-row__go { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--navy-900); transition: transform .3s var(--ease), background-color .2s, color .2s, border-color .2s; }
.event-row:hover .event-row__go { transform: translateX(4px); background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* как устроено отделение */
.community { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.community__card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 300px; padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s; isolation: isolate; }
.community__card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.community__motif { position: absolute; right: -6px; bottom: -4px; height: 72%; width: auto; max-width: 70%; color: var(--blue-700); opacity: .16; z-index: -1; transition: opacity .3s, transform .5s var(--ease); }
.community__card:hover .community__motif { opacity: .3; transform: translateY(-4px); }
.community__num { font-size: clamp(48px, 2.4rem + 1.4vw, 68px); font-weight: 700; letter-spacing: -0.05em; line-height: .9; color: var(--blue-700); }
.community__label { font-size: 14px; color: var(--muted); margin-top: 6px; }
.community__title { margin-top: 36px; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy-900); }
.community__text { font-size: 15px; color: var(--ink-2); margin-top: 6px; max-width: 26ch; }

/* разворот с фото */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.photo { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--blue-100); margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
a.photo:hover img, .split__media:hover img { transform: scale(1.025); }
.split__media { aspect-ratio: 4 / 3; }
.ticks { list-style: none; display: grid; gap: 12px; margin: 28px 0 32px; }
.ticks li { position: relative; padding-left: 34px; font-size: 16.5px; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E40AF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* руководство */
.leaders { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.leaders__chair { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 36px; align-items: center; }
.leaders__photo { aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, var(--blue-100), var(--blue-50)); display: grid; place-items: center; }
.leaders__photo img { width: 100%; height: 100%; object-fit: cover; }
.leaders__quote { margin: 0 0 22px; font-size: clamp(20px, 1rem + .8vw, 27px); line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; color: var(--navy-900); }
.leaders__name { font-size: 18px; font-weight: 700; }
.leaders__name a:hover { color: var(--blue-700); }
.leaders__role { color: var(--muted); font-size: 15px; margin-top: 2px; }
.leaders__rest { display: grid; gap: 14px; }
.leaders__rest .link-arrow { margin-top: 8px; justify-self: start; }

.person { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.person:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.person__photo { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, var(--blue-100), var(--blue-50)); display: grid; place-items: center; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__initials { font-size: 22px; font-weight: 700; color: var(--blue-700); letter-spacing: -0.02em; }
.person__initials--xl { font-size: clamp(48px, 6vw, 88px); }
.person__role { font-size: 13px; font-weight: 600; color: var(--blue-700); line-height: 1.3; }
.person__name { font-size: 17px; line-height: 1.25; margin-top: 3px; color: var(--navy-900); }
.person__company { font-size: 14px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 16px; }
.people-block + .people-block { margin-top: clamp(40px, 5vw, 64px); }

/* партнёры */
.section--tight#partners { border-top: 1px solid var(--line); }
.partners-row, .partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.partner { position: relative; display: grid; place-items: center; min-height: 104px; padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; text-align: center; font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--ink-2); transition: transform .25s var(--ease), box-shadow .25s, color .2s; }
.partner:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--navy-900); }
.partner img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.partner:hover img { filter: none; opacity: 1; }
.partner--card { place-items: start; grid-template-rows: auto auto 1fr; gap: 12px; text-align: left; min-height: 170px; }
.partner__logo { display: grid; place-items: center; height: 56px; color: var(--blue-700); }
.partner__name { font-size: 16px; color: var(--navy-900); }
.partner__note { font-size: 14px; font-weight: 400; color: var(--muted); }

/* полоса «вступайте» */
.join-band { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 500px at 100% 0%, #2a4fc4, transparent 60%), var(--navy-900); padding-block: clamp(64px, 8vw, 112px) clamp(150px, 15vw, 220px); --focus: #fff; }
.join-band__skyline { position: absolute; left: 0; right: 0; bottom: 0; color: rgb(255 255 255 / .2); pointer-events: none; }
.join-band__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px 72px; }
.join-band__title { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.4rem); letter-spacing: -0.035em; line-height: 1.04; max-width: 12ch; }
.join-band__lead { margin-top: 18px; color: rgb(255 255 255 / .78); font-size: 18px; max-width: 40ch; }
.join-steps { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.join-steps li { counter-increment: s; position: relative; display: grid; gap: 4px; padding: 18px 20px 18px 70px; border-radius: var(--r); background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .12); }
.join-steps li::before { content: counter(s); position: absolute; left: 20px; top: 18px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red-600); font-weight: 700; font-size: 15px; }
.join-steps b { font-size: 17px; }
.join-steps span { font-size: 15px; color: rgb(255 255 255 / .75); }
.join-band__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- шапка внутренних страниц ---------- */
.page-head { position: relative; overflow: hidden; background: linear-gradient(180deg, #EAF0FE 0%, #F5F8FD 100%); padding-block: clamp(36px, 5vw, 64px) clamp(44px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-head__luka { position: absolute; right: -10%; top: -30%; width: min(900px, 90vw); height: auto; color: var(--blue-700); opacity: .09; pointer-events: none; }
.page-head__motif { position: absolute; right: max(var(--pad), calc((100vw - 1360px) / 2 + var(--pad))); bottom: -2px; height: 82%; width: auto; max-width: 34%; color: var(--blue-700); opacity: .16; pointer-events: none; }
.page-head__inner { position: relative; }
.page-head__title { font-size: clamp(2.2rem, 1.3rem + 2.9vw, 4rem); letter-spacing: -0.038em; line-height: 1.02; color: var(--navy-900); max-width: 18ch; }
.page-head__lead { margin-top: 18px; font-size: clamp(17px, 1rem + .3vw, 19.5px); color: var(--ink-2); max-width: 62ch; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-head .btn--ghost { --fg: var(--navy-900); --bd: var(--line-2); --bg: transparent; }
.page-head .btn--ghost:hover { --bd: var(--navy-900); --bg: transparent; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--blue-700); }
.crumbs--light { color: rgb(255 255 255 / .65); }
.crumbs--light a:hover { color: #fff; }

.photo-hero { position: relative; min-height: clamp(420px, 56vw, 640px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; --focus: #fff; }
.photo-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(6 19 64 / .1) 0%, rgb(6 19 64 / .35) 45%, rgb(6 19 64 / .88) 100%); }
.photo-hero__inner { position: relative; padding-block: 48px clamp(40px, 5vw, 72px); }
.photo-hero .page-head__title { color: #fff; }
.photo-hero .page-head__lead { color: rgb(255 255 255 / .85); }
.photo-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.photo-strip .photo { aspect-ratio: 4 / 3; }

.event-hero { background: radial-gradient(900px 500px at 100% 0%, #2a4fc4, transparent 60%), var(--navy-900); color: #fff; padding-block: clamp(36px, 5vw, 64px); --focus: #fff; }
.event-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.event-hero__title { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.4rem); letter-spacing: -0.035em; line-height: 1.05; margin-top: 16px; }
.event-hero .page-head__lead { color: rgb(255 255 255 / .8); }
.event-hero__media { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 30px 60px -24px rgb(0 0 0 / .5); }
.event-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.event-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 16px 36px; margin-top: 28px; }
.event-facts li { display: flex; gap: 12px; align-items: flex-start; }
.event-facts .icon { color: rgb(255 255 255 / .6); margin-top: 2px; }
.event-facts b { display: block; font-size: 17px; }
.event-facts small { color: rgb(255 255 255 / .6); font-size: 14px; }

/* ---------- контент ---------- */
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.prose { max-width: 74ch; font-size: 17.5px; line-height: 1.72; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(24px, 1.1rem + .8vw, 30px); color: var(--navy-900); margin-top: 1.9em; letter-spacing: -0.025em; }
.prose h3 { font-size: 21px; color: var(--navy-900); margin-top: 1.6em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose a { color: var(--blue-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.prose a:hover { color: var(--navy-900); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: grid; gap: .5em; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ''; position: absolute; left: 2px; top: .78em; width: 12px; height: 2px; background: var(--red-600); border-radius: 2px; }
.prose ol { counter-reset: o; }
.prose ol li { counter-increment: o; position: relative; padding-left: 34px; }
.prose ol li::before { content: counter(o); position: absolute; left: 0; top: .2em; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-50); color: var(--blue-700); font-size: 13px; font-weight: 700; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--blue-600); font-size: 1.12em; color: var(--navy-900); font-weight: 500; }
.prose img { border-radius: var(--r); }
.prose figure { margin: 1.6em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.prose th { width: 38%; color: var(--ink); font-weight: 600; background: var(--surface); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.prose--sm { font-size: 15.5px; }
.prose__cover { aspect-ratio: 16 / 9; margin-top: 0 !important; margin-bottom: 1.6em; }

.side-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); }
.side-nav__title { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.side-nav__title:first-child { margin-top: 0; }
.side-nav ul { list-style: none; display: grid; gap: 2px; }
.side-nav a { display: block; padding: 7px 12px; margin-inline: -12px; border-radius: 10px; font-size: 15px; color: var(--ink-2); transition: background-color .2s, color .2s; }
.side-nav a:hover { background: #fff; color: var(--navy-900); }
.side-nav a[aria-current] { background: #fff; color: var(--blue-700); font-weight: 600; box-shadow: var(--shadow-sm); }
.side-stack { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.side-card { display: grid; gap: 14px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); font-size: 15.5px; color: var(--ink-2); }
.side-card__title { font-size: 18px; font-weight: 700; color: var(--navy-900); letter-spacing: -0.015em; }
.side-card__note { font-size: 14px; opacity: .8; }
.side-card--accent { background: linear-gradient(150deg, var(--blue-700), var(--navy-900)); color: rgb(255 255 255 / .85); --focus: #fff; }
.side-card--accent .side-card__title { color: #fff; }
.side-card--accent input[type=email] { width: 100%; min-height: 48px; border-radius: 12px; border: 0; padding: 0 16px; color: var(--ink); }
.plain-list { list-style: none; display: grid; gap: 2px; }
.plain-list a { display: block; padding: 8px 0; color: var(--ink-2); border-bottom: 1px solid var(--line); transition: color .2s; font-size: 15px; }
.plain-list li:last-child a { border-bottom: 0; }
.plain-list a:hover { color: var(--blue-700); }
.plain-list--events small { display: block; color: var(--muted); font-size: 13px; }
.mini-person { position: relative; display: flex; gap: 14px; align-items: center; }
.mini-person__photo { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--blue-100); color: var(--blue-700); font-weight: 700; }
.mini-person__photo img { width: 100%; height: 100%; object-fit: cover; }
.mini-person b { display: block; color: var(--navy-900); font-size: 15.5px; line-height: 1.3; }
.mini-person small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; }
a.mini-person:hover b { color: var(--blue-700); }

/* статья */
.article__head { padding-top: clamp(32px, 4vw, 56px); max-width: 1000px; }
.article__title { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.4rem); line-height: 1.06; letter-spacing: -0.035em; color: var(--navy-900); margin-top: 16px; }
.article__lead { margin-top: 20px; font-size: clamp(18px, 1rem + .4vw, 21px); color: var(--ink-2); max-width: 64ch; line-height: 1.55; }
.article__cover { margin-block: clamp(28px, 4vw, 48px); aspect-ratio: 16 / 8; max-height: 640px; padding: 0; width: calc(100% - 2 * var(--pad)); max-width: calc(1360px - 2 * var(--pad)); }
.article__body { padding-bottom: 24px; }
.draft-note { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 10px; background: #FFF4C2; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 10px; }
.gallery .photo { aspect-ratio: 4 / 3; border-radius: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags .chip { text-decoration: none; min-height: 34px; font-size: 14px; }
.share { display: flex; align-items: center; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-block: 24px clamp(48px, 6vw, 80px); }
.prevnext__item { display: grid; gap: 6px; padding: 22px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); font-weight: 600; color: var(--navy-900); line-height: 1.35; transition: transform .25s var(--ease), box-shadow .25s; }
.prevnext__item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.prevnext__item small { font-size: 13px; font-weight: 500; color: var(--muted); }
.prevnext__item--next { text-align: right; }

/* хаб «Деловая Россия» */
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.hub__card { display: grid; gap: 8px; align-content: start; padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.hub__card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.hub__title { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; color: var(--navy-900); display: flex; align-items: center; gap: 10px; }
.hub__n { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: 13px; }
.hub__text { font-size: 15px; color: var(--ink-2); }

/* комитеты и клубы */
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.group-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.group-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.group-card__media { display: block; aspect-ratio: 16 / 8; overflow: hidden; }
.group-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.group-card:hover .group-card__media img { transform: scale(1.03); }
.group-card__body { display: grid; gap: 10px; padding: 22px 24px 26px; }
.group-card__title { font-size: 20px; letter-spacing: -0.02em; color: var(--navy-900); line-height: 1.25; }
.group-card__text { font-size: 15.5px; color: var(--ink-2); }
.group-card__leader { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }

/* возможности */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.service { position: relative; display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.service:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.service__title { font-size: 18.5px; color: var(--navy-900); line-height: 1.3; letter-spacing: -0.015em; }
.service__text { font-size: 15px; color: var(--ink-2); }
.service__price { font-size: 14px; font-weight: 600; color: var(--blue-700); }
.package { display: grid; gap: 14px; align-content: start; padding: 32px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.package--accent { background: linear-gradient(150deg, var(--blue-700), var(--navy-900)); color: rgb(255 255 255 / .85); border-color: transparent; --focus: #fff; }
.package--accent .package__title, .package--accent .prose strong { color: #fff; }
.package--accent .prose { color: rgb(255 255 255 / .85); }
.package--accent .link-arrow { color: #fff; }
.package__price { font-size: 14px; font-weight: 600; color: var(--blue-700); }
.package--accent .package__price { color: #FCA5A5; }
.package__title { font-size: 26px; letter-spacing: -0.025em; color: var(--navy-900); }

/* шаги вступления */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li { position: relative; display: grid; gap: 8px; align-content: start; padding: 26px; border-radius: var(--r-lg); background: var(--surface); }
.steps__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy-900); color: #fff; font-weight: 700; margin-bottom: 8px; }
.steps li:first-child .steps__n { background: var(--red-600); }
.steps b { font-size: 18px; color: var(--navy-900); }
.steps p { font-size: 15px; color: var(--ink-2); }

/* документы */
.doc-list { list-style: none; display: grid; gap: 10px; }
.doc { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) 44px; gap: 18px; align-items: center; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.doc:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.doc__icon { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--blue-50); color: var(--blue-700); }
.doc__icon small { position: absolute; bottom: -6px; right: -6px; padding: 2px 6px; border-radius: 6px; background: var(--red-600); color: #fff; font-size: 10px; font-weight: 700; }
.doc__title { font-weight: 600; color: var(--navy-900); line-height: 1.35; }
.doc__meta { display: block; font-size: 14px; color: var(--muted); margin-top: 3px; }
.doc__go { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--navy-900); transition: background-color .2s, color .2s, border-color .2s; }
.doc:hover .doc__go { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.doc-list--compact li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15px; }
.doc-list--compact .icon { color: var(--blue-700); margin-top: 2px; }
.doc-list--compact a { color: var(--navy-900); font-weight: 500; }
.doc-list--compact a:hover { color: var(--blue-700); }
.doc-list--compact small { display: block; color: var(--muted); font-size: 13px; }

/* профиль */
.profile-section { padding-top: clamp(32px, 4vw, 56px); }
.profile { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.profile__photo { aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, var(--blue-100), var(--blue-50)); display: grid; place-items: center; }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile__name { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.4rem); letter-spacing: -0.035em; color: var(--navy-900); line-height: 1.05; }
.profile__role { font-size: 19px; color: var(--blue-700); font-weight: 600; margin-top: 12px; }
.profile__company { display: flex; gap: 8px; align-items: center; color: var(--muted); margin-top: 10px; }
.profile__quote { margin: 26px 0 0; padding-left: 22px; border-left: 3px solid var(--red-600); font-size: 20px; font-weight: 500; color: var(--navy-900); line-height: 1.45; }
.profile__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.profile__more { margin-top: clamp(40px, 5vw, 72px); }

/* контакты */
.contacts { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.contact-cards { list-style: none; display: grid; gap: 12px; }
.contact-cards li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r); background: var(--surface); }
.contact-cards .icon { color: var(--blue-700); margin-top: 2px; }
.contact-cards small { display: block; font-size: 13px; color: var(--muted); }
.contact-cards b { font-size: 17px; color: var(--navy-900); }
.contact-cards em { display: block; font-style: normal; font-size: 14.5px; color: var(--ink-2); margin-top: 2px; }
.contact-cards a:hover b { color: var(--blue-700); }
.contacts__team { display: grid; gap: 14px; margin-top: 28px; }
.contacts__map { min-height: 420px; border-radius: var(--r-lg); overflow: hidden; background: var(--blue-50); }
.contacts__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
.contact-list { list-style: none; display: grid; gap: 10px; margin-top: 24px; }
.contact-list li { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--navy-900); }
.contact-list .icon { color: var(--blue-700); }
.pay-card { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 28px; border-radius: var(--r-lg); background: var(--blue-50); }
.pay-card h2 { margin: 0 !important; font-size: 22px; }
.pay-card .icon { color: var(--blue-700); }
.pay-card p { font-size: 15px; margin-top: 4px; }

/* поиск, пусто, 404 */
.search-form { display: flex; gap: 10px; }
.search-form input { flex: 1; min-height: 56px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line-2); font-size: 17px; min-width: 0; }
.search-form input:focus { border-color: var(--blue-600); outline: none; box-shadow: 0 0 0 4px var(--blue-100); }
.search-count { margin: 28px 0 8px; color: var(--muted); }
.search-results { list-style: none; display: grid; }
.search-results li { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.search-results h2 { font-size: 20px; letter-spacing: -0.015em; }
.search-results h2 a { color: var(--navy-900); }
.search-results h2 a:hover { color: var(--blue-700); }
.search-results p { color: var(--ink-2); font-size: 15.5px; }
.empty { display: grid; justify-items: center; gap: 14px; padding: 56px 24px; border-radius: var(--r-lg); border: 1.5px dashed var(--line-2); color: var(--muted); text-align: center; }
.notfound { position: relative; overflow: hidden; min-height: 70vh; display: grid; align-items: center; background: linear-gradient(180deg, #EAF0FE, #fff); padding-block: 64px 220px; }
.notfound--ok { padding-bottom: 80px; }
.notfound__luka { position: absolute; inset: -10% -20% auto auto; width: 900px; color: var(--blue-700); opacity: .09; }
.notfound__inner { position: relative; display: grid; gap: 16px; justify-items: start; max-width: 760px; }
.notfound__inner h1 { font-size: clamp(2.2rem, 1.3rem + 2.8vw, 3.8rem); color: var(--navy-900); letter-spacing: -0.035em; }
.notfound__inner p { font-size: 18px; color: var(--ink-2); }
.notfound__code { font-size: clamp(80px, 12vw, 160px); font-weight: 800; letter-spacing: -0.06em; line-height: .9; color: var(--blue-700); }
.notfound__skyline { position: absolute; left: 0; right: 0; bottom: 0; color: var(--blue-700); opacity: .3; }
.ok-badge { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: #DCFCE7; color: #15803D; }

/* пагинация */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 48px; }
.pager__item { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 600; color: var(--ink-2); transition: border-color .2s, background-color .2s, color .2s; }
.pager__item:hover { border-color: var(--navy-900); color: var(--navy-900); }
.pager__item.is-current { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.pager__gap { display: inline-grid; place-items: center; width: 32px; color: var(--muted); }

/* месяцы мероприятий */
.month + .month { margin-top: 48px; }
.month__title { font-size: 26px; color: var(--navy-900); padding-bottom: 14px; border-bottom: 2px solid var(--navy-900); margin-bottom: 8px; letter-spacing: -0.02em; }
.month__title span { color: var(--muted); font-weight: 500; }

/* ---------- формы ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.form-card { display: grid; gap: 18px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.section--surface .form-card { border-color: transparent; }
.side-stack .form-card { box-shadow: none; background: var(--surface); border: 0; padding: 24px; }
.side-stack .form-card .form-grid { grid-template-columns: 1fr; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field[hidden] { display: none; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.req { color: var(--red-600); }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: #94A3B8; }
.field input:focus, .field textarea:focus { border-color: var(--blue-600); outline: none; box-shadow: 0 0 0 4px var(--blue-100); }
.field.has-error input, .field.has-error textarea { border-color: var(--red-600); }
.field__error { font-size: 13.5px; color: var(--red-700); min-height: 0; }
.field__error:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--blue-700); }
.check a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 2px; }
.check--light { color: rgb(255 255 255 / .75); }
.check--light a { color: #fff; }
.form-status { font-size: 15px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--red-700); }
.form-status.is-ok { color: #15803D; }
.is-sending [type=submit] { opacity: .65; pointer-events: none; }

.modal { width: min(600px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: auto; }
.modal::backdrop { background: rgb(6 19 64 / .55); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .3s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal__body { position: relative; display: grid; gap: 16px; padding: clamp(24px, 4vw, 40px); }
.modal__close { position: absolute; right: 14px; top: 14px; }
.modal__title { font-size: 28px; color: var(--navy-900); letter-spacing: -0.03em; padding-right: 40px; }
.modal__lead { color: var(--ink-2); margin-top: -6px; }
.modal__done { display: grid; justify-items: center; gap: 14px; padding: 48px 32px; text-align: center; }
.modal__done .icon { color: #15803D; }
.modal__done h2 { font-size: 26px; color: var(--navy-900); }

/* ---------- подвал ---------- */
.footer { position: relative; background: var(--navy-950); color: rgb(255 255 255 / .7); padding-top: clamp(64px, 7vw, 96px); font-size: 15px; --focus: #fff; }
.footer__ridge { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 72px; color: rgb(255 255 255 / .1); transform: translateY(-1px); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1.3fr); gap: 40px; }
.footer__grid > * { min-width: 0; }
.footer .logo { flex-wrap: wrap; row-gap: 8px; max-width: 100%; }
.footer .logo__img { max-width: 100%; height: auto; max-height: 40px; }
.footer__org { margin-top: 18px; font-size: 14px; line-height: 1.5; max-width: 36ch; }
.footer__contacts { list-style: none; display: grid; gap: 10px; margin-top: 22px; }
.footer__contacts li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contacts .icon { margin-top: 3px; color: rgb(255 255 255 / .5); }
.footer a, .footer__btn { transition: color .2s; }
.footer a:hover, .footer__btn:hover { color: #fff; }
.footer__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.footer__title--gap { margin-top: 18px; }
.footer__btn { color: inherit; font-size: 15px; text-align: left; }
.footer__subscribe { display: grid; gap: 12px; align-content: start; }
.footer__note { font-size: 14px; }
.subscribe-row { display: flex; gap: 8px; }
.subscribe-row input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgb(255 255 255 / .2); background: rgb(255 255 255 / .06); color: #fff; }
.subscribe-row input::placeholder { color: rgb(255 255 255 / .45); }
.subscribe-row input:focus { outline: none; border-color: #fff; }
.footer .form-status.is-ok { color: #86EFAC; }
.footer .form-status.is-error { color: #FCA5A5; }
.socials { display: flex; gap: 8px; margin-top: 22px; }
.socials__item { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / .08); color: #fff; transition: background-color .2s, transform .2s var(--ease); }
.socials__item:hover { background: var(--blue-600); transform: translateY(-2px); }
.socials--dark .socials__item { background: var(--surface); color: var(--navy-900); }
.socials--dark .socials__item:hover { background: var(--blue-700); color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; margin-top: 56px; padding-block: 24px 32px; border-top: 1px solid rgb(255 255 255 / .1); font-size: 13.5px; color: rgb(255 255 255 / .5); }

/* плавающая кнопка связи */
.dock { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--navy-900); color: #fff; font-weight: 600; box-shadow: 0 14px 30px -10px rgb(6 19 64 / .55); transition: transform .2s var(--ease), background-color .2s; --focus: var(--navy-900); }
.dock:hover { transform: translateY(-2px); background: var(--blue-700); }
.dock:active { transform: scale(.97); }
.dock-menu { position: fixed; right: 20px; bottom: 84px; z-index: 40; display: grid; min-width: 240px; padding: 8px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); animation: modal-in .2s var(--ease); }
.dock-menu > * { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: 12px; font-size: 15.5px; font-weight: 500; text-align: left; transition: background-color .2s; }
.dock-menu > *:hover { background: var(--surface); }
.dock-menu .icon { color: var(--blue-700); }

/* ---------- появление ---------- */
.js [data-enter] { animation: enter .9s var(--ease) both; }
.js .hero__news[data-enter] { animation-delay: .15s; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js .hero .skyline .sk { animation: none; stroke-dashoffset: 0; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1320px) {
  .nav__link { padding: 0 10px; font-size: 15px; }
  .logo__region { display: none; }
  .header__row { gap: 18px; }
  .footer__grid { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); }
  .footer__subscribe { grid-column: 1 / -1; max-width: 560px; }
  .footer__brand { grid-column: 1 / -1; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 190px; }
}
@media (max-width: 1140px) {
  .mega { display: none; }
  .nav, .header__pay { display: none; }
  .logo__region { display: block; }
  .menu-btn { display: inline-grid; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__title { max-width: 14ch; }
  .community { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .events-layout { grid-template-columns: 1fr; }
  .events-layout__side { position: static; }
  .leaders { grid-template-columns: 1fr; }
  .join-band__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .topbar { display: none; }
  .news-grid, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid .card--big { grid-column: 1 / -1; }
  .split, .content-layout, .form-layout, .contacts, .event-hero__grid, .profile { grid-template-columns: 1fr; }
  .side-nav, .side-stack { position: static; }
  .content-layout > .side-nav { order: -1; }
  .content-layout > .side-nav ul { display: flex; flex-wrap: wrap; gap: 4px 8px; }
  .profile__photo { max-width: 320px; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .photo-strip .photo:last-child { display: none; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  :root { --header-h: 64px; }
  body { font-size: 16.5px; }
  .header__join { display: none; }
  .wordmark__text b { font-size: 15px; }
  .wordmark__text small { font-size: 12px; }
  .logo__img { height: 30px; }
  .logo__region { font-size: 11px; padding-left: 10px; }
  .logo { gap: 10px; }
  .news-grid, .grid-3, .tiles, .community { grid-template-columns: 1fr; }
  .news-grid .card--big { flex-direction: column; }
  .news-grid .card--big .card__media { aspect-ratio: 16 / 10; flex: none; }
  .news-grid .card--big .card__body { padding: 20px 22px 24px; }
  .tile { min-height: 0; }
  .community__card { min-height: 240px; }
  .hero__actions .btn, .page-head__actions .btn, .join-band__actions .btn, .stack-actions .btn { width: 100%; }
  .event-row { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 18px 12px; margin-inline: -12px; }
  .event-row__date { height: 72px; }
  .event-row__day { font-size: 26px; }
  .event-row__go { display: none; }
  .leaders__chair { grid-template-columns: 1fr; }
  .leaders__photo { max-width: 260px; }
  .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr; }
  .photo-strip .photo:last-child { display: block; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer__brand, .footer__subscribe { grid-column: 1 / -1; }
  .prevnext { grid-template-columns: 1fr; }
  .prevnext__item--next { text-align: left; }
  .doc { grid-template-columns: 44px minmax(0, 1fr); }
  .doc__icon { width: 44px; height: 44px; }
  .doc__go { display: none; }
  .pay-card { grid-template-columns: 1fr; }
  .dock span { display: none; }
  .dock { padding: 0; width: 56px; height: 56px; justify-content: center; right: 16px; bottom: 16px; }
  .dock-menu { right: 16px; bottom: 82px; }
  .page-head__motif { max-width: 42%; height: 60%; opacity: .1; }
  .search-form { flex-direction: column; }
  .subscribe-row { flex-direction: column; }
  .section-head { align-items: start; }
}
@media (max-width: 480px) {
  .logo__region { display: none; }
  .logo__img { height: 28px; }
  .header__actions { gap: 2px; }
  .header__row { gap: 8px; }
}
@media (max-width: 420px) {
  .hero__facts { gap: 18px; }
  .hero__facts dt { font-size: 26px; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Единая подача фотографий: обрезка под рамку + лёгкий синий тон,
   чтобы снимки разных авторов и камер смотрелись одной серией.
   ========================================================= */
.card__media, .lead-card__media, .group-card__media, .event-hero__media, .photo, .split__media,
.leaders__photo, .person__photo, .profile__photo, .mini-person__photo, .photo-hero {
  position: relative; overflow: hidden; isolation: isolate;
}
.card__media img, .lead-card__media img, .group-card__media img, .event-hero__media img, .photo img,
.leaders__photo img, .person__photo img, .profile__photo img, .mini-person__photo img, .photo-hero > img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%;
  filter: saturate(.96) contrast(1.03) brightness(1.04);
}
.leaders__photo img, .person__photo img, .profile__photo img, .mini-person__photo img { object-position: 50% 22%; }
.card__media::after, .lead-card__media::after, .group-card__media::after, .event-hero__media::after, .photo::after,
.leaders__photo:has(img)::after, .profile__photo:has(img)::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(165deg, rgb(59 130 246 / .10) 0%, rgb(30 64 175 / .16) 100%);
  mix-blend-mode: soft-light;
}
.photo-hero > img { filter: saturate(.95) contrast(1.03); }
/* фирменные SVG-обложки уже в цветах бренда — фильтр не нужен */
.card__media:has(img[src$='.svg'])::after, .lead-card__media:has(img[src$='.svg'])::after,
.group-card__media:has(img[src$='.svg'])::after, .event-hero__media:has(img[src$='.svg'])::after, .photo:has(img[src$='.svg'])::after,
.leaders__photo:has(img[src$='.svg'])::after, .profile__photo:has(img[src$='.svg'])::after { display: none; }
.card__media img[src$='.svg'], .lead-card__media img[src$='.svg'], .group-card__media img[src$='.svg'], .event-hero__media img[src$='.svg'], .photo img[src$='.svg'], .leaders__photo img[src$='.svg'], .profile__photo img[src$='.svg'], .person__photo img[src$='.svg'], .mini-person__photo img[src$='.svg'] { filter: none; }
/* большая карточка новости: картинка всегда заполняет свою половину */
.news-grid .card--big .card__media { position: relative; min-height: 320px; }
.news-grid .card--big .card__media img { position: absolute; inset: 0; }

.img--bottom-crop { object-position: 50% 30% !important; }


/* предыдущая / следующая: серая стрелка-полоса во всю высоту при наведении */
.prevnext__item { position: relative; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, padding .3s var(--ease); }
.prevnext__arrow { position: absolute; top: 0; bottom: 0; width: 48px; display: grid; place-items: center; background: var(--surface); color: var(--muted); opacity: 0; transition: opacity .25s, transform .3s var(--ease), color .2s; }
.prevnext__item--prev .prevnext__arrow { left: 0; transform: translateX(-100%); border-right: 1px solid var(--line); }
.prevnext__item--next .prevnext__arrow { right: 0; transform: translateX(100%); border-left: 1px solid var(--line); }
.prevnext__item:hover .prevnext__arrow, .prevnext__item:focus-visible .prevnext__arrow { opacity: 1; transform: none; color: var(--navy-900); }
.prevnext__item--prev:hover, .prevnext__item--prev:focus-visible { padding-left: 72px; }
.prevnext__item--next:hover, .prevnext__item--next:focus-visible { padding-right: 72px; }
@media (hover: none) { .prevnext__arrow { opacity: 1; transform: none; } .prevnext__item--prev { padding-left: 72px; } .prevnext__item--next { padding-right: 72px; } }

/* Тревожная кнопка — круглая красная кнопка в левом нижнем углу */
.alarm-btn { position: fixed; left: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 0; height: 52px; min-width: 52px; padding: 0 15px; border-radius: 999px; background: var(--red-600); color: #fff; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; box-shadow: 0 12px 26px -10px rgb(215 38 47 / .65); transition: background-color .2s, gap .3s var(--ease), padding .3s var(--ease), transform .2s var(--ease); --focus: var(--red-700); }
.alarm-btn span { max-width: 0; opacity: 0; transition: max-width .35s var(--ease), opacity .25s; }
.alarm-btn:hover, .alarm-btn:focus-visible { background: var(--red-700); gap: 10px; padding-right: 20px; transform: translateY(-2px); }
.alarm-btn:hover span, .alarm-btn:focus-visible span { max-width: 200px; opacity: 1; }
.alarm-btn:active { transform: scale(.97); }
@media (max-width: 680px) { .alarm-btn { left: 16px; bottom: 16px; height: 56px; min-width: 56px; padding: 0 17px; } }

/* ---------- подвал: всё в линию ---------- */
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgb(255 255 255 / .1); }
.footer__top .socials { margin-top: 0; }
.footer__menu { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 15.5px; font-weight: 500; color: rgb(255 255 255 / .85); }
.footer__line { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 22px 0; font-size: 14px; }
.footer__line li { display: inline-flex; align-items: center; gap: 8px; }
.footer__line .icon { color: rgb(255 255 255 / .45); }
.footer__line li:first-child { color: rgb(255 255 255 / .9); font-weight: 500; flex-basis: 100%; }
.footer__subscribe { display: grid; grid-template-columns: auto minmax(0, 440px) minmax(0, 1fr); gap: 12px 24px; align-items: center; padding: 22px 0; border-top: 1px solid rgb(255 255 255 / .1); }
.footer__subscribe .footer__title { margin: 0; }
.footer__subscribe .form-status { grid-column: 1 / -1; }
.footer__consents { display: grid; gap: 6px; }
.footer__consents .check { font-size: 13px; }
.footer .footer__bottom { margin-top: 0; }
@media (max-width: 1100px) { .footer__subscribe { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .footer__top { align-items: flex-start; flex-direction: column; } .footer__menu { gap: 10px 20px; } .footer__line li:first-child { font-size: 13.5px; } }

/* шаги вступления — живые при наведении */
.join-steps li { transition: transform .3s var(--ease), background-color .25s, border-color .25s, box-shadow .3s; cursor: default; }
.join-steps li::before { transition: transform .35s var(--ease), box-shadow .3s; }
.join-steps li:hover { transform: translateX(6px); background: rgb(255 255 255 / .13); border-color: rgb(255 255 255 / .3); box-shadow: 0 16px 34px -18px rgb(0 0 0 / .55); }
.join-steps li:hover::before { transform: scale(1.12) rotate(-6deg); box-shadow: 0 0 0 6px rgb(215 38 47 / .25); }

.footer .footer__subscribe { max-width: none; grid-column: auto; }

.footer__sections { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 32px; padding: 32px 0 30px; border-bottom: 1px solid rgb(255 255 255 / .1); }
.footer__sections .footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; font-size: 14.5px; }
.footer__top { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 1100px) { .footer__sections { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .footer__sections { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__top { flex-direction: row; align-items: center; } }
@media (max-width: 400px) { .footer__sections { grid-template-columns: 1fr; } }

/* инвестпроекты */
.stage { position: absolute; left: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 12px; border-radius: 999px; background: rgb(255 255 255 / .94); color: var(--navy-900); font-size: 12.5px; font-weight: 700; box-shadow: var(--shadow-sm); }
.stage::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stage--search { color: var(--red-700); }
.stage--active { color: #15803D; }
.stage--planned { color: #B45309; }
.invest-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.invest-facts dt { font-size: 12.5px; color: var(--muted); }
.invest-facts dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; color: var(--navy-900); letter-spacing: -0.02em; }
.invest-amount { margin-top: 24px; font-size: clamp(30px, 1.4rem + 1.4vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.invest-amount small { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0; opacity: .65; margin-bottom: 8px; }
.invest-list { list-style: none; display: grid; gap: 12px; }
.invest-list li { display: flex; gap: 12px; align-items: flex-start; }
.invest-list .icon { color: var(--blue-700); margin-top: 3px; }
.invest-list small { display: block; font-size: 12.5px; color: var(--muted); }
.invest-list b { color: var(--navy-900); font-size: 15.5px; }
.invest-needs__title { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.invest-needs { display: flex; flex-wrap: wrap; gap: 6px; }

/* Реальные фото (загрузки): единая горизонтальная рамка, фото заполняет её целиком; кадрируем ближе к верху, чтобы не резать головы */
.card__media img[src*='/uploads/'], .lead-card__media img[src*='/uploads/'], .photo img[src*='/uploads/'], .event-hero__media img[src*='/uploads/'] { object-position: 50% 22%; }
.article__cover { aspect-ratio: 16 / 9; }
.article__cover img[src*='/uploads/'] { object-position: 50% 42%; }
/* серая панорама Самары за фотоотчётом: стоит на линии над «Поделиться» */
.article__end { position: relative; padding-bottom: 28px; }
.article__end > :not(.article__motif) { position: relative; z-index: 1; }
.article__motif { position: absolute; right: 0; bottom: -1px; width: min(52%, 470px); color: #c3cad6; pointer-events: none; z-index: 0; line-height: 0; }
.article__motif .skyline { display: block; min-height: 0; aspect-ratio: 670 / 166; }
.article__end + .share { margin-top: 0; }
/* предыдущая/следующая: при наведении текст чуть мельче, чтобы стрелка не вызывала переносы и плашка не прыгала */
.prevnext__item { font-size: 17px; }
.prevnext__item, .prevnext__item > * { transition: transform .25s var(--ease), box-shadow .25s, padding .3s var(--ease), font-size .3s var(--ease); }
.prevnext__item:hover, .prevnext__item:focus-visible { font-size: 15.4px; }
@media (hover: none) { .prevnext__item { font-size: 15.4px; } }
/* просмотр фото */
.lb { position: fixed; inset: 0; z-index: 1000; background: rgb(6 16 48 / .92); display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; animation: lb-in .2s ease; }
.lb[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } }
.lb__stage { margin: 0; height: 100%; display: grid; place-items: center; padding: 56px 0; }
.lb__img { max-width: 100%; max-height: calc(100vh - 112px); object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgb(0 0 0 / .5); user-select: none; }
.lb__btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .25); background: rgb(255 255 255 / .08); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; justify-self: center; transition: background .2s; }
.lb__btn:hover, .lb__btn:focus-visible { background: rgb(255 255 255 / .2); }
.lb__close { position: absolute; top: 16px; right: 16px; font-size: 22px; }
.lb__count { position: absolute; bottom: 16px; left: 0; right: 0; margin: 0; text-align: center; color: rgb(255 255 255 / .8); font-size: 14px; }
.lb--single .lb__prev, .lb--single .lb__next { visibility: hidden; }
html.lb-open { overflow: hidden; }
@media (max-width: 700px) { .lb { grid-template-columns: 0 1fr 0; } .lb__prev, .lb__next { position: absolute; bottom: 12px; } .lb__prev { left: 16px; } .lb__next { right: 16px; } .lb__stage { padding: 64px 8px 80px; } }

/* ===== Ограничение ширины сайта: на широких мониторах всё (шапка, первый экран, подвал) — в одной колонке 1440px ===== */
:root { --site-max: 1440px; --site-gap: max(0px, calc((100vw - var(--site-max)) / 2)); }
@media (min-width: 1500px) {
  html { background: #E7ECF4; }
  body { background: transparent; }
  .editor-bar, .topbar, .header, main, .footer { max-width: var(--site-max); margin-inline: auto; }
  main { background: var(--white); }
  .topbar, .header, main, .footer { box-shadow: 0 0 0 1px rgb(15 23 42 / .04), 0 0 60px -20px rgb(15 23 42 / .18); }
  .search-overlay { left: var(--site-gap); right: var(--site-gap); }
  .dock, .dock-menu { right: calc(var(--site-gap) + 20px); }
  .alarm-btn { left: calc(var(--site-gap) + 20px); }
}
/* обложка новости всегда по центру колонки */
.article__cover { margin-inline: auto; }
/* первый экран: панорама сразу под цифрами, без пустой полосы (высота панорамы считается от ширины колонки, не монитора) */
.hero__grid { padding-bottom: calc(max(120px, min(100vw, var(--site-max)) * .1528) + 24px); }

/* ===== Альянс проверенных поставщиков ===== */
.alliance-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(28px, 4vw, 44px); }
.alliance-why > div { display: grid; gap: 6px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--surface); }
.alliance-why .icon { width: 26px; height: 26px; color: var(--blue-700); }
.alliance-why b { font-size: 17px; color: var(--navy-900); }
.alliance-why p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.5; }
.supplier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; margin-top: 20px; }
.supplier { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; scroll-margin-top: calc(var(--header-h, 80px) + 20px); }
.supplier:hover, .supplier:target { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.supplier.is-hidden { display: none; }
.supplier__head { display: flex; gap: 16px; align-items: center; }
.supplier__logo { flex: none; width: 72px; height: 72px; border-radius: 16px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; overflow: hidden; }
.supplier__logo img { max-width: 80%; max-height: 80%; object-fit: contain; }
.supplier__logo span { font-weight: 800; font-size: 22px; color: #fff; width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(140deg, var(--navy-900), var(--blue-700)); }
.supplier__cat { margin: 0 0 2px; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.supplier__name { margin: 0; font-size: 19px; line-height: 1.25; color: var(--navy-900); }
.supplier__lead { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.supplier__offer { margin: 0; display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #FFF1F1; color: var(--red-700); font-size: 14.5px; font-weight: 600; }
.supplier__person { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 14.5px; color: var(--muted); }
.supplier__contacts { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.supplier__contacts a, .link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); color: var(--navy-900); font-size: 14px; font-weight: 600; border: 0; cursor: pointer; font-family: inherit; transition: background .2s; }
.supplier__contacts a:hover, .link-btn:hover { background: var(--blue-100); }
@media (max-width: 760px) { .alliance-why { grid-template-columns: 1fr; } }

/* ===== Обращение с проблемой ===== */
.help-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 10px; }
.help-topic { display: flex; gap: 10px; align-items: center; padding: 16px 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--navy-900); transition: transform .2s var(--ease), box-shadow .2s; }
.help-topic:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.help-topic .icon { color: var(--red-600); flex: none; }
.help-note { display: flex; gap: 8px; align-items: center; margin: 18px 0 0; font-size: 14.5px; color: var(--muted); }
.help-alarm { margin-top: 20px; padding: 16px 18px; border-radius: var(--r); background: #FFF1F1; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.help-alarm a { color: var(--red-700); font-weight: 600; }
.form-card select { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; font: inherit; color: var(--ink); }
.mobile-menu__help { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding: 14px 16px; border-radius: var(--r); background: linear-gradient(140deg, var(--navy-900), var(--blue-700)); color: #fff; font-weight: 600; }

/* ===== Возможности: всё на одной странице ===== */
.service--full:hover { transform: none; box-shadow: none; border-color: var(--line); }
.service__body { font-size: 15px; color: var(--ink-2); }
.service__body > :first-child { margin-top: 0; }
.service__provider { margin: 0; display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); }
.service__foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.service__foot .service__price { margin: 0; }
.service--full { scroll-margin-top: calc(var(--header-h, 80px) + 20px); }

/* ===== Подвал: разработчик ===== */
.footer__dev { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; color: rgb(255 255 255 / .5); }
.footer__dev img { height: 28px; width: auto; opacity: .75; transition: opacity .2s; }
.footer__dev:hover img { opacity: 1; }
@media (max-width: 700px) { .footer__dev { margin-left: 0; } }

/* ===== Карточка человека: «О человеке» и регалии ===== */
.profile__about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(32px, 5vw, 56px); }
.regalia { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.regalia li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface); font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.regalia .icon { flex: none; color: var(--blue-700); margin-top: 2px; }
.profile__links { display: flex; flex-wrap: wrap; gap: 10px; }
.profile__links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--navy-900); font-weight: 600; font-size: 15px; transition: background .2s, border-color .2s; }
.profile__links a:hover { background: var(--surface); border-color: var(--navy-900); }
@media (max-width: 860px) { .profile__about { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .footer__bottom { padding-right: 170px; } }
/* партнёры на главной — без ссылок, цвет логотипа при наведении */
div.partner { cursor: default; }
div.partner:hover { transform: none; box-shadow: none; }
/* альянс: карточка кликабельна, кнопки поверх ссылки; страница компании */
.supplier { position: relative; }
.supplier__name a { color: inherit; }
.supplier__contacts > * { position: relative; z-index: 2; }
.supplier__more { background: var(--navy-900) !important; color: #fff !important; }
.supplier-page__head { display: flex; gap: 18px; align-items: center; margin-bottom: 8px; }
.supplier-page__head .supplier__name { font-size: 22px; font-weight: 700; margin: 0; }
.supplier__logo--lg { width: 96px; height: 96px; border-radius: 20px; }
.side-card .supplier__person { margin: 0 0 12px; }
.mega__card-btn { align-self: flex-start; margin-top: 6px; gap: 8px; }
/* инвестпроекты сразу под календарём, без двойного отступа */
#events + #projects { padding-top: 0; }

/* ===== Главная: видео слева, руководство справа ===== */
.team-video { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.team-video__media { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--navy-900); aspect-ratio: 16 / 10; min-height: 100%; box-shadow: 0 30px 60px -30px rgb(6 19 64 / .55); }
.team-video__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-video__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgb(255 255 255 / .35); background: radial-gradient(800px 400px at 80% 0%, #2a4fc4 0%, transparent 60%), var(--navy-900); }
.team-video__placeholder .skyline { position: absolute; left: 0; right: 0; bottom: 0; min-height: 0; }
.team-video__play { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .3); color: #fff; }
.team-video__soon { position: absolute; top: 22px; left: 24px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / .7); font-weight: 600; }
.team-video__people { display: grid; grid-template-rows: auto 1fr; gap: 16px; }
.team-chair { display: grid; grid-template-columns: 42% 1fr; gap: 20px; align-items: center; padding: 16px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.team-chair:hover, .team-mini:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.team-chair__photo { display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--blue-100); }
.team-chair__photo img, .team-mini__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.team-chair__body { display: grid; gap: 6px; }
.team-chair__role { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--red-600); font-weight: 700; }
.team-chair__name { font-size: clamp(19px, 1rem + .5vw, 23px); line-height: 1.2; font-weight: 800; color: var(--navy-900); }
.team-chair__quote { font-size: 15px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.team-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.team-mini { display: grid; align-content: start; gap: 6px; padding: 10px 10px 14px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.team-mini__photo { display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--blue-100); }
.team-mini__name { font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--navy-900); }
.team-mini__role { font-size: 13px; line-height: 1.35; color: var(--muted); }
@media (max-width: 1000px) { .team-video { grid-template-columns: 1fr; } .team-video__media { min-height: 0; } }
@media (max-width: 560px) { .team-chair { grid-template-columns: 1fr; } .team-trio { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .team-mini__role { display: none; } }
@media (prefers-reduced-motion: reduce) { .team-video__media video { display: none; } }
.team-video__media { aspect-ratio: auto; min-height: 440px; height: 100%; }
@media (max-width: 1000px) { .team-video__media { aspect-ratio: 16 / 10; min-height: 0; height: auto; } }
/* видео 9:16 слева, руководство горизонтальными карточками справа */
.team-video { grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
.team-video__media { aspect-ratio: 9 / 16; min-height: 0; height: auto; }
.team-list { display: grid; gap: 12px; }
.team-list .eyebrow { margin: 0 0 4px; }
.team-row { position: relative; display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; align-items: center; padding: 12px 18px 12px 12px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.team-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.team-row__photo { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: var(--blue-100); display: grid; place-items: center; }
.team-row__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.kom__ava img[src$="-ava.webp"] { object-position: 50% 50%; }
.team-row__body { display: grid; gap: 2px; min-width: 0; }
.team-row__role { font-size: 13px; color: var(--muted); }
.team-row__name { font-size: 17.5px; font-weight: 700; color: var(--navy-900); line-height: 1.25; }
.team-row__company { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-row__arrow { color: var(--muted); transition: transform .25s var(--ease), color .2s; }
.team-row:hover .team-row__arrow { transform: translateX(3px); color: var(--navy-900); }
.team-row--chair { grid-template-columns: 92px 1fr auto; border-left: 4px solid var(--red-600); }
.team-row--chair .team-row__photo { width: 92px; height: 92px; }
.team-row--chair .team-row__role { color: var(--red-600); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }
.team-row--chair .team-row__name { font-size: 19.5px; }
@media (max-width: 1000px) { .team-video { grid-template-columns: 1fr; } .team-video__media { max-width: 360px; width: 100%; justify-self: center; aspect-ratio: 9 / 16; } }
/* ролик горизонтальный 16:9 */
.team-video { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
.team-video__media { aspect-ratio: 16 / 9; max-width: none; }
@media (max-width: 1000px) { .team-video { grid-template-columns: 1fr; } .team-video__media { max-width: none; aspect-ratio: 16 / 9; } }
/* ролик 4:3 — по высоте блока с руководством */
.team-video { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; }
.team-video__media { aspect-ratio: 4 / 3; height: auto; align-self: center; }
@media (max-width: 1000px) { .team-video__media { aspect-ratio: 4 / 3; } }
/* углы видео: обрезка без тёмной каймы на закруглениях */
.team-video__media:has(video) { background: transparent; clip-path: inset(0 round var(--r-lg)); box-shadow: none; filter: drop-shadow(0 24px 40px rgb(6 19 64 / .28)); }
.team-video__media video { border-radius: var(--r-lg); transform: translateZ(0); }
/* видео ровно по высоте списка руководства: верх = верх первой карточки, низ = низ последней; тень и объём */
.team-video { align-items: stretch; }
.team-video__media, .team-video__media:has(video) {
  aspect-ratio: auto; height: auto; min-height: 0; align-self: stretch;
  background: transparent; clip-path: none; filter: none;
  overflow: hidden; border-radius: var(--r-lg); isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  box-shadow: 0 2px 4px rgb(6 19 64 / .06), 0 18px 36px -12px rgb(6 19 64 / .28), 0 40px 70px -30px rgb(6 19 64 / .35);
}
.team-video__media video { border-radius: 0; transform: none; }
@media (max-width: 1000px) { .team-video__media, .team-video__media:has(video) { aspect-ratio: 4 / 3; } }
/* видео целиком (4:3, без обрезки); список руководства тянется ровно на его высоту */
.team-video { align-items: stretch; }
.team-video__media, .team-video__media:has(video) { aspect-ratio: 4 / 3; align-self: start; height: auto; }
.team-video__media video { object-fit: contain; background: #fff; }
.team-list { grid-template-rows: repeat(4, minmax(0, 1fr)); height: 100%; align-self: stretch; }
.team-row { height: 100%; }
@media (max-width: 1000px) { .team-list { grid-template-rows: none; height: auto; } .team-row { height: auto; } }
/* участник альянса: организация в рамке + зелёная отметка */
.profile__org { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 6px; padding: 10px 12px; border: 1.5px solid #16A34A; border-radius: 14px; background: #F0FDF4; width: fit-content; max-width: 100%; }
.profile__org-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy-900); }
.profile__org-name:hover { color: var(--blue-700); text-decoration: underline; }
.alliance-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #16A34A; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
a.alliance-badge:hover { background: #15803D; }
.alliance-badge--sm { padding: 2px 8px; font-size: 11.5px; vertical-align: 1px; }
.team-row__company--alliance { display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; padding: 2px 4px 2px 8px; border: 1px solid #16A34A; border-radius: 999px; background: #F0FDF4; }

/* ===== Блок «Отделение в лицах»: видео ровно 4:3 и ровно по высоте четырёх карточек ===== */
#team .team-video { --row: 112px; --gap: 12px; --th: calc(var(--row) * 4 + var(--gap) * 3); display: grid; grid-template-columns: calc(var(--th) * 4 / 3) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
#team .team-video__media, #team .team-video__media:has(video) {
  width: 100%; height: var(--th); aspect-ratio: auto; align-self: start; margin: 0;
  border-radius: var(--r-lg); overflow: hidden; isolation: auto; -webkit-mask-image: none; clip-path: none; filter: none;
  background: #fff;
  box-shadow: 0 1px 2px rgb(6 19 64 / .08), 0 12px 24px -8px rgb(6 19 64 / .22), 0 36px 64px -24px rgb(6 19 64 / .38);
  transform: translateZ(0);
}
#team .team-video__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: #fff; }
#team .team-list { display: grid; grid-template-rows: repeat(4, var(--row)); gap: var(--gap); height: var(--th); }
#team .team-row { height: var(--row); box-shadow: 0 1px 2px rgb(6 19 64 / .05), 0 8px 18px -10px rgb(6 19 64 / .18); }
@media (max-width: 1280px) { #team .team-video { --row: 100px; } }
@media (max-width: 1100px) { #team .team-video { --row: 92px; } #team .team-row--chair .team-row__photo { width: 76px; height: 76px; } #team .team-row--chair { grid-template-columns: 76px 1fr auto; } }
@media (max-width: 1000px) {
  #team .team-video { grid-template-columns: 1fr; }
  #team .team-video__media, #team .team-video__media:has(video) { height: auto; aspect-ratio: 4 / 3; }
  #team .team-list { grid-template-rows: none; height: auto; }
  #team .team-row { height: auto; }
}
/* участник альянса: без рамки и фона, рядом зелёный текст-ссылка */
.profile__org { border: 0; background: none; padding: 0; margin: 14px 0 6px; gap: 6px 14px; }
.profile__org .alliance-badge { background: none; color: #16A34A; padding: 0; font-size: 14.5px; }
.profile__org a.alliance-badge:hover { background: none; color: #15803D; text-decoration: underline; }
/* кнопка звука на ролике */
.video-sound { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgb(10 31 92 / .78); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s, transform .2s; }
.video-sound:hover { background: var(--red-600); transform: scale(1.06); }
.video-sound .icon { width: 22px; height: 22px; }
.video-sound__on { display: none; }
.video-sound[aria-pressed="true"] .video-sound__on { display: grid; }
.video-sound[aria-pressed="true"] .video-sound__off { display: none; }
.video-sound span { display: grid; }
.video-sound .video-sound__on { display: none; }
.video-sound[aria-pressed="true"] .video-sound__on { display: grid; }
.video-sound[aria-pressed="true"] .video-sound__off { display: none; }

/* ===== Комитеты ===== */
.kom-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(24px, 3vw, 36px); }
.kom-stats > div { display: grid; gap: 4px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--surface); }
.kom-stats b { font-size: clamp(30px, 1.6rem + 1vw, 42px); line-height: 1; color: var(--navy-900); }
.kom-stats span { font-size: 14.5px; color: var(--muted); }
.kom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 16px; }
.kom { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue-700); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.kom:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.kom--open { border-top-color: var(--red-600); }
.kom__n { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.kom__badge { position: absolute; top: 20px; right: 20px; padding: 3px 10px; border-radius: 999px; background: #FFF1F1; color: var(--red-700); font-size: 12.5px; font-weight: 700; }
.kom__title { margin: 0; font-size: 19px; line-height: 1.3; color: var(--navy-900); padding-right: 96px; }
.kom__title a { color: inherit; }
.kom__lead { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.kom__chair { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14.5px; color: var(--muted); }
.kom__chair b { color: var(--navy-900); }
.kom__areas { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.kom__areas li { padding: 4px 10px; border-radius: 999px; background: var(--surface); font-size: 12.5px; color: var(--ink-2); }
.kom-cta { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin-top: clamp(28px, 4vw, 48px); padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: linear-gradient(140deg, #EAF0FE, #F5F8FD); }
.kom-cta p { margin: 6px 0 0; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 760px) { .kom-stats { grid-template-columns: 1fr; } }
/* фото председателя в карточке комитета */
.kom__head { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
.kom__head .kom__title { padding-right: 0; margin-top: 6px; }
.kom__badge { position: static; display: inline-block; margin-left: 8px; vertical-align: 1px; }
.kom__ava { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex: none; background: linear-gradient(140deg, var(--navy-900), var(--blue-700)); color: #fff; font-weight: 700; font-size: 20px; letter-spacing: .02em; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.kom__ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.kom__ava img[src$="-ava.webp"] { object-position: 50% 50%; }
.kom__ava--empty { background: var(--surface); color: var(--muted); }
.kom__ava--empty .icon { width: 26px; height: 26px; }
.kom--open .kom__ava--empty { background: #FFF1F1; color: var(--red-600); box-shadow: 0 0 0 3px #fff, 0 0 0 4px #FCD5D7; }

/* стандартизированные карточки комитетов */
.kom { gap: 0; }
.kom__head { min-height: calc(19px * 1.3 * 2 + 26px); }
.kom__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kom__lead { margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; height: calc(15px * 1.5 * 3); }
.kom__chair { margin: 14px 0 0; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
.kom__chair b { overflow: hidden; text-overflow: ellipsis; }
.kom__areas { margin-top: 12px; display: grid; grid-template-rows: repeat(3, 26px); gap: 6px; }
.kom__areas li { justify-self: start; max-width: 100%; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kom__n { display: flex; align-items: center; height: 24px; }
.kom__head .kom__title { height: calc(19px * 1.3 * 2); }
.kom__head { min-height: 0; }

