/* ==========================================================================
   BNETS – main stylesheet
   ========================================================================== */

:root {
    --red-950: #2e1012;
    --red-900: #3b1618;
    --red-800: #561a1c;
    --red-700: #7a1b1d;
    --red-600: #8f1d20;
    --red: #e5222a;
    --red-hover: #c81a21;
    --red-soft: #fde6e7;

    --bg: #eef2f5;
    --surface: #ffffff;
    --text: #151515;
    --text-muted: #3d3d3d;
    --line-light: rgba(255, 255, 255, .32);
    --focus: #ffb3b6;

    --font-heading: "Jost", "Segoe UI", system-ui, sans-serif;
    --font-body: "Poppins", "Segoe UI", system-ui, sans-serif;

    --container: 1656px;
    --gutter: clamp(20px, 4.5vw, 64px);
    --header-h: clamp(84px, 7.5vw, 144px);

    --radius-sm: 12px;
    --radius-md: clamp(16px, 1.9vw, 36px);
    --radius-lg: clamp(20px, 2.4vw, 46px);
    --radius-xl: clamp(32px, 5vw, 100px);

    --fs-body: clamp(.9375rem, .8rem + .3vw, 1.125rem);
    --fs-small: clamp(.8125rem, .75rem + .2vw, 1rem);
    --fs-nav: clamp(.8125rem, .62rem + .38vw, 1.1875rem);
    --fs-h1: clamp(2.125rem, 1.1rem + 3.2vw, 4.625rem);
    --fs-page-title: clamp(2rem, 1.2rem + 2.6vw, 4.25rem);
    --fs-section: clamp(1.875rem, 1.1rem + 2.4vw, 3.625rem);
    --fs-lg: clamp(1.75rem, 1.1rem + 2vw, 3.5rem);
    --fs-md: clamp(1.25rem, .95rem + .9vw, 1.875rem);
    --fs-sm: clamp(1.0625rem, .95rem + .4vw, 1.375rem);

    --section-y: clamp(56px, 7vw, 130px);
    --shadow: 0 10px 40px rgba(20, 20, 40, .08);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
address { font-style: normal; }
button, input, textarea, select { font: inherit; color: inherit; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

/* Intro elements wait for animations.js (the class is only set when motion is allowed). */
.has-anim .site-header__logo, .has-anim .main-nav__list > li, .has-anim .site-header__tools,
.has-anim .hero__text > *, .has-anim .hero__media, .has-anim .page-hero__inner > * { visibility: hidden; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 1000;
    background: #fff; color: var(--red-900); padding: .75rem 1.25rem; border-radius: 999px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(900px + var(--gutter) * 2); }
.text-center { text-align: center; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Red low-poly network background */
.bg-network {
    color: #fff;
    background-color: var(--red-800);
    background-image:
        url("../img/network.svg"),
        linear-gradient(180deg, var(--red-900) 0%, var(--red-800) 45%, var(--red-700) 100%);
    background-size: cover, 100% 100%;
    background-position: center top, 0 0;
    background-repeat: no-repeat;
}

/* ---------- Buttons, pills, links ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 48px;
    padding: .95em 1.9em;
    border: 0; border-radius: 999px;
    font-family: var(--font-body); font-weight: 500; font-size: clamp(.9375rem, .75rem + .5vw, 1.375rem);
    line-height: 1; letter-spacing: .01em; text-transform: uppercase; text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, transform .2s;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); }
.btn:active { transform: translateY(1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: clamp(12px, 1.2vw, 22px); }

.pill {
    display: inline-block;
    margin: 0 0 1.4em;
    padding: .7em 1.5em;
    border: 1.5px solid var(--red);
    border-radius: 999px;
    background: var(--red-soft);
    color: var(--red);
    font-size: clamp(.75rem, .6rem + .4vw, 1.1875rem);
    font-weight: 600; line-height: 1.2;
    text-transform: uppercase; letter-spacing: .02em;
}
.pill--light { border-color: rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .1); color: #fff; }

.text-link {
    display: inline-flex; align-items: center; gap: .4em;
    color: var(--red); font-weight: 500; text-decoration: none;
    border-bottom: 1px solid currentColor;
}
.text-link .icon { width: 1em; height: 1em; }
.text-link:hover { color: var(--red-hover); }

.circle-link {
    display: inline-grid; place-items: center;
    width: clamp(48px, 3.6vw, 68px); aspect-ratio: 1;
    border: 1.5px solid var(--red); border-radius: 50%;
    color: #fff;
    transition: background-color .2s;
}
.circle-link .icon { width: 42%; height: 42%; }
.circle-link:hover { background: var(--red); }

/* ---------- Header ---------- */
.site-header {
    position: absolute; inset: 0 0 auto; z-index: 50;
    color: #fff;
    background: linear-gradient(180deg, rgba(30, 8, 10, .45), rgba(30, 8, 10, .15));
}
.site-header__inner {
    display: flex; align-items: center; gap: 2rem;
    min-height: var(--header-h);
}
.site-header__logo { flex: none; }
.site-header__logo img { width: clamp(68px, 7.4vw, 142px); height: auto; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav__list { display: flex; gap: clamp(1rem, 2vw, 2.6rem); list-style: none; }
.main-nav a {
    display: block; padding: .5rem 0;
    font-size: var(--fs-nav); font-weight: 400; text-transform: uppercase; letter-spacing: .01em;
    text-decoration: none;
    border-bottom: 1.5px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--red); }

.site-header__tools { display: flex; align-items: center; gap: clamp(.75rem, 1.6vw, 2rem); }

.icon-btn {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; padding: 0;
    background: none; border: 0; border-radius: 50%; color: inherit; cursor: pointer;
}
.icon-btn .icon { width: clamp(20px, 1.3vw, 26px); height: clamp(20px, 1.3vw, 26px); }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }

.lang-switch { position: relative; }
.lang-switch__toggle {
    display: inline-flex; align-items: center; gap: .6em;
    min-width: 3.6em; min-height: 44px; padding: 0 .1em;
    background: none; border: 0; cursor: pointer;
    font-size: var(--fs-nav);
}
.lang-switch__toggle::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; opacity: .85;
}
.icon--caret { width: .6em; height: .4em; }
.lang-switch__menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 10;
    min-width: 180px; padding: .5rem; list-style: none;
    background: #fff; color: var(--text); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.lang-switch__menu a { display: flex; gap: .75em; padding: .55rem .75rem; border-radius: 8px; text-decoration: none; font-size: .9375rem; font-weight: 600; }
.lang-switch__menu a span { font-weight: 400; color: var(--text-muted); }
.lang-switch__menu a:hover, .lang-switch__menu a[aria-current] { background: var(--bg); }

.nav-toggle { display: none; }
.nav-toggle .icon--close { display: none; }
.nav-open .nav-toggle .icon--menu { display: none; }
.nav-open .nav-toggle .icon--close { display: block; }

.search-panel { padding: 0 0 1.25rem; }
.search-panel__form { display: flex; gap: .75rem; align-items: center; }
.search-panel input,
.search-form input {
    flex: 1; min-width: 0; min-height: 52px;
    padding: .8rem 1.4rem;
    border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 999px;
    background: rgba(255, 255, 255, .95); color: var(--text);
}
.search-panel .btn, .search-form .btn { min-height: 52px; padding-block: 0; font-size: 1rem; }

/* ---------- Home: hero + services (shared red block) ---------- */
.home-top {
    padding-top: calc(var(--header-h) + clamp(24px, 4vw, 78px));
    padding-bottom: clamp(48px, 5vw, 96px);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.hero {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 45%); gap: clamp(32px, 5vw, 100px);
    align-items: center;
}
.hero__title { font-size: var(--fs-h1); line-height: 1.2; margin-bottom: .45em; max-width: 12em; }
.hero__lead { max-width: 36em; margin-bottom: 2em; }
.hero__media img {
    width: 100%; aspect-ratio: 749 / 600; object-fit: cover;
    border-radius: var(--radius-lg);
}

.services { margin-top: clamp(64px, 8vw, 170px); }
.section-title {
    font-size: var(--fs-section);
    text-align: center; text-transform: uppercase; letter-spacing: .01em;
    margin-bottom: clamp(32px, 4vw, 80px);
}
.section-title--light { color: #fff; }
.services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service {
    display: flex; flex-direction: column; align-items: flex-start;
    padding: clamp(8px, 1.2vw, 24px) clamp(20px, 2.6vw, 48px);
    border-left: 1px solid var(--line-light);
}
.service:first-child { border-left: 0; padding-left: 0; }
.service__icon { width: clamp(64px, 5.8vw, 112px); height: auto; margin-bottom: 1.4rem; color: #fff; }
.service__title { font-size: var(--fs-md); margin-bottom: .75em; }
.service__text { font-size: var(--fs-small); line-height: 1.75; flex: 1; margin-bottom: 1.8em; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .5); }

.photo-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 44px); }
.photo-card {
    position: relative; display: block; overflow: hidden;
    aspect-ratio: 520 / 400;
    border-radius: var(--radius-md);
    text-decoration: none; color: #fff;
    isolation: isolate;
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .5s ease; }
.photo-card::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(229, 34, 42, 0) 45%, rgba(229, 34, 42, .55) 80%, rgba(229, 34, 42, .75) 100%);
}
.photo-card__title {
    position: absolute; inset: auto 0 clamp(14px, 1.4vw, 26px); z-index: 2;
    font-family: var(--font-heading); font-size: clamp(1.25rem, .8rem + 1.2vw, 2.4rem);
    text-align: center; text-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}
.photo-card:hover img { transform: scale(1.04); }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
    padding-top: calc(var(--header-h) + clamp(16px, 2vw, 40px));
    padding-bottom: clamp(48px, 5.5vw, 110px);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.page-hero__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.page-hero__title { font-size: var(--fs-page-title); text-transform: uppercase; margin: 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; font-size: var(--fs-nav); text-transform: uppercase; }
.breadcrumbs li + li::before { content: "/"; margin-inline: 1.2em; opacity: .9; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- About ---------- */
.split {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 45%); gap: clamp(32px, 5vw, 110px);
    align-items: center;
}
.split__media img { width: 100%; aspect-ratio: 750 / 801; object-fit: cover; border-radius: var(--radius-lg); }
.heading-lg { font-size: var(--fs-lg); margin-bottom: .6em; }
.heading-md { font-size: var(--fs-md); }
.heading-sm { font-size: var(--fs-sm); font-weight: 500; }
.prose { font-size: var(--fs-small); line-height: 1.75; color: var(--text); }
.prose__strong { font-weight: 600; font-size: var(--fs-body); line-height: 1.5; margin-top: 1.6em; }
.bullets { list-style: none; }
.bullets li { position: relative; padding-left: 1.6em; margin-bottom: .75em; }
.bullets li::before {
    content: ""; position: absolute; left: .1em; top: .7em;
    width: .38em; height: .38em; border-radius: 50%; background: var(--red);
}
.columns-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 90px); margin-top: clamp(40px, 5vw, 100px); }

.banks {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding-block: clamp(40px, 5vw, 100px);
}
.banks__title { font-size: clamp(1.125rem, .9rem + .8vw, 1.875rem); text-align: center; margin-bottom: clamp(24px, 3vw, 56px); }
.banks__grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 56px) clamp(24px, 5vw, 100px);
    align-items: center; list-style: none;
}
.banks__grid li { display: flex; align-items: center; justify-content: center; }
.banks__grid li:nth-child(4n+1) { justify-content: flex-start; }
.banks__grid li:nth-child(4n) { justify-content: flex-end; }
.banks__grid img { width: auto; max-width: 100%; max-height: clamp(48px, 5.5vw, 110px); object-fit: contain; }

.mission {
    padding: clamp(40px, 5vw, 110px) clamp(24px, 5vw, 100px);
    border-radius: var(--radius-xl);
    text-align: center;
}
.mission .section-title { margin-bottom: .5em; }
.mission p { margin: 0 auto; max-width: 60em; font-size: var(--fs-small); font-weight: 500; }

.values .section-title { margin-bottom: clamp(28px, 3vw, 60px); }
.values__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 80px) clamp(24px, 6vw, 120px); list-style: none; }
.value { display: flex; gap: clamp(16px, 1.6vw, 30px); align-items: flex-start; }
.value__icon {
    flex: none; display: grid; place-items: center;
    width: clamp(52px, 4.4vw, 84px); aspect-ratio: 1;
    border: 1.5px solid rgba(229, 34, 42, .45); border-radius: 50%;
    background: var(--red-soft); color: var(--red);
}
.value__icon .icon { width: 50%; height: 50%; }
.value__title { font-size: var(--fs-md); margin-bottom: .35em; }
.value p { font-size: var(--fs-small); line-height: 1.75; margin: 0; }

/* ---------- Generic subpage blocks ---------- */
.lead { font-size: clamp(1rem, .9rem + .4vw, 1.3125rem); line-height: 1.7; }
.lead--center { max-width: 50em; margin: 0 auto clamp(40px, 5vw, 80px); text-align: center; }

.feature-list { display: grid; gap: clamp(20px, 2vw, 32px); }
.feature {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 48px);
    padding: clamp(24px, 3vw, 56px);
    background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow);
    scroll-margin-top: 24px;
}
.feature__icon {
    display: grid; place-items: center;
    width: clamp(80px, 7vw, 128px); aspect-ratio: 1; border-radius: var(--radius-md);
    background: linear-gradient(160deg, var(--red-900), var(--red-700)); color: #fff;
}
.feature__icon .icon { width: 62%; height: 62%; }

.topic-list { display: grid; gap: clamp(28px, 4vw, 64px); }
.topic {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: center;
    scroll-margin-top: 24px;
}
.topic:nth-child(even) .topic__img { order: 2; }
.topic__img { width: 100%; aspect-ratio: 520 / 316; object-fit: cover; border-radius: var(--radius-md); }

.notice {
    margin-top: 2rem; padding: clamp(24px, 3vw, 48px);
    background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow);
}
.vacancies { list-style: none; display: grid; gap: 1.5rem; margin-top: 2rem; }
.vacancy { padding: clamp(20px, 2.5vw, 40px); background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.vacancy__meta { color: var(--red); font-weight: 500; font-size: var(--fs-small); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 100px); align-items: start; }
.contact-card {
    margin-top: 1.5rem; padding: clamp(20px, 2.4vw, 40px);
    background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow);
    font-size: var(--fs-small);
}
.contact-card p { margin-bottom: .5em; }
.contact__form {
    padding: clamp(24px, 3.5vw, 64px);
    background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow);
    scroll-margin-top: 24px;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; margin-bottom: .4rem; font-weight: 500; font-size: var(--fs-small); }
.field__optional { font-weight: 400; color: var(--text-muted); }
.field input, .field textarea {
    width: 100%; min-height: 50px; padding: .8rem 1.1rem;
    border: 1.5px solid #d4d9df; border-radius: var(--radius-sm); background: #fbfcfd;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(229, 34, 42, .15); }
.field--error input, .field--error textarea { border-color: var(--red); }
.field__error { margin: .35rem 0 0; color: var(--red-hover); font-size: .875rem; }
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); background: var(--bg); }
.alert--success { background: #e6f6ec; color: #145c32; }
.alert--error { background: var(--red-soft); color: #8c1318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.with-icon { display: flex; gap: .75em; align-items: flex-start; }
.with-icon .icon { width: 1.05em; height: 1.05em; margin-top: .3em; }

/* ---------- Search ---------- */
.search-form { display: flex; gap: .75rem; margin-bottom: 2rem; }
.search-form input { border-color: #d4d9df; }
.search-count { color: var(--text-muted); }
.search-results { list-style: none; display: grid; gap: 1.25rem; }
.search-results li { padding: 1.5rem; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.search-results a { color: var(--red); text-decoration: none; }
.search-results a:hover { text-decoration: underline; }
.search-results p { margin: 0; font-size: var(--fs-small); }

/* ---------- Footer ---------- */
.site-footer {
    margin-top: var(--section-y);
    padding-top: clamp(48px, 5vw, 96px);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background-position: center bottom, 0 0;
}
.page-home .site-footer { margin-top: calc(var(--section-y) * .8); }
.site-footer__grid {
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr) minmax(0, .6fr);
    gap: clamp(32px, 4vw, 80px);
}
.site-footer__brand { padding-left: clamp(0px, 1vw, 24px); }
.site-footer__logo img { width: clamp(110px, 9.5vw, 180px); height: auto; margin-bottom: clamp(24px, 3vw, 52px); }
.badges { display: flex; align-items: center; gap: clamp(14px, 1.4vw, 26px); list-style: none; }
.badges li:first-child img { width: clamp(56px, 4.9vw, 94px); }
.badges img { width: clamp(70px, 6.2vw, 118px); height: auto; }
.site-footer__title { font-family: var(--font-body); font-size: clamp(1rem, .85rem + .4vw, 1.375rem); font-weight: 500; margin-bottom: 1.2em; }
.site-footer__links { list-style: none; margin-bottom: 1.4em; font-size: var(--fs-small); }
.site-footer__links li { margin-bottom: .35em; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__contact { font-size: var(--fs-small); line-height: 1.6; }
.site-footer__contact p { margin-bottom: .45em; }
.site-footer__spacer { margin-top: 1.1em; }
.site-footer__bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
    padding-top: clamp(40px, 4.5vw, 80px); padding-bottom: clamp(24px, 2.4vw, 44px);
    font-size: var(--fs-small);
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom p:first-child { padding-left: clamp(0px, 1vw, 24px); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .nav-toggle { display: inline-grid; }
    .main-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        display: block;
        padding: .5rem var(--gutter) 1.5rem;
        background: var(--red-900);
        box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
        visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity .2s, transform .2s, visibility 0s .2s;
    }
    .nav-open .main-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
    .main-nav__list { flex-direction: column; gap: 0; }
    .main-nav a { padding: .9rem 0; font-size: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .main-nav a[aria-current="page"] { color: #ff8a8f; border-bottom-color: rgba(255, 255, 255, .12); }
    .site-header__tools { margin-left: auto; }
    .nav-open .site-header { background: var(--red-900); }

    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .hero, .split, .contact, .topic { grid-template-columns: 1fr; }
    .hero__media { order: -1; }
    .hero__media, .split__media { max-width: 640px; }
    .topic:nth-child(even) .topic__img { order: 0; }

    .services__grid { grid-template-columns: 1fr; }
    .service, .service:first-child { border-left: 0; padding: 32px 0; border-top: 1px solid var(--line-light); }
    .service:first-child { border-top: 0; padding-top: 0; }

    .photo-cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
    .banks__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .banks__grid li, .banks__grid li:nth-child(4n+1), .banks__grid li:nth-child(4n) { justify-content: center; }
    .columns-2, .values__grid { grid-template-columns: 1fr; }
    .page-hero__inner { flex-direction: column; align-items: flex-start; }
    .banks { border-radius: var(--radius-lg); }
}

@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .feature { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .site-footer__bottom { flex-direction: column; }
    .btn-row .btn { flex: 1 1 auto; }
    .search-form, .search-panel__form { flex-wrap: wrap; }
    .search-panel__form input { flex-basis: calc(100% - 56px); }
}

@media print {
    .site-header, .search-panel, .site-footer .badges { display: none; }
    .bg-network { background: none; color: #000; }
    .page-hero, .home-top { padding-top: 1rem; }
    main * { opacity: 1 !important; visibility: visible !important; }
}
