/*
 * Единая primary-кнопка: золото + тёмный текст (Figma 2016:736 и др.).
 * !important — theme.min.css задаёт светлый текст на primary поверх наших переменных.
 */
.btn.btn-primary {
    --bs-btn-bg: #ffba08 !important;
    --bs-btn-border-color: #ffba08 !important;
    --bs-btn-color: #2d3243 !important;
    --bs-btn-hover-bg: #e5a800 !important;
    --bs-btn-hover-border-color: #e5a800 !important;
    --bs-btn-hover-color: #2d3243 !important;
    --bs-btn-active-bg: #d09900 !important;
    --bs-btn-active-border-color: #d09900 !important;
    --bs-btn-active-color: #2d3243 !important;
    --bs-btn-disabled-bg: #e5a800 !important;
    --bs-btn-disabled-border-color: #e5a800 !important;
    --bs-btn-disabled-color: #2d3243 !important;
    color: #2d3243 !important;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus-visible,
.btn.btn-primary:active,
.btn.btn-primary.active,
.show > .btn.btn-primary.dropdown-toggle {
    --bs-btn-color: #2d3243 !important;
    --bs-btn-hover-color: #2d3243 !important;
    --bs-btn-active-color: #2d3243 !important;
    color: #2d3243 !important;
}

/* Lazy loading images */
.lazy-img {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.lazy-img.lazy-loaded {
    opacity: 1;
}

.text-gold {
    color: #da9c00;
}

.font-PlayfairDisplay {
    font-family: Playfair Display, serif;
}

.va-tb {
    vertical-align: text-bottom;
}

.va-tt {
    vertical-align: text-top;
}

.zindex-10 {
    z-index: 10;
}

.border-gold {
    border-color: #da9c00 !important;
}

.border-black {
    border-color: #000 !important;
}

.services-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-gray {
    background-color: #424655;
}


.shadow-gold {
    -webkit-box-shadow: 0 0 25px 15px rgba(218, 156, 0, 0.2);
    -moz-box-shadow: 0 0 25px 15px rgba(218, 156, 0, 0.2);
    box-shadow: 0 0 25px 15px rgba(218, 156, 0, 0.2);
}

.title-underline {
    position: relative;
    display: inline-block; /* ширина = текст */
    padding-bottom: 2px;
}

.title-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%; /* строго по тексту */
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
}

.mt-n1 {
    margin-top: -10px !important;
}

/* Блок статистики на главной (Bootstrap 5 + Silicon, макет Figma) */
.stats-section {
    --stats-card-bg: #2d3243;
    --stats-icon-bg: #ffba08;
    --stats-divider: rgba(255, 255, 255, 0.22);
}

.stats-section .row {
    --bs-gutter-x: 2rem;
    --bs-gutter-y: 2rem;
}

.stats-section__card {
    background-color: var(--stats-card-bg);
}

.bg-stats-icon {
    background-color: var(--stats-icon-bg) !important;
}

.stats-section__icon-wrap {
    width: 3rem;
    height: 3rem;
    padding: 0.625rem;
    box-sizing: border-box;
}

.stats-section__icon-wrap img {
    display: block;
}

.stats-section__icon-placeholder {
    width: 28px;
    height: 28px;
}

.stats-section__body {
    min-width: 0;
}

.stats-section__value {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.4;
    flex-shrink: 0;
}

.stats-section__desc {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    min-width: 0;
}

.stats-section__divider {
    width: 1px;
    background-color: var(--stats-divider);
    min-height: 2.5rem;
}

@media (max-width: 399.98px) {
    .stats-section__body {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem !important;
    }

    .stats-section__divider {
        width: 100%;
        height: 1px;
        min-height: 0;
        align-self: stretch;
    }
}

@media(min-width: 992px) {

    .h-md-100 {
        height: 100% !important;
    }

}

@media(max-width: 767px) {
    .services-img {
        position: static;
        height: auto;
    }
}

/* Custom 404 page */
.not-found-page {
  min-height: 520px;
  background: var(--section-bg-dark, #2d3243);
  color: #fff;
}

.not-found-page__inner {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 80px;
}

.not-found-page__content {
  width: 100%;
  max-width: 760px;
  text-align: center;
}

.not-found-page__eyebrow {
  margin: 0 0 16px;
  color: #ffba08;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.not-found-page__title {
  margin: 0;
  color: #fff;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
}

.not-found-page__text {
  max-width: 620px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.6;
}

.not-found-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.not-found-page__btn {
  min-width: 168px;
}

.not-found-page__phone {
  display: inline-flex;
  margin-top: 28px;
  color: #ffba08;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.not-found-page__phone:hover,
.not-found-page__phone:focus-visible {
  color: #fff;
}

@media (max-width: 767.98px) {
  .not-found-page {
    min-height: 480px;
  }

  .not-found-page__inner {
    min-height: 480px;
    padding-top: 96px;
    padding-bottom: 64px;
  }

  .not-found-page__title {
    font-size: 36px;
  }

  .not-found-page__text {
    font-size: 17px;
  }
}

@media (max-width: 399.98px) {
  .not-found-page__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .not-found-page__btn {
    width: 100%;
  }
}

/* Секции лендинга: подключаются в base.html (sections.css) */

/* =========================================================
   Site Navbar (header redesign, Figma 710-1022)
   ========================================================= */
.site-navbar {
  background-color: #2d3243;
  box-shadow: 0 4px 20px rgba(255, 186, 8, 0.28);
  height: 64px;
  z-index: 1030;
}

.site-navbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

/* Logo */
.site-navbar__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.site-navbar__logo img {
  max-height: 67px;
  width: auto;
}

.site-navbar__logo-mark {
  display: none;
}

/* Nav */
.site-navbar__nav {
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: center;
}

.site-navbar__nav .navbar-nav {
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0 !important;
  justify-content: center;
}

.site-navbar__nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-family: Manrope, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 10px;
  white-space: nowrap;
  transition: color 0.15s;
}

.site-navbar__nav .nav-link:hover,
.site-navbar__nav .nav-link.active {
  color: #ffba08;
}

.site-navbar__nav .dropdown-menu {
  background-color: #2d3243;
  border: 1px solid rgba(255, 186, 8, 0.4);
  border-radius: 8px;
}

.site-navbar__nav .dropdown-item {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.site-navbar__nav .dropdown-item:hover,
.site-navbar__nav .dropdown-item:focus {
  background-color: rgba(255, 186, 8, 0.15);
  color: #ffba08;
}

/* City dropdown */
.site-navbar__city {
  flex-shrink: 0;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  gap: 2px;
}

.site-navbar__city-hours {
  color: rgba(255, 255, 255, 0.55);
  font-family: Manrope, sans-serif;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.site-navbar__city-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #fff;
  font-family: Manrope, sans-serif;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.site-navbar__city-btn:hover .site-navbar__city-name {
  color: #ffba08;
}

.site-navbar__city-pin {
  opacity: 0.65;
}

.site-navbar__city-arrow {
  opacity: 0.7;
  transition: transform 0.2s;
}

.site-navbar__city-btn[aria-expanded="true"] .site-navbar__city-arrow {
  transform: scaleY(-1);
}

.site-navbar__city-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  background-color: #2d3243;
  border: 1px solid rgba(255, 186, 8, 0.45);
  border-radius: var(--section-radius-sm);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.site-navbar__city-option {
  padding: 9px 16px;
  color: rgba(255, 255, 255, 0.85);
  font-family: Manrope, sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.site-navbar__city-option:hover {
  background-color: rgba(255, 186, 8, 0.15);
  color: #ffba08;
}

.site-navbar__city-option.is-current {
  color: #ffba08;
  font-weight: 600;
}

/* Phone button */
.site-navbar__phone {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffba08;
  color: #2d3243;
  font-family: Manrope, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 10px 19px;
  border-radius: var(--section-radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}

.site-navbar__phone:hover {
  background-color: #e5a800;
  color: #2d3243;
}

/* Max messenger icon */
.site-navbar__max {
  flex-shrink: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  text-decoration: none;
}

.site-navbar__max-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(145deg, #44c7f4 0%, #3768f4 44%, #a84cdf 100%);
  border-radius: 50%;
}

.site-navbar__max-icon {
  position: relative;
  z-index: 1;
}

/* Mobile city select */
.site-navbar__mobile-city {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.site-navbar__city-select {
  background: transparent;
  border: none;
  color: #fff;
  font-family: Manrope, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 0;
  /* native select appearance for mobile */
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

.site-navbar__city-select option {
  background-color: #2d3243;
  color: #fff;
}

.site-navbar__mobile-max {
  width: 34px;
  height: 34px;
}

/* Burger */
.site-navbar__burger {
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.site-navbar__burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: background-color 0.15s;
}

.site-navbar__burger:hover .site-navbar__burger-line {
  background-color: #ffba08;
}

@media (max-width: 991.98px) {
  .site-navbar__inner {
    gap: 12px;
  }

  .site-navbar__logo .site-navbar__logo-mark {
    display: block;
    width: 56px;
    height: 52px;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: left center;
  }

  .site-navbar__city-select {
    font-size: 14px;
  }
}

@media (max-width: 374.98px) {
  .site-navbar__inner {
    gap: 9px;
  }

  .site-navbar__mobile-max {
    width: 32px;
    height: 32px;
  }
}

/* =========================================================
   Site Offcanvas (mobile menu)
   ========================================================= */
.site-offcanvas {
  background-color: #2d3243;
  color: #fff;
  width: 300px !important;
  display: flex;
  flex-direction: column;
}

.site-offcanvas__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 186, 8, 0.3);
}

.site-offcanvas__logo {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.site-offcanvas__logo img {
  max-height: 40px;
  width: auto;
}

.site-offcanvas__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.site-offcanvas__close:hover {
  color: #ffba08;
}

.site-offcanvas__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px 0;
}

/* Nav inside offcanvas */
.site-offcanvas__body .navbar-nav {
  flex-direction: column !important;
  gap: 0;
}

.site-offcanvas__body .nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.site-offcanvas__body .nav-link:hover,
.site-offcanvas__body .nav-link.active {
  color: #ffba08;
  background-color: rgba(255, 186, 8, 0.08);
}

.site-offcanvas__body .dropdown-menu {
  background-color: rgba(0, 0, 0, 0.2);
  border: none;
  border-radius: 0;
  padding: 0;
  position: static !important;
  transform: none !important;
  box-shadow: none;
}

.site-offcanvas__body .dropdown-item {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  padding: 10px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-offcanvas__body .dropdown-item:hover {
  background-color: rgba(255, 186, 8, 0.12);
  color: #ffba08;
}

.site-offcanvas__footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 186, 8, 0.3);
  display: flex;
  gap: 12px;
  align-items: center;
}

.site-offcanvas__phone {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffba08;
  color: #2d3243;
  font-family: Manrope, sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.site-offcanvas__phone:hover {
  background-color: #e5a800;
  color: #2d3243;
}

.site-offcanvas__max {
  flex-shrink: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: Manrope, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
}

.site-offcanvas__max-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(145deg, #44c7f4 0%, #3768f4 44%, #a84cdf 100%);
}

.site-offcanvas__max-icon,
.site-offcanvas__max span {
  position: relative;
  z-index: 1;
}

.site-offcanvas__max:hover {
  color: #fff;
}

/* Navbar height compensation for page content */
body {
  padding-top: 64px;
}

/* ============================
   Site Footer
   ============================ */

.site-footer {
  background-color: #1e2333;
  border-top: 1px solid rgba(255, 186, 8, 0.2);
  padding: 36px 0 0;
  font-family: Manrope, sans-serif;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
  padding-bottom: 48px;
}

@media (max-width: 767.98px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Left column */

.site-footer__brand {
  display: inline-block;
  margin-bottom: 28px;
}

.site-footer__brand img {
  opacity: 0.8;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-bottom: 28px;
}

.site-footer__nav-link {
  display: block;
  width: 50%;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.18s;
  line-height: 1.4;
}

.site-footer__nav-link:hover,
.site-footer__nav-link.is-active {
  color: #ffba08;
}

@media (max-width: 575.98px) {
  .site-footer__nav-link {
    width: 100%;
  }
}

.site-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__legal-link {
  color: rgba(255, 255, 255, 0.4);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s;
  letter-spacing: 0.01em;
}

.site-footer__legal-link:hover {
  color: rgba(255, 186, 8, 0.8);
}

.site-footer__copyright {
  color: rgba(255, 255, 255, 0.25);
  font-size: 15px;
  margin: 0;
}

/* Right column */

.site-footer__right {
  padding-top: 4px;
}

.site-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.site-footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffba08;
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.18s;
}

.site-footer__phone:hover {
  color: #fff;
}

.site-footer__phone svg {
  flex-shrink: 0;
  color: rgba(255, 186, 8, 0.6);
}

.site-footer__email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s;
}

.site-footer__email:hover {
  color: #ffba08;
}

.site-footer__email svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.35);
}

.site-footer__messengers {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.site-footer__messenger-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 19px;
  border-radius: var(--section-radius-sm);
  background-color: #2d3243;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s, transform 0.18s;
  letter-spacing: 0.03em;
}

.site-footer__messenger-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

.site-footer__messenger-btn--tg {
  /* icon colored inside, button neutral */
}

.site-footer__messenger-btn--max {
  /* icon colored inside, button neutral */
}

.site-footer__max-icon {
  display: block;
}

/* Disclaimer bar */

.site-footer__disclaimer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background-color: rgba(0, 0, 0, 0.2);
  padding: 18px 0;
}

.site-footer__disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.site-footer__disclaimer-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: rgba(255, 186, 8, 0.5);
}

/* ── Cookie banner ── */

.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  max-width: 400px;
  width: calc(100% - 48px);
  background: #ffffff;
  color: #5a5f72;
  font-size: 14px;
  line-height: 1.6;
  padding: 20px 20px 16px;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.cookie-banner--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-banner--hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

.cookie-banner__text {
  margin: 0 0 14px;
  color: #5a5f72;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-banner__link {
  color: #ffba08;
  text-decoration: underline;
  text-decoration-color: rgba(255, 186, 8, 0.45);
  white-space: nowrap;
}

.cookie-banner__link:hover {
  color: #e5a800;
  text-decoration-color: #e5a800;
}

.cookie-banner__btn {
  display: block;
  width: 100%;
  background: #2d3243;
  color: #ffffff;
  border: none;
  border-radius: var(--section-radius-sm);
  padding: 10px 19px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cookie-banner__btn:hover {
  background: #ffba08;
  color: #2d3243;
}

@media (max-width: 575px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
  }
}
