        @font-face {
            font-family: 'Stem';
            src: url('../fonts/Stem-SemiLight.ttf') format('truetype');
            font-weight: 400;
            font-display: swap;
        }

        @font-face {
            font-family: 'Stem';
            src: url('../fonts/Stem-Medium.ttf') format('truetype');
            font-weight: 500;
            font-display: swap;
        }

        @font-face {
            font-family: 'Stem';
            src: url('../fonts/Stem-Bold.ttf') format('truetype');
            font-weight: 700;
            font-display: swap;
        }


        :root {

            --primary-red: #8B0000;
            --secondary-red: #B22222;
            --accent-red: #DC143C;
            --bright-red: #FF4444;
            --dark-red: #5C0000;
            --gradient-red: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #FF6B6B 100%);
            --gradient-red-dark: linear-gradient(135deg, #5C0000 0%, #8B0000 50%, #B22222 100%);
            --gradient-red-soft: linear-gradient(135deg, #B22222 0%, #DC143C 100%);


            --primary-blue: #040D2E;
            --secondary-blue: #011C73;
            --accent-blue: #052091;
            --light-blue: #051246;
            --brand-blue: #001B72;
            --gradient-blue: linear-gradient(135deg, #040D2E 0%, #011C73 50%, #052091 100%);
            --gradient-blue-dark: linear-gradient(135deg, #020718 0%, #040D2E 50%, #011C73 100%);


            --light-grey: #EDEBEC;
            --medium-grey: #9C9C9A;
            --dark-grey: #C6C4C5;
            --white: #ffffff;
            --text-dark: #000000;
            --text-light: #121314;
            --background-light: #e8ecf4;
            --card-soft: #f4f7fc;
            --card-border: #d0d8e6;
            --border-light: #e9ecef;

            --beige: #F4ECDA;
            --beige-line: #E0CDA6;
            --beige-card: #FFFDF8;
            --beige-card-line: #E8DBBE;
        }


        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            overflow-x: hidden;
            scroll-behavior: smooth;
            width: 100%;
            max-width: 100%;
        }

        body {
            overflow-x: hidden;
            width: 100%;
            max-width: 100%;
            position: relative;
            font-family: 'Stem', Arial, sans-serif;
            background: var(--background-light);
            color: var(--text-dark);
            line-height: 1.6;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            margin: 0;
        }

        .page-wrapper {
            flex: 1 0 auto;
            display: flex;
            flex-direction: column;
            width: 100%;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 40px;
            width: 100%;
        }

        img, video {
            max-width: 100%;
            height: auto;
        }

        ::-webkit-scrollbar {
            width: 6px;
        }

        ::-webkit-scrollbar-track {
            background: var(--light-grey);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary-red);
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--accent-red);
        }


        .bg-pattern {
            background-image: url('../Graphika_RGB_grey.webp');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            position: relative;
        }

        .bg-pattern::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(232, 236, 244, 0.95);
            pointer-events: none;
        }

        .bg-pattern > .container {
            position: relative;
            z-index: 1;
        }


        .image-frame {
            position: relative;
            border-radius: 20px;
            overflow: hidden;
            height: 400px;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
        }

        .image-frame::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border: 6px solid transparent;
            border-radius: 20px;
            background: linear-gradient(135deg, var(--accent-red), var(--brand-blue)) border-box;
            -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            z-index: 2;
            pointer-events: none;
        }

        .image-frame img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .image-frame.white-border::before {
            background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4)) border-box;
        }


        .section {
            padding: 50px 0;
        }

        .section-header {
            margin-bottom: 60px;
            max-width: 700px;
        }


        .section-label {
            display: inline-block;
            padding: 8px 20px;
            background: var(--gradient-red-soft);
            color: var(--white);
            border-radius: 20px;
            font-size: 11px;
            font-weight: 700;
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .section-label.blue {
            background: var(--gradient-blue);
        }


        .section-label.on-dark {
            background: var(--gradient-red-soft);
        }


        .deco-dots {
            position: absolute;
            width: 80px;
            height: 100px;
            background-image: radial-gradient(rgba(1, 28, 115, 0.30) 1.5px, transparent 1.7px);
            background-size: 15px 15px;
            pointer-events: none;
        }
        .deco-dots.light {
            background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1.5px, transparent 1.7px);
        }
        .deco-dots.red {
            background-image: radial-gradient(rgba(220, 20, 60, 0.30) 1.5px, transparent 1.7px);
        }
        @media (max-width: 900px) {
            .deco-dots { display: none; }
        }

        .section-title {
            font-size: 44px;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 20px;
            line-height: 1.2;
        }

        .section-title span {
            color: var(--accent-red);
        }

        .section-title span.blue {
            color: var(--brand-blue);
        }

        .section-desc {
            font-size: 17px;
            color: var(--text-light);
            line-height: 1.8;
        }

        @media (max-width: 992px) {
            .container { padding: 0 20px; }
        }

        @media (max-width: 768px) {
            .section { padding: 70px 0; }
            .section-title { font-size: 30px; }
        }



        .btn {
            position: relative;
            overflow: hidden;
            padding: 16px 30px;
            border-radius: 12px;
            text-decoration: none;
            font-weight: 700;
            font-size: 14px;
            letter-spacing: 0.8px;
            text-transform: uppercase;
            transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            cursor: pointer;
            border: none;
        }
        .btn > * { position: relative; z-index: 1; }
        .btn::before {
            content: '';
            position: absolute;
            top: 0; left: -140%;
            width: 65%; height: 100%;
            background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.42), transparent);
            transform: skewX(-20deg);
            transition: left 0.6s ease;
            z-index: 0;
        }
        .btn:hover::before { left: 150%; }

        .btn-primary {
            background: var(--gradient-red);
            color: var(--white);
            box-shadow: 0 10px 30px -8px rgba(220, 20, 60, 0.55);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 14px 40px -6px rgba(220, 20, 60, 0.65);
        }

        .btn-secondary {
            background: transparent;
            color: var(--white);
            box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
        }

        .btn-secondary:hover {
            box-shadow: inset 0 0 0 2px var(--white);
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-2px);
        }


        .btn-secondary--dark {
            color: var(--text-dark);
            box-shadow: inset 0 0 0 2px var(--card-border);
        }
        .btn-secondary--dark:hover {
            color: var(--brand-blue);
            background: var(--card-soft);
            box-shadow: inset 0 0 0 2px var(--brand-blue);
        }


        .btn-vk {
            background: var(--gradient-blue);
            color: var(--white);
            box-shadow: 0 10px 30px -8px rgba(1, 28, 115, 0.55);
        }
        .btn-vk:hover {
            transform: translateY(-2px);
            box-shadow: 0 14px 40px -6px rgba(1, 28, 115, 0.65);
        }


        .animate-on-scroll {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

        .animate-on-scroll.animated {
            opacity: 1;
            transform: translateY(0);
        }



        .header {
            position: fixed;
            top: -90px;
            left: 0;
            right: 0;
            z-index: 1000;
            height: 90px;
            display: flex;
            align-items: center;
            width: 100%;
            background: #f8f8f8;
            box-shadow: 0 4px 24px rgb(0 0 0 / 80%);
            border-bottom: 1px solid var(--border-light);
            transition: top 0.3s ease, background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
        }
        .header.visible { top: 0; }
        .header.transparent {
            background: transparent;
            box-shadow: none;
            border-bottom-color: transparent;
            top: 0;
        }

        .header-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            height: 90px;
            width: 100%;
        }

        .logo-container {
            position: relative;
            height: 62px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
        }

        .logo-mark {
            display: block;
            height: 62px;
            width: 126px;
            -webkit-mask: url('../krasgmu_logo_owl_old.svg') left center / contain no-repeat;
            mask: url('../krasgmu_logo_owl_old.svg') left center / contain no-repeat;
            background: linear-gradient(180deg, #E11B39 0%, #DC143C 42%, #8B0000 100%);
            transition: background 0.35s ease;
        }
        .header.transparent .logo-mark { background: #ffffff; }


        .nav-menu {
            display: flex;
            list-style: none;
            gap: 22px;
            align-items: center;
            margin: 0;
        }
        .nav-menu a {
            text-decoration: none;
            color: var(--text-dark);
            font-weight: 600;
            font-size: 14px;
            letter-spacing: 0.6px;
            text-transform: uppercase;
            transition: color 0.25s ease;
            position: relative;
            padding: 6px 0;
            white-space: nowrap;
        }
        .header.transparent .nav-menu a { color: rgba(255, 255, 255, 0.85); }
        .nav-menu a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 3px;
            background: var(--accent-red);
            transition: width 0.3s ease;
        }
        .nav-menu a:hover { color: var(--accent-red); }
        .header.transparent .nav-menu a:hover { color: var(--white); }
        .nav-menu a:hover::after { width: 100%; }

        .nav-menu a.active { color: var(--accent-red); }
        .nav-menu a.active::after { width: 100%; }
        .header.transparent .nav-menu a.active { color: var(--white); }


        .header-right {
            display: flex;
            gap: 12px;
            align-items: center;
            flex-shrink: 0;
        }
        .social-header { display: flex; gap: 6px; align-items: center; }
        .social-header a {
            width: 38px;
            height: 38px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease;
        }
        /*
        | Значки нарисованы белым (soc-vk.svg, soc-tg.svg), а знак MAX —
        | чёрным. Чтобы в светлой шапке они читались ОДИНАКОВО, приводим
        | оба вида к одному тону: brightness(0) делает рисунок чёрным
        | независимо от исходного цвета, а invert(0.2) поднимает его до
        | #333 — спокойного тёмно-серого.
        |
        | Раньше тон задавался прозрачностью 0.78. Так нельзя: у ВКонтакте
        | и Telegram значок — сплошная плитка, а у MAX тонкий контур, и одна
        | и та же прозрачность гасила его заметно сильнее соседей.
        |
        | Насыщенный чёрный оставлен НАВЕДЕНИЮ: пока на значок не навели,
        | он не должен выглядеть нажатым.
        */
        .social-header a img {
            width: 24px;
            height: 24px;
            display: block;
            filter: brightness(0) invert(0.2);
            transition: filter 0.25s ease;
        }
        .social-header a:hover img { filter: brightness(0) invert(0); }

        /*
        | ВАЖНО: во ВСЕХ состояниях список функций один и тот же —
        | brightness() invert(), в этом же порядке. Меняются только числа.
        |
        | Браузер плавно переводит filter, лишь когда наборы функций у двух
        | значений совпадают. Если не совпали, перехода нет: значение
        | переключается скачком на середине. Раньше у знака MAX было
        | invert(1), у соседей — none, и при появлении светлой шапки MAX
        | перещёлкивался отдельно от них: то раньше, то позже.
        |
        | Над тёмным баннером: у ВКонтакте и Telegram рисунок и так белый
        | (brightness(1) invert(0) — ничего не меняет), а чёрный знак MAX
        | сначала уводим в чёрный, затем выворачиваем в белый.
        */
        .header.transparent .social-header a img { filter: brightness(1) invert(0); }
        .header.transparent .social-header a img.soc-invert { filter: brightness(0) invert(1); }

        .social-header a:hover { transform: translateY(-2px); }


        .header-cta {
            position: relative;
            overflow: hidden;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 9px;
            padding: 12px 24px;
            border-radius: 12px;
            font-family: inherit;
            font-weight: 700;
            font-size: 13px;
            letter-spacing: 0.4px;
            text-transform: uppercase;
            color: var(--white);
            background: var(--gradient-red);
            transition: transform 0.3s ease, background 0.3s ease;
        }
        .header-cta > * { position: relative; z-index: 1; }
        .header-cta::before {
            content: '';
            position: absolute;
            top: 0; left: -140%;
            width: 60%; height: 100%;
            background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
            transform: skewX(-20deg);
            transition: left 0.6s ease;
            z-index: 0;
        }
        .header-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(220, 20, 60, 0.55); }
        .header-cta:hover::before { left: 150%; }


        .burger-menu {
            display: none;
            cursor: pointer;
            z-index: 1002;
            width: 44px;
            height: 44px;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        .burger-menu i { font-size: 24px; color: var(--text-dark); transition: all 0.3s ease; }
        .header.transparent .burger-menu i { color: var(--white); }
        .burger-menu:hover i { color: var(--accent-red); }

        @media (max-width: 1200px) {
            .nav-menu { display: none; }
            .header-right { display: none; }
            .burger-menu { display: flex; }
        }


.mobile-menu {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: var(--white);
            z-index: 1001;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
        }

        .mobile-menu.active {
            opacity: 1;
            visibility: visible;
        }

        .mobile-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 20px;
            border-bottom: 1px solid var(--border-light);
            height: 90px;
        }

        .mobile-logo {
            height: 70px;
            display: flex;
            align-items: center;
        }

        .mobile-logo img {
            height: 70px;
            width: auto;
        }

        .mobile-menu .burger-menu {
            display: flex;
            width: 30px;
            height: 30px;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .mobile-menu .burger-menu i {
            font-size: 24px;
            color: var(--text-dark);
            transition: color 0.3s ease;
        }

        .mobile-menu .burger-menu:hover i {
            color: var(--accent-red);
        }

        .mobile-nav {
            list-style: none;
            flex: 1;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .mobile-nav a {
            text-decoration: none;
            color: var(--text-dark);
            font-weight: 600;
            font-size: 14px;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            transition: all 0.3s ease;
            position: relative;
            display: inline-block;
        }

        .mobile-nav a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 3px;
            background: var(--accent-red);
            transition: width 0.3s ease;
        }

        .mobile-nav a:hover::after {
            width: 100%;
        }

        .mobile-footer {
            padding: 30px 20px;
            border-top: 1px solid var(--border-light);
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .mobile-social {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .mobile-social a {
            display: inline-flex;
            transition: transform 0.3s ease;
        }

        .mobile-social a img {
            width: 28px;
            height: 28px;
            filter: brightness(0);
            opacity: 0.8;
        }

        .mobile-social a:hover {
            transform: scale(1.12);
        }

        .mobile-contact-btn {
            display: block;
            width: 100%;
            padding: 16px 28px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            letter-spacing: 0.5px;
            text-align: center;
            background: var(--gradient-red);
            color: var(--white);
            transition: all 0.3s ease;
        }

        .mobile-contact-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(139, 0, 0, 0.3);
        }

        @media (max-width: 480px) {
            .mobile-header {
                padding: 10px 20px;
            }

            .mobile-nav {
                padding: 30px 20px;
            }

            .mobile-footer {
                padding: 25px 20px;
            }
        }


.crumbs { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 22px; }
.crumbs a { color: rgba(255,255,255,.8); text-decoration: none; transition: color .25s; }
.crumbs a:hover { color: #fff; }
.crumbs i { font-size: 9px; }



    .footer {
        background: var(--gradient-blue-dark);
        border-top: 1px solid rgba(255, 255, 255, 0.10);
        color: var(--white);
        padding: 64px 0 26px;
        position: relative;
    }

    .footer__main {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 48px;
        align-items: center;
        margin-bottom: 44px;
    }

    .footer__logo-wrap { display: block; flex-shrink: 0; }
    .footer__uni-logo {
        width: auto;
        max-width: min(450px, 100%);
        object-fit: contain;
        opacity: 0.95;
        display: block;
    }

    .footer__card {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 20px;
        padding: 32px 36px;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 30px 40px;
        align-items: start;
    }

    .footer__email {
        font-weight: 700;
        font-size: clamp(17px, 1.8vw, 20px);
        color: var(--white);
        text-decoration: none;
        border-bottom: 2px solid var(--accent-red);
        padding-bottom: 2px;
        display: inline-block;
        transition: color 0.25s ease;
        word-break: break-all;
    }
    .footer__email:hover { color: var(--bright-red); }

    .footer__addr {
        color: rgba(255, 255, 255, 0.65);
        font-size: 15px;
        margin-top: 13px;
    }

    .footer__card-links {
        display: flex;
        flex-direction: column;
        gap: 4px;
        align-items: stretch;
        min-width: 240px;
    }
    .footer__card-links a {
        font-weight: 600;
        font-size: 13px;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.65);
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 11px 4px;
        transition: color 0.25s ease;
    }
    .footer__card-links a + a { border-top: 1px solid rgba(255, 255, 255, 0.12); }
    .footer__card-links a i { color: var(--bright-red); font-size: 12px; transition: transform 0.3s ease; }
    .footer__card-links a:hover { color: var(--white); }
    .footer__card-links a:hover i { transform: translate(2px, -2px); }

    .footer__bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding-top: 22px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.55);
    }
    .footer__bottom-links { display: flex; gap: 26px; flex-wrap: wrap; }
    .footer__bottom a {
        color: rgba(255, 255, 255, 0.55);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: color 0.25s ease;
    }
    .footer__bottom a:hover { color: var(--white); }
    .footer__bottom a i { font-size: 10px; color: var(--accent-red); }


    .footer__social { display: flex; gap: 10px; }
    .icon-btn {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
    }
    .icon-btn img { width: 28px; height: 28px; display: block; }
    /* Подвал тёмно-синий — здесь чёрный знак MAX выворачиваем всегда */
    .icon-btn img.soc-invert { filter: invert(1); }
    .icon-btn:hover { transform: translateY(-2px); }

    @media (max-width: 900px) {
        .footer__main { grid-template-columns: 1fr; gap: 30px; }
        .footer__card { grid-template-columns: 1fr; padding: 26px 24px; }
        .footer__card-links { align-items: flex-start; }
    }
    @media (max-width: 600px) {
        .footer { padding: 48px 0 22px; }
        .footer__bottom { flex-direction: column; align-items: flex-start; }
    }


    .to-top {
        position: fixed;
        right: 26px; bottom: 26px;
        width: 48px; height: 48px;
        background: var(--gradient-red);
        color: var(--white);
        display: flex; align-items: center; justify-content: center;
        font-size: 18px;
        z-index: 900;
        opacity: 0; visibility: hidden;
        transform: translateY(12px);
        transition: all 0.3s ease;
        text-decoration: none;
        border-radius: 12px;
        box-shadow: 0 10px 26px -8px rgba(220, 20, 60, 0.5);
    }
    .to-top.show { opacity: 1; visibility: visible; transform: none; }


    .no-scroll { overflow: hidden; }

    .modal {
        position: fixed;
        inset: 0;
        z-index: 1100;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
        background: rgba(4, 13, 46, 0.72);
        backdrop-filter: blur(4px);
    }
    .modal.active { display: flex; animation: modalIn 0.22s ease; }
    @keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }


    .modal__box {
        position: relative;
        background: var(--white);
        border-radius: 22px;
        width: min(640px, 100%);
        max-height: 88vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.55);
    }
    .modal__box--wide { width: min(900px, 100%); }

    .modal__head {
        background: var(--gradient-red);
        color: var(--white);
        padding: 26px 30px 22px;
        position: relative;
        flex-shrink: 0;
    }
    .modal__head h3 { font-size: 24px; font-weight: 700; line-height: 1.2; }
    .modal__head p { font-size: 14px; color: rgba(255, 255, 255, 0.82); margin-top: 6px; }

    .modal__close {
        position: absolute;
        top: 18px; right: 18px;
        width: 34px; height: 34px;
        border: none;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        color: var(--white);
        font-size: 14px;
        cursor: pointer;
        transition: background 0.25s ease;
    }
    .modal__close:hover { background: rgba(255, 255, 255, 0.36); }

    .modal__body {
        padding: 26px 30px 30px;
        overflow-y: auto;
        flex: 1;
        scrollbar-width: thin;
        scrollbar-color: var(--card-border) transparent;
    }
    .modal__body::-webkit-scrollbar { width: 5px; }
    .modal__body::-webkit-scrollbar-track { background: transparent; }
    .modal__body::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 4px; }
    .modal__body::-webkit-scrollbar-thumb:hover { background: var(--accent-red); }

    .modal__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
    .modal__actions .btn { flex: 1 1 auto; justify-content: center; }

    @media (max-width: 600px) {
        .modal__head { padding: 22px 20px 18px; }
        .modal__head h3 { font-size: 20px; }
        .modal__body { padding: 22px 20px 26px; }
    }

    .lightbox {
        position: fixed;
        inset: 0;
        z-index: 3000;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(4, 13, 46, 0.94);
        backdrop-filter: blur(6px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }
    .lightbox.open { opacity: 1; visibility: visible; }

    .lightbox img {
        max-width: min(92vw, 1180px);
        max-height: 84vh;
        object-fit: contain;
        border-radius: 12px;
        box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
    }

    .lightbox__btn {
        position: absolute;
        width: 46px; height: 46px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.22);
        color: var(--white);
        font-size: 17px;
        cursor: pointer;
        transition: background 0.25s ease, border-color 0.25s ease;
        z-index: 2;
    }
    .lightbox__btn:hover { background: var(--accent-red); border-color: var(--accent-red); }
    .lightbox__close { top: 22px; right: 22px; }
    .lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
    .lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }

    .lightbox__counter {
        position: absolute;
        bottom: 22px; left: 50%;
        transform: translateX(-50%);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 2px;
        color: rgba(255, 255, 255, 0.7);
    }

    .lightbox.is-single .lightbox__prev,
    .lightbox.is-single .lightbox__next,
    .lightbox.is-single .lightbox__counter { display: none; }

    @media (max-width: 600px) {
        .lightbox img { max-width: 94vw; max-height: 76vh; border-radius: 10px; }
        .lightbox__btn { width: 40px; height: 40px; font-size: 15px; }
        .lightbox__close { top: 14px; right: 14px; }
        .lightbox__prev { left: 8px; }
        .lightbox__next { right: 8px; }
    }
