/* font-family: 'Inter', sans-serif; 'Playfair Display', serif */

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #1C202B;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { margin: 0; }

h1, h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Container */
.container {
    width: 100%;
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* Header */
.header {
    background: #f5fff9;
    height: 75px;
    width: 100%;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 3;
}

.header-wrap {
    display: flex;
    align-items: center;
    padding: 0 31px;
    width: 100%;
    box-sizing: border-box;
}

.logo { width: 51px; height: 51px; }
.logo-link { display: flex; }

.header-content {
    display: flex;
    width: 100%;
    align-items: center;
}

.navigation-wrap {
    display: flex;
    width: 100%;
    align-items: center;
}

.navigation { margin: 0 auto; }

.nav-link {
    font-size: 16px;
    color: #1C202B;
    text-decoration: none;
    text-transform: uppercase;
    transition: font-weight 0.2s, color 0.2s;
}

.nav-link:not(:last-of-type) { margin-right: 90px; }

.nav-item-group {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.nav-item-group .nav-link {
    margin-right: 0;
}

.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;
}

.active {
    font-weight: 600;
    color: #008a5f;
}

.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
    width: 305px;
    height: 51px;
    border-radius: 4px;
    border: 1px solid #008a5f;
    color: #ffffff;
    background: #008a5f;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.3s, color 0.3s;
}

/* Hamburger */
.hamburger {
    position: relative;
    width: 25px;
    height: 3px;
    background: #58606e;
    opacity: 0.7;
    border-radius: 10px;
    cursor: pointer;
    z-index: 3;
    transition: 0.3s;
}

.hamburger::before, .hamburger::after {
    content: "";
    position: absolute;
    height: 3px;
    right: 0;
    background: #58606e;
    border-radius: 10px;
    transition: 0.3s;
}
.hamburger::before { top: -8px; width: 25px; }
.hamburger::after { top: 8px; width: 25px; }

.toggle-menu {
    position: absolute;
    width: 25px;
    height: 30px;
    z-index: 4;
    cursor: pointer;
    opacity: 0;
}

.hamburger, .toggle-menu { display: none; }

.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.3);
    display: none;
    z-index: 1;
}
.overlay.open { display: block; }

/* Hero */
.formats-hero {
    background: #008a5f;
    color: #fff;
    padding: 80px 0 70px;
    text-align: center;
}

.formats-title {
    font-size: 64px;
    color: #fff;
    margin-bottom: 16px;
}

.formats-subtitle {
    font-size: 22px;
    opacity: 0.88;
    margin: 0;
}

/* Formats grid */
.formats-section {
    background: #ffffff;
    padding: 80px 0 100px;
}

.formats-grid {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.format-card {
    background: #f5fff9;
    border: 2px solid #d0f0e4;
    border-radius: 20px;
    width: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px 32px 32px;
    box-sizing: border-box;
    transition: box-shadow 0.3s, transform 0.3s;
}

.format-card--alt {
    background: #008a5f;
    border-color: #008a5f;
    color: #fff;
}

.format-card--alt .format-name,
.format-card--alt .format-desc,
.format-card--alt .format-features li,
.format-card--alt .format-price,
.format-card--alt .format-price-note {
    color: #fff;
}

.format-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #008a5f;
    background: #d0f0e4;
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 16px;
}

.format-label--white {
    color: #008a5f;
    background: #ffffff;
}

.format-name {
    font-size: 28px;
    margin-bottom: 14px;
    color: #1C202B;
}

.format-desc {
    font-size: 16px;
    line-height: 165%;
    color: #4a5568;
    margin-bottom: 20px;
}

.format-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.format-features li {
    font-size: 15px;
    color: #1C202B;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,138,95,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
}

.format-card--alt .format-features li {
    border-bottom-color: rgba(255,255,255,0.2);
}

.format-features li::before {
    content: "✓";
    color: #008a5f;
    font-weight: 700;
    flex-shrink: 0;
}

.format-card--alt .format-features li::before {
    color: #ffffff;
}

.format-price {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #008a5f;
    margin: 0 0 6px;
}

.format-price--contact {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #008a5f;
}

.price-num {
    font-size: 36px;
    font-weight: 700;
}

.format-price-note {
    font-size: 14px;
    opacity: 0.8;
    margin: 0 0 16px;
}

.format-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 54px;
    border-radius: 12px;
    background: #008a5f;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    margin-top: 16px;
    box-sizing: border-box;
    transition: background 0.3s, color 0.3s;
}

.format-btn--outline {
    background: #ffffff;
    color: #008a5f;
    border: 2px solid #ffffff;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #f5fff9;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 25px;
    width: 900px;
    max-width: 95%;
    animation: modal-fall 0.4s ease forwards;
}

@keyframes modal-fall {
    from { transform: translateY(-60px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-title {
    font-family: 'Playfair Display', serif;
    color: #1C202B;
    text-align: center;
    font-size: 36px;
    margin-top: 16px;
    margin-bottom: 8px;
}

.course-types {
    display: flex;
    justify-content: space-evenly;
    margin-top: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.course-type {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.type-title {
    font-size: 22px;
    font-weight: 500;
    color: #1C202B;
    margin: 0 0 12px;
}

.type-btn {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    width: 320px;
    height: 64px;
    border-radius: 20px;
    background: #008a5f;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s;
}

.close-wrap {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 4px;
}

.check-close { top: 0; width: 22px; height: 22px; }

.close {
    display: block;
    background: transparent;
}

.close::before {
    width: 26px; top: 0;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

.close::after {
    width: 26px; top: 0;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

/* Footer */
.footer {
    height: 236px;
    background: #f5fff9;
}

.foot-logo { width: 71px; height: 71px; }

.footer-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding-top: 42px;
}

.school-name {
    color: #008a5f;
    text-align: center;
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
    width: 265px;
}

.school-name-span { color: #5D616B; font-size: 22px; font-weight: 400; }

.footer-navigation { margin-left: 139px; }

.social-media {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    margin-right: 140px;
}

.media-img { height: 24px; width: 24px; }

.footer-line {
    width: 1481px;
    max-width: 90%;
    height: 1.3px;
    background: #1C202B80;
    opacity: 0.5;
    margin: 5px auto 14px;
    border: none;
}

.footer-text { display: flex; justify-content: space-between; }

.footer-nav-link { font-size: 14px; opacity: 0.7; }
.footer-nav-link:not(:last-of-type) { margin-right: 48px; }

.phone-number {
    color: #1C202B;
    font-size: 14px;
    opacity: 0.7;
    width: 148px;
    margin-right: 118px;
}

/* Hover states */
@media (hover: hover) {
    .nav-link:hover { font-weight: 600; color: #008a5f; }
    .btn:hover { background: #006b4a; transition: 0.3s; }
    .format-card:hover { box-shadow: 0 8px 32px rgba(0,138,95,0.15); transform: translateY(-4px); }
    .format-btn:hover { background: #006b4a; }
    .format-btn--outline:hover { background: #f0fdf8; }
    .type-btn:hover { background: #006b4a; }
}

/* Responsive */
@media (max-width: 960px) {
    .header { height: 55px; }
    .hamburger, .toggle-menu { display: block; }
    .toggle-menu { top: 10px; }
    .header-content { justify-content: flex-end; align-items: center; }
    .navigation-wrap {
        flex-direction: column;
        width: 300px;
        height: 100%;
        position: fixed;
        right: -300px;
        top: 0;
        gap: 12px;
        padding-top: 72px;
        background: #ffffff;
        transition: 0.3s;
        z-index: 2;
    }
    .navigation { display: flex; flex-direction: column; margin-left: 22px; width: 85%; }
    .nav-link { font-size: 13px; padding: 10px 8px; }
    .nav-link:not(:first-of-type) { border-top: 1px solid #657085cd; }
    .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: 0 auto;
        width: min(100%, 300px);
        min-width: unset;
        height: 42px;
    }

    .btn { font-size: 13px; margin: 0 auto; width: 255px; height: 42px; }
    .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); }
    .header-content input:checked ~ .navigation-wrap { right: 0; box-shadow: -20px 0 40px rgba(0,0,0,0.3); }
    .formats-title { font-size: 42px; }
    .formats-subtitle { font-size: 18px; }
    .format-card { width: 300px; padding: 28px 24px 24px; }
}

@media (max-width: 680px) {
    .container { padding: 0 20px; }
    .formats-hero { padding: 50px 0 44px; }
    .formats-title { font-size: 32px; }
    .formats-subtitle { font-size: 16px; }
    .formats-section { padding: 48px 0 64px; }
    .formats-grid { gap: 20px; }
    .format-card { width: 100%; max-width: 400px; }
    .footer { height: auto; padding: 24px 0 20px; }
    .footer-logo { padding-top: 0; }
    .footer-text { display: none; }
    .social-media { margin-right: 0; justify-content: center; margin-top: 16px; }
}

@media (max-width: 430px) {
    .formats-title { font-size: 26px; }
    .modal-title { font-size: 26px; }
    .type-btn { width: 260px; font-size: 17px; }
}
