/* ==========================================================
   АО «Семей инжиниринг» — стиль сайта
   Палитра построена от фирменного зелёного логотипа #038042
   ========================================================== */
:root {
  --brand: #038042;
  --brand-600: #02703a;
  --brand-700: #025c30;
  --brand-800: #034526;
  --brand-900: #053c23;
  --brand-950: #032816;
  --brand-50: #eaf5ee;
  --brand-100: #d3eadb;
  --lime: #8cc63f;            /* светлый акцент для тёмного фона */
  --bg: #f4f6f3;
  --surface: #ffffff;
  --surface-2: #eef1ed;
  --ink: #102018;
  --ink-2: #44524a;
  --ink-3: #75817a;
  --line: #dbe2dc;
  --dark-line: rgba(255,255,255,.12);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(16,32,24,.05), 0 10px 30px rgba(16,32,24,.07);
  --shadow-lg: 0 20px 60px rgba(4,30,18,.18);
  --max: 1260px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Montserrat", "Inter", system-ui, sans-serif;
  --header-h: 78px;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body { margin: 0; font-family: var(--font); font-size: var(--fs, 17px); line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; overflow-wrap: break-word; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000; font-weight: 700; }
.skip-link:focus { left: 8px; }
.ico-svg { width: 20px; height: 20px; flex-shrink: 0; }
.muted { color: var(--ink-3); } .small { font-size: 14px; } .center { text-align: center; }

/* ---------- Типографика ---------- */
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp(32px, 4.8vw, 60px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.2vw, 42px); }
h3 { font-size: clamp(18px, 1.5vw, 21px); }
p { margin: 0 0 1em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 720px; }
.h-small { font-size: 15px; font-family: var(--font); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); font-weight: 800; margin-bottom: 20px; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 12px; border: 2px solid transparent; font-weight: 700; font-size: 16px; transition: transform .15s, background .2s, border-color .2s, color .2s, box-shadow .2s; white-space: nowrap; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn .ico-svg { width: 18px; height: 18px; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 17px; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-xs { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 9px; gap: 6px; }
.btn-xs .ico-svg { width: 16px; height: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(3,128,66,.25); }
.btn-primary:hover { background: var(--brand-600); }
.btn-dark { background: var(--brand-900); color: #fff; }
.btn-dark:hover { background: var(--brand-800); }
.btn-outline { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-ghost-dark { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-light { background: #fff; color: var(--brand-800); }
.btn-light:hover { background: var(--brand-50); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.icon-btn { flex-shrink: 0; width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Верхняя панель ---------- */
.topbar { background: var(--brand-950); color: #b8c9be; font-size: 14px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a:hover, .tb-btn:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar .ico, .tb-btn { display: inline-flex; align-items: center; gap: 8px; }
.tb-btn { background: none; border: 0; padding: 0; color: inherit; font-size: 14px; }
.topbar .ico-svg { width: 15px; height: 15px; opacity: .85; }
.lang { display: flex; gap: 2px; background: rgba(255,255,255,.06); border-radius: 8px; padding: 2px; }
.lang a { padding: 3px 9px; border-radius: 6px; font-weight: 700; font-size: 13px; letter-spacing: .03em; }
.lang a[aria-current="true"] { background: var(--brand); color: #fff; }
@media (max-width: 1080px) { .topbar .hide-md { display: none; } }
@media (max-width: 760px) { .topbar .hide-sm { display: none; } }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(4,30,18,.06); }
.header .container { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: auto; height: var(--logo-h, 40px); max-width: 240px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-family: var(--font-head); font-size: 16px; font-weight: 800; color: var(--brand-800); letter-spacing: .01em; }
.brand-text span { font-size: 12px; color: var(--ink-3); letter-spacing: .03em; }
.brand-light .brand-text b { color: #fff; }
.brand-light .brand-text span { color: #9fb5a8; }

.nav { margin-left: auto; }
.nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav > ul > li { position: relative; }
.nav > ul > li > a, .nav > ul > li > button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 10px; font-weight: 700; font-size: 15px; background: none; border: 0; color: var(--ink); white-space: nowrap; }
.nav > ul > li > a:hover, .nav > ul > li > button:hover, .nav li.open > button { background: var(--brand-50); color: var(--brand-700); }
.nav a[aria-current="page"], .nav li.is-active > button { color: var(--brand); }
.nav .chev { width: 15px; height: 15px; transition: transform .2s; }
.nav li.open .chev { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 10px); left: -10px; min-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s; max-height: calc(100vh - 150px); overflow-y: auto; }
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav li.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 15px; font-weight: 700; }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--brand-50); }
.dropdown small { display: block; color: var(--ink-3); font-size: 13px; font-weight: 500; margin-top: 1px; }
.dd-ico { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.dd-ico .ico-svg { width: 18px; height: 18px; }
.header-cta { flex-shrink: 0; }
.mobile-only { display: none !important; }

.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1360px) { .header-cta { display: none; } }
@media (max-width: 1520px) { html[lang="kk"] .header-cta { display: none; } }
@media (max-width: 1120px) {
  .burger { display: inline-flex; }
  .search-open { margin-left: auto; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-top, 118px); background: var(--bg); overflow-y: auto; padding: 12px 16px 40px; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; margin: 0; }
  .menu-open .nav { transform: none; visibility: visible; }
  body.menu-open { overflow: hidden; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav > ul > li > a, .nav > ul > li > button { width: 100%; justify-content: space-between; padding: 15px 14px; font-size: 18px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px; display: none; min-width: 0; max-height: none; overflow: visible; }
  .nav li.open .dropdown { display: block; }
  .mobile-only { display: flex !important; }
  .mobile-extra { flex-direction: column; gap: 10px; padding: 18px 14px; }
  .mobile-extra .btn { width: 100%; }
  /* длинное название или крупный логотип не выталкивают кнопки меню и поиска за край */
  .brand { flex-shrink: 1; min-width: 0; } .brand-mark { flex-shrink: 0; }
  .brand-text { min-width: 0; } .brand-text b, .brand-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* То же мобильное меню, но по команде скрипта (main.js → fitHeader): когда пункты не помещаются в шапку
   на широком экране — длинное название, другой шрифт, казахская версия. Сначала прячется кнопка заявки. */
.header.no-cta .header-cta { display: none; }
.nav-collapsed .burger { display: inline-flex; }
.nav-collapsed .search-open { margin-left: auto; }
.nav-collapsed .nav { position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-top, 118px); background: var(--bg); overflow-y: auto; padding: 12px 16px 40px; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; margin: 0; }
.nav-collapsed .menu-open .nav { transform: none; visibility: visible; }
.nav-collapsed body.menu-open { overflow: hidden; }
.nav-collapsed .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; max-width: 720px; margin: 0 auto; }
.nav-collapsed .nav > ul > li > a, .nav-collapsed .nav > ul > li > button { width: 100%; justify-content: space-between; padding: 15px 14px; font-size: 18px; }
.nav-collapsed .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px; display: none; min-width: 0; max-height: none; overflow: visible; }
.nav-collapsed .nav li.open .dropdown { display: block; }
.nav-collapsed .mobile-only { display: flex !important; }
.nav-collapsed .mobile-extra { flex-direction: column; gap: 10px; padding: 18px 14px; }
.nav-collapsed .mobile-extra .btn { width: 100%; }
@media (max-width: 420px) {
  .brand-text span { display: none; } .brand-text b { font-size: 15px; } .brand-mark { height: calc(var(--logo-h, 40px) - 6px); max-width: 180px; }
  /* узкий экран: шапка не шире экрана, длинное название обрезается многоточием */
  .header .container { gap: 8px; }
  .brand { gap: 8px; flex-shrink: 1; min-width: 0; } .brand-mark { flex-shrink: 0; }
  .brand-text { min-width: 0; } .brand-text b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 85% -10%, #0a7a43 0%, transparent 60%), linear-gradient(160deg, var(--brand-900) 0%, var(--brand-950) 70%); padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.hero-pattern { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(32px, 4.2vw, 56px); }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lead { color: #c4d6ca; }
.hero .eyebrow { color: var(--lime); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-badge { display: flex; width: fit-content; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-size: 14px; color: #dbe8df; margin-bottom: 24px; }
.hero-badge b { background: var(--lime); color: var(--brand-950); border-radius: 999px; padding: 3px 12px; font-size: 13px; }
.hero-photo { position: relative; margin: 0; border-radius: 26px; overflow: visible; }
.hero-photo > img:first-child { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow-lg); }
.hero-photo figcaption { position: absolute; left: 18px; bottom: 18px; right: 120px; background: rgba(4,30,18,.75); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.12); padding: 10px 14px; border-radius: 12px; font-size: 14px; color: #e3eee7; }
.hero-logo { position: absolute; right: -18px; top: -22px; width: 112px; background: #fff; padding: 14px 16px; border-radius: 18px; box-shadow: var(--shadow-lg); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(40px, 5vw, 64px); background: var(--dark-line); border: 1px solid var(--dark-line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: rgba(4,30,18,.6); padding: 24px 26px; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(28px, 3vw, 42px); font-weight: 800; color: #fff; line-height: 1; margin-bottom: 8px; }
.stat span { color: #a5bcae; font-size: 15px; line-height: 1.4; display: block; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-photo { max-width: 620px; } .hero-logo { right: 12px; top: -20px; width: 92px; } }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .hero-photo figcaption { right: 18px; } }

/* ---------- Лента избранных новостей (верх главной) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-news { padding: 0 0 clamp(36px, 4vw, 56px); background: var(--brand-950); }
.hn-stage { position: relative; height: clamp(520px, 68vh, 680px); overflow: hidden; }
.hn-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; display: flex; align-items: flex-end; }
.hn-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hn-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transform: scale(1.06); transition: transform 8s ease-out; }
.hn-slide.is-active .hn-bg { transform: scale(1); }
.hn-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,40,22,.94) 0%, rgba(3,40,22,.78) 38%, rgba(3,40,22,.15) 75%), linear-gradient(0deg, rgba(3,40,22,.9) 0%, rgba(3,40,22,0) 45%); }
.hn-content { position: relative; z-index: 1; padding-bottom: clamp(88px, 10vh, 112px); }
.hn-content > * { max-width: 680px; }
.hn-slide.is-active .hn-content > * { animation: hnUp .7s ease both; }
.hn-slide.is-active .hn-content > :nth-child(2) { animation-delay: .08s; }
.hn-slide.is-active .hn-content > :nth-child(3) { animation-delay: .16s; }
.hn-slide.is-active .hn-content > :nth-child(4) { animation-delay: .24s; }
@keyframes hnUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hn-label { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 14px; color: #cfe0d5; font-weight: 600; }
.hn-label b { background: var(--lime); color: var(--brand-950); padding: 4px 12px; border-radius: 999px; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.hn-title { font-size: clamp(28px, 3.8vw, 52px); line-height: 1.1; margin-bottom: 16px; color: #fff; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.hn-title a:hover { color: var(--lime); }
.hn-desc { color: #d3e3d9; font-size: clamp(16px, 1.3vw, 19px); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero .hn-arrows { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 2; display: flex; justify-content: flex-end; align-items: center; gap: 12px; pointer-events: none; }
.hn-arrows > * { pointer-events: auto; }
.hn-arrows .icon-btn { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; backdrop-filter: blur(6px); }
.hn-arrows .icon-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.hn-arrows svg { width: 22px; height: 22px; }
.hn-count { color: #a9c0b2; font-weight: 700; font-size: 15px; min-width: 70px; text-align: center; font-variant-numeric: tabular-nums; }
.hn-count b { color: #fff; font-size: 20px; }
.hn-tabs { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 1px; margin-top: -1px; background: var(--dark-line); border: 1px solid var(--dark-line); border-radius: 0 0 var(--radius-lg) var(--radius-lg); overflow: hidden; position: relative; z-index: 2; }
.hn-tab { position: relative; text-align: left; background: rgba(3,40,22,.95); border: 0; color: #a9c0b2; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; transition: background .2s, color .2s; }
.hn-tab:hover { background: #063a21; color: #fff; }
.hn-tab.is-active { background: #064528; color: #fff; }
.hn-tab time { font-size: 12.5px; font-weight: 700; letter-spacing: .03em; color: var(--lime); }
.hn-tab-title { font-weight: 700; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hn-bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(255,255,255,.08); }
.hn-bar i { display: block; height: 100%; width: 0; background: var(--lime); }
.hn-tab.is-active .hn-bar i { width: 100%; transition: width var(--hn-dur, 7s) linear; }
.hero-news.paused .hn-tab.is-active .hn-bar i, .hn-tab.is-active.restart .hn-bar i { transition: none; width: 0; }
.hero-news .stats { margin-top: clamp(28px, 3vw, 40px); }
@media (max-width: 960px) {
  .hn-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 0 0 var(--radius) var(--radius); }
  .hn-tabs::-webkit-scrollbar { display: none; }
  .hn-tab { flex: 0 0 72%; scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .hn-stage { height: 560px; }
  .hn-slide::after { background: linear-gradient(0deg, rgba(3,40,22,.97) 0%, rgba(3,40,22,.85) 48%, rgba(3,40,22,.25) 100%); }
  .hn-content { padding-bottom: 92px; }
  .hero .hn-arrows { justify-content: space-between; bottom: 22px; }
  .hn-content .hero-actions .btn-ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hn-bg, .hn-slide.is-active .hn-bg { transform: none; transition: none; } .hn-slide.is-active .hn-content > * { animation: none; } }

/* ---------- Секции ---------- */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section-tight { padding: clamp(36px, 4vw, 56px) 0; }
.section-tight-top { padding-top: 40px; }
.section-alt { background: var(--surface); }
.section-dark { background: linear-gradient(170deg, var(--brand-900), var(--brand-950)); color: #fff; }
.section-dark .lead { color: #a9c0b2; }
.section-dark .eyebrow { color: var(--lime); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head > div { max-width: 780px; }
.section-head h2 { margin-bottom: 12px; }
.section-head .lead { margin: 0; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 30px; position: relative; overflow: hidden; }
.value::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 64px; background: var(--brand); }
.value .num { font-family: var(--font-head); font-size: 15px; color: var(--brand); font-weight: 800; margin-bottom: 36px; display: block; }
.value p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .ico-svg { color: var(--brand); width: 22px; height: 22px; margin-top: 2px; }
.photo-frame { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.photo-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-frame figcaption { position: absolute; left: 16px; bottom: 16px; display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,.92); color: var(--brand-800); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 10px; }
.photo-frame figcaption .ico-svg { width: 16px; height: 16px; }

.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cap { background: rgba(255,255,255,.04); border: 1px solid var(--dark-line); border-radius: var(--radius-lg); padding: 28px 26px; transition: background .2s, border-color .2s; }
.cap:hover { background: rgba(255,255,255,.07); border-color: rgba(140,198,63,.4); }
.cap-ico { width: 50px; height: 50px; border-radius: 14px; background: rgba(140,198,63,.14); color: var(--lime); display: grid; place-items: center; margin-bottom: 22px; }
.cap-ico .ico-svg { width: 24px; height: 24px; }
.cap p { color: #a9c0b2; margin: 0 0 16px; font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tags li { font-size: 13px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--dark-line); color: #cfe0d5; }
.feature { margin-top: 24px; display: grid; grid-template-columns: 1.1fr 1fr; border-radius: var(--radius-lg); overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid var(--dark-line); }
.feature img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.feature-text { padding: clamp(24px, 4vw, 48px); align-self: center; }
.feature-text p { color: #b9cdc1; }
@media (max-width: 1080px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .cap-grid, .feature { grid-template-columns: 1fr; } }

.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.svc:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow); }
.svc-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.svc:hover .svc-img img { transform: scale(1.04); }
.svc-cat { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.94); color: var(--brand-700); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 8px; }
.svc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.svc h3 { font-family: var(--font); font-weight: 800; font-size: 18px; line-height: 1.3; }
.svc p { color: var(--ink-2); font-size: 15px; margin: 0; }
.more { margin-top: auto; padding-top: 14px; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); }
.more .ico-svg { width: 16px; height: 16px; transition: transform .2s; }
a:hover .more .ico-svg { transform: translateX(3px); }
@media (max-width: 1080px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

.timeline { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; list-style: none; padding: 0; margin: 0; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--brand-100); }
.timeline li { position: relative; padding: 40px 22px 0 0; }
.timeline li::before { content: ""; position: absolute; top: 4px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 4px solid var(--brand); }
.timeline .year { font-family: var(--font-head); font-size: 28px; font-weight: 800; display: block; margin-bottom: 6px; color: var(--brand-800); }
.timeline p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.timeline-v, .page-content .timeline { grid-template-columns: 1fr; gap: 22px; }
@media (max-width: 960px) { .timeline { grid-template-columns: 1fr; gap: 24px; } }
.timeline-v::before, .page-content .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
.timeline-v li, .page-content .timeline li { padding: 0 0 0 42px; }
.timeline-v li::before, .page-content .timeline li::before { top: 8px; }
@media (max-width: 960px) { .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; } .timeline li { padding: 0 0 0 42px; } .timeline li::before { top: 8px; } }

/* ---------- Новости ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-grid-home { grid-template-columns: 1.5fr 1fr 1fr; }
.news-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.news-thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--brand-800), var(--brand-950)); overflow: hidden; display: grid; place-items: center; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-thumb img.ph { width: 34%; height: auto; opacity: .35; object-fit: contain; }
.news-card:hover .news-thumb img:not(.ph) { transform: scale(1.04); }
.news-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-body time { font-size: 14px; color: var(--ink-3); margin-bottom: 6px; display: block; font-weight: 600; }
.news-body h3 { font-family: var(--font); font-weight: 800; font-size: 18px; line-height: 1.35; }
.news-body p { color: var(--ink-2); font-size: 15.5px; }
.news-card.featured h3 { font-family: var(--font-head); font-size: clamp(20px, 2vw, 25px); }
.news-grid-all .news-card.featured { grid-column: span 2; flex-direction: row; }
.news-grid-all .news-card.featured .news-thumb { aspect-ratio: auto; flex: 1.2; min-height: 320px; }
.news-grid-all .news-card.featured .news-body { flex: 1; padding: 30px; justify-content: center; }
.news-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.news-row { display: flex; gap: 18px; align-items: center; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
.news-row:hover { border-color: var(--brand); }
.news-row time { color: var(--ink-3); font-size: 14px; flex-shrink: 0; min-width: 150px; white-space: nowrap; font-weight: 600; }
.news-row span { flex: 1; font-weight: 700; line-height: 1.35; }
.news-row .ico-svg { color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chips button { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 15px; }
.chips button.active, .chips button:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.archive-note { margin-top: 36px; }
.archive-note a { color: var(--brand); font-weight: 700; }
@media (max-width: 960px) { .news-grid, .news-grid-home { grid-template-columns: 1fr 1fr; } .news-grid-home .featured { grid-column: 1 / -1; } .news-grid-all .news-card.featured { grid-column: 1 / -1; } .news-list { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .news-grid, .news-grid-home { grid-template-columns: 1fr; } .news-grid-all .news-card.featured { flex-direction: column; } .news-grid-all .news-card.featured .news-thumb { min-height: 0; aspect-ratio: 16/10; } .news-row { flex-wrap: wrap; gap: 2px 12px; } .news-row time { width: auto; } }

/* Статья */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-top: 40px; padding-bottom: 72px; align-items: start; }
.article { max-width: 820px; min-width: 0; }
.article-cover { display: block; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 30px; background: var(--surface-2); }
.article-cover img { width: 100%; max-height: 560px; object-fit: cover; }
.article-meta { display: inline-flex; gap: 8px; align-items: center; color: #b9cdc1; font-weight: 600; }
.article-meta .ico-svg { width: 18px; height: 18px; }
.note-lang { display: flex; gap: 10px; align-items: center; background: var(--brand-50); color: var(--brand-800); padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-nav a { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s; }
.article-nav a:hover { border-color: var(--brand); }
.article-nav small { display: block; color: var(--brand); font-weight: 800; margin-bottom: 4px; }
.article-nav span { font-weight: 700; line-height: 1.35; display: block; }
.an-next { text-align: right; }
.side-news { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
.side-news time { display: block; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.side-news span { font-weight: 700; font-size: 15px; line-height: 1.35; }
.side-news:hover span { color: var(--brand); }
@media (max-width: 960px) { .article-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .article-nav { grid-template-columns: 1fr; } .an-next { text-align: left; } }

/* ---------- Корпоративная информация ---------- */
.info-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.info-card { min-width: 0; overflow-wrap: break-word; hyphens: auto; display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .2s, background .2s; }
.info-card:hover { border-color: var(--brand); transform: translateY(-2px); background: var(--surface); }
.ic-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; margin-bottom: 10px; }
.info-card b { font-size: 16px; line-height: 1.3; }
.info-card small { color: var(--ink-3); font-size: 13.5px; line-height: 1.4; }
@media (max-width: 1080px) { .info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .info-card { padding: 16px 14px; } .info-card b { font-size: 15px; } }

.careers { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: #fff; border-radius: var(--radius-lg); overflow: hidden; }
.careers > div { padding: clamp(28px, 5vw, 60px); align-self: center; }
.careers p { font-size: 18px; color: #e2f1e8; max-width: 520px; }
.careers img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; object-position: 55% 30%; }
@media (max-width: 860px) { .careers { grid-template-columns: 1fr; } }

.hotline { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 26px; border: 1px solid var(--line); border-left: 5px solid #c0392b; border-radius: var(--radius); background: var(--surface); }
.hotline > div { flex: 1; min-width: 240px; }
.hotline b { display: block; font-size: 18px; }
.hotline span { color: var(--ink-2); font-size: 15px; }
.hl-ico { width: 30px; height: 30px; color: #c0392b; }

.partners { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.partner { display: grid; place-items: center; height: 92px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s; }
.partner img { max-height: 60px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .2s; }
.partner:hover { border-color: var(--brand); }
.partner:hover img { filter: none; opacity: 1; }
@media (max-width: 960px) { .partners { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .partners { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Контакты и форма ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px; }
.contact-info { display: grid; gap: 12px; align-content: start; }
.contact-item { display: flex; gap: 16px; padding: 20px 22px; background: rgba(255,255,255,.05); border: 1px solid var(--dark-line); border-radius: var(--radius); }
.cc-ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(140,198,63,.14); color: var(--lime); display: grid; place-items: center; flex-shrink: 0; }
.contact-item small { display: block; color: #93ab9d; font-size: 14px; }
.contact-item a, .contact-item b { font-weight: 800; font-size: 18px; color: #fff; }
.contact-item a:hover { color: var(--lime); }
.cc-note { display: block; color: #a9c0b2; font-size: 14px; margin-top: 3px; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 280px; background: var(--surface-2); }
.section-dark .map { border-color: var(--dark-line); }
.map iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; }
.map-open { position: absolute; right: 12px; bottom: 12px; display: inline-flex; gap: 6px; align-items: center; background: #fff; color: var(--brand-800); font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 10px; box-shadow: var(--shadow); }
.map-open .ico-svg { width: 16px; height: 16px; }
.form { background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(22px, 3.4vw, 38px); border: 1px solid var(--line); position: relative; }
.form .hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }   /* поле-ловушка от спама: людям не видно */
.form h3 { font-size: 24px; margin-bottom: 4px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); transition: border-color .2s, background .2s; font-size: 16px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-3); margin: 6px 0 18px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex-shrink: 0; }
.form-status { margin-top: 12px; font-size: 15px; font-weight: 600; }
.form-status.ok { color: var(--brand); } .form-status.err { color: #b3261e; }
.contact-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 960px) { .contact-grid, .contact-grid-2 { grid-template-columns: 1fr; } }

/* ---------- Внутренние страницы ---------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--brand-800), var(--brand-950)); color: #fff; padding: clamp(40px, 6vw, 76px) 0 clamp(34px, 5vw, 56px); }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent, #000 70%); pointer-events: none; }
.page-hero-bg { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 360px; opacity: .07; pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(28px, 4vw, 50px); max-width: 980px; }
.page-hero .lead { color: #bfd3c6; margin-bottom: 0; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: #a2baab; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: .5; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.toc a { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 14px; font-weight: 600; }
.toc a:hover { background: rgba(255,255,255,.16); }
.page-hero-404 { min-height: 56vh; display: flex; align-items: center; }
.code404 { font-family: var(--font-head); font-size: clamp(80px, 14vw, 160px); font-weight: 800; line-height: 1; color: var(--lime); display: block; margin-bottom: 8px; }

.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 44px; padding-bottom: 40px; align-items: start; }
.page-content { min-width: 0; }
.block { margin-bottom: 44px; }
.block-title { font-size: clamp(22px, 2.3vw, 30px); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--brand-100); }
.side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.side-nav, .side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.side h4 { font-family: var(--font); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 4px 8px 12px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-nav a { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; font-weight: 700; font-size: 15px; line-height: 1.3; }
.side-nav a .ico-svg { width: 18px; height: 18px; color: var(--brand); }
.side-nav a:hover { background: var(--brand-50); }
.side-nav a[aria-current="page"] { background: var(--brand); color: #fff; }
.side-nav a[aria-current="page"] .ico-svg { color: #fff; }
.side-card { display: grid; gap: 10px; }
.side-card > a:not(.btn):not(.side-news) { display: flex; gap: 10px; align-items: center; font-weight: 700; padding: 4px 8px; }
.side-card > a .ico-svg { width: 18px; height: 18px; color: var(--brand); }
.side-card h4 { margin-bottom: 4px; }
@media (max-width: 960px) { .page-layout { grid-template-columns: minmax(0, 1fr); } .side { position: static; } }

/* Текст */
.prose { color: var(--ink); }
.prose p, .prose li { color: var(--ink-2); }
.prose-lg { font-size: calc(var(--fs, 17px) + 1px); }
.prose h2, .prose h3, .prose h4 { margin-top: 1.4em; color: var(--ink); }
.prose h3 { font-size: 21px; }
.prose a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose img { border-radius: var(--radius); margin: 16px 0; height: auto; }
.prose b, .prose strong { color: var(--ink); }
.prose blockquote { margin: 1em 0; padding: 14px 20px; border-left: 4px solid var(--brand); background: var(--brand-50); border-radius: 0 12px 12px 0; }
.callout { display: flex; gap: 16px; padding: 24px 26px; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius-lg); }
.callout > .ico-svg { width: 28px; height: 28px; color: var(--brand); margin-top: 2px; }
.callout h3 { color: var(--brand-800); }
.callout .prose p:last-child { margin-bottom: 0; }

/* Документы */
.docs { display: grid; gap: 10px; }
.doc { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.doc:hover { border-color: var(--brand-100); box-shadow: var(--shadow); }
.doc-ico { position: relative; width: 48px; height: 52px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.doc-ico .ico-svg { width: 24px; height: 24px; }
.doc-ext { position: absolute; bottom: -6px; right: -6px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 5px; border-radius: 5px; letter-spacing: .04em; }
.doc-body { flex: 1; min-width: 0; }
.doc-body b { display: block; line-height: 1.35; }
.doc-body small { color: var(--ink-3); font-size: 14px; }
.doc-actions { display: flex; gap: 8px; flex-shrink: 0; }
.doc-arr { color: var(--ink-3); }
.doc-link:hover .doc-arr { color: var(--brand); }
@media (max-width: 640px) { .doc { flex-wrap: wrap; } .doc-actions { width: 100%; } .doc-actions .btn { flex: 1; } }

/* Люди */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.person-photo { aspect-ratio: 4/4.2; background: linear-gradient(135deg, var(--brand-50), var(--brand-100)); display: grid; place-items: center; overflow: hidden; }
.person-photo a { display: block; width: 100%; height: 100%; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 30px; }
.person-body { padding: 20px 22px 22px; }
.person h3 { font-family: var(--font); font-weight: 800; font-size: 19px; margin-bottom: 4px; }
.person .role { color: var(--brand); font-weight: 700; font-size: 15px; display: block; }
.person .note { color: var(--ink-3); font-size: 14px; margin: 10px 0 0; }
.bio { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.bio summary { cursor: pointer; font-weight: 800; color: var(--brand); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.bio summary::after { content: "+"; font-size: 20px; line-height: 1; }
.bio[open] summary::after { content: "−"; }
.bio summary::-webkit-details-marker { display: none; }
.bio .prose { font-size: 15.5px; margin-top: 10px; }

/* Галерея и карточки */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.g-item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--surface-2); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-item:hover img { transform: scale(1.05); }
.g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(4,30,18,.85)); color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cards-1 { grid-template-columns: 1fr; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 110px; }
.card:target { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.card-img { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-img:hover img { transform: scale(1.04); }
.cards-1 .card.has-img { flex-direction: row; }
.cards-1 .card-img { flex: 1; aspect-ratio: auto; min-height: 240px; }
.cards-1 .card-body { flex: 1.2; }
.card-body { padding: 22px 24px 24px; }
.card h3 { font-family: var(--font); font-weight: 800; font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 15.5px; margin: 0 0 12px; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.specs li { font-size: 13.5px; background: var(--brand-50); color: var(--brand-800); padding: 4px 10px; border-radius: 8px; font-weight: 600; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } .cards-1 .card.has-img { flex-direction: column; } .cards-1 .card-img { aspect-ratio: 16/9; min-height: 0; } }

/* Таблицы */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table, .prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td, .prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th, .prose th { background: var(--brand-800); color: #fff; font-weight: 700; position: sticky; top: 0; }
.table tbody tr:nth-child(even), .prose tbody tr:nth-child(even) { background: #f8faf8; }
.table tbody tr:hover { background: var(--brand-50); }
.table tr:last-child td { border-bottom: 0; }
.table-big { font-size: 14.5px; }
.table-tmc td:first-child, .table-tmc th:first-child { width: 70px; color: var(--ink-3); }
.table-tmc td:nth-child(3), .table-tmc td:nth-child(4) { white-space: nowrap; }
.table-tools { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.table-filter { flex: 1; min-width: 240px; max-width: 480px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); }
.table-filter:focus-within { border-color: var(--brand); }
.table-filter .ico-svg { width: 18px; height: 18px; color: var(--ink-3); }
.table-filter input { border: 0; outline: 0; min-height: 48px; flex: 1; background: transparent; }
.table-count { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.table-more { text-align: center; margin-top: 16px; }

/* Контакт-карточки и факты */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.contact-card { display: flex; gap: 14px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card .cc-ico { background: var(--brand-50); color: var(--brand); }
.contact-card small { display: block; color: var(--ink-3); font-size: 13.5px; }
.contact-card a, .contact-card b { font-weight: 800; font-size: 16.5px; color: var(--ink); word-break: break-word; }
.contact-card a:hover { color: var(--brand); }
.contact-card .cc-note { color: var(--ink-3); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.fact { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); border-top: 4px solid var(--brand); }
.fact b { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--brand-800); line-height: 1.1; margin-bottom: 6px; }
.fact span { color: var(--ink-2); font-size: 14.5px; }

/* ---------- Подвал ---------- */
.footer { background: var(--brand-950); color: #9fb5a8; padding: 64px 0 26px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid var(--dark-line); }
.footer h4 { font-family: var(--font); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #fff; font-weight: 800; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer a:hover { color: #fff; }
.footer .about { margin: 18px 0 22px; max-width: 360px; }
.f-contacts a, .f-contacts span { display: flex; gap: 10px; align-items: flex-start; }
.f-contacts .ico-svg { width: 17px; height: 17px; margin-top: 3px; color: var(--lime); }
.social { display: flex; gap: 8px; }
.social a { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--dark-line); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 14px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Поиск ---------- */
.search-modal { position: fixed; inset: 0; z-index: 300; background: rgba(4,30,18,.6); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.search-box { width: 100%; max-width: 720px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.search-field { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); }
.search-field > .ico-svg { color: var(--brand); }
.search-field input { flex: 1; border: 0; outline: 0; font-size: 18px; min-height: 52px; background: transparent; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-results { max-height: 60vh; overflow-y: auto; padding: 8px; }
.search-results:empty { display: none; }
.sr-item { display: block; padding: 12px 14px; border-radius: 12px; }
.sr-item:hover, .sr-item.active { background: var(--brand-50); }
.sr-item b { display: block; font-size: 16px; }
.sr-item span { color: var(--ink-3); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-item mark { background: #e3f3c8; color: inherit; border-radius: 3px; }
.sr-none { padding: 20px; text-align: center; color: var(--ink-3); }

/* ---------- Лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(2,14,8,.94); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 8px; }
.lightbox figcaption { color: #dbe8df; font-size: 15px; text-align: center; }
.lightbox .icon-btn { position: absolute; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; width: 50px; height: 50px; }
.lightbox .icon-btn svg { width: 24px; height: 24px; }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); } .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox { padding: 70px 10px; } .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } }

/* ---------- Наверх ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 50px; height: 50px; border-radius: 50%; background: var(--brand); color: #fff; border: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s; z-index: 90; box-shadow: var(--shadow-lg); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } * { transition: none !important; } }

/* ---------- Версия для слабовидящих ---------- */
body.a11y { --fs: 21px; font-size: 21px; --bg: #fff; --surface: #fff; --surface-2: #f0f0f0; --ink: #000; --ink-2: #000; --ink-3: #222; --line: #000; }
body.a11y .reveal { opacity: 1; transform: none; }
body.a11y .hero, body.a11y .section-dark, body.a11y .page-hero, body.a11y .footer, body.a11y .topbar { background: #000; }
body.a11y img:not(.brand-mark) { filter: grayscale(1); }
body.a11y .prose a, body.a11y .footer a { text-decoration: underline; }

@media print { .reveal { opacity: 1 !important; transform: none !important; } .table tr[hidden] { display: table-row !important; } .table-tools, .table-more, .notice, .hn-arrows, .hn-tabs, .chips { display: none !important; } .news-card[hidden] { display: flex !important; } .topbar, .header, .footer, .to-top, .side, .search-modal, .lightbox { display: none !important; } .page-hero, .hero, .section-dark { background: #fff !important; color: #000 !important; } .page-layout { grid-template-columns: 1fr; } }

/* ---------- возможности панели управления ---------- */
/* объявление над шапкой */
.notice { background: var(--brand-50); color: var(--brand-900); border-bottom: 1px solid var(--brand-100); font-size: 15px; }
.notice .container { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.notice p { margin: 0; flex: 1; font-weight: 600; line-height: 1.45; }
.notice a { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 800; white-space: nowrap; }
.notice-ico { width: 20px; height: 20px; flex: none; color: var(--brand); }
.notice-close { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.notice-close:hover { background: rgba(0,0,0,.06); }
.notice-close .ico-svg { width: 18px; height: 18px; }
.notice-warning { background: #fff6dc; color: #5c4300; border-color: #f3dfa2; }
.notice-warning .notice-ico { color: #c98a00; }
.notice-success { background: var(--brand); color: #fff; border-color: var(--brand); }
.notice-success .notice-ico { color: #fff; }
.notice-success .notice-close:hover { background: rgba(255,255,255,.15); }

/* оформление текста, выбранное в панели */
.prose-sm { font-size: calc(var(--fs, 17px) - 2px); }
.prose.prose-lg p, .prose.prose-lg li { line-height: 1.65; }
.ta-center { text-align: center; }
.ta-right { text-align: right; }
.ta-justify { text-align: justify; hyphens: auto; }
.tc-brand p, .tc-brand li, .tc-brand { color: var(--brand-800); }
.tc-muted p, .tc-muted li, .tc-muted { color: var(--ink-3); }
.tc-dark p, .tc-dark li { color: var(--ink); }
.prose del, .prose s { color: var(--ink-3); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose code { background: var(--surface-2); padding: .1em .4em; border-radius: 6px; font-size: .92em; }
.prose table { margin: 1em 0; }
.prose .table-wrap { margin: 1.2em 0; }
.prose .table-wrap table { margin: 0; }

/* виды выделенного блока */
.callout-warning { background: #fff8e6; border-color: #f3dfa2; }
.callout-warning > .ico-svg, .callout-warning h3 { color: #a06a00; }
.callout-danger { background: #fdeeee; border-color: #f2c4c4; }
.callout-danger > .ico-svg, .callout-danger h3 { color: #b42318; }
.callout-success > .ico-svg { color: var(--brand); }

/* вставки в тексте: кнопка, документ, видео */
.prose .btn-p { margin: 1.2em 0; }
.prose .btn-p a.btn { text-decoration: none; color: #fff; white-space: normal; padding-top: 10px; padding-bottom: 10px; max-width: 100%; }
.ta-center .btn-p { text-align: center; }
.prose .docs-inline { margin: 1.2em 0; }
.prose .docs-inline a { text-decoration: none; }
.prose .docs-inline .btn-primary { color: #fff; }
.prose .docs-inline .btn-outline { color: var(--ink); }
.video { position: relative; aspect-ratio: 16 / 9; margin: 1.4em 0; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* таблицы */
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-fc td:first-child { font-weight: 700; color: var(--ink); }
.table-compact th, .table-compact td { padding: 8px 10px; font-size: 14px; }
.table-tools .btn { flex: none; }
.table-note { margin: 10px 2px 0; color: var(--ink-3); font-size: 14px; }
.prose td[align="right"], .prose th[align="right"] { text-align: right; font-variant-numeric: tabular-nums; }
.prose td[align="center"], .prose th[align="center"] { text-align: center; }
body.a11y .notice { background: #000; color: #fff; }
