﻿:root {
    --navy: #1a2744;
    --navy-deep: #0f1a2e;
    --gold: #c9a227;
    --gold-light: #e8c96a;
    --cream: #f5f0e8;
    --cream-dark: #ebe4d6;
    --text: #1a2744;
    --text-muted: #4a5568;
    --white: #ffffff;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', system-ui, sans-serif;
    --container: 1180px;
    --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    background-image:
        url("data:image/svg+xml,%3Csvg width='120' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 Q30 10 60 30 T120 30' fill='none' stroke='%23c9a227' stroke-opacity='0.08'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select { font: inherit; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.site-header {
    position: fixed; inset: 0 0 auto; z-index: 100;
    background: rgba(245, 240, 232, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.35);
}
.header-inner {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center;
    gap: 1rem; min-height: 76px;
}
.logo {
    display: flex; align-items: center; gap: 0.65rem;
    color: var(--navy);
}
.logo-mark { color: var(--gold); flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.logo-text small {
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}
.main-nav ul { display: flex; justify-content: center; gap: 0.85rem; flex-wrap: wrap; }
.main-nav a {
    font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-muted);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--navy);
    border-bottom-color: var(--gold);
}
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--navy); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.75rem 1.5rem; border-radius: 999px; font-weight: 700;
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
    border: none; cursor: pointer; transition: opacity 0.2s, background 0.2s, transform 0.15s;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: transparent; border: 1px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: rgba(26, 39, 68, 0.06); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.68rem; }
.btn-lg { padding: 1rem 2rem; font-size: 0.78rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.65rem, 3.5vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
    color: var(--navy);
}
.section-title.left { text-align: left; }
.section-desc { text-align: center; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 640px; margin-inline: auto; }
.section { padding: 5rem 0; position: relative; }
.section-head { margin-bottom: 2.5rem; }
.decor-box {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(201, 162, 39, 0.25);
    box-shadow: 0 12px 40px rgba(26, 39, 68, 0.08);
}
.eeat-note {
    text-align: center; font-size: 0.82rem; color: var(--text-muted);
    margin-top: 1.5rem;
}
.eeat-note a { color: var(--gold); font-weight: 600; text-decoration: underline; }

/* Hero */
.hero {
    position: relative;
    margin-top: 76px;
    min-height: 72vh;
    display: flex;
    align-items: flex-end;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15, 26, 46, 0.15) 30%, rgba(15, 26, 46, 0.88) 100%);
}
.hero-notes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.note {
    position: absolute;
    font-size: 2.5rem;
    color: var(--gold);
    opacity: 0.35;
    animation: floatNote 6s ease-in-out infinite;
}
.note-1 { top: 18%; right: 12%; }
.note-2 { top: 40%; right: 28%; animation-delay: 1.2s; }
.note-3 { bottom: 35%; left: 8%; animation-delay: 2s; font-size: 3rem; }
@keyframes floatNote {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.hero-content {
    position: relative; z-index: 1;
    text-align: center;
    padding: 3rem 0 4.5rem;
    max-width: 720px;
    margin-inline: auto;
}
.hero-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.15;
}
.hero-lead { color: rgba(255, 255, 255, 0.9); font-size: 1.05rem; margin-bottom: 2rem; }

/* Directions */
.directions-section::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 80px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.12), transparent);
    pointer-events: none;
}
.directions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.direction-card {
    text-align: center;
    padding: 2rem 1.25rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(201, 162, 39, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}
.direction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(26, 39, 68, 0.1);
}
.direction-icon { display: flex; justify-content: center; margin-bottom: 1rem; color: var(--navy); }
.direction-card h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}
.direction-card p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.direction-link { font-size: 0.75rem; font-weight: 600; color: var(--gold); }

/* Teachers */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.teacher-card {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(26, 39, 68, 0.08);
}
.teacher-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.teacher-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin: 1rem 1rem 0.25rem;
}
.teacher-role { font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }
.teacher-badge {
    display: flex; align-items: center; justify-content: center; gap: 0.35rem;
    font-size: 0.78rem; color: var(--text-muted);
    padding: 0.75rem 1rem 1.25rem;
}

/* Events */
.events-list { display: flex; flex-direction: column; gap: 0; max-width: 900px; margin-inline: auto; }
.event-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(201, 162, 39, 0.3);
}
.event-item:first-child { border-top: 1px solid rgba(201, 162, 39, 0.3); }
.event-date {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
}
.event-body h3 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.25rem; }
.event-body p { font-size: 0.88rem; color: var(--text-muted); }

/* Videos */
.videos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.video-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--navy) 0%, #2a3f6a 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.video-play {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.9);
    color: var(--navy-deep);
    display: flex; align-items: center; justify-content: center;
}
.video-tag {
    position: absolute; bottom: 12px; left: 12px;
    font-size: 0.7rem; color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.video-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; }
.video-card p { font-size: 0.85rem; color: var(--text-muted); }

/* Schedule */
.schedule-wrap { overflow-x: auto; padding: 0; }
.schedule-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.schedule-table th, .schedule-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--cream-dark);
}
.schedule-table th {
    background: var(--navy);
    color: var(--white);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.schedule-table tbody tr:hover { background: rgba(201, 162, 39, 0.08); }

/* Calculator */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
.calculator-intro p { color: var(--text-muted); margin-bottom: 1.25rem; }
.calc-notes { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.88rem; }
.calc-notes li { display: flex; align-items: center; gap: 0.4rem; }
.calculator-form { padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.calculator-form label span { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.35rem; color: var(--text-muted); }
.calculator-form input, .calculator-form select {
    width: 100%; padding: 0.65rem 0.85rem;
    border: 1px solid var(--cream-dark);
    border-radius: 8px;
    background: var(--cream);
}
.calc-options legend { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.checkbox-label { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.88rem; cursor: pointer; }
.calc-result {
    padding: 1rem;
    background: var(--navy);
    color: var(--white);
    border-radius: 8px;
    text-align: center;
}
.calc-result-value { display: block; font-size: 1.75rem; font-family: var(--font-serif); color: var(--gold-light); margin-top: 0.25rem; }
.calc-disclaimer { font-size: 0.72rem; color: var(--text-muted); }

/* Quiz */
.quiz-card { padding: 2rem; max-width: 720px; margin-inline: auto; }
.quiz-progress {
    position: relative;
    height: 8px;
    background: var(--cream-dark);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}
.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: width 0.3s;
}
.quiz-step-label { font-size: 0.75rem; color: var(--text-muted); display: block; margin-bottom: 1.5rem; }
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-step h3 { font-family: var(--font-serif); font-size: 1.35rem; margin-bottom: 1rem; }
.quiz-options { display: flex; flex-direction: column; gap: 0.65rem; }
.quiz-options label {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--cream-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.quiz-options label:has(input:checked) {
    border-color: var(--gold);
    background: rgba(201, 162, 39, 0.12);
}
.quiz-nav { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.quiz-result-class { font-weight: 600; color: var(--gold); margin: 0.75rem 0 1.25rem; }

/* Booking */
.booking-section {
    padding: 5rem 0;
    background: var(--navy);
    color: var(--white);
}
.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
.booking-info, .booking-form { padding: 2rem; }
.booking-info h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}
.booking-info p { opacity: 0.9; margin-bottom: 1.25rem; }
.booking-perks { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; }
.booking-perks li { display: flex; align-items: center; gap: 0.4rem; }
.booking-form { color: var(--text); }
.booking-form label span { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; margin-bottom: 0.35rem; color: var(--text-muted); }
.booking-form input, .booking-form select {
    width: 100%; padding: 0.65rem 0.85rem;
    border: 1px solid var(--cream-dark);
    border-radius: 8px;
    margin-bottom: 0.85rem;
    background: var(--cream);
}

/* Footer */
.site-footer {
    position: relative;
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.88);
    padding: 3.5rem 0 0;
    overflow: hidden;
}
.footer-deco {
    position: absolute; right: -2rem; top: 1rem;
    opacity: 0.06; color: var(--gold);
    pointer-events: none;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}
.logo-footer {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}
.footer-contacts h4, .footer-social h4 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 0.75rem;
}
.footer-contacts p, .footer-social p { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.4rem; font-size: 0.9rem; }
.footer-contacts a:hover { color: var(--gold-light); }
.social-row { display: flex; gap: 0.65rem; margin-bottom: 1rem; }
.social-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy-deep);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700;
}
.social-btn:hover { background: var(--gold-light); }
.footer-legal { font-size: 0.78rem; opacity: 0.7; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    font-size: 0.8rem;
    text-align: center;
    opacity: 0.7;
}

.toast {
    position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(120%);
    background: var(--navy);
    color: var(--white);
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
    z-index: 200;
    transition: transform 0.3s;
    max-width: 90vw;
    font-size: 0.9rem;
}
.toast.show { transform: translateX(-50%) translateY(0); }

.stub { min-height: 50vh; display: grid; place-content: center; text-align: center; }

@media (max-width: 1024px) {
    .directions-grid, .teachers-grid { grid-template-columns: repeat(2, 1fr); }
    .calculator-grid, .booking-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-inner { grid-template-columns: 1fr auto; }
    .main-nav {
        position: fixed; top: 76px; left: 0; right: 0;
        background: var(--cream);
        padding: 1rem;
        border-bottom: 1px solid rgba(201, 162, 39, 0.3);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s, opacity 0.25s;
    }
    .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .main-nav ul { flex-direction: column; align-items: center; }
    .header-cta { display: none; }
    .menu-toggle { display: flex; }
    .directions-grid, .teachers-grid, .videos-grid { grid-template-columns: 1fr; }
    .event-item { grid-template-columns: 80px 1fr; }
    .schedule-table thead { display: none; }
    .schedule-table tr { display: block; margin-bottom: 1rem; border: 1px solid var(--cream-dark); border-radius: 8px; padding: 0.5rem; }
    .schedule-table td { display: flex; justify-content: space-between; padding: 0.5rem 0.75rem; border: none; }
    .schedule-table td::before { content: attr(data-label); font-weight: 600; color: var(--text-muted); font-size: 0.72rem; text-transform: uppercase; }
    .footer-grid { grid-template-columns: 1fr; }
}
