@font-face {
    font-family: "Evolventa";
    src: url("../fonts/Evolventa-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Evolventa";
    src: url("../fonts/Evolventa-Bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "Evolventa";
    src: url("../fonts/Evolventa-Oblique.ttf") format("truetype");
    font-weight: normal;
    font-style: italic;
}
body,
html {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #f5f5fa;
    font-family: "Evolventa", sans-serif;
    color: #2b2a29;
}
* {
    box-sizing: border-box;
}
.wrapper {
    width: 1280px;
    margin: 0 auto;
}
.header {
    width: 100%;
    margin: 15px 0;
    position: relative;
}
.header H1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cities {
    background: #fff;
    border-radius: 40px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-left: 25px;
    line-height: 100%;
    padding-right: 10px;
}
.success {
    font-size: 36px;
}
.success span {
    color: #264796;
}
.city {
    font-size: 20px;
    color: #264796;
}
.city::before {
    content: url("/assets/images/map_label.svg");
    display: inline-block;
    margin-right: 8px;
}
.menu-button {
    border-radius: 50%;
    height: 52px;
    width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #264796;
    cursor: pointer;
}
.menu-button.is-active {
    background-color: #1c356f;
}
.burger-menu {
    position: absolute;
    top: Calc(100% + 10px);
    right: 0;
    z-index: 100;
    min-width: 320px;
    max-height: Calc(100vh - 120px);
    overflow-y: auto;
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(38, 71, 150, 0.2);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s;
}
.burger-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.burger-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.burger-menu__list li {
    margin: 0;
}
.burger-menu__list a {
    display: block;
    padding: 12px 30px;
    font-size: 20px;
    color: #2b2a29;
    text-decoration: none;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}
.burger-menu__list a:hover {
    background: #f5f5f9;
    color: #264796;
}
#hero,
#free-week,
#mobile-app,
#online,
#districts,
#office,
#autodrom,
#promo,
#categories,
#pairs,
#faq,
#reviews {
    scroll-margin-top: 100px;
}
.content-raw {
    display: flex;
    margin-top: 40px;
    align-items: stretch;
}
.content-block {
    width: 100%;
}
.content-block H2 {
    font-size: 50px;
    line-height: 1.1;
    margin: 0;
    padding: 0;
    margin-bottom: 25px;
    color: #2b2a29;
}
.content-block__data {
    padding: 40px;
    border-radius: 25px;
    background-color: #fff;
    overflow: hidden;
}
.content-block p {
    font-size: 36px;
    line-height: 1.3;
    margin: 0;
    padding: 0;
}
.block-left {
    flex: 1;
}
.bolded {
    font-weight: bold;
}
.block-right {
    margin-left: 40px;
    width: 400px;
}
.content-block .comment {
    font-size: 24px;
}
.comment {
    display: block;
    margin-top: 8px;
}
.colored {
    color: #264796;
}
.colored-red {
    color: red;
}
.cats-block {
    display: flex;
    align-items: center;
}
.cats-block img {
    height: 44px;
    margin-right: 15px;
}
.main-list {
    font-size: 32px;
    margin: 25px 0 0;
    padding-left: 34px;
    font-weight: bold;
    line-height: 1.3;
    color: #2b2a29;
}
.main-list li + li {
    margin-top: 6px;
}
.student {
    position: relative;
}
.student img:first-child {
    position: absolute;
    top: Calc(50% - 110px);
    width: 130px;
    left: -20px;
}
.student img:last-child {
    width: 100%;
}
.w100 {
    width: 100%;
}
.mt40 {
    margin-top: 40px;
}
.mt25 {
    margin-top: 25px;
}
.mb0 {
    margin-bottom: 0px !important;
}
.mb15 {
    margin-bottom: 15px !important;
}
.mb25 {
    margin-bottom: 25px !important;
}
.p0 {
    padding: 0;
}
.contact-form H5 {
    font-size: 20px;
    font-weight: normal;
    line-height: 100%;
    margin: 0;
    padding: 0;
}
.contact-form input[type="tel"],
.contact-form input[type="text"] {
    background: #f5f5f9;
    border: none;
    color: #2b2a29;
    font-size: 16px;
    padding: 19px;
    outline: none;
    text-align: center;
    border-radius: 16px;
    width: 100%;
}
.contact-form__links {
    display: flex;
    align-items: center;
    margin-top: 25px;
    justify-content: space-between;
}
.contact-form__links a {
    background-color: #f5f5f9;
    border-radius: 16px;
    padding: 10px;
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #2b2a29;
    text-decoration: none;
    width: Calc(50% - 10px);
    text-align: center;
    line-height: 100%;
}
.contact-form__links a img {
    width: 35px;
    margin-right: 10px;
}
.free-week,
.true-online {
    background: url("/assets/images/first_week.png");
    background-size: cover;
    position: relative;
    height: 500px;
    padding: 40px;
    border-radius: 25px;
}
.true-online {
    background-image: url("/assets/images/true_online.png");
}
.true-online H2 {
    color: #fff;
}
.free-week img {
    position: absolute;
    bottom: 0;
    right: 50px;
    width: 480px;
}
.free-week p {
    position: absolute;
    bottom: 40px;
    color: #fff;
    font-size: 20px;
    line-height: 1.35;
    width: 60%;
}
.mobile-app {
    position: relative;
    width: 100%;
}
.mobile-app .padded {
    /* 640px — ширина картинки приложения, 40px — её отступ от правого края, 20px — зазор до текста */
    padding-right: 700px;
}
.mobile-app img:last-child {
    position: absolute;
    bottom: 0;
    right: 40px;
    width: 640px;
}
.true-online .main-list {
    color: #fff;
}
.lists {
    display: flex;
    align-items: start;
}
.lists ul:last-child {
    margin-left: 40px;
}
p.joke {
    position: absolute;
    bottom: 40px;
    color: #fff;
    font-size: 20px;
}
.thin {
    font-weight: 300;
}
.district-list {
    padding: 40px;
    text-align: center;
}
.district-list span {
    display: inline-block;
    margin: 15px;
    background: red;
    color: #fff;
    font-weight: bold;
    font-size: 46px;
    padding: 10px 15px;
}
.main-office__phone {
    display: flex;
    align-items: center;
    margin-top: 25px;
    font-size: 32px;
    color: #264796;
}
.main-office__phone img {
    height: 50px;
    margin-right: 15px;
    display: block;
}
.main-office {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}
.main-office > div {
    width: Calc(50% - 20px);
}
.main-office #map {
    border-radius: 15px;
    overflow: hidden;
}
.square-block {
    display: flex;
    position: relative;
}
.square-block .advantages-list,
.square-block .square {
    width: 50%;
}
.advantages-list {
    padding: 40px;
}
.advantages {
    list-style: none;
    padding: 0;
    margin: 25px 0 0;
}
.advantages li {
    display: flex;
    align-items: start;
    margin-bottom: 15px;
}
.advantages li div {
    width: 50px;
}
.advantages li div img {
    display: block;
    margin: 0 auto;
}
.advantages li span {
    flex: 1;
    font-weight: bold;
    font-size: 30px;
    margin-left: 15px;
}
.advantages li:last-child span {
    font-weight: normal;
}
.square {
    position: relative;
    background: url("/assets/images/square.png") center / cover no-repeat;
}
.square-photo {
    position: absolute;
}
.sqaure-photo1 {
    width: 260px;
    left: -130px;
    top: 0px;
}
.sqaure-photo2 {
    width: 235px;
    right: 50%;
    top: 25%;
}
.sqaure-photo3 {
    width: 150px;
    right: 10%;
    top: 10%;
}

.sqaure-photo4 {
    width: 260px;
    right: 10%;
    bottom: 0;
}

.promo {
    background-image: url("/assets/images/gift.png");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 100%;
    padding-right: 35%;
}
.promo p {
    font-size: 30px;
    font-weight: bold;
    line-height: 1.3;
}
.promo p + p {
    margin-top: 25px;
}
.promo-additional {
    display: flex;
    align-items: start;
    flex-wrap: wrap;
}
.promo-block {
    width: 50%;
    margin-bottom: 25px;
    padding-right: 25px;
}
.promo-block h3 {
    font-size: 24px;
    line-height: 1.2;
    margin: 0;
    margin-bottom: 12px;
}
.promo-block p {
    font-weight: normal;
    font-size: 24px;
    line-height: 1.35;
}
.promo-block p + p {
    margin-top: 12px;
}
.cat_icons {
    text-align: center;
    line-height: 0;
    padding: 8px 0 0;
}
.cat_icons img {
    margin: 7px 3px;
    vertical-align: top;
}
.together {
    background:
        linear-gradient(
            to right,
            rgba(16, 44, 87, 0.9) 0%,
            rgba(16, 44, 87, 0) 70%
        ),
        url("/assets/images/together_bg.png");
    background-size: cover;
    text-align: center;
    line-height: 0;
}
.together img {
    height: 110px;
    /* По горизонтали чипы идут почти вплотную (строка ровно заполняет карточку),
       поэтому воздух добавляем только снизу — между рядами. */
    margin: 0 0 15px;
}
.together h2 {
    color: #fff;
    text-align: left;
}

.carousel {
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: flex;
}

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

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 calc(100% / 2 - 12px);
    background: #fff;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 40px;
    overflow: hidden;
    padding: 30px 60px;
    margin-right: 25px;
    flex-direction: column;
    position: relative;
    padding-bottom: 90px;
    height: 300px;
}
.slide .title {
    display: flex;
    align-items: center;
    width: 100%;
}
.slide .title H3 {
    font-size: 40px;
    line-height: 0;
    font-weight: normal;
    flex: 1;
    margin: 0;
}
.slide .title img {
    margin-top: 15px;
    margin-right: 15px;
    margin-left: -9px;
}
.slide p {
    font-size: 20px;
    flex-grow: 1;
}
.slide button {
    position: absolute;
    bottom: 30px;
    left: 60px;
    border: none;
    background: #fff;
    color: #000;
    box-shadow: 1px 5px 12px #ccc;
    padding: 10px 40px;
    border-radius: 4px;
    font-size: 20px;
    cursor: pointer;
}

.period__slide img {
    box-shadow: 1px 0 10px #ccc;
    margin: 0 !important;
    margin-right: 15px !important;
}
.period__slide .title {
    margin-bottom: 25px;
}
button.btn-blue,
button.btn-red,
button.btn-green {
    color: #fff;
}
button.btn-blue {
    background: #264796;
}
button.btn-red {
    background: #ff0000;
}
button.btn-green {
    background: #129900;
}
.hover-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    z-index: 10;
    cursor: pointer;
}
.left-zone {
    left: 0;
}
.right-zone {
    right: 0;
}

.content-block__data--reviews {
    padding: 70px 40px 50px;
}
.content-block .reviews-title {
    text-align: center;
    color: #264796;
    margin-bottom: 44px;
}
.review-videos {
    display: flex;
    align-items: flex-start;
    gap: 31px;
}
.review-video {
    position: relative;
    margin: 0;
    container-type: inline-size;
}
.review-video--tall {
    flex: 217 1 0;
}
.review-video--wide {
    flex: 466 1 0;
}
.review-video__frame {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    border-radius: 5.5cqw;
    box-shadow: -5.07cqw 5.07cqw 0 red;
}
.review-video--tall .review-video__frame {
    aspect-ratio: 217 / 385;
}
.review-video--wide .review-video__frame {
    aspect-ratio: 466 / 264;
    border-radius: 2.57cqw;
    box-shadow: -2.36cqw 2.36cqw 0 red;
}
.review-video__frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
/* Первый кадр вместо обложки: клик должен попадать в кнопку, а не в плеер. */
.review-video__frame .review-video__poster {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    pointer-events: none;
    background: #264796;
}
.review-video__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 26cqw;
    height: 26cqw;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 2.2cqw rgba(255, 255, 255, 0.35);
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease;
}
.review-video__play::before {
    content: '';
    position: absolute;
    left: 55%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 5.2cqw 0 5.2cqw 8.6cqw;
    border-color: transparent transparent transparent #264796;
}
.review-video__frame:hover .review-video__play,
.review-video__frame:focus-visible .review-video__play {
    background: #fff;
    box-shadow: 0 0 0 3cqw rgba(255, 255, 255, 0.55);
}
.review-video__frame:focus-visible {
    outline: 2px solid #264796;
    outline-offset: 4px;
}
.review-video--wide .review-video__play {
    width: 14cqw;
    height: 14cqw;
    box-shadow: 0 0 0 1.2cqw rgba(255, 255, 255, 0.35);
}
.review-video--wide .review-video__play::before {
    border-width: 2.6cqw 0 2.6cqw 4.3cqw;
}
.review-video--wide .review-video__frame:hover .review-video__play,
.review-video--wide .review-video__frame:focus-visible .review-video__play {
    box-shadow: 0 0 0 1.6cqw rgba(255, 255, 255, 0.55);
}
.review-video__label {
    position: absolute;
    left: 50%;
    top: 12.25cqw;
    transform: translateX(-50%);
    padding: 0.18em 0.6em 0.22em;
    border-radius: 999px;
    background: #264796;
    color: #fff;
    font-size: 9.77cqw;
    font-weight: bold;
    line-height: 1.1;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}
.review-video--wide .review-video__label {
    top: 3.56cqw;
    font-size: 4.55cqw;
}
.modal__content .review-videos {
    padding: 0 40px;
    flex-wrap: wrap;
}
@media (max-width: 992px) {
    .review-videos {
        flex-wrap: wrap;
        gap: 20px;
    }
    .review-video--tall {
        flex: 1 1 45%;
    }
    .review-video--wide {
        flex: 1 1 100%;
    }
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.2s ease,
        visibility 0.2s;
}
.modal.is-open {
    opacity: 1;
    visibility: visible;
}
.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 27, 51, 0.5);
}
.modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 24px;
    width: Calc(100% - 40px);
    max-width: 1280px;
    max-height: Calc(100vh - 40px);
    overflow-y: auto;
    padding: 40px 0px;
    box-shadow: 0 20px 50px rgba(38, 71, 150, 0.3);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.modal__dialog::-webkit-scrollbar {
    display: none;
}
.modal__close {
    position: absolute;
    top: 10px;
    right: 16px;
    background: none;
    border: none;
    font-size: 36px;
    line-height: 1;
    color: #b4b4bd;
    cursor: pointer;
    z-index: 1000;
}
.modal__close:hover {
    color: #264796;
}
.modal__title {
    font-size: 50px;
    line-height: 100%;
    font-weight: bold;
    margin: 0 0 28px;
    padding: 0 40px;
    color: #2b2a29;
}
.modal__title--center {
    text-align: center;
}
.modal__content p {
    font-size: 19px;
    line-height: 1.4;
    margin: 0 0 15px;
}
.modal__content .modal__note {
    text-align: center;
    color: #2b2a29;
}

.modal-video {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 0 40px;
}
.modal-video__player {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 220px);
    border-radius: 16px;
    background: #000;
    object-fit: contain;
}
.modal-video__desc {
    margin: 0;
    max-width: 760px;
    text-align: center;
    font-size: 19px;
    line-height: 1.4;
    color: #2b2a29;
}

.exams-reviews {
    padding: 0 40px;
    text-align: center;
}
.exams-reviews__text {
    margin-bottom: 20px;
}

.field {
    margin-bottom: 14px;
}
.field input[type="text"],
.field input[type="tel"],
.field select {
    display: block;
    width: 100%;
    height: 56px;
    padding: 0 30px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: #f5f5f9;
    font-family: inherit;
    font-size: 20px;
    color: #2b2a29;
    outline: none;
}
.field select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none' stroke='%23264796' stroke-width='2'%3E%3Cpath d='m1 1 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 24px center;
}
.field select:invalid {
    color: #9a9aa6;
}
.field input::placeholder {
    color: #9a9aa6;
}
.field input[type="text"]:focus,
.field input[type="tel"]:focus,
.field select:focus {
    border-color: #264796;
}
.field.has-error input[type="text"],
.field.has-error input[type="tel"],
.field.has-error select {
    border-color: #ff0000;
}
.modal__content .field__error {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.2;
    color: #ff0000;
}
.field__error[hidden],
.test__step[hidden],
.test__result[hidden] {
    display: none;
}
.test {
    padding: 0 40px;
}
.consent {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}
.consent input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.consent__box {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 2px solid #c9c9d3;
    background: #fff center / 16px no-repeat;
}
.consent input:checked + .consent__box {
    border-color: #ff0000;
    background-color: #ff0000;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='13' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 7 4 4 8-9'/%3E%3C/svg%3E");
}
.consent input:focus-visible + .consent__box {
    outline: 2px solid #264796;
    outline-offset: 2px;
}
.field.has-error .consent__box {
    border-color: #ff0000;
}
.consent__text {
    font-size: 16px;
    line-height: 1.2;
    color: #8f8f9a;
}

.btn-submit {
    border: none;
    cursor: pointer;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 20px;
    color: #fff;
    background: #264796;
}

.btn-modal {
    display: block;
    width: 100%;
    height: 52px;
    margin-top: 20px;
    border: none;
    border-radius: 12px;
    background: #ff0000;
    font-family: inherit;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}
.btn-modal:hover {
    background: #e60000;
}

.lead-form__privacy {
    margin: 20px 0 0 !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    text-align: center;
    color: #8f8f9a;
}
.modal-socials {
    display: flex;
    gap: 14px;
    margin-top: 20px;
}
.modal-socials a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 56px;
    border-radius: 14px;
    background: #f5f5f9;
    font-size: 18px;
    color: #2b2a29;
    text-decoration: none;
}
.modal-socials img {
    width: 32px;
    height: 32px;
}

.test__group {
    padding: 22px 28px 20px;
    border-radius: 14px;
    background: #f5f5f9;
    margin-bottom: 18px;
}
.test__group-title {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.1;
    font-weight: bold;
    color: #264796;
}
.test__options {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.test__option {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    line-height: 1.2;
    cursor: pointer;
}
.test__option input {
    appearance: none;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: 0;
    border: 1.5px solid #264796;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}
.test__option input:checked {
    background: radial-gradient(#264796 0 42%, #fff 46%);
}
.test__option input:focus-visible {
    outline: 2px solid #264796;
    outline-offset: 2px;
}
.test__last-step {
    margin: 0 0 14px !important;
    font-size: 20px !important;
    font-weight: bold;
    color: #264796;
}
.test__result {
    padding: 22px 28px;
    background: #f5f5f9;
    border-radius: 14px;
}
.modal__content .test__result strong {
    display: block;
    font-size: 24px;
    color: #264796;
    margin-bottom: 8px;
}
.modal__content .test__result p {
    margin: 0;
}
body.modal-open {
    overflow: hidden;
}

.footer {
    height: 200px;
}
a.success {
    color: #2b2a29;
    text-decoration: none;
}
.free-for-all {
    display: flex;
    align-items: center;
    margin-top: 25px;
    color: #ff0000;
    font-weight: bold;
    font-size: 30px;
    line-height: 1.2;
}
.mobile-app .free-for-all > img {
    margin-right: 15px;
    position: relative;
    width: 60px;
    right: 0;
    height: 60px;
}
.branches-grid {
    display: grid;
    padding: 0 40px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.branch-card {
    background-color: #e5e7eb;
    border-radius: 8px;
    height: 180px;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    cursor: pointer;
}

.branch-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.branch-card .badge {
    background-color: #ff0000;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 20px 4px 8px;
    border-radius: 4px;
    position: relative;
    white-space: nowrap;
}

.branch-card .badge::after {
    content: "↴";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

@media (max-width: 600px) {
    .branches-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .branches-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .branch-card {
        height: 140px;
    }
}

.schedule-section {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;

    background-image: url("/assets/images/clock.png");
    background-repeat: no-repeat;
    background-position: calc(100% + 40px) -20px;
    background-size: 320px;
}

.schedule-container {
    margin: 0 auto;
    padding: 0px 40px;
    line-height: 1.5;
}

.schedule-main-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.schedule-lead {
    font-size: 16px;
    margin-bottom: 30px;
    color: #4a4a4a;
}

.schedule-block {
    margin-bottom: 25px;
}

.schedule-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.schedule-subtitle .note {
    font-weight: normal;
    color: #555555;
}

.schedule-list {
    margin: 0;
    padding-left: 20px;
}

.schedule-list li {
    margin-bottom: 6px;
    font-size: 15px;
}

.schedule-text {
    margin: 0;
    font-size: 15px;
    color: #333333;
    text-align: justify;
}

.schedule-footer-text {
    font-size: 16px;
    font-weight: 500;
    color: #4682b4;
    margin-top: 35px;
}

@media (max-width: 992px) {
    .schedule-section {
        background-size: 220px;
        background-position: right top;
    }
    .schedule-container {
        max-width: 70%;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .schedule-section {
        padding: 30px 15px;
        background-image: none;
    }

    .schedule-container {
        max-width: 100%;
    }

    .schedule-main-title {
        font-size: 20px;
    }

    .schedule-text,
    .schedule-list li {
        font-size: 14px;
        text-align: left;
    }
}

.price-section {
    color: #333333;
    padding: 60px 20px;
    padding-top: 150px;
    margin-top: -140px;
    position: relative;
    overflow: hidden;
    background-image:
        url(/assets/images/coins.png), url(/assets/images/coin.png);
    background-repeat: no-repeat, no-repeat;
    background-position:
        calc(100% - 20px) 20px,
        calc(100% - 40px) bottom;
    background-size: 180px, 140px;
}

.price-section.books {
    color: #333333;
    padding: 60px 20px;
    padding-top: 150px;
    margin-top: -140px;
    position: relative;
    overflow: hidden;
    background-image: url(/assets/images/books.png);
    background-repeat: no-repeat;
    background-position: calc(100% - 20px) 20px;
    background-size: 180px, 140px;
}

.price-container {
    margin: 0 auto;
    padding: 0 25px;
    line-height: 1.5;
}

.price-main-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
}

.price-main-title .blue-text {
    color: #1e40af;
}

.price-lead-bold {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.price-lead-text {
    font-size: 15px;
    color: #4a4a4a;
    margin-bottom: 30px;
    text-align: justify;
}

.price-factors {
    margin-bottom: 30px;
}

.factor-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
}

.factor-num {
    font-size: 15px;
    font-weight: 700;
    min-width: 25px;
    color: #1a1a1a;
}

.factor-content {
    font-size: 15px;
    color: #333333;
    text-align: justify;
}

.price-summary {
    font-size: 15px;
    color: #333333;
    margin-bottom: 35px;
    text-align: justify;
}

.price-footer-text {
    font-size: 16px;
    color: #4682b4;
}

@media (max-width: 1024px) {
    .price-section {
        background-size: 130px, 100px;
    }
    .price-container {
        max-width: 75%;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .price-section {
        padding: 30px 15px;
        background-image: none;
    }

    .price-container {
        max-width: 100%;
    }

    .price-main-title {
        font-size: 22px;
    }

    .price-lead-text,
    .factor-content,
    .price-summary {
        text-align: left;
        font-size: 14px;
    }
}

.modal__title .colored {
    color: #264796;
}

.track-container {
    padding: 0 40px;
    max-width: 820px;
    box-sizing: border-box;
}

.modal__dialog:has(.track-container) {
    background-image: url("/assets/images/autodrom.png");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: 450px auto;
}

.track-lead {
    font-size: 21px !important;
    color: #4a4a4a;
    margin-bottom: 28px !important;
}

.track-subtitle {
    font-size: 22px;
    font-weight: bold;
    color: #264796;
    margin: 0 0 14px 0;
}

.track-subtitle .track-note {
    font-weight: normal;
    color: #2b2a29;
}

.track-list {
    margin: 0 0 28px 0;
    padding-left: 24px;
    list-style-type: disc;
}

.track-list li {
    font-size: 19px;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #2b2a29;
}

.track-block {
    margin-bottom: 28px;
}

.track-text {
    color: #2b2a29;
}

.track-footer-text {
    color: #264796;
    font-weight: 500;
    margin-top: 35px !important;
}

@media (max-width: 1024px) {
    .modal__dialog:has(.track-container) {
        background-size: 320px auto;
    }
    .track-container {
        max-width: 65%;
    }
}

@media (max-width: 768px) {
    .modal__dialog {
        background-image: none;
    }
    .track-container {
        max-width: 100%;
        padding: 0 20px;
    }
    .modal__title {
        font-size: 32px;
        padding: 0 20px;
    }
    .track-lead {
        font-size: 18px !important;
    }
    .track-list li,
    .track-text {
        font-size: 16px;
    }
}

.instructors-container {
    padding: 0 40px;
    box-sizing: border-box;
    width: 100%;
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.instructor-card {
    background: #ffffff;
    border: 1px solid #e1e4ed;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 230px;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.instructor-top {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.instructor-photo-wrapper {
    position: relative;
    width: 90px;
    height: 110px;
    flex-shrink: 0;
}

.instructor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    background-color: #f0f2f5;
}

.instructor-badge {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    background: #264796;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 20px;
    white-space: nowrap;
    text-transform: lowercase;
}

.instructor-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.instructor-hours {
    font-size: 13px !important;
    line-height: 1.2 !important;
    color: #2b2a29;
    font-weight: 500;
    margin: 0 !important;
}

.instructor-car {
    font-size: 11px !important;
    line-height: 1.2 !important;
    color: #7d7d85;
    margin: 0 !important;
}

.instructor-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.instructor-name {
    font-size: 16px;
    font-weight: bold;
    color: #2b2a29;
    margin: 0;
    line-height: 1.2;
}

.instructor-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.instructor-btn {
    background: #264796;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 5px 14px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.instructor-btn:hover {
    background: #1d3673;
}

.instructor-icon {
    font-size: 18px;
    color: #264796;
    font-weight: bold;
}

.card-yandex {
    background-color: #f7002d;
    background-size: cover;
    background-position: center;
    border: none;
    color: #ffffff;
    padding: 24px 16px;
}

.yandex-brand {
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    display: block;
}

.yandex-badge {
    margin-top: 20px;
    border: 2px solid #ffffff;
    padding: 6px;
    display: inline-block;
    border-radius: 4px;
    text-align: center;
    max-width: 90px;
}

.yandex-badge-text {
    font-size: 9px;
    text-transform: uppercase;
    display: block;
    line-height: 1;
}

.yandex-badge-year {
    font-size: 16px;
    font-weight: bold;
    display: block;
    margin-top: 2px;
}

.card-reviews {
    background: #ff0000;
    color: #ffffff;
    border: none;
    padding: 20px;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reviews-label {
    font-size: 15px;
}

.reviews-btn {
    background: #ffffff;
    color: #ff0000;
    border: none;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
}

.reviews-title {
    font-size: 36px;
    font-weight: 900;
    margin: 10px 0 0 0;
    line-height: 1;
}

.reviews-sub {
    font-size: 14px !important;
    color: #ffffff;
    margin: 0 !important;
}

.card-experience {
    background: #264796;
    color: #ffffff;
    border: none;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.exp-number {
    font-size: 64px;
    font-weight: bold;
    line-height: 1;
}

.exp-text {
    font-size: 18px;
    line-height: 1.2;
    margin-top: 5px;
}

.card-all {
    background: #f0f2f5;
    border: 1px solid #e1e4ed;
}

.all-title {
    font-size: 22px;
    font-weight: bold;
    color: #2b2a29;
    text-transform: lowercase;
    margin: 0;
    line-height: 1.1;
}

.all-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
}

.all-btn {
    background: #2b2a29;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 11px;
    cursor: pointer;
}

.all-graphics {
    display: flex;
    align-items: flex-end;
}

.icon-user {
    width: 20px;
    height: 20px;
    border-radius: 50% 50% 0 0;
    display: inline-block;
    margin-left: -5px;
    position: relative;
}

.icon-user::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    top: -8px;
    left: 5px;
}

.user-blue {
    background: #264796;
}
.user-blue::before {
    background: #264796;
}
.user-green {
    background: #28a745;
    z-index: 2;
    width: 24px;
    height: 24px;
}
.user-green::before {
    background: #28a745;
    left: 7px;
    top: -10px;
}
.user-red {
    background: #ff0000;
    z-index: 1;
}
.user-red::before {
    background: #ff0000;
}

@media (max-width: 1200px) {
    .instructors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .instructors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .instructors-container {
        padding: 0 20px;
    }
}

@media (max-width: 600px) {
    .instructors-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .instructor-card {
        min-height: auto;
    }
}

.prestige-advantages {
    max-width: 1280px;
    margin: 0 auto;
    background-color: #ffffff;
    color: #2b2a29;
}

.prestige-title {
    font-size: 54px;
    font-weight: bold;
    color: #264796;
    margin: 0 0 60px 0;
    letter-spacing: -1px;
}

.prestige-title .blue-text {
    color: #264796;
}

.prestige-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 50px;
    row-gap: 70px;
}

.prestige-card {
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}
.red-box img {
    margin-bottom: -15px;
}

.card-title {
    font-size: 26px;
    font-weight: normal;
    color: #2b2a29;
    margin: 0;
}

.card-accent-text {
    font-size: 20px;
    line-height: 100%;
    color: #2b2a29;
    font-weight: normal !important;
    margin: 0;
    margin-bottom: 20px;
}

.card-list {
    margin: 0;
    padding-left: 16px;
    list-style-type: disc;
}

.card-list.no-lead {
    padding-left: 16px;
}

.card-list li {
    font-size: 16px;
    line-height: 1.4;
    color: #2b2a29;
    margin-bottom: 10px;
}

.card-list li::marker {
    font-size: 12px;
}

.card-btn-red {
    background-color: #ff0000;
    color: #ffffff;
    border: none;
    border-radius: 24px;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: normal;
    cursor: pointer;
    margin-top: 30px;
    align-self: flex-start;
    transition: background-color 0.2s ease;
}

.card-btn-red:hover {
    background-color: #cc0000;
}

.card-big-desc {
    font-size: 20px !important;
    font-weight: normal !important;
    line-height: 1.2;
    color: #2b2a29;
    margin: 0;
}

@media (max-width: 1024px) {
    .prestige-title {
        font-size: 42px;
        margin-bottom: 40px;
    }
    .prestige-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 30px;
        row-gap: 50px;
    }
    .card-accent-text,
    .card-big-desc {
        font-size: 20px;
    }
}

@media (max-width: 650px) {
    .prestige-advantages {
        padding: 40px 20px;
    }
    .prestige-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    .prestige-grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }
    .card-accent-text,
    .card-big-desc {
        font-size: 28px;
    }
    .card-title {
        font-size: 22px;
    }
}

.steps-section {
    font-family: "Arial", sans-serif;
    max-width: 1340px;
    margin: 0 auto;
    padding: 60px 40px;
    background-color: #ffffff;
    color: #2b2a29;
}

.steps-main-title {
    font-size: 40px;
    font-weight: bold;
    line-height: 1.2;
    margin: 0 0 50px 0;
    letter-spacing: -0.5px;
}

.steps-main-title .blue-text {
    color: #264796;
}

.steps-canvas {
    position: relative;
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}

.steps-canvas:after,
.block-3:after {
    content: "";
    display: block;
    clear: both;
}

.steps-line {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.steps-line-1 {
    left: 3.6%;
    top: 0;
    width: 52.7%;
    height: 25px;
    border-top: 3px dashed #264796;
    border-radius: 100% 100% 0 0 / 100% 100% 0 0;
}

.canvas-step-block {
    box-sizing: border-box;
    padding: 15px;
    position: relative;
}

.step-num-badge {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.step-num-badge svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.step-num-badge text {
    font-family: "Arial Black", sans-serif;
    font-size: 55px;
    font-weight: 900;

    fill: #ffffff;
    stroke: #1a52b8;

    stroke-width: 26px;

    stroke-linejoin: round;
    stroke-linecap: round;

    paint-order: stroke fill;
}

.step-title-text {
    font-size: 17px;
    font-weight: bold;
    color: #2b2a29;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.step-desc-text {
    font-size: 14px !important;
    line-height: 1.45 !important;
    color: #444444;
    margin: 0 0 14px 0 !important;
}

.step-points-list {
    margin: 0;
    padding-left: 14px;
    list-style-type: disc;
}

.step-points-list li {
    font-size: 13px;
    line-height: 1.45;
    color: #444444;
    margin-bottom: 4px;
}

.step-action-btn {
    background-color: #264796;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.step-action-btn:hover {
    background-color: #1d3673;
}
/*
.w-step-1 {
    max-width: 280px;
}
.w-step-2 {
    max-width: 290px;
}
.w-step-3 {
    max-width: 250px;
}
.w-step-4 {
    max-width: 290px;
}
.w-step-5 {
    max-width: 320px;
}
.w-step-6 {
    max-width: 260px;
} */

.block-1 {
    width: 40%;
}
.block-1 .step-num-badge {
    left: -15px;
}
.w-step-1 {
    padding-top: 15px;
    padding-left: 25px;
}

.block-2 {
    width: 25%;
}
.block-2 .step-num-badge {
    right: 50px;
    top: -15px;
}
.w-step-2 {
    padding-top: 15px;
}

.block-3 {
    width: 35%;
}
.block-3 .step-num-badge {
    right: 200px;
    top: 0px;
}
.w-step-3 {
    padding-top: 15px;
    padding-left: 25px;
    padding-right: 60px;
}

.block-4 {
    width: 30%;
}
.block-4 .step-num-badge {
    left: -35px;
    top: 15px;
}
.w-step-4 {
    padding-top: 15px;
    padding-right: 60px;
}

.block-5 {
    width: 35%;
}
.block-5 .step-num-badge {
    right: 110px;
    top: 50px;
}
.w-step-5 {
    padding-top: 75px;
    padding-left: 25px;
    padding-right: 60px;
}

.block-6 {
    width: 35%;
}
.block-6 .step-num-badge {
    right: 125px;
    bottom: 50px;
}
.w-step-6 {
    padding-top: 75px;
    padding-left: 25px;
    padding-right: 60px;
}

.text-right-align {
    text-align: right;
}

.block-6 .step-title-text {
    margin-bottom: 6px;
}

.block-6 .step-desc-text {
    margin-bottom: 0 !important;
}

@media (max-width: 1150px) {
    .steps-line {
        display: none;
    }

    .steps-canvas {
        height: auto;
        background-image: none;
        display: flex;
        flex-direction: column;
        gap: 45px;
    }

    .canvas-step-block {
        position: static;
        width: 100%;
        align-items: flex-start !important;
        gap: 16px !important;
    }

    .step-content-box {
        max-width: 100% !important;
        text-align: left !important;
    }

    .block-2,
    .block-3,
    .block-5,
    .block-6 {
        flex-direction: row !important;
    }

    .block-6 .step-card-header {
        display: flex;
        align-items: center;
        margin-bottom: 12px;
    }

    .block-6 .step-card-header .step-title-text {
        margin: 0;
    }

    .block-6 .step-card-header::before {
        content: "6";
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-size: 48px;
        font-weight: bold;
        min-width: 40px;
        flex-shrink: 0;
        line-height: 1;
        margin-right: 16px;
        text-shadow:
            3px 0 0 #264796,
            2.77px 1.15px 0 #264796,
            2.12px 2.12px 0 #264796,
            1.15px 2.77px 0 #264796,
            0 3px 0 #264796,
            -1.15px 2.77px 0 #264796,
            -2.12px 2.12px 0 #264796,
            -2.77px 1.15px 0 #264796,
            -3px 0 0 #264796,
            -2.77px -1.15px 0 #264796,
            -2.12px -2.12px 0 #264796,
            -1.15px -2.77px 0 #264796,
            0 -3px 0 #264796,
            1.15px -2.77px 0 #264796,
            2.12px -2.12px 0 #264796,
            2.77px -1.15px 0 #264796,
            6px 0 0 #264796,
            5.54px 2.3px 0 #264796,
            4.24px 4.24px 0 #264796,
            2.3px 5.54px 0 #264796,
            0 6px 0 #264796,
            -2.3px 5.54px 0 #264796,
            -4.24px 4.24px 0 #264796,
            -5.54px 2.3px 0 #264796,
            -6px 0 0 #264796,
            -5.54px -2.3px 0 #264796,
            -4.24px -4.24px 0 #264796,
            -2.3px -5.54px 0 #264796,
            0 -6px 0 #264796,
            2.3px -5.54px 0 #264796,
            4.24px -4.24px 0 #264796,
            5.54px -2.3px 0 #264796,
            9px 0 0 #264796,
            8.32px 3.44px 0 #264796,
            6.36px 6.36px 0 #264796,
            3.44px 8.32px 0 #264796,
            0 9px 0 #264796,
            -3.44px 8.32px 0 #264796,
            -6.36px 6.36px 0 #264796,
            -8.32px 3.44px 0 #264796,
            -9px 0 0 #264796,
            -8.32px -3.44px 0 #264796,
            -6.36px -6.36px 0 #264796,
            -3.44px -8.32px 0 #264796,
            0 -9px 0 #264796,
            3.44px -8.32px 0 #264796,
            6.36px -6.36px 0 #264796,
            8.32px -3.44px 0 #264796;
    }

    .block-6 .step-num-badge {
        display: none;
    }
}

@media (max-width: 650px) {
    .steps-section {
        padding: 40px 20px;
    }
    .steps-main-title {
        font-size: 26px;
    }
}

/* Блок «С нами мечта о правах станет реальностью» (шаги получения прав) */
.content-block__data.steps-car {
    padding: 0;
    border-radius: 36px;
}
.steps-car__inner {
    position: relative;
    width: 100%;
    height: 864.1px;
    color: #2b2a29;
}
.steps-car .steps-car__title {
    position: absolute;
    left: 67.8px;
    top: 82.6px;
    margin: 0;
    padding: 0;
    font-size: 49.2px;
    line-height: 1.1;
    font-weight: bold;
    color: #2b2a29;
}
.steps-car__line {
    position: absolute;
    left: 75.8px;
    top: 224.8px;
    width: 1142.4px;
    height: auto;
    pointer-events: none;
}
.steps-car__car {
    position: absolute;
    left: 74.7px;
    top: 203.5px;
    width: 96.3px;
    height: auto;
    z-index: 2;
    transform-origin: 50% 50%;
    will-change: transform;
    pointer-events: none;
}
.steps-car__steps {
    margin: 0;
    padding: 0;
    list-style: none;
}
.steps-car__step {
    position: absolute;
    margin: 0;
    padding: 0;
}
.steps-car__step--1 {
    left: 56px;
    top: 279.2px;
    width: 410.9px;
    height: 194.7px;
}
.steps-car__step--2 {
    left: 522px;
    top: 244.8px;
    width: 252.7px;
    height: 276.3px;
}
.steps-car__step--3 {
    left: 829.7px;
    top: 285.1px;
    width: 330.3px;
    height: 157.3px;
}
.steps-car__step--4 {
    left: 833.7px;
    top: 545.6px;
    width: 369.6px;
    height: 224.1px;
}
.steps-car__step--5 {
    left: 438.5px;
    top: 572.2px;
    width: 330.3px;
    height: 241.8px;
}
.steps-car__step--6 {
    left: 87.5px;
    top: 568.2px;
    width: 271.3px;
    height: 170.1px;
}
.steps-car__num {
    position: absolute;
    display: block;
    width: 27.5px;
    height: 49.2px;
}
.steps-car__num svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.steps-car__num text {
    font-family: "Evolventa", sans-serif;
    font-size: 50px;
    font-weight: bold;
    line-height: 1;
    text-anchor: middle;
    dominant-baseline: central;
    fill: #ffffff;
    stroke: #264796;
    stroke-width: 12px;
    stroke-linejoin: round;
    stroke-linecap: round;
    paint-order: stroke fill;
}
.steps-car__step--1 .steps-car__num {
    left: 0;
    top: 0;
}
.steps-car__step--2 .steps-car__num {
    left: 83.27%;
    top: 0;
}
.steps-car__step--3 .steps-car__num {
    left: 66.67%;
    top: 6.9px;
}
.steps-car__step--4 .steps-car__num {
    left: 0;
    top: 0;
}
.steps-car__step--5 .steps-car__num {
    left: 78.87%;
    top: 0;
}
.steps-car__step--6 .steps-car__num {
    left: 57.25%;
    top: 120.9px;
}
.steps-car__body {
    position: absolute;
}
.steps-car__step--1 .steps-car__body {
    left: 38.3px;
    top: 5.9px;
    width: 372.6px;
}
.steps-car__step--2 .steps-car__body {
    left: 0;
    top: 40.3px;
    width: 252.7px;
}
.steps-car__step--3 .steps-car__body {
    left: 0;
    top: 0;
    width: 330.3px;
}
.steps-car__step--4 .steps-car__body {
    left: 39.3px;
    top: 7.9px;
    width: 330.3px;
}
.steps-car__step--5 .steps-car__body {
    left: 0;
    top: 45.2px;
    width: 330.3px;
}
.steps-car__step--6 .steps-car__body {
    left: 0;
    top: 0;
    width: 271.3px;
}
.steps-car .steps-car__step-title {
    margin: 0 0 19.7px;
    padding: 0;
    font-size: 19.7px;
    line-height: 1.15;
    font-weight: bold;
    color: #2b2a29;
}
.steps-car .steps-car__step-text {
    /* Шаги расставлены абсолютно по макету, поэтому интерлиньяж держим умеренным:
       при большем значении текст залезает на пунктирную линию. */
    margin: 0;
    padding: 0;
    font-size: 19.7px;
    line-height: 1.15;
    color: #2b2a29;
}
.steps-car__list {
    margin: 8px 0 0;
    padding-left: 11.8px;
    list-style: disc outside;
}
.steps-car__list li {
    margin: 0 0 3px;
    padding: 0;
    font-size: 19.7px;
    line-height: 1.15;
    color: #2b2a29;
}
.steps-car__btn {
    display: inline-block;
    margin-top: 19.7px;
    padding: 11.8px 28.5px 13.8px;
    border: none;
    border-radius: 372.6px;
    background-color: #264796;
    color: #ffffff;
    font-family: inherit;
    font-size: 19.7px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s;
}
.steps-car__btn:hover {
    background-color: #1d3673;
}
@media (max-width: 1300px) {
    .steps-car__inner {
        height: auto;
        padding: 40px;
    }
    .steps-car .steps-car__title,
    .steps-car__line,
    .steps-car__car,
    .steps-car__step,
    .steps-car__step .steps-car__body {
        position: static;
        width: auto;
        height: auto;
    }
    .steps-car__line,
    .steps-car__car {
        display: none;
    }
    .steps-car .steps-car__title {
        margin-bottom: 30px;
        font-size: 32px;
    }
    .steps-car__steps {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    .steps-car__step {
        display: flex;
        align-items: flex-start;
        gap: 16px;
    }
    .steps-car__num {
        position: static;
        flex-shrink: 0;
        margin-top: 4px;
    }
    .steps-car__step .steps-car__body {
        position: static;
        width: auto;
    }
}


/* ---------------------------------------------------------------------------
   Адаптивная вёрстка главной страницы.

   Базовые стили выше рассчитаны на макет 1280px, поэтому ниже контейнер
   сжимается вместе с экраном, а брейкпоинты (1279 / 1200 / 1024 / 900 /
   768 / 480) последовательно перестраивают блоки.
--------------------------------------------------------------------------- */

/* Контейнер больше не фиксированный: на узких экранах появляются отступы. */
.wrapper {
    width: 100%;
    max-width: 1280px;
}

/* Шапка: города вынесены в отдельный ряд, который может скроллиться. */
.cities__list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 12px;
    min-width: 0;
    margin: 0 10px 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cities__list::-webkit-scrollbar {
    display: none;
}
.cities__list .city {
    white-space: nowrap;
}

@media (max-width: 1279px) {
    .wrapper {
        padding: 0 20px;
    }
}

@media (max-width: 1200px) {
    .success {
        font-size: 28px;
    }
    .city {
        font-size: 16px;
    }
    .menu-button {
        width: 46px;
        height: 46px;
        flex-shrink: 0;
    }

    .content-block H2 {
        font-size: 44px;
    }
    .content-block p {
        font-size: 30px;
    }
    .main-list {
        font-size: 28px;
    }
    .content-block .comment {
        font-size: 21px;
    }

    .block-right {
        width: 340px;
        margin-left: 25px;
    }

    .free-week,
    .true-online {
        height: 440px;
    }
    .free-week {
        padding: 30px;
    }
    .free-week img {
        width: 360px;
        right: 20px;
    }
    .free-week p {
        width: 62%;
        font-size: 18px;
    }

    .mobile-app .padded {
        padding-right: 500px;
    }
    .mobile-app img:last-child {
        width: 440px;
        right: 20px;
    }

    .promo p {
        font-size: 26px;
    }
    .promo-block h3 {
        font-size: 22px;
    }
    .promo-block p {
        font-size: 20px;
    }

    .advantages li span {
        font-size: 26px;
    }
    .district-list span {
        font-size: 38px;
    }
    .main-office__phone {
        font-size: 26px;
    }
    .free-for-all {
        font-size: 24px;
    }
}

@media (max-width: 1024px) {
    /* Шапка: строка городов больше не помещается рядом с логотипом — переносим её под логотип. */
    .header H1 {
        flex-wrap: wrap;
        gap: 10px;
    }
    .cities {
        flex: 1 1 100%;
        min-width: 0;
        margin-left: 0;
    }

    .content-raw {
        flex-direction: column;
    }

    .content-block H2 {
        font-size: 38px;
    }
    .content-block p {
        font-size: 26px;
    }
    .main-list {
        font-size: 24px;
    }
    .content-block .comment {
        font-size: 19px;
    }

    /* Первый экран: фото ученика и форма встают рядом под текстом. */
    .block-left {
        width: 100%;
    }
    .block-right {
        display: flex;
        width: 100%;
        margin: 20px 0 0;
        gap: 20px;
    }
    .block-right > .content-block__data {
        flex: 1 1 0;
        min-width: 0;
    }
    .block-right > .content-block__data.mt40 {
        margin-top: 0;
    }
    .student img:first-child {
        width: 110px;
        top: calc(50% - 90px);
    }

    .free-week {
        height: 420px;
    }
    .free-week img {
        width: 320px;
    }
    .free-week p {
        /* Оставляем место справа под картинку, иначе текст заходит под неё. */
        width: 46%;
        font-size: 18px;
    }

    /* Приложение: телефон перестаёт быть абсолютным и встаёт под списком. */
    .mobile-app .padded {
        padding-right: 0;
    }
    .mobile-app img:last-child {
        position: static;
        display: block;
        width: min(100%, 520px);
        height: auto;
        margin: 30px auto 0;
    }

    .true-online {
        height: auto;
        min-height: 440px;
        padding-bottom: 80px;
    }

    .promo {
        padding-right: 40%;
    }
}

@media (max-width: 900px) {
    /* Центральный офис: карта уходит под список. */
    .main-office {
        flex-direction: column;
    }
    .main-office > div {
        width: 100%;
    }
    .main-office #map {
        min-height: 320px;
        margin-top: 20px;
    }

    /* Автодром: блоки друг под другом, фото собираются в сетку. */
    .square-block {
        flex-direction: column;
    }
    .square-block .advantages-list,
    .square-block .square {
        width: 100%;
    }
    .square {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 24px 40px 40px;
        background-color: #e9eef8;
        background-image: none;
    }
    .square-photo {
        position: static;
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 6px 18px rgba(38, 71, 150, 0.18);
    }
    .advantages-list {
        padding: 40px 40px 20px;
    }

    /* «Первая неделя бесплатно»: текст и картинка уже не помещаются в один ряд. */
    .free-week {
        height: auto;
        padding: 24px 24px 28px;
    }
    .free-week img {
        position: static;
        display: block;
        width: min(70%, 320px);
        height: auto;
        margin: 20px 0 0 auto;
    }
    .free-week p {
        position: static;
        width: 100%;
        margin-top: 20px;
        padding: 14px 16px;
        border-radius: 14px;
        background: rgba(38, 71, 150, 0.85);
        font-size: 17px;
    }

    .district-list span {
        font-size: 32px;
    }

    .cities__list {
        justify-content: flex-start;
        gap: 24px;
    }

    .promo {
        padding-right: 30%;
    }
}

@media (max-width: 768px) {
    .wrapper {
        padding: 0 12px;
    }

    /* Шапка: логотип сверху, строка городов — во всю ширину под ним. */
    .header {
        margin: 10px 0;
    }
    .header H1 {
        flex-wrap: wrap;
        gap: 10px;
    }
    .logo {
        width: 180px;
        height: auto;
    }
    .cities {
        flex: 1 1 100%;
        margin-left: 0;
        padding: 8px 10px;
        border-radius: 24px;
    }
    .success {
        font-size: 20px;
    }
    .city {
        font-size: 14px;
    }
    .city::before {
        content: "";
        display: inline-block;
        width: 12px;
        height: 17px;
        margin-right: 5px;
        background: url("/assets/images/map_label.svg") center / contain no-repeat;
        vertical-align: -2px;
    }
    .cities__list {
        margin: 0 8px;
        gap: 14px;
    }
    .menu-button {
        width: 40px;
        height: 40px;
    }
    .menu-button img {
        width: 18px;
        height: auto;
    }
    .burger-menu {
        width: min(320px, calc(100vw - 24px));
        min-width: 0;
        max-height: calc(100vh - 140px);
    }
    .burger-menu__list a {
        padding: 10px 20px;
        font-size: 17px;
    }

    .content-raw {
        margin-top: 20px;
    }
    .content-block__data {
        padding: 20px;
        border-radius: 20px;
    }
    .content-block H2 {
        font-size: 30px;
        margin-bottom: 16px;
    }
    .content-block p {
        font-size: 20px;
    }
    .main-list {
        font-size: 20px;
        margin-top: 18px;
        padding-left: 24px;
    }
    .content-block .comment {
        font-size: 16px;
    }

    .block-right {
        display: block;
    }
    .block-right > .content-block__data.mt40 {
        margin-top: 20px;
    }
    .student img:first-child {
        width: 100px;
        left: 0;
        top: calc(50% - 70px);
    }

    .cats-block {
        flex-wrap: wrap;
        gap: 8px;
    }
    .cats-block img {
        height: 34px;
        margin-right: 8px;
    }

    /* Первая неделя бесплатно: текст и картинка в обычном потоке. */
    .free-week,
    .true-online {
        height: auto;
        padding: 24px 20px 28px;
        border-radius: 20px;
    }
    .free-week img {
        position: static;
        display: block;
        width: min(80%, 300px);
        height: auto;
        margin: 20px 0 0 auto;
    }
    .free-week p {
        position: static;
        width: 100%;
        margin-top: 20px;
        font-size: 16px;
    }

    /* Настоящий онлайн */
    .lists {
        flex-direction: column;
        align-items: stretch;
    }
    .lists ul:last-child {
        margin-left: 0;
        margin-top: 20px;
    }
    .true-online .main-list {
        font-size: 20px;
    }
    p.joke {
        position: static;
        margin-top: 24px;
        font-size: 15px;
    }

    /* Мобильное приложение */
    .mobile-app img:last-child {
        width: min(100%, 420px);
        margin-top: 20px;
    }
    .mobile-app .free-for-all {
        font-size: 18px;
        margin-top: 20px;
    }
    .mobile-app .free-for-all > img {
        width: 42px;
        height: 42px;
        margin-right: 10px;
    }

    /* Районы и офис */
    .district-list {
        padding: 16px 0 0;
    }
    .district-list span {
        margin: 6px;
        padding: 6px 10px;
        font-size: 22px;
    }
    .main-office #map {
        min-height: 260px;
    }
    .main-office__phone {
        margin-top: 18px;
        font-size: 22px;
    }
    .main-office__phone img {
        height: 34px;
    }

    /* Автодром */
    .advantages-list {
        padding: 20px 20px 12px;
    }
    .advantages li div {
        width: 40px;
    }
    .advantages li div img {
        max-width: 100%;
        height: auto;
    }
    .advantages li span {
        margin-left: 12px;
        font-size: 20px;
    }
    .square {
        gap: 10px;
        padding: 0 20px 20px;
    }
    .square-photo {
        height: 140px;
    }

    /* Акции */
    .promo {
        padding-right: 20px;
        background-image: none;
    }
    .promo p {
        font-size: 20px;
    }
    .promo p + p {
        margin-top: 16px;
    }
    .promo-block {
        width: 100%;
        margin-bottom: 20px;
        padding-right: 0;
    }
    .promo-block h3 {
        font-size: 20px;
    }
    .promo-block p {
        font-size: 17px;
    }

    /* Категории и «Выбери пару» */
    .cat_icons {
        padding-top: 0;
    }
    .cat_icons img {
        width: auto;
        height: 54px;
        max-width: 100%;
        margin: 4px 2px;
    }
    .together {
        padding: 20px;
    }
    .together h2 {
        font-size: 30px;
    }
    .together img {
        height: 64px;
        max-width: 100%;
        margin-bottom: 10px;
    }

    /* Карусель: по одному слайду, управление свайпом. */
    .hover-zone {
        display: none;
    }
    .slide {
        flex: 0 0 100%;
        height: auto;
        min-height: 300px;
        margin-right: 20px;
        padding: 24px 20px 80px;
        border-radius: 24px;
    }
    .slide .title H3 {
        font-size: 28px;
        line-height: 1.1;
    }
    .slide .title img {
        width: auto;
        height: 40px;
        margin-right: 10px;
        margin-left: 0;
    }
    .slide p {
        margin-top: 8px;
        font-size: 16px;
    }
    .slide button {
        left: 20px;
        bottom: 24px;
        padding: 10px 24px;
        font-size: 16px;
    }

    /* Видео-отзывы */
    .content-block__data--reviews {
        padding: 30px 16px 24px;
    }
    .content-block .reviews-title {
        margin-bottom: 22px;
        font-size: 26px;
    }
    .review-videos {
        gap: 12px;
    }

    /* Почему выбирают «Престиж» */
    .prestige-advantages {
        padding: 0;
    }
    .prestige-title {
        font-size: 30px;
        margin-bottom: 24px;
    }
    .prestige-grid {
        row-gap: 26px;
    }

    /* Шесть шагов */
    .steps-car__inner {
        padding: 24px 20px 30px;
    }
    .steps-car .steps-car__title {
        margin-bottom: 24px;
        font-size: 26px;
    }
    .steps-car__steps {
        gap: 24px;
    }
    .steps-car .steps-car__step-title,
    .steps-car .steps-car__step-text,
    .steps-car__list li,
    .steps-car__btn {
        font-size: 16px;
    }
    .steps-car__num {
        width: 22px;
        height: 40px;
    }

    /* Модальные окна */
    .modal__dialog {
        padding: 30px 0;
        border-radius: 20px;
    }
    .modal__close {
        width: 44px;
        height: 44px;
    }
    .modal-video,
    .exams-reviews {
        padding: 0 20px;
    }
    .modal__content .review-videos {
        padding: 0 16px;
    }
    .modal__content p,
    .modal-video__desc {
        font-size: 16px;
    }
    .footer {
        height: 60px;
    }
}

/* Узкие планшеты и телефоны: города не помещаются в одну строку с «С нами сдают!»,
   поэтому внутри белой плашки они уходят на вторую строку. */
@media (max-width: 660px) {
    .cities {
        flex-wrap: wrap;
    }
    .success {
        order: 1;
    }
    .menu-button {
        order: 2;
        margin-left: auto;
    }
    .cities__list {
        order: 3;
        flex: 1 1 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
        margin: 8px 0 0;
        overflow: visible;
    }
}

@media (max-width: 480px) {
    .wrapper {
        padding: 0 10px;
    }
    .logo {
        width: 150px;
    }
    .cities {
        padding: 7px 10px;
    }
    .success {
        font-size: 17px;
    }
    .city {
        font-size: 12px;
    }
    .cities__list {
        gap: 4px 12px;
        margin-top: 6px;
    }

    .content-block__data {
        padding: 16px;
        border-radius: 16px;
    }
    .content-block H2 {
        font-size: 24px;
    }
    .content-block p {
        font-size: 17px;
    }
    .main-list {
        font-size: 17px;
        padding-left: 20px;
    }

    .free-week,
    .true-online {
        padding: 20px 16px 24px;
    }
    .free-week p,
    .true-online .main-list,
    .mobile-app .free-for-all {
        font-size: 15px;
    }
    .together {
        padding: 16px;
    }

    .district-list span {
        margin: 4px;
        padding: 4px 8px;
        font-size: 18px;
    }
    .advantages li span {
        font-size: 17px;
    }
    .square {
        gap: 8px;
        padding: 16px;
    }
    .square-photo {
        height: 120px;
        border-radius: 10px;
    }

    .slide {
        padding: 20px 16px 76px;
    }
    .slide .title H3 {
        font-size: 24px;
    }
    .slide button {
        left: 16px;
        bottom: 20px;
    }
    .content-block .reviews-title {
        font-size: 24px;
    }
    .prestige-title {
        font-size: 24px;
    }
    .modal__title {
        font-size: 22px;
    }
    .modal__content p,
    .modal-video__desc {
        font-size: 15px;
    }
}

/* Очень узкие телефоны (iPhone SE 1-го поколения и подобные). */
@media (max-width: 380px) {
    .city {
        font-size: 11px;
    }
    .cities__list {
        gap: 4px 8px;
    }
    .modal__close {
        top: 6px;
        right: 8px;
        width: 44px;
        height: 44px;
    }
}

/* Форма заявки на первом экране: поля в стиле блока обратной связи,
   ошибки и подтверждение отправки. */
.contact-form .field {
    margin-bottom: 15px;
}
.contact-form .field input[type="text"],
.contact-form .field input[type="tel"] {
    height: auto;
    padding: 19px;
    border-radius: 16px;
    font-size: 16px;
    text-align: center;
}
.contact-form .field__error,
.form__error {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.2;
    color: #ff0000;
}
.contact-form .field__error {
    text-align: center;
}
.form__success {
    margin: 0 0 15px;
    font-size: 15px;
    line-height: 1.2;
    color: #1a7f37;
    text-align: center;
}

