* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #20242b;
    background: #fff;
}

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

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* HEADER */
.header {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid #edf0f4;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #25365d;
    font-size: 18px;
}

.logo-text {
    font-size: 13px;
    font-weight: 600;
}

.nav {
    display: flex;
    align-items: center;
    gap: 29px;
}

.nav a {
    font-size: 9px;
    color: #747b86;
    transition: .2s;
}

.nav a:hover {
    color: #20242b;
}

.header-button {
    background: #20242b;
    color: white;
    font-size: 9px;
    padding: 8px 15px;
    border-radius: 6px;
}

/* HERO */
.hero {
    height: 300px;
    background:
        linear-gradient(
            90deg,
            rgba(246,248,251,.96) 0%,
            rgba(246,248,251,.88) 40%,
            rgba(246,248,251,.15) 100%
        ),
        url("images/hero.jpg");
    background-size: cover;
    background-position: center;
}

.hero-container {
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 520px;
}

.hero-label {
    font-size: 7px;
    color: #a1a7b0;
    letter-spacing: .4px;
    margin-bottom: 12px;
}

.hero-label span {
    margin-left: 13px;
}

.hero h1 {
    font-size: 27px;
    line-height: 1.12;
    letter-spacing: -.8px;
    margin-bottom: 12px;
    font-weight: 700;
}

.hero p {
    color: #8a919b;
    font-size: 9px;
    line-height: 1.55;
    margin-bottom: 17px;
}

.main-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #20242b;
    color: white;
    padding: 11px 15px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 600;
    transition: .2s;
}

.main-button span {
    font-size: 12px;
}

.main-button:hover {
    transform: translateY(-2px);
}

/* SUBJECTS */
.subjects {
    padding-top: 25px;
    padding-bottom: 23px;
}

.section-title {
    margin-bottom: 17px;
}

.section-title h2 {
    font-size: 17px;
    letter-spacing: -.4px;
    margin-bottom: 5px;
}

.section-title p {
    color: #9aa0a8;
    font-size: 8px;
    line-height: 1.45;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.subject-card {
    min-height: 119px;
    border: 1px solid #e7eaf0;
    border-radius: 5px;
    padding: 13px;
    display: flex;
    flex-direction: column;
    background: white;
    transition: .2s;
}

.subject-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30,40,60,.07);
}

.subject-icon {
    width: 21px;
    height: 21px;
    color: #536b9b;
    font-size: 17px;
    margin-bottom: 7px;
}

.subject-card h3 {
    font-size: 9px;
    margin-bottom: 4px;
}

.subject-card p {
    color: #999fa8;
    font-size: 7px;
    line-height: 1.45;
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 9px;
}

.card-bottom strong {
    font-size: 7px;
    font-weight: 600;
    color: #30353c;
}

.card-bottom span {
    color: #777e87;
    font-size: 12px;
}

/* ADVANTAGES */
.advantages {
    padding-bottom: 25px;
}

.advantages-grid {
    background: #f5f7fb;
    border-radius: 5px;
    padding: 15px 17px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
}

.advantage {
    display: flex;
    gap: 9px;
}

.advantage-icon {
    color: #63759c;
    font-size: 15px;
}

.advantage h3 {
    font-size: 7px;
    margin-bottom: 3px;
}

.advantage p {
    color: #9da3ac;
    font-size: 6px;
    line-height: 1.4;
}

/* REVIEWS */
.reviews {
    padding: 55px 0;
}

.reviews h2 {
    font-size: 22px;
}

/* CONTACTS */
.contacts {
    background: #f4f6f9;
    padding: 60px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.small-title {
    color: #9097a0;
    font-size: 8px;
    margin-bottom: 10px;
}

.contacts h2 {
    font-size: 30px;
    line-height: 1.1;
    margin-bottom: 13px;
}

.contacts p {
    color: #8c939c;
    font-size: 10px;
}

#contactForm {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(30,40,60,.06);
}

#contactForm input,
#contactForm textarea {
    width: 100%;
    border: 1px solid #e3e6eb;
    border-radius: 5px;
    padding: 11px;
    margin-bottom: 9px;
    font-size: 9px;
    outline: none;
}

#contactForm textarea {
    height: 80px;
    resize: vertical;
}

#contactForm button {
    width: 100%;
    border: none;
    background: #20242b;
    color: white;
    padding: 11px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 9px;
}

/* FOOTER */
footer {
    background: #20242b;
    color: white;
    padding: 20px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
}

.footer-inner span {
    color: #888f98;
}

/* MOBILE */
@media(max-width: 750px) {
    .nav {
        display: none;
    }

    .header-button {
        margin-left: auto;
    }

    .hero {
        height: auto;
        min-height: 400px;
    }

    .hero-content {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 34px;
    }

    .subjects-grid {
        grid-template-columns: 1fr 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 480px) {
    .subjects-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 31px;
    }
}
