/* ═══════════════════════════════════════════════════════
   ШАГ ВПЕРЁД — Black & White Redesign
   Mobile-first
   ═══════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Mister Brush';
    src: url('/public/fonts/MisterBrush.woff2') format('woff2'),
         url('/public/fonts/MisterBrush.woff') format('woff'),
         url('/public/fonts/MisterBrush.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --black: #000;
    --white: #fff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    --primary: #000;
    --primary-hover: #333;
    --success: #16a34a;
    --warning: #ca8a04;
    --danger: #dc2626;
    --bg: var(--white);
    --bg-card: var(--white);
    --text: var(--black);
    --text-muted: var(--gray-500);
    --border: var(--gray-200);
    --radius: 8px;
    --radius-lg: 24px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Mister Brush', 'Inter', sans-serif;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* ─── Header ─────────────────────────────────────────── */

.header {
    background: var(--black);
    color: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.logo {
    font-size: 1rem;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.logo:hover { text-decoration: none; color: var(--white); }

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 0;
    object-fit: contain;
}

@media (min-width: 900px) {
    .logo-img {
        width: 48px;
        height: 48px;
    }
}

.header-info {
    display: none;
    align-items: center;
    gap: 24px;
    font-size: 0.85rem;
    color: var(--gray-300);
}
.header-info a {
    color: var(--gray-300);
    transition: color 0.2s;
}
.header-info a:hover {
    color: var(--white);
    text-decoration: none;
}

.nav {
    display: none;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius);
    color: var(--gray-300);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}
.nav-link:hover { background: var(--gray-800); color: var(--white); text-decoration: none; }
.nav-link.active { background: var(--white); color: var(--black); }

/* Mobile header icons row */
.header-mobile-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 56px;
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius);
    transition: background 0.2s;
}
.header-icon:hover {
    background: var(--gray-800);
    text-decoration: none;
    color: var(--white);
}

.header-icon img {
}

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    width: 50px;
    height: 50px;
    padding: 0;
}

.nav-toggle .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}
.nav-toggle .hamburger span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
    transition: all 0.3s;
}

.hamburger-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--black);
    z-index: 99;
    padding: 24px 20px;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}
.mobile-menu.open { display: flex; }

.mobile-menu .nav-link {
    display: block;
    padding: 14px 16px;
    font-size: 1.1rem;
    color: var(--white);
    border-bottom: 1px solid var(--gray-800);
    border-radius: 0;
}
.mobile-menu .nav-link:hover { background: var(--gray-900); }
.mobile-menu .nav-link.active { background: var(--white); color: var(--black); border-radius: var(--radius); border-bottom-color: transparent; }

.mobile-menu-info {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--gray-800);
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--gray-400);
}
.mobile-menu-info a { color: var(--gray-300); }

/* ─── Main ───────────────────────────────────────────── */

.main {
    flex: 1;
    padding: 24px 0 48px;
}

/* Full-width main for index page */
.main--full {
    padding: 0;
}
.main--full > .container {
    max-width: none;
    padding: 0;
}

h1 { font-size: 1.5rem; font-weight: 900; margin-bottom: 24px; text-transform: uppercase; letter-spacing: -0.01em; font-family: var(--font-heading); }
h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }

/* ─── Buttons ────────────────────────────────────────── */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font);
    border: 2px solid var(--black);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
    line-height: 1.4;
}
.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}
.btn-primary:hover { background: var(--gray-800); border-color: var(--gray-800); }

.btn-secondary {
    background: var(--white);
    color: var(--text);
    border-color: var(--gray-300);
}
.btn-secondary:hover { background: var(--gray-100); border-color: var(--gray-500); }

.btn-outline {
    background: var(--white);
    color: var(--text);
    border-color: var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

.btn-icon {
    background: none;
    border: 2px solid var(--border);
    padding: 8px 14px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font);
}
.btn-icon:hover { background: var(--gray-100); border-color: var(--black); }
.btn-icon:disabled { opacity: 0.3; cursor: default; pointer-events: none; }

/* ─── Hero (Index Page) ──────────────────────────────── */

.hero {
    position: relative;
    overflow: hidden;
}

/* Mobile: scene is flex column, content first then court */
.hero-scene {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* White space above the court — mobile: none, desktop uses ::before */
.hero-scene::before {
    content: '';
    display: none;
}

/* Mobile: court is fixed width, centered to show middle */
.hero-court {
    width: 500px;
    display: block;
    margin-left: 50%;
    transform: translateX(-50%);
}

/* Hero label */
.hero-label {
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--black);
}

/* Text: mobile — static block above court, centered, comes first */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 380px;
    margin: 0 auto;
    text-align: center;
    padding: 32px 20px 24px;
    order: -1;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    line-height: 1.1;
}

.hero-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--black);
}

.hero-text p + p { margin-top: 8px; }

/* Buttons: mobile — stacked above court */
.hero-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    padding: 0 20px 24px;
    order: -1;
}

.btn-hero {
    display: block;
    background: var(--white);
    color: var(--black);
    padding: 12px 32px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font);
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s;
    border: 2px solid var(--black);
    width: 300px;
}
.btn-hero:hover {
    background: var(--black);
    color: var(--white);
    text-decoration: none;
}

.btn-hero--schedule {
    background: var(--black);
    color: var(--white);
}
.btn-hero--schedule:hover {
    background: var(--white);
    color: var(--black);
}

/* ─── Intro (About + Benefits) ───────────────────────── */

.intro {
    position: relative;
    overflow: hidden;
    background: var(--gray-50);
}

.intro-inner {
    padding: 48px 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.intro-cell {
    margin-bottom: 32px;
}

/* Mobile: text-cat-text-cat order */
.intro-cell:nth-child(1) { order: 1; }
.intro-cell:nth-child(2) { order: 2; }
.intro-cell:nth-child(3) { order: 4; }
.intro-cell:nth-child(4) { order: 3; }

.intro-cell--text {
    text-align: center;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.intro-cell--img {
    text-align: center;
}

.intro-label {
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--black);
}

.intro-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    line-height: 1.1;
}

.intro-text {
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--black);
}

.intro-text p + p { margin-top: 12px; }

.intro-img {
    width: 100%; 
    max-width: 323px; 
    height: auto;
    display: block;
    margin: 0 auto;
}
.intro-img--catch { max-width: none; }

.benefits-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 24px;
}

.benefits-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.benefit-icon {
    /* width: 16px;
    height: 16px; */
    flex-shrink: 0;
    margin-top: 3px;
    object-fit: contain;
}

.intro-shuttlecock {
    display: none;
}

/* ─── CTA Section ────────────────────────────────────── */

.cta-section {
    padding: 48px 20px 0;
    text-align: center;
    /* border-top: 2px solid var(--black); */
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
    line-height: 1.2;
}

.cta-section .cta-subtitle {
    font-size: 0.95rem;
    color: var(--black);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
}
.cta-buttons .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    white-space: normal;
    padding-top: 0;
    padding-bottom: 0;
}

.cta-image {
    max-width: 500px;
    margin: 32px auto 0;
    padding: 0;
}
.cta-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* ─── Info Cards ─────────────────────────────────────── */

.info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
}

.info-card, .info-block {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.info-block .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    white-space: normal;
    padding: 12px 20px;
    box-sizing: border-box;
}

.card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.court-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.court-info ul {
    list-style: none;
    padding: 0;
}
.court-info li {
    padding: 4px 0;
}

/* ─── Calendar ───────────────────────────────────────── */

.schedule-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.month-title {
    min-width: 180px;
    text-align: center;
    text-transform: capitalize;
    font-weight: 700;
    font-size: 1rem;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.calendar-header {
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 8px 0;
    text-transform: uppercase;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    cursor: default;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid transparent;
    position: relative;
    min-height: 40px;
}

.calendar-day.empty { visibility: hidden; }
.calendar-day.past { color: var(--gray-400); opacity: 0.5; }
.calendar-day.none { color: var(--gray-400); }

.calendar-day.available {
    background: var(--gray-50);
    border-color: var(--black);
    cursor: pointer;
}
.calendar-day.available:hover { background: var(--gray-200); }

.calendar-day.full {
    background: var(--gray-100);
    border-color: var(--gray-400);
    cursor: pointer;
    color: var(--gray-500);
}
.calendar-day.full:hover { background: var(--gray-200); }

.calendar-day.selected {
    background: var(--black) !important;
    color: var(--white) !important;
    border-color: var(--black) !important;
}

.calendar-day .indicator {
    font-size: 0.6rem;
    position: absolute;
    bottom: 2px;
}

.calendar-day.today {
    box-shadow: inset 0 0 0 2px var(--black);
}

/* ─── Day Trainings ──────────────────────────────────── */

.day-trainings { margin-top: 16px; max-width: 480px; margin-left: auto; margin-right: auto; }
.day-trainings.hidden { display: none; }

.training-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    transition: border-color 0.2s;
}
.training-card:hover { border-color: var(--black); }

.training-card-info h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.training-card-info p { font-size: 0.9rem; color: var(--text-muted); }

.training-card-meta {
    text-align: right;
    font-size: 0.9rem;
}

.training-card-meta .price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}

.training-card-meta .slots {
    font-size: 0.85rem;
    margin-top: 4px;
}

.slots-available { color: var(--success); font-weight: 700; }
.slots-full { color: var(--gray-500); font-weight: 700; }

/* ─── Training Detail ────────────────────────────────── */

.training-detail { max-width: 700px; }

.training-header {
    margin-bottom: 24px;
}
.training-header h1 { margin-bottom: 4px; font-size: 1.5rem; }
.training-header .meta { color: var(--text-muted); font-size: 0.95rem; }

.training-section {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.training-section h3 { margin-bottom: 12px; }

.participant-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.participant-row:last-child { border-bottom: none; }

.participant-name { font-weight: 600; }
.participant-level {
    font-size: 0.8rem;
    background: var(--gray-100);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: var(--radius-lg);
    font-weight: 600;
}
.participant-slots {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.training-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* ─── Footer ─────────────────────────────────────────── */

.footer {
    background: var(--black);
    color: var(--gray-400);
    padding: 24px 0;
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
}
.footer-social a {
    color: var(--gray-400);
    transition: color 0.2s;
    display: flex;
    align-items: center;
}
.footer-social a:hover { color: var(--white); text-decoration: none; }
.footer-social svg { width: 48px; height: 48px; fill: currentColor; }

.footer-copy {
    font-size: 0.85rem;
}

.footer-links {
    margin-bottom: 12px;
    font-size: 0.8rem;
}
.footer-links a { color: var(--gray-400); }
.footer-links a:hover { color: var(--white); }

.footer-dev { font-size: 0.85rem; color: var(--gray-300); font-weight: 600; }
.footer-dev a { color: var(--white); font-weight: 700; }
.footer-dev a:hover { text-decoration: underline; }

/* ─── Utilities ──────────────────────────────────────── */

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.hidden { display: none !important; }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.link:hover { text-decoration: none; }
.loading { text-align: center; padding: 32px; color: var(--text-muted); font-weight: 600; }
.error-msg { color: var(--danger); padding: 12px; background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius); margin: 12px 0; font-weight: 500; }
.text-muted { color: var(--text-muted); }

/* ─── Forms ──────────────────────────────────────────── */

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 0.9rem; }

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font);
    background: var(--white);
    color: var(--text);
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.form-control:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }
.form-control.input-error { border-color: var(--danger); }

.form-error { color: var(--danger); font-size: 0.85rem; margin-top: 2px; display: block; min-height: 1.2em; }

select.form-control { cursor: pointer; }

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
    accent-color: var(--black);
}

/* ─── Payment method picker ──────────────────────────── */

.payment-methods { display: flex; gap: 12px; }

.payment-option {
    flex: 1;
    cursor: pointer;
}
.payment-option input { display: none; }
.payment-label {
    display: block;
    text-align: center;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
    font-family: var(--font);
}
.payment-option input:checked + .payment-label {
    border-color: var(--black);
    background: var(--black);
    color: var(--white);
}

.total-price {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 14px;
    background: var(--gray-50);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

/* ─── Booking steps ──────────────────────────────────── */

.booking-step { display: none; }
.booking-step.active { display: block; }

.status-step { display: none; }
.status-step.active { display: block; }

/* ─── Confirm screen ─────────────────────────────────── */

.confirm-details { padding: 20px; }
.confirm-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
.confirm-row:last-child { border-bottom: none; }
.confirm-label { color: var(--text-muted); }
.confirm-total { font-weight: 700; font-size: 1.1rem; }

/* ─── Processing / Success / Error states ────────────── */

.processing-container,
.success-container,
.error-container {
    text-align: center;
    padding: 48px 24px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.success-container h2 { color: var(--success); }
.error-container h2 { color: var(--danger); }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.badge-game { background: var(--gray-100); color: var(--black); border: 1px solid var(--gray-300); }
.badge-coach { background: var(--black); color: var(--white); }

/* ─── Responsive ─────────────────────────────────────── */

/* Tablet (>=640px) */
@media (min-width: 640px) {
    .hero h1 { font-size: 3rem; }
    .hero-scene { min-height: 480px; }

    .cta-buttons .btn { width: auto; }

    .info-cards,
    .contacts-grid,
    .court-info {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Desktop (>=900px) */
@media (min-width: 900px) {
    .header .container {
        height: 60px;
        vertical-align: middle;
        text-align: center;
        gap: 15px;
    }

    .header-info { display: flex; }

    .nav {
        display: flex;
        align-items: center;
    }
    .header-mobile-icons { display: none; }

    /* Desktop hero — restore fixed scene */
    .hero-scene {
        width: 1600px;
        margin-left: 50%;
        transform: translateX(-50%);
        overflow: visible;
        display: block;
    }
    .hero-scene::before {
        display: block;
        height: 120px;
        background: var(--white);
    }
    .hero-court {
        width: 1600px;
        margin-left: 0;
        transform: none;
    }
    .hero-content {
        position: absolute;
        top: 20px;
        right: 250px;
        max-width: 420px;
        text-align: left;
        padding: 0;
        margin: 0;
        order: unset;
    }
    .hero h1 { font-size: 3.5rem; }
    .hero-actions {
        padding: 0;
    }

    /* Buttons — each positioned individually along the net */
    .hero-actions {
        position: static;
        transform: none;
        display: block;
        padding: 0;
    }
    .btn-hero {
        position: absolute;
        z-index: 2;
        background: rgba(0, 0, 0, 0.85);
        color: var(--white);
        border: none;
        min-width: auto;
        transform: none;
        padding: 0;
        display: flex; align-items: center; justify-content: center;
        font-size: 18px;
    }
    .btn-hero:hover {
        background: rgba(0, 0, 0, 1);
        color: var(--white);
    }
    .btn-hero--schedule {
        left: 576px;
        bottom: 338px;
        width: 261px;
        height: 82px;
        clip-path: polygon(0.0% 44.3%, 100.0% 0.0%, 100.0% 50.9%, 0.0% 100.0%);
    }
    .btn-hero--schedule span { rotate: -8deg; }
    .btn-hero--court {
        left: 981px;
        bottom: 400px;
        width: 255px;
        height: 70px;
        clip-path: polygon(0.0% 46.2%, 100.0% 0.0%, 100.0% 46.2%, 0.0% 100.0%);
    }
    .btn-hero--court span { rotate: -7.3deg; }
    .btn-hero--contacts {
        left: 826px;
        bottom: 335px;
        width: 164px;
        height: 58px;
        clip-path: polygon(0.9% 46.7%, 100.0% 0.0%, 100.0% 48.0%, 0.0% 100.0%);
    }
    .btn-hero--contacts span { rotate: -9.5deg; }

    .container { max-width: 1200px; }

    /* Desktop intro — grid, reset mobile order */
    .intro-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 0;
        align-items: center;
        padding: 64px 20px;
        flex-direction: unset;
    }
    .intro-cell:nth-child(1) { order: unset; }
    .intro-cell:nth-child(2) { order: unset; }
    .intro-cell:nth-child(3) { order: unset; }
    .intro-cell:nth-child(4) { order: unset; }
    /* Diagonal: text top-left, img top-right, img bottom-left, text bottom-right */
    .intro-cell--text { text-align: left; }
    .intro-cell { margin-bottom: 0; }
    /* Left cells push content right, right cells push content left */
    .intro-cell:nth-child(odd) .intro-img { margin-right: 0; }
    .intro-cell:nth-child(even) .intro-img { margin-left: 0; }
     .intro-shuttlecock {
        display: block;
        position: absolute;
        left: 50%;
        top: 55%;
        transform: translate(-50%, -50%) rotate(10deg);
        width: 100px;
        z-index: 2;
    }

    /* All text min 21px on desktop */
    .hero-text,
    .hero-label,
    .intro-label,
    .intro-text,
    .benefit-item,
    .cta-section .cta-subtitle { font-size: 21px; }

    .btn { font-size: 21px; }
    .btn-lg { font-size: 22px; }
    .btn-hero { font-size: 18px; padding: 5px; }

    .info-block .btn { min-height: 87px; }

    .cta-section { padding: 64px 20px 0px; }
    .cta-section h2 { font-size: 2rem; }
    .cta-image { max-width: 600px; }

    h1 { font-size: 1.75rem; }
}

/* Mobile overrides */
@media (max-width: 639px) {
    .calendar-day { font-size: 0.85rem; min-height: 40px; }
    .training-card { flex-direction: column; align-items: flex-start; }
    .training-card-meta { text-align: left; }
}

/* ═══════════════════════════════════════════════════════
   MY BOOKINGS — Redesigned page
   ═══════════════════════════════════════════════════════ */

/* ─── Upcoming cards ─────────────────────────────────── */
.upcoming-cards {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.upcoming-card {
    flex: 0 0 280px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    transition: border-color 0.2s;
    background: var(--white);
}
.upcoming-card:hover {
    border-color: var(--black);
}

.upcoming-card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.upcoming-day-name {
    background: var(--black);
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 6px;
}
.upcoming-day-num {
    font-weight: 600;
    font-size: 0.9rem;
}
.upcoming-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-500);
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.upcoming-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.upcoming-datetime {
    font-weight: 600;
    font-size: 0.9rem;
}
.upcoming-type {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.upcoming-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.upcoming-status {
    margin-top: 8px;
}
.upcoming-card .cancel-btn {
    margin-top: 12px;
    width: 100%;
}

/* ─── Stats grid ─────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}
.stat-card {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    background: var(--white);
    transition: border-color 0.2s;
}
.stat-card:hover {
    border-color: var(--black);
}
.stat-card--total {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}
.stat-card--total .stat-label {
    color: var(--gray-400);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ─── My Calendar ────────────────────────────────────── */
.my-calendar {
    max-width: 400px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    background: var(--white);
}
.my-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.my-calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.my-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.my-cal-day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: default;
}
.my-cal-day--empty { visibility: hidden; }
.my-cal-day--past { color: var(--gray-300); }
.my-cal-day--today {
    border: 2px solid var(--black);
    font-weight: 700;
}
.my-cal-day--booked {
    background: var(--black);
    color: var(--white);
    font-weight: 700;
}

/* ─── History table ──────────────────────────────────── */
.history-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.filter-btn {
    background: var(--gray-100);
    color: var(--text);
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn:hover {
    background: var(--gray-200);
}
.filter-btn.active {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.history-table {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}
.history-header {
    display: grid;
    grid-template-columns: 130px 120px 100px 1fr 110px;
    background: var(--gray-100);
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--gray-200);
}
.history-row {
    display: grid;
    grid-template-columns: 130px 120px 100px 1fr 110px;
    padding: 12px 16px;
    font-size: 0.88rem;
    align-items: center;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s;
}
.history-row:last-child { border-bottom: none; }
.history-row:hover { background: var(--gray-50); }
.history-row--cancelled { opacity: 0.6; }
.history-date { font-weight: 600; }

/* Status badges */
.badge-status-attended {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #a7f3d0;
}
.badge-status-active {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}
.badge-status-cancelled {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ─── Mobile overrides for My Bookings ───────────────── */
@media (max-width: 639px) {
    .upcoming-cards {
        flex-direction: column;
    }
    .upcoming-card {
        flex: none;
        width: 100%;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .history-header {
        display: none;
    }
    .history-row {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        padding: 12px;
    }
    .history-row span:nth-child(3),
    .history-row span:nth-child(4) {
        font-size: 0.8rem;
        color: var(--text-muted);
    }
}
