/* Основные сбросы */
:root {
    --color-text-main: #212529;
    --color-text-blue: #4a7aa5;
    --color-text-dark: #2c3e50;
    --grad-start: #e66425;
    --grad-end: #c41e3a;
    --btn-base-orange: #e66425;
    --btn-bg-white: #ffffff;

    /* Шапка */
    --header-topbar-bg: #1e5fa6;
    --header-topbar-color: #ffffff;
    --header-main-bg: #ffffff;
    --header-nav-color: #212529;
    --header-nav-hover: #1e5fa6;
    --header-phone-icon-bg: #e66425;
    --header-branch-color: #e66425;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1672px;
    margin: 0 auto;
    padding: 0 15px;
}
/* end Основные сбросы */

/* Контейнер для контентной части */
.custom-container {
    max-width: 1672px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================================
   ШАПКА САЙТА
   ================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ----- Верхняя синяя полоса ----- */
.header-topbar {
    background-color: var(--header-topbar-bg);
    padding: 7px 0;
}

.header-topbar__inner {
    max-width: 1672px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-topbar__city,
.header-topbar__slogan {
    color: var(--header-topbar-color);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ----- Основная часть шапки ----- */
.header-main {
    background-color: var(--header-main-bg);
    border-bottom: 1px solid #e8edf3;
}

.header-navbar {
    padding: 0;
}

.header-navbar__inner {
    max-width: 1672px;
    margin: 0 auto;
    padding: 14px 30px;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 24px;
}

/* ----- Логотип ----- */
.header-logo {
    flex-shrink: 0;
    padding: 0;
    margin-right: 0;
    line-height: 1;
}

.header-logo__img {
    height: 78px;
    width: auto;
    display: block;
}

/* ----- Адрес ----- */
.header-address {
    font-style: normal;
    font-size: 13px;
    line-height: 1.55;
    color: #444;
    flex-shrink: 0;
    white-space: nowrap;
}

.header-address__line {
    display: block;
    color: #555;
    font-weight: 400;
}

.header-address__branch {
    display: inline-block;
    margin-top: 3px;
    color: var(--header-branch-color);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.header-address__branch:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ----- Навигация ----- */
.navbar-collapse {
    flex-grow: 1;
}

.header-nav {
    gap: 2px;
}

.header-nav__link {
    color: var(--header-nav-color) !important;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 10px !important;
    border-radius: 25px;
    transition: color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.header-nav__link:hover,
.header-nav__link.active {
    color: var(--header-topbar-color) !important;
    background-color: rgb(239 128 28);
}

/* ----- Блок телефона (десктоп) ----- */
.header-phone {
    flex-shrink: 0;
    gap: 12px;
}

.header-phone__icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--header-phone-icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-phone__info {
    display: flex;
    flex-direction: column;
}

.header-phone__number {
    color: #212529;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.01em;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.header-phone__number:hover {
    color: var(--header-phone-icon-bg);
}

.header-phone__hours {
    font-size: 11px;
    color: #888;
    font-weight: 400;
    white-space: nowrap;
    margin-top: 1px;
}

/* ----- Кастомная кнопка бургер (мобилка) ----- */
.header-toggler {
    border: 2px solid #1e5fa6;
    border-radius: 6px;
    background: transparent;
    padding: 6px 9px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 38px;
    flex-shrink: 0;
}

.header-toggler:focus {
    box-shadow: none;
    outline: none;
}

.header-toggler__bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #1e5fa6;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Анимация бургера в открытом состоянии */
.header-toggler[aria-expanded="true"] .header-toggler__bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.header-toggler[aria-expanded="true"] .header-toggler__bar:nth-child(2) {
    opacity: 0;
}

.header-toggler[aria-expanded="true"] .header-toggler__bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ----- Телефон в мобильной шапке ----- */
.header-phone-mobile {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #1e5fa6;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.header-phone-mobile:hover {
    opacity: 0.8;
    color: #1e5fa6;
}

.header-phone-mobile__icon {
    color: var(--header-phone-icon-bg);
    flex-shrink: 0;
}

/* ----- Адрес внутри мобильного меню ----- */
.header-address--mobile {
    padding: 16px 0 12px;
    border-bottom: 1px solid #e8edf3;
    margin-bottom: 8px;
    white-space: normal;
}

.header-address--mobile .header-address__line {
    display: inline;
    font-size: 13px;
    color: #555;
}

.header-address--mobile .header-address__line + .header-address__line::before {
    content: " / ";
    color: #aaa;
}

.header-address--mobile .header-address__branch {
    display: block;
    margin-top: 6px;
}

/* ================================================
   ОСНОВНОЕ СОДЕРЖИМОЕ
   ================================================ */

.site-main {
    flex: 1 0 auto;
    min-height: 300px;
}

/* ================================================
   ФУТЕР САЙТА
   ================================================ */

:root {
    --footer-top-bg:    #2d2d2d;
    --footer-bottom-bg: #222222;
    --footer-nav-color: #c8c8c8;
    --footer-nav-hover: #ffffff;
    --footer-divider:   #555555;
    --footer-copy-color:#888888;
}

.site-footer {
    flex-shrink: 0;
    background-color: var(--footer-top-bg);
}

/* ----- Верхняя часть: ссылки ----- */
.footer-top {
    background-color: var(--footer-top-bg);
    padding: 18px 0;
}

.footer-top__inner {
    max-width: 1672px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.footer-nav__item {
    display: flex;
    align-items: center;
}

/* Вертикальный разделитель между ссылками */
.footer-nav__item--divider {
    width: 1px;
    height: 14px;
    background-color: var(--footer-divider);
    margin: 0 20px;
    flex-shrink: 0;
}

.footer-nav__link {
    color: var(--footer-nav-color);
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.footer-nav__link:hover {
    color: var(--footer-nav-hover);
    text-decoration: underline;
}

/* ----- Нижняя часть: копирайт ----- */
.footer-bottom {
    background-color: var(--footer-bottom-bg);
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom__inner {
    max-width: 1672px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-copy {
    color: var(--footer-copy-color);
    font-size: 12px;
    font-weight: 400;
    margin: 0;
    text-align: center;
    line-height: 1.5;
}

.footer-map {
    width: 100%;
    margin-top: 5px; /* отступ от контента футера */
}

#ymap {
    width: 100%;
    height: 400px;
    display: block;
}

/* Если footer имеет overflow: hidden — убери его */
.site-footer {
    overflow: visible;
}


/* ---- Прижатие футера к низу страницы ---- */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Блокировка скролла при открытом мобильном меню */
body.menu-open {
    overflow: hidden;
}

/* Стандартная оранжевая кнопка type1 */
.type-base__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 64px;
    background: var(--btn-base-orange);
    color: var(--btn-bg-white) !important;
    font-size: 20px;
    font-weight: 600;
    border-radius: 40px;
    text-decoration: none !important;
    letter-spacing: 0.02em;
    transition: background var(--vc-transition),
    box-shadow  var(--vc-transition),
    transform   var(--vc-transition) !important;
    box-shadow: 0 4px 16px rgba(27, 66, 152, 0.22);
}

.type-base__btn:hover {
    background: #ff7a3a;
    box-shadow: 0 6px 24px rgba(27, 66, 152, 0.35);
    transform: translateY(-2px);
}

.type-link__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .22s ease, color .22s ease, border-color .22s ease, transform .15s ease;
    background: #1e5fa6;
    color: #fff;
    border: 2px solid #1e5fa6;
    white-space: nowrap;
}
.type-link__btn-outline{
    background: transparent;
    color: #1e5fa6;
    border-color: #1e5fa6;
}
.type-link__btn:hover {
     background: #1f6fbe;
     border: 2px solid #1f6fbe;
     box-shadow: 0 6px 24px rgba(27, 66, 152, 0.35);
     transform: translateY(-2px);
}
.type-link__btn-outline:hover {
    color: #fff;
    background: #1f6fbe;
    border: 2px solid #1f6fbe;
}

/* ── Breadcrumbs ─────────────────────────────────────────── */
.sd-breadcrumbs__list {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 13px;
    color: #E67725;
}
.sd-breadcrumbs__link {
    color: #E67725;
    text-decoration: none;
    transition: color .2s;
}
.sd-breadcrumbs__link:hover { color: #727272; }
.sd-breadcrumbs__sep { margin: 0 2px; }
.sd-breadcrumbs__item--active { color: #727272; }