:root {
    --green: #1B7339;
    --green-dark: #0E4D26;
    --green-mid: #2A8F4E;
    --green-light: #E8F5EE;
    --mint: #F4F9F6;
    --white: #ffffff;
    --text: #1A2E24;
    --text-muted: #5A6F62;
    --border: rgba(27, 115, 57, 0.12);
    --star: #E8A317;
    --shadow: 0 8px 32px rgba(14, 77, 38, 0.08);
    --shadow-card: 0 12px 40px rgba(14, 77, 38, 0.12);
    --font-head: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Open Sans', system-ui, sans-serif;
    --container: 1200px;
    --header-h: 78px;
    --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

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

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
    padding: 0.8rem 1.5rem; border-radius: var(--radius);
    font-family: var(--font-head); font-weight: 700; font-size: 0.75rem;
    letter-spacing: 0.04em; text-transform: uppercase;
    border: 2px solid transparent; cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-outline-light {
    background: transparent; color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.45);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); }
.btn-calc {
    background: var(--green-dark); color: var(--white);
    border-color: var(--green-dark); font-size: 0.72rem;
}
.btn-calc:hover { background: #0a3d1e; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.68rem; }
.btn-lg { padding: 0.95rem 1.65rem; font-size: 0.78rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 200;
    background: rgba(244, 249, 246, 0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}
.header-inner {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center;
    gap: 1rem; min-height: var(--header-h);
}
.logo {
    display: inline-flex; align-items: center; gap: 0.6rem;
}
.logo-mark {
    width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
    background: var(--green); color: var(--white);
    display: grid; place-items: center;
}
.logo-mark--light { background: rgba(255, 255, 255, 0.15); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong {
    font-family: var(--font-head); font-size: 0.82rem; font-weight: 800;
    letter-spacing: 0.05em; color: var(--green-dark);
}
.logo-text small {
    font-size: 0.58rem; font-weight: 600; letter-spacing: 0.1em;
    color: var(--text-muted); text-transform: uppercase;
}
.main-nav ul {
    display: flex; justify-content: center; gap: 0.1rem; flex-wrap: wrap;
}
.main-nav a {
    font-family: var(--font-head); font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.02em; color: var(--text-muted);
    padding: 0.35rem 0.45rem; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--green); }
.header-contact { text-align: right; line-height: 1.3; }
.header-phone {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-family: var(--font-head); font-weight: 700; font-size: 0.85rem;
    color: var(--green-dark);
}
.header-phone .icon { color: var(--green); }
.header-phone-note { display: block; font-size: 0.62rem; color: var(--text-muted); }
.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(--green-dark); }

/* Section titles with lines */
.section { padding: 4.5rem 0; }
.section-head-line {
    display: flex; align-items: center; gap: 1.25rem;
    margin-bottom: 2.75rem;
}
.section-head-line::before,
.section-head-line::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}
.section-title {
    font-family: var(--font-head); font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 800; letter-spacing: 0.06em; text-align: center;
    color: var(--green-dark); white-space: nowrap;
}

/* Hero */
.hero {
    position: relative; margin-top: var(--header-h);
    min-height: max(580px, calc(100vh - var(--header-h)));
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-photo {
    width: 100%; height: 100%; object-fit: cover;
    object-position: 55% center;
}
.hero-bg-fade {
    position: absolute; inset: 0;
    background: linear-gradient(
        90deg,
        rgba(244, 249, 246, 0.98) 0%,
        rgba(244, 249, 246, 0.92) 26%,
        rgba(244, 249, 246, 0.65) 42%,
        rgba(244, 249, 246, 0.25) 58%,
        rgba(244, 249, 246, 0.05) 72%,
        transparent 82%
    );
    pointer-events: none;
}
.hero-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
    gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center;
    min-height: max(580px, calc(100vh - var(--header-h)));
    padding: clamp(2rem, 3.5vw, 3rem) 0;
}
.hero-content { max-width: 540px; }
.hero-content h1 {
    font-family: var(--font-head);
    font-size: clamp(1.2rem, 2.4vw, 1.75rem);
    font-weight: 800; line-height: 1.28;
    letter-spacing: 0.02em; text-transform: uppercase;
    color: var(--green-dark); margin-bottom: 1rem;
}
.hero-lead {
    color: var(--text-muted); font-size: 0.92rem;
    max-width: 460px; margin-bottom: 1.25rem; line-height: 1.65;
}
.hero-badges {
    display: flex; flex-direction: column; gap: 0.55rem;
    margin-bottom: 1.5rem;
}
.hero-badges li {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
}
.hero-badges .icon { color: var(--green); }
.hero-cta { margin-top: 0.25rem; }

/* Hero calculator — dark green card */
.hero-calc {
    background: var(--green-dark);
    border-radius: 12px;
    padding: 1.35rem 1.2rem 1.1rem;
    color: var(--white);
    box-shadow: var(--shadow-card);
    align-self: center; justify-self: end;
    width: 100%; max-width: 318px;
}
.hero-calc-title {
    font-family: var(--font-head); font-size: 0.78rem; font-weight: 800;
    letter-spacing: 0.06em; text-align: center;
    margin-bottom: 1rem; color: var(--white);
}
.hero-calc-form { display: flex; flex-direction: column; gap: 0.55rem; }
.hero-calc-form select {
    width: 100%; padding: 0.62rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text); font-size: 0.82rem;
    cursor: pointer;
}
.hero-calc-form select:focus {
    outline: 2px solid var(--green-mid);
    outline-offset: 1px;
}
.calc-result--hero {
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 0.75rem; text-align: center;
}
.calc-result--hero .calc-result-label {
    display: block; font-size: 0.68rem; opacity: 0.85; margin-bottom: 0.2rem;
}
.calc-result--hero .calc-result-value {
    font-family: var(--font-head); font-size: 1.35rem; font-weight: 800;
}
.hero-calc-note {
    display: flex; align-items: center; justify-content: center; gap: 0.35rem;
    font-size: 0.62rem; opacity: 0.75; margin-top: 0.75rem;
    text-align: center;
}

/* Programs */
.programs-section { background: var(--mint); }
.programs-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.program-card {
    background: var(--white); border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1.75rem 1.25rem 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.program-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.program-icon {
    display: grid; place-items: center;
    width: 64px; height: 64px; margin: 0 auto 1rem;
    border-radius: 50%; border: 2px solid var(--green);
    color: var(--green);
}
.program-card h3 {
    font-family: var(--font-head); font-size: 0.72rem; font-weight: 800;
    letter-spacing: 0.04em; color: var(--green);
    margin-bottom: 0.65rem; line-height: 1.35;
}
.program-card p {
    font-size: 0.78rem; color: var(--text-muted);
    margin-bottom: 1rem; line-height: 1.55;
}
.program-link {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-family: var(--font-head); font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.04em; color: var(--green);
    background: none; border: none; cursor: pointer; padding: 0;
}
.program-link:hover { color: var(--green-dark); }

/* Steps flow */
.steps-section { background: var(--white); }
.steps-flow {
    display: flex; align-items: flex-start; justify-content: center;
    gap: 0.5rem; flex-wrap: wrap;
}
.step-card {
    flex: 0 1 220px; text-align: center; padding: 0 0.5rem;
    position: relative;
}
.step-num {
    display: grid; place-items: center;
    width: 36px; height: 36px; margin: 0 auto 0.75rem;
    border-radius: 50%; background: var(--green); color: var(--white);
    font-family: var(--font-head); font-size: 0.85rem; font-weight: 800;
}
.step-icon {
    display: grid; place-items: center;
    width: 48px; height: 48px; margin: 0 auto 0.75rem;
    color: var(--green);
}
.step-card h3 {
    font-family: var(--font-head); font-size: 0.88rem; font-weight: 700;
    margin-bottom: 0.4rem; color: var(--green-dark);
}
.step-card p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.step-arrow {
    flex: 0 0 40px; align-self: center; margin-top: 1rem;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--green) 0, var(--green) 6px,
        transparent 6px, transparent 12px
    );
    opacity: 0.35;
}

/* Reviews */
.reviews-section { background: var(--mint); }
.reviews-slider-wrap {
    display: grid; grid-template-columns: auto 1fr auto;
    gap: 1rem; align-items: center;
}
.reviews-track {
    display: flex; gap: 1.25rem;
    overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; scrollbar-width: none;
    padding: 0.25rem 0;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review-card {
    flex: 0 0 min(100%, 340px);
    scroll-snap-align: start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem 1.35rem;
    text-align: center;
}
.review-photo img {
    width: 72px; height: 72px; border-radius: 50%;
    object-fit: cover; margin: 0 auto 1rem;
}
.review-card blockquote p {
    font-size: 0.85rem; font-style: italic;
    color: var(--text-muted); margin-bottom: 1rem; line-height: 1.6;
}
.review-card footer strong {
    display: block; font-family: var(--font-head);
    font-size: 0.85rem; font-weight: 700; color: var(--green-dark);
}
.review-card footer span {
    display: block; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.65rem;
}
.stars { display: flex; justify-content: center; gap: 2px; }
.reviews-nav {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--white);
    cursor: pointer; display: grid; place-items: center;
    color: var(--green); transition: background 0.2s;
}
.reviews-nav:hover { background: var(--green-light); }
.reviews-dots {
    display: flex; justify-content: center; gap: 0.45rem; margin-top: 1.25rem;
}
.reviews-dots button {
    width: 8px; height: 8px; border-radius: 50%;
    border: none; background: rgba(27, 115, 57, 0.25);
    cursor: pointer; padding: 0;
    transition: width 0.2s, background 0.2s;
}
.reviews-dots button.active { background: var(--green); width: 22px; border-radius: 4px; }
.reviews-more { text-align: center; margin-top: 1.75rem; }

/* CTA banner */
.cta-banner { padding: 0 0 4rem; background: var(--white); }
.cta-banner-inner {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #D4EBE2 0%, #E8F5EE 50%, #F0FAF4 100%);
    border-radius: 16px;
    padding: clamp(2rem, 4vw, 3rem);
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; min-height: 200px;
}
.cta-banner-content { position: relative; z-index: 1; max-width: 520px; }
.cta-banner h2 {
    font-family: var(--font-head); font-size: clamp(1.1rem, 2.5vw, 1.45rem);
    font-weight: 700; color: var(--green-dark);
    margin-bottom: 0.65rem; line-height: 1.35;
}
.cta-banner p {
    font-size: 0.88rem; color: var(--text-muted);
    margin-bottom: 1.25rem; max-width: 440px;
}
.cta-banner-decor {
    position: relative; flex-shrink: 0;
    width: min(220px, 30%); height: 140px;
}
.cta-deco {
    position: absolute; color: var(--green);
    opacity: 0.25;
}
.cta-deco--globe { top: 0; right: 20px; }
.cta-deco--book { bottom: 10px; right: 80px; }
.cta-deco--leaf { top: 30px; right: 0; opacity: 0.2; }

/* Footer */
.site-footer {
    background: var(--green-dark); color: rgba(255, 255, 255, 0.88);
    padding: 3rem 0 0;
}
.footer-grid {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
    gap: 2rem; padding-bottom: 2.5rem;
}
.logo-footer {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-head); font-size: 0.95rem; font-weight: 800;
    color: var(--white); margin-bottom: 0.85rem;
}
.footer-brand p { font-size: 0.82rem; opacity: 0.85; line-height: 1.6; margin-bottom: 1rem; }
.footer-social { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.footer-social a {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
    padding: 0.35rem 0.65rem; border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px; color: rgba(255, 255, 255, 0.85);
}
.footer-social a:hover { background: rgba(255, 255, 255, 0.1); }
.footer-nav h4, .footer-licenses h4, .footer-contacts h4 {
    font-family: var(--font-head); font-size: 0.82rem; font-weight: 700;
    margin-bottom: 0.85rem; color: var(--white);
}
.footer-nav li, .footer-licenses li { margin-bottom: 0.4rem; }
.footer-nav a, .footer-contacts a {
    font-size: 0.78rem; opacity: 0.85;
}
.footer-nav a:hover, .footer-contacts a:hover { opacity: 1; color: var(--white); }
.footer-licenses li { font-size: 0.72rem; opacity: 0.75; line-height: 1.45; }
.footer-licenses .btn { margin-top: 0.85rem; }
.footer-contacts p {
    display: flex; align-items: flex-start; gap: 0.4rem;
    font-size: 0.78rem; margin-bottom: 0.45rem; opacity: 0.85;
}
.footer-contacts .icon { margin-top: 2px; opacity: 0.7; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 1.1rem 0; }
.footer-bottom-inner {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
    font-size: 0.72rem; opacity: 0.7;
}
.footer-legal a:hover { opacity: 1; color: var(--white); }
.footer-legal span { margin: 0 0.35rem; }

/* Modals */
.modal {
    position: fixed; inset: 0; z-index: 500;
    display: grid; place-items: center; padding: 1rem;
}
.modal[hidden] { display: none; }
.modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(14, 77, 38, 0.55);
}
.modal-dialog {
    position: relative; z-index: 1;
    background: var(--white); border-radius: 12px;
    padding: 2rem; width: min(100%, 520px);
    max-height: 90vh; overflow-y: auto;
    box-shadow: var(--shadow-card);
}
.modal-close {
    position: absolute; top: 0.75rem; right: 0.85rem;
    background: none; border: none; font-size: 1.5rem;
    cursor: pointer; color: var(--text-muted); line-height: 1;
}
.modal-dialog h2 {
    font-family: var(--font-head); font-size: 1.2rem;
    color: var(--green-dark); margin-bottom: 0.5rem;
}
.modal-lead { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.enroll-form { display: flex; flex-direction: column; gap: 0.85rem; }
.enroll-form label span {
    display: block; font-size: 0.72rem; font-weight: 700;
    margin-bottom: 0.3rem; color: var(--text-muted);
}
.enroll-form input, .enroll-form select, .enroll-form textarea {
    width: 100%; padding: 0.6rem 0.75rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--mint);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.form-note { font-size: 0.68rem; color: var(--text-muted); }
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item {
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.faq-item summary {
    padding: 0.85rem 1rem; font-weight: 700; font-size: 0.85rem;
    cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 1rem 0.85rem; font-size: 0.82rem; color: var(--text-muted); }

.toast {
    position: fixed; bottom: 1.5rem; left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: var(--green-dark); color: var(--white);
    padding: 0.85rem 1.35rem; border-radius: 999px;
    font-size: 0.85rem; z-index: 600; opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    max-width: min(90vw, 420px); text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-calc { justify-self: stretch; max-width: 400px; margin-inline: auto; }
    .hero-bg-fade {
        background: linear-gradient(
            180deg,
            rgba(244, 249, 246, 0.97) 0%,
            rgba(244, 249, 246, 0.85) 50%,
            rgba(244, 249, 246, 0.35) 100%
        );
    }
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
    .step-arrow { display: none; }
    .steps-flow { gap: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-banner-inner { flex-direction: column; text-align: center; }
    .cta-banner-content { max-width: none; }
    .cta-banner p { margin-inline: auto; }
    .cta-banner-decor { display: none; }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0;
        background: var(--mint); padding: 1rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%); opacity: 0;
        pointer-events: none; transition: 0.25s;
    }
    .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .main-nav ul { flex-direction: column; }
    .menu-toggle { display: flex; }
    .header-contact { display: none; }
    .programs-grid { grid-template-columns: 1fr; }
    .reviews-nav { display: none; }
    .reviews-slider-wrap { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}
