:root {
    --site-green: #2E7D32;
    --site-green-dark: #174A2A;
    --site-ink: #17211A;
    --site-muted: #667266;
    --site-line: #DDE5DC;
    --site-bg: #F7F4EC;
    --site-card: #FFFFFF;
    --site-clay: #B8643D;
    --site-sky: #DCEBEA;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--site-ink);
    background:
        linear-gradient(135deg, rgba(220,235,234,.9), transparent 34rem),
        radial-gradient(circle at 85% 12%, rgba(184,100,61,.18), transparent 18rem),
        var(--site-bg);
    font-family: Georgia, 'Times New Roman', serif;
}

body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }

.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 72px;
    padding: 14px clamp(18px, 5vw, 72px);
    display: flex;
    align-items: center;
    gap: 28px;
    background: rgba(247,244,236,.88);
    border-bottom: 1px solid rgba(23,33,26,.08);
    backdrop-filter: blur(14px);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.05rem;
}

.site-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
    box-shadow: 0 4px 14px rgba(23,33,26,.12);
}

.site-nav-links {
    display: flex;
    gap: 20px;
    margin-left: auto;
    color: var(--site-muted);
    font-family: 'Segoe UI', sans-serif;
    font-size: .92rem;
}

.site-nav-links a:hover { color: var(--site-green-dark); }

.site-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--site-green-dark);
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: .9rem;
}

.site-hero {
    min-height: calc(100vh - 72px);
    padding: clamp(40px, 7vw, 96px) clamp(18px, 5vw, 72px) 52px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: center;
}

.hero-copy {
    max-width: 780px;
    animation: rise-in .7s ease both;
}

.eyebrow,
.section-heading span,
.feature-band span,
.contact-section span {
    display: inline-block;
    color: var(--site-clay);
    font-family: 'Segoe UI', sans-serif;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.site-hero h1 {
    margin: 14px 0 18px;
    font-size: clamp(2.6rem, 7vw, 6.8rem);
    line-height: .95;
    letter-spacing: 0;
    max-width: 900px;
}

.hero-text {
    max-width: 630px;
    color: var(--site-muted);
    font-family: 'Segoe UI', sans-serif;
    font-size: clamp(1rem, 2vw, 1.22rem);
    line-height: 1.7;
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-main,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 999px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 800;
}

.btn-main {
    background: var(--site-green);
    color: #fff;
    box-shadow: 0 12px 26px rgba(46,125,50,.22);
}

.btn-main:hover { background: var(--site-green-dark); color: #fff; }

.btn-ghost {
    border: 1px solid var(--site-line);
    background: rgba(255,255,255,.55);
}

.hero-panel {
    min-height: 420px;
    border-radius: 8px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 22px;
    background:
        linear-gradient(160deg, rgba(23,74,42,.92), rgba(46,125,50,.72)),
        var(--site-green);
    color: #fff;
    box-shadow: 0 28px 70px rgba(23,33,26,.22);
    animation: rise-in .9s ease .08s both;
}

.hero-panel img {
    width: min(72%, 320px);
    align-self: center;
    padding: 18px;
    border-radius: 8px;
    background: rgba(255,255,255,.92);
}

.hero-panel strong {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.hero-panel span {
    display: block;
    color: rgba(255,255,255,.78);
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.55;
}

.site-section,
.feature-band,
.contact-section {
    margin: 0 clamp(18px, 5vw, 72px) clamp(28px, 5vw, 72px);
}

.site-section {
    padding: clamp(34px, 6vw, 72px) 0;
}

.site-section.compact { padding-top: 24px; }

.section-heading {
    max-width: 720px;
    margin-bottom: 28px;
}

.section-heading h2,
.feature-band h2,
.contact-section h2 {
    margin: 10px 0 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.service-card {
    min-height: 260px;
    padding: 26px;
    border: 1px solid var(--site-line);
    border-radius: 8px;
    background: rgba(255,255,255,.72);
}

.service-card i {
    font-size: 2rem;
    color: var(--site-green);
}

.service-card h3 {
    margin: 22px 0 10px;
    font-size: 1.45rem;
}

.service-card p,
.feature-band p,
.contact-section p,
.course-list span {
    color: var(--site-muted);
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
}

.feature-band {
    min-height: 330px;
    padding: clamp(28px, 5vw, 60px);
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    border-radius: 8px;
    background:
        linear-gradient(120deg, rgba(220,235,234,.96), rgba(255,255,255,.78)),
        var(--site-sky);
    border: 1px solid var(--site-line);
}

.feature-band div { max-width: 700px; }

.course-list {
    display: grid;
    gap: 10px;
}

.course-list div {
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    gap: 22px;
    border-bottom: 1px solid var(--site-line);
}

.course-list strong {
    font-size: 1.18rem;
}

.contact-section {
    padding: clamp(30px, 5vw, 58px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    background: var(--site-green-dark);
    color: #fff;
    border-radius: 8px;
}

.contact-section p { color: rgba(255,255,255,.72); }

.contact-actions {
    display: grid;
    gap: 10px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 800;
}

.contact-actions a {
    min-width: 190px;
    padding: 13px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
}

.contact-actions i { margin-right: 8px; }

.site-footer {
    padding: 26px clamp(18px, 5vw, 72px);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--site-muted);
    font-family: 'Segoe UI', sans-serif;
    border-top: 1px solid var(--site-line);
}

.login-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.login-modal.is-open {
    display: flex;
}

.login-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23,33,26,.55);
    backdrop-filter: blur(8px);
}

.login-dialog {
    position: relative;
    width: min(100%, 440px);
    padding: 28px;
    border-radius: 8px;
    background: #fff;
    color: var(--site-ink);
    box-shadow: 0 28px 80px rgba(23,33,26,.32);
    animation: modal-in .18s ease both;
}

.login-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #EEF3ED;
    color: var(--site-ink);
}

.login-dialog-head {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    padding-right: 34px;
}

.login-dialog-head img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--site-line);
    padding: 5px;
    flex: 0 0 64px;
}

.login-dialog-head h2 {
    margin: 0;
    font-size: 1.65rem;
    line-height: 1;
}

.login-dialog-head p {
    margin: 7px 0 0;
    color: var(--site-muted);
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.45;
}

.login-form {
    display: grid;
    gap: 14px;
    font-family: 'Segoe UI', sans-serif;
}

.login-form label {
    display: grid;
    gap: 7px;
    color: var(--site-muted);
    font-size: .88rem;
    font-weight: 700;
}

.login-form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--site-line);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--site-ink);
    font: inherit;
}

.login-form input:focus {
    outline: 3px solid rgba(46,125,50,.16);
    border-color: var(--site-green);
}

.login-form button {
    min-height: 48px;
    margin-top: 4px;
    border: 0;
    border-radius: 999px;
    background: var(--site-green);
    color: #fff;
    font-weight: 800;
}

.login-form button:hover {
    background: var(--site-green-dark);
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 900px) {
    .site-nav {
        flex-wrap: wrap;
        gap: 12px;
    }
    .site-nav-links {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }
    .site-login span {
        display: none;
    }
    .site-hero {
        min-height: auto;
        grid-template-columns: 1fr;
    }
    .hero-panel {
        min-height: 300px;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .feature-band,
    .contact-section,
    .course-list div,
    .site-footer {
        display: block;
    }
    .feature-band .btn-main,
    .contact-actions {
        margin-top: 22px;
    }
    .contact-actions a {
        display: block;
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .site-brand span {
        font-size: .95rem;
    }
    .site-hero h1 {
        font-size: 2.55rem;
    }
    .hero-actions a,
    .btn-main,
    .btn-ghost {
        width: 100%;
    }
    .hero-panel {
        padding: 22px;
    }
    .login-modal {
        align-items: end;
        padding: 10px;
    }
    .login-dialog {
        padding: 24px 18px 20px;
    }
    .login-dialog-head {
        align-items: flex-start;
    }
    .login-dialog-head img {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }
}
