﻿/* ===== BODY ===== */
/* Основные настройки страницы */
:root {
    --theme-body-bg: #a9b6b1;
    --theme-body-color: #1f2933;
    --theme-surface-bg: #ffffff;
    --theme-surface-color: #706d6d;
    --theme-surface-border: rgba(0, 0, 0, 0.1);
    --theme-section-title: #0b49ad;
    --theme-section-title-shadow: rgb(38, 18, 18);
    --theme-section-title-glow: rgb(189, 165, 165);

    --theme-logo-surface-top: #ffffffc5;
    --theme-logo-surface-bottom: #ffffffd4;
    --theme-logo-border-start: #486bcba3;
    --theme-logo-border-end: #1ea1d09c;

    --theme-navbar-bg-start: #185e8c;
    --theme-navbar-bg-end: #3b8559;
    --theme-navbar-shadow: rgb(239, 247, 248);
    --theme-navbar-after-start: rgba(45, 67, 69, 0.35);
    --theme-navbar-after-end: rgba(45, 83, 88, 0);
    --theme-navbar-brand: #33c4f8;
    --theme-navbar-brand-hover: #0bd78c;

    --theme-navlink-bg: #0b876e;
    --theme-navlink-color: #ffffff;
    --theme-navlink-hover-bg: #0b5ed7;
    --theme-navlink-hover-border: #0a58ca;
    --theme-navlink-active-bg: #084298;
    --theme-navlink-active-border: #06357a;
    --theme-navlink-shadow: rgba(73, 72, 72, 0.996);

    --theme-toggler-border: rgb(167, 204, 235);
    --theme-toggler-bg-start: rgba(255, 255, 255, 0.548);
    --theme-toggler-bg-end: rgba(210, 232, 255, 0.548);
    --theme-toggler-shadow: rgb(132, 190, 237);

    --theme-card-caption-border: #1e8fff;
    --theme-card-caption-bg: #083d6e;
    --theme-card-caption-color: #ffffff;

    --theme-map-bg-start: #d4ecf6;
    --theme-map-bg-end: #a3cde3;
    --theme-map-border-start: #6aa1c9;
    --theme-map-border-end: #2465d6;
    --theme-map-shadow-1: rgba(12, 32, 60, 0.487);
    --theme-map-shadow-2: rgba(12, 30, 60, 0.435);

    --theme-footer-bg: #111827;
    --theme-footer-color: #e5e7eb;
    --theme-modal-bg: #111827;
    --theme-modal-color: #f9fafb;

    --phone-underline-color: #ff711e;
}

[data-bs-theme="dark"] {
    --theme-body-bg: #0f1720;
    --theme-body-color: #dbe6f0;
    --theme-surface-bg: #1a2430;
    --theme-surface-color: #d3dce6;
    --theme-surface-border: rgba(164, 179, 199, 0.35);
    --theme-section-title: #9dd7ff;
    --theme-section-title-shadow: rgba(4, 9, 15, 0.85);
    --theme-section-title-glow: rgba(64, 129, 170, 0.55);

    --theme-logo-surface-top: rgba(20, 31, 44, 0.85);
    --theme-logo-surface-bottom: rgba(15, 24, 35, 0.9);
    --theme-logo-border-start: rgba(74, 144, 226, 0.6);
    --theme-logo-border-end: rgba(45, 191, 173, 0.55);

    --theme-navbar-bg-start: #123251;
    --theme-navbar-bg-end: #1f5d46;
    --theme-navbar-shadow: rgba(5, 11, 18, 0.75);
    --theme-navbar-after-start: rgba(6, 15, 23, 0.6);
    --theme-navbar-after-end: rgba(6, 15, 23, 0);
    --theme-navbar-brand: #7dd3fc;
    --theme-navbar-brand-hover: #67e8f9;

    --theme-navlink-bg: #0f5f5a;
    --theme-navlink-color: #eef8ff;
    --theme-navlink-hover-bg: #1669c1;
    --theme-navlink-hover-border: #2b81d6;
    --theme-navlink-active-bg: #0d4f92;
    --theme-navlink-active-border: #3f8ce0;
    --theme-navlink-shadow: rgba(0, 0, 0, 0.55);

    --theme-toggler-border: rgba(125, 177, 228, 0.7);
    --theme-toggler-bg-start: rgba(31, 57, 84, 0.85);
    --theme-toggler-bg-end: rgba(18, 39, 61, 0.85);
    --theme-toggler-shadow: rgba(6, 12, 20, 0.7);

    --theme-card-caption-border: #4d9adb;
    --theme-card-caption-bg: #102f4d;
    --theme-card-caption-color: #eaf2fb;

    --theme-map-bg-start: #15273a;
    --theme-map-bg-end: #1a3147;
    --theme-map-border-start: #2b6f98;
    --theme-map-border-end: #2a4f9e;
    --theme-map-shadow-1: rgba(2, 7, 14, 0.88);
    --theme-map-shadow-2: rgba(2, 7, 14, 0.65);

    --theme-footer-bg: #060c14;
    --theme-footer-color: #d7e0ea;
    --theme-modal-bg: #0a1220;
    --theme-modal-color: #eaf2fb;

    --phone-underline-color: #f59e0b;
}

body {
    background-color: var(--theme-body-bg);          /* Цвет фона страницы */
    color: var(--theme-body-color);
}

body,
.navbar,
.banner-text-box,
.card-caption,
.logo,
.header-phone,
.footer-surface,
.modal-surface {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
/* =====  ===== */
body {
  font-size: 1.04rem;
}
/* ===== HERO WRAPPER ===== */
/* Контейнер для header и carousel */
.hero-wrapper {
    position: relative;                  /* Относительное позиционирование для абсолютных элементов внутри */
}

/* ===== HERO HEADER ===== */
/* Главный header, поверх hero/carousel */
.hero-header {
    position: absolute;  /* Абсолютное позиционирование поверх изображения */
    top: -18px;           /* Отступ сверху */
    left: 0;             /* Выровнять по левому краю */
    width: 100%;         /* На всю ширину контейнера */
    z-index: 5;          /* Поверх остальных элементов */
}

/* ===== HEADER INNER ===== */
/* Внутренний контейнер логотипа и телефона */
.header-inner {
    display: flex;                /* Flex-контейнер для размещения элементов в ряд */
    justify-content: space-between; /* Распределяем пространство между логотипом и телефоном */
    align-items: center;          /* Выравниваем элементы по вертикали */
    gap: 6px;                     /* Расстояние между элементами */
    padding: 12px 20px;           /* Внутренние отступы */
    
    border: none;
    background: transparent;
}


.logo .logo-shop-line {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    vertical-align: middle;
}


.logo .logo-shop-line .icon-shop-2x {
    flex: 0 0 auto;
    transform: translateY(8px);
}




.logo .logo-geo-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.logo .logo-geo-text {
    display: inline-block;
    text-align: left;
    line-height: 1.2;
}
/* ===== АКЦЕНТ ЛЮКС ===== */
.lux-accent {
    color: #e1533a;
    text-shadow:
        0 1px 2px rgba(48, 47, 47, 0.306),
        0 4px 10px rgba(39, 149, 222, 0.299);
    text-decoration: none;
}

.lux-accent::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 2px;
    background: linear-gradient(90deg, #ff761a, #16cc10);
    box-shadow: 0 2px 6px rgb(71, 132, 173);
    border-radius: 2px;
}
/* ===== Подчёркивание ===== */
.glow-text {
    position: relative;
    display: inline-block;
}
.glow-text::after {
    content: ""; /* Обязательное свойство для псевдоэлемента */
    position: absolute;
    left: 0;
    bottom: -6px; /* Отступ линии от текста */
    width: 100%;
    height: 3px; /* Толщина подчёркивания */

    background: linear-gradient(45deg, #f305059b, #bff305a8); /* Градиент подчёркивания */
    border-radius: 2px; /* Сглаживаем края линии */

    box-shadow: 0 0 6px rgba(247, 243, 231, 0.62); /* Свечение линии */
}

/* ===== ТЕЛЕФОН + РАСПИСАНИЕ ===== */
.header-phone {
    text-align: right;     /* Выравнивание текста по правому краю */
}

.phone-badge {
    font-weight: 600;      /* Жирность номера телефона */
    font-size: 18px;       /* Размер шрифта */
    color: #1e90ff;        /* Синий цвет номера */
    text-decoration-line: underline;
    text-decoration-color: var(--phone-underline-color);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.phone-badge:hover {
    text-decoration-color: var(--phone-underline-color);
}

.phone-badge.d-block {
    display: inline-flex !important;
}

.phone-icon {
    width: 1.9rem;
    height: 1.9rem;
    line-height: 1;
    color: #d00000;
    flex: 0 0 auto;
}

.mobile-icon {
    width: 1.9rem;
    height: 1.9rem;
}

.landline-icon {
    width: 1.9rem;
    height: 1.9rem;
    color: #1e90ff;
}

.timetable {
    font-size: 14px;  /* Размер шрифта для расписания */
    line-height: 1.3; /* Межстрочный интервал */
    text-align: center;
}

.timetable-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.timetable-text {
    display: inline-block;
    text-align: left;
}

.timetable-line .icon-clock-block {
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
}

/* ===== CAROUSEL HERO ===== */
.carousel-hero {
    position: relative;  /* Чтобы overlay и captions позиционировались */
}

.carousel-hero img {
    max-height: 420px;  /* Ограничиваем высоту изображений */
    object-fit: cover;  /* Изображение не деформируется, обрезается по необходимости */
}

.carousel-overlay {
    position: absolute;       /* Абсолютное позиционирование поверх изображения */
    inset: 0;                 /* Занимает всю ширину и высоту */
    background: rgba(0, 0, 0, 0.372); /* Полупрозрачный темный фон */
    z-index: 1;               /* Под caption */
}

.carousel-caption-custom {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); /* Центрирование по горизонтали и вертикали */
    z-index: 2;                       /* Над overlay */
    text-align: center;                /* Центрирование текста */
    color: #fff;                       /* Белый текст */
    padding: 0 15px;                   /* Горизонтальные отступы */
}

.carousel-caption-custom h1 {
    font-size: clamp(1.8rem, 4vw, 3rem); /* Адаптивный размер заголовка */
    font-weight: 700;                     /* Жирный */
}

.carousel-caption-custom p {
    font-size: clamp(1rem, 2vw, 1.25rem); /* Адаптивный размер параграфа */
    margin-top: 10px;                     /* Отступ сверху */
    opacity: 0.9;                         /* Немного прозрачный */
}

/* ===== HERO H1 (ЦВЕТ, ЯРКОСТЬ, ОБЪЁМ) ===== */
.title-h1-accent .h1-word {
    display: inline-block; /* Для независимого свечения и объёма */
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.972),
        0 0 14px rgb(255, 255, 255); /* Мягкое свечение */
    letter-spacing: 0.02em; /* Чуть больше воздуха */
}

.title-h1-accent .h1-word-main {
    color: #34b4e2; /* Яркий холодный акцент */
    filter: brightness(1.15) saturate(1.2); /* Усиление яркости */
}

.title-h1-accent .h1-word-city {
    color: #5a88ea; /* Тёплый контраст */
    filter: brightness(1.1) saturate(1.1);
    margin-left: 0.35em; /* Разделение слов */
}

.title-h2-accent .h-word-city { 
    color: #3cbce0;
    margin-left: 0.35em;
    font-weight: 800; /* акцент без фильтра */
}
.title-h3-accent .h-word-city { 
    color: #5dc781;
    margin-left: 0.35em;
    font-weight: 800; /* акцент без фильтра */
}

/* ===== SECTION TITLE TEXT (ОБЪЁМ, ЦВЕТ, ТЕНЬ) ===== */
.section-title-text-3d {
    color: var(--theme-section-title); /* Светлый акцент для текста */
    text-shadow:
        0 2px 6px var(--theme-section-title-shadow),
        0 0 10px var(--theme-section-title-glow);
    letter-spacing: 0.02em;
} 


/* ===== BANNER HOVER & EFFECTS ===== */
.banner-border-zoom2 {
    border: 2px solid #1e8fff9b;  /* Толщина и цвет рамки */
    border-radius: 10px;         /* Скругление */
    overflow: hidden;            /* Чтобы картинки не вылазили за рамку */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Плавная анимация */
}

.banner-border-zoom2 img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.banner-border-zoom2:hover {
    transform: scale(1.05);                 /* Увеличение при наведении */
    box-shadow: 0 8px 20px rgba(0,0,0,0.2); /* Тень */
}

.banner-text-box {
    max-width: 900px;   /* Ограничение ширины */
    margin: 50px auto;  /* Центрирование блока с отступами сверху и снизу */
    text-align: center; /* Текст по центру */
    font-size: 1.25rem; /* Размер текста */
    line-height: 1.6;   /* Межстрочный интервал */
    color: var(--theme-surface-color);        /* Цвет текста */
    padding: 20px;      /* Внутренние отступы */
    border: 1px solid var(--theme-surface-border);
    border-radius: 10px;  
    background-color: var(--theme-surface-bg);
}

/* ===== GALLERY ===== */
.catalog-section .card-img-top,
.gallery-section .card-img-top {
    width: 100%;
    height: auto;
    aspect-ratio: 292 / 180;
    object-fit: cover;
}

/* ===== GALLERY CARDS (ОБЪЁМ + ТЕНЬ) ===== */
.gallery-section .card {
    box-shadow: none !important;
    transition: transform 0.2s ease;
}

.gallery-section .card:hover {
    transform: translateY(-4px);
    box-shadow: none !important;
}

/* ===== CARD CAPTION & OVERLAY ===== */
.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 0;
    background: rgba(8, 61, 110, 0.548); /* Темно-синий полупрозрачный фон */
    color: #ffffff90;
}

.overlay-text h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.card-caption {
    border: 3px solid var(--theme-card-caption-border);    /* Толщина и цвет рамки */
    border-radius: 8px;           /* Скругление углов */
    background-color: var(--theme-card-caption-bg);    /* Темно-синий фон */
    color: var(--theme-card-caption-color);                  /* Цвет текста */
    padding: 8px 4px;             /* Внутренние отступы */
    font-weight: 600;             /* Жирность текста */
    text-align: center;           /* Центрирование текста */
}


/* ===== BORDER THICKNESS VARIANTS ===== */
.border-thin {
    border-width: 1px !important;
}

.border-medium {
    border-width: 3px !important;
}

.border-thick {
    border-width: 5px !important;
}

/* ===== MAP (Яндекс карта) ===== */
.map-frame {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 22px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, var(--theme-map-bg-start), var(--theme-map-bg-end)) padding-box,
        linear-gradient(145deg, var(--theme-map-border-start), var(--theme-map-border-end)) border-box;
    border: 6px solid transparent;
    box-shadow:
        0 18px 36px var(--theme-map-shadow-1),
        0 6px 14px var(--theme-map-shadow-2);
    position: relative;
}

.map-frame-lazy {
    min-height: 220px;
}

.map-frame-lazy:not(.map-is-loaded) .map-iframe {
    opacity: 0;
    pointer-events: none;
}

.map-frame-lazy.map-is-loaded .map-iframe {
    opacity: 1;
    transition: opacity 0.25s ease;
}

.map-load-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.map-frame-lazy.map-is-loaded .map-load-btn {
    display: none;
}

.map-iframe {
    width: 100%;                     /* адаптивная ширина iframe */
    aspect-ratio: 2 / 1;             /* сохраняем пропорции 1000x500 */
    border: 0;                       /* убираем рамку iframe */
    border-radius: 6px;              /* небольшое скругление для iframe */
    display: block;                  /* корректное центрирование */
}

/* ===== MEDIA (АДАПТИВ) ===== */
@media (max-width: 768px) {
    .hero-header {
        position: static;             /* не абсолютное позиционирование на мобильных */
        margin-top: -22px;
        margin-bottom: 2px;
    }
    .header-inner {
        flex-direction: column;       /* вертикально для мобильных */
        text-align: center;           /* центрирование элементов */
    }
    .header-phone {
        text-align: center;           /* центрирование текста телефона */
    }
}

/* Дополнительная адаптивная настройка для очень маленьких экранов */
@media (max-width: 576px) {
    .map-frame {
        padding: 10px;
        border-width: 4px;
    }
    .map-iframe {
        aspect-ratio: 4 / 3;
    }
}
/* ===== ДЕКОР РАМКИ ЛОГО И ТЕЛЕФОНА ===== */
.logo,
.header-phone {
    max-width: 900px;
    border: 4px solid transparent;
    border-radius: 2rem;
    padding: 1rem 1.5rem;
    background:
        linear-gradient(var(--theme-logo-surface-top), var(--theme-logo-surface-bottom)) padding-box,
        linear-gradient(to right, var(--theme-logo-border-start), var(--theme-logo-border-end)) border-box;
}
/* ================= NAVBAR ОБЁМНЫЙ БЛОК ================= */

/* Стили для всей панели навигации */

.navbar {
  background: linear-gradient(120deg, var(--theme-navbar-bg-start) 0%, var(--theme-navbar-bg-end) 100%);
  border-radius: 15px;
  box-shadow: 0 4px 12px var(--theme-navbar-shadow);
  padding: 1rem 1.5rem;
  margin-bottom: 10px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.navbar::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -10px;
  height: 10px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(to bottom, var(--theme-navbar-after-start), var(--theme-navbar-after-end));
  pointer-events: none;
}

/* ===== BURGER (NAVBAR TOGGLER) ===== */
.navbar-toggler {
  border: 1px solid var(--theme-toggler-border);
  border-radius: 12px;
  padding: 0.45rem 0.6rem;
  background:
    linear-gradient(145deg, var(--theme-toggler-bg-start), var(--theme-toggler-bg-end));
  box-shadow:
    0 6px 14px var(--theme-toggler-shadow),
    inset 0 1px 2px rgba(255, 255, 255, 0.493);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.navbar-toggler:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 18px rgba(66, 170, 255, 0.588),
    inset 0 1px 2px rgb(255, 255, 255);
}
.navbar-toggler:focus {
  box-shadow:
    0 0 0 0.2rem rgb(66, 170, 255),
    0 8px 18px rgb(66, 170, 255);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(66, 170, 255, 0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  filter: none;
}
[data-bs-theme="dark"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(141, 205, 255, 0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hover эффект — блок приподнимается, создавая интерактивность */
.navbar:hover {
  transform: translateY(-3px); /* смещаем блок чуть вверх */
}

/* ===== BRAND TITLE (СИНИЙ + ОБЪЁМ) ===== */
.brand-title {
    color: var(--theme-navbar-brand); /* Синий акцент */
    text-shadow: 0 1px 2px rgba(0,0,0,.2);
    transition: color 0.2s ease;
}

.navbar .link-body-emphasis:hover .brand-title,
.navbar .link-body-emphasis:focus-visible .brand-title {
    color: var(--theme-navbar-brand-hover);
}

/* ================= КНОПКИ В НАВБАРЕ ================= */

/* Общие стили для кнопок внутри navbar */
.navbar .nav-link {
  /* Скругляем углы кнопок */
  border-radius: 10px; 
  
  background-color: var(--theme-navlink-bg);
  color: var(--theme-navlink-color);  /* Цвет текста */
  border: 1px solid transparent;
  box-shadow: 0 2px 6px var(--theme-navlink-shadow);
  
  /* Плавное изменение стиля при hover */
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  display: inline-block;
}

/* Hover эффект для кнопок — кнопка «выпрыгивает» и тени усиливаются */
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  background-color: var(--theme-navlink-hover-bg);
  border-color: var(--theme-navlink-hover-border);
  transform: translateY(-2px); /* чуть приподнимаем кнопку */
  box-shadow: 0 3px 8px rgba(0,0,0,.2);
}

.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"] {
  background-color: var(--theme-navlink-active-bg);
  border-color: var(--theme-navlink-active-border);
  color: var(--theme-navlink-color);
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--theme-toggler-border);
  background: linear-gradient(145deg, var(--theme-toggler-bg-start), var(--theme-toggler-bg-end));
  color: var(--theme-navlink-color);
  box-shadow: 0 4px 12px var(--theme-navlink-shadow);
  align-items: center;
  justify-content: center;
  padding: 0;
}
.theme-toggle-btn i {
  font-size: 1.05rem;
  line-height: 1;
}
.theme-toggle-btn:hover,
.theme-toggle-btn:focus-visible {
  transform: translateY(-1px);
  color: var(--theme-navlink-color);
}

.nav-link-theme-mobile {
  border: 1px solid transparent;
  cursor: pointer;
}
.nav-link-theme-mobile span {
  font-weight: 600;
}
@media (max-width: 991.98px) {
  .navbar .navbar-nav {
    gap: 0.5rem !important;
  }

  .navbar .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar .navbar-nav .nav-link {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
  }

  .nav-link-theme-mobile {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
  }
}
address {
  font-style: normal;
}

.footer-surface {
  background-color: var(--theme-footer-bg);
  color: var(--theme-footer-color);
}

.footer-surface a:not(.phone-badge),
.footer-surface a:not(.phone-badge):visited {
  color: #62d26f;
  text-decoration-color: #62d26f;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
}

.footer-surface a:not(.phone-badge):hover,
.footer-surface a:not(.phone-badge):focus-visible {
  color: #7ee08a;
  text-decoration-color: #7ee08a;
}

.modal-surface {
  background-color: var(--theme-modal-bg);
  color: var(--theme-modal-color);
}
.modal-surface .modal-title {
  color: inherit;
}
#galleryModal .btn-close {
  filter: invert(1) grayscale(100%) brightness(180%);
}

.btn-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1030;

  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.btn-back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.btn-back-to-top {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.761);
}

.btn-back-to-top:hover {
  transform: translateY(-2px);
}

.btn-back-to-top .icon {
  width: 1.25rem;
  height: 1.25rem;
  line-height: 1;
}

/* ===== BELOW-THE-FOLD RENDER OPTIMIZATION ===== */
.catalog-section,
.gallery-section,
#map {
  content-visibility: auto;
  contain-intrinsic-size: 1px 1000px;
}

/* ===== MODAL GALLERY ===== */
#galleryModal .modal-content {
  min-height: 100%;
}

#galleryModal .modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#galleryCarousel,
#galleryCarousel .carousel-inner,
#galleryCarousel .carousel-item {
  width: 100%;
}

#galleryCarousel .carousel-item img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 110px);
  object-fit: contain;
  margin: 0 auto;
}

@media (max-width: 576px) {
    .map-frame {
        padding: 10px;
        border-width: 4px;
    }
    .map-iframe {
        aspect-ratio: 4 / 3;
    }
}

.icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
  vertical-align: -0.125em;
  flex: 0 0 auto;
}

.icon.fs-1 {
  width: 2.5rem;
  height: 2.5rem;
}

.icon-house-brand {
  width: 1.54rem;
  height: 1.54rem;
}

.icon-geo-2x {
  width: 2.2rem;
  height: 2.2rem;
}

.icon-shop-2x {
  width: 2.2rem;
  height: 2.2rem;
}






