@font-face {
    font-family: 'Onest';
    src: url('../fonts/Onest-Regular.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Onest';
    src: url('../fonts/Onest-Medium.woff2') format('woff2');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Onest';
    src: url('../fonts/Onest-SemiBold.woff2') format('woff2');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

:root {
    --brand: #3F72C9;
    --brand-deep: #2F5AA8;
    --lime: #b8f200;
    --pink: #ff60cd;
    --ink: #0e1809;
    --muted: #9aa0b1;
    --soft: #f5f2fd;
    --soft-2: #f1f1f1;
    --lavender: #d9dcfa;
    --line: #e8e4f2;
    --white: #fff;
    --radius-xl: 40px;
    --radius-lg: 28px;
    --radius-md: 18px;
    --font: 'Onest', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 20px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--white);
    min-width: 320px;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: 100%;
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ---------- top bar ---------- */

.topbar {
    background: var(--soft-2);
    color: #5f6472;
    font-size: 13.8px;
}

.topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar-contacts,
.topbar-socials {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.topbar a:hover {
    color: var(--brand);
}

/* ---------- header ---------- */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    min-height: clamp(82px, 7.2vw, 98px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: clamp(12px, 1.05vw, 14.4px);
    font-weight: 600;
    font-size: clamp(22.5px, 2vw, 27px);
    letter-spacing: -.02em;
}

.brand-mark {
    width: clamp(66px, 5.8vw, 79px);
    height: clamp(66px, 5.8vw, 79px);
    flex: 0 0 auto;
    border-radius: clamp(20px, 1.75vw, 24px);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav a {
    padding: 10px 13px;
    border-radius: 9px;
    color: #3e4148;
    font-size: 16.6px;
    font-weight: 500;
    transition: background .2s, color .2s;
}

.nav a:hover,
.nav a.is-active {
    background: var(--soft);
    color: var(--brand);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 11px 24px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 18.7px;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.btn:hover {
    transform: translateY(-1px);
}

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

.btn-primary:hover {
    background: var(--brand-deep);
}

.btn-purple {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.btn-purple:hover {
    background: var(--brand-deep);
}

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

.btn-lime:hover {
    background: #cbf937;
}

.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}

.btn-ghost:hover {
    background: var(--soft);
    border-color: var(--lavender);
}

.btn-light {
    background: #fff;
    border-color: #fff;
    color: var(--brand);
}

/* ---------- hero ---------- */

.hero {
    padding: 26px 0 0;
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background-color: var(--brand);
    background-size: cover;
    background-position: center;
    color: #fff;
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding: 40px 60px;
}

.hero-card > * {
    position: relative;
    z-index: 1;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--brand);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--lime);
}

.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(40px, 4.8vw, 70px);
    line-height: 1.03;
    font-weight: 500;
    letter-spacing: -.045em;
}

.hero h1 .accent {
    color: var(--lime);
}

.hero-lead {
    max-width: 620px;
    margin: 0 0 16px;
    color: rgba(255, 255, 255, .82);
    font-size: 23.7px;
    line-height: 1.35;
}

.hero-list {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
    font-size: 21.2px;
    font-weight: 500;
}

.hero-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hero-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--lime);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-note {
    margin-top: 10px;
    color: rgba(255, 255, 255, .5);
    font-size: 12px;
    line-height: 1.5;
}

/* ---------- stats ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 54px 0 30px;
}

.stat {
    padding: 10px 18px;
    border-left: 1px solid var(--line);
}

.stat:first-child {
    border-left: 0;
}

.stat strong {
    display: block;
    font-size: clamp(62.5px, 7.5vw, 105px);
    line-height: .95;
    font-weight: 500;
    letter-spacing: -.05em;
    color: var(--brand);
    font-variant-numeric: tabular-nums;
}

.stat > span {
    display: block;
    margin-top: 12px;
    color: #686d79;
    font-size: 18.7px;
}

/* ---------- sections ---------- */

.section {
    padding: 78px 0;
}

.section-soft {
    background: var(--soft);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.section-head > div {
    max-width: 760px;
}

.section h2 {
    margin: 0;
    font-size: clamp(34px, 3.36vw, 52px);
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -.035em;
}

.section h2.section-title-nowrap {
    font-size: clamp(37.4px, 3.7vw, 57.2px);
    white-space: nowrap;
}

@media (max-width: 940px) {
    .section h2.section-title-nowrap {
        white-space: normal;
    }
}

.section-head p {
    margin: 12px 0 0;
    color: #686d79;
    font-size: 20px;
    line-height: 1.55;
}

.section-link {
    color: var(--brand);
    font-weight: 600;
    font-size: 18.7px;
    white-space: nowrap;
}

.section-link:hover {
    text-decoration: underline;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

/* ---------- cards ---------- */

.club-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}

.club-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(82, 4, 132, .09);
}

.club-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--soft);
}

.club-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.club-card:hover .club-card-media img {
    transform: scale(1.04);
}

.club-card-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.club-card h3,
.coach-card h3,
.news-card h3 {
    margin: 0;
    font-size: 27.5px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -.025em;
}

.club-card p,
.coach-card p,
.news-card p {
    margin: 0;
    color: #686d79;
    font-size: 17.5px;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 16.2px;
}

.card-metro {
    font-size: 15px;
}

.club-metro {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.3;
}

.club-metro-icon {
    flex: 0 0 auto;
    width: 17px;
    height: 14px;
    background-color: #7b2d8e;
    -webkit-mask: url("../icons/logotip-metro-sankt-peterburga-vektor-fiolet.png") center / contain no-repeat;
    mask: url("../icons/logotip-metro-sankt-peterburga-vektor-fiolet.png") center / contain no-repeat;
}

.club-metro-icon--violet {
    background-color: #7b2d8e;
}

.club-metro-icon--orange {
    background-color: #f07e24;
}

.club-address-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
}

.info-list .club-address-value > span:first-child {
    color: inherit;
}

@media (max-width: 640px) {
    .club-address-value {
        align-items: flex-start;
        text-align: left;
    }
}

.card-link {
    margin-top: auto;
    padding-top: 8px;
    color: var(--brand);
    font-size: 17.5px;
    font-weight: 600;
}

.card-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.card-actions .card-link {
    margin-top: 0;
    padding-top: 0;
    white-space: nowrap;
}

.card-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--brand);
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .16s ease, border-color .16s ease;
}

.card-map-link img {
    width: 16px;
    height: 16px;
    display: block;
}

.card-map-link:hover {
    background: var(--soft);
    border-color: var(--lavender);
}

.club-card-title a {
    color: inherit;
}

.club-info-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.club-map-open img {
    width: 18px;
    height: 18px;
    display: block;
}

.clubs-map {
    margin-top: 40px;
}

@media (max-width: 640px) {
    .clubs-map {
        margin-top: 24px;
    }
}

html[data-theme="dark"] .card-map-link {
    border-color: #2b3038;
}

.feature-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--line);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--soft);
    color: var(--brand);
    font-size: 25px;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.feature-card p {
    margin: 0;
    color: #686d79;
    font-size: 17.5px;
    line-height: 1.55;
}

.coach-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}

.coach-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(82, 4, 132, .09);
}

.coach-card-media {
    aspect-ratio: 4 / 5;
    background: var(--soft);
    overflow: hidden;
}

.coach-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.coach-card:hover .coach-card-media img {
    transform: scale(1.035);
}

.coach-card-body {
    padding: 20px 20px 22px;
}

.coach-card .role {
    margin: 5px 0 0;
    color: var(--brand);
    font-size: 16.2px;
    font-weight: 600;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(82, 4, 132, .09);
}

.news-card-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--soft);
}

.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.news-card:hover .news-card-media img {
    transform: scale(1.035);
}

.news-card-body {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
}

.news-card h3 {
    font-size: 23.7px;
}

.news-date {
    color: var(--muted);
    font-size: 15px;
}

/* ---------- CTA ---------- */

.cta {
    padding: 30px 0 80px;
}

.cta-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: 58px 64px;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cta-card::after {
    content: "♞";
    position: absolute;
    right: 70px;
    top: -60px;
    color: rgba(184, 242, 0, .11);
    font-size: 310px;
    line-height: 1;
    pointer-events: none;
}

.cta-card h2 {
    margin: 0;
    font-size: clamp(42.5px, 5vw, 70px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -.035em;
    position: relative;
    z-index: 1;
}

.cta-card p {
    max-width: 540px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, .72);
    position: relative;
    z-index: 1;
}

.cta-actions {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* ---------- footer ---------- */

.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .78);
    padding: 56px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
}

.footer-brand {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    color: #fff;
    font-size: 22.5px;
    font-weight: 600;
}

.footer-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #fff;
    margin-right: 0;
}

.footer-brand span {
    flex-basis: 100%;
    margin-top: 12px;
    color: rgba(255, 255, 255, .55);
    font-size: 16.2px;
    font-weight: 400;
}

.footer-title {
    margin-bottom: 14px;
    color: #fff;
    font-size: 16.2px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.footer-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
    font-size: 17.5px;
}

.footer-list a:hover {
    color: var(--lime);
}

.footer-bottom {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: rgba(255, 255, 255, .4);
    font-size: 15px;
}

/* ---------- inner pages ---------- */

.page-hero {
    margin: 26px 0 0;
    border-radius: var(--radius-xl);
    background: var(--soft);
    padding: 38px 48px;
}

.page-hero h1 {
    margin: 0;
    max-width: 900px;
    font-size: clamp(47.5px, 5.5vw, 80px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -.04em;
}

.page-hero--coach h1 {
    max-width: 100%;
    font-size: clamp(32px, 4.2vw, 66px);
    line-height: 1.05;
}

.page-hero p {
    max-width: 700px;
    margin: 14px 0 0;
    color: #686d79;
    font-size: 21.2px;
    line-height: 1.55;
}

.page-hero--art {
    position: relative;
    overflow: visible;
    margin-top: 96px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.page-hero--art .breadcrumbs,
.page-hero--art h1,
.page-hero--art p {
    position: relative;
    z-index: 1;
}

.page-hero-art {
    position: absolute;
    right: 40px;
    bottom: 100%;
    height: 79px;
    display: flex;
    align-items: flex-end;
    gap: 1px;
    z-index: 2;
    pointer-events: none;
    opacity: .95;
    transform: translateX(-30%);
}

.page-hero-piece {
    position: relative;
    z-index: 1;
    width: auto;
    filter: drop-shadow(0 5px 7px rgba(14, 24, 9, .12));
}

.page-hero-piece--knight {
    height: 58px;
}

.page-hero-piece--king {
    height: 79px;
}

.page-hero-piece--bishop {
    height: 62px;
}

@media (max-width: 1100px) {
    .page-hero-art {
        display: none;
    }

    .page-hero--art {
        margin-top: 26px;
    }
}

@media (max-width: 640px) {
    .page-hero--art {
        padding: 24px 22px;
    }
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 16.2px;
}

.breadcrumbs a:hover {
    color: var(--brand);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 28px;
    align-items: start;
}

.detail-grid--club {
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.5fr);
    gap: 44px;
}

.club-media-logo {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.club-media-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 425px;
}

.detail-card.detail-card--plain {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.detail-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--soft);
    aspect-ratio: 4 / 3;
}

.detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-media--logo {
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.detail-media--logo img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.detail-media--coach {
    aspect-ratio: 1 / 1;
    background: var(--soft);
}

.detail-media--coach img {
    object-fit: cover;
    object-position: center center;
}

.detail-media--coach.detail-media--coach-top img {
    object-position: center top;
}

.detail-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    background: #fff;
}

.detail-card h2 {
    margin: 0 0 8px;
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -.03em;
}

.detail-card .role {
    color: var(--brand);
    font-size: 17.5px;
    font-weight: 600;
}

.detail-card p {
    color: #686d79;
    line-height: 1.6;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 17.5px;
}

.info-list span:first-child {
    color: var(--muted);
}

.info-list li > span:last-child {
    text-align: right;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 17.5px;
}

.schedule-table th,
.schedule-table td {
    text-align: left;
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
}

.schedule-table th {
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.article-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 0 80px;
    color: #3e4148;
    font-size: 21.2px;
    line-height: 1.7;
    overflow-wrap: break-word;
}

.article-body table,
.article-body pre {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

.article-body h2 {
    font-size: 40px;
    margin: 34px 0 12px;
}

.article-body p {
    margin: 0 0 18px;
}

.article-cover {
    margin-top: 24px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.article-cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- forms ---------- */

.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: 28px;
    align-items: start;
}

.form-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    background: #fff;
}

.form-section + .form-section {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.form-section h3 {
    margin: 0 0 16px;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.form-field {
    display: grid;
    gap: 7px;
    margin-bottom: 15px;
}

.form-field:last-child {
    margin-bottom: 0;
}

.form-field label {
    font-size: 17.5px;
    font-weight: 500;
}

.form-field .req {
    color: #b42318;
    font-size: 1.5em;
    line-height: 1;
    vertical-align: -.08em;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid #dcd8e8;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    padding: 12px 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(102, 113, 235, .12);
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.4;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    color: #5f6472;
    font-size: 16.2px;
    line-height: 1.5;
}

.consent-row input {
    width: auto;
    margin-top: 3px;
}

.form-note {
    padding: 14px 16px;
    border-left: 3px solid var(--lime);
    border-radius: 0 8px 8px 0;
    background: rgba(184, 242, 0, .1);
    color: #3e4148;
    font-size: 16.2px;
    line-height: 1.5;
}

/* ---------- enrollment form / modal ---------- */

.enrollment-page-section {
    padding-top: 48px;
}

.enrollment-page {
    max-width: 720px;
    margin: 0 auto;
}

.enrollment-page h1 {
    margin: 8px 0 10px;
    font-size: clamp(34px, 4.4vw, 52px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -.035em;
}

.enrollment-page-lead {
    margin: 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.5;
}

.enrollment-page-alert {
    margin: 20px 0 0;
    color: #b42318;
}

.enrollment-card {
    margin-top: 22px;
}

.enrollment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
}

.form-field--full {
    grid-column: 1 / -1;
}

.enrollment-error {
    margin: 14px 0 0;
    color: #b42318;
    font-size: 15px;
    line-height: 1.4;
}

.enrollment-submit {
    width: 100%;
    margin-top: 18px;
}

.enrollment-modal {
    width: min(640px, calc(100vw - 32px));
    max-width: 640px;
    max-height: 90vh;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: transparent;
    overflow: visible;
}

.enrollment-modal::backdrop {
    background: rgba(14, 24, 9, .55);
}

.enrollment-modal-card {
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px 30px 26px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(14, 24, 9, .22);
}

.enrollment-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    z-index: 1;
}

.enrollment-modal h2 {
    margin: 0 0 6px;
    padding-right: 42px;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -.03em;
}

.enrollment-modal-lead {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.45;
}

.enrollment-modal-success {
    padding: 36px 10px 12px;
    text-align: center;
}

.enrollment-modal-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--soft);
    color: var(--brand);
    font-size: 26px;
}

.enrollment-modal-success h2 {
    padding-right: 0;
}

.enrollment-modal-success p {
    margin: 0 0 22px;
    color: var(--muted);
}

body.enrollment-modal-open {
    overflow: hidden;
}

html[data-theme="dark"] .enrollment-modal-card,
html[data-theme="dark"] .enrollment-modal-close {
    background: #1a1d22;
    border-color: #2b3038;
}

html[data-theme="dark"] .enrollment-modal-close {
    color: #e5e7eb;
}

html[data-theme="dark"] .enrollment-modal-success-icon {
    background: #242a33;
}

.contact-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 17.5px;
}

.contact-list strong {
    display: block;
    margin-bottom: 3px;
    color: var(--ink);
}

.detail-card .footer-title {
    color: var(--ink);
}

.contact-list a {
    color: var(--brand);
}

.social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.social-list a {
    display: inline-flex;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #3e4148;
    font-size: 15px;
}

.social-list a:hover {
    border-color: var(--lavender);
    background: var(--soft);
}

/* ---------- responsive ---------- */

@media (min-width: 1180px) {
    html {
        zoom: 0.9;
    }
}

@media (max-width: 1180px) {
    .hero-card {
        padding: 34px 40px;
        min-height: 460px;
    }

    .nav a {
        padding: 9px 10px;
        font-size: 15.6px;
    }

    .container {
        padding: 0 22px;
    }
}

@media (max-width: 940px) {
    .topbar-socials {
        display: none;
    }

    .header-inner {
        min-height: 72px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 18px;
        right: 18px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: 0 18px 40px rgba(14, 24, 9, .1);
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        padding: 12px 14px;
    }

    .header-actions .btn {
        display: none;
    }

    .hero-card {
        padding: 30px 24px 22px;
        min-height: 0;
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-grid,
    .form-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    body {
        font-size: 17.5px;
    }

    .container {
        padding: 0 16px;
    }

    .topbar-inner {
        min-height: 34px;
        font-size: 11.5px;
        gap: 8px;
    }

    .topbar-contacts {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 8px;
        min-width: 0;
    }

    .topbar-contacts a {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        min-width: 0;
        white-space: nowrap;
    }

    .topbar-contacts a[href^="tel:"] {
        flex: 0 0 auto;
    }

    .topbar-contacts a i {
        font-size: 11px;
    }

    .topbar-contact-text {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-inner {
        gap: 10px;
    }

    .brand {
        gap: 8px;
        min-width: 0;
    }

    .brand-mark {
        width: clamp(56px, 16vw, 66px);
        height: clamp(56px, 16vw, 66px);
        border-radius: 16px;
    }

    .brand-word {
        height: clamp(40px, 11.5vw, 50px);
        width: auto;
    }

    .header-actions {
        gap: 8px;
    }

    .hero {
        padding-top: 16px;
    }

    .hero-card {
        border-radius: 28px;
        padding: 24px 18px 16px;
        min-height: 0;
    }

    .hero h1 {
        font-size: 34.1px;
    }

    .hero-lead {
        font-size: 18.7px;
    }

    .hero-list {
        font-size: 17.5px;
    }

    .btn {
        font-size: 17.5px;
    }

    .stat > span {
        font-size: 17.5px;
    }


    .stats {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 38px 0 18px;
    }

    .stat {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 18px 0;
    }

    .stat:first-child {
        border-top: 0;
    }

    .stat strong {
        font-size: 67.5px;
    }

    .section {
        padding: 52px 0;
    }

    .section-head {
        display: block;
    }

    .section-link {
        display: inline-block;
        margin-top: 14px;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .cta {
        padding-bottom: 52px;
    }

    .cta-card {
        display: block;
        padding: 36px 24px;
        border-radius: 28px;
    }

    .cta-actions {
        margin-top: 22px;
    }

    .page-hero {
        border-radius: 28px;
        padding: 32px 22px;
    }

    .form-card {
        padding: 22px 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        display: block;
    }

    .footer-bottom span {
        display: block;
        margin-top: 6px;
    }
}

/* ---------- app additions ---------- */

.muted {
    color: var(--muted);
    font-size: 17.5px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

.filter-tabs a {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #3e4148;
    font-size: 17.5px;
    font-weight: 500;
}

.filter-tabs a:hover {
    background: var(--soft);
    border-color: var(--lavender);
}

.filter-tabs a.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
    color: var(--muted);
    font-size: 17.5px;
}

.article-body ul {
    margin: 0 0 18px 20px;
    padding: 0;
}

.article-body li {
    margin-bottom: 6px;
}

/* Schedule table scroll on narrow screens */
.table-wrap {
    overflow-x: auto;
}

/* Brand slogan in hero — subtle, monochrome white */
.hero-slogan {
    margin-top: 26px;
    opacity: .85;
}

.hero-slogan img {
    width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
}

/* FA5 compatibility: templates use FA6-style class names */
.fa-solid {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-style: normal;
}

.fa-regular {
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    font-style: normal;
}

.fa-brands {
    font-family: "Font Awesome 5 Brands";
    font-weight: 400;
    font-style: normal;
}

/* Hero text schemes (chosen in admin settings) */
.hero-btn-alt {
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}

/* Светлый фото-фон: тёмный текст */
.hero-scheme-dark {
    color: #1e2430;
}

.hero-scheme-dark .hero .eyebrow,
.hero-scheme-dark .eyebrow {
    color: #4a5568;
    background: rgba(0, 0, 0, .05);
    padding: 6px 12px;
    border-radius: 999px;
}

.hero-scheme-dark h1 .accent {
    color: var(--brand);
}

.hero-scheme-dark .hero-lead {
    color: #3e4148;
}

.hero-scheme-dark .hero-list li::before {
    background: var(--brand);
}

.hero-scheme-dark .hero-note {
    color: rgba(30, 36, 48, .55);
}

.hero-scheme-dark .hero-btn-alt {
    border-color: rgba(30, 36, 48, .3);
    color: #1e2430;
}

.hero-scheme-dark .hero-slogan img {
    filter: none;
}

/* Светлый фото-фон: мох */
.hero-scheme-moss {
    color: #3d4a34;
}

.hero-scheme-moss .eyebrow {
    color: #5c7346;
    background: rgba(92, 115, 70, .12);
    padding: 6px 12px;
    border-radius: 999px;
}

.hero-scheme-moss h1 .accent {
    color: #5c7346;
}

.hero-scheme-moss .hero-lead {
    color: #4c5a40;
}

.hero-scheme-moss .hero-list li::before {
    background: #5c7346;
}

.hero-scheme-moss .hero-note {
    color: rgba(61, 74, 52, .6);
}

.hero-scheme-moss .hero-btn-alt {
    border-color: rgba(61, 74, 52, .4);
    color: #3d4a34;
}

.hero-scheme-moss .hero-slogan img {
    filter: none;
}

/* Hero readability (chosen in admin settings) */
/* Градиент слева */
.hero-read-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 16, 32, .82) 0%, rgba(10, 16, 32, .5) 48%, rgba(10, 16, 32, 0) 78%);
    pointer-events: none;
}

.hero-read-gradient.hero-scheme-dark::before,
.hero-read-gradient.hero-scheme-moss::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .55) 48%, rgba(255, 255, 255, 0) 78%);
}

/* Обводка букв (независимый эффект, тонкая, контрастная) */
.hero-stroke h1 {
    -webkit-text-stroke: 1.5px rgba(10, 16, 32, .6);
    paint-order: stroke fill;
}

.hero-stroke.hero-scheme-dark h1,
.hero-stroke.hero-scheme-moss h1 {
    -webkit-text-stroke-color: rgba(255, 255, 255, .9);
}

.hero-stroke .hero-lead,
.hero-stroke .hero-list,
.hero-stroke .hero-note {
    -webkit-text-stroke: .6px rgba(10, 16, 32, .5);
    paint-order: stroke fill;
}

.hero-stroke.hero-scheme-dark .hero-lead,
.hero-stroke.hero-scheme-dark .hero-list,
.hero-stroke.hero-scheme-dark .hero-note,
.hero-stroke.hero-scheme-moss .hero-lead,
.hero-stroke.hero-scheme-moss .hero-list,
.hero-stroke.hero-scheme-moss .hero-note {
    -webkit-text-stroke-color: rgba(255, 255, 255, .85);
}

/* Кнопка «Выбрать клуб» — подложка, чтобы не терялась на фото */
.hero-btn-alt {
    background: rgba(255, 255, 255, .18);
}

.hero-scheme-dark .hero-btn-alt,
.hero-scheme-moss .hero-btn-alt {
    background: rgba(30, 36, 48, .1);
}

/* Brand wordmark images */
.brand-word {
    height: clamp(58px, 5.1vw, 70px);
    width: auto;
}

.footer-brand-word {
    height: 39px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Кнопка «Выбрать клуб» — подложка, чтобы не терялась на фото */
.hero-btn-alt {
    background: rgba(255, 255, 255, .18);
}

.hero-scheme-dark .hero-btn-alt,
.hero-scheme-moss .hero-btn-alt {
    background: rgba(30, 36, 48, .1);
}

/* Обводка букв: контрастная, тонкая */
.hero-read-stroke h1 {
    -webkit-text-stroke: 1.5px rgba(10, 16, 32, .55);
    paint-order: stroke fill;
}

.hero-read-stroke.hero-scheme-dark h1,
.hero-read-stroke.hero-scheme-moss h1 {
    -webkit-text-stroke-color: rgba(255, 255, 255, .85);
}

/* ---------- footer: requisites, legal links ---------- */

.footer-questions {
    margin-top: 24px;
    display: grid;
    justify-items: start;
    gap: 6px;
    font-size: 14.9px;
}

.footer-question-text {
    color: #fff;
    font-weight: 600;
}

.footer-phone {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.footer-mail,
.footer-contact-link {
    color: rgba(255, 255, 255, .62);
}

.footer-contact-link {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-contact-link:hover,
.footer-mail:hover,
.footer-phone:hover {
    color: var(--lime);
}

.footer-requisites {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    color: rgba(255, 255, 255, .45);
    font-size: 15px;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, .55);
}

.footer-legal-links a:hover {
    color: #fff;
}

/* ---------- theme toggle ---------- */

.theme-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.theme-toggle:hover {
    background: var(--soft);
}

.theme-icon-sun {
    display: none;
}

html[data-theme="dark"] .theme-icon-moon {
    display: none;
}

html[data-theme="dark"] .theme-icon-sun {
    display: inline;
}

/* ---------- dark theme ---------- */

html[data-theme="dark"] {
    color-scheme: dark;
    --white: #1a1d22;
    --soft: #232830;
    --soft-2: #171a1f;
    --line: #2c313a;
    --lavender: #3a4250;
    --muted: #9aa3b2;
    --brand: #6f9be8;
    --brand-deep: #5a86d1;
    --lime: #a8d64a;
}

html[data-theme="dark"] body {
    background: #121417;
    color: #e8eaf0;
}

html[data-theme="dark"] .topbar {
    color: #9aa3b2;
}

html[data-theme="dark"] .nav a {
    color: #c7ccd6;
}

html[data-theme="dark"] .menu-toggle,
html[data-theme="dark"] .theme-toggle {
    background: #1a1d22;
    color: #e8eaf0;
    border-color: var(--line);
}

html[data-theme="dark"] .btn-ghost {
    color: #e8eaf0;
}

html[data-theme="dark"] .btn-ghost:hover {
    background: #232830;
    border-color: #3a4250;
}

html[data-theme="dark"] .btn-light {
    background: #232830;
    border-color: #232830;
    color: var(--brand);
}

html[data-theme="dark"] .brand-word {
    filter: brightness(0) invert(1);
}

html[data-theme="dark"] .stat > span,
html[data-theme="dark"] .section-head p,
html[data-theme="dark"] .club-card p,
html[data-theme="dark"] .coach-card p,
html[data-theme="dark"] .news-card p,
html[data-theme="dark"] .feature-card p,
html[data-theme="dark"] .page-hero p,
html[data-theme="dark"] .detail-card p,
html[data-theme="dark"] .article-body {
    color: #9aa3b2;
}

html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .coach-card,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .detail-card,
html[data-theme="dark"] .form-card {
    background: #1a1d22;
}

html[data-theme="dark"] .article-body h2,
html[data-theme="dark"] .article-body h3,
html[data-theme="dark"] .article-body strong,
html[data-theme="dark"] .detail-card h2,
html[data-theme="dark"] .form-section h3 {
    color: #e8eaf0;
}

html[data-theme="dark"] .contact-list strong {
    color: #9aa3b2;
}

html[data-theme="dark"] .detail-card .footer-title {
    color: #6f9be8;
}

html[data-theme="dark"] .form-field input,
html[data-theme="dark"] .form-field select,
html[data-theme="dark"] .form-field textarea {
    background: #15181d;
    border-color: #3a4250;
    color: #e8eaf0;
}

html[data-theme="dark"] .form-field input:focus,
html[data-theme="dark"] .form-field select:focus,
html[data-theme="dark"] .form-field textarea:focus {
    box-shadow: 0 0 0 3px rgba(111, 155, 232, .2);
}

html[data-theme="dark"] .consent-row {
    color: #9aa3b2;
}

html[data-theme="dark"] .form-note {
    color: #e8eaf0;
    background: rgba(168, 214, 74, .08);
}

html[data-theme="dark"] .social-list a,
html[data-theme="dark"] .filter-tabs a {
    color: #c7ccd6;
}

html[data-theme="dark"] .social-list a:hover,
html[data-theme="dark"] .filter-tabs a:hover {
    background: #232830;
    border-color: #3a4250;
}

html[data-theme="dark"] .filter-tabs a.is-active {
    color: #fff;
}

@media (max-width: 940px) {
    html[data-theme="dark"] .nav {
        background: #1a1d22;
        border-color: var(--line);
        box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
    }
}

@media (max-width: 640px) {
    .theme-toggle {
        width: 38px;
        height: 38px;
    }
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

html[data-theme="dark"] .cta-card {
    background: linear-gradient(135deg, #2c4270 0%, #252d3a 62%);
    border: 1px solid rgba(111, 155, 232, .28);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

html[data-theme="dark"] .cta-card::after {
    color: rgba(168, 214, 74, .09);
}

html[data-theme="dark"] .cta-card p {
    color: rgba(232, 234, 240, .68);
}

html[data-theme="dark"] .cta-card .btn-lime {
    background: #9ecb45;
    border-color: #9ecb45;
    color: #10150a;
    box-shadow: 0 8px 22px rgba(158, 203, 69, .18);
}

html[data-theme="dark"] .cta-card .btn-lime:hover {
    background: #aad653;
    border-color: #aad653;
}

.eyebrow-lime {
    color: var(--lime);
}

/* ---------- club map ---------- */
.map-card-wrap,
.map-single {
    min-width: 0;
}

.club-map {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--soft);
}

.club-map-preview {
    min-height: 420px;
    padding: 36px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, .85fr);
    gap: 24px;
    align-items: stretch;
    background:
        radial-gradient(circle at 18% 12%, rgba(63, 114, 201, .16), transparent 42%),
        radial-gradient(circle at 82% 85%, rgba(184, 242, 0, .16), transparent 45%),
        var(--soft);
}

.club-map-preview-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    min-width: 0;
}

.club-map--single .club-map-preview {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.club-map-preview-visual {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(63, 114, 201, .12);
    border-radius: 20px;
    background:
        radial-gradient(circle at 28% 28%, rgba(63, 114, 201, .16), transparent 42%),
        radial-gradient(circle at 76% 72%, rgba(184, 242, 0, .18), transparent 44%),
        repeating-linear-gradient(0deg, rgba(63, 114, 201, .07) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(90deg, rgba(63, 114, 201, .07) 0 1px, transparent 1px 34px),
        #f6f4fd;
}

.club-map-visual-pin {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--brand);
    box-shadow: 0 8px 18px rgba(63, 114, 201, .28);
}

.club-map-visual-pin::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: #fff;
}

.club-map-pin {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 10px 26px rgba(14, 24, 9, .08);
}

.club-map-pin img {
    display: block;
    width: 34px;
    height: 34px;
}

.club-map-preview-copy strong {
    display: block;
    font-size: 24px;
    line-height: 1.2;
}

.club-map-preview-copy span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 16px;
}

.club-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.club-map-consent {
    max-width: 560px;
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.club-map-consent a {
    color: var(--brand);
    text-decoration: underline;
}

.club-map-canvas-wrap {
    position: relative;
    height: 480px;
}

.club-map--single .club-map-canvas-wrap {
    height: 360px;
}

.club-map-canvas {
    width: 100%;
    height: 100%;
}

.club-map-collapse {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(14, 24, 9, .1);
}

.club-map-error {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    text-align: center;
    background: var(--soft);
    color: var(--muted);
    z-index: 5;
}

.club-map-error a {
    color: var(--brand);
    text-decoration: underline;
}

.map-logo-pin {
    position: absolute;
    left: -22px;
    top: -48px;
    width: 44px;
    height: 48px;
    cursor: pointer;
}

.map-logo-pin-img {
    position: relative;
    z-index: 1;
    display: block;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 20px rgba(14, 24, 9, .24);
}

.map-logo-pin-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.map-logo-pin::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: #fff;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 0 5px 9px rgba(14, 24, 9, .18);
}

.map-balloon {
    display: grid;
    gap: 9px;
    width: 280px;
    max-width: 280px;
    color: #101318;
    font-family: var(--font);
}

.map-balloon-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-balloon-logo {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--soft);
    object-fit: contain;
}

.map-balloon-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.map-balloon-address {
    margin-top: 2px;
    color: #686d79;
    font-size: 13px;
    line-height: 1.35;
}

.map-balloon-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: #3e4148;
    font-size: 13px;
    line-height: 1.35;
}

.map-balloon-meta a {
    color: var(--brand);
    text-decoration: none;
}

.map-balloon-meta a:hover {
    text-decoration: underline;
}

.map-balloon-rating {
    color: #c98a00;
    font-weight: 700;
}

.map-balloon-badge {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff7df;
    color: #8a5a00;
    font-size: 12px;
    font-weight: 600;
}

.map-balloon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.map-balloon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid var(--brand);
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.map-balloon-btn--ghost {
    border-color: var(--line);
    background: #fff;
    color: var(--brand);
}

.club-map-preview[hidden],
.club-map-canvas-wrap[hidden],
.club-map-error[hidden] {
    display: none;
}

html[data-theme="dark"] .club-map,
html[data-theme="dark"] .club-map-preview,
html[data-theme="dark"] .club-map-error {
    background-color: #1a1d22;
}

html[data-theme="dark"] .club-map-pin,
html[data-theme="dark"] .club-map-collapse {
    background: #232830;
    border-color: #3a4250;
}

@media (max-width: 940px) {
    .club-map-preview {
        grid-template-columns: 1fr;
        min-height: 300px;
        height: auto;
    }

    .club-map-preview-visual {
        display: none;
    }

    .club-map-canvas-wrap {
        height: 300px;
    }

    .club-map--single .club-map-preview {
        min-height: 220px;
        height: auto;
    }

    .club-map--single .club-map-canvas-wrap {
        height: 260px;
    }

    .club-map-preview {
        padding: 22px;
    }

    .club-map-preview-copy strong {
        font-size: 20px;
    }

    .map-balloon {
        width: 240px;
        max-width: 240px;
    }
}

@media (max-width: 640px) {
    .club-map-preview {
        padding: 18px;
        gap: 12px;
    }

    .map-logo-pin {
        left: -20px;
        top: -44px;
        width: 40px;
        height: 44px;
    }

    .map-logo-pin-img {
        width: 40px;
        height: 40px;
    }

    .club-map-actions {
        width: 100%;
    }

    .club-map-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .club-map-consent {
        font-size: 12px;
    }
}

/* Contact widget */
.contact-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.contact-widget-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px) scale(.98);
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}

.contact-widget.is-open .contact-widget-links {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.contact-widget-toggle,
.contact-widget-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
}

.contact-widget-toggle {
    width: 56px;
    height: 56px;
    border: 0;
    background: var(--brand);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(63, 114, 201, .22);
    cursor: pointer;
    opacity: .92;
    transition: opacity .16s ease, transform .16s ease, background .16s ease;
}

.contact-widget-toggle:hover {
    opacity: 1;
    background: var(--brand-deep);
    transform: translateY(-1px);
}

.contact-widget-toggle:focus-visible,
.contact-widget-link:focus-visible {
    outline: 3px solid rgba(63, 114, 201, .28);
    outline-offset: 2px;
}

.contact-widget-link {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--brand);
    font-size: 19px;
    box-shadow: 0 6px 16px rgba(14, 24, 9, .1);
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.contact-widget-link:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.contact-widget-max {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}

html[data-theme="dark"] .contact-widget-link {
    background: #1a1d22;
    border-color: #2b3038;
}

html[data-theme="dark"] .contact-widget-link:hover {
    background: var(--brand);
    border-color: var(--brand);
}

@media (max-width: 640px) {
    .contact-widget {
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom));
    }

    .contact-widget-toggle {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .contact-widget-link {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .contact-widget-max {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-widget-links,
    .contact-widget-toggle,
    .contact-widget-link {
        transition: none;
    }
}

/* Club schedule widget */
.schedule-widget {
    display: grid;
    gap: 18px;
}

.schedule-filter {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.schedule-filter-btn {
    flex: 0 0 auto;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #686d79;
    font: inherit;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.schedule-filter-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.schedule-filter-btn.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.schedule-week {
    display: grid;
    gap: 0;
}

.schedule-day {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.schedule-day:first-child {
    padding-top: 0;
    border-top: 0;
}

.schedule-day:last-child {
    padding-bottom: 0;
}

.schedule-day[hidden] {
    display: none;
}

.schedule-day-head {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 2px;
}

.schedule-day-short {
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--brand);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.schedule-day-name {
    margin: 0;
    color: var(--ink);
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -.01em;
}

.schedule-day-items {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.schedule-slot {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.schedule-slot:hover {
    border-color: var(--brand);
    box-shadow: 0 6px 18px rgba(16, 24, 40, .08);
}

.schedule-slot[hidden] {
    display: none;
}

.schedule-slot-time {
    color: var(--brand);
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.schedule-slot-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.schedule-slot-group {
    color: var(--ink);
    font-size: 17px;
    line-height: 1.35;
}

.schedule-slot-coach {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 15px;
}

.schedule-slot-coach i {
    color: var(--brand);
    font-size: 13px;
}

html[data-theme="dark"] .schedule-filter-btn {
    background: #1a1d22;
    border-color: #2b3038;
    color: #9aa3b2;
}

html[data-theme="dark"] .schedule-filter-btn.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

html[data-theme="dark"] .schedule-day {
    border-color: #2b3038;
}

html[data-theme="dark"] .schedule-day-short {
    background: #242a33;
}

html[data-theme="dark"] .schedule-day-name,
html[data-theme="dark"] .schedule-slot-group {
    color: #e5e7eb;
}

html[data-theme="dark"] .schedule-slot {
    background: #1a1d22;
    border-color: #2b3038;
    box-shadow: none;
}

html[data-theme="dark"] .schedule-slot-coach {
    color: #9aa3b2;
}

@media (max-width: 640px) {
    .schedule-day {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px 0;
    }

    .schedule-day-head {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding-top: 0;
    }

    .schedule-day-name {
        font-size: 19px;
    }

    .schedule-slot {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 13px 15px;
    }

    .schedule-slot-time {
        font-size: 17px;
    }
}

/* Yandex club rating */
.club-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 !important;
    color: #686d79;
    font-size: 15px;
}

.club-rating-score {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #3e4148;
    font-weight: 600;
}

.club-rating-score .fa-star {
    color: #f5b301;
    font-size: 14px;
}

.club-rating-sep {
    color: var(--muted);
}

.page-hero--club {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.club-hero-copy {
    flex: 1;
    min-width: 0;
}

.club-hero-badge {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.club-hero-badge img {
    display: block;
    width: auto;
    height: clamp(96px, 10vw, 132px);
}

.club-hero-badge .club-good-place-year {
    font-size: 16px;
}

a.club-hero-badge:hover {
    opacity: .8;
}

.club-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.club-title-badge img {
    display: block;
    width: auto;
    height: .9em;
}

a.club-title-badge:hover {
    opacity: .8;
}

.club-good-place-year {
    color: #8a5a00;
    font-weight: 700;
    line-height: 1;
}

.club-card .club-card-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.club-card-title .club-title-badge {
    align-items: center;
    gap: 4px;
}

.club-card-title .club-good-place-year {
    font-size: 12px;
}

@media (max-width: 640px) {
    .page-hero--club {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .club-hero-badge {
        flex-direction: row;
        align-items: center;
    }

    .club-hero-badge img {
        height: 96px;
    }
}

.club-yandex-reviews {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

a.club-yandex-reviews {
    color: var(--brand);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a.club-yandex-reviews:hover {
    color: var(--brand-deep);
}

.club-yandex-icon {
    display: block;
    width: auto;
    height: 22px;
}

.club-yandex-value {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.info-list a {
    margin-left: 4px;
}

html[data-theme="dark"] .club-rating {
    color: #9aa3b2;
}

html[data-theme="dark"] .club-rating-score {
    color: #e5e7eb;
}

html[data-theme="dark"] .club-good-place-year {
    color: #f5d27a;
}

html[data-theme="dark"] a.club-yandex-reviews {
    color: #8fb3f5;
}

@media (max-width: 640px) {
    .detail-grid--club {
        gap: 28px;
    }

    .club-media-logo img {
        max-height: 260px;
    }
}

@media (max-width: 640px) {
    .enrollment-page-section {
        padding-top: 28px;
    }

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

    .enrollment-modal-card {
        padding: 24px 18px 20px;
        border-radius: 20px;
    }

    .enrollment-modal h2 {
        font-size: 25px;
    }
}

@media (max-width: 360px) {
    .topbar-inner {
        font-size: 11px;
    }

    .topbar-contacts a i {
        font-size: 10px;
    }
}

/* ---------- FAQ ---------- */

.faq-list {
    display: grid;
    gap: 12px;
    max-width: 920px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 2px 22px;
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    list-style: none;
    padding: 16px 0;
    font-weight: 600;
    font-size: 20px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    color: var(--brand);
    font-size: 24px;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: '\2212';
}

.faq-item p {
    margin: 0 0 18px;
    color: var(--muted);
}

@media (max-width: 640px) {
    .faq-item summary {
        font-size: 18px;
    }
}
