/* Custom styles for RazumSport */

:root {
    /* Основная зелёная палитра (RazumSport) */
    --rs-green-50:  #f0fdf4;
    --rs-green-100: #dcfce7;
    --rs-green-200: #bbf7d0;
    --rs-green-300: #86efac;

    --rs-green-600: #2f855a; /* base */
    --rs-green-700: #276749; /* hover */
    --rs-green-800: #1f5c3f; /* active */
    --rs-green-900: #14532d; /* text */

    /* Bootstrap theme tokens */
    --bs-primary: var(--rs-green-600);
    --bs-primary-rgb: 47, 133, 90;

    --bs-link-color: var(--rs-green-600);
    --bs-link-color-rgb: 47, 133, 90;
    --bs-link-hover-color: var(--rs-green-700);
    --bs-link-hover-color-rgb: 39, 103, 73;

    --bs-focus-ring-color: rgba(47, 133, 90, 0.25);

    /* Подложки (bg-light) делаем мягко-зелёными */
    --bs-light: var(--rs-green-50);
    --bs-light-rgb: 240, 253, 244;

    /* Legacy aliases used in templates */
    --primary-color: var(--bs-primary);
    --secondary-color: var(--rs-green-300);
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.navbar {
    padding: 1rem 0;
    transition: all 0.3s;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero / Banner */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #bbf7d0 100%);
}

/* Карточки */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #276749;
    border-color: #276749;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.social-links a {
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-3px);
}

/* Секции */
.section-title {
    color: var(--primary-color);
}

.badge-tourism {
    background-color: var(--secondary-color);
    color: #14532d;
}


/* --- Horizontal timeline (Landing) --- */
.timeline-section {
    position: relative;
}

.timeline-nav .btn {
    padding: 0.45rem 0.9rem;
    border-radius: 14px;
}

.timeline-scroller {
    position: relative;
}

.timeline-scroll {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0.75rem;
    padding: 0.25rem 0;
}

.timeline-track {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.25rem 0.75rem 0.75rem;
    min-width: max-content;
}

/* линия прогресса */
.timeline-track::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 17px;
    height: 3px;
    background: rgba(var(--bs-primary-rgb), 0.28);
    border-radius: 999px;
}

.timeline-event {
    position: relative;
    width: 360px;
    max-width: 86vw;
    scroll-snap-align: start;
    padding-top: 74px;
}

.timeline-pin {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 3;
}

.timeline-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.timeline-year {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 14px;
    background: rgba(var(--bs-primary-rgb), 0.12);
    color: #14532d;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.timeline-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.14);
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07);
    padding: 1.2rem 1.2rem 1.1rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.45s ease;
    opacity: 0;
    transform: translateY(10px);
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 6px;
    background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0.55), rgba(var(--bs-primary-rgb), 0.10));
}

.timeline-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12);
}

.timeline-title {
    margin: 0.35rem 0 0.55rem;
    font-size: 1.18rem;
    font-weight: 800;
    color: #14532d;
}

.timeline-text {
    margin: 0;
    color: rgba(33, 37, 41, 0.86);
    font-size: 0.95rem;
    line-height: 1.55;
}

.timeline-media {
    margin-top: 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(var(--bs-primary-rgb), 0.06);
    overflow: hidden;
    position: relative;
    height: 180px;
}

.timeline-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.timeline-media.is-loaded .timeline-image {
    opacity: 1;
}

.timeline-media-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(20, 83, 45, 0.55);
    font-size: 1.6rem;
}

/* подсказка что есть горизонтальный скролл */
.timeline-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.timeline-fade-left {
    left: 0;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.timeline-fade-right {
    right: 0;
    background: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.timeline-scroller.is-at-start .timeline-fade-left,
.timeline-scroller.is-at-end .timeline-fade-right {
    opacity: 0;
}

@media (max-width: 768px) {
    .timeline-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .timeline-track {
        gap: 1rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .timeline-track::before {
        top: 17px;
    }

    .timeline-event {
        width: 80vw;
        padding-top: 70px;
    }

    .timeline-card {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}



/* Таймер под футером */
.countdown-bar {
    height: 80px;
    background: rgb(237, 238, 240) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Принудительно задаём цвет (на случай если тема/переменные не применились) */
.countdown-bar,
.countdown-bar * {
    color: #2f855a !important;
    color: rgba(var(--bs-primary-rgb), 0.92) !important;
}

.countdown-timer {
    font-size: 1.75rem;
    letter-spacing: 0.06em;
    line-height: 1;
}

.countdown-sep {
    opacity: 0.55;
    padding: 0 0.35rem;
}

/* Responsive adjustments */

@media (max-width: 768px) {
    .countdown-bar {
        height: 110px;
    }

    .countdown-timer {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .display-4 {
        font-size: 2.25rem;
    }

    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}

/* === Global GREEN override (removes Bootstrap blue everywhere) === */

/* Links */
a {
    color: var(--bs-link-color);
}
a:hover {
    color: var(--bs-link-hover-color);
}
a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.22);
    border-radius: 0.375rem;
}

/* Common bootstrap helpers */
.text-primary,
.link-primary {
    color: var(--bs-primary) !important;
}
.bg-primary {
    background-color: var(--bs-primary) !important;
}
.border-primary {
    border-color: rgba(var(--bs-primary-rgb), 0.65) !important;
}

/* Buttons: ensure all states are green */
.btn:focus,
.btn:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.22) !important;
}
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--rs-green-700);
    --bs-btn-hover-border-color: var(--rs-green-700);
    --bs-btn-active-bg: var(--rs-green-800);
    --bs-btn-active-border-color: var(--rs-green-800);
    --bs-btn-disabled-bg: rgba(var(--bs-primary-rgb), 0.55);
    --bs-btn-disabled-border-color: rgba(var(--bs-primary-rgb), 0.55);
    --bs-btn-focus-shadow-rgb: 47, 133, 90;

    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.btn-primary:hover {
    background-color: var(--rs-green-700);
    border-color: var(--rs-green-700);
}
.btn-primary:active,
.btn-primary.active {
    background-color: var(--rs-green-800) !important;
    border-color: var(--rs-green-800) !important;
}
.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-active-bg: var(--rs-green-800);
    --bs-btn-active-border-color: var(--rs-green-800);
    --bs-btn-disabled-color: rgba(var(--bs-primary-rgb), 0.55);
    --bs-btn-disabled-border-color: rgba(var(--bs-primary-rgb), 0.40);
    --bs-btn-focus-shadow-rgb: 47, 133, 90;

    color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.btn-outline-primary:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.btn-link {
    color: var(--bs-primary);
    text-decoration-color: rgba(var(--bs-primary-rgb), 0.45);
}
.btn-link:hover {
    color: var(--rs-green-700);
    text-decoration-color: rgba(var(--bs-primary-rgb), 0.75);
}

/* Forms: focus rings, checks */
.form-control:focus,
.form-select:focus {
    border-color: rgba(var(--bs-primary-rgb), 0.65) !important;
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.18) !important;
}
.form-check-input:checked {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}
.form-check-input:focus {
    border-color: rgba(var(--bs-primary-rgb), 0.65) !important;
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.18) !important;
}

/* Dropdowns / nav / pagination */
.dropdown-item.active,
.dropdown-item:active {
    background-color: rgba(var(--bs-primary-rgb), 0.14) !important;
    color: var(--rs-green-900) !important;
}
.nav-pills {
    --bs-nav-pills-link-active-bg: var(--bs-primary);
    --bs-nav-pills-link-active-color: #fff;
}
.page-link {
    color: var(--bs-primary);
}
.page-link:hover {
    color: var(--rs-green-700);
}
.page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.22) !important;
}
.pagination {
    --bs-pagination-active-bg: var(--bs-primary);
    --bs-pagination-active-border-color: var(--bs-primary);
}

/* Alerts */

/* Info variants -> green (removes blue info accents) */
.alert-info {
    background-color: rgba(var(--bs-primary-rgb), 0.08) !important;
    border-color: rgba(var(--bs-primary-rgb), 0.22) !important;
    color: var(--rs-green-900) !important;
}
.text-info {
    color: var(--bs-primary) !important;
}
.bg-info {
    background-color: rgba(var(--bs-primary-rgb), 0.10) !important;
}

.alert a,
.alert-link {
    color: var(--bs-primary) !important;
}
.alert a:hover,
.alert-link:hover {
    color: var(--rs-green-700) !important;
}

/* Scrollbar (page) — green */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--bs-primary-rgb), 0.75) rgba(var(--bs-primary-rgb), 0.10);
}
body::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
body::-webkit-scrollbar-track {
    background: rgba(var(--bs-primary-rgb), 0.08);
}
body::-webkit-scrollbar-thumb {
    background-color: rgba(var(--bs-primary-rgb), 0.62);
    border-radius: 999px;
    border: 2px solid rgba(var(--bs-primary-rgb), 0.10);
}
body::-webkit-scrollbar-thumb:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.82);
}

/* Timeline scrollbar — green (horizontal) */
.timeline-scroll::-webkit-scrollbar {
    height: 10px;
}
.timeline-scroll::-webkit-scrollbar-track {
    background: rgba(var(--bs-primary-rgb), 0.08);
    border-radius: 999px;
}
.timeline-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(var(--bs-primary-rgb), 0.55);
    border-radius: 999px;
    border: 2px solid rgba(var(--bs-primary-rgb), 0.10);
}
.timeline-scroll::-webkit-scrollbar-thumb:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.78);
}

/* Avoid accidental horizontal overflow on mobile */
body {
    overflow-x: hidden;
}

/* === Mobile-first polish === */
@media (max-width: 576px) {
    main {
        padding-top: 72px !important; /* overrides inline style */
    }

    .navbar .navbar-brand {
        font-size: 1.15rem;
    }

    .navbar .collapse.navbar-collapse {
        margin-top: 0.75rem;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(0,0,0,0.06);
        border-radius: 18px;
        padding: 0.5rem 0.75rem;
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    }

    .navbar-nav .nav-link {
        margin: 0;
        padding: 0.75rem 0.25rem;
    }

    .navbar-nav .btn {
        width: 100%;
        justify-content: center;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero {
        padding: 4.5rem 0 3.25rem;
    }

    .hero .btn-lg {
        width: 100%;
    }
    .hero .btn-lg.me-2 {
        margin-right: 0 !important;
    }
    .hero .btn-lg + .btn-lg {
        margin-top: 0.65rem;
    }
    .hero .col-lg-6.text-center {
        margin-top: 1.25rem;
    }

    /* Sections spacing: меньше воздуха на телефоне */
    section.py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .card-img-top {
        object-fit: cover;
        max-height: 220px;
    }

    /* Media tiles more touch-friendly */
    .mini-media-strip {
        flex-wrap: wrap;
        gap: 10px;
    }
    .mini-media-tile {
        width: 64px;
        height: 46px;
    }

    /* Forms */
    .btn {
        padding: 0.65rem 1.5rem;
    }
}



/* ==============================
   RS 2026 updates: Navbar + Hero
   ============================== */

.rs-navbar {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    /* Важно: фиксируем стек слоёв, чтобы offcanvas-меню на мобиле
       всегда перекрывало Hero/слайдер и любые декоративные слои. */
    z-index: 1030; /* Bootstrap fixed-top baseline */
}

.rs-navbar .navbar-brand {
    letter-spacing: 0.2px;
}

.rs-brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(47, 133, 90, 0.12);
}

.rs-navbar .nav-link {
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.rs-navbar .nav-link:hover {
    background: rgba(47, 133, 90, 0.10);
}

.rs-navbar .nav-link.active {
    background: rgba(47, 133, 90, 0.12);
}

.rs-navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
}

.rs-offcanvas {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    /* Поднимаем панель меню выше контента страницы (Hero имеет свои слои) */
    z-index: 1045; /* Bootstrap offcanvas baseline */
}

/* Поднимаем затемнение (backdrop) выше контента страницы */
.offcanvas-backdrop {
    z-index: 1040; /* Bootstrap offcanvas-backdrop baseline */
}

/* На мобильных (и особенно в Safari iOS) фиксируем геометрию offcanvas,
   чтобы панель не «пряталась» под Hero и занимала всю высоту экрана. */
@media (max-width: 991.98px) {
    .rs-offcanvas {
        top: 0 !important;
        bottom: 0 !important;
        height: 100dvh !important;
    }
}

.rs-cta {
    box-shadow: 0 10px 30px rgba(47, 133, 90, 0.20);
}

/* Hero background (no slider) */
.rs-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 7.5rem 0 5.5rem;
    overflow: hidden;
}

.rs-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.rs-hero-bg.rs-hero-bg--next {
    opacity: 0;
    transition: opacity 700ms ease;
}

.rs-hero-bg.rs-hero-bg--next.rs-hero-bg--show {
    opacity: 1;
}


.rs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(1200px 700px at 10% 10%, rgba(47, 133, 90, 0.35) 0%, rgba(47, 133, 90, 0) 60%),
        linear-gradient(135deg, rgba(10, 20, 18, 0.75) 0%, rgba(10, 20, 18, 0.35) 55%, rgba(10, 20, 18, 0.70) 100%);
}

.rs-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 45%),
        radial-gradient(circle at 30% 80%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
}

.rs-hero .container {
    position: relative;
    z-index: 3;
}

.rs-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 600;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.78) !important;
}

.rs-hero-scroll {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 1.35rem;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.rs-hero-scroll:hover {
    transform: translateX(-50%) translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 991.98px) {
    .rs-hero {
        min-height: 86vh;
        padding: 7rem 0 5rem;
    }
}


/* Hero content fade (пункт 2.1) */
[data-rs-hero-anim] {
    transition: opacity 320ms ease, transform 320ms ease;
}
[data-rs-hero-anim].rs-hero-is-fading {
    opacity: 0;
    transform: translateY(6px);
}

/* Section alternation (пункт 3) */
.rs-section {
    position: relative;
}

.rs-section--soft {
    background:
        radial-gradient(900px 500px at 15% 10%, rgba(47, 133, 90, 0.10) 0%, rgba(47, 133, 90, 0) 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(247, 252, 249, 1) 100%);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.rs-section--photo {
    background-image: var(--rs-section-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.rs-section--photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 700px at 15% 20%, rgba(47, 133, 90, 0.20) 0%, rgba(47, 133, 90, 0) 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.78) 100%);
}

.rs-section--photo .container {
    position: relative;
    z-index: 1;
}

.rs-section--green {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}


/* ==========================================
   RS profile cards (point 4): coaches & directions
   ========================================== */

.rs-profile-card {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.10);
    overflow: hidden;
}

.rs-profile-card:hover {
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
}

.rs-avatar-ring {
    width: 104px;
    height: 104px;
    padding: 3px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(47, 133, 90, 0.95), rgba(187, 247, 208, 0.95));
    box-shadow: 0 10px 28px rgba(47, 133, 90, 0.18);
}

.rs-avatar-ring--sm {
    width: 96px;
    height: 96px;
}

.rs-avatar {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
    background: rgba(15, 23, 42, 0.05);
    border: 3px solid rgba(255, 255, 255, 0.92);
}

.rs-meta-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.55);
    letter-spacing: 0.2px;
}

.rs-pills {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rs-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #14532d;
    background: rgba(47, 133, 90, 0.12);
    border: 1px solid rgba(47, 133, 90, 0.18);
}

.rs-pill--muted {
    color: rgba(15, 23, 42, 0.60);
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.10);
}

.rs-pill--tourism {
    color: #14532d;
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.20);
}

.rs-name {
    font-weight: 800;
    letter-spacing: 0.2px;
    line-height: 1.1;
}

.rs-surname {
    color: rgba(15, 23, 42, 0.92);
}

.rs-firstname {
    color: rgba(15, 23, 42, 0.70);
    font-weight: 800;
    margin-left: 0.35rem;
}

.rs-subtitle {
    font-size: 0.92rem;
}

.rs-submeta {
    font-size: 0.82rem;
    color: rgba(15, 23, 42, 0.62);
}

.rs-quote {
    font-size: 0.90rem;
    color: rgba(15, 23, 42, 0.70);
    font-style: italic;
}

.rs-btn {
    border-radius: 999px;
    padding: 0.55rem 1.15rem;
    font-weight: 700;
}

.rs-btn.rs-btn-sm {
    padding: 0.52rem 1.05rem;
}

.rs-direction-card .mini-media-strip {
    justify-content: center;
}

@media (max-width: 575.98px) {
    .rs-profile-card {
        border-radius: 18px;
    }
    .rs-avatar-ring {
        width: 92px;
        height: 92px;
    }
    .rs-avatar-ring--sm {
        width: 86px;
        height: 86px;
    }
}


/* ==============================
   RS News cards (пункт 5)
   ============================== */

.rs-btn-soft {
    border-radius: 999px;
}

.rs-news-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
    transition: transform 180ms ease, box-shadow 180ms ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rs-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.14);
}

.rs-news-thumb {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.06);
}

.rs-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 380ms ease;
}

.rs-news-card:hover .rs-news-thumb img {
    transform: scale(1.05);
}

.rs-news-body {
    padding: 1rem 1.05rem 1.05rem;
}

.rs-news-meta {
    font-size: 0.86rem;
    color: rgba(15, 23, 42, 0.60);
    margin-bottom: 0.35rem;
}

.rs-news-title {
    font-weight: 800;
    font-size: 1.06rem;
    line-height: 1.2;
    margin: 0.2rem 0 0.45rem;
}

.rs-news-title--lg {
    font-size: 1.22rem;
}

.rs-news-excerpt {
    color: rgba(15, 23, 42, 0.72);
    font-size: 0.95rem;
}

.rs-news-go {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.rs-news-go:hover {
    text-decoration: none;
}

.rs-news-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(47, 133, 90, 0.12);
    border: 1px solid rgba(47, 133, 90, 0.18);
    transition: transform 180ms ease, background-color 180ms ease;
}

.rs-news-card:hover .rs-news-icon {
    transform: translateX(2px);
    background: rgba(47, 133, 90, 0.18);
}

.rs-news-card--row {
    flex-direction: row;
    min-height: 190px;
}

.rs-news-card--row .rs-news-thumb {
    flex: 0 0 280px;
    aspect-ratio: auto;
    height: auto;
}

.rs-news-card--row .rs-news-thumb img {
    height: 100%;
}

.rs-news-card--row .rs-news-body {
    padding: 1.1rem 1.2rem;
}

@media (max-width: 767.98px) {
    .rs-news-card--row {
        flex-direction: column;
    }
    .rs-news-card--row .rs-news-thumb {
        flex: auto;
        aspect-ratio: 16 / 10;
    }
}


/* ==============================
   RS Schedule grid (пункт 6)
   ============================== */

.rs-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(47, 133, 90, 0.10);
    border: 1px solid rgba(47, 133, 90, 0.16);
    color: rgba(15, 23, 42, 0.80);
    font-weight: 700;
    font-size: 0.92rem;
}

.rs-schedule-card {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.10);
    overflow: hidden;
}

.rs-schedule-scroll {
    overflow: auto;
    max-width: 100%;
}

/* Desktop: calendar should fit container; Mobile: allow horizontal scroll */
.rs-schedule-grid {
    --rs-time-col: 92px;
    --rs-head-h: 56px;
    --rs-row-h: 56px;
    --rs-rows: 28; /* 09:00–23:00 with 30-min step */

    position: relative;
    display: grid;
    grid-template-columns: var(--rs-time-col) repeat(7, minmax(150px, 1fr));
    grid-template-rows: var(--rs-head-h) repeat(var(--rs-rows), var(--rs-row-h));
    width: 100%;
    min-width: 1100px;
    background: rgba(255, 255, 255, 0.35);
}

@media (min-width: 992px) {
    .rs-schedule-grid {
        min-width: 0;
        grid-template-columns: var(--rs-time-col) repeat(7, minmax(0, 1fr));
    }
}

.rs-schedule-cell {
    padding: 0.75rem 0.8rem;
    border-right: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.55);
}

/* Half-hour row separators as dashed line */
.rs-schedule-cell--half {
    border-bottom-style: dashed;
    border-bottom-color: rgba(15, 23, 42, 0.14);
}

.rs-schedule-corner {
    position: sticky;
    left: 0;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
}

.rs-schedule-head {
    position: sticky;
    top: 0;
    z-index: 15;
    text-align: center;
    font-weight: 900;
    color: rgba(15, 23, 42, 0.82);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 100%);
}

.rs-schedule-time {
    position: sticky;
    left: 0;
    z-index: 12;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.68);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 100%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 0.75rem;
    white-space: nowrap;
}

.rs-schedule-slot {
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
}

/* Events */
.rs-schedule-event {
    z-index: 10;
    margin: 6px;
    padding: 0.6rem 0.65rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;

    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    justify-content: flex-start;
}

.rs-event-title {
    font-weight: 900;
    line-height: 1.15;
    margin: 0;
    font-size: 1.02rem;
    word-break: break-word;
}

.rs-event-meta {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin: 0;
}

.rs-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}

.rs-badge--muted {
    color: rgba(15, 23, 42, 0.65);
}

.rs-event-sub {
    font-size: 0.86rem;
    color: rgba(15, 23, 42, 0.72);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Event color variants */
.rs-event--kids {
    background: radial-gradient(900px 420px at 10% 10%, rgba(47, 133, 90, 0.35) 0%, rgba(47, 133, 90, 0.12) 65%, rgba(47, 133, 90, 0.18) 100%);
    border-color: rgba(47, 133, 90, 0.25);
}

.rs-event--adults {
    background: radial-gradient(900px 420px at 10% 10%, rgba(25, 99, 235, 0.22) 0%, rgba(25, 99, 235, 0.10) 65%, rgba(25, 99, 235, 0.14) 100%);
    border-color: rgba(25, 99, 235, 0.22);
}

.rs-event--teens {
    background: radial-gradient(900px 420px at 10% 10%, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0.10) 65%, rgba(245, 158, 11, 0.14) 100%);
    border-color: rgba(245, 158, 11, 0.22);
}

.rs-event--tour {
    background: radial-gradient(900px 420px at 10% 10%, rgba(168, 85, 247, 0.22) 0%, rgba(168, 85, 247, 0.10) 65%, rgba(168, 85, 247, 0.14) 100%);
    border-color: rgba(168, 85, 247, 0.22);
}

.rs-event--family {
    background: radial-gradient(900px 420px at 10% 10%, rgba(236, 72, 153, 0.18) 0%, rgba(236, 72, 153, 0.08) 65%, rgba(236, 72, 153, 0.12) 100%);
    border-color: rgba(236, 72, 153, 0.20);
}

.rs-schedule-note {
    padding: 0.85rem 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    color: rgba(15, 23, 42, 0.66);
    background: rgba(255, 255, 255, 0.70);
}

/* ==============================
   RS History section (пункт 7)
   ============================== */

.rs-stat-card {
    border-radius: 18px;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    grid-column-gap: 0.75rem;
    align-items: center;
}

.rs-stat-card--accent {
    border-color: rgba(var(--bs-primary-rgb), 0.22);
    box-shadow: 0 18px 55px rgba(47, 133, 90, 0.18);
}

.rs-stat-ico {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(var(--bs-primary-rgb), 0.12);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(var(--bs-primary-rgb), 0.95);
    grid-row: 1 / span 2;
}

.rs-stat-val {
    font-weight: 900;
    font-size: 1.5rem;
    line-height: 1;
}

.rs-stat-label {
    color: rgba(15, 23, 42, 0.62);
    font-weight: 700;
    font-size: 0.92rem;
}

.rs-history-card {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.10);
    padding: 1.15rem 1.15rem 1.05rem;
}

.rs-history-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 900;
    margin-bottom: 0.65rem;
}

.rs-history-ico {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    background: rgba(var(--bs-primary-rgb), 0.12);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rs-history-list {
    padding-left: 1.1rem;
    color: rgba(15, 23, 42, 0.72);
}

.rs-history-list li + li {
    margin-top: 0.4rem;
}

.rs-history-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.rs-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: rgba(15, 23, 42, 0.78);
    font-weight: 800;
    font-size: 0.9rem;
}

.rs-chip--sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.82rem;
}

.timeline-card {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.12);
}

.timeline-title {
    font-weight: 900;
}

.timeline-text {
    color: rgba(15, 23, 42, 0.72);
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.65rem;
}

.timeline-media {
    margin-top: 0.75rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.timeline-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}


/* ==============================
   RS Signup section (пункт 8)
   ============================== */

.rs-signup.rs-section--photo::before {
    /* Override default photo overlay to keep background visible and add contrast */
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 700px at 10% 20%, rgba(47, 133, 90, 0.55) 0%, rgba(47, 133, 90, 0.10) 55%),
        linear-gradient(135deg, rgba(6, 14, 12, 0.78) 0%, rgba(6, 14, 12, 0.55) 60%, rgba(6, 14, 12, 0.78) 100%);
}

.rs-signup .container {
    position: relative;
    z-index: 1;
}

.rs-signup-copy {
    max-width: 520px;
}

.rs-signup-benefits {
    display: grid;
    gap: 0.85rem;
}

.rs-benefit {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.85rem;
    padding: 0.85rem 0.9rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rs-benefit-ico {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.rs-benefit-title {
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.2rem;
}

.rs-benefit-text {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
}

.rs-chip--invert {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
}

.rs-signup-card {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
    padding: 1rem 1rem 0.95rem;
}

.rs-signup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0.15rem 0.9rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    margin-bottom: 0.9rem;
}

.rs-signup-kicker {
    font-weight: 800;
    color: rgba(15, 23, 42, 0.55);
    font-size: 0.85rem;
}

.rs-signup-title {
    font-weight: 900;
}

.rs-signup-secure {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: rgba(var(--bs-primary-rgb), 0.12);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(var(--bs-primary-rgb), 0.95);
}

.rs-input {
    border-radius: 14px;
    border-color: rgba(15, 23, 42, 0.12);
}

.rs-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.18);
    border-color: rgba(var(--bs-primary-rgb), 0.35);
}

.rs-form-text {
    color: rgba(15, 23, 42, 0.55);
}

.rs-btn-lg {
    border-radius: 16px;
    padding: 0.85rem 1rem;
    font-weight: 900;
    box-shadow: 0 18px 50px rgba(var(--bs-primary-rgb), 0.22);
}

.rs-signup-foot {
    margin-top: 0.85rem;
    font-size: 0.86rem;
    color: rgba(15, 23, 42, 0.60);
    display: flex;
    align-items: flex-start;
}


/* ==============================
   RS Section dividers (пункт 9)
   ============================== */

.rs-section-divider {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 40px;
    pointer-events: none;
    background:
        radial-gradient(600px 40px at 20% 0%, rgba(var(--bs-primary-rgb), 0.16) 0%, rgba(var(--bs-primary-rgb), 0) 70%),
        radial-gradient(600px 40px at 80% 0%, rgba(var(--bs-primary-rgb), 0.10) 0%, rgba(var(--bs-primary-rgb), 0) 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(15, 23, 42, 0.05) 100%);
    z-index: 2;
}

.rs-section--photo .rs-section-divider {
    background:
        radial-gradient(600px 40px at 20% 0%, rgba(var(--bs-primary-rgb), 0.18) 0%, rgba(var(--bs-primary-rgb), 0) 70%),
        radial-gradient(600px 40px at 80% 0%, rgba(var(--bs-primary-rgb), 0.12) 0%, rgba(var(--bs-primary-rgb), 0) 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(15, 23, 42, 0.06) 100%);
}

.rs-section--green .rs-section-divider,
.rs-signup .rs-section-divider {
    background:
        radial-gradient(600px 40px at 20% 0%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 70%),
        radial-gradient(600px 40px at 80% 0%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.16) 100%);
}

/* Ensure divider sits above section overlay but below content */
.rs-section--photo::before { z-index: 0; }
.rs-section--photo .container { z-index: 1; position: relative; }
.rs-section-divider { z-index: 1; }


/* ==============================
   RS Footer (пункт 10)
   ============================== */

.rs-footer {
    position: relative;
    background:
        radial-gradient(900px 420px at 15% 10%, rgba(var(--bs-primary-rgb), 0.22) 0%, rgba(var(--bs-primary-rgb), 0) 60%),
        radial-gradient(900px 420px at 85% 20%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(135deg, rgba(8, 18, 14, 1) 0%, rgba(10, 34, 24, 1) 55%, rgba(8, 18, 14, 1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    overflow: hidden;
}

.rs-footer-top {
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 44px;
    pointer-events: none;
    background:
        radial-gradient(600px 44px at 20% 0%, rgba(var(--bs-primary-rgb), 0.22) 0%, rgba(var(--bs-primary-rgb), 0) 70%),
        radial-gradient(600px 44px at 80% 0%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
}

.rs-footer .container {
    position: relative;
    z-index: 1;
}

.rs-footer-link {
    transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.rs-footer a.rs-footer-link {
    color: rgba(255, 255, 255, 0.72) !important;
}

.rs-footer a.rs-footer-link:hover {
    color: rgba(255, 255, 255, 0.96) !important;
    transform: translateY(-1px);
    text-decoration: none;
}

.rs-footer .text-white-50 {
    color: rgba(255, 255, 255, 0.62) !important;
}

.rs-footer hr {
    border-color: rgba(255, 255, 255, 0.10) !important;
    opacity: 1;
}


/* ==============================
   RS Navbar desktop offcanvas fix (point 1)
   ============================== */

@media (min-width: 992px) {
    .rs-offcanvas.offcanvas-lg,
    .rs-offcanvas {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .rs-offcanvas .offcanvas-body {
        padding: 0 !important;
    }

    .rs-offcanvas .offcanvas-header {
        display: none !important;
    }
}


/* ==============================
   RS Coaches card tuning (пункт 3)
   ============================== */

.rs-avatar-ring--lg {
    width: 132px;
    height: 132px;
}

@media (max-width: 575.98px) {
    .rs-avatar-ring--lg {
        width: 112px;
        height: 112px;
    }
}

.rs-pill--xs {
    padding: 0.22rem 0.55rem;
    font-size: 0.70rem;
    gap: 0.30rem;
}

.rs-name {
    font-size: 1.15rem;
}

.rs-surname {
    font-weight: 900;
    color: rgba(15, 23, 42, 0.92);
}

.rs-firstname {
    color: rgba(15, 23, 42, 0.92);
    font-weight: 800;
    opacity: 0.92;
}


/* ==============================
   RS Tourism accent cards (замечание 4)
   ============================== */

#tourism .rs-tour-accent {
    border: 1px solid rgba(var(--bs-primary-rgb), 0.28) !important;
    box-shadow: 0 18px 55px rgba(var(--bs-primary-rgb), 0.12);
}

#tourism .rs-tour-accent .card-body {
    position: relative;
}

#tourism .rs-tour-accent::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(var(--bs-primary-rgb), 0.10);
}


/* ==============================
   RS Timeline UX fix (пункты 5+7)
   ============================== */

/* Make cards a bit more compact */
.timeline-track {
    gap: 1.1rem;
    padding: 1.05rem 0.6rem 0.7rem;
}

.timeline-event {
    width: 320px;
    padding-top: 66px;
}

@media (max-width: 575.98px) {
    .timeline-event {
        width: 300px;
    }
}

.timeline-card {
    padding: 1.0rem 1.0rem 0.95rem;
    border-radius: 16px;
}

/* Less "snapy" feel */
.timeline-scroll {
    scroll-snap-type: x proximity;
}

/* Allow vertical page scroll; horizontal via drag/buttons/trackpad */
.js-timeline-wrap {
    cursor: grab;
    touch-action: pan-y;
}

.js-timeline-wrap.is-dragging {
    cursor: grabbing;
}

/* Hint overlay */
.rs-timeline-hint {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
    color: rgba(15, 23, 42, 0.80);
    font-weight: 900;
    transition: opacity 240ms ease, transform 240ms ease;
    opacity: 1;
}

.rs-timeline-hint i {
    animation: rsHintNudge 1.2s ease-in-out infinite;
}

@keyframes rsHintNudge {
    0%, 100% { transform: translateX(0); opacity: 0.8; }
    50% { transform: translateX(4px); opacity: 1; }
}

.rs-timeline-hint.is-hidden {
    opacity: 0;
    transform: translateY(6px);
}


/* ==============================
   RS Signup labels color (пункт 6)
   ============================== */

.rs-signup-card .rs-signup-title,
.rs-signup-card .form-label {
    color: rgba(var(--bs-primary-rgb), 0.95) !important;
}

.rs-signup-card .form-label {
    font-weight: 900;
}


/* ==============================
   RS Fixes: hero/coach/timeline (iteration)
   ============================== */

/* Bigger circular photos in Directions/Coaches/Trainers */
.rs-avatar-ring--lg {
    width: 148px;
    height: 148px;
}

@media (max-width: 575.98px) {
    .rs-avatar-ring--lg {
        width: 124px;
        height: 124px;
    }
}

/* Smaller pills (Дети/Взрослые) */
.rs-pill--xs {
    padding: 0.20rem 0.48rem;
    font-size: 0.66rem;
    gap: 0.28rem;
}

/* Name colors: same tone (no grey bug) */
.rs-firstname {
    color: rgba(15, 23, 42, 0.92) !important;
}

/* Timeline: ensure overlays do not block clicks */
.timeline-fade,
.rs-timeline-hint {
    pointer-events: none;
}

.js-timeline-wrap.is-dragging {
    user-select: none;
}

/* ==============================
   RS Partners & Projects blocks
   ============================== */

.rs-section--white {
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.rs-section--greenline {
    position: relative;
}

.rs-section--greenline::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        rgba(var(--bs-primary-rgb), 0) 0%,
        rgba(var(--bs-primary-rgb), 0.65) 18%,
        rgba(var(--bs-primary-rgb), 0.65) 82%,
        rgba(var(--bs-primary-rgb), 0) 100%
    );
}

.rs-partners-marquee {
    --rs-partner-item-width: 220px;
    --rs-partner-gap: 18px;
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
    padding: 6px 0;
    mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.rs-partners-track {
    display: flex;
    align-items: center;
    gap: var(--rs-partner-gap);
    width: max-content;
    animation: rs-partners-scroll 30s linear infinite;
    will-change: transform;
}

.rs-partners-marquee:hover .rs-partners-track {
    animation-play-state: paused;
}

.rs-partner-item {
    flex: 0 0 var(--rs-partner-item-width);
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: box-shadow 220ms ease, background 220ms ease, transform 220ms ease;
}

.rs-partner-item img {
    max-height: 74px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.88;
    filter: grayscale(1);
    transition: opacity 220ms ease, filter 220ms ease, transform 220ms ease;
}

.rs-partner-item:hover {
    background: rgba(var(--bs-primary-rgb), 0.04);
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.10);
    transform: translateY(-2px);
}

.rs-partner-item:hover img {
    opacity: 1;
    filter: none;
    transform: scale(1.02);
}

@keyframes rs-partners-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-1 * ((var(--rs-partner-item-width) + var(--rs-partner-gap)) * var(--rs-partner-count))));
    }
}

@media (prefers-reduced-motion: reduce) {
    .rs-partners-track {
        animation: none;
    }
}

@media (max-width: 991.98px) {
    .rs-partners-marquee {
        --rs-partner-item-width: 180px;
    }

    .rs-partner-item {
        min-height: 88px;
        padding: 12px 14px;
    }

    .rs-partner-item img {
        max-height: 64px;
    }
}

@media (max-width: 575.98px) {
    .rs-partners-marquee {
        --rs-partner-item-width: 150px;
        --rs-partner-gap: 12px;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .rs-partner-item {
        min-height: 76px;
        border-radius: 14px;
    }

    .rs-partner-item img {
        max-height: 52px;
    }
}

.rs-project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.rs-project-media {
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.06), rgba(15, 23, 42, 0.02));
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.rs-project-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rs-project-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1 1 auto;
}

.rs-project-title {
    font-size: 1.02rem;
    margin-bottom: 0.15rem;
}

.rs-project-card p {
    font-size: 0.94rem;
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .rs-project-media {
        aspect-ratio: 16 / 10;
    }
}

