﻿/* =========================================================
   ОСНОВНЫЕ НАСТРОЙКИ
   ========================================================= */

:root {
    --navy: #0b1f3a;
    --navy-light: #16375f;
    --blue: #3d8bfd;
    --blue-light: #eaf4ff;
    --sky: #67c7ff;
    --white: #ffffff;
    --background: #f7faff;
    --background-blue: #eef6ff;
    --text: #17243a;
    --text-light: #64748b;
    --border: #dce7f3;
    --success: #1d9b68;
    --error: #d64545;
    --shadow-small: 0 8px 25px rgba(11, 31, 58, 0.06);
    --shadow-medium: 0 20px 50px rgba(11, 31, 58, 0.10);
    --shadow-large: 0 30px 80px rgba(11, 31, 58, 0.14);
    --radius-small: 12px;
    --radius-medium: 20px;
    --radius-large: 30px;
    --container: 1180px;
    --transition: 0.3s ease;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}


img {
    max-width: 100%;
    display: block;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
input,
textarea,
select {
    font: inherit;
}


button {
    cursor: pointer;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min( calc(100% - 40px), var(--container) );
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(220, 231, 243, 0.7);
}


.header__inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 21px;
    color: var(--navy);
}


.logo__mark {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: var(--white);
    background: linear-gradient( 135deg, var(--navy), var(--blue) );
    box-shadow: 0 8px 20px rgba(61, 139, 253, 0.25);
}


.logo__text {
    letter-spacing: -0.5px;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.navigation {
    display: flex;
    align-items: center;
    gap: 28px;
}


    .navigation a {
        position: relative;
        color: var(--text-light);
        font-size: 14px;
        font-weight: 600;
        transition: color var(--transition);
    }


        .navigation a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -7px;
            width: 0;
            height: 2px;
            border-radius: 10px;
            background: var(--blue);
            transition: width var(--transition);
        }


        .navigation a:hover {
            color: var(--navy);
        }


            .navigation a:hover::after {
                width: 100%;
            }


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 27px;
    border: 0;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient( 135deg, var(--navy), var(--blue) );
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 12px 30px rgba(61, 139, 253, 0.22);
    transition: transform var(--transition), box-shadow var(--transition);
}


    .button:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 35px rgba(61, 139, 253, 0.28);
    }


    .button:active {
        transform: translateY(-1px);
    }


.button--small {
    min-height: 44px;
    padding: 0 20px;
    font-size: 13px;
    border-radius: 11px;
}


.button--outline {
    color: var(--navy);
    background: transparent;
    border: 1px solid var(--border);
    box-shadow: none;
}


    .button--outline:hover {
        background: var(--blue-light);
        border-color: #b9d9ff;
        box-shadow: none;
    }


.button--full {
    width: 100%;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient( circle at 80% 20%, rgba(103, 199, 255, 0.23), transparent 32% ), linear-gradient( 180deg, #f7fbff 0%, #ffffff 100% );
}


    .hero::before {
        content: "";
        position: absolute;
        width: 500px;
        height: 500px;
        border-radius: 50%;
        background: rgba(61, 139, 253, 0.06);
        top: -250px;
        right: -150px;
        pointer-events: none;
    }


.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    align-items: center;
    gap: 80px;
    padding: 90px 0;
}


.hero__content {
    max-width: 670px;
}


.badge {
    display: inline-flex;
    padding: 8px 13px;
    margin-bottom: 22px;
    border-radius: 100px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #d3e8ff;
}


.hero h1 {
    max-width: 700px;
    font-size: clamp(48px, 6vw, 76px);
    line-height: 0.99;
    letter-spacing: -3.5px;
    color: var(--navy);
    margin-bottom: 28px;
}


    .hero h1 span {
        display: block;
        background: linear-gradient( 135deg, var(--blue), var(--sky) );
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }


.hero__description {
    max-width: 620px;
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 17px;
}


.hero__buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
}


.hero__facts {
    display: flex;
    gap: 45px;
    margin-top: 50px;
}


.hero__fact {
    display: flex;
    flex-direction: column;
}


    .hero__fact strong {
        color: var(--navy);
        font-size: 24px;
        line-height: 1;
    }


    .hero__fact span {
        margin-top: 5px;
        color: var(--text-light);
        font-size: 13px;
    }


/* =========================================================
   HERO CARD
   ========================================================= */

.hero__card {
    position: relative;
    min-height: 440px;
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: var(--radius-large);
    color: var(--white);
    background: radial-gradient( circle at 80% 20%, rgba(103, 199, 255, 0.28), transparent 35% ), linear-gradient( 145deg, #0b1f3a, #153e6c );
    box-shadow: var(--shadow-large);
    overflow: hidden;
}


    .hero__card::after {
        content: "";
        position: absolute;
        width: 240px;
        height: 240px;
        right: -80px;
        bottom: -100px;
        border-radius: 50%;
        border: 40px solid rgba(255, 255, 255, 0.05);
    }


.hero-card__top {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}


.hero-card__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sky);
    box-shadow: 0 0 0 5px rgba(103, 199, 255, 0.13);
}


.hero-card__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 45px 0 25px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--sky);
    font-size: 40px;
}


    .hero-card__icon + h2 {
        font-size: 36px;
        line-height: 1.1;
        letter-spacing: -1.5px;
        max-width: 350px;
    }


.hero__card p {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
}


.hero-card__line {
    width: 100%;
    height: 1px;
    margin: 30px 0 20px;
    background: rgba(255, 255, 255, 0.12);
}


.hero-card__bottom {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    padding: 110px 0;
}


    .section:nth-child(even) {
        background: var(--background);
    }


.section-heading {
    max-width: 720px;
    margin-bottom: 55px;
}


.section-heading--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}


.section-label {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}


.section-heading h2 {
    color: var(--navy);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -2px;
    margin-bottom: 18px;
}


.section-heading p {
    color: var(--text-light);
    font-size: 16px;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about__grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: center;
}


.about__photo {
    min-height: 480px;
    border-radius: var(--radius-large);
    background: linear-gradient( 145deg, #dff1ff, #edf7ff );
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}


.about__photo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #82a5c9;
    font-weight: 700;
}


.about__content h3 {
    max-width: 550px;
    color: var(--navy);
    font-size: 35px;
    line-height: 1.15;
    letter-spacing: -1.2px;
    margin-bottom: 25px;
}


.about__content p {
    max-width: 600px;
    margin-bottom: 16px;
    color: var(--text-light);
}


.about__stats {
    display: flex;
    gap: 45px;
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}


    .about__stats div {
        display: flex;
        flex-direction: column;
    }


    .about__stats strong {
        color: var(--navy);
        font-size: 28px;
    }


    .about__stats span {
        color: var(--text-light);
        font-size: 12px;
    }


/* =========================================================
   ADVANTAGES
   ========================================================= */

.advantages {
    background: var(--background) !important;
}


.advantages__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}


.advantage-card {
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}


    .advantage-card:hover {
        transform: translateY(-7px);
        box-shadow: var(--shadow-medium);
        border-color: #bddcff;
    }


.advantage-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 12px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
}


.advantage-card h3 {
    color: var(--navy);
    font-size: 18px;
    margin-bottom: 12px;
}


.advantage-card p {
    color: var(--text-light);
    font-size: 14px;
}


/* =========================================================
   SUBJECTS
   ========================================================= */

.subjects__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}


.subject-card {
    position: relative;
    padding: 42px;
    min-height: 470px;
    border-radius: var(--radius-large);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow-small);
    transition: transform var(--transition), box-shadow var(--transition);
}


    .subject-card:hover {
        transform: translateY(-7px);
        box-shadow: var(--shadow-medium);
    }


.subject-card--math {
    background: radial-gradient( circle at 90% 10%, rgba(61, 139, 253, 0.12), transparent 30% ), var(--white);
}


.subject-card--romanian {
    background: radial-gradient( circle at 90% 10%, rgba(103, 199, 255, 0.16), transparent 30% ), var(--white);
}


.subject-card__number {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #dbe9f7;
    font-size: 48px;
    font-weight: 900;
}


.subject-card__icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    border-radius: 20px;
    background: var(--navy);
    color: var(--white);
    font-size: 30px;
    font-weight: 800;
}


.subject-card h3 {
    color: var(--navy);
    font-size: 31px;
    margin-bottom: 7px;
}


.subject-card > p {
    color: var(--text-light);
    margin-bottom: 24px;
}


.subject-card ul,
.exam-card ul,
.price-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}


.subject-card li,
.exam-card li,
.price-card li {
    position: relative;
    padding-left: 25px;
    color: var(--text-light);
    font-size: 14px;
}


    .subject-card li::before,
    .exam-card li::before,
    .price-card li::before {
        content: "✓";
        position: absolute;
        left: 0;
        color: var(--blue);
        font-weight: 800;
    }


.text-link {
    display: inline-block;
    margin-top: 30px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
    transition: transform var(--transition);
}


    .text-link:hover {
        transform: translateX(4px);
    }


/* =========================================================
   EXAM
   ========================================================= */

.exam {
    background: linear-gradient( 135deg, var(--navy), #153e6c ) !important;
    color: var(--white);
    position: relative;
    overflow: hidden;
}


    .exam::before {
        content: "";
        position: absolute;
        width: 500px;
        height: 500px;
        right: -250px;
        top: -250px;
        border-radius: 50%;
        border: 70px solid rgba(255, 255, 255, 0.035);
    }


    .exam .section-label {
        color: var(--sky);
    }


    .exam .section-heading h2 {
        color: var(--white);
    }


    .exam .section-heading p {
        color: rgba(255, 255, 255, 0.65);
    }


.exam__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}


.exam-card {
    padding: 40px;
    border-radius: var(--radius-large);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(10px);
    transition: transform var(--transition), background var(--transition);
}


    .exam-card:hover {
        transform: translateY(-7px);
        background: rgba(255, 255, 255, 0.10);
    }


.exam-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
}


    .exam-card__top span {
        color: rgba(255, 255, 255, 0.6);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }


    .exam-card__top strong {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        color: var(--navy);
        background: var(--sky);
        font-size: 18px;
    }


.exam-card h3 {
    font-size: 31px;
    margin-bottom: 15px;
}


.exam-card > p {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 25px;
}


.exam-card li {
    color: rgba(255, 255, 255, 0.72);
}


.exam-card .button {
    margin-top: 30px;
    background: var(--white);
    color: var(--navy);
    box-shadow: none;
}


    .exam-card .button:hover {
        background: var(--blue-light);
    }


/* =========================================================
   PRICES
   ========================================================= */

.prices {
    background: var(--background) !important;
}


.prices__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}


.price-card {
    position: relative;
    padding: 42px;
    border-radius: var(--radius-large);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-small);
}


.price-card--featured {
    border: 2px solid var(--blue);
    box-shadow: 0 20px 50px rgba(61, 139, 253, 0.13);
}


.price-card__popular {
    position: absolute;
    top: -14px;
    left: 30px;
    padding: 6px 12px;
    border-radius: 100px;
    background: var(--blue);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
}


.price-card__label {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.price-card h3 {
    margin-top: 10px;
    color: var(--navy);
    font-size: 27px;
}


.price {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin: 25px 0 15px;
}


    .price strong {
        color: var(--navy);
        font-size: 52px;
        line-height: 1;
        letter-spacing: -2px;
    }


    .price span {
        color: var(--text-light);
        font-size: 12px;
    }


.price-card > p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 25px;
}


.price-card .button {
    width: 100%;
    margin-top: 30px;
}


/* =========================================================
   PACKAGES
   ========================================================= */

.packages {
    max-width: 900px;
    margin: 35px auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}


.package {
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--white);
}


    .package > div:first-child {
        display: flex;
        flex-direction: column;
    }


    .package span {
        color: var(--text-light);
        font-size: 12px;
    }


    .package strong {
        color: var(--navy);
        font-size: 15px;
    }


.package__price {
    text-align: right;
}


/* =========================================================
   REVIEWS
   ========================================================= */

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


.review-card {
    padding: 32px;
    border-radius: var(--radius-medium);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-small);
}


.review-card__stars {
    color: var(--blue);
    letter-spacing: 3px;
    font-size: 13px;
    margin-bottom: 22px;
}


.review-card p {
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
}


.review-card strong {
    color: var(--navy);
    font-size: 13px;
}


/* =========================================================
   APPLICATION
   ========================================================= */

.application {
    background: var(--background) !important;
}


.application__wrapper {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 70px;
    padding: 60px;
    border-radius: var(--radius-large);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-medium);
}


.application__content h2 {
    color: var(--navy);
    font-size: 48px;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 20px;
}


.application__content > p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 30px;
}


.application__note {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
    padding: 16px 18px;
    border-radius: 13px;
    background: var(--blue-light);
}


    .application__note strong {
        color: var(--navy);
        font-size: 18px;
    }


    .application__note span {
        color: var(--text-light);
        font-size: 12px;
    }


/* =========================================================
   FORM
   ========================================================= */

.application-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}


.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}


    .form-group label {
        color: var(--navy);
        font-size: 12px;
        font-weight: 700;
    }


    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 14px 15px;
        border: 1px solid var(--border);
        border-radius: 11px;
        outline: none;
        background: #fbfdff;
        color: var(--text);
        font-size: 14px;
        transition: border-color var(--transition), box-shadow var(--transition);
    }


    .form-group textarea {
        resize: vertical;
        min-height: 110px;
    }


        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: #9aa9ba;
        }


        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-color: var(--blue);
            box-shadow: 0 0 0 4px rgba(61, 139, 253, 0.09);
        }


.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 11px;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}


    .radio-option:hover {
        background: var(--blue-light);
        border-color: #bddcff;
    }


    .radio-option input {
        accent-color: var(--blue);
    }


    .radio-option span {
        color: var(--text-light);
        font-size: 13px;
    }


.form-message {
    min-height: 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   CONTACTS
   ========================================================= */

.contacts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}


.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border-radius: var(--radius-medium);
    border: 1px solid var(--border);
    background: var(--white);
    transition: transform var(--transition), box-shadow var(--transition);
}


    .contact-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-small);
    }


.contact-card__icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--blue-light);
    color: var(--blue);
    font-weight: 800;
}


.contact-card span:last-child {
    display: flex;
    flex-direction: column;
}


.contact-card small {
    color: var(--text-light);
    font-size: 11px;
}


.contact-card strong {
    color: var(--navy);
    font-size: 14px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    padding: 50px 0 25px;
    background: #07172b;
    color: rgba(255, 255, 255, 0.7);
}


.footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    padding-bottom: 40px;
}


.logo--footer {
    color: var(--white);
}


.footer__inner p {
    max-width: 280px;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
}


.footer__links {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    flex-wrap: wrap;
}


    .footer__links a {
        color: rgba(255, 255, 255, 0.6);
        font-size: 13px;
        transition: color var(--transition);
    }


        .footer__links a:hover {
            color: var(--white);
        }


.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
}


/* =========================================================
   АДАПТИВНОСТЬ — ПЛАНШЕТ
   ========================================================= */

@media (max-width: 1000px) {

    .navigation {
        gap: 15px;
    }

        .navigation a {
            font-size: 12px;
        }

    .hero__inner {
        gap: 40px;
    }

    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__grid {
        gap: 40px;
    }
}


/* =========================================================
   АДАПТИВНОСТЬ — МОБИЛЬНЫЕ
   ========================================================= */

@media (max-width: 760px) {

    .container {
        width: min( calc(100% - 28px), var(--container) );
    }


    .header__inner {
        min-height: 68px;
    }


    .navigation {
        display: none;
    }


    .header .button {
        display: inline-flex;
    }


    .hero {
        min-height: auto;
    }


    .hero__inner {
        grid-template-columns: 1fr;
        padding: 65px 0;
        gap: 45px;
    }


    .hero h1 {
        font-size: clamp( 44px, 13vw, 62px );
        letter-spacing: -2.5px;
    }


    .hero__description {
        font-size: 15px;
    }


    .hero__buttons {
        flex-direction: column;
        align-items: stretch;
    }


        .hero__buttons .button {
            width: 100%;
        }


    .hero__facts {
        gap: 25px;
        justify-content: space-between;
    }


    .hero__card {
        min-height: 370px;
        padding: 30px;
    }


    .section {
        padding: 75px 0;
    }


    .section-heading {
        margin-bottom: 40px;
    }


        .section-heading h2 {
            font-size: 36px;
            letter-spacing: -1.4px;
        }


    .about__grid {
        grid-template-columns: 1fr;
    }


    .about__photo {
        min-height: 350px;
    }


    .about__photo-placeholder {
        min-height: 350px;
    }


    .about__content h3 {
        font-size: 29px;
    }


    .about__stats {
        gap: 25px;
    }


    .advantages__grid {
        grid-template-columns: 1fr;
    }


    .subjects__grid,
    .exam__grid,
    .prices__grid {
        grid-template-columns: 1fr;
    }


    .subject-card,
    .exam-card,
    .price-card {
        padding: 30px;
    }


    .packages {
        grid-template-columns: 1fr;
    }


    .reviews__grid {
        grid-template-columns: 1fr;
    }


    .application__wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 45px;
    }


    .application__content h2 {
        font-size: 39px;
    }


    .form-row {
        grid-template-columns: 1fr;
    }


    .contacts__grid {
        grid-template-columns: 1fr;
    }


    .footer__inner {
        flex-direction: column;
    }


    .footer__links {
        flex-direction: column;
        gap: 12px;
    }


    .footer__bottom {
        flex-direction: column;
        gap: 8px;
    }
}


/* =========================================================
   МАЛЕНЬКИЕ ТЕЛЕФОНЫ
   ========================================================= */

@media (max-width: 420px) {

    .header .button {
        padding: 0 14px;
        font-size: 11px;
    }


    .logo__text {
        display: none;
    }


    .hero h1 {
        font-size: 44px;
    }


    .hero__card {
        padding: 25px;
    }


    .hero-card__icon {
        margin-top: 35px;
    }


        .hero-card__icon + h2 {
            font-size: 30px;
        }


    .about__stats {
        flex-direction: column;
        gap: 15px;
    }


    .package {
        flex-direction: column;
        align-items: flex-start;
    }


    .package__price {
        text-align: left;
    }
}

/* =====================================================
   INVERSEY — КАРТОЧКА ПРЕПОДАВАТЕЛЯ
   ===================================================== */

.about__photo-placeholder {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    border-radius: 28px;
    background: radial-gradient( circle at top right, rgba(91, 188, 255, 0.25), transparent 45% ), linear-gradient( 145deg, #071a35, #0d2d55 );
    color: #ffffff;
    box-shadow: 0 25px 60px rgba(7, 26, 53, 0.18);
    position: relative;
    overflow: hidden;
}


/* Большая буква */

.about-card__initial {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    backdrop-filter: blur(10px);
}


/* Имя */

.about__photo-placeholder strong {
    display: block;
    margin-bottom: 8px;
    font-size: 30px;
    font-weight: 700;
}


/* Должность */

.about__photo-placeholder small {
    display: block;
    margin-bottom: 24px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}


/* Предметы */

.about-card__subjects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}


    .about-card__subjects span {
        padding: 9px 14px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.15);
        font-size: 13px;
        color: #ffffff;
    }


/* Адаптация для телефона */

@media (max-width: 600px) {

    .about__photo-placeholder {
        min-height: 340px;
        padding: 30px 20px;
        border-radius: 22px;
    }

    .about-card__initial {
        width: 82px;
        height: 82px;
        font-size: 34px;
    }

    .about__photo-placeholder strong {
        font-size: 26px;
    }
}