:root {
  --black: #000000;
  --gray: hsl(0deg 0% 26.09%);
  --white: #ffffff;
  --red: #b01111;
  --blue: #00a0e3;
  --dark-blue: #017ec6;
  --yellow: #ffdd00;
  --green: #4cb011;
  --orange: #ff7500;
  --success: #c5ffb1;
  --unsuccess: #ffcdcd;
  --muted: #949494;
  --bg: #e6e6e6;
  --badge-1: var(--orange);
  --badge-2: var(--green);
  /* Gray scale (logo-aligned) */
  --gray-900: #222222;
  --gray-800: #333333;
  --gray-700: #444444;
  --gray-600: #7c7c7c;
  --gray-500: #b4b4b4;
  --gray-250: #dedede;
  --gray-100: #eeeeee;
  /* logo gray */
  --border: #e6e7ea;
  /* Accent for highlights (e.g., price-card .rate) */
  --accent: var(--orange);
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: "PT Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#h1-text h1 {
  margin-top: 48px;
}

#h1 h2 {
  color: white !important;
  font-size: 2.8rem;
  line-height: 1.4;
  text-shadow: 0 0 black;
  margin-bottom: 24px;
}

#h1 .lead,
#h1 .text-muted,
#h1 small {
  color: white !important;
}

.messenger-group {
  margin-right: 4px;
}

.messenger-icon img {
  width: 28px;
}

a {
  color: var(--gray-800);
  text-decoration: none;
}

a:hover {
  color: var(--black);
  text-decoration: underline;
}

section#calculator > .container {
  color: var(--black);
  background: var(--gray-250);
  border-radius: 16px;
  padding: 24px 48px;
  box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.25);
}

section#calculator .form-text {
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: var(--white);
}

.red,
.blue {
  color: var(--blue);
}

.black {
  color: var(--black);
}

.white {
  color: var(--white);
}

#logo-footer {
  max-width: 202px;
}

.footer-logo-text {
  color: white;
  font-size: 1.2rem;
}

.navbar-brand img {
  width: 100%;
  height: auto;
  /* max-width: 82px; */
  max-width: auto;
}

.navbar-brand strong {
  color: var(--blue);
  margin-left: 12px;
  font-size: 1.4rem;
  font-weight: 100;
}

nav a:not(.btn):hover {
  color: var(--blue) !important;
  text-decoration: none;
}

#h1 {
  position: relative !important;
  width: 100%;
  height: 30vh; /* Высота блока: 30% высоты экрана */
  height: 100%;
  max-height: 400px; /* Но не более 400px */
  overflow: hidden;
  display: flex; /* Используем флексбокс для вертикального центрирования текста */
  align-items: center; /* Выравнивание текста по вертикали по центру */
}

#h1 .h1-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover; /* Изображение заполняет всю область */
  background-position: center; /* Центрирование изображения */
  z-index: -2; /* Изображение находится в самом низу */
}

#h1 .h1-bg:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: rgba(
    0,
    0,
    0,
    0.6
  ); /* Полупрозрачная черная пленка (50% непрозрачности) */
  z-index: -1; /* Пленка находится над изображением, но под текстом */
}

#h1 .h1-text.container {
  position: relative;
  z-index: 0; /* Текст находится поверх пленки и изображения */
  width: 100%;
  /* Bootstrap классы d-flex, align-items-center, h-100 в HTML обеспечат выравнивание h1 внутри этого контейнера */
}

#h1 .h1-text h1 {
  width: 100%;
  color: var(--white);
}

#content {
  padding-top: 48px;
}

/* БАННЕР НА ГЛАВНОЙ */

.main-content {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-height: 80vh;
}

.main-content h1 {
  color: #333;
  margin-bottom: 20px;
  font-weight: 700;
}

.main-content p {
  color: #666;
  line-height: 1.8;
  font-size: 16px;
}

/* Стили для баннера скидки */
.discount-banner {
  position: fixed;
  z-index: 9999;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
  padding: 20px;
  min-width: 280px;
  max-width: 320px;
  color: white;
  font-family: "Arial", sans-serif;
}

.discount-banner__close {
  z-index: 99;
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
  position: absolute;
  right: 16px;
  top: 10px;
  border-radius: 100%;
}

.discount-banner__title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  opacity: 0.95;
}

.discount-banner__percent {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  margin: 10px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.discount-banner__text {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 15px;
  opacity: 0.95;
}

.discount-banner__btn {
  display: block;
  width: 100%;
  padding: 10px 15px;
  background: white;
  color: #ff6b6b;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.discount-banner__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #ff6b6b;
}

.discount-banner__btn:active {
  transform: translateY(0);
}

/* Пульсирующий эффект для процента */
.discount-banner__percent {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/*  АКЦИИ */

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

.gallery-item {
  height: 250px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-row {
  gap: 20px;
}

.date {
  background: #00a0e4;
  padding: 4px 8px;
  margin: 2px;
  border-radius: 8px;
  font-size: 0.8rem;
}

.faqs-item__arrow {
  color: #fff;
}

.faqs-item__arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.faqs-item__arrow.rotated {
  transform: rotate(180deg);
}

/* МЕНЮ (MENU) */

/* Общие стили для меню */

/* Стили для иконки гамбургера */
.navbar-toggler {
  border: none;
  background: transparent;
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  border-radius: 0.25rem;
  transition: box-shadow 0.15s ease-in-out;
}

.hamburger-lines {
  height: 20px;
  width: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.hamburger-lines .line {
  display: block;
  height: 2px;
  width: 100%;
  background: #333; /* Цвет линии гамбургера */
  border-radius: 10px;
}

/* Стили для стрелок выпадающего меню */
.dropdown-arrow {
  transition: transform 0.3s ease;
}

.mobile-dropdown button,
.mobile-dropdown .btn {
  text-decoration: none;
}

/* Общее вращение стрелки при открытом меню */
.dropdown-toggle[aria-expanded="true"] .dropdown-arrow,
.mobile-dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

/* Мобильные стрелки для переключения выпадающего списка */
.mobile-dropdown-toggle[aria-expanded="true"]:after {
  content: " ↑";
  color: var(--blue);
}

.mobile-dropdown-toggle[aria-expanded="false"]:after {
  content: " ↓";
  color: var(--black);
  font-weight: 400;
}

/* Десктопная навигация */
.desktop-nav-row .dropdown > .dropdown-toggle {
  display: flex;
  align-items: center;
  padding-right: 0.5rem;
  padding: var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);
}

.dropdown-menu {
  margin-left: 16px;
}

.desktop-nav-row .dropdown-menu {
  /* margin-left: 38px; */
  display: none; /* Управляется через JS hover */
  position: absolute;
  margin-top: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
  background-color: #fff;
  z-index: 1000;
  min-width: 12rem;
}

/* Стили для активных элементов выпадающего списка */
.dropdown-item.active,
.dropdown-item:active {
  color: var(--black);
  background: transparent;
}

/* Стили для подменю второго уровня */
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0.25rem;
  margin-right: 0.25rem;
  display: none; /* Управляется через JS hover */
}

.mobile-dropdown-menu {
  padding-left: 0.4rem;
}
.mobile-dropdown .text-decoration-none {
  width: 100%;
}

/* Отступы уровней на мобильном меню */
#mobileMenu .ps-2 {
  padding-left: 0.75rem !important;
}
#mobileMenu .ps-3 {
  padding-left: 1.25rem !important;
}

/* Custom styles for desktop hover dropdowns */
.desktop-nav-row .dropdown-menu {
  display: none; /* Скрываем по умолчанию, будем показывать через jQuery */
  position: absolute; /* Для корректного позиционирования */
  margin-top: 0; /* Убираем стандартный отступ */
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
  background-color: #fff;
  z-index: 1000;
  min-width: 10rem; /* Минимальная ширина выпадающего меню */
}

.dropdown-item.active,
.dropdown-item:active {
  color: var(--black);
  text-decoration: none;
  background-color: transparent;
}

/* Adjust dropdown toggle appearance to match other menu items */
.desktop-nav-row .dropdown > .dropdown-toggle {
  display: flex;
  align-items: center;
  padding-right: 0.5rem; /* Отступ справа для стрелки */
}

/* Стили для мобильного меню */

.mobile-menu {
  background-color: #f8f9fa; /* Цвет фона меню */
  width: 100%;
  position: absolute;
  top: 61px; /* Размещаем под хедером */
  left: 0;
  z-index: 999;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-dropdown-menu {
  padding-left: 32px; /* Отступ для дочерних элементов */
}

/* Ensure mobile links are stacked */
.mobile-dropdown .text-decoration-none {
  width: 100%; /* Занимают всю ширину */
}

header {
  position: fixed;
  width: 100%;
  left: 0;
  top: 0;
  background: var(--bg);
}

section.hero .small {
  font-size: 0.85rem !important;
}

section.hero {
  margin-top: 0;
}

section.hero-for-informations {
  position: relative;
  margin-bottom: 24px;
}

section.hero,
#prices,
#local,
#all-services {
  background: var(--white);
  padding: 12px 0;
  border-bottom: none;
  box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.25);
}

section.hero {
  background-color: var(--white);
  /* background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35)),  url(/assets/images/template/_im_b2b91157-d5d9-4bfb-ba87-3c05ec041fed.webp); */
  /* background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url(/assets/images/template/_im_641edfc0-29d2-446e-be6a-fdfdf4079dd3.webp); */
  background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url(/assets/images/template/_im_e94b2cd9-6773-4974-8aad-b7a793367ee1.webp);
  background-size: cover;
  background-repeat: no-repeat;
  padding: 12px 0;
  border-bottom: none;
  box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.25);
}

h1,
h2,
h1,
h2,
h3,
.display-5 {
  font-family: "Arial Black", Arial, "PT Sans", sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--blue);
}

h1,
h2,
h3 {
  font-family: system-ui, "sans serif";
  letter-spacing: 0;
}

h2,
h3,
h4,
h5,
h6 {
  color: var(--black);
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

h5 {
  font-family: "Arial Black", Arial, "PT Sans", sans-serif;
  font-weight: 400;
  color: var(--blue);
}

#logo-fixed {
}

#logo-fixed img {
}

section.hero h1 {
  font-size: 3.6rem;
  line-height: 1.25;
  margin-bottom: 62px;
  color: var(--white);
}

.section h2 {
  font-size: clamp(1.6rem, 1.6vw + 1rem, 2.4rem);
  margin-bottom: 22px;
}

section.hero .lead,
section.hero .text-muted {
  color: var(--white) !important;
  font-size: 1.15rem;
  max-width: 760px;
}

.section .sub {
  color: var(--black);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 28px;
}

section#prices {
  color: var(--white);
  color: var(--black);
  background: var(--white);
}

/* Breadcrumbs - хлебные крошки */

.breadcrumbs {
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 14px;
  color: #6c757d;
}

.breadcrumbs__list {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs__item {
  display: inline-block;
  margin-right: 5px;
}

.breadcrumbs__item:not(:last-child)::after {
  content: " → ";
  margin-left: 5px;
  color: #6c757d;
}

.breadcrumbs__link {
  color: var(--blue);
  text-decoration: none;
}

.breadcrumbs__link:hover {
  text-decoration: underline !important;
}

.breadcrumbs__current {
  color: #343a40;
  font-weight: bold;
}

.price-card {
  color: var(--white);
  background: var(--gray-700);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.035);
}

.price-card.has-hover-effect:hover {
  color: var(--black);
  background: transparent;
  transition: background-color 0.35s ease-in-out; /* Плавный переход для background-color */
}

.price-card .h5,
.price-card span,
.price-card .small,
.price-card .text-muted,
.price-card .muted {
  color: var(--white) !important;
}

.price-card.has-hover-effect:hover .h5,
.price-card.has-hover-effect:hover span,
.price-card.has-hover-effect:hover .small,
.price-card.has-hover-effect:hover .text-muted,
.price-card.has-hover-effect:hover .muted {
  color: var(--black) !important;
}

.small,
small {
  font-size: 0.9rem;
  font-weight: 400;
}

.price-card .rate {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--accent);
}

.price-card .badge {
  color: var(--gray-800);
  background: var(--white);
}

.price-card .badge.badge-color1 {
  color: var(--white);
  background: var(--badge-1);
}

.price-card .badge.badge-color2 {
  color: var(--white);
  background: var(--badge-2);
}

section#local {
  color: var(--black);
  background: var(--white);
}

section#local p,
section#local li,
section#local a {
  color: var(--black);
}

/* Blog */

.blog--item {
  background: #ffffff;
  padding: 24px;
  margin-bottom: 18px;
  border-radius: 12px;
}

/* FAQs */

.faqs-item {
  margin-bottom: 12px;
}

.faqs-item__header {
  cursor: pointer;
  position: relative;
  font-weight: 400;
  padding-right: 2rem;
  margin-bottom: 24px;
}

.faqs-item__arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease-in-out;
}

.faqs-item__arrow.faqs-item__arrow_rotated {
  transform: translateY(-50%) rotate(180deg);
}

.faqs-item__answer {
  display: none;
}

section#calculator span.badge {
  color: var(--black);
}

.included li {
  margin-bottom: 0.35rem;
}

.service-pill {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  margin: 0.25rem;
  background: var(--white);
  font-size: 0.95rem;
  color: var(--gray-800);
}

.price-card .h5 {
  color: var(--black);
  font-weight: 600;
}

.price-card .muted {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--black);
}

.badge-soft {
  background: #f2f2f3;
  color: var(--gray-800);
}

.card-plain {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.card-plain.cart-gray {
  color: var(--black);
  background: var(--gray-250);
  border-radius: 16px;
  box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.25);
}

.card-plain.cart-gray p,
.card-plain.cart-gray span,
.card-plain.cart-gray .small {
  color: var(--white);
}

.label {
  font-size: 0.8rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

section.hero .label {
  color: var(--black);
}

/* Светлая кнопка на очень тёмных баннерах (опционально) */

.back-to-top.alt {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

@media (max-width: 576px) {
  .discount-banner {
    min-width: auto;
    padding: 16px;
  }

  .discount-banner__percent {
    font-size: 40px;
  }

  .discount-banner__title {
    font-size: 12px;
  }

  .discount-banner__text {
    font-size: 12px;
  }

  .discount-banner__btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  h1,
  .btn-primary,
  .btn-outline-primary {
    width: 100%;
    text-align: center;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

/* Forms */

.form-control,
.form-select {
  border-radius: 10px;
  border: 1px solid #d8dade;
  background: var(--white);
  color: var(--gray-900);
}

.form-control::placeholder {
  color: #9aa0a6;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gray-800);
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.08);
  outline: 0;
}

/* Buttons: primary (dark gray), secondary (logo gray), outline variant monochrome */

.btn {
  border-radius: 10px;
  font-weight: 700;
}

.btn:hover {
  text-decoration: none;
}

.btn-white {
  color: var(--black);
  background: var(--white);
  border-color: var(--white);
}

.btn-white:hover {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

.btn-red {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.btn-yellow {
  color: var(--black);
  background: var(--yellow);
  border-color: var(--yellow);
}

.btn-gray {
  color: var(--white);
  background: var(--gray);
  border-color: var(--gray);
}

.btn-gray:hover {
  color: var(--gray);
  background: var(--white);
  border-color: var(--gray);
}

.btn-green {
  color: var(--black);
  background: var(--green);
  border-color: var(--green);
}

.btn-lg {
  padding: 0.9rem 1.15rem;
}

.btn-primary {
  --bs-btn-color: var(--white);
  --bs-btn-bg: #2b2d2f;
  --bs-btn-border-color: #2b2d2f;
  --bs-btn-hover-bg: #1f2123;
  --bs-btn-hover-border-color: #1f2123;
  --bs-btn-active-bg: #1a1c1e;
  --bs-btn-active-border-color: #1a1c1e;
}

.btn-outline-primary {
  --bs-btn-color: #2b2d2f;
  --bs-btn-border-color: #2b2d2f;
  --bs-btn-hover-bg: #2b2d2f;
  --bs-btn-hover-border-color: #2b2d2f;
  --bs-btn-hover-color: var(--white);
  --bs-btn-active-bg: #1f2123;
  --bs-btn-active-border-color: #1f2123;
}

.btn-secondary {
  --bs-btn-bg: var(--gray-500);
  --bs-btn-border-color: var(--gray-500);
  --bs-btn-hover-bg: #989ba0;
  --bs-btn-hover-border-color: #989ba0;
  --bs-btn-active-bg: #8b8e93;
  --bs-btn-active-border-color: #8b8e93;
  --bs-btn-color: var(--black);
}

.btn-outline-secondary {
  --bs-btn-color: var(--gray-500);
  --bs-btn-border-color: var(--gray-500);
  --bs-btn-hover-bg: var(--gray-500);
  --bs-btn-hover-border-color: var(--gray-500);
  --bs-btn-hover-color: var(--black);
}

/* Btn scroll to top */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1030;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
}

.back-to-top.show {
  opacity: 0.75;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.show:hover {
  opacity: 1;
}

.back-to-top:active {
  transform: translateY(1px);
}

/* Link lists in columns */

.list-columns {
  columns: 2;
  column-gap: 24px;
}

@media (min-width: 992px) {
  .discount-banner {
    left: -350px;
    top: 50%;
    transform: translateY(-50%);
    animation: slideInLeft 0.8s ease-out forwards;
  }

  @keyframes slideInLeft {
    to {
      left: 20px;
    }
  }

  .discount-banner.hide {
    animation: slideOutLeft 0.6s ease-in forwards;
  }

  @keyframes slideOutLeft {
    to {
      left: -350px;
    }
  }

  .list-columns {
    columns: 3;
  }

  .dropdown-menu .dropdown:before {
    content: "▪️";
    position: absolute;
    left: -8px;
    top: 7px;
  }

  /* Blog */

  .blog--item {
    margin-bottom: 32px;
  }

  /* FAQs */

  .faqs-item {
    margin-bottom: 18px;
  }

  section#calculator > .container {
    color: var(--white);
    background: var(--gray-700);
    border-radius: 16px;
    padding: 24px 48px;
    box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.25);
  }

  section#calculator h2,
  section#calculator span,
  section#calculator .small,
  section#calculator p {
    color: var(--white);
  }

  .card-plain.cart-gray {
    color: var(--white);
    background: var(--gray-700);
  }
}

.list-columns a {
  color: var(--gray-800);
}

.list-columns a:hover {
  color: var(--black);
}

/* Footer */
.footer {
  background: var(--gray-700);
  color: #d1d5db;
}

/* Anchor offset for in-page links */
.anchor {
  scroll-margin-top: 90px;
}

@media screen and (max-width: 1400px) {
  header nav a {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 1200px) {
}

/* Стили для кнопки-гамбургера */
.navbar-toggler {
  border: none;
  padding: 0;
  width: 30px;
  height: 30px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
}

.hamburger-lines {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 20px;
  width: 25px;
}

.hamburger-lines .line {
  display: block;
  height: 2px;
  width: 100%;
  background: #333;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}

/* Анимация крестика */

.navbar-toggler.menu-open .line1 {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler.menu-open .line2 {
  opacity: 0;
}

.navbar-toggler.menu-open .line3 {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Форма обратной связи */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.invalid-feedback {
  color: #ff9797;
}

.form-control.is-valid,
.form-select.is-valid,
.was-validated .form-control:valid {
  background-color: var(--success);
  border-color: var(--success);
}

.form-control.is-invalid,
.form-select.is-invalid,
.was-validated .form-control:invalid {
  background-color: var(--unsuccess);
  border-color: var(--unsuccess);
}

.contact .btn.is-loading .btn__spinner {
  display: inline-block;
}

.contact .btn.is-loading .btn__text {
  opacity: 0.9;
}

.form__result {
  position: relative;
  display: inline-block;
  padding: 6px;
  margin-top: 18px;
  font-size: 20px;
  width: 100%;
  text-align: center;
  color: var(--muted);
  background: transparent;
  border-radius: 16px;
}

.form__result .timer {
  position: absolute;
  right: 0;
  top: 0;
  margin: 6px 16px;
}

.form__result--ok {
  color: var(--black);
  background: var(--success);
}

.form__result--err {
  color: var(--danger);
}

/* Дополнительные данные на странице */

.section {
  margin: 24px auto;
  padding: 32px 0;
}

/* Карта на странице контактов */

.map {
  height: 400px;
  padding: 0;
  background: #dcdcdc;
  background-position: center center;
  border-radius: 16px;
}

#map_container {
  margin-bottom: 24px;
}

/* Медиа-запросы для адаптивности */

@media (max-width: 1599px) {
  #h1 h1 {
    font-size: 2.8rem;
    line-height: 1.2;
  }
}

@media (max-width: 1439px) {
  section.hero h1 {
    font-size: 3.1rem;
  }
}

@media (max-width: 1199px) {
  section.hero h1 {
    font-size: 2.6rem;
    line-height: 1.3;
  }
}

@media (max-width: 991px) {
  .discount-banner {
    bottom: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    animation: slideInBottom 0.8s ease-out forwards;
  }

  @keyframes slideInBottom {
    to {
      bottom: 20px;
    }
  }

  .discount-banner.hide {
    animation: slideOutBottom 0.6s ease-in forwards;
  }

  @keyframes slideOutBottom {
    to {
      bottom: -300px;
    }
  }

  .mobile-menu {
    padding: 0 12px 64px 12px;
  }

  .navbar-brand img {
    max-width: 100%;
    width: 194px;
  }

  .breadcrumbs {
    display: none;
  }

  #h1 h1 {
    font-size: 1.4rem;
    line-height: 1.2;
  }

  .card-plain.cart-gray p,
  .card-plain.cart-gray span,
  .card-plain.cart-gray .small {
    color: var(--gray);
  }
}

@media (max-width: 767px) {
  .mobile-menu.show {
    height: 100vh;
    overflow: scroll;
  }

  #h1 {
    height: auto;
    max-height: 100%;
  }

  #h1 h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  #h1 .lead,
  #h1 .feedback {
    display: none !important;
  }

  section.hero h1 {
    margin-bottom: 32px;
  }

  .btn-red {
    color: white;
  }
  /* Дополнительные данные на странице */

  .section {
    margin: 12px auto;
  }

  section.hero h1 {
    font-size: 1.8rem;
    line-height: 1.1;
  }

  .desktop-nav-row1,
  .desktop-nav-row2,
  .d-md-block:not(.navbar-toggler) {
    display: none !important;
  }

  .navbar-toggler {
    display: flex !important;
    right: 10%;
    left: auto;
    top: 20px;
    position: absolute;
  }

  .mobile-menu.collapse:not(.show) {
    display: none;
  }

  .mobile-menu.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
  }

  section#calculator span.badge {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1399px) {
  .messenger-group {
    display: flex;
    flex-direction: column;
    margin-right: 4px;
  }
}

@media (max-width: 439px) {
  section.hero h1 {
    font-size: 1.8rem;
  }

  #h1 h1 {
    font-size: 1.2rem;
    line-height: 1.4;
    text-shadow: 0 0 black;
  }
}

@media (min-width: 768px) {
  .navbar-toggler,
  #mobileMenu {
    display: none !important;
  }
  .desktop-nav-row1,
  .desktop-nav-row2,
  .d-md-block {
    display: flex !important;
  }
}

@media (min-width: 998px) {
  #mainmenu .mainmenu-wrapper {
    margin-top: -10px;
  }

  #mainmenu nav {
    width: auto;
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

@media (min-width: 1200px) {
  body[data-page="mainpage"] section.hero {
    margin-top: 68px;
  }

  .dropdown-menu .dropdown {
    margin-left: 24px;
  }
}

@media (min-width: 1360px) {
}

@media (min-width: 1400px) {
  .messenger-icon img {
    width: 28px;
  }
}

@media (min-width: 1440px) {
}

@media (min-width: 1600px) {
}
