/*
 * Sportish / «Друг-спортсмен» — editorial sports theme.
 * Backend, models and landing settings remain upstream-compatible.
 * The visual branch is isolated in this stylesheet and four templates.
 */

:root {
    --sport-accent: #c8ff2f;
    --sport-accent-strong: #aef500;
    --sport-ink: #111814;
    --sport-ink-2: #273029;
    --sport-muted: #6c756e;
    --sport-paper: #f3f2ed;
    --sport-paper-2: #e7e8e1;
    --sport-white: #fbfbf8;
    --sport-line: rgba(17, 24, 20, 0.18);
    --sport-line-strong: rgba(17, 24, 20, 0.34);
    --sport-radius: 10px;
    --sport-radius-small: 6px;
    --sport-shadow: 0 22px 70px rgba(17, 24, 20, 0.13);
    --sport-container: 1380px;
}

html { scroll-behavior: smooth; }

body.sportish-theme {
    margin: 0;
    overflow-x: hidden;
    color: var(--sport-ink);
    background: var(--sport-paper);
    font-family: Inter, Manrope, "Open Sans", Arial, sans-serif;
    text-rendering: optimizeLegibility;
}

body.sportish-theme::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .22;
    background-image: linear-gradient(rgba(17,24,20,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(17,24,20,.035) 1px, transparent 1px);
    background-size: 48px 48px;
}

.sportish-theme .container {
    width: min(var(--sport-container), calc(100% - 56px));
    margin-inline: auto;
    padding: 0;
}

.sportish-theme h1,
.sportish-theme h2,
.sportish-theme h3,
.sportish-theme h4 {
    margin-top: 0;
    color: inherit;
    letter-spacing: -.045em;
    line-height: .98;
}

.sportish-theme p { line-height: 1.68; }
.sportish-theme a { color: inherit; }
.sportish-theme img { max-width: 100%; }

/* Navigation */
.sport-site-header { position: relative; }
.sport-nav-shell {
    position: absolute;
    z-index: 50;
    top: 0;
    left: 0;
    width: 100%;
    padding: 22px 28px;
}

.sport-nav {
    width: min(var(--sport-container), calc(100% - 0px));
    min-height: 72px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(210px, auto) 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 0 18px 0 20px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(12,18,14,.62);
    color: #fff;
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 44px rgba(0,0,0,.12);
}

.sport-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.sport-brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: cover;
    border-radius: 50%;
    background: var(--sport-accent);
}

.sport-brand-copy { display: flex; min-width: 0; flex-direction: column; }
.sport-brand-copy strong { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sport-brand-copy small { margin-top: 3px; color: rgba(255,255,255,.58); font-size: 8px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

.sport-navbar { display: flex; justify-content: center; }
.sport-nav-links { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 4px; }
.sport-nav-links .nav-link,
.sport-dropdown-toggle {
    padding: 12px 13px;
    border: 0;
    border-radius: 0;
    color: rgba(255,255,255,.72);
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s ease;
}
.sport-nav-links .nav-link:hover,
.sport-nav-links .nav-link.active,
.sport-dropdown-toggle:hover { color: var(--sport-accent); }

.sport-services-dropdown { position: relative; }
.sport-dropdown-toggle { display: inline-flex; align-items: center; gap: 6px; }
.sport-dropdown-menu {
    min-width: 260px;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%);
    padding: 8px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--sport-radius-small);
    background: #151c17;
    box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.sport-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 4px;
    color: rgba(255,255,255,.82);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}
.sport-dropdown-item:hover { color: var(--sport-ink); background: var(--sport-accent); }
.sport-dropdown-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.sport-nav-actions { display: flex; align-items: center; gap: 9px; }
.sport-account-link {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 9px 7px 13px;
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    text-decoration: none;
}
.sport-account-link:hover { border-color: var(--sport-accent); color: var(--sport-accent); }
.sport-account-avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--sport-ink);
    background: var(--sport-accent);
    font-size: 10px;
    font-weight: 900;
}
.sport-account-text { display: flex; max-width: 135px; flex-direction: column; }
.sport-account-text strong,
.sport-account-text small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sport-account-text strong { font-size: 11px; }
.sport-account-text small { margin-top: 2px; color: rgba(255,255,255,.54); font-size: 8px; }
.sport-account-arrow { font-size: 18px; }
.sport-theme-toggle,
.sport-menu-button {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 0;
    color: #fff;
    background: transparent;
}
.sport-theme-toggle:hover { color: var(--sport-accent); border-color: var(--sport-accent); }
.sport-menu-button { display: none; padding: 10px; }
.sport-menu-button span { width: 100%; height: 2px; display: block; margin: 4px 0; background: currentColor; }

/* Hero */
.sport-hero {
    position: relative;
    min-height: 820px;
    display: grid;
    align-items: end;
    overflow: hidden;
    background: #101611;
    color: #fff;
}
.sport-hero-media,
.sport-hero-shade,
.sport-hero-grid { position: absolute; inset: 0; }
.sport-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 43% 50%; }
.sport-hero-shade {
    background:
        linear-gradient(90deg, rgba(9,14,10,.94) 0%, rgba(9,14,10,.78) 34%, rgba(9,14,10,.22) 72%, rgba(9,14,10,.14) 100%),
        linear-gradient(0deg, rgba(9,14,10,.84) 0%, transparent 42%);
}
.sport-hero-grid {
    color: rgba(200,255,47,.26);
    opacity: .45;
    background: url("../img/sportish/court-lines.svg") center / min(92vw, 1450px) auto no-repeat;
    mix-blend-mode: screen;
}
.sport-hero-copy {
    position: relative;
    z-index: 2;
    width: min(var(--sport-container), calc(100% - 56px));
    margin-inline: auto;
    padding: 210px 0 178px;
}
.sport-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    color: rgba(255,255,255,.72);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.sport-eyebrow span { color: var(--sport-accent); }
.sport-hero h1 {
    width: min(810px, 75vw);
    margin-bottom: 26px;
    font-size: clamp(58px, 7vw, 112px);
    font-weight: 780;
    line-height: .88;
}
.sport-hero-text { width: min(620px, 80vw); color: rgba(255,255,255,.76); font-size: 17px; }
.sport-hero-text p { margin: 0; }
.sport-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.sport-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 0;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .03em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.sport-button:hover { transform: translateY(-2px); }
.sport-button-primary { color: var(--sport-ink); background: var(--sport-accent); }
.sport-button-primary:hover { color: var(--sport-ink); background: #dcff75; }
.sport-button-secondary { color: #fff; border-color: rgba(255,255,255,.38); background: rgba(0,0,0,.12); }
.sport-button-secondary:hover { color: var(--sport-accent); border-color: var(--sport-accent); }
.sport-button-dark { color: #fff; background: var(--sport-ink); }
.sport-button-dark:hover { color: var(--sport-accent); }
.sport-button-light { color: var(--sport-ink); background: var(--sport-accent); }
.sport-button-outline-light { color: #fff; border-color: rgba(255,255,255,.35); }
.sport-button-outline-light:hover { color: var(--sport-accent); border-color: var(--sport-accent); }
.sport-hero-meta {
    position: absolute;
    z-index: 3;
    right: max(28px, calc((100vw - var(--sport-container)) / 2));
    bottom: 42px;
    display: grid;
    grid-template-columns: repeat(3, minmax(125px, 1fr));
    border-top: 1px solid rgba(255,255,255,.28);
    border-bottom: 1px solid rgba(255,255,255,.18);
}
.sport-hero-meta > div { min-width: 150px; padding: 18px 20px; border-left: 1px solid rgba(255,255,255,.18); }
.sport-hero-meta strong { display: block; color: var(--sport-accent); font-size: 22px; letter-spacing: -.04em; }
.sport-hero-meta span { display: block; margin-top: 5px; color: rgba(255,255,255,.58); font-size: 9px; line-height: 1.35; text-transform: uppercase; }
.sport-hero-caption {
    position: absolute;
    z-index: 3;
    right: max(28px, calc((100vw - var(--sport-container)) / 2));
    top: 132px;
    display: flex;
    align-items: end;
    gap: 12px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: rgba(255,255,255,.78);
}
.sport-hero-caption span { font-size: 10px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.sport-hero-caption small { font-size: 8px; color: rgba(255,255,255,.42); }

/* Inner header */
.sport-site-header-inner { min-height: 194px; background: var(--sport-ink); color: #fff; }
.sport-site-header-inner .sport-nav-shell { position: relative; }
.sport-inner-intro { width: min(var(--sport-container), calc(100% - 56px)); margin-inline: auto; padding: 6px 0 34px; display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.16); }
.sport-inner-intro span { padding-top: 22px; color: var(--sport-accent); font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.sport-inner-intro strong { color: rgba(255,255,255,.46); font-size: 12px; font-weight: 600; }

/* Main structure */
.sport-main { padding: 0 0 72px; }
.sport-section {
    position: relative;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 42px;
    padding: 112px 0;
    border-bottom: 1px solid var(--sport-line);
}
.sport-section-rail { grid-row: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.sport-section-number { color: var(--sport-muted); font-size: 11px; font-weight: 850; letter-spacing: .13em; }
.sport-section-name { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--sport-muted); font-size: 9px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.sport-kicker { display: block; margin-bottom: 22px; color: #506056; font-size: 10px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.sport-section h2 { margin-bottom: 28px; font-size: clamp(42px, 5vw, 76px); font-weight: 700; }
.sport-rich-text { max-width: 760px; color: var(--sport-ink-2); font-size: 16px; }
.sport-rich-text p:first-child { margin-top: 0; }
.sport-inline-actions { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; }
.sport-text-link,
.sport-card-link { display: inline-flex; align-items: center; gap: 8px; color: var(--sport-ink); font-size: 11px; font-weight: 850; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.sport-text-link { padding-bottom: 5px; border-bottom: 1px solid var(--sport-line-strong); }
.sport-text-link:hover,
.sport-card-link:hover { color: #537c00; }

/* About */
.sport-about { grid-template-columns: 112px minmax(0, 1.2fr) minmax(260px, .7fr); }
.sport-section-copy { min-width: 0; }
.sport-about-notes { align-self: end; border-top: 1px solid var(--sport-line-strong); }
.sport-about-notes article { padding: 17px 0; border-bottom: 1px solid var(--sport-line); }
.sport-about-notes span { display: block; margin-bottom: 5px; color: var(--sport-muted); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.sport-about-notes strong { font-size: 14px; font-weight: 750; }
.sport-video-card { grid-column: 2 / -1; margin-top: 52px; aspect-ratio: 16 / 8; overflow: hidden; background: #111; }
.sport-video-card iframe { width: 100%; height: 100%; }

/* Section heading */
.sport-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .42fr); gap: 70px; align-items: end; }
.sport-section-lead { color: var(--sport-muted); font-size: 14px; }
.sport-section-lead p { margin-bottom: 4px; }

/* Services */
.sport-service-grid { grid-column: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 52px; background: var(--sport-line); border: 1px solid var(--sport-line); }
.sport-service-card { min-width: 0; background: var(--sport-paper); transition: background .25s ease; }
.sport-service-card:hover { background: var(--sport-white); }
.sport-service-image { position: relative; height: 360px; display: block; overflow: hidden; background: #1a211c; }
.sport-service-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,14,10,.35), transparent 50%); }
.sport-service-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) contrast(1.05); transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.sport-service-card:hover .sport-service-image img { transform: scale(1.035); filter: saturate(.9) contrast(1.05); }
.sport-service-index { position: absolute; z-index: 2; top: 18px; left: 18px; color: var(--sport-accent); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.sport-service-body { padding: 28px 30px 30px; }
.sport-service-topline { display: flex; gap: 20px; margin-bottom: 28px; color: var(--sport-muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sport-service-body h3 { margin-bottom: 16px; font-size: clamp(30px, 3vw, 46px); font-weight: 690; }
.sport-service-body h3 a { text-decoration: none; }
.sport-service-body p { min-height: 52px; margin-bottom: 28px; color: var(--sport-muted); font-size: 13px; }
.sport-service-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 19px; border-top: 1px solid var(--sport-line); }
.sport-card-order { padding: 10px 14px; border: 1px solid var(--sport-ink); font-size: 10px; font-weight: 850; text-decoration: none; text-transform: uppercase; }
.sport-card-order:hover { color: var(--sport-ink); background: var(--sport-accent); }

/* Extra */
.sport-extra { grid-template-columns: 112px minmax(0, .92fr) minmax(320px, .72fr); align-items: stretch; }
.sport-extra-copy { padding-right: 62px; }
.sport-extra-media { position: relative; min-height: 650px; overflow: hidden; background: #1b211d; }
.sport-extra-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.62) contrast(1.08); }
.sport-extra-media::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.18); pointer-events: none; }
.sport-extra-sticker { position: absolute; right: 0; bottom: 0; min-width: 150px; padding: 18px 20px; background: var(--sport-accent); color: var(--sport-ink); }
.sport-extra-sticker span { display: block; font-size: 24px; font-weight: 900; letter-spacing: -.04em; }
.sport-extra-sticker small { font-size: 8px; font-weight: 900; letter-spacing: .2em; }
.sport-steps { margin: 38px 0; padding: 0; list-style: none; border-top: 1px solid var(--sport-line-strong); }
.sport-steps li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--sport-line); }
.sport-steps li > span { color: #648700; font-size: 10px; font-weight: 900; }
.sport-steps strong { display: block; font-size: 14px; }
.sport-steps small { display: block; margin-top: 4px; color: var(--sport-muted); font-size: 11px; }

/* Editorial strip */
.sport-editorial-strip { grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr); gap: 60px; padding-left: 0; background: var(--sport-ink); color: #fff; border-bottom: 0; }
.sport-editorial-copy { align-self: center; padding-left: 56px; }
.sport-editorial-copy span { display: block; margin-bottom: 20px; color: var(--sport-accent); font-size: 10px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.sport-editorial-copy strong { display: block; max-width: 700px; font-size: clamp(42px, 5vw, 74px); line-height: .98; letter-spacing: -.05em; }
.sport-editorial-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.15); }
.sport-editorial-thumbs figure { position: relative; min-height: 520px; margin: 0; overflow: hidden; background: #222; }
.sport-editorial-thumbs img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2) saturate(.6) contrast(1.08); }
.sport-editorial-thumbs figcaption { position: absolute; left: 16px; bottom: 14px; color: #fff; font-size: 9px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }

/* Team */
.sport-team-grid { grid-column: 2; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; margin-top: 46px; background: var(--sport-line); border: 1px solid var(--sport-line); }
.sport-team-card { padding: 28px; background: var(--sport-paper); }
.sport-team-avatar { width: 100%; aspect-ratio: 4/5; display: grid; place-items: center; margin-bottom: 22px; overflow: hidden; background: var(--sport-paper-2); color: var(--sport-ink); font-size: 64px; font-weight: 850; }
.sport-team-avatar img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); }
.sport-team-card h3 { margin-bottom: 8px; font-size: 26px; }
.sport-team-card p { color: var(--sport-muted); font-size: 12px; }

/* CTA */
.sport-final-cta { grid-template-columns: 112px minmax(0,1fr) auto; align-items: end; padding: 78px 56px; color: #fff; background: #111813; border-bottom: 0; }
.sport-final-index { color: var(--sport-accent); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.sport-final-cta h2 { max-width: 800px; margin-bottom: 20px; font-size: clamp(42px, 5vw, 78px); }
.sport-final-cta p { max-width: 630px; margin-bottom: 0; color: rgba(255,255,255,.62); }
.sport-final-actions { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }

/* Empty states */
.sport-empty-state { grid-column: 1 / -1; padding: 70px; background: var(--sport-paper); }
.sport-empty-state span { display: block; margin-bottom: 12px; color: var(--sport-accent-strong); font-weight: 900; }
.sport-empty-state h3,
.sport-empty-state h2 { margin-bottom: 12px; font-size: 36px; }
.sport-empty-state p { max-width: 600px; color: var(--sport-muted); }

/* Catalog */
.sport-catalog-page { padding-top: 86px; }
.sport-page-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.42fr); gap: 70px; align-items: end; padding: 88px 0 70px; border-bottom: 1px solid var(--sport-line); }
.sport-page-heading .sport-kicker { grid-column: 1 / -1; margin-bottom: -42px; }
.sport-page-heading h1 { margin-bottom: 0; font-size: clamp(56px, 7vw, 104px); }
.sport-page-lead { color: var(--sport-muted); font-size: 15px; }
.sport-directory-grid { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--sport-line); }
.sport-directory-card { display: grid; grid-template-columns: minmax(330px,.75fr) minmax(0,1fr); gap: 54px; align-items: center; padding: 42px 0; border-bottom: 1px solid var(--sport-line); }
.sport-directory-image { height: 340px; overflow: hidden; background: #222; }
.sport-directory-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.65) contrast(1.06); transition: transform .6s ease; }
.sport-directory-card:hover .sport-directory-image img { transform: scale(1.03); }
.sport-directory-number { display: block; margin-bottom: 14px; color: #648700; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.sport-directory-card h2 { margin-bottom: 18px; font-size: clamp(42px,5vw,72px); }
.sport-directory-card h2 a { text-decoration: none; }
.sport-directory-card p { max-width: 700px; color: var(--sport-muted); }
.sport-directory-card .sport-card-link { margin-top: 20px; }
.sport-empty-state-wide { margin: 60px 0; }

/* Footer */
.sport-footer { margin-top: 0; padding: 72px max(28px, calc((100vw - var(--sport-container)) / 2)) 26px; color: #fff; background: #0d120e; }
.sport-footer-top { display: grid; grid-template-columns: minmax(280px,1.5fr) repeat(3,minmax(150px,.65fr)); gap: 56px; padding-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,.14); }
.sport-footer-logo-row { display: flex; align-items: center; gap: 14px; }
.sport-footer-logo-row img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; background: var(--sport-accent); }
.sport-footer-logo-row strong { font-size: 18px; }
.sport-footer-brand p { max-width: 390px; margin: 22px 0; color: rgba(255,255,255,.55); font-size: 13px; }
.sport-footer-account { color: var(--sport-accent); font-size: 11px; font-weight: 850; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.sport-footer-column { display: flex; flex-direction: column; gap: 11px; }
.sport-footer-column h4 { margin: 0 0 12px; color: rgba(255,255,255,.44); font-size: 9px; letter-spacing: .17em; text-transform: uppercase; }
.sport-footer-column a,
.sport-footer-column span { color: rgba(255,255,255,.72); font-size: 12px; text-decoration: none; }
.sport-footer-column a:hover { color: var(--sport-accent); }
.sport-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 23px; color: rgba(255,255,255,.36); font-size: 10px; }
.sport-powered { display: inline-flex; align-items: center; gap: 8px; }
.sport-powered img { width: 56px; max-height: 18px; }

/* Reveal */
[data-sport-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
[data-sport-reveal].is-visible { opacity: 1; transform: none; }

/* Dark mode */
html[data-theme="dark"] {
    --sport-ink: #eef2ec;
    --sport-ink-2: #c4cdc5;
    --sport-muted: #949f96;
    --sport-paper: #121713;
    --sport-paper-2: #1b211c;
    --sport-white: #171d18;
    --sport-line: rgba(238,242,236,.14);
    --sport-line-strong: rgba(238,242,236,.28);
}
html[data-theme="dark"] body.sportish-theme { background: var(--sport-paper); }
html[data-theme="dark"] .sport-service-card,
html[data-theme="dark"] .sport-team-card,
html[data-theme="dark"] .sport-empty-state { background: #151b16; }
html[data-theme="dark"] .sport-card-order { border-color: rgba(255,255,255,.5); }
html[data-theme="dark"] .sport-button-dark { color: #111813; background: var(--sport-accent); }

/* Existing standard page surfaces */
.sportish-theme .content-wrapper,
.sportish-theme .faq-container,
.sportish-theme .contact-container,
.sportish-theme .service-detail-container,
.sportish-theme .map-container {
    border-radius: 0 !important;
}

/* Responsive */
@media (max-width: 1180px) {
    .sport-nav { grid-template-columns: auto 1fr auto; gap: 16px; }
    .sport-brand-copy small { display: none; }
    .sport-nav-links .nav-link,
    .sport-dropdown-toggle { padding-inline: 9px; }
    .sport-account-text small { display: none; }
    .sport-hero-meta { left: 28px; right: 28px; }
    .sport-about { grid-template-columns: 90px minmax(0,1fr); }
    .sport-about-notes { grid-column: 2; margin-top: 36px; }
    .sport-extra { grid-template-columns: 90px minmax(0,1fr) minmax(300px,.78fr); }
    .sport-editorial-strip { grid-template-columns: 1fr; }
    .sport-editorial-thumbs { min-height: 460px; }
    .sport-editorial-thumbs figure { min-height: 460px; }
}

@media (max-width: 980px) {
    .sportish-theme .container { width: min(100% - 34px, var(--sport-container)); }
    .sport-nav-shell { padding: 14px 17px; }
    .sport-nav { min-height: 62px; padding-inline: 13px; }
    .sport-navbar { justify-content: flex-end; order: 3; }
    .sport-menu-button { display: block; }
    .sport-nav-links {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        display: none;
        align-items: stretch;
        padding: 10px;
        background: #121813;
        border: 1px solid rgba(255,255,255,.16);
        box-shadow: 0 24px 60px rgba(0,0,0,.32);
    }
    .sport-nav-links.active,
    .sport-nav-links.show { display: flex; flex-direction: column; }
    .sport-nav-links .nav-link,
    .sport-dropdown-toggle { width: 100%; text-align: left; padding: 13px 12px; }
    .sport-dropdown-menu { position: static; min-width: 0; transform: none; margin-top: 6px; box-shadow: none; }
    .sport-nav-actions { margin-left: auto; }
    .sport-theme-toggle { display: none; }
    .sport-account-text { display: none; }
    .sport-account-link { width: 46px; padding: 0; justify-content: center; }
    .sport-account-arrow { display: block; }
    .sport-hero { min-height: 760px; }
    .sport-hero-copy { padding: 190px 0 200px; }
    .sport-hero h1 { width: min(740px, 90vw); }
    .sport-hero-meta { grid-template-columns: repeat(3, 1fr); }
    .sport-hero-meta > div { min-width: 0; }
    .sport-hero-caption { display: none; }
    .sport-section,
    .sport-about,
    .sport-extra { grid-template-columns: 70px minmax(0,1fr); column-gap: 24px; }
    .sport-section-heading { grid-template-columns: 1fr; gap: 15px; }
    .sport-service-grid,
    .sport-team-grid { grid-column: 2; }
    .sport-extra-copy { padding-right: 0; }
    .sport-extra-media { grid-column: 2; min-height: 520px; margin-top: 42px; }
    .sport-final-cta { grid-template-columns: 70px minmax(0,1fr); }
    .sport-final-actions { grid-column: 2; margin-top: 34px; flex-direction: row; }
    .sport-footer-top { grid-template-columns: 1.2fr 1fr 1fr; }
    .sport-footer-column:last-child { grid-column: 2 / 4; }
}

@media (max-width: 720px) {
    .sportish-theme .container { width: calc(100% - 24px); }
    .sport-nav-shell { padding: 10px 12px; }
    .sport-nav { grid-template-columns: minmax(0,1fr) auto auto; gap: 7px; min-height: 58px; }
    .sport-brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
    .sport-brand-copy strong { font-size: 12px; }
    .sport-account-link,
    .sport-menu-button { width: 40px; height: 40px; min-height: 40px; }
    .sport-hero { min-height: 740px; }
    .sport-hero-media img { object-position: 50% 50%; }
    .sport-hero-shade { background: linear-gradient(0deg, rgba(9,14,10,.94) 0%, rgba(9,14,10,.75) 62%, rgba(9,14,10,.28) 100%); }
    .sport-hero-copy { width: calc(100% - 30px); padding: 160px 0 235px; }
    .sport-eyebrow { margin-bottom: 20px; font-size: 9px; }
    .sport-hero h1 { width: 100%; font-size: clamp(48px, 14vw, 76px); }
    .sport-hero-text { width: 100%; font-size: 14px; }
    .sport-hero-actions { flex-direction: column; align-items: stretch; }
    .sport-button { width: 100%; }
    .sport-hero-meta { left: 15px; right: 15px; bottom: 20px; grid-template-columns: 1fr; }
    .sport-hero-meta > div { display: grid; grid-template-columns: 55px 1fr; align-items: center; padding: 10px 8px; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
    .sport-hero-meta strong { font-size: 17px; }
    .sport-hero-meta span { margin-top: 0; }
    .sport-site-header-inner { min-height: 140px; }
    .sport-inner-intro { width: calc(100% - 24px); padding-bottom: 18px; }
    .sport-section,
    .sport-about,
    .sport-extra { display: block; padding: 76px 0; }
    .sport-section-rail { display: flex; flex-direction: row; margin-bottom: 34px; }
    .sport-section-name { writing-mode: initial; transform: none; }
    .sport-section h2 { font-size: clamp(40px, 12vw, 62px); }
    .sport-about-notes { margin-top: 34px; }
    .sport-service-grid,
    .sport-team-grid { grid-template-columns: 1fr; margin-top: 38px; }
    .sport-service-image { height: 280px; }
    .sport-service-body { padding: 24px 22px; }
    .sport-extra-media { min-height: 480px; margin-top: 38px; }
    .sport-editorial-strip { display: block; margin-inline: -12px; padding: 64px 24px 0; }
    .sport-editorial-copy { padding: 0 0 46px; }
    .sport-editorial-thumbs { margin-inline: -24px; grid-template-columns: 1fr 1fr; }
    .sport-editorial-thumbs figure { min-height: 330px; }
    .sport-final-cta { display: block; margin-inline: -12px; padding: 60px 24px; }
    .sport-final-index { margin-bottom: 32px; }
    .sport-final-actions { display: flex; flex-direction: column; margin-top: 34px; }
    .sport-page-heading { grid-template-columns: 1fr; gap: 24px; padding-top: 54px; }
    .sport-page-heading .sport-kicker { grid-column: auto; margin-bottom: 0; }
    .sport-page-heading h1 { font-size: clamp(52px, 14vw, 78px); }
    .sport-directory-card { grid-template-columns: 1fr; gap: 28px; }
    .sport-directory-image { height: 260px; }
    .sport-footer { padding-inline: 20px; }
    .sport-footer-top { grid-template-columns: 1fr 1fr; gap: 38px 24px; }
    .sport-footer-brand { grid-column: 1 / -1; }
    .sport-footer-column:last-child { grid-column: 1 / -1; }
    .sport-footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
    [data-sport-reveal] { opacity: 1; transform: none; }
}

/* Refined fallback composition: non-volleyball photos remain compact. */
.sport-extra-media-fallback {
    min-height: 560px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(rgba(200,255,47,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200,255,47,.08) 1px, transparent 1px),
        #131a15;
    background-size: 42px 42px;
}
.sport-extra-media-fallback::before {
    content: "";
    position: absolute;
    inset: 34px;
    border: 1px solid rgba(200,255,47,.32);
}
.sport-extra-graphic {
    position: absolute;
    left: 42px;
    top: 44px;
    display: flex;
    flex-direction: column;
    color: rgba(255,255,255,.13);
    font-size: clamp(54px, 6vw, 92px);
    font-weight: 900;
    line-height: .8;
    letter-spacing: -.07em;
}
.sport-extra-media-fallback .sport-extra-detail-photo {
    position: relative;
    z-index: 2;
    width: min(45%, 230px);
    height: 310px;
    object-fit: cover;
    box-shadow: 22px 22px 0 var(--sport-accent);
    filter: saturate(.55) contrast(1.08);
}
.sport-editorial-thumbs figure { min-height: 300px; }
@media (max-width: 1180px) {
    .sport-editorial-thumbs { min-height: 300px; }
    .sport-editorial-thumbs figure { min-height: 300px; }
}
@media (max-width: 720px) {
    .sport-extra-media-fallback { min-height: 430px; }
    .sport-extra-media-fallback .sport-extra-detail-photo { width: 180px; height: 250px; }
    .sport-editorial-thumbs figure { min-height: 220px; }
}
