*,
*::before,
*::after {
    box-sizing: border-box
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: "Rubik", system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", "Helvetica Neue", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

ul {
    padding: 0;
    margin: 0;
    list-style: none
}

:root {
    --bg: #090808;
    --bg-2: #0F0E0E;
    --bg-3: #141313;
    --burgundy: #490A0B;
    --burgundy-2: #6a1113;
    --burgundy-3: #2f0607;
    --text: #F2F2F2;
    --muted: #B9B9B9;
    --accent: #C89B3C;
    --success: #26a269;
    --shadow: 0 10px 30px rgba(0, 0, 0, .5)
}

.container {
    width: min(1200px, 92vw);
    margin-inline: auto
}

h1,
h2,
h3 {
    font-family: "Oswald", "Rubik", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    margin: 0 0 .7em 0;
    line-height: 1.2;
    letter-spacing: .3px
}

.hidden {
    display: none !important
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .5s ease
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0)
}

/* Sections (общие) */
.page .section {
    padding: clamp(36px, 6vw, 80px) 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-2), var(--bg-3))
}

.page .section--bg,
.page .section--alt {
    background: #0a0a0a
}

.page .section--bg>*,
.page .section--alt>* {
    position: relative;
    z-index: 1
}

.section-title {
    font-size: clamp(24px, 3.5vw, 38px)
}

.section-subtitle {
    color: var(--muted);
    margin-top: -.6em;
    margin-bottom: 1.6em
}

/* Sticky nav + burger */
.sticky-nav {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 50
}

.burger {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: linear-gradient(180deg, var(--burgundy), var(--burgundy-2));
    box-shadow: 0 8px 22px rgba(73, 10, 11, .55);
    display: grid;
    place-items: center;
    cursor: pointer
}

.burger span,
.burger span::before,
.burger span::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    position: relative
}

.burger span::before {
    position: absolute;
    top: -6px
}

.burger span::after {
    position: absolute;
    top: 6px
}

/* Header */
.header {
    position: relative;
    min-height: 84vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(80% 80% at 70% 50%, rgba(73, 10, 11, .28) 0, rgba(73, 10, 11, 0) 50%),
        linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .65)),
        url('https://khmerboxing.ru/assets/img/hero-kun-khmer.jpg') center/cover no-repeat fixed;
    isolation: isolate;
    overflow: hidden
}

.header__inner {
    width: min(1300px, 94vw);
    display: grid;
    grid-template-columns: 1.15fr .55fr;
    gap: clamp(16px, 3vw, 40px);
    align-items: center;
    padding-top: 70px
}

.header__left {
    align-self: flex-start;
    padding: clamp(12px, 2vw, 26px);
    background: linear-gradient(180deg, rgba(9, 8, 8, .55), rgba(9, 8, 8, .2));
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    backdrop-filter: blur(3px);
    box-shadow: var(--shadow)
}

.header__right {
    display: grid;
    align-content: start;
    justify-items: end
}

.header-sep {
    position: absolute;
    inset: auto 0 0 0;
    height: 110px;
    background: linear-gradient(180deg, rgba(73, 10, 11, 0), rgba(73, 10, 11, .35) 40%, rgba(73, 10, 11, .8));
    filter: drop-shadow(0 -10px 30px rgba(0, 0, 0, .4));
    clip-path: path("M0,60 C200,120 400,0 600,60 C800,120 1000,10 1200,60 L1200,200 L0,200 Z");
    z-index: 1
}

.hero-pre {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: .6rem;
    font-size: clamp(12px, 1.6vw, 14px)
}

.hero-title {
    font-size: clamp(34px, 5.3vw, 72px);
    line-height: 1.05;
    margin-bottom: .35em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .5)
}

.hero-sub {
    color: var(--muted);
    font-size: clamp(15px, 1.8vw, 18px);
    margin-bottom: 1.2rem
}

.hero-cta {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap
}

/* Вертикальное меню */
.menu-vertical {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    background: rgba(9, 8, 8, .55);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    padding: .8rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(4px)
}

.menu-vertical a {
    padding: .6rem .9rem;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: 14px;
    background: linear-gradient(180deg, rgba(73, 10, 11, .8), rgba(73, 10, 11, .45));
    border: 1px solid rgba(255, 255, 255, .06);
    transition: transform .15s ease, background .2s ease
}

.menu-vertical a:hover {
    transform: translateX(-3px)
}

/* Offcanvas */
.offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(92vw, 380px);
    background: #0a0a0a;
    border-left: 1px solid rgba(255, 255, 255, .08);
    transform: translateX(100%);
    transition: transform .28s ease, box-shadow .28s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 14px;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    visibility: hidden;
    pointer-events: none;
}

.offcanvas[aria-hidden="false"],
.offcanvas.is-open {
    transform: translateX(0);
    box-shadow: -24px 0 40px rgba(0, 0, 0, .4);
    visibility: visible;
    pointer-events: auto;
}

.offcanvas__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 2px 10px;
}

.offcanvas__head .btn--clear {
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .12);
    background: transparent;
    cursor: pointer;
}

.offcanvas__head .btn--clear:hover {
    background: rgba(255, 255, 255, .06)
}

.offcanvas__head .btn--clear:active {
    transform: scale(.96)
}

.offcanvas__menu {
    display: grid;
    gap: 6px;
    padding: 6px 0 12px;
    overflow-y: auto;
    max-height: calc(100vh - 220px)
}

.offcanvas__menu a {
    display: block;
    padding: 12px 14px;
    margin: 5px 0;
    border-radius: 12px;
    line-height: 1.25;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .12);
    background: linear-gradient(180deg, var(--burgundy), var(--burgundy-2));
}

.offcanvas__menu a:hover,
.offcanvas__menu a:focus {
    border-color: rgba(255, 255, 255, .2);
    filter: saturate(1.05);
    outline: none
}

.offcanvas__legend {
    margin: 10px 2px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .02em
}

.offcanvas__foot {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .06)
}

.offcanvas__contacts {
    display: grid;
    gap: 8px
}

.offcanvas__contacts .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .06);
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01));
    color: inherit;
    text-decoration: none;
}

.offcanvas__contacts .contact-item:hover {
    border-color: rgba(255, 255, 255, .12);
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
}

.offcanvas__contacts .contact-item svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: block;
    color: var(--accent)
}

.offcanvas__contacts small {
    color: var(--muted)
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .9rem 1.2rem;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--burgundy), var(--burgundy-2));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 4px 18px rgba(73, 10, 11, .45);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    font-weight: 600
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(73, 10, 11, .55)
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--burgundy-2)
}

.btn--clear {
    background: transparent;
    border: 0;
    color: var(--text)
}

.btn--sm {
    padding: .55rem .9rem;
    font-size: .9rem;
    box-shadow: none
}

/* Buttons with icon (contacts) */
.btn--icon {
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.btn--icon .i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px
}

.btn--icon .i svg {
    width: 16px;
    height: 16px;
    display: block
}

/* Blocks */
.history {
    display: grid;
    gap: clamp(18px, 3vw, 28px)
}

.history__lead {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--muted);
    border-left: 3px solid var(--burgundy);
    padding-left: 16px
}

.history__grid {
    display: grid;
    gap: 28px
}

.history__row {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(16px, 3vw, 28px);
    align-items: center
}

.history__row:nth-child(even) .history__img {
    order: 2
}

.history__img {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: var(--shadow)
}

.history__text p {
    margin: 0 0 .9rem 0
}

.features {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(12, 1fr)
}

.feature {
    grid-column: span 12;
    background: linear-gradient(180deg, rgba(73, 10, 11, .18), rgba(73, 10, 11, .06));
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    padding: 18px;
}

.feature h3 {
    margin-bottom: .4rem
}

.partner-carousel .swiper-slide {
    aspect-ratio: 1/1;
    width: auto;
    height: auto;
    border-radius: 16px;
    overflow: hidden;
    background: #0c0b0b;
    border: 1px solid rgba(255, 255, 255, .06);
    padding: 0;
    display: grid;
    place-items: center
}

.partner-carousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    background: #0c0b0b
}

#partners .featured-partner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 14px;
    align-items: stretch;
}

#partners .featured-partner__logo {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #0c0b0b;
    display: grid;
    place-items: center;
}

#partners .featured-partner__img {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #0c0b0b;
    justify-self: end;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1/1;
}

.swiper {
    width: 100%
}

.join {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 18px;
    background: linear-gradient(135deg, rgba(73, 10, 11, .5), rgba(73, 10, 11, .2));
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 18px;
    padding: clamp(18px, 3vw, 28px)
}

.join__list {
    display: grid;
    gap: .5rem
}

.join__list li::before {
    content: "✓";
    color: var(--accent);
    margin-right: .5rem
}

.section--alt {
    background: linear-gradient(180deg, var(--bg-2), var(--bg-3))
}

.cards {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(12, 1fr)
}

.card {
    grid-column: span 12;
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow)
}

.card--3 {
    grid-column: span 12
}

.card--2 {
    grid-column: span 12
}

@media (min-width:640px) {
    .card--2 {
        grid-column: span 6
    }
}

@media (min-width:960px) {
    .card--3 {
        grid-column: span 4
    }
}

.telegram {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: stretch
}

.telegram__box {
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    padding: 18px;
    display: grid;
    align-content: start;
    box-shadow: var(--shadow)
}

.telegram__media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
    padding: 10px;
    box-shadow: 0 8px 22px rgba(73, 10, 11, .5), 0 0 0 0 rgba(255, 120, 0, .22), 0 0 0 0 rgba(255, 50, 0, .14);
    animation: flamePulse 3.6s ease-in-out infinite
}

.telegram__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 12px;
    filter: saturate(1.05) contrast(1.02)
}

@keyframes flamePulse {
    0% {
        box-shadow: 0 8px 22px rgba(73, 10, 11, .45), 0 0 0 0 rgba(255, 120, 0, .22), 0 0 0 0 rgba(255, 50, 0, .14)
    }

    50% {
        box-shadow: 0 12px 30px rgba(73, 10, 11, .6), 0 0 34px 8px rgba(255, 140, 0, .3), 0 0 64px 14px rgba(255, 60, 0, .18)
    }

    100% {
        box-shadow: 0 8px 22px rgba(73, 10, 11, .45), 0 0 0 0 rgba(255, 120, 0, .22), 0 0 0 0 rgba(255, 50, 0, .14)
    }
}

/* Footer */
.footer {
    background: #080707;
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding: 36px 0
}

.footer .grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr
}

.footer a {
    color: var(--muted)
}

.footer small {
    color: var(--muted)
}

@media (min-width:880px) {
    .footer .grid {
        grid-template-columns: 1.1fr .8fr .8fr
    }
}

/* Мобильная компактность футера */
@media (max-width:640px) {

    .footer .grid> :nth-child(2),
    .footer .grid> :nth-child(3) {
        display: none
    }
}

/* Responsive */
@media (max-width:760px) {
    .header {
        min-height: 58vh;
        background-attachment: scroll
    }

    .header__left {
        padding: 12px
    }

    .hero-title {
        font-size: clamp(28px, 7vw, 44px)
    }

    .hero-sub {
        font-size: 14px;
        margin-bottom: .8rem
    }

    .hero-cta .btn {
        padding: .7rem 1rem
    }

    .history__row {
        grid-template-columns: 1fr
    }

    .history__row:nth-child(even) .history__img {
        order: 0
    }

    .join {
        grid-template-columns: 1fr
    }

    .telegram {
        grid-template-columns: 1fr
    }
}

@media (max-width:640px) {
    #partners .featured-partner {
        grid-template-columns: 1fr
    }

    #partners .featured-partner__img {
        justify-self: stretch;
        max-width: 100%
    }
}

@media (max-width:980px) {
    .header__inner {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-top: 32px
    }

    .header__right {
        display: none
    }
}

/* ==================== Типовые карточки событий/людей ==================== */
.event-card,
.athlete-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    padding: 12px;
    box-shadow: var(--shadow)
}

.event-card__cover,
.athlete-card__cover {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    background: #0c0b0b
}

.event-card__cover img,
.athlete-card__cover img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
    filter: saturate(1.04) contrast(1.02)
}

.event-card__badge,
.athlete-card__badge {
    position: absolute;
    left: 10px;
    top: 10px;
    background: linear-gradient(180deg, var(--burgundy), var(--burgundy-2));
    border: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px
}

.event-card__meta h3,
.athlete-card__meta h3 {
    margin: 0 0 4px 0
}

.event-card__meta small,
.athlete-card__meta small {
    color: var(--muted)
}

.event-card__tags,
.athlete-card__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .08);
    color: var(--muted);
    font-size: 12px
}

.event-card__actions,
.athlete-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

/* Годовой фильтр */
.year-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px
}

.year-filter button {
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, .08)
}

.year-filter button.active {
    background: linear-gradient(180deg, var(--burgundy), var(--burgundy-2));
    border-color: rgba(255, 255, 255, .12)
}

/* Документы и сертификаты */
.doc-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01))
}

.doc-row+.doc-row {
    margin-top: 10px
}

.doc-row__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    background: #0c0b0b;
    border: 1px solid rgba(255, 255, 255, .06);
    font-weight: 700;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase
}

.doc-row__meta {
    display: grid;
    gap: 2px
}

.doc-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px
}

.cert {
    grid-column: span 12;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    background: #0c0b0b;
    box-shadow: var(--shadow)
}

.cert img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block
}

@media (min-width:640px) {
    .cert {
        grid-column: span 6
    }
}

@media (min-width:980px) {
    .cert {
        grid-column: span 3
    }
}

/* Гир/форма */
.page--gear .gear-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    align-items: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .015));
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow)
}

.page--gear .gear-card__media {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .07);
    background: #0c0b0b;
    display: grid;
    place-items: center
}

.page--gear .gear-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.page--gear .gear-card__meta h3 {
    margin: 0 0 6px 0
}

.page--gear .gear-card__meta small {
    color: var(--muted);
    display: block
}



.page--gear .panel,
.page .panel {
    background: linear-gradient(135deg, rgba(73, 10, 11, .35), rgba(73, 10, 11, .18));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: clamp(16px, 2.5vw, 22px);
    box-shadow: var(--shadow)
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .08);
    color: var(--muted);
    font-size: 12px
}

/* Hall of fame */
.hall-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px
}

.hall {
    grid-column: span 12;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    background: #0c0b0b;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-rows: auto 1fr
}

.hall img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block
}

.hall .hall__meta {
    padding: 10px 12px
}

@media (min-width:640px) {
    .hall {
        grid-column: span 6
    }
}

@media (min-width:980px) {
    .hall {
        grid-column: span 4
    }
}

/* Header media (локальные медиа-блоки в hero) */
.header__media {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    background: #0c0b0b
}

.header__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 16/9
}

/* Контакты */
.page--contacts .contact-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    align-items: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow)
}

.page--contacts .contact-card__photo {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #0c0b0b;
    display: grid;
    place-items: center
}

.page--contacts .contact-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.page--contacts .contact-card__meta h3 {
    margin: 0 0 6px 0
}

.page--contacts .contact-card__meta small {
    color: var(--muted);
    display: block;
    margin-bottom: 10px
}

.page--contacts .contact-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.page--contacts .info-panel {
    background: linear-gradient(135deg, rgba(73, 10, 11, .32), rgba(73, 10, 11, .16));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: clamp(16px, 2.5vw, 22px);
    box-shadow: var(--shadow)
}

/* Judges */
.page--judges .section {
    background: linear-gradient(180deg, var(--bg-2), var(--bg-3))
}

.page--judges .panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .015));
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    padding: clamp(16px, 2.5vw, 22px);
    box-shadow: var(--shadow)
}

.page--judges .panel--accent {
    background: linear-gradient(135deg, rgba(73, 10, 11, .35), rgba(73, 10, 11, .18));
    border-color: rgba(255, 255, 255, .08)
}

.people-note {
    color: var(--muted);
    margin-top: 10px;
    font-size: 14px
}

/* Docs page – уже покрыто общими блоками */

/* Competitions – уже покрыто event-card */

/* Page-specific dark sections (приводим к единому виду) */
.page--pride .section,
.page--gear .section,
.page--docs .section,
.page--contacts .section,
.page--competitions .section {
    background: linear-gradient(180deg, var(--bg-2), var(--bg-3))
}

.page--pride .section--bg,
.page--pride .section--alt,
.page--gear .section--bg,
.page--gear .section--alt,
.page--docs .section--bg,
.page--contacts .section--bg,
.page--competitions .section--bg,
.page--competitions .section--alt {
    background: #0a0a0a
}

/* === */

/* Judges: карточки людей — горизонтальные, с фото слева */
.page--judges .person-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    align-items: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.page--judges .person-card__photo {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #0c0b0b;
    display: grid;
    place-items: center;
}

.page--judges .person-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page--judges .person-card__meta h3 {
    margin: 0 0 6px 0;
}

.page--judges .person-card__meta small {
    color: var(--muted);
    display: block;
}

/* Руководство: 3 карточки в ряд на ПК и фон #1D1010 */
#board .person-card {
    background: #1D1010;
    border: 1px solid rgba(255, 255, 255, .06);
}

/* Тренерский штаб: 2 карточки в ряд на ПК */
/* Состав судей: 3 карточки в ряд на ПК */
@media (min-width: 960px) {
    #board .cards .person-card {
        grid-column: span 4;
    }

    /* 12 / 4 = 3 */
    #coaches .cards .person-card {
        grid-column: span 6;
    }

    /* 12 / 6 = 2 */
    #roster .cards .person-card {
        grid-column: span 4;
    }

    /* 12 / 4 = 3 */
}

/* Документы: стабильная сетка и переносы длинных названий */
.page--docs .doc-row {
    display: grid;
    grid-template-columns: minmax(42px, auto) 1fr max-content;
    /* кнопка — по содержимому */
    gap: 12px;
}

.page--docs .doc-row__meta {
    min-width: 0;
    /* разрешить сжатие текстовой колонки в гриде */
}

.page--docs .doc-row__meta strong {
    display: block;
    overflow-wrap: anywhere;
    /* переносить очень длинные слова/URL */
    word-break: break-word;
}

.page--docs .doc-actions {
    justify-self: end;
    /* кнопка всегда прижата вправо */
    white-space: nowrap;
    /* не переносить текст кнопки */
}

.page--docs .doc-actions .btn {
    white-space: nowrap;
}

/* Мелкие экраны — сохраняем три колонки, но даём тексту больше воздуха */
@media (max-width: 420px) {
    .page--docs .doc-row {
        grid-template-columns: minmax(38px, auto) 1fr max-content;
        gap: 10px;
    }
}

/* Наша деятельность: сетка 1/2/4 карточки */
.page--home .features {
    display: grid;
    grid-template-columns: 1fr;
    /* мобайл: 1 в строке */
    gap: 14px;
}

@media (min-width: 720px) {
    .page--home .features {
        grid-template-columns: repeat(2, 1fr);
    }

    /* планшет: 2 */
}

@media (min-width: 1200px) {
    .page--home .features {
        grid-template-columns: repeat(4, 1fr);
    }

    /* ПК: 4 */
}

/* Главный партнёр — блок с крупным фото и логотипом */
.featured-partner {
    display: grid;
    grid-template-columns: 1fr min(38vw, 420px);
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .06);
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
}

.featured-partner__logo {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #0c0b0b;
}

.featured-partner__img {
    border-radius: 12px;
    overflow: hidden;
    min-height: 180px;
}

@media (max-width: 900px) {
    .featured-partner {
        grid-template-columns: 1fr;
    }

    .featured-partner__img {
        height: 220px;
    }
}

/* Ключевой фикс: не растягивать feature на всю строку */
.page--home .features .feature {
    grid-column: auto;
    /* переопределяет .feature { grid-column: span 12 } */
}

/* Соревнования: бейдж года поверх обложки */
.event-card__cover {
    position: relative;
}

.event-card__badge {
    z-index: 3;
    pointer-events: none;
}

/* Наша гордость: карточка спортсмена */
.page--pride .pride-card {
    display: grid;
    grid-template-columns: 1fr;
    /* мобайл: портрет сверху */
    gap: 14px;
    align-items: stretch;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 16px;
}

.page--pride .pride-card__photo {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #0c0b0b;
    aspect-ratio: 3/4;
    /* вертикальный формат */
}

.page--pride .pride-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page--pride .pride-card__meta {
    display: grid;
    gap: 10px;
    align-content: start;
}

.page--pride .pride-card__head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page--pride .achievements {
    display: grid;
    gap: 6px;
    margin: 0;
}

.page--pride .achievements li {
    display: flex;
    align-items: start;
    gap: 8px;
}

.page--pride .achievements li::before {
    content: "•";
    color: var(--accent);
    line-height: 1;
    transform: translateY(2px);
}

.page--pride .pride-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* Бейджи разрядов */
.badge--gold {
    color: #fff;
    border-color: rgba(200, 155, 60, .5);
    background: linear-gradient(180deg, #9c7a2e, #6a511f);
}

.badge--silver {
    color: #fff;
    border-color: rgba(200, 200, 200, .35);
    background: linear-gradient(180deg, #a7a7a7, #6f6f6f);
}

/* Адаптивность: на планшете/ПК фото крупнее сбоку */
@media (min-width: 640px) {
    .page--pride .pride-card {
        grid-template-columns: 160px 1fr;
        /* планшет: компактнее */
    }
}

@media (min-width: 960px) {
    .page--pride .pride-card {
        grid-template-columns: clamp(220px, 26vw, 300px) 1fr;
        /* ПК: крупнее портрет */
    }
}

/* Мелкая полировка кнопок в блоке действий */
.page--pride .pride-card .btn {
    padding: .7rem 1rem;
}

.page--pride .pride-card .btn--outline {
    border-color: rgba(255, 255, 255, .18);
}

/* Наша гордость: карточка спортсмена — 2 колонки на ПК/планшете, 1 на мобайле */
.page--pride .pride-card {
    display: grid;
    grid-template-columns: 1fr;
    /* мобайл: фото сверху */
    gap: 14px;
    align-items: start;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 16px;
}

/* Медиа слева: компактнее, с "пламенной" подсветкой как на главной */
.page--pride .pride-card__media {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
    padding: 8px;
    /* тонкая рамка вокруг фото */
    box-shadow: 0 8px 22px rgba(73, 10, 11, .5), 0 0 0 0 rgba(255, 120, 0, .22), 0 0 0 0 rgba(255, 50, 0, .14);
    animation: flamePulse 3.6s ease-in-out infinite;
}

.page--pride .pride-card__media img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3/4;
    /* вертикальный портрет */
    object-fit: cover;
    border-radius: 12px;
    filter: saturate(1.05) contrast(1.02);
}

/* Текстовая часть справа */
.page--pride .pride-card__meta {
    display: grid;
    gap: 10px;
    align-content: start;
}

.page--pride .pride-card__head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page--pride .achievements {
    display: grid;
    gap: 6px;
    margin: 0;
}

.page--pride .achievements li {
    display: flex;
    gap: 8px;
}

.page--pride .achievements li::before {
    content: "•";
    color: var(--accent);
}

/* Кнопки под текстом с отступом */
.page--pride .pride-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* Бейджи разрядов */
.badge--gold {
    color: #fff;
    border-color: rgba(200, 155, 60, .5);
    background: linear-gradient(180deg, #9c7a2e, #6a511f);
}

.badge--silver {
    color: #fff;
    border-color: rgba(200, 200, 200, .35);
    background: linear-gradient(180deg, #a7a7a7, #6f6f6f);
}

/* Адаптив: 2 колонки с компактным фото на планшете/ПК */
@media (min-width: 640px) {
    .page--pride .pride-card {
        grid-template-columns: 180px 1fr;
        /* планшет: уменьшенное фото слева */
    }
}

@media (min-width: 960px) {
    .page--pride .pride-card {
        grid-template-columns: 220px 1fr;
        /* ПК: чуть крупнее, но компактнее, чем раньше */
    }
}

/* Пламя прямо от фото: без внутреннего зазора и фона */
.page--pride .pride-card__media {
    padding: 0;
    /* убираем зазор */
    background: transparent;
    /* не рисуем фон под фото */
    border: 0;
    /* опционально: без тонкой рамки */
    overflow: hidden;
    /* скругление работает по контейнеру */
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(73, 10, 11, .5),
        0 0 0 0 rgba(255, 120, 0, .22),
        0 0 0 0 rgba(255, 50, 0, .14);
    animation: flamePulse 3.6s ease-in-out infinite;
}

.page--pride .pride-card__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: inherit;
    /* края фото = края контейнера */
    filter: saturate(1.05) contrast(1.02);
}

/* Документы: мобильная раскладка — кнопки справа столбцом */
@media (max-width: 640px) {
    .page--docs .doc-row {
        /* остаёмся в 3 колонках, но выравниваем элементы к верху */
        align-items: start;
    }

    .page--docs .doc-actions {
        display: flex;
        flex-direction: column;
        /* кнопки друг под другом */
        align-items: flex-end;
        /* прижаты вправо */
        gap: 8px;
        justify-self: end;
        /* колонка действий по правому краю */
        white-space: normal;
        /* на всякий случай — не мешать переносу */
    }

    .page--docs .doc-actions .btn {
        width: max-content;
        /* ширина по содержимому */
    }
}

/* Экипировка — сетка с адаптацией, без обрезки изображений */
.uniform-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* мобайл: 1 в ряд */
    gap: 12px;
    align-items: start;
}

@media (min-width: 640px) {
    .uniform-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        /* планшет/ПК: максимум 2 в ряд */
        gap: 14px;
    }
}

.uniform-item {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    /* скругления по краям */
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .08);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.uniform-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
    border-color: rgba(255, 255, 255, .18);
}

.uniform-item img {
    display: block;
    width: 100%;
    height: auto;
    /* сохраняем естественные пропорции */
    object-fit: contain;
    /* на всякий случай, но высота не фиксирована — обрезки не будет */
    vertical-align: middle;
}


/* Контейнер: не 12 колонок, а 1/2 в зависимости от ширины */
.page--gear .uniform-grid {
    grid-template-columns: 1fr;
    /* мобайл: 1 в ряд */
    gap: 14px;
}

@media (min-width: 640px) {
    .page--gear .uniform-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        /* планшет/ПК: 2 в ряд */
    }
}

/* Снимаем старые span-ы, которые делали 3 в ряд */
.page--gear .uniform-grid a,
.page--gear .uniform-grid .uniform-item {
    grid-column: auto !important;
}

/* Изображения: натуральные пропорции, без принудительного 4:3 и без обрезки */
.page--gear .uniform-grid .uniform-item img,
.page--gear .uniform-grid a img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    /* переопределяем прежнее 4/3 */
    object-fit: contain;
    /* ничего не режем */
    display: block;
    background: #0c0b0b;
    /* аккуратный фон-подложка при «contain» */
    border-radius: 0;
    /* скругления у карточки, не у img */
}

/* Судейский семинар: шапка блока с медиа и описанием */
.page--judges .seminar__head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: center;
}

@media (min-width: 860px) {
    .page--judges .seminar__head {
        grid-template-columns: 1.1fr 1fr;
        /* слева фото, справа текст */
    }
}

/* Подсветка медиа в фирменном стиле (анимация flamePulse уже есть) */
.page--judges .seminar__media {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
    padding: 10px;
    box-shadow: 0 8px 22px rgba(73, 10, 11, .5), 0 0 0 0 rgba(255, 120, 0, .22), 0 0 0 0 rgba(255, 50, 0, .14);
    animation: flamePulse 3.6s ease-in-out infinite;
}

.page--judges .seminar__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    filter: saturate(1.05) contrast(1.02);
}

/* Текст и кнопки */
.page--judges .seminar__meta h3 {
    margin: 0 0 6px 0;
}

.page--judges .seminar__lead {
    color: var(--muted);
    margin: 0;
}

.page--judges .seminar__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Галерея фото: 1/2/4 колонки */
.page--judges .seminar-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.page--judges .seminar-shot {
    grid-column: span 12;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    background: #0c0b0b;
    box-shadow: var(--shadow);
    display: block;
}

.page--judges .seminar-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block;
}

@media (min-width: 640px) {
    .page--judges .seminar-shot {
        grid-column: span 6;
    }

    /* 2 в ряд */
}

@media (min-width: 980px) {
    .page--judges .seminar-shot {
        grid-column: span 3;
    }

    /* 4 в ряд */
}

/* Судейский семинар — кнопки с отступами и адаптацией */
.page--judges .seminar__actions {
    margin-top: 12px;
    gap: 12px;
    /* расстояние между кнопками */
}

/* Мобайл: кнопки в колонку, во всю ширину */
@media (max-width: 639.98px) {
    .page--judges .seminar__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 12px;
    }

    .page--judges .seminar__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Планшет: две кнопки в строку, с зазором */
@media (min-width: 640px) and (max-width: 959.98px) {
    .page--judges .seminar__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

/* Судейский семинар — галерея: зазоры и скругления */
.page--judges .seminar-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
    /* зазоры между фотографиями */
    margin-top: 14px;
}

.page--judges .seminar-shot {
    grid-column: span 12;
    border-radius: 10px;
    /* чуть скругляем */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    background: #0c0b0b;
    box-shadow: var(--shadow);
}

.page--judges .seminar-shot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: inherit;
    /* скругление у картинки = контейнеру */
    object-fit: cover;
    /* аккуратно заполняет карточку */
}

/* 2 фото в ряд на >=640px, 4 фото в ряд на >=980px */
@media (min-width: 640px) {
    .page--judges .seminar-shot {
        grid-column: span 6;
    }
}

@media (min-width: 980px) {
    .page--judges .seminar-shot {
        grid-column: span 3;
    }
}