/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #1c202b;
    background: #fff;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 700; }

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
    height: 72px;
    width: 100%;
    display: flex;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #e8f5f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-wrap {
    display: flex;
    align-items: center;
    padding: 0 16px;
    width: 100%;
}

.logo-link, a.logo { display: flex; align-items: center; text-decoration: none; }
.logo { width: 48px; height: 48px; border-radius: 0; }

.header-content { display: flex; width: 100%; align-items: center; }

.navigation-wrap {
    display: flex;
    align-items: center;
    width: 100%;
}

.navigation { margin: 0 auto; display: flex; gap: 32px; }

.nav-link {
    font-size: 14px;
    color: #1c202b;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active { color: #008a5f; font-weight: 600; }

.nav-item-group {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.nav-demo-btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 11px;
    line-height: 1.2;
    padding: 0 14px;
    height: 36px;
    border-radius: 6px;
    color: #ffffff;
    background: #008a5f;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.2px;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.nav-demo-btn:hover {
    background: #006b4a;
    color: #ffffff;
}

.nav-demo-btn:focus,
.nav-demo-btn:visited,
.nav-demo-btn.active {
    background: #008a5f;
    color: #ffffff;
}

.nav-demo-btn--header {
    height: 46px;
    min-width: 300px;
    padding: 0 18px;
    font-size: 12px;
    line-height: 1.25;
    flex-shrink: 0;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    height: 46px;
    min-width: 200px;
    background: #008a5f;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn:hover { background: #006b4a; }

/* Hamburger */
.hamburger {
    position: relative; width: 24px; height: 2px;
    background: #58606e; border-radius: 4px; cursor: pointer; z-index: 3; transition: 0.3s;
}
.hamburger::before, .hamburger::after {
    content: ""; position: absolute; height: 2px; right: 0;
    background: #58606e; border-radius: 4px; transition: 0.3s;
}
.hamburger::before { top: -7px; width: 24px; }
.hamburger::after  { top:  7px; width: 24px; }
.toggle-menu {
    position: absolute; width: 24px; height: 28px;
    z-index: 4; cursor: pointer; opacity: 0;
}
.hamburger, .toggle-menu { display: none; }
.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3); display: none; z-index: 1;
}
.overlay.open { display: block; }

/* ===== FOUNDER ===== */
.founder {
    padding: 72px 0;
    background: #f5fff9;
}

.founder-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.founder-content-text { max-width: 580px; }

.position {
    color: #657085;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.founder-title {
    font-size: 42px;
    color: #1a2e23;
    line-height: 1.2;
    margin-bottom: 32px;
}

.founder-title-span { color: #008a5f; }

.about-founder {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.about-founder-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.about-founder-text {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.65;
}

.about-founder-text-span { color: #008a5f; font-weight: 600; }

.founder-photo {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
    border: 4px solid #b8e8d4;
}

/* ===== TEAM ===== */
.team {
    padding: 72px 0;
}

.team-content { max-width: 1100px; margin: 0 auto; }

.team-title {
    font-size: 36px;
    color: #1a2e23;
    max-width: 720px;
    margin-bottom: 56px;
}

.teachers {
    display: flex;
    flex-direction: column;
    gap: 56px;
    padding-bottom: 48px;
}

.teacher {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    background: #f5fff9;
    border: 1px solid #e8f5f0;
    border-radius: 20px;
    padding: 32px 36px;
}

.teacher-reverse { flex-direction: row-reverse; }

.teacher-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center center;
    flex-shrink: 0;
    border: 3px solid #b8e8d4;
}

.teacher-photo--daryna,
.teacher-photo--tetiana {
    object-position: center center;
}

.teacher-info { flex: 1; }

.teacher-name {
    font-size: 20px;
    font-weight: 700;
    color: #008a5f;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.experience {
    font-size: 15px;
    color: #4a5568;
    margin-bottom: 12px;
}

.experience-span { color: #008a5f; font-weight: 600; }

.about-teacher {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.65;
    margin-bottom: 16px;
}

.sertificate {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #b8e8d4;
    border-radius: 8px;
    padding: 10px 16px;
}

.sertificate-text {
    color: #008a5f;
    font-size: 14px;
    font-weight: 500;
}

/* Buy button */
.buy-course {
    display: flex;
    justify-content: center;
    margin: 16px auto 0;
}

.btn-wrap { text-align: center; }

.buy-course-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    height: 56px;
    border-radius: 10px;
    border: 2px solid #008a5f;
    background: #f5fff9;
    color: #008a5f;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.buy-course-btn:hover { background: #008a5f; color: #fff; }

/* ===== FOOTER ===== */
.footer {
    background: #f5fff9;
    padding: 40px 0 24px;
    margin-top: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.foot-logo { width: 52px; height: 52px; }

.school-name {
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    color: #008a5f;
}

.school-name-span { color: #5d616b; font-weight: 400; }

.social-media {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-right: 80px;
    margin-top: -40px;
}

.media-img { width: 24px; height: 24px; }

.footer-line {
    border: none;
    border-top: 1px solid rgba(28,32,43,0.15);
    margin: 20px 0 16px;
}

.footer-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-navigation { display: flex; flex-wrap: wrap; gap: 8px 28px; }

.footer-nav-link { font-size: 13px; opacity: 0.7; }
.footer-nav-link:not(:last-of-type) { margin-right: 0; }

.phone-number { font-size: 13px; opacity: 0.7; }

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 960px) {
    .hamburger, .toggle-menu { display: block; }

    .header-content { justify-content: flex-end; align-items: center; }

    .navigation-wrap {
        flex-direction: column;
        width: 280px;
        height: 100%;
        position: fixed;
        right: -280px;
        top: 0;
        gap: 10px;
        padding-top: 70px;
        background: #fff;
        transition: 0.3s;
        z-index: 2;
    }

    .navigation { flex-direction: column; margin: 0 0 0 20px; width: 90%; gap: 0; }
    .nav-link { font-size: 13px; padding: 10px 8px; }
    .nav-link:not(:first-of-type) { border-top: 1px solid #e8f5f0; }
    .nav-link:not(:last-of-type) { margin-right: 0; }

    .nav-item-group {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .nav-demo-btn--header {
        font-size: 12px;
        margin: 8px auto 0;
        width: min(100%, 300px);
        min-width: unset;
        height: 40px;
    }

    .btn { margin: 8px auto 0; width: 220px; height: 40px; font-size: 12px; min-width: unset; }

    .header-content input:checked ~ .navigation-wrap { right: 0; box-shadow: -20px 0 40px rgba(0,0,0,0.2); }
    .header-content input:checked ~ .hamburger { background: transparent; }
    .header-content input:checked ~ .hamburger::before { top: 0; transform: rotate(-45deg); }
    .header-content input:checked ~ .hamburger::after  { top: 0; transform: rotate(45deg); }

    .founder-content { gap: 36px; }
    .founder-photo { width: 280px; height: 280px; }
    .founder-title { font-size: 34px; }
    .teacher { gap: 28px; padding: 24px 28px; }
    .teacher-photo { width: 160px; height: 160px; }
}

/* Phone */
@media (max-width: 680px) {
    .founder { padding: 48px 0; }

    .founder-content {
        flex-direction: column;
        text-align: center;
        gap: 28px;
    }

    .founder-photo { width: 220px; height: 220px; }
    .founder-title { font-size: 28px; margin-bottom: 20px; }
    .about-founder-text { font-size: 15px; }

    .team { padding: 48px 0; }
    .team-title { font-size: 26px; margin-bottom: 32px; }

    .teacher {
        flex-direction: column !important;
        text-align: center;
        padding: 28px 20px;
        gap: 20px;
    }

    .teacher-photo { width: 160px; height: 160px; }
    .teacher-name { font-size: 17px; }
    .experience, .about-teacher { font-size: 14px; }
    .sertificate { justify-content: center; }

    .social-media { margin-right: 0; justify-content: center; margin-top: 0; margin-bottom: 16px; }
    .footer-text { flex-direction: column; gap: 12px; text-align: center; }
    .footer-navigation { justify-content: center; }
    .footer-logo { flex-direction: column; gap: 8px; }
}

/* Small phone */
@media (max-width: 430px) {
    .founder-photo { width: 180px; height: 180px; }
    .founder-title { font-size: 24px; }
    .team-title { font-size: 22px; }
    .teacher-photo { width: 140px; height: 140px; }
    .buy-course-btn { width: 100%; max-width: 280px; font-size: 14px; height: 48px; }
}
