:root {
    --ink: #1c1917;
    --muted: #5c564f;
    --paper: #fffdf9;
    --stone: #f3eee6;
    --line: #e4dcd0;
    --wine: #6e2c32;
    --wine-2: #8a3b42;
    --char: #241f1c;
    --sand: #d9c4a0;
    --ok: #2d6a4f;
    --shadow: 0 16px 36px rgba(36, 31, 28, 0.1);
    --radius: 16px;
    --max: 1080px;
}

* { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}
body {
    margin: 0;
    font-family: system-ui, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--stone);
    line-height: 1.55;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); }
h1, h2, h3, h4 {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.18;
    margin: 0 0 0.5em;
    font-weight: 650;
}

.demo-banner {
    background: #2a221c;
    color: #eadcc8;
    font-size: 13px;
    text-align: center;
    padding: 8px 16px;
}
.demo-banner a { color: var(--sand); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--char);
    color: #fff;
    border-bottom: 3px solid var(--wine);
}
.header-inner {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}
.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-weight: 700; font-size: 15px; }
.brand-sub { font-size: 12px; color: var(--sand); }

.nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 2px; }
.nav a {
    color: #ddd6cc;
    text-decoration: none;
    padding: 8px 11px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}
.nav a:hover, .nav a.active { background: rgba(255,255,255,0.08); color: #fff; }
.nav a.active { color: var(--sand); }

.nav-toggle {
    display: none;
    margin-left: auto;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    border-radius: 8px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    font: inherit;
    font-weight: 700;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 32px 20px 64px;
}

.hero {
    background: var(--char);
    color: #fff;
    padding: 44px 20px 40px;
}
.hero-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 28px;
    align-items: center;
}
.kicker {
    display: inline-block;
    background: var(--wine);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.hero p { font-size: 1.1rem; color: #e4ddd4; max-width: 38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.enroll-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.enroll-card h2 { font-size: 1.15rem; }
.enroll-card p { color: #e8e0d6; }

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: -24px;
    position: relative;
    z-index: 2;
}
.stat {
    background: var(--paper);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.stat b {
    display: block;
    font-size: 1.4rem;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--wine);
}

.section-title { margin: 40px 0 16px; font-size: 1.75rem; }
.muted { color: var(--muted); }

.grid-3, .grid-2 { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}
.card h3 { font-size: 1.12rem; }
.card img.portrait {
    width: 100%;
    max-width: 280px;
    border-radius: 12px;
    margin: 0 auto 12px;
}
.card img.thumb {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0 0 12px;
}

.bio {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}
.bio img {
    width: 100%;
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    font: inherit;
}
.btn-wine { background: var(--wine); color: #fff; }
.btn-wine:hover { background: var(--wine-2); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-char { background: var(--char); color: #fff; }
.btn-line { background: #fff; color: var(--char); border: 1px solid var(--line); }

.page-hero {
    background: #2e2723;
    color: #fff;
    padding: 40px 20px 28px;
}
.page-hero-inner { max-width: var(--max); margin: 0 auto; }
.page-hero p { max-width: 44em; color: #ddd4c8; }

.schedule {
    width: 100%;
    border-collapse: collapse;
    background: var(--paper);
    border-radius: 12px;
    overflow: hidden;
    font-size: 15px;
}
.schedule th, .schedule td {
    border: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
.schedule th { background: var(--char); color: #fff; font-weight: 600; }
.schedule .who { font-weight: 700; width: 28%; }
.schedule caption {
    text-align: left;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    margin: 0 0 12px;
    caption-side: top;
}

.coach img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 360px;
    display: block;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: #ece6dc;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.gallery figure { margin: 0; }
.gallery img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}
.gallery figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }

.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.embed {
    position: relative;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

form.stack { display: grid; gap: 12px; max-width: 520px; }
label { font-weight: 600; font-size: 14px; }
input, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    font-size: 16px;
    background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
.form-ok {
    display: none;
    background: #e7f5ec;
    color: var(--ok);
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
}

.map-embed {
    border: 0;
    width: 100%;
    min-height: 280px;
    border-radius: var(--radius);
}

.news-item time { color: var(--muted); font-size: 13px; font-weight: 700; }

.site-footer {
    background: var(--char);
    color: #cfc6ba;
    padding: 28px 20px;
    font-size: 14px;
}
.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.site-footer a { color: var(--sand); }

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav {
        display: none;
        position: absolute;
        left: 0; right: 0; top: 100%;
        background: #2e2723;
        flex-direction: column;
        padding: 8px 10px 14px;
        margin: 0;
        z-index: 50;
        box-shadow: 0 16px 28px rgba(0,0,0,0.28);
    }
    .nav.open { display: flex; }
    .nav a { min-height: 44px; display: flex; align-items: center; }
    .hero-inner, .stats, .grid-3, .grid-2, .bio, .media-grid {
        grid-template-columns: 1fr;
    }
    .hero { padding: 28px 16px 32px; }
    .hero h1 { font-size: 1.65rem; }
    .wrap { padding: 20px 16px 48px; }
    .stats { margin-top: 16px; }
    .section-title { font-size: 1.4rem; }
    .page-hero { padding: 28px 16px 22px; }
    .hero-actions .btn { flex: 1 1 160px; }
    .brand-sub { display: none; }
    .schedule { font-size: 13px; display: block; overflow-x: auto; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
    .brand-name { font-size: 13px; }
    .gallery { grid-template-columns: 1fr; }
    .demo-banner { font-size: 12px; }
}
