:root {
    --main-red: #b60000;
    --text-color: #333;
    --nav-gradient: linear-gradient(to bottom, #ffffff 0%, #cdd0d7 81%, #ffffff 100%);
    --nav-hover-bg: linear-gradient(to bottom, #e7ff1f 0%, #f2bc00 81%, #e6ff73 100%);
}
body {
    margin: 0;
    font-family: 'PT Sans', sans-serif;
    font-size: 14px;
    color: var(--text-color);
    background: linear-gradient(to bottom, #b60000 0%, #d93c2b 47%, #d93c2b 80%, #b70101 100%);
}
* { box-sizing: border-box; }
.container { max-width: 941px; margin: 0 auto; position: relative; }

.site-footer .container {
    min-width: 330px;
}
a { color: var(--link-blue); }
img { max-width: 100%; height: auto; border: none; vertical-align: middle; }

h4 {
  margin-top: 0;
  text-transform: uppercase;
  color: #d93c2b;
  text-shadow: 2px 2px 4px white;
}

h3 {
  margin: 6px 0 4px;
}

h3 a {
  text-decoration: none;
}

/* === ГЛАВНЫЙ ФИКС СТРУКТУРЫ === */
.page-wrapper {
    max-width: 941px;
    margin: 0 auto;
    position: relative;
    min-width: 330px;
}

/* === HEADER (стабильная версия) === */
.header-wrapper {
    position: relative;
    box-shadow: 0 0 15px rgba(0,0,0,0.7);
    z-index: 10;
}
.site-header {
    position: relative;
    min-height: 150px; 
	height: 70vw;
	max-height: 460px;
    color: white;
    /* Этот блок теперь просто контейнер для абсолютно спозиционированных слоев */
}
.header-bg-layer1 { position: absolute; top: 0; left: 0; width: 100%; height: 280px; background: url('../images/layout/header_back2.jpg') repeat center top; z-index: 1; }
.header-bg-layer2 { position: absolute; top: 40px; left: 0; width: 100%; height: calc(100% - 40px); background: url('../images/layout/header_back.jpg') no-repeat right bottom; background-size: cover; z-index: 2; }
.header-bg-layer-fence { position: absolute; top: 0px; left: 0; right: 0; height: 45px; background: url('../images/layout/header_zabor.png') repeat-x; z-index: 4; }
.top-bar { position: absolute; top: 0px; width: 100%; z-index: 5; font-size: 10.8pt; text-shadow: 1px 1px 2px #575757; }
/* Выстраиваем строки друг под другом и прижимаем вправо */
.top-bar .container {
    display: flex;
    flex-direction: column; /* Элементы идут в колонку (строка 1, под ней строка 2) */
    align-items: flex-end;  /* Прижимаем всё к правому краю */
    gap: 1px; /* Расстояние между первой и второй строкой */
    padding: 0 10px;
}

/* Располагаем адрес и телефон в один ряд внутри первой строки */
.top-contacts-main {
    display: flex;
    align-items: center;
    gap: 20px; /* Расстояние между адресом и телефоном */
}

/* Стили для второй строки */
.desktop-extra-phones {
    font-size: 14px;
    color: white; 
}
.desktop-extra-phones a { color: white; text-decoration: none; }
.desktop-extra-phones a:hover { text-decoration: underline; }
.desktop-extra-phones b { font-size: 14px; }

.top-bar a { color: white; text-decoration: none; }
.logo { position: absolute; top: 0px; left: 15px; z-index: 6; }
.prazdnik .header-slogan {
        display: none !important;
    }
.header-slogan { position: absolute; top: 80px; left: 60%; width: 38%; font: 24pt 'Lobster', cursive; text-align: right; color: #b70101; text-shadow: 0 0 5px #fff, 0 0 7px #fff; animation: blur 1.5s infinite; z-index: 5; }
@keyframes blur { from { text-shadow: 0 0 10px #f43434; } }
.side-tab { position: absolute; z-index: 25; }
.side-tab--left { 
    bottom: 2px; 
    left: 0px; 
    width: 45px; 
}
.side-tab--right { bottom: 2px; right: 0px; }
.side-tab--inner  {
  bottom: 2px;
  left: 50px;
}
.side-tab.side-tab--inner img {
  width: 140px;
}

.holiday-text {
    position: absolute;
    top: 320px;
    left: 40px;
    z-index: 6;
    font-size: 24pt;
    font-family: 'Lobster', cursive;
    color: #b70101;
    text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.9), 0 0 10px #fff;
    max-width: 40%;
}
.theme-newyear .header-bg-layer2 {
    background-image: url('../images/layout/newyear1.gif') !important;
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    background-origin: content-box !important;
    padding-top: 45px;
	top: 0;
	height: 100%;
}

/* 23 Февраля */
.theme-feb23 .header-bg-layer2 {
    background-image: url('../images/layout/2302.gif') !important;
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    background-origin: content-box !important;
    padding-top: 45px;
	top: 0;
	height: 100%;
}

/* 8 Марта */
.theme-mar8 .header-bg-layer2 {
    background-image: url('../images/layout/0803.gif') !important;
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    background-origin: content-box !important;
    padding-top: 45px;
	top: 0;
	height: 100%;
}

.theme-newyear .site-header_ {
    background-image: url('../images/layout/newyear1.gif') !important;
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    background-origin: content-box !important;
    padding-top: 45px;
}

/* 23 Февраля */
.theme-feb23 .site-header_ {
    background-image: url('../images/layout/2302.gif') !important;
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    background-origin: content-box !important;
    padding-top: 45px;
}

/* 8 Марта */
.theme-mar8 .site-header_ {
    background-image: url('../images/layout/0803.gif') !important;
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    background-origin: content-box !important;
    padding-top: 45px;
}
/* === NAVIGATION === */
.topSubmenu {
    display: block;
    padding: 17px 14px;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85em;
    text-shadow: 2px 2px 4px white;
    white-space: nowrap;
    letter-spacing: -0.5px;
    cursor: default; /* Указываем, что это не ссылка */
}
.navigation-bar {
    position: relative;
    z-index: 30;
    background: var(--nav-gradient);
    border-radius: 7px;
    margin: 10px 0 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
}
.nav-social-left, .nav-social-right { position: absolute; top: 50%; transform: translateY(-50%); }
.nav-social-left { left: 5px; }
.nav-social-right { right: 5px; }
.nav-social-left img, .nav-social-right img { width: 40px; }
.main-nav { display: flex; justify-content: center; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.main-nav > li { border-left: 1px solid #9ea3b5; border-right: 1px solid #ffffff; position: relative; }
.main-nav > li:first-child { border-left: none; }
.main-nav > li:last-child { border-right: none; }
.main-nav a { display: block; padding: 17px 14px; color: #000; text-decoration: none; text-transform: uppercase; font-size: 0.85em; text-shadow: 2px 2px 4px white; white-space: nowrap; letter-spacing: -0.5px; }
.main-nav a:hover, .main-nav a.active { background: var(--nav-hover-bg); }
.topSubmenu:hover, .topSubmenu.active {
    background: var(--nav-hover-bg);
}
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #e4e4e5;
    border: 1px solid #c7c8ca;
    z-index: 100;
    min-width: 180px;
    max-width: 250px;
    list-style: none;
    padding: 0;
}

.submenu a {
    background: #e4e4e5;
    border-bottom: 1px solid #fff;
    text-transform: none;
    white-space: normal;
    line-height: 1.3;
}
.has-submenu:hover > .submenu { display: block; }
.submenu li { border: none; }
.burger-menu { display: none; }

/* === MAIN CONTENT === */
  ol.skobka {
    list-style-type: none;
    padding-left: 20px;
  }
  ol.skobka li::marker {
    content: counter(list-item) ") ";
  }
#text_container {
  background: url(../images/layout/content_back_top.png) 0 0 no-repeat, url(../images/layout/content_back_bottom.png) bottom no-repeat, #fff;
  padding: 0 15px; 
}
.main-content {
    position: relative;
    z-index: 5;
    background: url(../images/layout/content_back_top.png) 0 0 no-repeat, url(../images/layout/content_back_bottom.png) bottom no-repeat, #fff;
    padding: 20px;
    border-radius: 7px;
    text-align: justify;
    margin-top: 5px; /* Небольшой отступ от меню */
}
.zagolovok { color: #fff; text-align: center; padding: 10px 0; font-size: 21pt; text-shadow: 1px 1px 1px black; background: #d93c2b; margin: -20px -20px 20px -20px; }
.text-center {
    text-align: center;
}
/* === FOOTER === */
.site-footer {
    color: #fff;
    padding: 5px 20px 20px 20px;
    clear: both;
    text-shadow: 1px 1px 1px black;
}
.site-footer a { color: #fff; text-decoration: underline; }
.site-footer a:hover { text-decoration: none; }
.footer-nav { padding: 20px 0; }
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.footer-nav li { border-right: 1px solid #fff; padding: 0 11px; }
.footer-nav li:last-child { border-right: 0; }
.footer-nav a { display: block; text-transform: uppercase; font-size: 0.85em; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-top: 25px; }
.footer-left { display: flex; align-items: start; gap: 5px; flex-direction: column; }
.footer-left img { width: 50px; }
.footer-center { flex-grow: 1; padding: 0 20px 0 0;}
.footer-right { max-width: 240px; font-size: 10pt; text-align: right; }
.footer-legal-text { padding-top: 15px; font-size: 10pt; }
.mobile-break {
    display: none;
}
.mobile-extra-phones {
    display: none;
}
.offices-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 20px; 
}

.office-card {
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.office-card h3 {
  margin-top: 0;
  font-size: 1em;
}

.office-card p {
  margin-bottom: 5px;
  line-height: 1.5;
}

/* Главный контейнер для галереи */
.photo-gallery {
  display: flex; 
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px; 
  margin: 20px 0; 
  padding: 0;
}

/* Каждый элемент галереи (картинка + подпись) */
.gallery-item {
  flex: 1 1 180px;
  max-width: 220px;
  margin: 0;
  text-align: center;
}

/* Стили для изображения */
.gallery-item img {
  max-width: 100%; 
  height: auto; 
  display: block;
  border: none; 
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  margin: 0 auto;
}

/* Эффект при наведении на ссылку */
.gallery-item a:hover img {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Стили для подписи */
.gallery-item figcaption {
  margin-top: 10px; 
  font-size: 0.9em;
  color: #555; 
  line-height: 1.4;
}

.photo-gallery-vertical{
  flex-direction:column;
  align-items:center;
}

.photo-gallery-single{
  justify-content:center;
}

.image-button-wrapper{
  text-align:center;
  display: inline-block;
}

.image-button{
  display:inline-block;
  color:#fff;
  border-radius:6px;
  text-decoration:none;
}

.image-button img{
  display:block;
  max-width:200px;
}

.image-button-text{
  display:block;
}

.enroll-button {
  height: 55px;
  line-height: 50px;
  width: 340px;
  margin: 0 auto;
  background: linear-gradient( to bottom, #f5d941 0%, #e1a42f 35%, #f1a226 70%, #c58e25 100% );
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.25), inset 0 -3px 6px rgba(0,0,0,0.2);
  border-radius: 27px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}
.enroll-button1 {
  height: 55px;
  line-height: 50px;
  width: 340px;
  margin: 0 auto;
  background: linear-gradient( to bottom, #f3e049 0%, #f3ca2b 25%, #e1ac0d 60%, #c3840b 100% );
  box-shadow:
  inset 0 2px 4px rgba(255,255,255,0.35),
  inset 0 -2px 5px rgba(0,0,0,0.15);
  border-radius: 27px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.enroll-button2 {
  height: 55px;
  line-height: 50px;
  width: 340px;
  margin: 0 auto;
  background:linear-gradient( to bottom, #fae053 0%, #e1b42f 35%, #f1ac28 70%, #f5a947 100% );
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.25), inset 0 -3px 6px rgba(0,0,0,0.2);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}
.enroll-button a {
  text-decoration: none;
  color: red;
  display: flex;
justify-content: center;
align-items: center;
gap: 5px;
}
.enroll-button1 a {
  text-decoration: none;
  color: red;
  display: flex;
justify-content: center;
align-items: center;
gap: 5px;
}
.enroll-button2 a {
  text-decoration: none;
  color: red;
  display: flex;
justify-content: center;
align-items: center;
gap: 5px;
}

.enroll-button a img {
height: 30px;
}

.enroll-button1 a img {
height: 30px;
}

.enroll-button2 a img {
height: 30px;
}
/* --- Стили для модального окна (зума) --- */

/* Контейнер-оверлей, который перекрывает всю страницу */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  width: 100vw;
}

/* старый #modal-image — скрываем совсем, он не используется */
#modal-image {
  display: none !important;
}

/* динамически добавленные картинки */
.modal-overlay img[data-image-id] {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay img[data-image-id].active {
  opacity: 1;
  visibility: visible;
  animation: zoom 0.3s ease;
}

@keyframes zoom {
  from { transform: translate(-50%, -50%) scale(0.85); }
  to   { transform: translate(-50%, -50%) scale(1); }
}
.modal-close {
  position: fixed;
  top: 15px;
  right: 20px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  line-height: 1;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1001;
  user-select: none;
}

.modal-close:hover,
.modal-close:focus {
  color: #bbb;
  text-decoration: none;
}

/* Общий контейнер для карты + галереи */
.map-gallery-wrapper {
    display: flex;
    gap: 20px; /* расстояние между картой и галереей */
    flex-wrap: wrap; /* чтобы на мобильных переносилось */
    justify-content: center; /* по центру */
    margin-bottom: 20px;
}

/* Стили для iframe карты */
.map-gallery-wrapper iframe {
    flex: 1 1 600px; /* растягивается до 600px, но может уменьшаться */
    max-width: 100%; /* не выходит за пределы контейнера */
    height: 580px;
    border: 0;
}

/* Стили для вертикальной галереи */
.vertical-gallery {
    flex: 0 0 220px; /* фиксированная ширина на десктопе */
    max-width: 100%; /* не превышает контейнер */
}

/* Заголовок */
.page-heading {
    text-align: center;
    padding: 0 10px;
}

.red-accent {
    color: #ff0000;
    font-weight: bold;
  }
/* Мобильные стили */

@media (max-width: 420px) {
.enroll-button {
  width: 300px;
  }
  .enroll-button1 {
  width: 300px;
  }
  .enroll-button2 {
  width: 300px;
  }
}
@media (max-width: 550px) {
.home-imeges-left {
  float: none !important;
  margin: 1px auto !important;
  }
  }

@media (max-width: 768px) {
    .map-gallery-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .vertical-gallery {
        width: 100%;
		order: -1;
    }

    .page-heading {
        font-size: 1.1em;
        padding: 0 15px;
    }
}


.staff-card {
    display: flex;
    background-color: #ebebeb;
    padding: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap; /* чтобы на мобильном переносилось */
}

/* левый блок с фото */
.staff-card-left {
    flex: 0 0 25%; /* 1/4 ширины на десктопе */
    max-width: 25%;
    margin-right: 20px;
}

.staff-card-left img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px; /* можно сделать скругление, если нужно */
}

/* правый блок с текстом */
.staff-card-right {
    flex: 1;
    min-width: 200px;
}

.staff-card-right h3 {
    text-align: center;
    margin: 0 0 5px 0;
}

.staff-card-right p.center {
    text-align: center;
    margin: 0 0 10px 0;
}

.staff-card-right p.staff-info {
    margin: 0;
    font-size: 10pt;
    line-height: 1.3;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .staff-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .staff-card-left {
        flex: 0 0 auto;
        max-width: 80%; /* фото меньше ширины контейнера, но заметное */
        margin: 0 0 15px 0;
    }

    .staff-card-right {
        width: 100%;
    }
}




.filial {
  color: red;
  font-weight: bold;
  font-size: 1.4em;
  margin-top: 30px;
  margin-bottom: 10px;
}

.center {
  text-align: center;
}

.fl_right {
  float: right;
}

.fl_left {
  float: left;
  margin: 10px 10px 10px 0;
}

.image-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    width: 100%;

    gap: 20px; 
}

.image-wrapper {
    max-width: 600px;
    
    /* flex-basis: 48%; */
}

.image-wrapper img {
    width: 100%; 
    max-width: 100%;
    height: auto;
    display: block;
}

.as_h3 {
  font-size: 14px;
  text-transform: uppercase;
  color: #d93c2b;
  text-shadow: 2px 2px 4px white;
  text-align: center;
  line-height: 22px;
}

.gallery-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
}

.gallery-page {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    background: #eee;
    color: #333;
    text-decoration: none;
    font-size: 0.95em;
    transition: background 0.2s;
}

.gallery-page:hover {
    background: #ccc;
}

.gallery-page.active {
    background: #444;
    color: #fff;
    pointer-events: none;
}

.main-nav .has-submenu:has(> .submenu a.active) > .topSubmenu {
    background: var(--nav-hover-bg);
}


@media (max-width: 768px) {
    .image-container {
        flex-direction: column;
    }
    
    .image-wrapper {
        flex-basis: 100%; 
    }
}

@media (max-width: 900px) {
    .nav-social-right {
display: none;
}
.nav-social-left {
display: none;
}
}

@media (max-width: 840px) {
    .site-header { height: 70vw; }
}


/* --- Адаптивность --- */
@media (max-width: 800px) {
h3 {
  font-size: 14px;
}

.footer-left {
  align-items: center;
  }
    .page-wrapper { padding-top: 150px; }
    .site-header { margin-top: -150px; background-size: cover; }
    .site-header::before { top: 150px; }
    .header-address {
        text-align: left;
        flex: 1 1 auto; 
        white-space: normal; 
    }

    .header-address a {
        display: block;
        color: white;
        text-decoration: none; 
    }

    .scheme-text {
        display: none; 
    }

    .top-bar {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 45px; 
        padding: 0;
        z-index: 5;
        overflow: hidden;
    }
    
    .top-bar .container {
        height: 100%;
    }

     .top-contacts-main {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        gap: 5px;
        width: 100%;
    }
    
    .top-contacts-main span {
        font-size: 14px !important; 
        line-height: 1.1 !important; 
    }

    /* Адрес (Левый столбец) */
    .header-address {
        text-align: left;
        flex: 1 1 auto; 
        white-space: normal; 
    }
    .header-address a { display: block; color: white; text-decoration: none; }
    .scheme-text { display: none; }

    /* Главный телефон (Правый столбец) */
    .top-contacts-main span:last-child {
        text-align: right;
        flex: 0 0 auto; 
        white-space: nowrap; 
    }
    .top-contacts-main span:last-child a { display: block; text-align: right; }
    .top-contacts-main span:last-child b { font-size: 14px !important; }

    /* Иконки */
    .top-contacts-main img {
        height: 12px;
        width: auto;
        vertical-align: middle;
        margin-right: 3px;
        margin-top: -2px; 
    }

    .top-bar span {
        font-size: 12pt !important;
        line-height: 1.1 !important;
    }

    .top-bar span:first-child {
        text-align: left;
        flex: 1 1 auto;
        padding-right: 10px;
        white-space: normal; 
    }

    .top-bar span:last-child {
        text-align: right;
        flex: 0 0 auto;
        white-space: nowrap; 
    }
    
    .top-bar span:last-child a {
        display: block;
        text-align: right; 
    }

    .top-bar a,
    .top-bar b {
        font-size: 14px !important;
    }

    .top-bar img {
        height: 12px;
        width: auto;
        vertical-align: middle;
        margin-top: -2px;
        margin-right: 3px;
    }
.holiday-text {
        top: 125px; 
        left: 0;
        width: 100%;
        text-align: center;
        font-size: 16pt;
        padding: 0 10px;
    }
.theme-newyear .header-bg-layer2 {
    background-image: url('../images/layout/newyear1.gif') !important;
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    background-origin: content-box !important;
    padding-top: 45px;
}

/* 23 Февраля */
.theme-feb23 .header-bg-layer2 {
    background-image: url('../images/layout/2302.gif') !important;
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    background-origin: content-box !important;
    padding-top: 45px;
}

/* 8 Марта */
.theme-mar8 .header-bg-layer2 {
    background-image: url('../images/layout/0803.gif') !important;
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    background-origin: content-box !important;
    padding-top: 45px;
}


.theme-newyear .site-header {
    background-image: url('../images/layout/newyear1.gif') !important;
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    background-origin: content-box !important;
    padding-top: 45px;
	height: 606px;
}

/* 23 Февраля */
.theme-feb23 .site-header {
    background-image: url('../images/layout/2302.gif') !important;
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    background-origin: content-box !important;
    padding-top: 45px;
	height: 606px;
}

/* 8 Марта */
.theme-mar8 .site-header {
    background-image: url('../images/layout/0803.gif') !important;
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    background-origin: content-box !important;
    padding-top: 45px;
    padding-left: 245px;
	height: 606px;
}

    .hero-section__logo { top: 130px; left: 5px; }
    .hero-section__logo img { width: 100px; }
    .header-slogan { top: 180px; font-size: 14pt; left: 30%; width: 65%;}
    
.side-tab {
        display: block; 
        z-index: 100;
    }

    .side-tab--inner {
        left: 0; 
        width: 75px; 
    }
    .side-tab--left { display: none; }

    .side-tab--right {
        right: 0; 
        width: 35px; 
    }
    
    .navigation-bar { border-radius: 0; padding: 0; }
    .nav-container {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-extra-phones {
        display: grid;
        grid-template-columns: max-content auto;
        column-gap: 12px;
        row-gap: 4px;
        padding: 5px 10px;
        flex-grow: 1;
        align-items: center;
    }
    
    .phone-city {
        font-size: 10pt;
        color: #333;
        text-align: right;
    }

    .phone-number {
        font-size: 10pt;
    }

    .phone-number a {
        color: var(--main-red);
        font-weight: bold;
        text-decoration: none;
        white-space: nowrap;
    }
    .phone-item {
        font-size: 10pt;
        line-height: 1.2;
        color: #333;
    }

    .phone-item a {
        color: var(--main-red);
        font-weight: bold;
        text-decoration: none;
        margin-left: 5px;
    }

    .mobile-extra-phones a {
        color: var(--main-red);
        font-weight: bold;
        text-decoration: none;
        white-space: nowrap;
    }

    .burger-menu { display: block; background: none; border: none; cursor: pointer;
    padding: 15px; position: relative; z-index: 1001; }
    .burger-menu span { display: block; width: 25px; height: 3px; background-color: var(--main-red); margin: 5px 0; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--nav-gradient); 
        width: 100%;
        box-sizing: border-box;
        border-radius: 0 0 7px 7px;
        flex-direction: column;
        border-top: 1px solid #ccc;
    }
    .main-nav.active {
        display: flex;
        z-index: 1000;
    }
    .main-nav > li { width: 100%; border: 0; border-bottom: 1px solid #ccc; box-sizing: border-box;display: block;}
    .submenu { position: static; display: none; background: #f5f5f5; }
    .has-submenu.open > .submenu { display: block; }
    .has-submenu > a { position: relative; }
    .has-submenu > a::after { content: '+'; position: absolute; right: 15px; font-size: 1.5em; }
    .has-submenu.open > a::after { content: '-'; }
    
    .site-header {
     /*   background-image: url('../images/layout/header_back.jpg'); */
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .header-bg-layer1 {
        display: none;
    }

    .logo {
        width: 80px; 
        top: 40px; 
        left: 5px;
    }

    .header-slogan {
        top: 60px;
        left: 55%;
        width: 40%;
        text-align: center;
    }


    .has-submenu > .topSubmenu {
        position: relative;
        padding-right: 50px;
    }

    .has-submenu > .topSubmenu::after {
        content: '+';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5em;
        font-weight: bold;
        color: var(--main-red);
    }
    
    .has-submenu.open > .topSubmenu::after {
        content: '−';
    }

    .has-submenu > a::after {
        content: '';
    }
    .main-nav a, 
    .topSubmenu {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 15px 20px;
        white-space: normal;
        word-wrap: break-word;
        color: #000;
        text-shadow: 1px 1px 2px white;
        text-align: left;
        line-height: 1.3;
    }
    
    .submenu { 
        position: static; 
        display: none; 
        background: #f5f5f5; 
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    .submenu a {
        padding-left: 30px;
        padding-top: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e0e0e0;
        background: transparent;
        color: #333;
    }

    .footer-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .footer-nav li {
        border-right: none;
        padding: 0;
        width: 100%;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center; 
        gap: 20px;
        text-align: center;
    }
    
    .footer-right {
        text-align: center;
    }
    
    .footer-center {
        padding: 0; 
    }
    .main-nav a:hover, 
    .main-nav a.active,
    .topSubmenu:hover, 
    .topSubmenu.active {
         background: var(--nav-hover-bg);
    }
    .mobile-break {
    display: inline;
}
.desktop-extra-phones {
        display: none !important;
    }
}

