:root {
    --ink: #081421;
    --ink-soft: #183148;
    --blue: #0a6fb8;
    --blue-dark: #064a7b;
    --aqua: #19b9c8;
    --lime: #b7e23a;
    --white: #ffffff;
    --paper: #f5f8fb;
    --muted: #dfe9f1;
    --text: #33475b;
    --border: rgba(8, 20, 33, 0.12);
    --shadow: 0 18px 45px rgba(8, 20, 33, 0.12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    min-width: 320px;
    font-family: "Montserrat", Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

:focus-visible {
    outline: 3px solid rgba(25, 185, 200, 0.55);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    transform: translateY(-140%);
    padding: 12px 16px;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--white);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(100% - 40px, 1180px);
    margin-inline: auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--aqua));
    font-size: 14px;
}

.logo-text {
    font-size: 18px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
}

.nav-links a {
    position: relative;
    padding: 10px 0;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--aqua);
    transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--blue-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-toggle {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

.burger {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
}

.burger span {
    width: 20px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 20px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: var(--ink);
    background: var(--lime);
    box-shadow: 0 12px 28px rgba(183, 226, 58, 0.28);
}

.btn-secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.btn-secondary.dark {
    color: var(--ink);
    border-color: var(--border);
    background: var(--white);
}

.btn-outline {
    color: var(--blue-dark);
    border-color: rgba(10, 111, 184, 0.22);
    background: rgba(25, 185, 200, 0.08);
}

.hero,
.page-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 76px);
    padding: 96px 0 40px;
    color: var(--white);
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(8, 20, 33, 0.92) 0%, rgba(6, 74, 123, 0.86) 45%, rgba(25, 185, 200, 0.72) 100%),
        #064a7b;
}

.hero {
    display: block;
}

.page-hero {
    display: flex;
    min-height: 460px;
    padding: 120px 0 70px;
}

.hero-court {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.72;
    overflow: hidden;
    contain: paint;
}

.court-frame {
    position: absolute;
    top: 12%;
    right: -8%;
    width: min(72vw, 920px);
    aspect-ratio: 1.9 / 1;
    transform: rotate(-12deg);
    border: 4px solid rgba(255, 255, 255, 0.32);
    border-radius: var(--radius);
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 28px),
        rgba(10, 111, 184, 0.18);
}

.page-court .court-frame {
    top: 6%;
    right: -5%;
    width: min(62vw, 760px);
}

.court-line,
.court-net {
    position: absolute;
    background: rgba(255, 255, 255, 0.48);
}

.court-line-center {
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
}

.court-line-service-a,
.court-line-service-b {
    top: 28%;
    width: 100%;
    height: 3px;
}

.court-line-service-b {
    top: 72%;
}

.court-line-side-a,
.court-line-side-b {
    top: 0;
    height: 100%;
    width: 3px;
}

.court-line-side-a {
    left: 16%;
}

.court-line-side-b {
    right: 16%;
}

.court-net {
    left: 0;
    top: 50%;
    width: 100%;
    height: 5px;
    background: rgba(183, 226, 58, 0.78);
    box-shadow: 0 0 30px rgba(183, 226, 58, 0.5);
}

.hero-content,
.page-hero-content {
    max-width: 760px;
}

.eyebrow,
.section-subtitle,
.card-kicker {
    color: var(--aqua);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    margin-top: 16px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
}

.page-hero h1 {
    font-size: clamp(40px, 6vw, 72px);
}

.hero-description,
.page-hero p:not(.eyebrow) {
    max-width: 650px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 54px;
}

.stat-card {
    min-height: 126px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.stat-card strong {
    display: block;
    color: var(--lime);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1;
}

.stat-card span {
    display: block;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
}

.section {
    padding: 96px 0;
}

.section-muted {
    background: var(--paper);
}

.section-dark {
    color: var(--white);
    background: var(--ink);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 40px;
}

.section-heading.compact {
    margin-bottom: 0;
}

h2 {
    margin-top: 12px;
    font-size: clamp(32px, 4.8vw, 54px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 0;
}

h3 {
    font-size: 22px;
    line-height: 1.25;
}

p {
    line-height: 1.75;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 64px;
    align-items: start;
}

.lead-text {
    color: var(--text);
    font-size: 18px;
}

.lead-text p + p {
    margin-top: 18px;
}

.cards-grid {
    display: grid;
    gap: 20px;
}

.cards-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.cards-grid.four {
    grid-template-columns: repeat(4, 1fr);
}

.info-card,
.trainer-mini,
.fact-card,
.contact-card,
.trainer-card,
.service-row,
.price-grid article,
.dimension-grid article,
.court-showcase {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.info-card {
    padding: 30px;
}

.info-card h3 {
    margin-top: 14px;
    margin-bottom: 12px;
}

.info-card p,
.fact-card p,
.trainer-mini p,
.service-row p,
.section-heading p,
.contact-note {
    color: var(--text);
}

.dark-card,
.section-dark .trainer-mini {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.dark-card p,
.section-dark .trainer-mini p {
    color: rgba(255, 255, 255, 0.72);
}

.service-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 54px;
    align-items: start;
}

.service-list {
    display: grid;
    gap: 14px;
}

.service-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    padding: 24px;
    box-shadow: none;
}

.service-row span,
.steps span,
.fact-card span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--ink);
    background: var(--lime);
    font-weight: 800;
}

.service-row h3 {
    margin-bottom: 6px;
}

.trainer-mini {
    min-height: 210px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: none;
}

.trainer-mini h3 {
    font-size: 18px;
}

.trainer-mini a,
.trainer-phone,
.contact-card a,
.footer a {
    color: var(--blue-dark);
    font-weight: 800;
}

.section-dark .trainer-mini a {
    color: var(--lime);
}

.center-action {
    margin-top: 34px;
}

.cta-section {
    padding: 80px 0;
    background: var(--white);
}

.cta-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    padding: 42px;
    border-radius: var(--radius);
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-dark), var(--blue) 56%, var(--aqua));
    box-shadow: var(--shadow);
    min-width: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.cta-panel h2 {
    max-width: 780px;
}

.cta-panel p:not(.section-subtitle) {
    max-width: 700px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.78);
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.fact-card {
    min-height: 210px;
    padding: 26px;
    box-shadow: none;
}

.fact-card h3 {
    margin-top: 22px;
    margin-bottom: 8px;
}

.dimensions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.dimension-grid,
.court-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.dimension-grid article,
.court-specs article {
    padding: 28px;
    box-shadow: none;
}

.dimension-grid strong,
.court-specs strong {
    display: block;
    color: var(--blue-dark);
    font-size: 38px;
    line-height: 1;
}

.dimension-grid span,
.court-specs span {
    display: block;
    margin-top: 10px;
    color: var(--text);
    font-weight: 700;
}

.steps {
    display: grid;
    gap: 16px;
}

.steps article {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: start;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 430px);
    gap: 52px;
    align-items: start;
}

.contact-card {
    padding: 30px;
    box-shadow: none;
}

.contact-card h3 {
    margin-top: 20px;
    margin-bottom: 4px;
    font-size: 16px;
    color: var(--text);
}

.contact-card h3:first-child {
    margin-top: 0;
}

.court-overview {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 54px;
    align-items: center;
}

.court-showcase {
    padding: 26px;
}

.mini-court {
    position: relative;
    min-height: 300px;
    border: 3px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--radius);
    background:
        linear-gradient(90deg, transparent calc(50% - 2px), rgba(255,255,255,0.8) calc(50% - 2px), rgba(255,255,255,0.8) calc(50% + 2px), transparent calc(50% + 2px)),
        linear-gradient(0deg, transparent calc(50% - 3px), var(--lime) calc(50% - 3px), var(--lime) calc(50% + 3px), transparent calc(50% + 3px)),
        linear-gradient(135deg, var(--blue), var(--aqua));
    overflow: hidden;
}

.mini-court span {
    position: absolute;
    background: rgba(255, 255, 255, 0.72);
}

.mini-court span:nth-child(1) {
    left: 16%;
    top: 0;
    width: 3px;
    height: 100%;
}

.mini-court span:nth-child(2) {
    right: 16%;
    top: 0;
    width: 3px;
    height: 100%;
}

.mini-court span:nth-child(3) {
    left: 0;
    top: 30%;
    width: 100%;
    height: 3px;
    box-shadow: 0 120px 0 rgba(255, 255, 255, 0.72);
}

.court-specs {
    margin-top: 16px;
    grid-template-columns: repeat(3, 1fr);
}

.trainer-list {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.trainer-card {
    padding: 30px;
    box-shadow: none;
    min-width: 0;
    max-width: 100%;
}

.trainer-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    min-width: 0;
}

.trainer-head > div {
    min-width: 0;
}

.trainer-head h3 {
    margin-top: 10px;
    font-size: clamp(22px, 3vw, 32px);
    overflow-wrap: anywhere;
}

.trainer-phone {
    white-space: nowrap;
    overflow-wrap: anywhere;
}

.price-table-wrap {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 24px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    -webkit-overflow-scrolling: touch;
}

.price-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.price-table caption {
    padding: 18px 18px 0;
    text-align: left;
    color: var(--blue-dark);
    font-weight: 800;
}

.price-table th,
.price-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.price-table thead th {
    color: var(--ink);
    background: var(--paper);
    font-size: 13px;
    text-transform: uppercase;
}

.price-table tbody tr:last-child td {
    border-bottom: 0;
}

.price-table td:not(:first-child) {
    font-weight: 800;
    color: var(--blue-dark);
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
    min-width: 0;
}

.price-grid article {
    padding: 24px;
    box-shadow: none;
    min-width: 0;
}

.price-grid h4 {
    margin-bottom: 14px;
    color: var(--blue-dark);
    font-size: 18px;
}

.price-grid p + p {
    margin-top: 8px;
}

.footer {
    padding: 54px 0;
    color: rgba(255, 255, 255, 0.76);
    background: var(--ink);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 42px;
}

.footer h2 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 18px;
}

.footer-logo {
    margin-bottom: 16px;
    color: var(--white);
}

.footer ul {
    display: grid;
    gap: 10px;
}

.footer a {
    color: var(--white);
}

@media (max-width: 1100px) {
    .header-action {
        display: none;
    }

    .nav-links {
        gap: 18px;
    }

    .hero-stats,
    .cards-grid.four,
    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards-grid.three,
    .court-specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .court-specs article:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .burger {
        display: inline-flex;
        order: 3;
    }

    .navbar {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        display: none;
        padding: 0 20px 20px;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--border);
    }

    .nav-toggle:checked ~ .navbar {
        display: block;
    }

    .nav-toggle:checked + .burger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle:checked + .burger span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked + .burger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-links {
        width: min(100%, 1180px);
        margin: 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-links a {
        display: block;
        padding: 16px 0;
        border-bottom: 1px solid var(--border);
    }

    .hero,
    .page-hero {
        min-height: auto;
        padding-top: 88px;
    }

    .hero {
        padding-bottom: 56px;
    }

    .split,
    .service-layout,
    .dimensions,
    .contact-grid,
    .court-overview,
    .cta-panel {
        grid-template-columns: 1fr;
    }

    .section-heading.compact {
        margin-bottom: 28px;
    }

    .cta-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .trainer-head {
        flex-direction: column;
    }

    .trainer-phone {
        white-space: normal;
    }

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

@media (max-width: 680px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

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

    .navbar {
        top: 68px;
        padding-inline: 14px;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
    }

    .logo-text {
        font-size: 16px;
    }

    .hero,
    .page-hero {
        padding: 78px 0 42px;
    }

    .court-frame {
        top: 10%;
        right: -64%;
        width: 150vw;
        opacity: 0.48;
    }

    .hero-description,
    .page-hero p:not(.eyebrow),
    .lead-text {
        font-size: 16px;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-stats,
    .cards-grid.three,
    .cards-grid.four,
    .facts-grid,
    .dimension-grid,
    .court-specs,
    .price-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 70px 0;
    }

    .info-card,
    .trainer-card,
    .fact-card,
    .contact-card,
    .court-showcase,
    .cta-panel {
        padding: 22px;
    }

    .service-row,
    .steps article {
        grid-template-columns: 1fr;
    }

    .mini-court {
        min-height: 230px;
    }

    .price-table {
        min-width: 0;
        font-size: 12px;
    }

    .price-table caption,
    .price-table th,
    .price-table td {
        padding-left: 10px;
        padding-right: 10px;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 380px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .logo-text {
        font-size: 14px;
    }

    .burger {
        width: 40px;
        height: 40px;
    }

    .stat-card,
    .info-card,
    .trainer-mini,
    .trainer-card,
    .fact-card,
    .contact-card,
    .court-showcase,
    .cta-panel {
        padding: 18px;
    }
}
