/* ============================================================
   НОЦ — общие кастомные стили (все страницы)
   ============================================================ */

/* Фирменные градиенты и паттерны */
.bg-gold-gradient {
    background: linear-gradient(135deg, #E5C158 0%, #D4AF37 50%, #B8860B 100%);
}
.text-gold-gradient {
    background: linear-gradient(135deg, #E5C158 0%, #D4AF37 50%, #B8860B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bg-navy-gradient {
    background: radial-gradient(circle at top right, #1B439B 0%, #0E2356 45%, #0B1D48 100%);
}
.bg-grid-pattern {
    background-image: linear-gradient(to right, rgba(27, 67, 155, 0.05) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(27, 67, 155, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}
.bg-grid-dark {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}
.hex-clip {
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
}

/* Якоря не прячутся под липкой шапкой */
section[id] { scroll-margin-top: 92px; }

/* Появление страницы */
@keyframes page-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
body { animation: page-in .45s ease; }

/* Карточки */
.card-hover { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -15px rgba(11, 29, 72, 0.15);
}

/* Модальные окна */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to   { opacity: 1; transform: none; }
}
.animate-fade-in { animation: fade-in-up .35s ease; }

/* ---------- Появление при скролле ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1);
    will-change: opacity, transform;
}
.reveal.reveal-left  { transform: translateX(-34px); }
.reveal.reveal-right { transform: translateX(34px); }
.reveal.reveal-zoom  { transform: scale(.92); }
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero-слайдер (главная) ---------- */
.hero-slider { position: relative; }
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.1s ease;
    pointer-events: none;
}
.hero-slide.active { opacity: 1; animation: kenburns 5.5s ease-out forwards; }
@keyframes kenburns {
    from { transform: scale(1.0); }
    to   { transform: scale(1.09); }
}
.hero-slider__dots {
    position: absolute;
    bottom: 14px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.hero-slider__dot {
    width: 9px; height: 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.4);
    border: none; padding: 0;
    cursor: pointer;
    transition: all .25s;
}
.hero-slider__dot.active {
    width: 26px;
    background: #D4AF37;
}

/* ---------- Бегущая строка (профессии) ---------- */
.marquee {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
    display: flex;
    gap: 3.5rem;
    width: max-content;
    animation: marquee 26s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- Лайтбокс ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(6, 20, 42, .9);
    backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; animation: page-in .25s ease; }
.lightbox__img {
    max-width: min(92vw, 640px);
    max-height: 82vh;
    border-radius: 20px;
    border: 2px solid rgba(212, 175, 55, .55);
    box-shadow: 0 40px 90px rgba(0,0,0,.5);
    object-fit: contain;
}
.lightbox__caption {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    background: rgba(11, 29, 72, .85);
    border: 1px solid rgba(212,175,55,.35);
    padding: 10px 22px;
    border-radius: 999px;
    max-width: 86vw;
    text-align: center;
}
.lightbox__close,
.lightbox__nav {
    position: absolute;
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.lightbox__close { top: 26px; right: 26px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 26px; }
.lightbox__nav--next { right: 26px; }
.lightbox__close:hover, .lightbox__nav:hover {
    background: rgba(212, 175, 55, .9);
    color: #0B1D48;
}

/* ---------- Кнопка «наверх» ---------- */
.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #E5C158, #D4AF37);
    color: #0B1D48;
    box-shadow: 0 14px 30px rgba(212, 175, 55, .4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- Счётчики ---------- */
.stat-num { font-variant-numeric: tabular-nums; }

/* Активный пункт меню */
.nav-link--active { color: #D4AF37 !important; }

/* ============================================================
   Золотой герб-медальон на главном экране (GIF + плавание)
   ============================================================ */

/* Классическая серифная типографика (заголовки уровня логотипа) */
.font-classic {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    letter-spacing: -.01em;
}

/* Глубокий академический фон hero (#0A1931 как в логотипе) */
.bg-hero-deep {
    background:
        radial-gradient(1100px 700px at 68% 18%, rgba(27, 67, 155, .55) 0%, rgba(12, 31, 71, .4) 45%, rgba(10, 25, 49, 0) 75%),
        linear-gradient(160deg, #0C1F47 0%, #0A1931 62%, #081426 100%);
}

.hero-emblem img {
    animation: bobY 7.5s ease-in-out infinite;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)) drop-shadow(0 0 34px rgba(212, 175, 55, .14));
}
@keyframes bobY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* ============================================================
   Интро-заставка (логотип-ревил, первый визит за сессию)
   ============================================================ */

.intro-splash {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgb(13, 21, 52); /* точный фон кадров интро — швов нет */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .6s ease;
}
.intro-splash.leaving {
    opacity: 0;
    pointer-events: none;
}
.intro-splash video,
.intro-poster,
.intro-anim {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.intro-poster { position: absolute; inset: 0; }
.intro-anim { position: relative; }
.intro-skip {
    position: absolute;
    bottom: 26px;
    right: 26px;
    z-index: 2;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #F5DFA0;
    background: rgba(11, 29, 72, .8);
    border: 1.5px solid rgba(212, 175, 55, .75);
    border-radius: 999px;
    padding: 11px 22px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background .2s, color .2s, border-color .2s;
}
.intro-skip:hover {
    color: #0B1D48;
    background: rgba(212, 175, 55, .9);
    border-color: rgba(212, 175, 55, .95);
}
body.intro-locked { overflow: hidden; }

/* Кнопка «Смотреть» по центру заставки */
.intro-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 2px solid rgba(229, 193, 88, .8);
    background: rgba(212, 175, 55, .22);
    color: #F5DFA0;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .25s, transform .25s;
    animation: introPulse 2.4s ease-in-out infinite;
}
.intro-play:hover {
    background: rgba(212, 175, 55, .55);
    transform: translate(-50%, -50%) scale(1.07);
}
.intro-play svg { margin-left: 5px; }
@keyframes introPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, .45); }
    50%      { box-shadow: 0 0 0 22px rgba(212, 175, 55, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .intro-splash { display: none; }
}
/* На телефонах анимация целиком по центру (фон совпадает — швов нет), постер-дубль скрыт */
@media (max-width: 640px) {
    .intro-poster { display: none; }
    .intro-anim { object-fit: contain; }
}

/* ---------- Автокарусели: программы, отзывы (все экраны) ---------- */
#courses-grid, #reviews-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
}
#courses-grid::-webkit-scrollbar,
#reviews-grid::-webkit-scrollbar { display: none; }
#courses-grid .course-card {
    min-width: 300px;
    scroll-snap-align: center;
}
#reviews-grid > div {
    min-width: 480px;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
}
@media (max-width: 640px) {
    #courses-grid .course-card { min-width: 84%; }
    #reviews-grid > div { min-width: 86%; }

    /* «О центре»: компактные карусели */
    #teachers-grid, #career-grid, #gallery-grid {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 6px;
    }
    #teachers-grid::-webkit-scrollbar,
    #career-grid::-webkit-scrollbar,
    #gallery-grid::-webkit-scrollbar { display: none; }
    #teachers-grid > div { min-width: 76%; scroll-snap-align: center; }
    #career-grid > div { min-width: 86%; scroll-snap-align: center; }
    #gallery-grid figure { min-width: 46%; scroll-snap-align: center; }
}

/* Бегущая строка партнёров */
.trust-track { will-change: transform; }
.trust-logo {
    display: inline-flex;
    align-items: center;
    height: 30px;
    white-space: nowrap;
}
.trust-logo img {
    height: 28px;
    max-width: 150px;
    width: auto;
    object-fit: contain;
    /* сдержанно: приглушённое серое, при наведении — в полный цвет */
    filter: grayscale(1) brightness(1.6);
    opacity: .5;
    transition: filter .3s, opacity .3s;
}
.trust-logo:hover img { filter: none; opacity: 1; }

/* ============================================================
   Скромные мощные детали
   ============================================================ */

/* Золотая линия прогресса чтения под шапкой */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 70;
    background: linear-gradient(90deg, #B8860B, #E5C158, #D4AF37);
    transition: width .15s linear;
    pointer-events: none;
}

/* Блик, пробегающий по золотым кнопкам при наведении */
.bg-gold-gradient {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.bg-gold-gradient::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -80%;
    width: 55%;
    background: linear-gradient(105deg, transparent 10%, rgba(255, 246, 200, .5) 50%, transparent 90%);
    transform: skewX(-18deg);
    transition: left .65s cubic-bezier(.22, .61, .21, 1);
    pointer-events: none;
}
.bg-gold-gradient:hover::after,
a:hover > .bg-gold-gradient::after {
    left: 130%;
}
/* блик не ломает уже круглые/квадратные элементы с этим фоном */
.bg-gold-gradient { border-radius: inherit; }

/* Строка «нам доверяют» */
.trust-strip {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.trust-strip .trust-mark {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(229, 193, 88, .55);
    transition: color .25s;
    white-space: nowrap;
}
.trust-strip .trust-mark:hover { color: rgba(229, 193, 88, .95); }
.trust-sep {
    color: rgba(212, 175, 55, .3);
    font-size: 10px;
}

/* Липкая мобильная панель действий */
.fab-row {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 14px;
    z-index: 80;
    display: none;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}
@media (max-width: 640px) {
    .fab-row { display: flex; }
}
.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    box-shadow: 0 14px 30px rgba(6, 20, 42, .45);
}
.fab-call {
    background: rgba(11, 29, 72, .92);
    color: #E5C158;
    border: 1.5px solid rgba(212, 175, 55, .55);
    backdrop-filter: blur(8px);
}

/* ИИ-ассистент */
.ai-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 85;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 2.5px solid rgba(229, 193, 88, .85);
    padding: 0;
    cursor: pointer;
    background: #0A1931;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(6, 20, 42, .5), 0 0 0 0 rgba(212, 175, 55, .4);
    transition: transform .25s, box-shadow .25s;
    opacity: 0;
    transform: translateY(18px) scale(.8);
}
.ai-fab.in {
    opacity: 1;
    transform: none;
    animation: aiPulse 3s ease-out 1s infinite;
}
.ai-fab:hover { transform: scale(1.07); }
.ai-fab img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.ai-online {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #22C55E;
    border: 2.5px solid #0A1931;
}
@keyframes aiPulse {
    0%, 100% { box-shadow: 0 14px 30px rgba(6, 20, 42, .5), 0 0 0 0 rgba(212, 175, 55, .4); }
    50%      { box-shadow: 0 14px 30px rgba(6, 20, 42, .5), 0 0 0 12px rgba(212, 175, 55, 0); }
}

/* Проактивный пуш-пузырь консультанта */
.ai-pop {
    position: fixed;
    right: 22px;
    bottom: 96px;
    z-index: 88;
    width: min(330px, calc(100vw - 40px));
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff;
    border-radius: 18px 18px 4px 18px;
    border: 1px solid rgba(212, 175, 55, .45);
    box-shadow: 0 24px 55px rgba(6, 20, 42, .35);
    padding: 14px 16px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(.96);
    transition: opacity .35s ease, transform .35s ease, visibility .35s;
}
.ai-pop.show { opacity: 1; visibility: visible; transform: none; }
.ai-pop__ava {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, .8);
    flex-shrink: 0;
}
.ai-pop__ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-pop__txt { flex: 1; min-width: 0; }
.ai-pop__txt b {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 12.5px;
    color: #0E2356;
}
.ai-pop__txt p { font-size: 13px; color: #35566E; line-height: 1.45; margin-top: 3px; }
.ai-pop__close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: none;
    background: none;
    color: #94A3B8;
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
}
.ai-pop__close:hover { color: #F03E3E; }
.ai-chat {
    position: fixed;
    right: 22px;
    bottom: 92px;
    z-index: 95;
    width: min(360px, calc(100vw - 24px));
    max-height: min(560px, calc(100vh - 140px));
    background: #fff;
    border-radius: 22px;
    border: 1px solid rgba(212, 175, 55, .4);
    box-shadow: 0 30px 70px rgba(6, 20, 42, .45);
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.ai-chat.open { display: flex; animation: fade-in-up .3s ease; }
.ai-chat__head {
    background: linear-gradient(135deg, #0E2356, #1B439B);
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.ai-head-ava {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(229, 193, 88, .8);
    flex-shrink: 0;
}
.ai-head-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-head-txt { flex: 1; }
.ai-chat__head b { font-family: 'Montserrat', sans-serif; font-size: 15px; display: block; }
.ai-chat__head span { font-size: 11px; color: #9FE8B8; display: flex; align-items: center; gap: 5px; }
.ai-chat__head span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #22C55E; }
.ai-chat__close {
    border: none; background: rgba(255,255,255,.12); color: #fff;
    width: 30px; height: 30px; border-radius: 10px; cursor: pointer; font-size: 13px;
    transition: background .15s;
}
.ai-chat__close:hover { background: rgba(212,175,55,.8); color: #0B1D48; }

/* индикатор печати «Нилуфар набирает…» */
.msg.typing { display: flex; gap: 5px; align-items: center; padding: 13px 16px; }
.msg.typing span {
    width: 7px; height: 7px; border-radius: 50%;
    background: #D4AF37; opacity: .4;
    animation: typingDot 1.1s ease-in-out infinite;
}
.msg.typing span:nth-child(2) { animation-delay: .18s; }
.msg.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typingDot {
    0%, 100% { opacity: .35; transform: translateY(0); }
    50%      { opacity: 1;   transform: translateY(-4px); }
}
.ai-chat__body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #F4F7FC;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 160px;
}
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.msg.bot { background: #fff; border: 1px solid #E2E8F0; color: #0E2233; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.bot a { color: #B8860B; font-weight: 700; }
.msg.user { background: linear-gradient(135deg, #E5C158, #D4AF37); color: #0B1D48; align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 600; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; background: #F4F7FC; }
.ai-chip {
    font-size: 12px; font-weight: 600;
    border: 1.5px solid rgba(212, 175, 55, .5); color: #0E2356;
    background: #fff; border-radius: 999px; padding: 7px 12px;
    cursor: pointer; transition: background .15s, color .15s; font-family: inherit;
}
.ai-chip:hover { background: #D4AF37; color: #0B1D48; }
.ai-chat__input { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid #E2E8F0; }
.ai-chat__input input {
    flex: 1; border: 1.5px solid #E2E8F0; border-radius: 12px;
    padding: 10px 12px; font-size: 14px; outline: none; font-family: inherit;
}
.ai-chat__input input:focus { border-color: #D4AF37; }
.ai-chat__send {
    width: 42px; border: none; border-radius: 12px; cursor: pointer;
    background: linear-gradient(135deg, #E5C158, #D4AF37); color: #0B1D48;
    display: grid; place-items: center; padding: 0;
}
.ai-chat__send svg { margin: 0 auto; transform: translateX(1px) translateY(1px); display: block; }
@media (max-width: 640px) {
    .ai-chat { right: 12px; left: 12px; width: auto; bottom: 84px; max-height: 62vh; }
    .ai-fab { right: 14px; bottom: 14px; width: 58px; height: 58px; transform: none; transition: opacity .4s, transform .4s; }
    .ai-fab.in { transform: none; }
    .ai-fab.out { opacity: 0; transform: translateY(18px) scale(.8); pointer-events: none; }
    .ai-fab:hover { transform: scale(1.05); }
    .ai-pop { right: 12px; left: 12px; width: auto; bottom: 80px; }
    .to-top { bottom: 14px; right: auto; left: 50%; margin-left: -24px; }

    /* карусели: короткий скролл */
    #steps-grid, #why-grid {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    #steps-grid::-webkit-scrollbar,
    #why-grid::-webkit-scrollbar { display: none; }
    #steps-grid > div { min-width: 72%; scroll-snap-align: center; }
    #why-grid > div { min-width: 80%; scroll-snap-align: center; }
}

/* ============================================================
   Парящие канцелярские детали по всей странице (прозрачный стиль)
   ============================================================ */

.float-stationery {
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}
.fs-item {
    position: absolute;
    color: #D4AF37;
    opacity: .17;
    will-change: transform;
    animation: fsDrift var(--dur, 14s) ease-in-out var(--delay, 0s) infinite alternate;
}
.fs-flee {
    display: block;
    will-change: transform;
}
.fs-item svg {
    display: block;
    width: var(--s, 60px);
    height: var(--s, 60px);
    stroke-width: 1.6;
    animation: fsSwim var(--swim, 7s) ease-in-out var(--delay, 0s) infinite alternate;
}
/* плавание: покачивание и рыскание вокруг своего угла */
@keyframes fsSwim {
    from { transform: rotate(calc(var(--rot, 0deg) - 8deg)) translateY(-6px) translateX(-3px); }
    to   { transform: rotate(calc(var(--rot, 0deg) + 8deg)) translateY(8px) translateX(4px); }
}
@keyframes fsDrift {
    from { transform: translate(0, 0); }
    to   { transform: translate(var(--dx, 24px), var(--dy, -26px)); }
}
@media (max-width: 640px) {
    .fs-item { opacity: .12; }
    .fs-item svg { transform: rotate(var(--rot, 0deg)) scale(.72); }
}
@media (prefers-reduced-motion: reduce) {
    .fs-item { animation: none; }
}

/* Скроллбар */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #0E2356; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #1B439B; }
