/* Подключение шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&family=Unbounded:wght@500&display=swap');

/* ========================
   Базовые сбросы и переменные
   ======================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

b, strong {
    font-weight: 500;  
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fcfcfc;
    color: #000;
    overflow-x: hidden;
}

a[href^="tel"] {
    color: inherit !important;
    text-decoration: none !important;
    background: transparent !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;                  
}

main {
    margin-top: 160px; 
}

/* ========================
   Шапка
   ======================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: #fcfcfc;
    padding-top: 30px;
    padding-bottom: 30px;
    margin: 0;
}

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

.logo__img {
    height: 67px;
    width: auto;
    display: block;
}

.nav__list {
    display: flex;
    gap: 38px;
    list-style: none;
}

.nav__list a {
    text-decoration: none;
    color: #000;
    font-size: 18px;
    font-weight: 400;
    transition: color 0.2s;
}

.nav__list a:hover {
    color: #D90D26;
}

/* Кнопки общего стиля */
.btn {
    border: none;
    cursor: pointer;
    color: #fcfcfc;
    background: linear-gradient(-41deg, #D90D26, #E94055, #D90D26);
    border-radius: 10px;
    font-weight: 400;
    transition: opacity 0.3s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn--login {
    width: 150px;
    height: 60px;
    font-size: 18px;
    line-height: 3.3; 
    text-align: center;
}

/* ========================
   Первый экран (Hero)
   ======================== */
.hero__title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 200;
    font-size: 87px;
    line-height: 1;
    margin-bottom: 45px;
    text-align: center;
    color: #000;
    display: flex;
    align-items: baseline;
    gap: 66px;
    word-spacing: 0;
    text-transform: uppercase;
}

.hero__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
}

.hero__subtitle {
    font-size: 25px;
    font-weight: 400;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.btn--cta {
    width: 280px;
    height: 70px;
    font-size: 22px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

/* ========================
   Карточки курсов
   ======================== */
.cards {
    display: flex;
    gap: 10px;
    margin-bottom: 100px;
    align-items: stretch;
}

.card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: all 0.35s ease;
}

/* Развёрнутая карточка */
.card--expanded {
    overflow: hidden;
    width: 580px;
    height: 270px;
    background: linear-gradient(-65deg, #F0F0F0, #F9F9F9, #F0F0F0);
    border: 2px solid #D90D26;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card__content {
    position: relative;
    display: flex;
    height: 100%;
    width: 100%;
}

.card__info {
    position: relative;
    z-index: 1;
    padding: 30px 0 30px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 70%;
}

.card__title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 5px;
}

.card__category {
    font-size: 20px;
    font-weight: 100;
    color: #808080;
    margin-bottom: auto;
}

.card__img-small {
    position: absolute;
    top: 15px;
    width: 520px;
    height: 245px;
    object-fit: cover;
    z-index: 0;
}

.card__visual {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow: hidden;
}

.card__img-big {
    width: 147.13px;
    height: 241px;
    object-fit: cover;
    display: block;
    margin: 0;
}

.card--expanded .card__img-big {
    opacity: 0.4;  /* лёгкая прозрачность */
}

.btn--detail {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 277px;
    height: 42px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 2;
}

.arrow {
    display: inline-block;
    width: 40px;
    height: 1.5px;
    background-color: #fcfcfc;
    position: relative;
}

.arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #fcfcfc;
    border-top: 1.5px solid #fcfcfc;
}

/* Свёрнутые карточки */
.card--collapsed1,
.card--collapsed2 {
    width: 145px;
    height: 270px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 0 2px transparent;
    transition: box-shadow 0.5s, background-color 0.2s;
}

.card--collapsed1 {
    background-color: #F0F0F0;
}

.card--collapsed2 {
    background-color: #E7E7E7;
}

.card--collapsed1:hover,
.card--collapsed2:hover {
    box-shadow: 0 0 0 2px #ffaaaa;
}

.card__collapsed-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.card--expanded .card__content {
    animation: fadeInContent 0.7s ease;
}

.card__icon {
    max-width: 135px;
    max-height: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@keyframes fadeInContent {
    from { opacity: 0; transform: translateX(5px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ========================
   Секция "О центре"
   ======================== */
.about__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 50px;
    margin-bottom: 30px;
}

.about__content {
    display: flex;
    align-items: flex-start;
    gap: 43px;
    margin-bottom: 30px;
}

.about__text {
    font-weight: 300;
    font-size: 18px;
    line-height: 1.5;
    color: #000;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.about__text--main {
    width: 723px;
    flex-shrink: 0;
}

.about__stats {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

.stat-box {
    width: 207px;
    height: 110px;
    border: 3px solid #24486B;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

.stat-box__value {
    font-size: 35px;
    font-weight: 500;
    color: #000;
    margin-bottom: 1px;
    font-family: 'Montserrat', sans-serif;
}

.stat-box__label {
    font-size: 18px;
    font-weight: 500;
    color: #000;
    font-family: 'Montserrat', sans-serif;
}

.about__bottom {
    display: flex;
    align-items: flex-start;
    gap: 43px;
}

.about__text--secondary {
    width: 723px;
    text-align: right;
}

/* ========================
   Секция "Филиалы"
   ======================== */
.branches {
    margin-top: 100px;
    margin-bottom: 100px;
}

.branches__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 50px;
    margin-bottom: 30px;
}

.branches__grid {
    display: grid;
    grid-template-columns: repeat(3, 373px);
    gap: 40px;
    justify-content: center;
}

.branch-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.branch-card__img {
    width: 373px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.branch-card__caption {
    margin-top: 15px;
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    color: #000;
    font-family: 'Montserrat', sans-serif;
}

/* ========================
   Филиалы: hover-эффект с иконкой
   ======================== */
.branch-card__img-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    display: block;
}
.branch-card__img {
    display: block;
    width: 373px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    transition: filter 0.3s;
}
.branch-card__img-wrap:hover .branch-card__img {
    filter: brightness(0.6);
    cursor: pointer;
}
.branch-card__img-wrap::after {
    content: url('../images/increase.svg');
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.branch-card__img-wrap:hover::after {
    opacity: 1;
}

/* ========================
   Оверлей галереи
   ======================== */
.gallery-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(33, 33, 33, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.gallery-overlay.active {
    display: flex;
}
.gallery-container {
    position: relative;
    width: 850px;
    height: 500px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

/* Прозрачные области для листания */
.gallery-area {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    z-index: 5;
    cursor: pointer;
}
.gallery-area--left {
    left: 0;
}
.gallery-area--right {
    right: 0;
}

.gallery-slides {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.3s;
}
.gallery-slides img {
    width: 850px;
    height: 500px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Точки */
.gallery-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    align-items: center;
}
.gallery-dot {
    width: 14px;         
    height: 14px;
    border-radius: 50%;
    background: #f0f0f0;  
    cursor: pointer;
    transition: all 0.3s;
}
.gallery-dot.active {
    background: #717171;   
    transform: scale(1.3);
}

/* ========================
   Секция "Схема проезда"
   ======================== */
.map-section {
    margin-bottom: 100px;
}

.map-section__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 50px;
    margin-bottom: 30px;
}

.map-section__map {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 600px;
    border-radius: 10px;
    overflow: hidden;
    background: #eee;
}

.yandex-map__container {
    width: 100%;
    height: 600px;
    background: #eee; /* фон на время загрузки */
    border-radius: 10px;
    overflow: hidden;
}

/* ========================
   Футер (подвал)
   ======================== */
.footer {
    background-color: #24486B;
    color: #FCFCFC;
    padding: 60px 0;
    font-family: 'Montserrat', sans-serif;
}

.footer__inner {
    width: 100%;
}

/* Верхний блок с колонками */
.footer__top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
}

.footer__col {
    flex: 1 1 0;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
}

.footer__col--contacts {
    gap: 25px;
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 18px;
    font-weight: 400;
}

.footer__icon--email {
    width: 43px;
    height: 29px;
}

.footer__icon--phone {
    width: 35px;
    height: 36px;
}

.footer__social {
    display: flex;
    gap: 25px;
    margin-top: 45px;
}

.footer__social a:hover .footer__icon--social {
    filter: invert(10%) sepia(6000%) saturate(4000%) hue-rotate(175deg) brightness(100%) contrast(70%);
}

.footer__icon--social {
    width: 49px;
    height: 49px;
}

.footer__col--hours {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 400;
}

.footer__subtitle {
    font-weight: 500;
    margin-bottom: 5px;
}

.footer__text {
    margin-bottom: 20px;
    font-weight: 200;
}

.footer__text2 {
    line-height: 30px;
    font-weight: 200;
}

.footer__city {
    font-size: 18px;
    font-weight: 500;
    margin-top: auto;
}

.footer__col--addresses {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 400;
}

/* Карта сайта */
.footer__sitemap {
    margin-top: 0;
}

.footer__sitemap-title {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
}

.footer__divider {
    border: none;
    height: 2px;
    background-color: #FCFCFC;
    margin: 0;
    border-radius: 1px;         
}

.footer__sitemap-columns {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 60px;
}

.footer__sitemap-col {
    flex: 1 1 0; 
}

/* Сброс стилей ссылок в карте сайта */
.footer__sitemap a {
    color: inherit;          
    text-decoration: none;   
    font-weight: inherit;    
    font-size: inherit;     
}

.footer__sitemap a:hover {
    color: #ADC6DE;
}

.footer__sitemap-heading {
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: 0;
}

.footer__sitemap-heading1 {
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 30px;
    margin-top: 0;
}

.footer__sitemap-col ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.footer__sitemap-col li {
    font-weight: 300;
    font-size: 18px;
    margin-bottom: 5px;
}

.footer__legal {
    display: flex;
    gap: 146px;
    margin-top: 30px;
    font-weight: 300;
    font-size: 18px;
    flex-wrap: wrap;
}

.footer__legal a {
    color: #ADC6DE;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer__legal a:hover {
    opacity: 0.8;
}

.footer__search {
    display: flex;
    align-items: center;
    margin-top: 30px;
    gap: 484px;
}

.search-box {
    position: relative;
    width: 330px;
    height: 30px;
}

.search-box__input {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: none;
    padding: 0 35px 0 15px;
    font-size: 14px;
    color: #000;
    background: #FCFCFC;
    outline: none;
    font-family: 'Montserrat', sans-serif;
}

.search-box__btn {
    position: absolute;
    right: 5px;
    top: 60%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.search-box__icon {
    width: 25px;
    height: 25px;
}

.footer__copyright {
    font-weight: 300;
    font-size: 18px;
    margin: 0;
    white-space: nowrap;
    color: #7291ad;
}

/* Кнопка «Наверх» */
.scroll-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 63px;
    height: 63px;
    border-radius: 50%;
    border: 2px solid #D90D26;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 900;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scroll-to-top--visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.05);
}

.scroll-to-top__icon {
    width: 24px;
    height: auto;
    transform: rotate(180deg);   
}

/* Кнопка «Личный кабинет» (глобальная) */
.btn--account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 210px;
    height: 60px;
    border: 2px solid #D90D26;
    border-radius: 10px;
    background: transparent;
    color: #000;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.015em;
    text-decoration: none;
    transition: background-color 0.2s;
    font-family: 'Montserrat', sans-serif;
    padding: 0 15px;
    gap: 10px;
    box-sizing: border-box;
    white-space: nowrap;
}
.btn--account:hover {
    background-color: #f5f5f5;
}

.btn--account__text {
    line-height: 55px;  
    margin-top: 2px;       
    display: inline-block;
}

.btn--account__icon {
    width: 37px;
    height: 37px;
    margin-top: -5px;
    vertical-align: middle;
}

.auth-btn {
    visibility: hidden;
}

/* Поисковая строка и подсказки */
.search-box {
    position: relative;   
}

.search-suggestions {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #fcfcfc;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 2000;
    margin-bottom: 10px;
    color: #000;
}

.search-suggestions__item {
    display: block;
    padding: 12px 20px;
    font-size: 16px;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.search-suggestions:hover {
    background-color: #f9f9f9;
}
.search-suggestions__title {
    font-weight: 400;
}
.search-suggestions__no-results {
    padding: 15px 20px;
    color: #999;
    font-size: 14px;
}

/* Видимость элементов в зависимости от версии */
.mobile-only { display: none; }
.desktop-only { display: block; }

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    body {
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }

    .container {
        max-width: 328px;
        padding: 0;
        margin: 0 auto;
    }
    
    main { margin-top: 83px; }

    /* Шапка */
    .header {
        padding: 10px 0;
        height: 63px;
        display: flex;
        align-items: center;
        background: #fcfcfc;
        z-index: 105;
    }
    .header__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0;
    }
    .logo__img { height: 40px; width: auto; }
    .header__phone {
        display: flex;
        align-items: center;
        font-size: 14px;
        font-weight: 400;
        color: #000;
        text-decoration: none;
        white-space: nowrap;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .header__phone-icon { 
        width: 12px; 
        height: 12px; 
        margin-right: 0; 
        margin-left: 65px;
    }

    /* Бургер */
    .burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-top: 0;
        background: none;
        border: none;
        cursor: pointer;
        position: relative;
        z-index: 110;
        margin-right: 0;
    }
    .burger__line {
        display: block;
        width: 25px;
        height: 3px;
        margin-top: 5px;
        border-radius: 2px;
        background: linear-gradient(-41deg, #D90D26, #E94055, #D90D26);
        transition: transform 0.3s, opacity 0.3s;
    }
    .burger.active .burger__line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .burger.active .burger__line:nth-child(2) { opacity: 0; }
    .burger.active .burger__line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Мобильное меню */
    .mobile-menu {
        position: fixed;
        top: 30px;                     /* начинается под шапкой */
        left: 0;
        width: 100%;
        height: calc(100% - 30px);     /* оставшаяся высота */
        background: #fcfcfc;           
        z-index: 100;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .mobile-menu.active { transform: translateX(0); }
    .mobile-menu__nav { display: flex; flex-direction: column; gap: 30px; text-align: center; }
    .mobile-menu__link {
        font-size: 20px;
        font-weight: 400;
        color: #000;
        text-decoration: none;
        padding: 7px 0;
        display: block;
        width: 100%;
        transition: background-color 0.2s;
    }
    .mobile-menu__link:hover,
    .mobile-menu__link:active { background-color: #E7E7E7; }
    .mobile-menu__link--login {
        font-size: 18px;
        font-weight: 400;
        color: #fcfcfc;
        background: linear-gradient(-41deg, #D90D26, #E94055, #D90D26);
        border-radius: 10px;
        padding: 15px 30px;
        display: inline-block;
        width: auto;
    }

    .mobile-menu__link--account {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: transparent;
        border: 2px solid #D90D26;
        border-radius: 10px;
        font-size: 16px;
        font-weight: 400;
        padding: 10px 20px;
        text-decoration: none;
        width: auto;
        min-width: 200px;
    }
    .mobile-menu__account-icon {
        width: 37px;
        height: 37px;
    }

    .nav { display: none; }
    .mobile-only { display: block; }
    .desktop-only { display: none; }

    /* Hero */
    .hero__title {
        flex-direction: column;
        gap: 2px;
        align-items: flex-start;
        margin-bottom: 9px;
        font-family: 'Unbounded', sans-serif;
    }
    .hero__word:first-child { font-size: 38px; font-weight: 500; letter-spacing: 0.01em; }
    .hero__word:last-child { font-size: 32px; font-weight: 500; letter-spacing: 0; margin-bottom: 0; }
    .hero__bottom { flex-direction: column; align-items: flex-start; margin-bottom: 30px; }
    .hero__subtitle {
        font-size: 10px;
        font-weight: 500;
        align-self: flex-end;
        margin-left: 13px;
        margin-top: -37px;
        margin-bottom: 27px;
    }
    .btn--cta { width: 100%; font-size: 16px; font-weight: 500; height: 50px; }

    /* Слайдер карточек */
    .courses { margin-bottom: 30px; }
    .cards-wrapper { overflow: hidden; width: 100%; }
    .cards {
        display: flex;
        gap: 0;
        transition: transform 0.3s ease;
        margin-bottom: 0;
    }
    .card {
        flex: 0 0 100%;
        width: 100%;
        margin: 0;
        border-radius: 10px;
        height: 156px;
        background: linear-gradient(-65deg, #F0F0F0, #F9F9F9, #F0F0F0);
        border: 2px solid #D90D26;
        position: relative;
        overflow: hidden;
    }
    .card__content { display: flex; height: 100%; width: 100%; }
    .card__info {
        position: relative;
        z-index: 1;
        padding: 15px 0 15px 15px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        width: 55%;
    }
    .card__title { font-size: 12px; font-weight: 400; margin-bottom: 3px; white-space: nowrap; }
    .card__category { font-size: 12px; font-weight: 300; color: #808080; }
    .card__img-small {
        position: absolute;
        top: 0;
        left: 0;
        width: 98%;
        height: 98%;
        object-fit: cover;
        z-index: 0;
    }
    .card__visual {
        position: absolute;
        right: 0;
        bottom: 5px;
        width: 89px;
        height: 146px;
    }
    .card__img-big { width: 89px; height: 146px; object-fit: cover; }
    .btn--detail {
        position: absolute;
        bottom: 10px;
        right: 10px;
        width: 151px;
        height: 35px;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }
    .btn--detail .arrow { display: none; }
    .cards-dots { display: flex; justify-content: center; gap: 3px; margin-top: 8px; }
    .card-dot { width: 7px; height: 7px; border-radius: 50%; background: #d9d9d9; cursor: pointer; }
    .card-dot.active { background: #B5B5B5; }

    /* О центре */
    .about__title { font-size: 30px; margin-bottom: 15px; }
    .about__content { flex-direction: column; gap: 15px; margin-bottom: 15px; }
    .about__text { font-size: 14px; font-weight: 300; }
    .about__text--main { width: 100%; text-align: left; }
    .about__stats { flex-wrap: wrap; gap: 16px; }
    .stat-box {
        width: 156px;
        height: 83px;
        border: 2px solid #24486B;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 5px;
    }
    .stat-box__value { font-size: 25px; font-weight: 500; }
    .stat-box__label { font-size: 12px; font-weight: 500; }
    .about__bottom { flex-direction: column; gap: 15px; }
    .about__bottom .about__text--secondary { order: 1; }
    .about__bottom .about__stats--row { order: 2; }
    .about__text--secondary { width: 100%; text-align: left; }

    /* Филиалы */
    .branches__title { font-size: 30px; margin-top: 40px; margin-bottom: 15px;}
    .branches__grid { display: flex; flex-direction: column; gap: 15px; }
    
    .branch-card:last-child { margin-bottom: 30px; }
    .branch-card__img { width: 100%; height: 220px; object-fit: cover; }
    .branch-card__caption { font-size: 14px; margin-top: 10px; margin-bottom: 10px;}

    /* Галерея */
    .gallery-container {
        width: 328px;
        height: 300px;
    }
    .gallery-slides img {
        width: 328px;
        height: 300px;
    }

    /* Карта */
    .map-section__title { font-size: 30px; margin-bottom: 15px; }
    .map-section__map { height: 328px; margin-bottom: 60px; }
    .yandex-map__container { height: 328px; }

    /* Подвал */
    .footer { padding: 30px 0; }
    .footer__top { flex-direction: row; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; }
    .footer__col { flex: 1 1 45%; margin-bottom: 15px; }
    .footer__contact-item { font-size: 12px; font-weight: 400; gap: 5px; letter-spacing: -0.01em; white-space: nowrap; }
    .footer__icon--email { width: 20px; height: auto; }
    .footer__icon--phone { width: 20px; height: auto; }
    .footer__icon--social { width: 32px; height: 32px; }
    .footer__social { margin-top: 15px; gap: 15px; }
    .footer__text, .footer__text2 { font-size: 12px; font-weight: 400; line-height: 1.6; }
    .footer__city { font-size: 12px; margin-top: -5px; }
    .footer__subtitle { font-size: 12px; font-weight: 500; }
    .footer__sitemap-title { font-size: 16px; font-weight: 500; margin-bottom: 4px; margin-top: 0;}
    .footer__divider { height: 1px; width: 100%; margin: 10px 0; }
    .footer__sitemap-columns { display: none; }
    hr.footer__divider:nth-of-type(2) { display: none; }
    .footer__legal { flex-direction: column; gap: 5px; margin-top: 15px; font-size: 12px; font-weight: 300; }
    .footer__search { flex-direction: column; gap: 15px; margin-top: 15px; align-items: flex-start; }
    .search-box { width: 328px; height: 35px; }
    .footer__copyright { font-size: 12px; margin-left: 65px; margin-top: 20px; }

    /* Кнопка «Наверх» */
    .scroll-to-top {
        width: 50px;
        height: 50px;
        right: 16px;
        bottom: 16px;
    }
    .scroll-to-top__icon { width: 20px; }
}