/* =========================================================
   ABOUT: ПОМЕЩЕНИЯ + КОМАНДА
   Mobile First
========================================================= */

.hc-about {
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    color: #12345b;
}

.hc-about *,
.hc-about *::before,
.hc-about *::after {
    box-sizing: border-box;
}

.hc-about__container {
    position: relative;
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}


/* =========================================================
   ОБЩИЕ ЗАГОЛОВКИ
========================================================= */

.hc-about__heading {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto 30px;
    text-align: center;
}

.hc-about__eyebrow {
    margin-bottom: 8px;
    color: #657b93;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.hc-about__title {
    margin: 0 0 12px;
    color: #12345b;
    font-size: 29px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.6px;
}

.hc-about__title span {
    color: #149ac3;
}

.hc-about__subtitle {
    max-width: 650px;
    margin: 0 auto;
    color: #65758a;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
}


/* =========================================================
   ПОМЕЩЕНИЯ
========================================================= */

.hc-about__spaces {
    position: relative;
    padding: 52px 0 42px;
    background:
        radial-gradient(circle at 4% 10%, rgba(183, 231, 255, .42) 0 55px, transparent 56px),
        #fffdf9;
}


/* =========================================================
   СЛАЙДЕР ПОМЕЩЕНИЙ
========================================================= */

.hc-spaces-slider {
    position: relative;
    width: 100%;
}

.hc-spaces-slider__viewport {
    width: 100%;
    overflow: hidden;
}

.hc-spaces-slider__track {
    display: flex;
    align-items: stretch;
    gap: 16px;
    will-change: transform;
    transition: transform .45s ease;
}

.hc-space-card {
    position: relative;
    flex: 0 0 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(30, 58, 85, .10);
}

.hc-space-card__image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #edf2f5;
}

.hc-space-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hc-space-card__info {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 94px;
    padding: 17px 18px 18px;
    background: #fff;
}

.hc-space-card__info strong {
    color: #102c4c;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

.hc-space-card__info span {
    color: #65758a;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}


/* =========================================================
   СТРЕЛКИ ОБОИХ СЛАЙДЕРОВ
========================================================= */

.hc-slider-arrow {
    position: absolute;
    z-index: 10;
    top: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #12345b;
    font-family: Arial, sans-serif;
    font-size: 31px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(30, 58, 85, .16);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.hc-slider-arrow--prev {
    left: -10px;
}

.hc-slider-arrow--next {
    right: -10px;
}

.hc-slider-arrow:hover {
    background: #fff8f1;
    box-shadow: 0 7px 22px rgba(30, 58, 85, .20);
}

.hc-slider-arrow:active {
    transform: scale(.94);
}

.hc-slider-arrow:disabled {
    opacity: .35;
    cursor: default;
}


/* =========================================================
   ТОЧКИ
========================================================= */

.hc-slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 10px;
    margin-top: 20px;
}

.hc-slider-dot {
    display: block;
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d7dde3;
    cursor: pointer;
    transition:
        width .2s ease,
        background-color .2s ease;
}

.hc-slider-dot.is-active {
    width: 22px;
    border-radius: 20px;
    background: #149ac3;
}


/* =========================================================
   CTA МЕЖДУ БЛОКАМИ
========================================================= */

.hc-about__cta {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.hc-about__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    width: 100%;
    min-height: 58px;
    padding: 14px 20px;
    border-radius: 15px;
    background: #ffc229;
    color: #10233d;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 9px 24px rgba(255, 183, 24, .22);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.hc-about__button:hover {
    background: #ffb916;
    color: #10233d;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(255, 183, 24, .28);
}

.hc-about__button:active {
    transform: translateY(1px);
}

.hc-about__button-arrow {
    flex: 0 0 auto;
    font-size: 22px;
    line-height: 1;
}


/* =========================================================
   КОМАНДА
========================================================= */

.hc-about__team {
    position: relative;
    padding: 50px 0 56px;
    background:
        radial-gradient(circle at 96% 8%, rgba(186, 234, 255, .40) 0 55px, transparent 56px),
        linear-gradient(180deg, #eefbff 0%, #f7fdff 55%, #fff 100%);
}


/* =========================================================
   СЛАЙДЕР КОМАНДЫ
========================================================= */

.hc-team-slider {
    position: relative;
    width: 100%;
}

.hc-team-slider__viewport {
    width: 100%;
    overflow: hidden;
}

.hc-team-slider__track {
    display: flex;
    align-items: stretch;
    gap: 16px;
    will-change: transform;
    transition: transform .45s ease;
}


/* =========================================================
   КАРТОЧКА ПЕДАГОГА
========================================================= */

.hc-team-card {
    position: relative;
    flex: 0 0 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(18, 52, 91, .06);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(30, 58, 85, .09);
}

.hc-team-card__image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f8efe5;
}

.hc-team-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hc-team-card__content {
    position: relative;
    min-height: 128px;
    padding: 18px 18px 20px;
}

.hc-team-card__content strong {
    display: block;
    margin-bottom: 6px;
    color: #102c4c;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

.hc-team-card__content > span {
    display: block;
    color: #65758a;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}


/* =========================================================
   ДИРЕКТОР
========================================================= */

.hc-team-card--director {
    border-color: rgba(255, 111, 125, .45);
    box-shadow:
        0 10px 32px rgba(30, 58, 85, .10),
        0 0 0 2px rgba(255, 126, 139, .10);
}

.hc-team-card--director .hc-team-card__image {
    height: 420px;
}

.hc-team-card--director .hc-team-card__image img {
    object-position: center 18%;
}

.hc-team-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 9px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #ff6f7d;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
}


/* стрелки команды ниже, потому что фото выше */

.hc-team-slider > .hc-slider-arrow {
    top: 195px;
}


/* =========================================================
   768+
========================================================= */

@media (min-width: 768px) {

    .hc-about__container {
        padding-left: 32px;
        padding-right: 32px;
    }

    .hc-about__spaces {
        padding-top: 68px;
        padding-bottom: 52px;
    }

    .hc-about__team {
        padding-top: 62px;
        padding-bottom: 68px;
    }

    .hc-about__heading {
        margin-bottom: 38px;
    }

    .hc-about__eyebrow {
        margin-bottom: 10px;
        font-size: 13px;
    }

    .hc-about__title {
        margin-bottom: 14px;
        font-size: 38px;
        letter-spacing: -.9px;
    }

    .hc-about__subtitle {
        font-size: 16px;
        line-height: 1.55;
    }


    /* ПОМЕЩЕНИЯ: 2 карточки */

    .hc-spaces-slider__track {
        gap: 20px;
    }

    .hc-space-card {
        flex-basis: calc((100% - 20px) / 2);
        border-radius: 24px;
    }

    .hc-space-card__image {
        height: 290px;
    }

    .hc-space-card__info {
        min-height: 102px;
        padding: 18px 20px 20px;
    }

    .hc-space-card__info strong {
        font-size: 18px;
    }

    .hc-space-card__info span {
        font-size: 14px;
    }


    /* стрелки */

    .hc-slider-arrow {
        top: 145px;
        width: 46px;
        height: 46px;
    }

    .hc-slider-arrow--prev {
        left: -16px;
    }

    .hc-slider-arrow--next {
        right: -16px;
    }


    /* CTA */

    .hc-about__cta {
        margin-top: 36px;
    }

    .hc-about__button {
        width: auto;
        min-width: 410px;
        min-height: 60px;
        padding: 15px 30px;
        font-size: 16px;
    }


    /* КОМАНДА: 2 карточки */

    .hc-team-slider__track {
        gap: 20px;
    }

    .hc-team-card {
        flex-basis: calc((100% - 20px) / 2);
    }

    .hc-team-card__image {
        height: 420px;
    }

    .hc-team-card--director .hc-team-card__image {
        height: 440px;
    }

    .hc-team-card__content {
        min-height: 135px;
        padding: 20px;
    }

    .hc-team-card__content strong {
        font-size: 18px;
    }

    .hc-team-card__content > span {
        font-size: 14px;
    }

    .hc-team-slider > .hc-slider-arrow {
        top: 205px;
    }
}


/* =========================================================
   992+
========================================================= */

@media (min-width: 992px) {

    .hc-about__container {
        padding-left: 40px;
        padding-right: 40px;
    }

    .hc-about__spaces {
        padding-top: 74px;
        padding-bottom: 58px;
    }

    .hc-about__team {
        padding-top: 70px;
        padding-bottom: 76px;
    }

    .hc-about__heading {
        max-width: 820px;
        margin-bottom: 42px;
    }

    .hc-about__title {
        font-size: 43px;
    }


    /* ПОМЕЩЕНИЯ: 3 одновременно */

    .hc-spaces-slider__track {
        gap: 22px;
    }

    .hc-space-card {
        flex-basis: calc((100% - 44px) / 3);
    }

    .hc-space-card__image {
        height: 280px;
    }

    .hc-space-card__info {
        min-height: 106px;
    }


    /* КОМАНДА: 3 одновременно */

    .hc-team-slider__track {
        gap: 20px;
    }

    .hc-team-card {
        flex-basis: calc((100% - 40px) / 3);
    }

    .hc-team-card__image {
        height: 390px;
    }

    .hc-team-card--director .hc-team-card__image {
        height: 410px;
    }

    .hc-team-slider > .hc-slider-arrow {
        top: 190px;
    }

    .hc-about__cta {
        margin-top: 40px;
    }
}


/* =========================================================
   1200+
========================================================= */

@media (min-width: 1200px) {

    .hc-about__container {
        padding-left: 48px;
        padding-right: 48px;
    }

    .hc-about__spaces {
        padding-top: 82px;
        padding-bottom: 64px;
    }

    .hc-about__team {
        padding-top: 76px;
        padding-bottom: 84px;
    }

    .hc-about__heading {
        max-width: 900px;
        margin-bottom: 46px;
    }

    .hc-about__eyebrow {
        font-size: 14px;
    }

    .hc-about__title {
        font-size: 48px;
        letter-spacing: -1.1px;
    }

    .hc-about__subtitle {
        max-width: 760px;
        font-size: 17px;
    }


    /* ПОМЕЩЕНИЯ */

    .hc-spaces-slider__track {
        gap: 24px;
    }

    .hc-space-card {
        flex-basis: calc((100% - 48px) / 3);
        border-radius: 26px;
    }

    .hc-space-card__image {
        height: 315px;
    }

    .hc-space-card__info {
        min-height: 112px;
        padding: 20px 22px 22px;
    }

    .hc-space-card__info strong {
        font-size: 19px;
    }

    .hc-space-card__info span {
        font-size: 15px;
    }

    .hc-spaces-slider > .hc-slider-arrow {
        top: 157px;
    }


    /* CTA */

    .hc-about__button {
        min-width: 440px;
        min-height: 64px;
        padding-left: 34px;
        padding-right: 34px;
        font-size: 17px;
        border-radius: 16px;
    }


    /* КОМАНДА: 4 одновременно */

    .hc-team-slider__track {
        gap: 22px;
    }

    .hc-team-card {
        flex-basis: calc((100% - 66px) / 4);
        border-radius: 24px;
    }

    .hc-team-card__image {
        height: 400px;
    }

    .hc-team-card--director .hc-team-card__image {
        height: 425px;
    }

    .hc-team-card__content {
        min-height: 142px;
        padding: 20px 21px 22px;
    }

    .hc-team-card__content strong {
        font-size: 18px;
    }

    .hc-team-card__content > span {
        font-size: 14px;
    }

    .hc-team-slider > .hc-slider-arrow {
        top: 198px;
    }

    .hc-slider-dots {
        margin-top: 24px;
    }
}


/* =========================================================
   1500+
========================================================= */

@media (min-width: 1500px) {

    .hc-about__container {
        padding-left: 32px;
        padding-right: 32px;
    }

    .hc-about__spaces {
        padding-top: 90px;
        padding-bottom: 70px;
    }

    .hc-about__team {
        padding-top: 82px;
        padding-bottom: 92px;
    }

    .hc-about__heading {
        margin-bottom: 50px;
    }

    .hc-about__title {
        font-size: 52px;
    }

    .hc-about__subtitle {
        font-size: 18px;
    }


    /* помещения остаются крупными, по 3 */

    .hc-space-card__image {
        height: 340px;
    }

    .hc-spaces-slider > .hc-slider-arrow {
        top: 170px;
    }


    /* команда: 4 большие карточки */

    .hc-team-slider__track {
        gap: 26px;
    }

    .hc-team-card {
        flex-basis: calc((100% - 78px) / 4);
    }

    .hc-team-card__image {
        height: 430px;
    }

    .hc-team-card--director .hc-team-card__image {
        height: 455px;
    }

    .hc-team-card__content {
        min-height: 148px;
        padding: 22px 23px 24px;
    }

    .hc-team-card__content strong {
        font-size: 19px;
    }

    .hc-team-card__content > span {
        font-size: 15px;
    }

    .hc-team-slider > .hc-slider-arrow {
        top: 212px;
    }
}