/*!
 * Burja Naturalisacji a Obcjanstva · БНО
 * Оформление портала — в одном стиле с сайтом министерства (mer.vilgeria.com), тёмная тема.
 */
:root {
    --g-950: #030805;
    --g-900: #07110b;
    --g-800: #0d2016;
    --g-700: #173526;
    --g-600: #214c35;
    --g-500: #35704e;
    --g-400: #86c7a0;
    --g-200: #cfe6d8;
    --g-100: #0e1b14;
    --g-50: #07100b;

    --bg: #050a07;
    --surface: #09110c;
    --ink: #e2ebe5;
    --muted: #9aada1;
    --dim: #75887c;
    --line: #15221a;
    --line-2: #22332a;
    --link: #7fd0a0;
    --brand: #cfe6d8;
    --focus: #7fd0a0;
    --danger: #f0a79c;

    --font-serif: 'PT Serif', Georgia, 'Times New Roman', serif;
    --font-sans: 'Manrope', 'Segoe UI', Roboto, system-ui, sans-serif;

    --wrap: 1200px;
    --gutter: 24px;
    --nav-h: 54px;
    --radius: 3px;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 14px 30px -16px rgba(0, 0, 0, 0.9);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    color-scheme: dark;
}

html[data-fs="-1"] { font-size: 14.5px; }
html[data-fs="1"] { font-size: 18px; }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--g-600); color: #fff; }

html {
    font-size: 16px;
    background: var(--bg);
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; overflow-wrap: break-word; hyphens: auto; }
.stage__title { hyphens: manual; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.utility, .mainnav, .footer, .callout, .stage, .block--green { --focus: #c4ead3; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: fixed; left: 12px; top: -64px; z-index: 5000; padding: 10px 16px; border-radius: 3px; background: #fff; color: var(--g-900); font-weight: 700; transition: top 0.2s; }
.skip:focus { top: 12px; }

.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.flagmark { display: inline-flex; flex: none; width: 22px; height: 14px; overflow: hidden; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2); }
.flagmark i { flex: 1; }
.flagmark i:nth-child(1) { background: #2a6045; }
.flagmark i:nth-child(2) { background: #c4c9c5; }
.flagmark i:nth-child(3) { background: #1a1d1b; }
.flagmark--wide { width: 56px; height: 6px; border-radius: 1px; }

/* ---------- Верхняя полоса ---------- */

.utility { background: var(--g-950); color: rgba(241, 247, 243, 0.75); font-size: 0.8rem; }
.utility__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.utility__id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.utility__id span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.utility__tools { display: flex; align-items: center; gap: 10px; flex: none; }

.fs { display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 3px; overflow: hidden; }
.fs button { min-width: 30px; height: 26px; padding: 0 6px; border: 0; background: transparent; color: inherit; font-weight: 800; font-size: 0.8rem; line-height: 1; }
.fs button + button { border-left: 1px solid rgba(255, 255, 255, 0.2); }
.fs button[data-fs="-1"] { font-size: 0.7rem; }
.fs button[data-fs="1"] { font-size: 0.95rem; }
.fs small { font-size: 0.65rem; vertical-align: super; }
.fs button:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.fs button[aria-pressed="true"] { background: var(--g-700); color: #fff; }

/* ---------- Шапка ---------- */

.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 18px; min-width: 0; color: var(--brand); }
.brand__mark { flex: none; width: auto; height: 58px; filter: drop-shadow(0 0 1px rgba(255, 253, 247, 0.6)); }
.brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand__text small { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.brand__text strong { margin-top: 2px; font-family: var(--font-serif); font-size: clamp(1.2rem, 2.6vw, 1.9rem); font-weight: 700; color: var(--brand); }
.brand__text em { margin-top: 3px; font-style: normal; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--link); }

/* ---------- Главное меню ---------- */

.mainnav { position: sticky; top: 0; z-index: 1000; background: var(--g-800); color: #fff; box-shadow: 0 8px 18px -14px rgba(0, 0, 0, 0.7); }
.mainnav__in { position: relative; display: flex; align-items: stretch; justify-content: space-between; gap: 16px; height: var(--nav-h); }
.mainnav__panel { display: flex; min-width: 0; }
.menu { display: flex; align-items: stretch; }
.menu__item { position: relative; display: flex; }
.menu__link {
    position: relative; display: flex; align-items: center; gap: 6px; padding: 0 18px; border: 0; background: none;
    font-size: 0.95rem; font-weight: 700; color: rgba(255, 255, 255, 0.88); white-space: nowrap; transition: background 0.2s, color 0.2s;
}
.menu__link::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; background: var(--g-500); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.menu__item:hover > .menu__link { background: var(--g-700); color: #fff; }
.menu__link.is-active { color: #fff; }
.menu__link.is-active::after { transform: none; }

.staff { align-self: center; flex: none; padding: 7px 16px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 3px; font-size: 0.86rem; font-weight: 700; transition: background 0.2s, border-color 0.2s; }
.staff:hover { background: var(--g-600); border-color: var(--g-500); }

.burger { display: none; align-items: center; gap: 10px; align-self: center; height: 38px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 3px; background: transparent; color: #fff; font-size: 0.9rem; font-weight: 700; }
.burger .i { width: 20px; height: 20px; }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

@media (max-width: 980px) {
    .masthead__in { gap: 16px; }
    .masthead .masthead__cta { display: none; }
    .burger { display: inline-flex; }
    .mainnav__panel {
        position: absolute; left: 0; right: 0; top: 100%; z-index: 30; max-height: calc(100vh - var(--nav-h) - 20px); overflow-y: auto;
        background: var(--g-900); border-top: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.7);
        opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
    }
    .mainnav__panel.is-open { opacity: 1; visibility: visible; transform: none; }
    .menu { flex-direction: column; width: 100%; padding: 8px var(--gutter) 16px; }
    .menu__item { flex-direction: column; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .menu__link { justify-content: space-between; padding: 15px 4px; font-size: 1.02rem; }
    .menu__link::after { display: none; }
    .menu__item:hover > .menu__link { background: none; }
}

/* ---------- Кнопки и мелочи ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border: 1.5px solid transparent; border-radius: 3px;
    font-size: 0.94rem; font-weight: 700; line-height: 1.2; text-align: center; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--primary { background: var(--g-600); border-color: var(--g-600); color: #fff; }
.btn--primary:hover { background: var(--g-500); border-color: var(--g-500); color: var(--g-950); }
.btn--light { background: #fff; color: var(--g-800); }
.btn--light:hover { background: #dcebe2; color: #0d2016; }
.btn--glass { border-color: rgba(255, 255, 255, 0.5); color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }
.btn--line { border-color: var(--line-2); background: transparent; color: var(--ink); }
.btn--line:hover { border-color: var(--g-500); color: var(--link); }
.btn--wide { width: 100%; padding: 15px 22px; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.kicker { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--link); }
.kicker--light { color: var(--g-400); }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.92rem; color: var(--link); }
.more .i { transition: transform 0.25s var(--ease); }
.more:hover .i { transform: translateX(3px); }
.link { color: var(--link); font-weight: 600; border-bottom: 1px solid color-mix(in srgb, var(--link) 40%, transparent); }

.badge { display: inline-block; padding: 3px 12px; border: 1px solid currentColor; border-radius: 2px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--link); }
.badge--dim { color: var(--muted); }

/* Заголовок раздела с зелёной чертой, как на сайте министерства */
.shead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); position: relative; }
.shead::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 64px; height: 3px; background: var(--g-500); }
.shead__title { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.2; }

.block { padding: clamp(40px, 5vw, 64px) 0; }
.block--tint { background: var(--g-50); border-block: 1px solid var(--line); }
.block--green { background: radial-gradient(70% 120% at 100% 0%, rgba(95, 174, 126, 0.25), transparent 65%), linear-gradient(135deg, var(--g-800), var(--g-950)); color: #f1f7f3; }
.lede { max-width: 760px; margin-bottom: 30px; font-size: 1.05rem; color: var(--muted); }

/* ---------- Главный блок ---------- */

.top { padding: 28px 0 8px; }
.top__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }

.stage { position: relative; min-width: 0; overflow: hidden; background: var(--g-900); min-height: 440px; border-radius: var(--radius); }
.stage__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7); }
.stage__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 21, 14, 0.96) 0%, rgba(8, 21, 14, 0.66) 40%, rgba(8, 21, 14, 0.12) 74%); }
.stage__text { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px 32px 34px; color: #fff; }
.stage__title { font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.18; }
.stage__lead { max-width: 620px; font-size: 1rem; line-height: 1.55; color: rgba(255, 255, 255, 0.86); }
.stage__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

.side { display: grid; grid-template-rows: auto 1fr; gap: 24px; min-width: 0; }

.minister { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--g-500); border-radius: var(--radius); box-shadow: var(--shadow); }
.minister__photo { display: grid; place-items: center; width: 96px; height: 112px; overflow: hidden; background: linear-gradient(135deg, var(--g-800), var(--g-900)); border: 1px solid var(--line-2); }
.minister__photo img { width: 100%; height: 100%; object-fit: cover; }
.minister__photo img[src$="bno.png"] { width: 42%; height: auto; opacity: 0.7; object-fit: contain; }
.minister__body { display: grid; gap: 6px; min-width: 0; }
.minister__role { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--link); }
.minister__name { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.25; }
.minister__name.is-vacant { font-style: italic; font-weight: 400; color: var(--muted); }

.callout { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px 24px; background: radial-gradient(90% 90% at 100% 0%, rgba(95, 174, 126, 0.3), transparent 65%), linear-gradient(160deg, var(--g-700), var(--g-900)); border: 1px solid var(--g-600); border-radius: var(--radius); color: #f1f7f3; }
.callout__ico { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); }
.callout__ico .i { width: 22px; height: 22px; }
.callout__title { font-family: var(--font-serif); font-size: 1.45rem; line-height: 1.2; }
.callout p { color: rgba(241, 247, 243, 0.82); font-size: 0.96rem; }
.callout .btn { margin-top: auto; }

@media (max-width: 980px) {
    .top__grid { grid-template-columns: minmax(0, 1fr); }
    .stage { min-height: 380px; }
}
@media (max-width: 560px) {
    .stage__text { padding: 22px 20px 26px; }
    .minister { grid-template-columns: 72px minmax(0, 1fr); padding: 18px; }
    .minister__photo { width: 72px; height: 88px; }
}

/* ---------- О Бюро ---------- */

.duties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.duty { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--line-2); }
.duty__ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; background: var(--g-800); border: 1px solid var(--line-2); color: var(--g-400); }
.duty__ico .i { width: 22px; height: 22px; }
.duty h3 { margin-bottom: 6px; font-family: var(--font-serif); font-size: 1.2rem; }
.duty p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) { .duties { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Руководство ---------- */

.lead { display: flex; flex-direction: column; gap: 40px; }
.lead__state { color: var(--dim); }
.tier__label { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.tier__label::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.tier__label b { color: var(--link); font-family: var(--font-serif); font-size: 0.95rem; letter-spacing: 0.06em; }

.tier__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tier--1 .tier__grid { grid-template-columns: minmax(0, 440px); }
.tier--2 .tier__grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.person { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 16px; align-items: start; padding: 20px 20px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--g-500); border-radius: var(--radius); transition: border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s; }
.person:hover { transform: translateY(-2px); border-color: var(--g-600); border-left-color: var(--g-500); box-shadow: var(--shadow); }
.person__av { grid-row: 1 / span 4; display: grid; place-items: center; width: 72px; height: 88px; overflow: hidden; background: linear-gradient(135deg, var(--g-800), var(--g-900)); border: 1px solid var(--line-2); }
.person__av img { width: 100%; height: 100%; object-fit: cover; }
.tier--1 .person { grid-template-columns: 88px minmax(0, 1fr); }
.tier--1 .person__av { width: 88px; height: 108px; }
.person__title { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); line-height: 1.4; }
.person__name { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.25; }
.person.is-vacant .person__name { font-style: italic; font-weight: 400; color: var(--muted); }
.person__dept { font-size: 0.88rem; color: var(--muted); }
.person__ids { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.person__ids span { padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 2px; font-size: 0.74rem; color: var(--muted); }
.person__ids b { color: var(--dim); font-weight: 700; margin-right: 4px; }
@media (max-width: 420px) { .person { grid-template-columns: 60px minmax(0, 1fr); } .person__av { width: 60px; height: 76px; } }

/* ---------- Новости ---------- */

.empty { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border: 1px dashed var(--line-2); background: var(--surface); }
.empty__mark { flex: none; width: 30px; height: auto; opacity: 0.55; }
.empty p { color: var(--muted); }

/* ---------- Обращение ---------- */

.appeal { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.appeal__head { position: sticky; top: calc(var(--nav-h) + 24px); }
.appeal__title { margin: 10px 0 14px; font-family: var(--font-serif); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; }
.appeal__lead { color: rgba(241, 247, 243, 0.82); font-size: 1.02rem; }
.appeal__notes { margin-top: 24px; display: grid; gap: 12px; }
.appeal__notes li { position: relative; padding-left: 26px; font-size: 0.92rem; color: rgba(241, 247, 243, 0.78); }
.appeal__notes li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 12px; height: 2px; background: var(--g-400); }

.appeal__box { padding: 32px; background: var(--surface); border: 1px solid var(--g-600); border-top: 3px solid var(--g-500); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); }
.appeal__box [hidden] { display: none !important; }
.appeal__closed, .appeal__done { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 8px 0; }
.appeal__closed h3, .appeal__done h3 { font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.25; }
.appeal__closed p, .appeal__done p { color: var(--muted); }
.appeal__num { padding: 10px 18px; border: 1px solid var(--g-500); background: var(--g-800); font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.8rem); letter-spacing: 0.04em; color: #fff !important; }
.appeal__hint { font-size: 0.9rem; }

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
.form__row--2 { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { display: flex; justify-content: space-between; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.03em; color: var(--muted); }
.field small { font-weight: 600; color: var(--dim); }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; border-radius: 3px; background: var(--bg); border: 1px solid var(--line-2);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237fd0a0' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; }
.field select option { background: var(--surface); color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--g-500); box-shadow: inset 0 0 0 1px var(--g-500); }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: var(--danger); }
.field__err { display: none; font-style: normal; font-size: 0.82rem; color: var(--danger); }
.field.is-bad .field__err, .field__err[data-err-for].is-on { display: block; }
.field__err[data-err-for] { margin-top: -8px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 3px; border: 1px solid var(--line-2); background: var(--bg); display: grid; place-items: center; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.check input:checked { background: var(--g-600); border-color: var(--g-500); }
.check input:checked::after { content: ''; width: 6px; height: 11px; margin-top: -2px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.form__error { padding: 12px 16px; border-radius: 3px; font-size: 0.9rem; color: var(--danger); background: rgba(240, 167, 156, 0.08); border: 1px solid rgba(240, 167, 156, 0.3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 960px) {
    .appeal { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .appeal__head { position: static; }
}
@media (max-width: 560px) {
    .form__row--2 { grid-template-columns: 1fr; }
    .appeal__box { padding: 24px 18px; }
}

/* ---------- Подвал ---------- */

.footer { background: var(--g-950); color: rgba(241, 247, 243, 0.75); border-top: 3px solid var(--g-700); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-block: 44px 36px; }
.footer__logo { display: flex; align-items: center; gap: 14px; color: #fff; }
.footer__logo img { width: auto; height: 42px; filter: drop-shadow(0 0 1px rgba(255, 253, 247, 0.6)); }
.footer__logo span { display: flex; flex-direction: column; line-height: 1.25; }
.footer__logo b { font-family: var(--font-serif); font-size: 1.05rem; }
.footer__logo em { margin-top: 3px; font-style: normal; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--g-400); }
.footer__brand p { margin-top: 16px; max-width: 380px; font-size: 0.88rem; line-height: 1.6; color: rgba(241, 247, 243, 0.62); }
.footer nav h2 { margin-bottom: 14px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--g-400); }
.footer nav ul { display: grid; gap: 9px; }
.footer nav a { font-size: 0.92rem; color: rgba(241, 247, 243, 0.78); transition: color 0.2s; }
.footer nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer__bottom-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; font-size: 0.8rem; color: rgba(241, 247, 243, 0.55); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Вход для сотрудников (окно) ---------- */

.wait { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 20px; background: rgba(3, 8, 5, 0.8); backdrop-filter: blur(6px); }
.wait[hidden] { display: none; }
.wait__box { width: min(100%, 420px); padding: 32px 28px 26px; text-align: center; display: grid; justify-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--g-600); border-top: 3px solid var(--g-500); border-radius: var(--radius); box-shadow: var(--shadow); }
.wait__box h2 { font-family: var(--font-serif); font-size: 1.4rem; }
.wait__box p { color: var(--muted); font-size: 0.92rem; }
.wait__act { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.wait__act .btn { padding: 11px 18px; font-size: 0.9rem; }
.wait__spin { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--g-400); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wait__msg { width: 100%; padding: 12px 16px; border-radius: 3px; font-size: 0.9rem; text-align: left; color: var(--danger); background: rgba(240, 167, 156, 0.08); border: 1px solid rgba(240, 167, 156, 0.3); }
.wait__msg[hidden], .wait__spin[hidden] { display: none; }

/* ---------- Наверх, появление блоков ---------- */

.totop {
    position: fixed; right: 20px; bottom: 20px; z-index: 1900; display: grid; place-items: center;
    width: 46px; height: 46px; border-radius: var(--radius);
    background: var(--g-700); border: 1px solid var(--g-600); color: #fff;
    opacity: 0; transform: translateY(12px); pointer-events: none;
    transition: opacity 0.3s, transform 0.3s var(--ease), background 0.25s;
}
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--g-600); }

html.js .reveal,
html.js .stagger > * {
    opacity: 0; transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js .stagger > * { transition-delay: calc(var(--i, 0) * 80ms); }
html.js .reveal.is-in,
html.js .stagger.is-in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.js .reveal, html.js .stagger > * { transition: none; opacity: 1; transform: none; }
}
