.studio__content {
    padding: 120px 0 90px;
}

.studio__content .container {
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: space-between;
}

.studio__content--text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 57%;
}

.studio__content--text h1 {
    font-family: var(--third-family);
    font-size: 64px;
    font-weight: 400;
    line-height: 120%;
    color: var(--text-color);
    gap: 2px;
    max-width: 650px;
}

.studio__content--text p {
    font-family: var(--font-family);
    font-size: 26px;
    line-height: 120%;
    color: var(--primary-color);
    max-width: 669px;
}

.studio__content--btn {
    align-self: flex-start;
}

.studio__content--images {
    position: relative;
    flex: 0 1 485px;
    aspect-ratio: 485 / 470;
    max-width: 485px;
    width: 100%;
}

.studio__content--image {
    display: block;
    height: auto;
    box-shadow: 2px 4px 8px 0 rgba(42, 0, 74, 0.25);
}

.studio__content--image.top {
    width: 59%;
}

.studio__content--image.bottom {
    position: absolute;
    top: 28.9%;
    left: 38.1%;
    rotate: 7deg;
    width: 59%;
}

.truth {
    padding: 90px 0;
}

.truth .container {
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

.truth .container svg {
    height: auto;
}

.truth__text {
    font-family: var(--font3);
    font-weight: 400;
    font-size: 48px;
    line-height: 120%;
    text-align: right;
    color: var(--text-color);
    max-width: 945px;
}

.truth__text span {
    color: var(--secondary-color);
    position: relative;
}

.place {
    padding: 90px 0;
}

.place__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 110px;
}

.place__title {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 48px;
    line-height: 120%;
    text-align: center;
    color: var(--text-color);
    position: relative;
}

.place__text {
    max-width: 920px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    text-align: center;
    color: var(--text-color);
}

.place__images {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 42px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    aspect-ratio: 1200 / 526;
}

.place__image {
    overflow: visible;
    aspect-ratio: 456 / 555;
    width: 33%;
}

.place__image:first-child {
    rotate: -7deg;
    position: absolute;
    top: -13%;
    left: 0;
}

.place__image:last-child {
    rotate: 7deg;
    position: absolute;
    top: -7%;
    right: 0;
}

.place .video__button {
    rotate: 0deg;
    left: auto;
    right: 40px;
    bottom: -40px;
    transform: translateX(100%);
}

.place .video__button-text {
    padding-top: 0;
}

.place .video__button-text svg {
    transform: scaleX(-1);
    left: -25px;
    bottom: -35px;
}

.mmfs {
    padding: 210px 0 270px 0;
}

.mmfs .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mmfs__text {
    font-family: var(--font3);
    font-weight: 400;
    font-size: 48px;
    line-height: 120%;
    text-align: center;
    color: var(--text-color);
}

.mmfs .container svg {
    position: absolute;
    right: -8%;
    top: 70%;
    transform: translateY(-50%);
    z-index: -1;
    height: auto;
}

.contact {
    padding: 90px 0 180px 0;
}

.contact .container {
    flex-direction: row;
    gap: 40px;
}

.contact .container>svg {
    position: absolute;
    right: -8%;
    top: 50%;
    transform: translateY(-50%);
    z-index: -1;
    height: auto;
}

.contact__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.contact__title {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 48px;
    line-height: 120%;
    color: var(--text-color);
    position: relative;
}

.contact__subtitle {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 32px;
    line-height: 120%;
    color: var(--primary-color);
}

.contact__address {
    margin-top: -10px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    color: var(--text-color);
}

.contact__content a {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    color: var(--text-color);
    text-decoration: none;
}

.contact__map {
    position: relative;
    width: 70%;
}

.contact__map iframe {
    max-width: 100%;
}

.contact__text {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    color: var(--text-color);
}

.contact .video__button {
    rotate: 0deg;
    left: auto;
    right: 40px;
    bottom: -40px;
    transform: translateX(100%);
}

.contact .video__button-text {
    padding-top: 0;
}

.contact .video__button-text svg {
    transform: scaleX(-1);
    left: -25px;
    bottom: -35px;
}

.price {
    padding: 90px 0 130px 0;
}

.price .container {
    align-items: center;
}

.price__wrap {
    max-width: 760px;
    margin: 0 auto;
}

.price__title {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 48px;
    line-height: 120%;
    color: var(--text-color);
    position: relative;
    margin-bottom: 30px;
}

.price__card {
    width: 100%;
    max-width: 846px;
    position: relative;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
}

.table__image {
    position: absolute;
    width: 23%;
    aspect-ratio: 191 / 232;
}

.table__image:nth-child(2) {
    top: -57px;
    left: -177px;
    z-index: 2;
}

.table__image:nth-child(3) {
    top: -13%;
    left: -51px;
    rotate: 7deg;
    z-index: 1;
}

.table__image:nth-child(4) {
    bottom: -124px;
    right: -40px;
    rotate: -7deg;
}

.table__image:nth-child(5) {
    bottom: -150px;
    right: -177px;
}

.price-table th,
.price-table td {
    border: 1px solid var(--primary-color);
    padding: 23px;
    text-align: center;
    font-family: var(--font-family);
    font-size: 18px;
    line-height: 120%;
    color: var(--text-color);
}

.price-table tr td:last-child {
    width: 50%;
}

.price-table__head {
    font-size: 26px !important;
    font-weight: 400 !important;
    color: var(--primary-color) !important;
}

.price-table td:nth-child(2) {
    white-space: nowrap;
}

.price-table__cell {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    line-height: 1.2;
}

.price-table__cell span {
    font-size: 18px;
}

.price-table__big {
    font-weight: 400 !important;
    font-size: 26px !important;
    line-height: 120%;
    color: var(--primary-color) !important;
}

.price__note {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    text-align: center;
    color: var(--text-color);
    margin-top: 10px;
}

/* Стили для первого попапа (список форматов) */
.formats-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.formats-popup.active {
    opacity: 1;
    visibility: visible;
}

.formats-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 0, 74, 0.3);
    cursor: pointer;
}

.formats-popup__content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: var(--background-color);
    padding: 40px;
    z-index: 10000;
    animation: popupSlideIn 0.4s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
}

.formats-popup__title {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 64px;
    line-height: 120%;
    color: var(--text-color);
    position: relative;
    margin-bottom: 20px;
}

.formats-popup__title.titleBG::before {
    top: 45px;
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.formats-popup__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    z-index: 10001;
}

.formats-popup__close:hover {
    transform: scale(1.1);
}

.formats-popup__close svg path {
    stroke: var(--primary-color);
}

.formats-popup__list {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
}

.format-button {
    width: 100%;
    align-self: flex-start;
    border: 1px solid var(--primary-color);
    padding: 18px 24px;
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    text-align: center;
    color: var(--primary-color);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.format-button:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.formats-popup__empty {
    text-align: center;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 18px;
    padding: 40px 20px;
}

/* Стили для второго попапа (детальная информация) */
.format-detail-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.format-detail-popup.active {
    opacity: 1;
    visibility: visible;
}

.format-detail-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: rgba(42, 0, 74, 0.3);
}

.format-detail-popup__content {
    position: relative;
    width: 90%;
    max-width: 840px;
    max-height: 85vh;
    background: var(--background-color);
    padding: 50px 40px 40px;
    z-index: 11000;
    animation: popupSlideIn 0.4s ease;
    overflow-y: auto;
    border-radius: 8px;
}

.format-detail-popup__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    z-index: 11001;
}

.format-detail-popup__close:hover {
    transform: scale(1.1);
}

.format-detail-popup__close svg path {
    stroke: var(--primary-color);
}

.format-detail-popup__text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.format-detail-popup__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.format-detail-popup__body p,
.format-detail-popup__body ul,
.format-detail-popup__body ol {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    color: var(--text-color);
}

.format-detail-popup__body ul,
.format-detail-popup__body ol {
    padding-left: 30px;
}

.format-detail-popup__body ul li::marker,
.format-detail-popup__body ol li::marker {
    list-style-type: circle !important;
    font-size: 13px;
}

.format-detail-popup__title {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 64px;
    line-height: 120%;
    color: var(--text-color);
    position: relative;
}

.format-detail-popup__title.titleBG::before {
    top: 40px;
}

.class {
    padding: 90px 0;
}

.class .container {
    align-items: center;
    gap: 20px;
}

.class__title {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 48px;
    line-height: 120%;
    text-align: center;
    color: var(--text-color);
    position: relative;
}

.class__text {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    text-align: center;
    color: var(--text-color);
    max-width: 926px;
    margin-bottom: 25px;
}

.class__cards {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 1200 / 1000;
}

.class__card {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    cursor: pointer;
    z-index: 1;
    transition: transform 0.2s linear;
}

.class__card:hover {
    z-index: 2;
    transform: scale(1.03);
}

.class__card-title {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 40px;
    line-height: 120%;
    text-align: center;
    color: var(--white);
}

.class__card:nth-child(1) {
    width: 38%;
    aspect-ratio: 456 / 555;
    left: -3%;
    top: 0;
    transform: rotate(-7deg);
}

.class__card:nth-child(2) {
    width: 34%;
    aspect-ratio: 398 / 484;
    left: 50%;
    top: 5%;
    transform: translateX(-50%);
}

.class__card:nth-child(3) {
    width: 34%;
    aspect-ratio: 398 / 484;
    right: -2%;
    top: 0;
    transform: rotate(7deg);
}

.class__card:nth-child(4) {
    width: 34%;
    aspect-ratio: 398 / 484;
    rotate: -7deg;
    left: -3%;
    bottom: 0;
}

.class__card:nth-child(5) {
    width: 34%;
    aspect-ratio: 398 / 484;
    bottom: 0;
    left: 49%;
    transform: translateX(-50%);
}

.class__card:nth-child(6) {
    width: 38%;
    aspect-ratio: 455 / 555;
    rotate: 7deg;
    bottom: -4%;
    right: -3%;
}

.class-detail__photos {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 760 / 400;
}

.class-detail__photo {
    position: absolute;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 2px 5px 9px 0 rgba(42, 0, 74, 0.25);
    margin-bottom: 58px;
}

.class-detail__photo:nth-child(2) {
    width: 33%;
    aspect-ratio: 398 / 484;
    left: 50%;
    top: 16%;
    transform: translateX(-50%);
    z-index: 2;
}

.class-detail__photo:nth-child(1) {
    width: 38%;
    aspect-ratio: 456 / 555;
    left: 0;
    top: 6%;
    transform: rotate(-7deg);
}

.class-detail__photo:nth-child(3) {
    width: 33%;
    aspect-ratio: 398 / 484;
    right: 0;
    top: 8%;
    transform: rotate(7deg);
    z-index: 3;
}

.reviews {
    padding: 90px 0;
}

.reviews .container {
    align-items: center;
    gap: 20px;
}

.reviews__title {
    text-align: center;
}

.reviews__title h2,
.reviews__subtitle {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 48px;
    line-height: 120%;
    text-align: center;
    color: var(--text-color);
    position: relative;
    display: inline;
    text-align: center;
}


.reviews__blocks {
    display: flex;
    justify-content: flex-start;
    gap: 7px;
    width: 100%;
}

.reviews__block {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.reviews__block.left {
    flex: 0 1 clamp(240px, 32vw, 383px);
}

.reviews__block.middle {
    flex: 0 1 clamp(240px, 33vw, 389px);
}

.reviews__block.right {
    flex: 0 1 clamp(240px, 34vw, 412px);
}

.reviews__block-image {
    border-radius: 6px;
    width: 100%;
    box-shadow: none;
    min-height: 0 !important;
}

.reviews__block.left .reviews__block-image:nth-child(1) {
    aspect-ratio: 383 / 264;
}

.reviews__block.left .reviews__block-image:nth-child(2) {
    aspect-ratio: 383 / 211;
}

.reviews__block.left .reviews__block-image:nth-child(3) {
    aspect-ratio: 383 / 195;
}



.reviews__block.middle .reviews__block-image:nth-child(1) {
    aspect-ratio: 383 / 177;
}

.reviews__block.middle .reviews__block-image:nth-child(2) {
    aspect-ratio: 383 / 280;
}

.reviews__block.middle .reviews__block-image:nth-child(3) {
    aspect-ratio: 383 / 166;
}



.reviews__block.right .reviews__block-image:nth-child(1) {
    aspect-ratio: 383 / 175;
}

.reviews__block.right .reviews__block-image:nth-child(2) {
    aspect-ratio: 383 / 361;
}

.reviews__block.right .reviews__block-image:nth-child(3) {
    aspect-ratio: 383 / 199;
}

.reviews__social {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 26px;
    line-height: 120%;
    color: var(--text-color);
}

.reviews__social a {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 30px;
    line-height: 120%;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: var(--primary-color);
}

.rent {
    padding: 110px 0;
}

.rent .container {
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
}

.rent__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: 59%;
}

.rent__title {
    font-family: var(--third-family);
    font-size: 48px;
    line-height: 120%;
    color: var(--text-color);
    position: relative;
}

.rent__title .titleBG::before {
    display: none;
}

.rent__text {
    font-family: var(--font-family);
    font-size: 18px;
    line-height: 120%;
    color: var(--text-color);
}

.rent__right {
    flex: 0 1 460px;
    width: 100%;
    min-height: 0;
    aspect-ratio: 460 / 560;
    position: relative;
}

.rent__right .video__button {
    bottom: -2%;
    left: -48%;
    rotate: 0deg;
}

.rent__image {
    rotate: 7deg;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: visible;
}

.rent__btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.teacher {
    padding: 180px 0 90px 0;
}

.teacher .container {
    gap: 20px;
}

.teacher__title {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 48px;
    line-height: 120%;
    text-align: center;
    color: var(--text-color);
    position: relative;
    align-self: center;
}

.teacher__photos {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 1200 / 606;
    margin-bottom: 60px;
}

.teacher__photo--mobile {
    display: none;
}

.teacher__photo {
    position: absolute;
}

.teacher__photo:nth-child(1) {
    width: 38%;
    aspect-ratio: 456 / 555;
    left: -3%;
    top: 6%;
    transform: rotate(-7deg);
}

.teacher__photo:nth-child(3) {
    width: 33%;
    aspect-ratio: 398 / 484;
    left: 50%;
    top: 16%;
    transform: translateX(-50%);
    z-index: 2;
}

.teacher__photo:nth-child(2) {
    width: 33%;
    aspect-ratio: 398 / 484;
    right: 0;
    top: 8%;
    transform: rotate(7deg);
    z-index: 3;
}

.teacher__content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    justify-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.teacher__item:nth-child(1) {
    max-width: 520px;
}

.teacher__item:nth-child(3) {
    max-width: 558px;
    grid-column: 1/3;
    align-self: center;
}

.teacher__header {
    display: flex;
    gap: 27px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.teacher__name {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 48px;
    line-height: 120%;
    color: var(--text-color);
    position: relative;
}

.teacher__info {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.teacher__info ul {
    padding-left: 30px;
}

.teacher__info li::marker {
    font-size: 13px;
}

.teacher__info a {
    text-decoration: underline !important;
    text-decoration-skip-ink: none;
    color: var(--secondary-color);
}

@media screen and (max-width: 1279px) {

    .truth,
    .place,
    .class,
    .rent,
    .reviews {
        padding: 70px 0;
    }

    .price {
        padding: 70px 0 110px 0;
    }

    .teacher {
        padding: 140px 0 70px;
    }

    .contact {
        padding: 70px 0 140px;
    }

    .studio__content--text h1 {
        font-size: 50px;
    }

    .studio__content--text p {
        font-size: 21px;
    }

    .studio__content {
        padding: 60px 0 70px;
    }

    .truth__text {
        font-size: 36px;
        max-width: 730px;
    }

    .place__title {
        font-size: 36px;
    }

    .place__text {
        font-size: 16px;
        max-width: 820px;
    }

    .place__content {
        margin-bottom: 100px;
    }

    .class__title {
        font-size: 36px;
    }

    .class__text {
        font-size: 16px;
        max-width: 770px;
    }

    .class__card-title {
        font-size: 30px;
    }

    .class__card:nth-child(1) {
        width: 36%;
        left: 0;
    }

    .class__card:nth-child(2) {
        width: 33%;
    }

    .class__card:nth-child(3) {
        width: 33%;
        right: 0;
    }

    .class__card:nth-child(4) {
        width: 33%;
        left: 2%;
        bottom: 2%;
    }

    .class__card:nth-child(5) {
        width: 33%;
        bottom: 4%;
    }

    .class__card:nth-child(6) {
        width: 36%;
        right: 0;
        bottom: 1%;
    }

    .mmfs .container svg {
        right: 0;
    }

    .mmfs__text {
        font-size: 40px;
        max-width: 91%;
    }

    .mmfs {
        padding: 200px 0 240px 0;
    }

    .price__title {
        font-size: 36px;
    }

    .price-table__head,
    .price-table__big {
        font-size: 20px !important;
    }

    .price-table th,
    .price-table td {
        font-size: 16px !important;
    }

    .price-table__cell span,
    .price__note {
        font-size: 16px;
    }

    .price__card {
        max-width: 70%;
    }

    .table__image {
        width: 20%;
    }

    .table__image:nth-child(2) {
        top: -7%;
        left: -20%;
    }

    .table__image:nth-child(3) {
        left: -8%;
    }

    .table__image:nth-child(5) {
        bottom: -12%;
        right: -20%;
    }

    .table__image:nth-child(4) {
        bottom: -6%;
        right: -5%;
    }

    .teacher__title,
    .teacher__name {
        font-size: 36px;
    }

    .teacher__info {
        font-size: 16px;
    }

    .teacher__photo:nth-child(1) {
        left: 0;
    }

    .teacher__content {
        grid-template-rows: auto 1fr;
    }

    .teacher__item:nth-child(3) {
        max-width: 490px;
    }

    .rent__title {
        font-size: 36px;
    }

    .rent__text {
        font-size: 16px;
    }

    .reviews__title h2,
    .reviews__subtitle {
        font-size: 36px;
    }

    .reviews__social {
        font-size: 22px;
    }

    .reviews__social a {
        font-size: 26px;
    }

    .contact__title {
        font-size: 36px;
    }

    .contact__subtitle {
        font-size: 24px;
    }

    .contact__address,
    .contact__content a,
    .contact__text {
        font-size: 16px;
    }

    .contact__map iframe {
        height: 350px;
    }

    .contact .container>svg {
        width: 30%;
    }

    .formats-popup__title,
    .format-detail-popup__title {
        font-size: 50px;
    }

    .format-detail-popup__body p,
    .format-detail-popup__body ul,
    .format-detail-popup__body ol {
        font-size: 16px;
    }

    .format-button {
        font-size: 14px;
    }
}

@media screen and (max-width: 1023px) {

    .truth,
    .place,
    .class,
    .rent,
    .reviews {
        padding: 60px 0;
    }

    .contact {
        padding: 60px 0 120px;
    }

    .price {
        padding: 60px 0 100px 0;
    }

    .teacher {
        padding: 120px 0 60px;
    }

    .studio__content--text h1 {
        font-size: 46px;
    }

    .studio__content--text p {
        font-size: 18px;
    }

    .studio__content--text {
        max-width: 54%;
    }

    .studio__content .container {
        gap: 30px;
    }

    .place__text {
        font-size: 14px;
        max-width: 720px;
    }

    .place__content {
        margin-bottom: 85px;
    }

    .class__text {
        font-size: 14px;
        max-width: 675px;
    }

    .mmfs .container svg {
        width: 35%;
    }

    .mmfs__text {
        font-size: 36px;
    }

    .mmfs {
        padding: 150px 0 180px 0;
    }

    .teacher__info {
        font-size: 14px;
    }

    .teacher__name {
        font-size: 34px;
    }

    .teacher__photos {
        margin-bottom: 40px;
    }

    .teacher__item:nth-child(3) {
        max-width: 440px;
    }

    .rent__text {
        font-size: 14px;
    }

    .reviews__social {
        font-size: 18px;
    }

    .reviews__social a {
        font-size: 22px;
    }

    .contact__address,
    .contact__content a,
    .contact__text {
        font-size: 14px;
    }

    .contact__map iframe {
        height: 300px;
    }

    .contact .container>svg {
        width: 25%;
    }

    .contact .container {
        gap: 30px;
    }

    .formats-popup__title,
    .format-detail-popup__title {
        font-size: 46px;
    }

    .format-detail-popup__body p,
    .format-detail-popup__body ul,
    .format-detail-popup__body ol {
        font-size: 14px;
    }

    .format-button {
        font-size: 12px;
    }

    .formats-popup__title.titleBG::before,
    .format-detail-popup__title.titleBG::before {
        top: 25px;
    }
}

@media screen and (max-width: 959px) {
    .studio__content--text h1 {
        font-size: 36px;
    }

    .studio__content--text p {
        font-size: 14px;
        margin-bottom: 0;
    }

    .studio__content {
        padding: 40px 0 30px;
    }

    .truth .container {
        gap: 30px;
    }

    .truth__text {
        font-size: 28px;
        max-width: 560px;
    }

    .place__content {
        gap: 15px;
    }

    .place__text {
        font-size: 12px;
        max-width: 615px;
    }

    .place__title {
        font-size: 30px;
    }

    .place__content {
        margin-bottom: 70px;
    }

    .class__title {
        font-size: 30px;
    }

    .class p {
        font-size: 12px;
        max-width: 580px;
    }

    .class__card-title {
        font-size: 22px;
    }

    .mmfs__text {
        font-size: 28px;
    }

    .mmfs {
        padding: 90px 0 130px 0;
    }

    .price__title {
        font-size: 30px;
    }

    .price-table__head,
    .price-table__big {
        font-size: 18px !important;
    }

    .price-table th,
    .price-table td {
        font-size: 14px !important;
    }

    .price-table__cell span,
    .price__note {
        font-size: 14px;
    }

    .teacher__title {
        font-size: 30px;
    }

    .teacher__name {
        font-size: 24px;
    }

    .teacher__info {
        font-size: 12px;
    }

    .teacher__name span.titleBG::before {
        height: 19px;
        top: 15px;
    }

    .teacher__item:nth-child(3) {
        max-width: 380px;
    }

    .rent__title {
        font-size: 28px;
    }

    .rent__text {
        font-size: 12px;
    }

    .rent__right {
        flex: 0 1 auto;
    }

    .rent__image {
        height: 97%;
    }

    .rent__right .video__button {
        bottom: -2%;
        left: -54%;
    }

    .reviews__title h2,
    .reviews__subtitle {
        font-size: 30px;
    }

    .reviews .container {
        gap: 15px;
    }

    .reviews__social {
        font-size: 16px;
    }

    .reviews__social a {
        font-size: 20px;
    }

    .contact__title {
        font-size: 30px;
    }

    .contact__subtitle {
        font-size: 20px;
    }

    .contact__address,
    .contact__content a,
    .contact__text {
        font-size: 12px;
    }

    .contact__map iframe {
        height: 300px;
    }

    .contact__map {
        width: 80%;
    }

    .formats-popup__title,
    .format-detail-popup__title {
        font-size: 36px;
    }

    .format-detail-popup__body p,
    .format-detail-popup__body ul,
    .format-detail-popup__body ol {
        font-size: 12px;
    }

    .format-button {
        font-size: 10px;
    }

    .formats-popup__title.titleBG::before,
    .format-detail-popup__title.titleBG::before {
        top: 20px;
    }
}

@media screen and (max-width: 825px) {
    .rent__content {
        gap: 15px;
    }

    .rent__content {
        max-width: 410px;
    }

    .rent .container {
        gap: 30px;
    }

    .rent__image {
        height: 97%;
    }

    .rent__right .video__button {
        left: -64%;
    }
}

@media screen and (max-width: 767px) {

    .truth,
    .place,
    .class,
    .reviews {
        padding: 40px 0;
    }

    .contact {
        padding: 40px 0 100px;
    }

    .rent {
        padding: 40p 0 80px 0;
    }

    .price {
        padding: 40px 0 80px 0;
    }

    .teacher {
        padding: 0 0 40px 0;
    }

    .studio__content {
        padding: 20px 0 40px;
    }

    .studio__content--images {
        max-width: 90%;
    }

    .studio__content .container {
        flex-direction: column;
        align-items: center;
    }

    .studio__content--text {
        max-width: 100%;
        order: 2;
    }

    .studio__content--text {
        align-items: center;
    }

    .studio__content--text h1 {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 40px;
        text-align: center;
    }

    .studio__content--btn {
        align-self: center;
    }

    .studio__content--text p {
        font-size: 18px;
        max-width: 100%;
        text-align: center;
    }

    .truth__text {
        font-size: 24px;
        max-width: 485px;
    }

    .truth .container svg {
        width: 20%;
        height: auto;
        margin-right: -75px;
    }

    .place__content {
        gap: 25px;
    }

    .place__title {
        text-align: center;
    }

    .place__text {
        font-size: 14px;
        max-width: 100%;
    }

    .place .video__button-text svg {
        transform: scaleX(-1);
        left: -33px;
        bottom: -23px;
    }

    .place__content {
        margin-bottom: 65px;
    }

    .place .video__button {
        bottom: -35px;
        right: 20px;
    }

    .place .video__button-text {
        text-align: center;
        max-width: 100%;
        width: 120px;
    }

    .class__text {
        font-size: 14px;
        max-width: 100%;
    }

    .class__cards {
        width: 96%;
    }

    .class__card-title {
        font-size: 18px;
    }

    .mmfs__text {
        font-size: 28px;
        text-align: start;
    }

    .mmfs {
        padding: 40px 0;
    }

    .mmfs .container svg {
        top: 65%;
        width: 30%;
    }

    .price__title {
        margin-bottom: 25px;
    }

    .price-table__head,
    .price-table__big {
        font-size: 18px !important;
    }

    .table__image {
        display: none;
    }

    .price__card {
        max-width: 100%;
    }

    .price-table td:nth-child(2) {
        white-space: wrap;
    }

    .teacher__photos {
        display: none;
    }

    .teacher__item {
        max-width: 70% !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .teacher__content {
        grid-template-rows: repeat(3, auto);
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .teacher__item:nth-child(3) {
        grid-column: 1/2;
        grid-row: 2/3;
    }

    .teacher__photo--mobile {
        display: block;
        width: 60%;
    }

    .teacher__item:nth-child(1) .teacher__photo--mobile {
        aspect-ratio: 456 / 555;
        transform: rotate(-7deg);
    }

    .teacher__item:nth-child(2) .teacher__photo--mobile {
        aspect-ratio: 398 / 484;
        transform: rotate(7deg);
    }

    .teacher__item:nth-child(3) .teacher__photo--mobile {
        aspect-ratio: 398 / 484;

    }

    .teacher__header {
        margin-bottom: 0;
        gap: 5px;
    }

    .teacher__info {
        font-size: 14px;
    }

    .teacher__name {
        font-size: 40px;
        text-align: center;
    }

    .rent .container {
        flex-direction: column;
        align-items: center;
        gap: 80px;
    }

    .rent__right {
        order: 1;
        flex: 0 1 auto;
        max-width: 60%;
    }

    .rent__content {
        order: 2;
        max-width: 100%;
        align-items: center;
        gap: 25px;
    }

    .rent__right {
        order: 2;
    }

    .rent__image {
        height: 100%;
    }

    .rent__title {
        text-align: center;
        font-size: 30px;
    }

    .rent__text {
        font-size: 14px;
        text-align: center;
    }

    .rent__right .video__button {
        left: auto;
        bottom: -7%;
    }

    .rent__right .video__button-text {
        text-align: center;
        max-width: 135px;
        font-size: 14px;
    }

    .reviews .container {
        gap: 25px;
    }

    .reviews__blocks {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .reviews__block.left {
        flex: 0 0 auto;
        width: 253px;
    }

    .reviews__block.middle {
        flex: 0 0 auto;
        width: 257px;
    }

    .reviews__block.right {
        flex: 0 0 auto;
        width: 272px;
    }

    .reviews__social {
        font-size: 18px;
        text-align: center;
    }

    .contact .container {
        flex-direction: column;
    }

    .contact__map {
        order: 2;
        width: 100%;
    }

    .contact__content {
        align-items: center;
    }

    .contact__subtitle {
        font-size: 18px;
    }

    .contact__address,
    .contact__content a,
    .contact__text {
        font-size: 14px;
        text-align: center;
    }

    .contact .container {
        gap: 20px;
    }

    .contact .container>svg {
        display: none;
    }

    .contact__map .video__button {
        right: auto;
        left: 0;
        bottom: -14%;
        transform: none;
    }

    .contact__map .video__button .video__button-text {
        max-width: 155px;
        text-align: center;
        bottom: -13px;
    }

    .contact__map iframe {
        height: 260px;
    }

    .contact .video__button-text svg {
        bottom: -14px;
    }

    .format-detail-popup__body {
        align-items: center;
    }

    .formats-popup__title,
    .format-detail-popup__title {
        text-align: center;
    }

    .format-detail-popup__body p,
    .format-detail-popup__body ul,
    .format-detail-popup__body ol {
        font-size: 14px;
        text-align: center;
    }

    .format-detail-popup__body ul,
    .format-detail-popup__body ol {
        list-style-position: inside;
        padding-left: 0;
    }

    .format-button,
    .format-detail-popup__text a {
        font-size: 14px !important;
        padding: 18px 20px;
        width: 100%;
    }
}

@media screen and (max-width: 599px) {
    .studio__content--images {
        flex: 0 1 auto;
        max-width: 100%;
    }

    .studio__content .container {
        gap: 20px;
    }

    .studio__content--btn {
        width: 100%;
    }

    .studio__content--btn {
        padding: 18px 25px !important;
    }

    .truth .container {
        padding-top: 55px;
    }

    .truth .container svg {
        margin-right: -75px;
        margin-top: -55px;
    }

    .truth__text {
        font-size: 24px;
        max-width: 365px;
    }

    .place .video__button-text {
        text-align: center;
        max-width: 100%;
        width: 100px;
    }

    .class__card-title {
        font-size: 14px;
    }

    .teacher__item {
        max-width: 100% !important;
    }

    .teacher .container {
        gap: 40px;
    }

    .teacher__photo--mobile {
        width: 75%;
    }

    .teacher__item:nth-child(2) .teacher__name {
        max-width: 280px;
        text-align: start;
    }

    .rent__right {
        max-width: 86%;
    }

    .rent__btns {
        width: 100%;
    }

    .rent__right .video__button {
        left: auto;
        right: 5%;
        bottom: -7%;
    }

    .contact__map .video__button {
        bottom: -9%;
    }

    .format-button {
        width: 100%;
    }

    .format-detail-popup__content {
        padding: 40px 25px;
    }

    .formats-popup__title, .format-detail-popup__title {
        font-size: 30px;
    }
}

@media screen and (max-width: 474px) {
    .studio__content--text h1 {
        max-width: 355px;
    }

    .truth__text {
        max-width: 85%;
    }

    .class__card-title {
        font-size: 12px;
    }
}

@media screen and (max-width: 424px) {
    .studio__content--text h1 {
        font-size: 38px;
    }

    .place .video__button-text {
        width: 90px;
    }

    .place .video__button {
        bottom: -25px;
        right: 116%;
    }

    .class__card-title {
        font-size: 10px;
    }

    .teacher__name {
        font-size: 38px;
    }

    .teacher__item:nth-child(2) .teacher__name {
        max-width: 260px;
    }

    .rent__btn {
        padding: 18px 25px !important;
    }
}

@media screen and (max-width: 374px) {
    .studio__content--text h1 {
        font-size: 34px;
        max-width: 335px;
    }

    .studio__content--text p {
        font-size: 16px;
    }

    .truth .container {
        padding-top: 55px;
    }

    .truth .container svg {
        margin-right: -75px;
        margin-top: -55px;
    }

    .truth__text {
        font-size: 18px;
    }

    .class__title {
        font-size: 26px;
    }

    .class__text {
        font-size: 12px;
    }

    .class__card-title {
        font-size: 9px;
    }

    .mmfs__text {
        font-size: 20px;
    }

    .price__title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .price-table th,
    .price-table td {
        font-size: 12px !important;
    }

    .price-table__cell span,
    .price__note {
        font-size: 12px;
    }

    .teacher__name {
        font-size: 32px;
    }

    .teacher__info {
        font-size: 12px;
    }

    .teacher__title {
        font-size: 26px;
    }

    .teacher__item:nth-child(2) .teacher__name {
        max-width: 210px;
    }

    .rent__title {
        font-size: 26px;
    }

    .rent__text {
        font-size: 12px;
    }

    .rent__content {
        gap: 20px;
    }

    .reviews .container {
        gap: 20px;
    }

    .reviews__title h2,
    .reviews__subtitle {
        font-size: 26px;
    }

    .reviews__social {
        font-size: 16px;
    }

    .reviews__social a {
        font-size: 18px;
    }

    .contact__title {
        font-size: 26px;
    }

    .contact__content {
        gap: 15px;
    }

    .contact__address,
    .contact__content a,
    .contact__text {
        font-size: 12px;
    }

    .contact__subtitle {
        font-size: 16px;
    }

    .format-detail-popup__body p, .format-detail-popup__body ul, .format-detail-popup__body ol {
        font-size: 12px;
    }

    .formats-popup__title, .format-detail-popup__title {
        font-size: 26px;
    }
}