:root {
  --red: #df6d2a;
  --orange: #ed8d2a;
  --black: #000;
  --gray: hsl(0deg 0% 26.09%);
  --white: #fff;
  --blue: #1d425b;
  --light-blue: #5175ac;
  --yellow: #ffe551;
  --green: #7dff51;
  --text-green: #3fa107;
  --success: #c5ffb1;
  --unsuccess: #ffcdcd;
  --muted: #949494;
  --bg: #e6e6e6;
  --badge-1: #7dff51;
  --badge-2: #7dff51;
  --badge-3: #7dff51;
  /* 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: #5175ac;
}

html {
  font-size: 21px;
  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;
}

b,
strong {
  font-weight: 900;
}

#h1 h1,
#about h1 {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 24px;
}

#logo-header {
  width: 100%;
}

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

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

.mobile-contact-wrapper {
  margin-top: 24px;
}

section.hero {
  background-color: var(--white);
  background-repeat: no-repeat;
  padding: 12px 0;
  border-bottom: none;
  box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.25);
  margin-top: 0;
  background-size: contain !important;
}

section.hero h1 {
  color: var(--orange);
}

section.hero .lead {
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 800;
}

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

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

section.hero,
#sales,
#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#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);
}

#payment-instructions {
  font-size: .8rem;
}

#payment-instructions h3 {
  font-size: 1rem;
}

.form-check-input.is-invalid,
.was-validated .form-check-input:invalid {
  border-color: var(--bs-form-invalid-border-color);
  border: 2px solid red;
  background: rgb(255 0 0 / 35%);
}

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

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

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

#logo {
  max-width: 404px;
}

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

.social-icon img {
  width: 32px;
  height: 32px;
}

#document_links a {
  display: block;
  margin: 0 auto;
  width: 100%;
}

.navbar-brand svg {
  width: 100%;
  height: auto;
  max-width: 220px;
  max-height: 74px;
}

strong.logo-text {
  float: right;
  margin-left: 16px;
  text-align: center;
  color: #ff3630;
  font-weight: 900;
}

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

.checkbox-tick {
  width: 24px;
  height: 24px;
  margin-top: -4px;
  margin-right: 4px;
}

.form-checkbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: start;
}

.form-checkbox-wrapper a.small {
  font-size: 0.8rem;
  line-height: 1;
}

.video--item iframe {
  border-radius: 16px;
}

.video-content {
  padding: 8px;
}

.video--title {
  margin: 12px auto 16px auto;
  padding: 0 4px;
  font-size: 0.9rem;
  line-height: 1.1;
  text-align: left;
}

.video--item {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  /* фон на случай отсутствия миниатюры */
  border-radius: 8px;
  /* Если браузер поддерживает, используем aspect-ratio */
  aspect-ratio: 16/9;
  /* Fallback: для старых браузеров
     uncomment if needed:
  padding-top: 56.25%; */
  display: block;
}

/* Миниатюра как фон */
.video--item .thumb {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: contrast(0.95) saturate(1.05);
}

/* Затемнённая полупрозрачная подложка для контраста */
.video--item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

/* Большая кнопка play по центру */
.video--item .play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.video--item .play-btn::after {
  content: "";
  display: inline-block;
  margin-left: 4px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #0fa0d0;
  /* главный цвет сайта */
}

/* заголовок/мета (необязательно) */
.video--item .meta {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: #fff;
  font-size: 13px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Новые стили для меню */

/* Custom styles for hamburger icon */
.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;
}

/* Arrow icon rotation for dropdowns */
.dropdown-arrow {
  transition: transform 0.3s ease;
}

.mobile-app-icon {
  display: inline-flex;
  padding: 2px 4px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  max-width: 180px;
}

.mobile-dropdown-toggle[aria-expanded="true"]:after {
  content: " ↑";
}

.mobile-dropdown-toggle[aria-expanded="false"]:after {
  content: " ↓";
}

/* 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 specific styles */
.mobile-menu {
  background-color: #f8f9fa;
  /* Светлый фон для мобильного меню */
  width: 100%;
  position: absolute;
  top: 100%;
  /* Под шапкой */
  left: 0;
  z-index: 100;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

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

/* 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.request {
  margin-top: 0;
}

section.request,
#sales,
#local,
#all-services {
  background: var(--white);
  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(--accent);
}

h1,
h2,
h3 {
  font-family: "Arial Black", Arial, "PT Sans", 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;
}

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

h2>strong,
h3>strong,
h4>strong {
  color: var(--accent);
}

#logo-fixed {}

#logo-fixed img {}

section.request h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 32px;
  color: var(--black);
}

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

section.request p.lead {
  color: #3b3b3b;
  font-size: 1.15rem;
  max-width: 760px;
}

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

section#sales {
  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(--accent);
  text-decoration: none;
}

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

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

.contact-icon {
  width: 32px;
  height: 32px;
  margin: 4px 4px 2px auto;
}

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

.price-card a:not(.btn) {
  color: var(--accent);
}

.price-card a:not(.btn):hover {
  color: var(white);
  text-decoration: none;
}

.price-card.has-hover-effect:hover {
  color: var(--white);
  background: var(--gray);
  transition: background-color 0.35s ease-in-out;
}

.price-card.has-hover-effect:hover .badge.badge-color1,
.price-card.has-hover-effect:hover .badge.badge-color2,
.price-card.has-hover-effect:hover .badge.badge-color3 {
  color: var(--gray-800) !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(--white) !important;
}

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

.price-card.has-hover-effect:hover .rate {
  color: var(--white) !important;
}

.old-price {
  text-decoration: line-through;
  margin-right: 12px;
  font-size: 1.8rem;
  color: var(--red);
}

.price-card .badge {
  color: var(--gray-800);
  background: var(--white);
  font-size: 1rem;
  font-weight: 100;
}

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

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

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

.price-card .badge>a {
  color: #000 !important;
  font-size: 0.8rem;
  line-height: 1;
}

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

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

/* Blog */

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

/* FAQs */

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

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

.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);
} */

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

.service-pill:hover {
  text-decoration: none;
  color: var(--white);
  background: var(--accent);
}

.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: var(--white);
  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;
}

/* ПОЛИТИАКА COOKIES*/

#consent-cookies {
  font-size: 0.8rem;
  line-height: 1.2;
}

/* Всплывающее окно Обработка файлов Cookie */
#consent-cookies {
  color: white;
  background: rgba(0, 0, 0, 0.75);
}

#consent-cookies .notification__info {
  flex: 1 1 100%;
}

#consent-cookies h3 {
  color: white;
  text-align: center;
  margin: 18px auto 4px auto;
}

#consent-cookies a {
  color: white;
  text-decoration: underline;
  font-weight: bold;
}

#consent-cookies p {
  margin: 12px auto 8px auto;
  text-indent: 12px;
}

#consent-cookies form legend {
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
}

#consent-cookies .notification__wrapper {
  margin: 16px auto;
}

.notification--fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  padding: 20px 0;
  font-family: Arial, sans-serif;
}

.notification__wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.notification__info {
  flex: 1 1 45%;
  min-width: 300px;
}

.notification__settings {
  flex: 1 1 45%;
  min-width: 300px;
  /* Изначально скрыто, но можно управлять через JS */
  /* display: none; - лучше управлять через inline style или JS */
}

.notification__buttons {
  flex-basis: 100%;
  text-align: right;
  margin-top: 15px;
}

.notification__button {
  margin-left: 10px;
}

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

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

@media (max-width: 576px) {

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

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

.btn.btn-primary {
  max-width: 340px;
}

/* Forms */

.form-control,
.form-select {
  font-size: 0.9rem;
  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 */

#contact-form button[type="submit"] {
  width: 100%;
  max-width: 100%;
  margin: 12px auto 0 auto;
}

.full-width {
  width: 100%;
}

.text-center {
  text-align: center;
}

.smallest {
  font-size: 0.65rem;
  line-height: 1.4;
}

.text-marked {
  display: inline-block;
  background: #7dff51;
  padding: 8px 12px;
  margin: 6px auto;
  text-align: center;
  border-radius: 12px;
  color: #000;
}

.color-green {
  color: var(--text-green);
}

.btn {
  border-radius: 12px;
  font-weight: 400;
}

.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(--accent);
  border-color: var(--accent);
}

.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) {
  #h1 h1 {
    margin-bottom: 48px;
  }

  .list-columns {
    columns: 3;
  }

  /* Blog */

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

  /* FAQs */

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

  section#calculator>.container {
    color: var(--white);
    background: var(--gray-800);
    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-800);
  }
}

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

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

/* Footer */
.footer {
  background: var(--white);
  color: #000;
}

.footer .btn {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 340px;
}

.header-download-app-buttons,
.footer-download-app-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.footer-download-app-button {
  float: left;
}

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

/* Список активностей */

.list-activities {
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-activities li {
  display: inline-flex;
  padding-left: 24px;
  background: var(--gray-100);
  margin: 4px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  max-width: 300px !important;
}

/*.list-activities li::before {
    content: "";
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    margin: 16px 6px 0px 0px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2328a745'><path d='M6.173 11.414 2.293 7.535 1.293 8.535 6.173 13.414 14.707 4.879 13.707 3.879z'/></svg>");
} */

/* Преимущества на главной */

.advantages--item {
  padding: 12px 4px;
}

.advantages--item img {
  width: 100%;
  height: 100%;
  /* max-width: 520px; */
  max-height: 300px;
  object-fit: contain;
}

.advantages-text {
  padding: 8px 24px;
}

.advantages-text ul {
  padding-left: 0;
}

.advantages-text li {
  list-style-type: none;
  margin: 12px 0;
}

.advantages-content {
  margin: 24px auto;
}

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

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

/* Стили для кнопки-гамбургера */
.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;
}

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

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

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

@media (max-width: 1440px) {
  section.hero h1 {
    margin-left: 32px;
    margin-top: 84px;
  }

  section.hero .lead {
    margin-left: 202px;
  }
}

@media (max-width: 1199px) {

  .container,
  .container-lg,
  .container-md,
  .container-sm {
    max-width: 100%;
  }

  section.request h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
}

@media (max-width: 991px) {
  .hidden-on-tablet {
    display: none !important;
  }

  .navbar-brand img {
    max-width: 142px;
    max-height: 72px;
  }

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

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

  .btn-red {
    color: white;
  }

  .section {
    margin: 12px auto;
  }

  section.hero h1 {
    font-size: 1.4rem;
    line-height: 1.1;
    margin-left: 0;
    margin-top: 16px;
    margin-bottom: 32px;
    text-align: left;
}

  section.hero .lead {
    margin-left: 0;
  }

  .section h2 {
    width: 100%;
    text-align: center;
  }


  .section .sub {
    font-weight: 400;
    line-height: 1.2;
  }

  .text-price {
    display: block;
  }

  .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: 42px;
    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;
  }

  .badge-soft {
    margin-bottom: 16px;
  }
}

@media (max-width: 575px) {
  h2 {
    text-align: center;
  }

  .btn.btn-primary {
    max-width: 100%;
  }

  .advantages--item img {
    display: flex;
    max-width: 333px;
    max-height: 333px;
    margin: 0 auto;
    object-fit: contain;
  }

  .footer-download-app-buttons {
    display: block;
  }

  .footer-download-app-button {
    float: none;
    text-align: center;
  }

  .footer ul li {
    text-align: center;
  }

  .mobile-app-icon {
    max-height: 62px;
  }
}

@media (max-width: 439px) {
  section.request h1 {
    font-size: 1.6rem;
    text-align: left;
    padding-top: 24px;
  }
}

@media (min-width: 768px) {

  .navbar-toggler,
  #mobileMenu {
    display: none !important;
  }

  .desktop-nav-row1,
  .desktop-nav-row2,
  .d-md-block {
    display: flex !important;
  }

  .advantages-content {
    margin-top: 64px;
    margin-bottom: 16px;
  }

  .price-card .included {
    height: 260px;
  }
}

@media (min-width: 998px) {
  .hide-on-desktop {
    display: none !important;
  }

  #mainmenu nav {
    width: auto;
  }

  .header-download-app-button svg {
    width: 130px;
    height: auto;
  }
}

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

  section.hero h1 {
    color: var(--orange);
    margin-top: 124px;
    margin-bottom: 42px;
  }

}