/* Основные стили */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--color-white);
    color: var(--color-text);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ========== ХЕДЕР ========== */
.header {
    padding: 24px 0;
    background-color: var(--color-beige);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header__right {
    display: flex;
    align-items: center;
    gap: 50px;
}

.header__link {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-primary);
    transition: color var(--transition);
    white-space: nowrap;
}

.header__link:hover {
    color: #096BB2;
}

/* ========== HERO СЕКЦИЯ ========== */
.hero {
    padding-top: 50px;
    padding-bottom: 50px;
    background-color: var(--color-beige);
    width: 100%;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
    align-items: center;
}

/* Левая часть - контент */
.hero__content {
    display: flex;
    flex-direction: column;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: var(--font-size-h1);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: 32px;
}

.hero__title-line1,
.hero__title-line2 {
    display: inline;
}

.hero__subtitle-line1,
.hero__subtitle-line2 {
    display: inline;
}

.hero__title-large {
    font-family: var(--font-heading);
    font-size: 200px;
    letter-spacing: -1.5%;
}

.hero__title-medium {
    font-family: var(--font-heading);
    font-size: 150px;
    letter-spacing: -1.5%;
}

.hero__title-small {
    font-family: var(--font-heading);
    font-size: 80px;
    letter-spacing: -1.5%;
}

.hero__subtitle {
    font-family: var(--font-heading);
    font-size: 50px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-accent);
    margin-bottom: 52px;
}

.hero__text {
    font-family: var(--font-main);
    font-size: 25px;
    font-weight: 400;
    line-height: 40px;
    color: var(--color-text);
    max-width: 700px;
}

/* Правая часть - картинка */
.hero__image {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.hero__image img {
    width: 750px;
    height: 689px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ========== СЕКЦИЯ АБИТУРИЕНТУ ========== */
.applicant {
    padding-top: 140px;
    padding-bottom: 0;
    background-color: var(--color-white);
}

.applicant__title {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: 50px;
}

.applicant__title-large {
    font-family: var(--font-heading);
    font-size: 130px;
    letter-spacing: -1.5%;
}

.applicant__title-medium {
    font-family: var(--font-heading);
    font-size: 90px;
    letter-spacing: -1.5%;
}

.applicant__grid {
    position: relative;
    display: flex;
    align-items: flex-start;
    min-height: 602px;
    flex-wrap: wrap;
    gap: 30px;
}

.applicant__grid_c1 {
    gap: 30px;
    display: flex;
    flex-wrap: wrap;
}

.card-svg {
    display: block;
    flex-shrink: 0;
}

.card-svg.card-svg-mobile {
    display: none;
}

.card-svg.card-svg-desktop {
    display: block;
}

.card-1 {
    width: 464px;
    height: 290px;
    position: relative;
}

.card-wrapper {
    position: relative;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.card-wrapper .card-svg {
    display: block;
}

.card-text {
    position: absolute;
    top: 60px;
    left: 40px;
    z-index: 2;
}

.card-text--offset {
    left: 200px;
}

.card-text--offset-large {
    left: 213px;
}

.card-text__label {
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 400;
    line-height: 45px;
    color: var(--color-white);
}

.card-text__title {
    font-family: var(--font-main);
    font-size: 30px;
    font-weight: 400;
    line-height: 45px;
    color: var(--color-white);
}

.card-text-mobile {
    display: none;
}

.card-text-desktop {
    display: inline;
}

.card-z .card-text__label,
.card-z .card-text__title,
.card-2 .card-text__label,
.card-2 .card-text__title,
.card-3 .card-text__label,
.card-3 .card-text__title {
    color: var(--color-primary);
}

.card-4 .card-text__label,
.card-4 .card-text__title {
    color: var(--color-white);
}

.card-character {
    position: absolute;
    z-index: 3;
}

.card-character-1 {
    width: 215px;
    height: 323px;
    left: 266px;
    top: 50%;
    transform: translateY(-50%);
}

.card-character-2 {
    width: 210px;
    height: 315px;
    left: 0;
    bottom: 0;
}

.card-character-3 {
    width: 180px;
    height: 315px;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.card-character-4 {
    width: 148px;
    height: 328px;
    left: 273px;
    top: 50%;
    transform: translateY(-50%);
}

.card-character-z {
    width: 305px;
    height: 458px;
    left: 132px;
    bottom: 0;
}

.card-btn {
    position: absolute;
    width: 170px;
    height: 50px;
    border-radius: 0 30px 30px 30px;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-left: 20px;
    padding-right: 5px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    z-index: 4;
    transition: all var(--transition);
}

.card-btn:hover {
    transform: translateX(5px);
}

.card-btn--white:hover {
    background: var(--gradient-pink-red);
    color: var(--color-white);
}

.card-btn--white:hover .card-btn__circle {
    background: var(--color-white);
}

.card-btn--white:hover .card-btn__circle img {
    filter: none;
}

.card-btn--gradient:hover {
    background: var(--color-white);
    color: #2C2D4C;
}

.card-btn--gradient:hover .card-btn__circle {
    background: var(--gradient-pink-red);
}

.card-btn--gradient:hover .card-btn__circle img {
    filter: brightness(0) invert(1);
}

.card-btn--white {
    background-color: var(--color-white);
    color: #2C2D4C;
}

.card-btn--gradient {
    background: var(--gradient-pink-red);
    color: var(--color-white);
}

.card-btn__circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-pink-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-btn__circle--white {
    background: var(--color-white);
}

.card-btn__circle img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    transform: rotate(-90deg);
}

.card-btn__circle--white img {
    filter: none;
}

.card-btn--1 {
    left: 40px;
    bottom: 40px;
}

.card-btn--2 {
    left: 200px;
    bottom: 40px;
}

.card-btn--3 {
    left: 213px;
    bottom: 40px;
}

.card-btn--4 {
    left: 40px;
    bottom: 40px;
}

.card-btn--z {
    right: 20px;
    bottom: 40px;
}

.card-z {
    width: 539px;
    height: 602px;
    position: absolute;
    left: calc(464px + 24px);
    top: 0;
}

svg.card-svg-mobile,
svg.card-z-mobile {
    display: none !important;
}

img.card-svg-desktop,
svg.card-z-desktop {
    display: block !important;
}

.card-btn-z-mobile {
    display: none;
}

.card-btn-z-desktop {
    display: flex;
    flex-direction: row;
}

.card-2 {
    width: 616px;
    height: 290px;
    position: absolute;
    left: calc(464px + 439px);
    top: 0;
}

.card-3 {
    width: 616px;
    height: 290px;
    position: absolute;
    left: 0;
    top: 312px;
}

.card-4 {
    width: 464px;
    height: 290px;
    position: absolute;
    left: calc(464px + 24px + 539px + 28px);
    top: 312px;
}

/* ========== СЕКЦИЯ УЧИТЕЛЮ ========== */
.teacher {
    padding-top: 140px;
    padding-bottom: 0;
    background-color: var(--color-white);
}

.teacher__title {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: 50px;
}

.teacher__title-large {
    font-family: var(--font-heading);
    font-size: 130px;
    letter-spacing: -1.5%;
}

.teacher__title-medium {
    font-family: var(--font-heading);
    font-size: 90px;
    letter-spacing: -1.5%;
}

.teacher__grid {
    display: flex;
    gap: 30px;
}

/* Карточки учителя */
.teacher-card {
    position: relative;
    width: 745px;
    height: 350px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.teacher-card__bg {
    width: 100%;
    height: 100%;
    display: block;
}

svg.teacher-card__bg-mobile {
    display: none !important;
}

img.teacher-card__bg-desktop {
    display: block !important;
}

.teacher-card__text {
    position: absolute;
    z-index: 2;
}

.teacher-card__text--1 {
    top: 60px;
    left: 234px;
}

.teacher-card__text--2 {
    top: 60px;
    left: 50px;
}

.teacher-card__subtitle {
    font-family: var(--font-main);
    font-size: 30px;
    font-weight: 400;
    line-height: 45px;
    color: var(--color-primary);
}

.teacher-card__title {
    font-family: var(--font-heading);
    font-size: 35px;
    font-weight: 700;
    line-height: 45px;
    color: var(--color-primary);
}

/* Белый текст для градиентной карточки */
.teacher-card-2 .teacher-card__subtitle,
.teacher-card-2 .teacher-card__title {
    color: var(--color-white);
}

/* Фотографии учителей */
.teacher-card__photo {
    position: absolute;
    bottom: 0;
    z-index: 3;
}

.teacher-card__photo--1 {
    width: 183px;
    height: 395px;
    left: 32px;
    bottom: 0;
}

.teacher-card__photo--2 {
    width: 194px;
    height: 388px;
    right: 43px;
    bottom: 0;
}

/* Позиция кнопки на карточке 1 */
.teacher-card__btn--1 {
    left: 234px;
    bottom: 80px;
}

/* Ссылки на карточке 2 */

.teacher-card__link {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 400;
    color: var(--color-white);
    text-decoration: underline;
    transition: opacity var(--transition);
    z-index: 4;
}

.teacher-card__link:hover {
    text-decoration: none;
}

/* Первая ссылка: 50px слева, 190px сверху */
.teacher-card__link:nth-of-type(1) {
    left: 50px;
    top: 220px;
}

/* Вторая ссылка: 50px слева, 70px снизу */
.teacher-card__link:nth-of-type(2) {
    left: 50px;
    bottom: 50px;
}

.teacher-card__icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

/* ========== СЕКЦИЯ О НАС ========== */
.about {
    padding-top: 140px;
    padding-bottom: 0;
    background-color: var(--color-white);
}

.about__title {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: 50px;
}

.about__title-large {
    font-family: var(--font-heading);
    font-size: 130px;
    letter-spacing: -1.5%;
}

.about__title-medium {
    font-family: var(--font-heading);
    font-size: 90px;
    letter-spacing: -1.5%;
}

.about__grid {
    display: flex;
    gap: 24px;
}

/* Карточки "О нас" */
.about-card {
    position: relative;
    width: 489px;
    height: 340px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.about-card__bg {
    width: 100%;
    height: 100%;
    display: block;
}

svg.about-card__bg-mobile {
    display: none !important;
}

img.about-card__bg-desktop {
    display: block !important;
}

.about-card__text {
    position: absolute;
    top: 60px;
    left: 40px;
    z-index: 2;
}

.about-card__phone {
    font-family: var(--font-main);
    font-size: 50px;
    font-weight: 400;
    line-height: 45px;
    color: var(--color-primary);
    margin-bottom: 10px;
    cursor: pointer;
    transition: color var(--transition);
    display: inline-block;
}

.about-card__phone:hover {
    color: #096BB2;
}

.about-card__desc {
    font-family: var(--font-main);
    font-size: 25px;
    font-weight: 400;
    line-height: 45px;
    color: var(--color-primary);
    margin-top: 36px;
}

/* Карточка 3: Социальные сети */
.about-card-3 .about-card__heading {
    position: absolute;
    top: 60px;
    left: 40px;
    font-family: var(--font-main);
    font-size: 35px;
    font-weight: 700;
    line-height: 35px;
    color: var(--color-white);
    z-index: 2;
}

.about-card__subheading {
    position: absolute;
    top: 110px;
    left: 40px;
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    color: var(--color-white);
    text-decoration: underline;
    z-index: 2;
}


.about-card__link {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 400;
    color: var(--color-white);
    text-decoration: underline;
    transition: opacity var(--transition);
    z-index: 4;
}

.about-card__link:hover {
    text-decoration: none;
}

/* Первая ссылка: 40px слева, 135px сверху */
.about-card__link--top {
    left: 40px;
    top: 135px;
}

/* Вторая ссылка: 40px слева, 65px снизу */
.about-card__link--bottom {
    left: 40px;
    top: 197px;
}

.about-card__icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.about-card__link-content {
    line-height: 25px;
}

/* ========== ФУТЕР ========== */
.footer {
    background-color: #2C2D4C;
    border-radius: 30px 30px 0 0;
    padding: 50px 0;
    margin-top: 120px;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

/* Левая часть */
.footer__left {
    display: flex;
    flex-direction: column;
}

.footer__address {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
    color: var(--color-white);
    margin-bottom: 24px;
}

.footer__policy {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
    color: var(--color-white);
    text-decoration: underline;
    transition: opacity var(--transition);
}

.footer__policy:hover {
    color: #096BB2;
}

.refakt {
    border-top: 1px solid #EBEAE8;
    text-align: center;
    padding-top: 20px;
    max-width: 94.8125rem;
    margin: 30px auto 0 auto;
    color: #fff;
}

.refakt a{
    color: #fff;
}

.refakt a:hover{
    text-decoration: underline;
}

/* Правая часть */
.footer__right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer__phone {
    font-family: var(--font-main);
    font-size: 30px;
    font-weight: 400;
    line-height: 30px;
    color: var(--color-white);
    margin-bottom: 15px;
    cursor: pointer;
    transition: color var(--transition);
    display: inline-block;
}

.footer__phone:hover {
    color: #096BB2;
}

.footer__social-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.footer__social {
    display: flex;
    gap: 10px;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition);
}

.footer__social-link:hover img {
    filter: brightness(0) saturate(100%) invert(51%) sepia(75%) saturate(1789%) hue-rotate(168deg) brightness(94%) contrast(101%);
}

.footer__social-link img {
    width: 40px;
    height: 40px;
    transition: filter var(--transition);
}

.footer__label {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
    color: var(--color-white);
    cursor: pointer;
    transition: color var(--transition);
}

.footer__label:hover {
    color: #096BB2;
}

/* ========== АДАПТИВ ========== */

@media (max-width: 1600px) {

    .applicant__grid_c3 {
        min-width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
    }

    .card-2, .card-4, .card-z {
        position: relative;
        left: auto;
        top: auto;
    }

}

@media (max-width: 1500px) {

    .hero__subtitle {
        font-size: 40px;
    }

    .teacher__grid, .about__grid {
        flex-wrap: wrap;
        justify-content: center;
    }

}

@media (max-width: 1150px) {

    .header__link {
        display: none;
    }

    /* Абитуриенту */
    .applicant {
        padding-top: 70px;
        overflow-x: hidden;
    }
    
    .applicant__title {
        margin-bottom: 50px;
    }
    
    .applicant__title-large {
        font-size: 90px;
    }
    
    .applicant__title-medium {
        font-size: 60px;
    }
    
    .applicant__grid {
        flex-direction: column;
        align-items: center;
        gap: 70px;
        min-height: auto;
        height: auto;
        overflow: hidden;
    }
    
    .applicant__grid_c1 {
        display: flex;
        width: 100%;
    }

    .card-wrapper {
        width: 100%;
        max-width: 408px;
        height: 290px;
        position: relative;
        margin: 0 auto;
        border-radius: 30px;
    }
    
    .card-1,
    .card-2,
    .card-3,
    .card-4,
    .card-z {
        position: relative;
        left: auto;
        top: auto;
        right: auto;
        bottom: auto;
        width: 100%;
    }
    
    .card-svg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 30px;
    }
    
    .card-svg-desktop,
    .card-z-desktop {
        display: none;
    }
    /*
    svg.card-svg-mobile,*/
    svg.card-z-mobile {
        display: block !important;
    }
    
    img.card-svg-desktop,
    svg.card-z-desktop {
        object-fit: cover;
    }
    
    .card-btn-z-desktop {
        display: none;
    }
    
    .card-text-desktop {
        display: none;
    }
    
    .card-text-mobile {
        display: inline;
    }
    
    .card-btn-z-mobile {
        left: 30px;
        bottom: 40px;
        display: flex;
        position: absolute;
        width: 150px;
        height: 45px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .card-1 { order: 1; margin-bottom: 70px; }
    .card-3 { order: 2; }
    .card-z { order: 3; }
    .card-4 { order: 4; }
    .card-2 { order: 6; }
    
    .card-1 .card-text {
        left: 40px;
        top: 40px;
    }
    
    .card-1 .card-text__label,
    .card-2 .card-text__label,
    .card-3 .card-text__label,
    .card-4 .card-text__label,
    .card-z .card-text__label {
        font-size: 20px;
        line-height: 45px;
    }
    
    .card-1 .card-text__title,
    .card-2 .card-text__title,
    .card-4 .card-text__title,
    .card-z .card-text__title {
        font-size: 30px;
        line-height: 45px;
    }
    
    .card-2 .card-text {
        left: 30px;
        top: 40px;
    }
    
    .card-3 .card-text {
        left: 40%;
        top: 40px;
    }
    
    .card-3 .card-text__title {
        font-size: 30px;
        line-height: 40px;
    }
    
    .card-4 .card-text {
        left: 180px;
        top: 40px;
    }
    
    .card-z .card-text {
        left: 30px;
        top: 40px;
    }
    
    .card-character-1 {
        width: 215px;
        height: 323px;
        left: 209px;
        top: 50%;
        transform: translateY(-50%);
        bottom: auto;
    }
    
    .card-character-3 {
        width: 180px;
        height: 315px;
        left: 8px;
        top: 50%;
        transform: translateY(-50%);
        bottom: auto;
        content: url('../img/content/student/3.png');
    }
    
    .card-character-z {
        width: 205px;
        height: 308px;
        left: 207px;
        top: 50%;
        transform: translateY(-50%);
        bottom: auto;
    }
    
    .card-character-4 {
        width: 148px;
        height: 328px;
        left: 5px;
        top: 50%;
        transform: translateY(-50%);
        bottom: auto;
        content: url('../img/content/student/4.png');
    }
    
    .card-character-2 {
        width: 210px;
        height: 315px;
        left: 214px;
        top: 50%;
        transform: translateY(-50%);
        bottom: auto;
        content: url('../img/content/student/2.png');
    }
    
    .card-btn {
        width: 150px;
        height: 45px;
        font-size: 15px;
        padding-left: 16px;
        flex-direction: row;
    }
    
    .card-btn__circle {
        width: 35px;
        height: 35px;
    }
    
    .card-btn__circle img {
        width: 14px;
        height: 14px;
    }
    
    .card-btn--1 {
        left: 40px;
        bottom: 35px;
    }
    
    .card-btn--2 {
        left: 30px;
        bottom: 40px;
    }
    
    .card-btn--3 {
        left: 185px;
        bottom: 40px;
    }
    
    .card-btn--4 {
        left: 180px;
        bottom: 70px;
    }

    .teacher-card__text--2 {
        max-width: 60%;
    }

    img.teacher-card__bg-desktop {
        object-fit: cover;
        border-radius: 20px;
    }

    .teacher-card__btn--1 {
        right: 10%;
        bottom: 10%;
        left: auto;
    }

}

@media (max-width: 800px) {

    .teacher-card__text--2 {
        top: 5%;
    }

    .footer__inner {
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }
}


@media (max-width: 650px) {

    /* Hero */
    .hero {
        padding-top: 50px;
        padding-bottom: 15px;
    }
    
    .hero__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero__content {
        order: 1;
        width: 100%;
    }
    
    .hero__image {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 0;
    }
    
    .hero__image img {
        width: 100%;
        max-width: 408px;
        height: auto;
    }
    
    .hero__title {
        margin-bottom: 30px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero__title-large {
        font-size: 130px;
    }
    
    .hero__title-medium {
        font-size: 100px;
    }
    
    .hero__title-small {
        font-size: 40px;
    }
    
    .hero__title-line1,
    .hero__title-line2 {
        display: block;
    }
    
    .hero__subtitle {
        font-size: 30px;
        margin-bottom: 40px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero__subtitle-line1,
    .hero__subtitle-line2 {
        display: block;
    }
    
    .hero__text {
        font-size: 18px;
        line-height: 30px;
        margin-bottom: 24px;
        text-align: left;
    }
    
    .scroll-button {
        display: none;
    }

    /* Убираем тени на мобильных */
    .card-wrapper,
    .teacher-card,
    .about-card {
        filter: none;
    }

    .applicant__title-medium {
        font-size: 50px;
    }

    img.teacher-card__bg-desktop {
        object-fit: cover;
    }

    .teacher-card__title {
        max-width: 100%;
    }

    .teacher-card__photo {
        display: none;
    }

    img.teacher-card__bg-desktop {
        border-radius: 0;
    }

    .teacher-card__text--1 {
        top: 10%;
        left: 5%;
        width: 90%;
        text-align: center;
    }

    .teacher-card__text--2 {
        top: 10%;
        left: 5%;
        width: 90%;
        max-width: 100%;
    }

    .teacher-card__link:nth-of-type(1) {
        left: 5%;
        bottom: 20%;
    }

    .teacher-card__link:nth-of-type(2) {
        left: 5%;
        bottom: 10%;
    }

    /* О нас */
    .about {
        padding-top: 70px;
    }
    
    .about__title {
        margin-bottom: 50px;
    }
    
    .about__title-large {
        font-size: 90px;
    }
    
    .about__title-medium {
        font-size: 60px;
    }
    
    .about__grid {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .about-card-1,
    .about-card-2 {
        width: 100%;
        max-width: 408px;
        height: 300px;
        border-radius: 30px;
    }
    
    .about-card-3 {
        width: 100%;
        max-width: 408px;
        height: 300px;
        border-radius: 30px;
    }
    
    .about-card__bg-desktop {
        display: none;
    }

    img.about-card__bg-desktop {
        object-fit: cover;
        border-radius: 30px;
    }
    
    .about-card__text {
        left: 30px;
        top: 40px;
    }
    
    .about-card__phone {
        font-size: 30px;
        line-height: 1.2;
        margin-bottom: 0;
    }
    
    .about-card__desc {
        font-size: 22px;
        line-height: 40px;
        margin-top: 20px;
    }
    
    .about-card-3 .about-card__heading {
        font-size: 26px;
        line-height: 1.4;
        left: 30px;
        top: 40px;
    }
    
    .about-card__link {
        line-height: 40px;
    }
    
    .about-card__link--top {
        left: 5%;
        top: 140px;
    }
    
    .about-card__link--bottom {
        left: 5%;
        top: 210px;
        bottom: auto;
    }

}


@media (max-width: 440px) {
    
    /* Общие настройки */
    body,
    html {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    section {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .container {
        max-width: 440px;
        padding: 0 16px;
    }
    
    /* Header */
    .header {
        padding: 16px 0;
    }
    
    /* Учителю */
    .teacher {
        padding-top: 70px;
    }
    
    .teacher__title {
        margin-bottom: 50px;
    }
    
    .teacher__title-large {
        font-size: 90px;
    }
    
    .teacher__title-medium {
        font-size: 60px;
    }

    .teacher-card-1 .teacher-card__subtitle,
    .teacher-card-2 .teacher-card__subtitle {
        font-size: 30px;
        font-family: var(--font-main);
        font-weight: 400;
        line-height: 40px;
    }
    
    .teacher-card-1 .teacher-card__title,
    .teacher-card-2 .teacher-card__title {
        font-size: 30px;
        font-family: var(--font-heading);
        font-weight: 700;
        line-height: 40px;
    }

    .teacher-card__link {
        font-size: 16px;
    }
    
    /* Футер */
    .footer {
        padding: 30px 16px;
        margin-top: 120px;
        border-radius: 0;
    }
    
    .footer .container {
        padding: 0;
    }
    
    .footer__inner {
        flex-direction: column;
        position: relative;
    }
    
    .footer__left {
        width: 100%;
        order: 2;
        margin-top: 20px;
    }
    
    .footer__right {
        width: 100%;
        order: 1;
        position: relative;
        min-height: 90px;
    }
    
    .footer__phone {
        font-size: 30px;
        margin-bottom: 10px;
        display: inline-block;
    }
    
    .footer__social-wrapper {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        width: 100%;
    }
    
    .footer__social {
        display: flex;
        gap: 10px;
        /*position: absolute;
        right: 0;
        top: 0;*/
    }
    
    .footer__label {
        display:none;
        font-size: 16px;
        width: 100%;
        margin-top: 10px;
        order: 3;
    }
    
    .footer__social-link {
        width: 40px;
        height: 40px;
    }
    
    .footer__social-link img {
        width: 40px;
        height: 40px;
    }
    
    .footer__address {
        font-size: 16px;
        line-height: 30px;
        margin-bottom: 20px;
    }
    
    .footer__policy {
        font-size: 16px;
        line-height: 30px;
    }
    
    .footer__line {
        margin-top: 30px;
    }
}

@media (max-width: 400px) {

    .mobile-menu {
        padding: 100px 30px 20px 20px;
        height: auto;
    }

    .hero__title-medium {
        font-size: 75px;
    }

    .applicant__title-medium {
        font-size: 30px;
    }
    .card-character {
        display: none;
    }
    .card-text {
        left: 5% !important;
        max-width: 90%;
        text-align: center;
        width: 100%;
    }
    .card-btn {
        left: auto!important;
        bottom: 10%!important;
        right: 5%!important;
    }
    img.card-svg-desktop, svg.card-z-desktop {
        display: block!important;
        object-fit: cover;
    }
    svg.card-svg-mobile {
        display: none!important;
    }
}