/* =====================================================
   RITM Sports Center — Main Stylesheet
   ===================================================== */

/* ---- Local Fonts ---- */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* ---- Variables ---- */
:root {
    --bg-primary:   #ffffff;
    --bg-secondary: #f4f6f9;
    --bg-card:      #ffffff;
    --bg-card-hover:#f8fafc;
    --accent:       #339d15;
    --accent-hover: #2a7e11;
    --accent-light: rgba(51,157,21,0.10);
    --text:         #1a2332;
    --text-muted:   #4a5568;
    --text-dim:     #718096;
    --border:       rgba(0,0,0,0.10);
    --border-accent:rgba(51,157,21,0.30);
    --radius:       8px;
    --radius-sm:    6px;
    --radius-lg:    12px;
    --shadow:       0 4px 20px rgba(0,0,0,0.10);
    --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
    --transition:   .25s ease;
    --container:    1200px;
    --header-h:     72px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; }

h1, h2, h3, h4 {
    line-height: 1.25;
    font-weight: 700;
    color: var(--text);
}

/* ---- Container ---- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn--accent {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}
.btn--accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(51,157,21,0.30);
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.btn--lg { padding: 16px 36px; font-size: 16px; }
.btn--full { width: 100%; justify-content: center; }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
    background: var(--bg-primary);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: var(--header-h);
}

/* Logo */
.header__logo, .footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo__icon {
    width: 40px; height: 40px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
}

.logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.logo__text strong {
    font-size: 20px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: 1px;
}
.logo__text small {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Logo image variant */
.logo__icon--img {
    background: transparent;
    border-radius: 0;
    width: auto;
    height: 44px;
}
.logo__icon--img img {
    height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    border-radius: 0;
}

/* Nav */
.header__nav { flex: 1; }

.nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__list .menu-item a {
    display: block;
    padding: 8px 14px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--transition);
}
.nav__list .menu-item a:hover,
.nav__list .current-menu-item a {
    color: var(--text);
    background: var(--accent-light);
}
.nav__list .current-menu-item a { color: var(--accent); }

.header__cta { margin-left: auto; flex-shrink: 0; }

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.burger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}
.burger.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
    background: var(--bg-primary);
    padding: 80px 0;
    border-bottom: 1px solid var(--border-subtle);
    background-size: cover;
}

/* Hero с фоновым изображением */
.hero--bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero--bg-image .hero__inner {
    position: relative;
    z-index: 1;
}


/* Hero с картинкой справа */
.hero--with-image .hero__inner {
    display: flex;
    align-items: center;
    gap: 48px;
}
.hero--with-image .hero__content {
    flex: 1;
    min-width: 0;
}
.hero--with-image .hero__image {
    flex-shrink: 0;
    width: 45%;
    max-width: 520px;
}
.hero--with-image .hero__image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}

.hero__title {
    max-width: 680px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text);
}

.hero__subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.6;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Dropdown «Об организации» ===== */
.ritm-about-dropdown {
    position: relative;
}
.ritm-about-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
}
.ritm-about-submenu {
    display: none;
    position: absolute;
    top: 100%;
    padding-top: 4px;
    left: 0;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-subtle, #e5e7eb);
    border-radius: 10px;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 200;
    padding: 6px 0;
    list-style: none;
    margin: 0;
}
.ritm-about-submenu li a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}
.ritm-about-submenu li a:hover {
    background: var(--accent-light);
    color: var(--text);
}
.ritm-about-dropdown:hover .ritm-about-submenu,
.ritm-about-dropdown.is-open .ritm-about-submenu {
    display: block;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* =====================================================
   SECTION COMMONS
   ===================================================== */
.section {
    padding: 50px 0;
}
.section--slider { padding: 0; }
.section--news { background: var(--bg-secondary); }
.section--news-archive { background: var(--bg-primary); }
.section--map  { background: var(--bg-primary); }
.section--services-preview { background: var(--bg-primary); }

.section__head {
    text-align: center;
    margin-bottom: 56px;
}

.section__tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.section__subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
}

.section__action { text-align: center; margin-top: 48px; }

/* =====================================================
   SWIPER SLIDER
   ===================================================== */
.ritm-swiper { width: 100%; }

.swiper-slide .slide {
    height: 600px;
    background: var(--bg-secondary) center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,17,23,0.9) 0%, rgba(13,17,23,0.3) 60%, transparent 100%);
}

.slide__content {
    position: relative;
    z-index: 2;
    padding: 48px;
    max-width: 700px;
}

.slide__title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}

.slide__desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 480px;
}

/* Swiper controls */
.swiper-button-next,
.swiper-button-prev {
    width: 48px !important;
    height: 48px !important;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
    transition: all var(--transition);
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--accent);
    border-color: var(--accent);
}
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 14px !important;
    color: #ffffff;
    font-weight: 700;
}
.swiper-button-next:hover::after,
.swiper-button-prev:hover::after { color: #ffffff; }

.swiper-pagination-bullet {
    background: var(--text-muted) !important;
    opacity: 1 !important;
    width: 8px !important; height: 8px !important;
    transition: all var(--transition);
}
.swiper-pagination-bullet-active {
    background: var(--accent) !important;
    width: 24px !important;
    border-radius: 4px !important;
}

/* =====================================================
   SERVICES GRID (homepage preview)
   ===================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: all var(--transition);
    text-align: center;
}
.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    box-shadow: var(--shadow);
}

.service-card__icon {
    width: 64px; height: 64px;
    background: var(--accent-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--accent);
    margin: 0 auto 20px;
    transition: all var(--transition);
}
.service-card:hover .service-card__icon {
    background: var(--accent);
    color: #ffffff;
}

.service-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card__desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.service-card__price {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--border-accent);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

/* =====================================================
   SERVICES LIST (services page)
   ===================================================== */
.services-list { display: flex; flex-direction: column; gap: 64px; }

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.service-item--reverse { direction: rtl; }
.service-item--reverse > * { direction: ltr; }

.service-item__img {
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.service-item__img img {
    width: 100%; height: 360px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: transform .4s ease;
}
.service-item:hover .service-item__img img { transform: scale(1.03); }

.service-item__icon {
    width: 56px; height: 56px;
    background: var(--accent-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 16px;
}

.service-item__title { font-size: 1.75rem; margin-bottom: 16px; }

.service-item__desc { color: var(--text-muted); margin-bottom: 20px; line-height: 1.7; }

.service-item__price {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--border-accent);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.services-cta {
    margin-top: 80px;
    text-align: center;
    padding: 56px 40px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.services-cta p { color: var(--text-muted); margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* =====================================================
   NEWS GRID
   ===================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.news-grid--full { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}
.news-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow);
}

.news-card__img-wrap { overflow: hidden; aspect-ratio: 16/9; }
.news-card__img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.news-card:hover .news-card__img { transform: scale(1.05); }

.news-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card__date {
    font-size: 13px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.news-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.35;
}
.news-card__title a { color: var(--text); }
.news-card__title a:hover { color: var(--accent); }

.news-card__excerpt {
    font-size: 14px;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}
.news-card__link:hover { color: var(--accent-hover); }
.news-card__link i { transition: transform var(--transition); }
.news-card__link:hover i { transform: translateX(4px); }

/* =====================================================
   MAP SECTION
   ===================================================== */
.map-info {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 40px;
    align-items: stretch;
}

.map-info__details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.map-info__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.map-info__item i {
    width: 40px; height: 40px;
    background: var(--accent-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--accent);
    flex-shrink: 0;
}
.map-info__item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.map-info__item strong { font-size: 13px; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.map-info__item span,
.map-info__item a { font-size: 15px; color: var(--text); }
.map-info__item a:hover { color: var(--accent); }

.map-info__map {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 420px;
}
.map-info__map iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: none;
    display: block;
}

/* =====================================================
   PAGE HERO (inner pages)
   ===================================================== */
.page-hero--inner {
    background: var(--bg-secondary);
    padding: calc(var(--header-h) + 48px) 0 48px;
    border-bottom: 3px solid var(--accent);
}

.page-hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 16px;
}

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-dim);
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-dim); }

/* =====================================================
   PAGE CONTENT
   ===================================================== */
.page-content { padding: 64px 0 100px; }

.entry-content {
    max-width: 780px;
    color: var(--text-muted);
    line-height: 1.8;
}
.entry-content h1, .entry-content h2, .entry-content h3 { color: var(--text); margin: 32px 0 16px; }
.entry-content p { margin-bottom: 16px; }
.entry-content ul, .entry-content ol { margin: 16px 0 16px 24px; }
.entry-content li { margin-bottom: 8px; }
.entry-content a { color: var(--accent); }
.entry-content img { border-radius: var(--radius); margin: 24px 0; }
.entry-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 16px 24px;
    background: var(--bg-card);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 24px 0;
    color: var(--text);
    font-style: italic;
}

/* =====================================================
   ABOUT PAGE
   ===================================================== */
.about-content { margin-bottom: 80px; }

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 64px;
}

.advantage-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
}
.advantage-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow);
}

.advantage-card__icon {
    width: 60px; height: 60px;
    background: var(--accent-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent);
    margin: 0 auto 20px;
}

.advantage-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.advantage-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.about-cta {
    text-align: center;
    padding: 64px 40px;
    background: linear-gradient(135deg, var(--accent-light), transparent);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
}
.about-cta h2 { font-size: 2rem; margin-bottom: 12px; }
.about-cta p  { color: var(--text-muted); margin-bottom: 28px; }

/* =====================================================
   CONTACTS PAGE
   ===================================================== */
.contacts-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    margin-bottom: 64px;
    align-items: start;
}

.contacts-info__title { font-size: 1.75rem; margin-bottom: 32px; }

.contacts-info__items { display: flex; flex-direction: column; gap: 24px; margin-bottom: 32px; }

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contact-item__icon {
    width: 48px; height: 48px;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent);
    flex-shrink: 0;
}
.contact-item > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
}
.contact-item > div strong {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.contact-item > div span,
.contact-item > div a { font-size: 16px; color: var(--text); }
.contact-item > div a:hover { color: var(--accent); }

.contacts-social strong { display: block; margin-bottom: 12px; font-size: 13px; color: var(--text-dim); }
.social-links { display: flex; gap: 12px; flex-wrap: wrap; }
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    color: var(--text-muted);
    transition: all var(--transition);
}
.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.contacts-form-wrap h2 { font-size: 1.75rem; margin-bottom: 8px; }

.contacts-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
}
.contacts-map iframe { width: 100%; height: 100%; border: none; display: block; }

/* =====================================================
   FORMS
   ===================================================== */
.form__group { margin-bottom: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form__input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: border-color var(--transition);
    outline: none;
}
.form__input::placeholder { color: var(--text-dim); }
.form__input:focus { border-color: var(--accent); background: var(--bg-card-hover); }
.form__textarea { resize: vertical; min-height: 120px; }

.form__group--checkbox { display: flex; align-items: flex-start; gap: 0; }

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] { display: none; }

.checkbox-custom {
    width: 20px; height: 20px;
    border: 2px solid var(--border);
    border-radius: 5px;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}
.checkbox-label input:checked + .checkbox-custom {
    background: var(--accent);
    border-color: var(--accent);
}
.checkbox-label input:checked + .checkbox-custom::after {
    content: '✓';
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}

.checkbox-text { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.checkbox-text a { color: var(--accent); }

.form__message {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    display: none;
}
.form__message.success {
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.3);
    color: #4ade80;
    display: block;
}
.form__message.error {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.3);
    color: #f87171;
    display: block;
}

/* =====================================================
   POPUP
   ===================================================== */
.popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.popup.is-open {
    opacity: 1;
    visibility: visible;
}

.popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.popup__box {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.92) translateY(16px);
    transition: transform var(--transition);
    box-shadow: var(--shadow);
}
.popup.is-open .popup__box {
    transform: scale(1) translateY(0);
}

.popup__close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.popup__close:hover { background: var(--accent); color: #ffffff; border-color: var(--accent); }

.popup__header { text-align: center; margin-bottom: 28px; }

.popup__icon {
    width: 56px; height: 56px;
    background: var(--accent-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent);
    margin: 0 auto 16px;
}

.popup__title { font-size: 1.5rem; margin-bottom: 8px; }
.popup__subtitle { font-size: 14px; color: var(--text-muted); }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 80px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}

.footer__col--brand .footer__logo { margin-bottom: 16px; }
.footer__desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }

.footer__social {
    display: flex;
    gap: 12px;
}
.footer__social a {
    width: 38px; height: 38px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
    transition: all var(--transition);
}
.footer__social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.footer__heading {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer__nav li a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color var(--transition);
}
.footer__nav li a:hover { color: var(--accent); }

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer__contacts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}
.footer__contacts li i { color: var(--accent); font-size: 14px; margin-top: 2px; flex-shrink: 0; }
.footer__contacts li a { color: var(--text-muted); }
.footer__contacts li a:hover { color: var(--accent); }

.footer__bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
}
.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer__bottom p { font-size: 13px; color: var(--text-dim); }
.footer__policy { font-size: 13px; color: var(--text-dim); }
.footer__policy:hover { color: var(--accent); }

/* =====================================================
   SINGLE POST
   ===================================================== */
.single-layout { max-width: 860px; }

.post-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.post-date { font-size: 14px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.post-category {
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--border-accent);
    padding: 2px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-thumbnail { margin-bottom: 40px; }
.single-thumbnail__img { width: 100%; border-radius: var(--radius); max-height: 480px; object-fit: contain; }

/* News slider (single post) */
.single-slider {
    margin-bottom: 40px;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.ritm-swiper--news .slide--photo-link {
    display: block;
    height: 480px;
    overflow: hidden;
    cursor: zoom-in;
}
.ritm-swiper--news .slide--photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.ritm-swiper--news .slide--photo-link:hover .slide--photo-img { transform: scale(1.03); }

@media (max-width: 768px) {
    .ritm-swiper--news .slide--photo-link { height: 260px; }
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.post-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    max-width: 45%;
    transition: color var(--transition);
}
.post-nav-link:hover { color: var(--accent); }
.post-nav-link--next { margin-left: auto; text-align: right; }

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 56px;
    flex-wrap: wrap;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 14px;
    transition: all var(--transition);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

/* =====================================================
   EMPTY STATE
   ===================================================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}
.empty-state i { font-size: 64px; color: var(--text-dim); margin-bottom: 24px; display: block; }
.empty-state h2 { margin-bottom: 12px; }
.empty-state p { color: var(--text-muted); margin-bottom: 32px; }

/* =====================================================
   PAGE INTRO
   ===================================================== */
.page-intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .service-item { grid-template-columns: 1fr; }
    .service-item--reverse { direction: ltr; }
    .map-info { grid-template-columns: 1fr; }
    .contacts-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }

    .header__nav, .header__cta { display: none; }

    .header__nav.is-open {
        display: block;
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: var(--bg-primary);
        padding: 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
        z-index: 999;
    }
    .header__nav.is-open .nav__list {
        flex-direction: column;
        align-items: stretch;
    }
    .header__nav.is-open .nav__list .menu-item a {
        padding: 14px 16px;
        font-size: 16px;
    }

    .burger { display: flex; }

    .hero__title { font-size: 1.5rem; }

    .hero--with-image .hero__inner { flex-direction: column; }
    .hero--with-image .hero__image { width: 100%; max-width: 100%; }

    /* Dropdown в мобильном меню — показывать как обычный список */
    .ritm-about-submenu {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0 0 0 16px;
    }

    .news-grid { grid-template-columns: 1fr; }

    .footer__grid { grid-template-columns: 1fr; gap: 32px; }

    .section { padding: 34px 0; }
    .swiper-slide .slide { height: 420px; }
    .slide__content { padding: 28px 20px; }

    .form__row { grid-template-columns: 1fr; }

    .popup__box { padding: 28px 20px; }

    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; justify-content: center; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .advantages-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 1.4rem; }
    .services-grid { grid-template-columns: 1fr; }
    .news-grid--full { grid-template-columns: 1fr; }
}

/* =====================================================
   POST GALLERY
   ===================================================== */
.post-gallery {
    margin: 40px 0;
}
.post-gallery__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}
.post-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.post-gallery__item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.post-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.post-gallery__item:hover img { transform: scale(1.04); }

/* Admin gallery picker */
.ritm-gallery-wrap { padding: 4px 0; }
.ritm-gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}
.ritm-gallery-item {
    position: relative;
    width: 80px; height: 80px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
}
.ritm-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ritm-gallery-remove {
    position: absolute;
    top: 2px; right: 2px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 50%;
    width: 18px; height: 18px;
    font-size: 11px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    line-height: 1;
}

/* =====================================================
   ACCESSIBILITY TOGGLE BUTTON
   ===================================================== */
.a11y-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.a11y-toggle:hover,
.a11y-toggle.is-active {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-light);
}
.a11y-toggle__label { display: inline; }

/* Nav (mobile menu) */
.nav__a11y {
    display: none;
    padding: 12px 0 0;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}
.a11y-toggle--nav {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 15px;
}

/* Footer */
.a11y-toggle--footer { font-size: 13px; }

/* =====================================================
   ACCESSIBILITY BAR
   ===================================================== */
.a11y-bar {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    z-index: 998;
    background: #1e2b3a;
    border-bottom: 2px solid #339d15;
    transform: translateY(-110%);
    transition: transform .25s ease;
}
.a11y-bar.is-open { transform: translateY(0); }

.a11y-bar__inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px 32px;
    padding: 12px 24px;
}

.a11y-bar__group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.a11y-bar__group--reset { margin-left: auto; }

.a11y-bar__label {
    font-size: 13px;
    color: #8fa3b8;
    font-weight: 500;
    white-space: nowrap;
}

.a11y-bar__btns { display: flex; gap: 4px; }

.a11y-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: #c9d8e8;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    cursor: pointer;
    transition: all .2s ease;
    line-height: 1;
}
.a11y-btn:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); }
.a11y-btn.is-active,
.a11y-btn[aria-pressed="true"] {
    background: #339d15;
    border-color: #339d15;
    color: #fff;
}

.a11y-btn--font .a11y-font-s { font-size: 13px; }
.a11y-btn--font .a11y-font-m { font-size: 16px; }
.a11y-btn--font .a11y-font-l { font-size: 20px; }

.a11y-swatch--bw { background: #fff !important; color: #000 !important; border-color: #999 !important; }
.a11y-swatch--bw.is-active { border-color: #339d15 !important; outline: 2px solid #339d15; }
.a11y-swatch--by { background: #000 !important; color: #ffff00 !important; border-color: #555 !important; }
.a11y-swatch--by.is-active { outline: 2px solid #339d15; }

.a11y-btn--reset {
    padding: 5px 14px;
    color: #aabdd0;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
}
.a11y-btn--reset:hover { color: #fff; border-color: rgba(255,255,255,0.5); background: transparent; }

.a11y-bar__close {
    background: none;
    border: none;
    color: #8fa3b8;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color .2s;
    margin-left: 8px;
}
.a11y-bar__close:hover { color: #fff; }

/* =====================================================
   ACCESSIBILITY BODY CLASSES
   ===================================================== */

/* Font: medium */
body.a11y-font-md { font-size: 19px; }
/* Font: large */
body.a11y-font-lg { font-size: 22px; }

/* High contrast: black text on white */
body.a11y-contrast-bw {
    --bg-primary:    #ffffff;
    --bg-secondary:  #eeeeee;
    --bg-card:       #ffffff;
    --bg-card-hover: #f5f5f5;
    --text:          #000000;
    --text-muted:    #111111;
    --text-dim:      #333333;
    --accent:        #00007a;
    --accent-hover:  #000055;
    --accent-light:  rgba(0,0,122,0.08);
    --border:        rgba(0,0,0,0.25);
    --border-accent: rgba(0,0,122,0.4);
    --shadow:        0 2px 8px rgba(0,0,0,0.15);
}
body.a11y-contrast-bw img { filter: grayscale(100%) contrast(1.1); }

/* High contrast: yellow text on black */
body.a11y-contrast-by {
    --bg-primary:    #000000;
    --bg-secondary:  #111111;
    --bg-card:       #0a0a0a;
    --bg-card-hover: #1a1a1a;
    --text:          #ffff00;
    --text-muted:    #eeee00;
    --text-dim:      #cccc00;
    --accent:        #ffff00;
    --accent-hover:  #eeee00;
    --accent-light:  rgba(255,255,0,0.12);
    --border:        rgba(255,255,0,0.2);
    --border-accent: rgba(255,255,0,0.4);
    --shadow:        0 2px 8px rgba(0,0,0,0.5);
}
body.a11y-contrast-by a { color: #ffff00 !important; }
body.a11y-contrast-by .btn--accent { background: #ffff00 !important; border-color: #ffff00 !important; color: #000 !important; }

/* No images */
body.a11y-no-images img { visibility: hidden !important; }
body.a11y-no-images .swiper-slide .slide,

/* Adjust header-h offset when a11y bar is open */
body.a11y-bar-open { --a11y-bar-h: 56px; }

/* =====================================================
   RESPONSIVE: accessibility
   ===================================================== */
@media (max-width: 768px) {
    #a11y-toggle { display: none; }
    .a11y-toggle--footer { display: none; }
    .nav__a11y { display: block; }
    .a11y-bar__inner { gap: 12px 20px; padding: 10px 16px; }
    .a11y-bar__group--reset { margin-left: 0; }
    .a11y-bar__label { display: none; }
}

/* Service content area */
.service-item__body { color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }
.service-item__body p { margin-bottom: 12px; }
.service-item__body ul, .service-item__body ol { margin: 12px 0 12px 20px; }
.service-item__body li { margin-bottom: 6px; }
.service-item__body h3, .service-item__body h4 { color: var(--text); margin: 16px 0 8px; }

/* =====================================================
   MOBILE NAV EXTRAS (phone, social, CTA in burger)
   ===================================================== */
.nav__mobile-extras {
    display: none;
    padding: 16px 0 8px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}
.nav__mobile-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 14px;
}
.nav__mobile-phone i { color: var(--accent); }
.nav__mobile-phone:hover { color: var(--accent); }

.nav__mobile-social {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.nav__mobile-social a {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 17px;
    color: var(--text-muted);
    transition: all var(--transition);
}
.nav__mobile-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

@media (max-width: 768px) {
    .nav__mobile-extras { display: block; }
}

/* =====================================================
   EVENTS
   ===================================================== */
.section--events-preview { background: var(--bg-secondary); }
.section--event-slider   { padding: 40px 0 56px; }

/* Events grid (listing + homepage preview) */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.event-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: box-shadow .2s;
}
.event-card:hover { box-shadow: var(--shadow-md); }

.event-card__img-wrap {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.event-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.event-card:hover .event-card__img { transform: scale(1.04); }

.event-card__img-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-muted);
}

.event-card__body {
    padding: 20px;
}
.event-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.35;
}
.event-card__title a { color: var(--text); }
.event-card__title a:hover { color: var(--accent); }
.event-card__excerpt {
    font-size: .9rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.6;
}
.event-card__link {
    font-size: .88rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.event-card__link:hover { gap: 10px; }

/* Event detail page */
.event-detail {
    padding: 56px 0 80px;
}
.event-detail__cover {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 48px;
}
.event-detail__cover-img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
}
.event-detail__content,
.event-detail__text2 {
    max-width: 860px;
    margin: 0 auto 56px;
}
.event-detail__news {
    margin-bottom: 56px;
}
.event-detail__section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

/* Event docs */
.event-detail__docs { margin-bottom: 56px; }

/* Photo slider for events — img-based */
.ritm-swiper--gallery { border-radius: var(--radius-md); overflow: hidden; }
.ritm-swiper--gallery .slide--photo-link {
    display: block;
    height: 480px;
    overflow: hidden;
    cursor: zoom-in;
}
.ritm-swiper--gallery .slide--photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.ritm-swiper--gallery .slide--photo-link:hover .slide--photo-img { transform: scale(1.03); }

@media (max-width: 768px) {
    .events-grid { grid-template-columns: 1fr; }
    .event-detail { padding: 32px 0 56px; }
    .ritm-swiper--gallery .slide--photo-link { height: 260px; }
}

/* =====================================================
   DOCUMENTS HOME PREVIEW
   ===================================================== */
.section--docs-preview { background: var(--bg-secondary); }

.docs-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.doc-home-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s;
}
.doc-home-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 10px rgba(51,157,21,.1);
}
.doc-home-card__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.doc-home-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.doc-home-card__cat {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
}
.doc-home-card__title {
    font-size: .88rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.doc-home-card__arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: .85rem;
}

@media (max-width: 768px) {
    .docs-home-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   DOCUMENTS PAGE
   ===================================================== */
.docs-section {
    margin-bottom: 56px;
}
.docs-section__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}
.docs-section__desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    margin-top: 6px;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.doc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.doc-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-sm);
}

.doc-card__preview {
    width: 100%;
    aspect-ratio: 3/2;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.doc-card__preview img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.doc-card__preview i {
    font-size: 36px;
    color: var(--accent);
    opacity: 0.7;
}

.doc-card__body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.doc-card__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    flex: 1;
    margin: 0;
}
.doc-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition);
    align-self: flex-start;
}
.doc-card__btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.doc-card__no-file {
    font-size: 11px;
    color: var(--text-dim);
}

/* =====================================================
   SCHEDULE PAGE
   ===================================================== */
.schedule-wrap table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}
.schedule-wrap th {
    background: var(--accent);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
}
.schedule-wrap td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}
.schedule-wrap tr:hover td { background: var(--bg-secondary); }

/* =====================================================
   COOKIE CONSENT BAR
   ===================================================== */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text);
    color: #fff;
    z-index: 9999;
    padding: 16px 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,.18);
    animation: cookieSlideUp .35s ease;
}
.cookie-bar--hidden {
    animation: cookieSlideDown .35s ease forwards;
}
.cookie-bar__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-bar__text {
    flex: 1;
    font-size: .9rem;
    line-height: 1.5;
    color: rgba(255,255,255,.85);
    margin: 0;
}
.cookie-bar__text a {
    color: var(--accent);
    text-decoration: underline;
}
.cookie-bar__btn { flex-shrink: 0; }

@keyframes cookieSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
@keyframes cookieSlideDown {
    from { transform: translateY(0); }
    to   { transform: translateY(100%); }
}

@media (max-width: 600px) {
    .cookie-bar__inner { flex-direction: column; align-items: flex-start; }
    .cookie-bar__btn { width: 100%; }
}

/* =====================================================
   DEV BANNER
   ===================================================== */
.dev-banner {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #f59e0b;
    color: #1a1a1a;
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    transition: opacity .35s ease, transform .35s ease;
}
.dev-banner--hidden {
    opacity: 0;
    transform: translateY(-100%);
}
.dev-banner__inner {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dev-banner__icon {
    flex-shrink: 0;
    font-size: 16px;
}
.dev-banner__text {
    flex: 1;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.4;
}
.dev-banner__close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 16px;
    color: #1a1a1a;
    opacity: .7;
    transition: opacity .2s;
}
.dev-banner__close:hover { opacity: 1; }

@media (max-width: 600px) {
    .dev-banner__text { font-size: .8rem; }
}

/* =====================================================
   HERO SLIDER (multiple images)
   ===================================================== */
.ritm-hero-swiper {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
}
.ritm-hero-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ritm-hero-swiper .swiper-pagination {
    bottom: 10px;
}
.ritm-hero-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: .7;
}
.ritm-hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
}
