:root {
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', Arial, sans-serif;
    --dark-950: #05120b;
    --dark-900: #071b11;
    --dark-850: #0b2618;
    --dark-800: #123822;
    --green: #187238;
    --green-2: #245f36;
    --green-soft: #4d8c5a;
    --mint: #a6d4a4;
    --gold: #d6bd82;
    --cream: #f4efe5;
    --white: #ffffff;
    --text: #f5f1e8;
    --muted: rgba(245, 241, 232, .72);
    --surface: rgba(7, 28, 18, .74);
    --surface-strong: rgba(5, 20, 13, .93);
    --border: rgba(166, 212, 164, .24);
    --shadow: 0 24px 80px rgba(0, 0, 0, .32);
}

body[data-theme="light"] {
    --dark-950: #f7f2e9;
    --dark-900: #efe7db;
    --dark-850: #fffaf0;
    --dark-800: #e8dfd0;
    --text: #102216;
    --muted: rgba(16, 34, 22, .72);
    --surface: rgba(255, 252, 244, .78);
    --surface-strong: rgba(255, 249, 236, .96);
    --border: rgba(24, 114, 56, .20);
    --shadow: 0 24px 80px rgba(33, 58, 39, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.solo-spa-ru {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font-body);
    background:
        radial-gradient(circle at 12% 10%, rgba(24, 114, 56, .22), transparent 28rem),
        radial-gradient(circle at 84% 18%, rgba(214, 189, 130, .12), transparent 30rem),
        linear-gradient(135deg, var(--dark-950), var(--dark-900) 55%, #021108);
    overflow-x: hidden;
}
body.solo-spa-ru::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 84px 84px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.05));
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px clamp(18px, 4vw, 62px);
    background: linear-gradient(to bottom, rgba(2, 13, 8, .72), rgba(2, 13, 8, .12));
    backdrop-filter: blur(16px);
    transition: padding .25s ease, background .25s ease, box-shadow .25s ease;
}
body[data-theme="light"] .site-header { background: linear-gradient(to bottom, rgba(247, 242, 233, .88), rgba(247, 242, 233, .30)); }
.site-header.is-scrolled {
    padding-top: 10px;
    padding-bottom: 10px;
    background: rgba(5, 20, 13, .90);
    box-shadow: 0 10px 40px rgba(0,0,0,.18);
}
body[data-theme="light"] .site-header.is-scrolled { background: rgba(255, 249, 236, .92); }
.brand { display: inline-flex; align-items: center; width: 122px; min-height: 58px; }
.brand img, .custom-logo {
    display: block;
    width: 122px;
    max-height: 72px;
    object-fit: contain;
    border-radius: 18px;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,.28));
}

.theme-logo {
    position: relative;
    display: grid;
    place-items: center;
}
.theme-logo .logo-img {
    grid-area: 1 / 1;
}
.theme-logo .logo-img--light {
    display: none;
}
body[data-theme="light"] .theme-logo .logo-img--dark {
    display: none;
}
body[data-theme="light"] .theme-logo .logo-img--light {
    display: block;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.15vw, 30px);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .045em;
}
.main-nav a {
    color: var(--text);
    opacity: .86;
    transition: opacity .2s ease, color .2s ease, transform .2s ease;
}
.main-nav a:hover { opacity: 1; color: var(--mint); transform: translateY(-1px); }
.nav-cta {
    padding: 13px 22px;
    border-radius: 999px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--green), var(--green-soft));
    box-shadow: 0 12px 32px rgba(24, 114, 56, .34);
}
.menu-toggle {
    display: none;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 0;
    color: var(--text);
    cursor: pointer;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 999px; }
.menu-toggle em { margin-left: 8px; font-style: normal; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.floating-actions {
    position: fixed;
    right: clamp(14px, 2.5vw, 32px);
    bottom: clamp(16px, 2.5vw, 30px);
    z-index: 60;
    display: grid;
    gap: 12px;
    justify-items: center;
}
.theme-toggle, .sound-toggle, .whatsapp-float {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(24, 114, 56, .96), rgba(11, 42, 27, .90));
    color: #fff;
    cursor: pointer;
    box-shadow: 0 18px 44px rgba(0,0,0,.30);
    backdrop-filter: blur(14px);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.theme-toggle:hover, .sound-toggle:hover, .whatsapp-float:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 24px 54px rgba(0,0,0,.36); }
.theme-toggle__icon, .sound-toggle__icon { font-size: 23px; line-height: 1; }
.theme-toggle__text, .sound-toggle__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sound-toggle.is-on { background: linear-gradient(145deg, rgba(77, 140, 90, .98), rgba(24, 114, 56, .98)); }
.sound-toggle.is-on .sound-toggle__icon { animation: pulseSound 1.5s ease-in-out infinite; }
.whatsapp-float svg { width: 31px; height: 31px; fill: currentColor; }
@keyframes pulseSound { 0%, 100% { box-shadow: 0 0 0 0 rgba(166, 212, 164, .35); } 50% { box-shadow: 0 0 0 12px rgba(166, 212, 164, 0); } }

#leaf-particles { position: fixed; inset: 0; z-index: 55; pointer-events: none; overflow: hidden; }
.leaf {
    position: absolute;
    top: -12vh;
    width: var(--size, 22px);
    height: calc(var(--size, 22px) * .58);
    border-radius: 100% 0 100% 0;
    background: linear-gradient(135deg, rgba(166, 212, 164, .92), rgba(24, 114, 56, .72) 48%, rgba(6, 54, 28, .90));
    box-shadow: 0 0 22px rgba(166, 212, 164, .18);
    filter: blur(.1px);
    opacity: var(--opacity, .52);
    animation: fallLeaf var(--duration, 9s) linear forwards;
}
.leaf::after { content: ''; position: absolute; left: 12%; top: 48%; width: 78%; height: 1px; background: rgba(255,255,255,.34); transform: rotate(-18deg); transform-origin: left center; }
@keyframes fallLeaf { from { transform: translate3d(0, -12vh, 0) rotate(0deg); } to { transform: translate3d(var(--drift, 90px), 115vh, 0) rotate(var(--spin, 420deg)); } }

.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    place-items: center;
    padding: 150px 24px 95px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    animation: heroZoom 18s ease-in-out infinite alternate;
    filter: saturate(.88) contrast(1.04);
}
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 42%, rgba(24, 114, 56, .12), transparent 34rem),
        linear-gradient(to bottom, rgba(2, 11, 7, .58), rgba(2, 11, 7, .80) 58%, var(--dark-950));
}
body[data-theme="light"] .hero-overlay {
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .16), transparent 28rem),
        linear-gradient(to bottom, rgba(5, 18, 11, .34), rgba(247, 242, 233, .82) 72%, var(--dark-950));
}
.hero-content { position: relative; z-index: 2; width: min(760px, 100%); margin-inline: auto; text-align: center; }
.eyebrow {
    margin: 0 0 16px;
    color: var(--mint);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
}
.hero h1, .section-heading h2, .booking-copy h2, .about-copy h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: .98;
    letter-spacing: .02em;
}
.hero h1 {
    font-size: 40px;
    line-height: 1.14;
    text-shadow: 0 18px 50px rgba(0,0,0,.34);
}
.hero h1::after {
    content: '';
    display: block;
    width: 78px;
    height: 2px;
    margin: 24px auto 0;
    background: linear-gradient(90deg, transparent, var(--mint), transparent);
}
.hero-desc { width: min(680px, 100%); margin: 24px auto 0; color: var(--muted); font-size: clamp(15px, 1.25vw, 17px); line-height: 1.82; }
.hero-actions { margin-top: 30px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--green), var(--green-soft)); box-shadow: 0 18px 42px rgba(24, 114, 56, .30); }
.btn-ghost { color: var(--text); border-color: var(--border); background: rgba(255,255,255,.04); backdrop-filter: blur(12px); }
.btn-card { width: 100%; color: #fff; border-color: rgba(166, 212, 164, .46); background: rgba(24, 114, 56, .24); margin-top: auto; }
.btn-card:hover { background: linear-gradient(135deg, var(--green), var(--green-soft)); border-color: transparent; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; z-index: 2; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.scroll-hint span { width: 1px; height: 38px; background: linear-gradient(to bottom, var(--mint), transparent); }

.section-shell { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.about-section {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(26px, 5vw, 70px);
    align-items: center;
    padding: clamp(78px, 10vw, 126px) 0 54px;
}
.about-media {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 30px 30px 30px 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.about-media img { display: block; width: 100%; aspect-ratio: 1.28 / 1; object-fit: cover; transform: scale(1.01); }
.about-copy {
    padding: clamp(26px, 4vw, 42px);
    border-left: 1px solid rgba(166, 212, 164, .22);
    background: linear-gradient(90deg, rgba(166, 212, 164, .055), transparent 72%);
    border-radius: 30px;
}
.about-copy h2 { font-size: clamp(38px, 5vw, 68px); }
.about-copy p { color: var(--muted); line-height: 1.86; }

.programs-section { padding: clamp(74px, 9vw, 118px) 0 70px; }
.section-heading { width: min(760px, 100%); margin: 0 auto 44px; text-align: center; }
.section-heading h2, .booking-copy h2 { font-size: clamp(42px, 5vw, 70px); }
.section-heading p:not(.eyebrow), .booking-copy p { color: var(--muted); line-height: 1.85; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.program-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid var(--border);
    border-radius: 26px 26px 26px 8px;
    background: linear-gradient(180deg, var(--surface), rgba(4, 17, 11, .82));
    box-shadow: 0 20px 56px rgba(0,0,0,.18);
    backdrop-filter: blur(18px);
    transform: translateY(0);
    transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease, background .32s ease;
}
body[data-theme="light"] .program-card { background: linear-gradient(180deg, var(--surface), rgba(255, 249, 236, .88)); }
.program-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at 50% 0%, rgba(166, 212, 164, .20), transparent 58%);
    transition: opacity .32s ease;
}
.program-card:hover {
    transform: translateY(-9px) scale(1.012);
    border-color: rgba(166, 212, 164, .48);
    box-shadow: 0 32px 78px rgba(0,0,0,.30);
}
.program-card:hover::before { opacity: 1; }
.program-card:hover .program-card__media { transform: scale(1.045); }
.program-card__media {
    position: relative;
    min-height: 214px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: transform .55s ease;
}
.program-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,.70)); }
.program-card__tag {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(2, 16, 9, .62);
    color: #fff;
    font-size: 10px;
    letter-spacing: .10em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}
.program-card__body { position: relative; z-index: 1; padding: 24px; display: flex; flex-direction: column; flex: 1; }
.program-card h3 { margin: 0 0 12px; font-family: var(--font-heading); font-size: 30px; font-weight: 600; line-height: 1.05; }
.program-card p { margin: 0 0 16px; color: var(--muted); line-height: 1.72; font-size: 13.5px; }
.program-card__features {
    margin: 2px 0 18px;
    padding: 14px 14px 14px 16px;
    border: 1px solid rgba(166, 212, 164, .14);
    border-radius: 18px;
    background: rgba(255,255,255,.035);
}
.program-card__features strong { display: block; margin-bottom: 8px; color: var(--mint); font-size: 12px; letter-spacing: .05em; }
.program-card__features ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.program-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding: 13px 0 15px;
    border-top: 1px solid var(--border);
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.why-section { padding: 42px 0 70px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-card {
    min-height: 210px;
    padding: 28px 22px;
    border: 1px solid var(--border);
    border-radius: 28px 28px 10px 28px;
    background: var(--surface);
    box-shadow: 0 18px 52px rgba(0,0,0,.18);
    text-align: center;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.why-card:hover { transform: translateY(-5px); border-color: rgba(214, 189, 130, .42); background: rgba(8, 31, 20, .84); }
body[data-theme="light"] .why-card:hover { background: rgba(255, 249, 236, .94); }
.why-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: 16px; border: 1px solid rgba(214, 189, 130, .42); border-radius: 50%; color: var(--gold); font-size: 25px; }
.why-card h3 { margin: 0 0 10px; color: var(--gold); font-size: 17px; line-height: 1.35; }
.why-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

.booking-section {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: clamp(28px, 5vw, 70px);
    align-items: start;
    padding: 46px 0 clamp(90px, 12vw, 145px);
}
.booking-copy { position: sticky; top: 120px; }
.booking-points { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; color: var(--muted); }
.booking-form {
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--border);
    border-radius: 30px 30px 10px 30px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-full { grid-column: 1 / -1; }
.booking-form label { display: grid; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.booking-form input, .booking-form select, .booking-form textarea {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0 16px;
    color: var(--text);
    background: rgba(255,255,255,.045);
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
body[data-theme="light"] .booking-form input,
body[data-theme="light"] .booking-form select,
body[data-theme="light"] .booking-form textarea { background: rgba(255,255,255,.66); }
.booking-form textarea { min-height: 126px; padding-top: 14px; resize: vertical; }
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus { border-color: rgba(166, 212, 164, .78); box-shadow: 0 0 0 4px rgba(166, 212, 164, .12); }
.booking-form option { color: #0f2417; }
.form-submit { width: 100%; margin-top: 22px; }
.form-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

.site-footer {
    padding: 42px 24px 40px;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,.14);
}
.footer-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}
.footer-logo img, .footer-logo .custom-logo { width: 118px; max-height: 78px; object-fit: contain; display: block; filter: drop-shadow(0 12px 24px rgba(0,0,0,.24)); }
.footer-inner p { margin: 0; }

.reveal-on-scroll { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s ease; transition-delay: var(--delay, 0ms); }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
    .program-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .booking-section, .about-section { grid-template-columns: 1fr; }
    .booking-copy { position: relative; top: auto; }
    .about-copy { border-left: 0; border-top: 1px solid rgba(166, 212, 164, .20); }
}

@media (max-width: 840px) {
    .site-header { padding: 14px 18px; }
    .brand, .brand img, .brand .logo-img, .custom-logo { width: 104px; }
    .menu-toggle { display: inline-flex; }
    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 18px;
        left: 18px;
        display: none;
        padding: 18px;
        border: 1px solid var(--border);
        border-radius: 22px;
        background: var(--surface-strong);
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
    }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 12px; }
    .hero { min-height: 82vh; padding-top: 130px; }
    .program-grid, .form-grid, .why-grid { grid-template-columns: 1fr; }
    .floating-actions { right: 12px; bottom: 12px; gap: 10px; }
    .theme-toggle, .sound-toggle, .whatsapp-float { width: 52px; height: 52px; }
    .theme-toggle__icon, .sound-toggle__icon { font-size: 20px; }
}

@media (max-width: 560px) {
    .hero h1 { font-size: 34px; }
    .section-heading h2, .booking-copy h2, .about-copy h2 { font-size: 36px; }
    .program-card__body, .booking-form, .about-copy, .why-card { padding: 22px; }
    .program-card h3 { font-size: 27px; }
    .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
    .leaf { display: none; }
}
