/* ==========================================================================
   Buxoroenergomarkaz — public site
   Шрифт Montserrat, цвета из логотипа (синий / малиновый), гос-стиль
   ========================================================================== */

:root {
    --blue: #093eb6;
    --blue-dark: #062c82;
    --navy: #041c52;
    --blue-soft: #e9eefb;
    --blue-tint: #f3f6fd;
    --red: #e6005c;
    --red-soft: #fdeaf1;
    --text: #17203a;
    --muted: #5d6780;
    --line: #dfe4ef;
    --bg: #f5f7fb;
    --white: #fff;
    --radius: 10px;
    --shadow: 0 2px 6px rgba(9, 62, 182, .06), 0 10px 30px rgba(9, 62, 182, .08);
    --shadow-sm: 0 1px 3px rgba(9, 62, 182, .08);
    --container: 1240px;
    --font: 'Montserrat', 'Segoe UI', Roboto, Arial, sans-serif;
    --fs: 16px;
}

/* --- base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--fs); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip; /* off-canvas меню не должно давать горизонтальный скролл */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; line-height: 1.25; color: var(--navy); }
h1 { font-size: 2.1rem; } h2 { font-size: 1.6rem; } h3 { font-size: 1.15rem; } .h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.empty--box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 60px 20px; }
.empty--box .icon { color: var(--blue); opacity: .5; margin: 0 auto 12px; }
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; color: #fff; }

/* --- buttons ------------------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: .95rem;
    border: 2px solid transparent; transition: all .15s; line-height: 1.2; white-space: nowrap;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--accent { background: var(--red); color: #fff; }
.btn--accent:hover { background: #c4004e; color: #fff; }
.btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: 8px 14px; font-size: .85rem; }

/* --- accessibility panel ------------------------------------------------ */
.a11y-panel { background: #111; color: #fff; border-bottom: 2px solid #ffd400; }
.a11y-panel__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 10px; }
.a11y-panel__label { margin-left: 12px; font-size: .85rem; opacity: .8; }
.a11y-panel__label:first-child { margin-left: 0; }
.a11y-btn { min-width: 40px; height: 36px; padding: 0 12px; border: 2px solid #fff; background: #000; color: #fff; border-radius: 6px; font-weight: 700; }
.a11y-btn.is-active { outline: 3px solid #ffd400; }
.a11y-btn--c1 { background: #fff; color: #000; }
.a11y-btn--c2 { background: #000; color: #ffd400; border-color: #ffd400; }
.a11y-btn--reset, .a11y-btn--close { margin-left: auto; font-weight: 600; }
.a11y-btn--close { margin-left: 0; }

html.a11y-font-1 { --fs: 19px; }
html.a11y-font-2 { --fs: 22px; }
html.a11y-theme-1 body { background: #fff; color: #000; }
html.a11y-theme-1 *:not(.a11y-panel):not(.a11y-panel *) { background-image: none !important; box-shadow: none !important; }
html.a11y-theme-1 .header, html.a11y-theme-1 .topbar, html.a11y-theme-1 .navbar, html.a11y-theme-1 .footer, html.a11y-theme-1 .hero, html.a11y-theme-1 .cta,
html.a11y-theme-1 .content-card, html.a11y-theme-1 .news-card, html.a11y-theme-1 .service-card, html.a11y-theme-1 .sidebar__box, html.a11y-theme-1 .section--alt, html.a11y-theme-1 .page-head, html.a11y-theme-1 .leader-card, html.a11y-theme-1 .doc-item, html.a11y-theme-1 .stat, html.a11y-theme-1 .link-chip, html.a11y-theme-1 .vacancy-card, html.a11y-theme-1 .album-card {
    background: #fff !important; color: #000 !important; border: 1px solid #000 !important;
}
html.a11y-theme-1 a, html.a11y-theme-1 h1, html.a11y-theme-1 h2, html.a11y-theme-1 h3, html.a11y-theme-1 .btn, html.a11y-theme-1 span, html.a11y-theme-1 p, html.a11y-theme-1 b, html.a11y-theme-1 small, html.a11y-theme-1 time, html.a11y-theme-1 button { color: #000 !important; }
html.a11y-theme-1 .btn { background: #fff !important; border: 2px solid #000 !important; }
html.a11y-theme-2 body { background: #000; color: #ffd400; }
html.a11y-theme-2 *:not(.a11y-panel):not(.a11y-panel *) { background-image: none !important; box-shadow: none !important; }
html.a11y-theme-2 .header, html.a11y-theme-2 .topbar, html.a11y-theme-2 .navbar, html.a11y-theme-2 .footer, html.a11y-theme-2 .hero, html.a11y-theme-2 .cta,
html.a11y-theme-2 .content-card, html.a11y-theme-2 .news-card, html.a11y-theme-2 .service-card, html.a11y-theme-2 .sidebar__box, html.a11y-theme-2 .section--alt, html.a11y-theme-2 .page-head, html.a11y-theme-2 .leader-card, html.a11y-theme-2 .doc-item, html.a11y-theme-2 .stat, html.a11y-theme-2 .link-chip, html.a11y-theme-2 .vacancy-card, html.a11y-theme-2 .album-card, html.a11y-theme-2 .nav__sub, html.a11y-theme-2 .filter__item {
    background: #000 !important; color: #ffd400 !important; border: 1px solid #ffd400 !important;
}
html.a11y-theme-2 a, html.a11y-theme-2 h1, html.a11y-theme-2 h2, html.a11y-theme-2 h3, html.a11y-theme-2 .btn, html.a11y-theme-2 span, html.a11y-theme-2 p, html.a11y-theme-2 b, html.a11y-theme-2 small, html.a11y-theme-2 time, html.a11y-theme-2 button, html.a11y-theme-2 li, html.a11y-theme-2 dd, html.a11y-theme-2 dt { color: #ffd400 !important; }
html.a11y-theme-2 .btn { background: #000 !important; border: 2px solid #ffd400 !important; }
html.a11y-theme-2 .brand img { filter: grayscale(1) brightness(3); }
/* В контрастных режимах убираем все цветные фоны/акценты */
html.a11y-theme-1 .news-card__date, html.a11y-theme-1 .news-row__date, html.a11y-theme-1 .tag, html.a11y-theme-1 .lang__item, html.a11y-theme-1 .lang-switch__btn, html.a11y-theme-1 .lang-pills__item, html.a11y-theme-1 .filter__item, html.a11y-theme-1 .service-card__icon, html.a11y-theme-1 .doc-item__icon, html.a11y-theme-1 .vacancy-card__icon, html.a11y-theme-1 .leader-row__photo, html.a11y-theme-1 .share a, html.a11y-theme-1 .social a, html.a11y-theme-1 .to-top, html.a11y-theme-1 .pagination__item, html.a11y-theme-1 .field input, html.a11y-theme-1 .field textarea, html.a11y-theme-1 .prose th, html.a11y-theme-1 .lead, html.a11y-theme-1 .alert { background: #fff !important; color: #000 !important; border: 1px solid #000 !important; }
html.a11y-theme-1 .page-head::after, html.a11y-theme-1 .section__title::before, html.a11y-theme-1 .sidebar__title::after, html.a11y-theme-1 .hero::after { background: #000 !important; }
html.a11y-theme-1 .icon { color: #000 !important; }
html.a11y-theme-2 .news-card__date, html.a11y-theme-2 .news-row__date, html.a11y-theme-2 .tag, html.a11y-theme-2 .lang__item, html.a11y-theme-2 .lang-switch__btn, html.a11y-theme-2 .lang-pills__item, html.a11y-theme-2 .service-card__icon, html.a11y-theme-2 .doc-item__icon, html.a11y-theme-2 .vacancy-card__icon, html.a11y-theme-2 .leader-row__photo, html.a11y-theme-2 .share a, html.a11y-theme-2 .social a, html.a11y-theme-2 .to-top, html.a11y-theme-2 .pagination__item, html.a11y-theme-2 .field input, html.a11y-theme-2 .field textarea, html.a11y-theme-2 .prose th, html.a11y-theme-2 .lead, html.a11y-theme-2 .alert, html.a11y-theme-2 .news-row, html.a11y-theme-2 .leader-row, html.a11y-theme-2 .result { background: #000 !important; color: #ffd400 !important; border: 1px solid #ffd400 !important; }
html.a11y-theme-2 .page-head::after, html.a11y-theme-2 .section__title::before, html.a11y-theme-2 .sidebar__title::after, html.a11y-theme-2 .hero::after { background: #ffd400 !important; }
html.a11y-theme-2 .icon { color: #ffd400 !important; }
html.a11y-theme-1 .lang__item.is-active, html.a11y-theme-1 .filter__item.is-active, html.a11y-theme-1 .pagination__item.is-active { background: #000 !important; color: #fff !important; }
html.a11y-theme-2 .lang__item.is-active, html.a11y-theme-2 .filter__item.is-active, html.a11y-theme-2 .pagination__item.is-active { background: #ffd400 !important; color: #000 !important; }
html.a11y-images img, html.a11y-images .map, html.a11y-images .news-card__media, html.a11y-images .photo-strip, html.a11y-images .photo-grid { display: none !important; }

/* --- header ------------------------------------------------------------- */
.header { position: sticky; top: calc(-1 * var(--topbar-h, 40px)); z-index: 50; } /* прилипает так, что topbar уезжает, а navbar остаётся сверху */
.topbar { background: var(--navy); color: #fff; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__contacts { display: flex; gap: 22px; }
.topbar__contacts a { color: #fff; opacity: .9; display: inline-flex; align-items: center; gap: 6px; }
.topbar__contacts a:hover { opacity: 1; color: #fff; }
.topbar__contacts .icon { width: 15px; height: 15px; }
.topbar__tools { display: flex; align-items: center; gap: 6px; }
.topbar__btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; color: #fff; padding: 6px 10px; border-radius: 6px; opacity: .9; }
.topbar__btn:hover { background: rgba(255, 255, 255, .12); opacity: 1; }
.topbar__btn .icon { width: 16px; height: 16px; }
/* --- language switcher --------------------------------------------------- */
.lang-switch { position: relative; margin-left: 8px; }
.lang-switch__btn {
    display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px 0 11px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: 100px;
    color: #fff; font-weight: 600; font-size: .8rem; letter-spacing: .02em; transition: background .15s, border-color .15s;
}
.lang-switch__btn:hover, .lang-switch.is-open .lang-switch__btn { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .45); }
.lang-switch__btn .icon--chevron { transition: transform .2s; opacity: .8; }
.lang-switch.is-open .lang-switch__btn .icon--chevron { transform: rotate(180deg); }
.lang-switch__code { font-weight: 800; }
.lang-switch__name { font-weight: 500; opacity: .85; }
.lang-switch__menu {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 190px; padding: 6px;
    background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(4, 28, 82, .22), 0 0 0 1px var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
    transition: opacity .18s, transform .18s, visibility .18s;
}
.lang-switch__menu::before { content: ''; position: absolute; right: 18px; top: -6px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); border-radius: 2px; box-shadow: -1px -1px 0 var(--line); }
.lang-switch.is-open .lang-switch__menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.lang-switch__item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: .9rem; font-weight: 500; transition: background .12s; }
.lang-switch__item b { width: 30px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 800; letter-spacing: .05em; border-radius: 6px; background: var(--blue-soft); color: var(--blue); }
.lang-switch__item .icon--check { margin-left: auto; color: var(--red); }
.lang-switch__item:hover { background: var(--blue-tint); color: var(--blue); }
.lang-switch__item.is-active { color: var(--navy); font-weight: 600; }
.lang-switch__item.is-active b { background: var(--red); color: #fff; }
/* мобильные «пилюли» в off-canvas меню */
.lang-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lang-pills__item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 10px; background: var(--blue-soft); color: var(--navy); border: 2px solid transparent; text-align: center; }
.lang-pills__item b { font-size: .95rem; font-weight: 800; }
.lang-pills__item span { font-size: .72rem; opacity: .75; }
.lang-pills__item.is-active { background: #fff; border-color: var(--red); color: var(--red); }
/* старые классы (совместимость) */
.lang { display: flex; gap: 2px; margin-left: 8px; }
.lang__item { color: #fff; padding: 5px 9px; border-radius: 6px; font-weight: 600; opacity: .75; }
.lang__item.is-active { background: var(--red); opacity: 1; }

.navbar { background: var(--white); box-shadow: 0 2px 12px rgba(4, 28, 82, .08); }
.navbar__inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { flex-shrink: 0; }
.brand img { width: 220px; height: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
    display: inline-flex; align-items: center; gap: 4px; padding: 10px 13px; border-radius: 8px;
    color: var(--navy); font-weight: 600; font-size: .9rem; background: none; border: 0; text-align: left;
}
.nav__link:hover, .nav__item.is-active > .nav__link { background: var(--blue-soft); color: var(--blue); }
.nav__caret { display: none; background: none; border: 0; color: var(--navy); padding: 4px; }
.has-children > .nav__link::after { content: ''; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -3px 0 0 4px; opacity: .6; }
.nav__sub {
    position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border-radius: 10px;
    box-shadow: 0 12px 40px rgba(4, 28, 82, .18); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all .18s; border-top: 3px solid var(--red);
}
.nav__item:hover > .nav__sub, .nav__item.is-open > .nav__sub, .nav__item:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__item:last-child .nav__sub, .nav__item:nth-last-child(2) .nav__sub { left: auto; right: 0; }
.nav__sub a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--text); font-size: .88rem; font-weight: 500; }
.nav__sub a:hover, .nav__sub a.is-active { background: var(--blue-soft); color: var(--blue); }
.nav__mobile-tools { display: none; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px; margin-left: auto; }
.burger span { width: 24px; height: 2px; background: var(--navy); transition: all .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.search-bar { border-top: 1px solid var(--line); background: var(--blue-tint); }
.search-bar__form { display: flex; align-items: center; gap: 12px; padding-block: 12px; }
.search-bar__form .icon { color: var(--blue); }
.search-bar__form input { flex: 1; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; }
.search-bar__form input:focus { outline: 2px solid var(--blue); border-color: transparent; }

/* --- hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(115deg, var(--navy) 0%, var(--blue) 65%, #1252d8 100%); isolation: isolate; }
.hero__photo { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -3; animation: hero-zoom 28s ease-in-out infinite alternate; }
.hero__overlay { position: absolute; inset: 0; z-index: -2; background: linear-gradient(105deg, rgba(4, 28, 82, .96) 0%, rgba(9, 62, 182, .82) 55%, rgba(18, 82, 216, .55) 100%); }
.hero--photo .hero__overlay { background: linear-gradient(105deg, rgba(4, 28, 82, .95) 0%, rgba(6, 44, 130, .84) 50%, rgba(9, 62, 182, .45) 100%); }
.hero__pattern, .footer__pattern, .page-head__pattern, .cta__stripes { position: absolute; inset: 0; pointer-events: none; }
.hero__pattern, .footer__pattern, .page-head__pattern { background: url('../img/pattern.svg') 0 0/120px; opacity: .08; animation: drift 60s linear infinite; }
.hero__pattern { z-index: -1; opacity: .05; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1; pointer-events: none; }
.hero__blob--1 { width: 520px; height: 520px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(255, 0, 102, .55), transparent 65%); animation: float 14s ease-in-out infinite; }
.hero__blob--2 { width: 420px; height: 420px; left: 30%; bottom: -220px; background: radial-gradient(circle, rgba(0, 51, 255, .7), transparent 65%); animation: float 18s ease-in-out infinite reverse; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; padding-block: 88px 110px; }
.hero__eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 100px; margin-bottom: 18px; backdrop-filter: blur(4px); background: rgba(255, 255, 255, .06); }
.hero__title { color: #fff; font-size: 2.6rem; font-weight: 800; line-height: 1.15; margin-bottom: 18px; text-shadow: 0 2px 20px rgba(4, 28, 82, .4); }
.hero__lead { font-size: 1.05rem; opacity: .92; max-width: 560px; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { position: relative; overflow: hidden; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 12px; padding: 22px 20px; transition: transform .25s, background .25s; }
.stat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .14) 50%, transparent 70%); transform: translateX(-100%); animation: shine 6s linear infinite; }
.stat:nth-child(2)::after { animation-delay: 1.5s; } .stat:nth-child(3)::after { animation-delay: 3s; } .stat:nth-child(4)::after { animation-delay: 4.5s; }
.stat:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .14); }
.stat b { display: block; font-size: 2.2rem; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.stat span { font-size: .85rem; opacity: .85; }
.stat:nth-child(1) b { color: #ff7fb2; }
.hero__waves { position: absolute; left: 0; right: 0; bottom: -2px; height: 90px; overflow: hidden; z-index: 1; pointer-events: none; }
.wave { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; }
.wave path { fill: currentColor; }
.wave--cold { color: rgba(0, 51, 255, .35); animation: wave 18s linear infinite; }
.wave--hot { color: rgba(255, 0, 102, .28); animation: wave 13s linear infinite reverse; }
.wave--white { color: var(--bg); animation: wave 24s linear infinite; }

@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes drift { from { background-position: 0 0; } to { background-position: 240px 120px; } }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.12); } }
@keyframes shine { 0% { transform: translateX(-100%); } 40%, 100% { transform: translateX(100%); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes stripes { from { background-position: 0 0; } to { background-position: 80px 0; } }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.9); opacity: 0; } }

/* Кнопка с бликом */
.btn--shine { position: relative; overflow: hidden; }
.btn--shine::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translateX(-100%); animation: shine 4s linear infinite; }

/* Появление при скролле */
.reveal, .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal--delay { transition-delay: .12s; }
.reveal.is-visible, .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > :nth-child(2) { transition-delay: .1s; } .reveal-stagger.is-visible > :nth-child(3) { transition-delay: .2s; }
.reveal-stagger.is-visible > :nth-child(4) { transition-delay: .3s; } .reveal-stagger.is-visible > :nth-child(5) { transition-delay: .4s; }
.reveal-stagger.is-visible > :nth-child(6) { transition-delay: .5s; } .reveal-stagger.is-visible > :nth-child(n+7) { transition-delay: .6s; }

/* Бегущая строка объявлений */
.ticker { background: var(--white); border-bottom: 1px solid var(--line); font-size: .86rem; }
.ticker__inner { display: flex; align-items: center; gap: 16px; height: 42px; }
.ticker__label { position: relative; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .75rem; padding-right: 16px; border-right: 1px solid var(--line); }
.ticker__label::before { content: ''; position: absolute; left: -14px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--red); }
.ticker__label::after { content: ''; position: absolute; left: -14px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--red); animation: pulse-ring 1.6s ease-out infinite; }
.ticker__inner { padding-left: 14px; }
.ticker__track { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__move { display: flex; gap: 48px; width: max-content; animation: ticker 45s linear infinite; }
.ticker__track:hover .ticker__move { animation-play-state: paused; }
.ticker__item { color: var(--navy); white-space: nowrap; font-weight: 500; }
.ticker__item:hover { color: var(--blue); }
.ticker__item time { color: var(--muted); font-weight: 400; margin-right: 6px; }

/* Блок «О предприятии» на главной */
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: 14px; box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about__media::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--blue-soft); border-radius: 14px; z-index: -1; background: url('../img/pattern.svg') 0 0/80px; opacity: .6; animation: drift 40s linear infinite; }
.about__badge { position: absolute; left: -20px; bottom: 28px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .8); border-radius: 12px; padding: 14px 20px; box-shadow: var(--shadow); text-align: center; }
.about__badge b { display: block; font-size: 2rem; font-weight: 800; line-height: 1; color: var(--blue); }
.about__badge span { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.about__lead { font-weight: 700; color: var(--navy); font-size: 1.1rem; margin-top: 18px; }
.about__list { margin: 18px 0 26px; }
.about__list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: .95rem; }
.about__list .icon { color: var(--red); margin-top: 3px; }

/* --- sections ----------------------------------------------------------- */
.section { padding-block: 56px; }
.section--alt { background: var(--white); }
.section--links { padding-block: 40px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section__title { position: relative; padding-left: 18px; margin: 0; font-size: 1.7rem; font-weight: 800; color: var(--navy); }
.section__title::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 6px; border-radius: 3px; background: linear-gradient(var(--red) 50%, var(--blue) 50%); }
.section__title--sm { font-size: 1.2rem; margin-bottom: 20px; }
.section__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

/* --- news --------------------------------------------------------------- */
.news-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; }
.news-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-card__media { position: relative; display: block; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--blue-soft), #d5def5); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-card:hover .news-card__media img { transform: scale(1.06); }
.news-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4, 28, 82, .55)); opacity: .9; transition: opacity .3s; pointer-events: none; }
.news-card__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: .5; }
.news-card__date { position: absolute; left: 14px; top: 14px; background: var(--red); color: #fff; border-radius: 8px; padding: 6px 10px; text-align: center; line-height: 1.1; }
.news-card__date b { display: block; font-size: 1.3rem; font-weight: 800; }
.news-card__date span { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; }
.news-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card__title { font-size: 1.05rem; margin: 0; }
.news-card__title a { color: var(--navy); }
.news-card__title a:hover { color: var(--blue); }
.news-card--large .news-card__title { font-size: 1.3rem; }
.news-card__text { color: var(--muted); font-size: .92rem; margin: 0; }
.tag { display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); background: var(--blue-soft); padding: 3px 9px; border-radius: 100px; }
.news-grid__list { display: flex; flex-direction: column; gap: 10px; }
.news-row { display: flex; align-items: center; gap: 16px; background: var(--white); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.news-row:hover { box-shadow: var(--shadow); }
.news-row__date { flex-shrink: 0; width: 52px; text-align: center; background: var(--blue-soft); color: var(--blue); border-radius: 8px; padding: 6px 4px; line-height: 1.1; }
.news-row__date b { display: block; font-size: 1.2rem; font-weight: 800; }
.news-row__date span { font-size: .65rem; text-transform: uppercase; letter-spacing: .04em; }
.news-row__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.news-row__body .tag { font-size: .62rem; padding: 2px 8px; }
.news-row__title { color: var(--navy); font-weight: 600; font-size: .92rem; line-height: 1.4; }
/* Цвет метки по категории: e'lonlar — малиновый, tadbirlar — зелёный, остальное — синий */
.tag--elonlar { color: var(--red); background: var(--red-soft); }
.tag--tadbirlar { color: #14683a; background: #e6f7ec; }
.section__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.section__tab { font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 100px; background: var(--white); border: 1px solid var(--line); color: var(--muted); transition: all .15s; }
.section__tab:hover { color: var(--blue); border-color: var(--blue); }
.section__tab--elonlar:hover { color: var(--red); border-color: var(--red); }
.section__tab--tadbirlar:hover { color: #14683a; border-color: #14683a; }
.news-row--sm { padding: 10px 12px; box-shadow: none; border: 1px solid var(--line); }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* --- services ----------------------------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { display: flex; flex-direction: column; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; color: var(--text); transition: all .2s; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--blue); transform: scaleY(0); transition: transform .2s; }
.service-card:hover { box-shadow: var(--shadow); border-color: transparent; background: #fff; color: var(--text); }
.service-card:hover::before { transform: scaleY(1); }
.service-card__icon { width: 60px; height: 60px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue); }
.service-card__icon--heat { background: var(--red-soft); color: var(--red); }
.service-card__icon--water { background: #e3f3ff; color: #0077d6; }
.service-card__title { margin: 6px 0 0; font-size: 1.15rem; }
.service-card__text { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.service-card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--blue); margin-top: 6px; }

/* --- leaders / documents ------------------------------------------------ */
.leaders-list { display: flex; flex-direction: column; gap: 10px; }
.leader-row { display: flex; align-items: center; gap: 14px; background: var(--white); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow-sm); color: var(--text); }
.leader-row:hover { box-shadow: var(--shadow); }
.leader-row__photo { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.leader-row__photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-row b { display: block; color: var(--navy); }
.leader-row__pos { font-size: .85rem; color: var(--muted); }
.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc-item { display: flex; align-items: center; gap: 14px; background: var(--white); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow-sm); }
.doc-list--card .doc-item { padding: 16px 20px; }
.doc-item__icon { position: relative; width: 44px; height: 44px; border-radius: 10px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc-item__icon small { position: absolute; bottom: -6px; right: -6px; background: var(--navy); color: #fff; font-size: .55rem; font-weight: 700; padding: 2px 4px; border-radius: 4px; }
.doc-item__body { flex: 1; min-width: 0; }
.doc-item__body a { display: block; color: var(--navy); font-weight: 600; font-size: .95rem; }
.doc-item__body a:hover { color: var(--blue); }
.doc-item__body small { color: var(--muted); font-size: .8rem; }
.doc-item__dl { color: var(--blue); padding: 8px; }
.leaders-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.leader-card { display: flex; gap: 20px; background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.leader-card__photo { width: 120px; height: 150px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--blue-soft); }
.leader-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-card__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--blue); opacity: .6; }
.leader-card__pos { font-size: .78rem; color: var(--red); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.leader-card__name { font-size: 1.1rem; margin: 4px 0 10px; }
.leader-card__name a { color: var(--navy); }
.leader-card__info li { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; margin-bottom: 6px; }
.leader-card__info .icon { color: var(--blue); margin-top: 3px; }
.leader-card__info small { display: block; color: var(--muted); font-size: .75rem; }
.leader-profile { display: grid; grid-template-columns: 220px 1fr; gap: 32px; }
.leader-profile__photo { border-radius: 10px; overflow: hidden; background: var(--blue-soft); aspect-ratio: 3/4; }
.leader-profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin-bottom: 20px; font-size: .95rem; }
.dl dt { color: var(--muted); font-weight: 500; }
.dl dd { margin: 0; font-weight: 600; color: var(--navy); }

/* --- gallery ------------------------------------------------------------ */
.photo-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.photo-strip__item { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--blue-soft); }
.photo-strip__item img, .photo-grid a img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photo-strip__item:hover img, .photo-grid a:hover img { transform: scale(1.05); }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo-grid a { aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: var(--blue-soft); display: block; }
.photo-grid--inline { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.albums-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.album-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); color: var(--text); transition: box-shadow .2s; }
.album-card:hover { box-shadow: var(--shadow); }
.album-card__cover { display: flex; align-items: center; justify-content: center; aspect-ratio: 16/10; background: var(--blue-soft); color: var(--blue); overflow: hidden; }
.album-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.album-card__body { display: block; padding: 14px 18px; }
.album-card__body b { display: block; color: var(--navy); }
.album-card__body small { color: var(--muted); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4, 28, 82, .92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox__close, .lightbox__prev, .lightbox__next { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* --- cta / links -------------------------------------------------------- */
.cta { position: relative; overflow: hidden; background: linear-gradient(100deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; }
.cta__stripes { background: repeating-linear-gradient(115deg, transparent 0 30px, rgba(255, 255, 255, .035) 30px 40px); background-size: 80px 100%; animation: stripes 3s linear infinite; }
.cta__inner { position: relative; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 44px; }
.cta__title { color: #fff; margin-bottom: 6px; }
.cta p { margin: 0; opacity: .9; max-width: 560px; }
.cta__actions { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.cta__phone { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 1.15rem; }
.cta__phone:hover { color: #fff; }
.cta__phone small { display: block; font-size: .72rem; font-weight: 500; opacity: .8; text-transform: uppercase; letter-spacing: .05em; }
.cta__phone .icon { color: #ff7fb2; }
.links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.link-chip { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; color: var(--navy); font-size: .9rem; font-weight: 600; transition: all .15s; }
.link-chip .icon { grid-row: 1 / 3; color: var(--blue); }
.link-chip small { color: var(--muted); font-weight: 400; font-size: .75rem; }
.link-chip:hover { border-color: var(--blue); color: var(--blue); }

/* --- inner pages -------------------------------------------------------- */
.page-head { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.page-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--red) 0 30%, var(--blue) 30%); }
.page-head .container { position: relative; padding-block: 32px 36px; z-index: 1; }
.page-head__title { color: #fff; font-size: 2rem; margin: 8px 0 0; }
.page-head__subtitle { margin: 6px 0 0; opacity: .85; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; opacity: .85; }
.breadcrumbs a { color: #fff; }
.breadcrumbs .is-current { opacity: .7; }
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding-block: 40px 64px; align-items: start; }
.contact-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; padding-block: 40px 64px; align-items: start; }
.content-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 32px 36px; }
.content-card__cover { width: 100%; border-radius: 8px; margin-bottom: 24px; max-height: 480px; object-fit: cover; }
.lead { font-size: 1.1rem; font-weight: 500; color: var(--navy); border-left: 4px solid var(--red); padding-left: 16px; margin-bottom: 24px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; color: var(--muted); font-size: .85rem; margin-bottom: 20px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta .icon { color: var(--blue); }
.share { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.share a { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); align-items: center; justify-content: center; }
.share a:hover { background: var(--blue); color: #fff; }

.prose { font-size: 1rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: 8px; margin: 1em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--blue-tint); color: var(--navy); font-weight: 600; width: 34%; }
.prose blockquote { margin: 1em 0; padding: 12px 20px; border-left: 4px solid var(--blue); background: var(--blue-tint); border-radius: 0 8px 8px 0; }
.prose a { text-decoration: underline; }
.prose iframe { max-width: 100%; }

.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }
.sidebar__box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px 22px; }
.sidebar__title { font-size: 1rem; padding-bottom: 12px; border-bottom: 2px solid var(--blue-soft); margin-bottom: 12px; position: relative; }
.sidebar__title::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 48px; height: 2px; background: var(--red); }
.sidebar__menu li + li { border-top: 1px solid var(--line); }
.sidebar__menu a { display: block; padding: 9px 0 9px 14px; color: var(--text); font-size: .9rem; font-weight: 500; position: relative; }
.sidebar__menu a::before { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--line); transform: translateY(-50%); transition: background .15s; }
.sidebar__menu a:hover, .sidebar__menu a.is-active { color: var(--blue); }
.sidebar__menu a:hover::before, .sidebar__menu a.is-active::before { background: var(--red); }
.sidebar__links a { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: .86rem; color: var(--text); }
.sidebar__links a:hover { color: var(--blue); }
.sidebar__links .icon { color: var(--blue); }
.sidebar__news { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: .9rem; }
.contact-list .icon { color: var(--blue); flex-shrink: 0; margin-top: 3px; }
.contact-list a { color: var(--text); }
.contact-list a:hover { color: var(--blue); }
.contact-list--lg li { font-size: 1rem; margin-bottom: 18px; }
.contact-list--lg small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.contact-list--lg a { font-weight: 600; color: var(--navy); }
.sidebar__box--contact .btn { margin-top: 8px; }
.map { margin-top: 24px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.map iframe { width: 100%; height: 320px; border: 0; display: block; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 28px; }
.layout .filter { margin-top: 0; }
.filter__item { padding: 8px 16px; border-radius: 100px; background: var(--white); border: 1px solid var(--line); color: var(--text); font-size: .88rem; font-weight: 500; }
.filter__item:hover { border-color: var(--blue); color: var(--blue); }
.filter__item.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.container > .cards-grid { margin-bottom: 40px; }
.container > .albums-grid, .container > .photo-grid, .container > .services-grid { margin-block: 40px; }
.pagination { display: flex; justify-content: center; gap: 6px; padding-block: 8px 48px; }
.pagination__item { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--white); border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.pagination__item:hover { border-color: var(--blue); color: var(--blue); }
.pagination__item.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination__item.is-disabled { opacity: .4; }

.vacancy-list { display: flex; flex-direction: column; gap: 12px; }
.vacancy-card { display: flex; gap: 16px; background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); color: var(--text); }
.vacancy-card:hover { box-shadow: var(--shadow); }
.vacancy-card__icon { width: 48px; height: 48px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vacancy-card__body { display: flex; flex-direction: column; gap: 4px; }
.vacancy-card__body b { color: var(--navy); font-size: 1.05rem; }
.vacancy-card__body span { color: var(--muted); font-size: .9rem; }
.vacancy-card__body small { color: var(--blue); font-weight: 600; font-size: .8rem; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--navy); }
.field input, .field textarea { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-weight: 400; background: var(--bg); transition: all .15s; width: 100%; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(9, 62, 182, .12); }
.field textarea { resize: vertical; }
.form__row--captcha { grid-template-columns: minmax(0, 320px); }
.field--captcha input { max-width: 120px; font-size: 1.1rem; letter-spacing: .05em; text-align: center; }
.field--captcha small { font-weight: 400; }
.form__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; font-size: .92rem; }
.alert--success { background: #e6f7ec; color: #14683a; }
.alert--error { background: var(--red-soft); color: #9e0040; }
.alert ul { padding-left: 1.2em; list-style: disc; }
.search-form { display: flex; gap: 12px; margin-bottom: 28px; }
.search-form input { flex: 1; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; }
.results { display: flex; flex-direction: column; gap: 14px; }
.result { background: var(--white); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-sm); }
.result__title { display: block; font-weight: 700; font-size: 1.05rem; color: var(--navy); margin: 8px 0 6px; }
.result p { margin: 0; color: var(--muted); font-size: .9rem; }
.error-page { text-align: center; padding-block: 80px; }
.error-page .logo-mark { margin: 0 auto 20px; }
.error-page h1 { font-size: 5rem; color: var(--blue); margin: 0; line-height: 1; }
.error-page p { color: var(--muted); margin-bottom: 24px; }

/* --- footer ------------------------------------------------------------- */
.footer { position: relative; background: var(--navy); color: rgba(255, 255, 255, .85); margin-top: auto; overflow: hidden; }
.footer__grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-block: 52px 40px; }
.footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer ul li { margin-bottom: 8px; }
.footer a { color: rgba(255, 255, 255, .85); font-size: .9rem; }
.footer a:hover { color: #fff; }
.footer p { font-size: .85rem; line-height: 1.6; opacity: .8; }
.footer__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.footer__brand .logo-mark { animation: bob 5s ease-in-out infinite; }
.footer__brand-name { font-size: 1.25rem; font-weight: 800; color: #fff; line-height: 1.1; }
.footer__brand-name span { color: #ff5c99; }
.footer__brand-sub { font-size: .75rem; opacity: .75; }
.footer .contact-list li { color: rgba(255, 255, 255, .85); }
.footer .contact-list .icon { color: #ff5c99; }
.social { display: flex; gap: 8px; margin-top: 8px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: inline-flex; align-items: center; justify-content: center; }
.social a:hover { background: var(--red); }
.footer__bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 20px; padding-block: 16px; font-size: .78rem; opacity: .75; }
.footer__note { max-width: 520px; text-align: right; }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; border: 0; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: all .2s; z-index: 40; display: flex; align-items: center; justify-content: center; }
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--red); }

/* --- responsive --------------------------------------------------------- */
@media (max-width: 1100px) {
    .nav__link { padding: 10px 9px; font-size: .84rem; }
    .brand img { width: 180px; }
    .cards-grid, .services-grid, .albums-grid, .links-grid { grid-template-columns: repeat(2, 1fr); }
    .photo-strip { grid-template-columns: repeat(4, 1fr); }
    .photo-grid { grid-template-columns: repeat(3, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .burger { display: flex; }
    .nav { position: fixed; inset: 0; top: 0; background: #fff; margin: 0; padding: 90px 20px 30px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility 0s .25s; z-index: 45; }
    .nav.is-open { transform: translateX(0); visibility: visible; transition: transform .25s; }
    .navbar.is-open .navbar__inner { position: relative; z-index: 46; }
    .brand, .burger { position: relative; z-index: 47; }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__item { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); }
    .nav__link { padding: 14px 4px; font-size: 1rem; border-radius: 0; }
    .nav__link:hover, .nav__item.is-active > .nav__link { background: none; }
    .has-children > .nav__link::after { display: none; }
    .nav__caret { display: flex; align-items: center; transition: transform .2s; }
    .nav__item.is-open .nav__caret { transform: rotate(180deg); }
    .nav__sub { position: static; grid-column: 1 / -1; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; padding: 0 0 8px 12px; min-width: 0; }
    .nav__item.is-open > .nav__sub { display: block; }
    .nav__item:hover > .nav__sub { display: none; }
    .nav__item.is-open:hover > .nav__sub { display: block; }
    .nav__mobile-tools { display: flex; justify-content: center; margin-top: 20px; }
    .lang-switch__name { display: none; }
    .topbar__contacts a span, .topbar__btn span { display: none; }
    .topbar .lang-switch { margin-left: 4px; }
    .lang-switch__btn { height: 28px; padding: 0 8px; font-size: .75rem; }
    .hero__inner { grid-template-columns: 1fr; gap: 32px; padding-block: 48px 56px; }
    .hero__title { font-size: 2rem; }
    .layout, .contact-layout, .two-col { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .news-grid { grid-template-columns: 1fr; }
    .leaders-grid { grid-template-columns: 1fr; }
    .leader-profile { grid-template-columns: 1fr; }
    .leader-profile__photo { max-width: 240px; }
    .cta__inner { flex-direction: column; align-items: flex-start; }
    .about__inner { grid-template-columns: 1fr; gap: 36px; }
    .about__badge { left: 12px; }
    .hero__inner { padding-block: 56px 100px; }
    .content-card { padding: 24px 20px; }
}
@media (max-width: 600px) {
    :root { --fs: 15px; }
    .topbar__contacts { gap: 12px; }
    .topbar__contacts a { font-size: .78rem; white-space: nowrap; }
    .topbar__contacts a:nth-child(2) { display: none; }
    .topbar__inner { gap: 8px; }
    .topbar__tools { gap: 0; }
    .topbar__btn { padding: 6px 7px; }
    .brand img { width: 160px; }
    .navbar__inner { min-height: 70px; }
    .hero__stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat { padding: 16px 14px; }
    .stat b { font-size: 1.7rem; }
    .ticker__label span, .ticker__label { font-size: .68rem; }
    .hero__blob { display: none; }
    .section { padding-block: 40px; }
    .section__head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .section__tabs { margin-left: 0; }
    .section__title { font-size: 1.4rem; }
    .cards-grid, .services-grid, .albums-grid, .links-grid, .photo-grid--inline { grid-template-columns: 1fr; }
    .photo-strip { grid-template-columns: repeat(3, 1fr); }
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .footer__bottom-inner { flex-direction: column; }
    .footer__note { text-align: left; }
    .form__row { grid-template-columns: 1fr; }
    .form__footer { flex-direction: column; align-items: stretch; }
    .page-head__title { font-size: 1.5rem; }
    .leader-card { flex-direction: column; }
    .doc-item { flex-wrap: wrap; }
    .doc-item .btn { width: 100%; }
    .a11y-btn--reset { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
    .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}
html.a11y-theme-1 .hero__photo, html.a11y-theme-2 .hero__photo, html.a11y-theme-1 .hero__blob, html.a11y-theme-2 .hero__blob, html.a11y-theme-1 .hero__waves, html.a11y-theme-2 .hero__waves, html.a11y-theme-1 .cta__stripes, html.a11y-theme-2 .cta__stripes { display: none !important; }
html.a11y-theme-1 .stat::after, html.a11y-theme-2 .stat::after, html.a11y-theme-1 .btn--shine::after, html.a11y-theme-2 .btn--shine::after { display: none; }
@media print {
    .topbar, .nav, .burger, .footer, .to-top, .a11y-panel, .cta, .sidebar, .share { display: none !important; }
}
