/* =========================
   QADAM EDU
   DESIGN / STYLE
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5fbff;
    color: #132238;
    line-height: 1.5;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}


/* =========================
   COLORS
========================= */

/*
   Основной голубой:
   #9DDEFF

   Светлый голубой:
   #E8F7FF

   Синий:
   #247FB5

   Тёмно-синий:
   #132238

   Фон:
   #F5FBFF
*/


/* =========================
   HEADER
========================= */

.header {
    padding: 22px 0;
    background: #f5fbff;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.logo strong {
    font: 900 20px/1 Arial, Helvetica, sans-serif;
    letter-spacing: -1px;
}

.logo .logo__mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px 13px 13px 4px;
    background: #9ddeff;
    color: #132238;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 0;
}

.nav {
    display: flex;
    gap: 30px;
    color: #68798a;
    font-size: 14px;
}

.nav a {
    transition: 0.2s ease;
}

.nav a:hover {
    color: #247fb5;
}

.header__button {
    background: #132238;
    color: white;
    padding: 13px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s ease;
}

.header__button:hover {
    background: #247fb5;
    transform: translateY(-2px);
}


/* =========================
   HERO
========================= */

.hero {
    padding: 55px 0 80px;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 60px;
}

.hero__badge {
    display: inline-block;
    background: #e8f7ff;
    color: #247fb5;
    padding: 9px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 22px;
    border: 1px solid #cceeff;
}

.hero h1 {
    font-size: clamp(50px, 7vw, 84px);
    line-height: 0.95;
    letter-spacing: -5px;
    max-width: 700px;
    margin-bottom: 28px;
}

.hero h1 span {
    display: inline;
    background: #9ddeff;
    padding: 0 10px;
    border-radius: 12px;
}

.hero__content > p {
    color: #68798a;
    font-size: 18px;
    max-width: 600px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 22px;
    border-radius: 50px;
    font-weight: 700;
    transition: 0.2s ease;
}

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

.button--dark {
    background: #132238;
    color: white;
}

.button--dark:hover {
    background: #247fb5;
}

.button--light {
    background: white;
    border: 1px solid #d9eaf3;
    color: #132238;
}

.button--light:hover {
    border-color: #9ddeff;
    background: #e8f7ff;
}


/* =========================
   HERO VISUAL
========================= */

.hero__visual {
    position: relative;
    min-height: 510px;
    overflow: hidden;
    border-radius: 42px;
    background: #e4f6ff;
    border: 1px solid #d2edf9;
}

.hero__circle {
    position: absolute;
    width: 370px;
    height: 370px;
    background: #9ddeff;
    border-radius: 50%;
    right: -100px;
    top: -90px;
}


/*
   ЗДЕСЬ МОЖНО ПОСТАВИТЬ СВОЮ ФОТОГРАФИЮ.

   В index.html вместо старого блока
   со student__head / student__body
   можно использовать:

   <img
       src="images/your-photo.jpg"
       class="hero__photo"
       alt="Kadam Edu"
   >
*/

.hero__photo {
    position: absolute;
    z-index: 2;
    width: 72%;
    height: 78%;
    left: 10%;
    bottom: 0;
    object-fit: cover;
    object-position: center;
    border-radius: 40% 40% 0 0;
}


/* Если пока фотографии нет */

.hero__student {
    position: absolute;
    width: 70%;
    height: 72%;
    left: 12%;
    bottom: 0;
    background: #9bb8c7;
    border-radius: 40% 40% 0 0;
}

.student__head {
    position: absolute;
    width: 145px;
    height: 170px;
    background: #d2a27d;
    border-radius: 48%;
    left: 50%;
    top: 75px;
    transform: translateX(-50%);
}

.student__head::before {
    content: "";
    position: absolute;
    width: 165px;
    height: 105px;
    background: #352b26;
    border-radius: 70% 70% 35% 35%;
    left: 50%;
    top: -25px;
    transform: translateX(-50%);
}

.hero__card {
    position: absolute;
    z-index: 4;
    background: white;
    border-radius: 18px;
    padding: 15px 18px;
    box-shadow: 0 15px 40px rgba(19, 34, 56, 0.10);
    font-size: 13px;
    font-weight: 800;
}

.hero__card--top {
    left: 28px;
    top: 30px;
}

.hero__card--bottom {
    right: 25px;
    bottom: 30px;
    width: 190px;
    background: #132238;
    color: white;
    line-height: 1.4;
}


/* =========================
   STATS
========================= */

.stats {
    padding-bottom: 90px;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: white;
    border: 1px solid #dcecf4;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(19, 34, 56, 0.04);
}

.stat {
    padding: 28px;
    border-right: 1px solid #dcecf4;
}

.stat:last-child {
    border-right: none;
}

.stat strong {
    display: block;
    font-size: 34px;
    letter-spacing: -1px;
    color: #132238;
}

.stat span {
    display: block;
    color: #68798a;
    font-size: 13px;
    margin-top: 6px;
}


/* =========================
   GENERAL SECTIONS
========================= */

.section {
    padding: 90px 0;
}

.section__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.section__label {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #247fb5;
}

.section__header h2,
.about h2 {
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1;
    letter-spacing: -3px;
    max-width: 700px;
}

.section__header > p {
    color: #68798a;
    max-width: 380px;
}


/* =========================
   COURSES
========================= */

.courses {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.course {
    min-height: 330px;
    padding: 30px;
    background: white;
    border: 1px solid #dcecf4;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.25s ease;
    box-shadow: 0 8px 30px rgba(19, 34, 56, 0.03);
}

.course:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(36, 127, 181, 0.10);
    border-color: #b9e5f8;
}


/* БЕЛАЯ КАРТОЧКА */

.course--dark {
    background: white;
    color: #132238;
    border-color: #dcecf4;
}

.course--dark p {
    color: #68798a;
}

.course--dark ul {
    color: #5f6e7c;
}

.course--dark .course__number {
    color: #7a8997;
}

.course__number {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    color: #7a8997;
}

.course h3 {
    font-size: 30px;
    letter-spacing: -1px;
    margin: 14px 0 10px;
}

.course p {
    color: #68798a;
    max-width: 520px;
}

.course ul {
    margin-top: 18px;
    padding-left: 20px;
    color: #5f6e7c;
}

.course li {
    margin-bottom: 5px;
}

.course > a {
    font-weight: 800;
    margin-top: 25px;
}

.course > a:hover {
    color: #247fb5;
}

.course--dark > a:hover {
    color: #247fb5;

}


/* =========================
   ABOUT
========================= */

.about {
    padding-top: 30px;
}

.about__box {
    background: #132238;
    color: white;
    border-radius: 40px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.about h2 {
    max-width: 600px;
}

.about p {
    color: #c7d1dc;
    margin-top: 20px;
    max-width: 500px;
}

.principles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.principles > div {
    border-top: 1px solid #35465a;
    padding-top: 18px;
}

.principles strong {
    font-size: 18px;
}

.principles p {
    font-size: 14px;
    margin-top: 10px;
}


/* =========================
   TEACHERS SLIDER
========================= */

.teachers {
    background: #f5fbff;
    overflow: hidden;
}

.teachers-slider {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
}

.teachers-window {
    width: 100%;
    overflow: hidden;
}

.teacher-grid {
    display: flex;
    gap: 18px;
    transition: transform 0.45s ease;
}

.teacher-card {
    flex: 0 0 calc((100% - 36px) / 3);

    background: white;
    border: 1px solid #dcecf4;
    border-radius: 30px;
    padding: 20px;

    display: flex;
    flex-direction: column;
    gap: 18px;

    transition: 0.25s ease;

    min-height: 420px;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(19, 34, 56, 0.08);
}

.teacher-card img {
    width: 100%;
    height: 240px;

    object-fit: cover;
    object-position: center;

    border-radius: 24px;
    background: #e8f7ff;
}

.teacher-info h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

.teacher-info p {
    color: #68798a;
    font-size: 14px;
    margin-top: 7px;
}

.teacher-info .teacher-subject {
    color: #247fb5;
    font-weight: 700;
}


/* =========================
   ARROWS
========================= */

.teachers-arrow {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    border: 1px solid #dcecf4;
    border-radius: 50%;

    background: white;
    color: #132238;

    font-size: 22px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.2s ease;

    z-index: 5;
}

.teachers-arrow:hover {
    background: #247fb5;
    color: white;
    border-color: #247fb5;
}

.teachers-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}


/* =========================
   DOTS
========================= */

.teachers-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.teacher-dot {
    width: 8px;
    height: 8px;

    border: none;
    border-radius: 50%;

    background: #c7dce7;
    cursor: pointer;

    transition: 0.2s ease;
}

.teacher-dot.active {
    width: 24px;
    border-radius: 20px;
    background: #247fb5;
}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    .teacher-card {
        flex: 0 0 calc((100% - 18px) / 2);
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .teachers-slider {
        gap: 8px;
    }

    .teacher-card {
        flex: 0 0 100%;
        min-height: auto;
    }

    .teacher-card img {
        height: 300px;
    }

    .teachers-arrow {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        font-size: 18px;
    }

}

/* =========================
   REVIEWS
========================= */

.reviews {
    background: white;
}

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

.review {
    background: #f8fcff;
    border: 1px solid #dcecf4;
    border-radius: 28px;
    padding: 28px;
    transition: 0.25s ease;
}

.review:hover {
    transform: translateY(-4px);
    border-color: #b9e5f8;
}

.review span {
    display: inline-block;
    background: #e8f7ff;
    color: #247fb5;
    padding: 7px 10px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 12px;
}

.review p {
    color: #68798a;
    margin: 22px 0;
}

.review b {
    font-size: 14px;
}


/* =========================
   TRIAL
========================= */

.trial {
    padding: 100px 0;
}

.trial__inner {
    text-align: center;
    background: #9ddeff;
    border-radius: 40px;
    padding: 70px 30px;
    position: relative;
    overflow: hidden;
}

.trial__inner::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    right: -100px;
    top: -130px;
}

.trial__inner > * {
    position: relative;
    z-index: 2;
}

.trial h2 {
    font-size: clamp(42px, 6vw, 70px);
    line-height: 0.95;
    letter-spacing: -4px;
    max-width: 750px;
    margin: 0 auto;
}

.trial p {
    color: #31566d;
    margin: 20px auto 30px;
    max-width: 500px;
}


/* =========================
   FOOTER
========================= */

.footer {
    padding: 45px 0;
    border-top: 1px solid #dcecf4;
    background: #f5fbff;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer p {
    color: #68798a;
    font-size: 14px;
    margin-top: 10px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 850px) {

    .nav {
        display: none;
    }

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

    .hero__visual {
        min-height: 400px;
    }

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

    .stat:nth-child(2) {
        border-right: none;
    }

    .stat:nth-child(-n + 2) {
        border-bottom: 1px solid #dcecf4;
    }

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

    .section__header {
        display: block;
    }

    .section__header > p {
        margin-top: 20px;
    }

    .about__box {
        grid-template-columns: 1fr;
        padding: 40px 25px;
        gap: 40px;
    }

    .teacher-card {
    flex: 0 0 calc((100% - 36px) / 3);
}

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

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


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 550px) {

    .header {
        padding: 18px 0;
    }

    .header__button {
        padding: 11px 15px;
        font-size: 12px;
    }

    .hero {
        padding-top: 30px;
    }

    .hero h1 {
        font-size: 50px;
        letter-spacing: -3px;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero__visual {
        min-height: 350px;
        border-radius: 30px;
    }

    .hero__circle {
        width: 250px;
        height: 250px;
    }

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

    .stat {
        border-right: none;
        border-bottom: 1px solid #dcecf4;
    }

    .stat:last-child {
        border-bottom: none;
    }

    .section {
        padding: 65px 0;
    }

    .section__header h2,
    .about h2 {
        font-size: 42px;
        letter-spacing: -2px;
    }

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

    .teacher-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .teacher-card img {
        width: 100%;
        height: 280px;
    }

    .trial {
        padding: 60px 0;
    }

    .trial__inner {
        border-radius: 28px;
        padding: 50px 20px;
    }

    .trial h2 {
        font-size: 45px;
        letter-spacing: -2px;
    }
}
