/* ===========================================================
   Надстройка над шаблоном. Дизайн шаблона не меняем:
   здесь только кириллические шрифты, новые блоки и интерфейс заявки.
   Палитра шаблона: #023A5B синий, #B68C5A золотой, #17233E заголовки.
   =========================================================== */

/* --- Шрифты. В Poppins нет кириллицы, заменён на Montserrat --- */
body {
  font-family: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.btn-primary, .btn-secondary, .btn1,
.poppins {
  font-family: "Montserrat", "Inter", Arial, sans-serif;
}
.inter {
  font-family: "Inter", Arial, sans-serif;
}
/* В русском языке заголовки не пишут с прописной каждое слово */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.accordion-button.text-capitalize,
.dropdown-item.text-capitalize {
  text-transform: none;
}

/* --- Доступность --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1100;
  background: #023A5B;
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 5px 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #B68C5A;
  outline-offset: 2px;
}
[id] {
  scroll-margin-top: 110px;
}

/* --- Первый экран --- */
.banner-trust {
  list-style: none;
  padding: 0;
  opacity: .9;
}
.banner .swiper .banner-inner .banner-content > *:nth-child(5) {
  animation-delay: .8s;
}

/* --- Список объектов --- */
.objects-list {
  list-style: none;
  padding-left: 0;
}
.objects-list li {
  line-height: 1.5;
}

/* --- Карточки услуг: цена и срок --- */
.service-meta {
  border-top: 1px dashed rgba(182, 140, 90, .5);
  padding-top: 12px;
}

/* --- Таблицы прайса и штрафов --- */
.price-table,
.fines-table {
  --bs-table-bg: transparent;
  margin-bottom: 0;
}
.price-table th,
.fines-table th,
.price-table td,
.fines-table td {
  padding: 14px 18px;
  vertical-align: middle;
  border-bottom: 1px solid #F1F1F1;
}
.price-table thead th,
.fines-table thead th {
  background-color: #023A5B;
  color: #fff;
  font-weight: 600;
  border-bottom: 0;
}
.price-table tbody tr:last-child td,
.price-table tbody tr:last-child th,
.fines-table tbody tr:last-child td,
.fines-table tbody tr:last-child th {
  border-bottom: 0;
}
.price-table tbody tr:hover,
.fines-table tbody tr:hover {
  background-color: rgba(182, 140, 90, .06);
}
.pricelist,
.fines,
.process,
.seo-block {
  padding: 90px 0;
}
@media (max-width: 768px) {
  .pricelist,
  .fines,
  .process,
  .seo-block {
    padding: 60px 0;
  }
}

/* --- Шаги работы --- */
.process-box {
  transition: all .3s ease-in-out;
}
.process-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(2, 58, 91, .1);
}
.process-num {
  font-family: "Montserrat", Arial, sans-serif;
  letter-spacing: .05em;
}

/* --- Справочный блок --- */
.seo-list {
  padding-left: 20px;
}
.seo-list li {
  list-style: disc;
  margin-bottom: 8px;
  line-height: 1.6;
}
ol.seo-list li {
  list-style: decimal;
}
.seo-inner h3 {
  margin-top: 28px;
  margin-bottom: 12px;
}
.seo-inner h3:first-of-type {
  margin-top: 0;
}

/* --- Кейсы: карточка одной высоты --- */
.case-study-box .case-study-info {
  padding: 18px 16px;
}

/* --- Форма заявки --- */
.lead-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.lead-consent {
  cursor: pointer;
  line-height: 1.45;
}
.lead-consent input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #B68C5A;
}
.lead-consent a {
  color: #B68C5A;
  text-decoration: underline;
}
.lead-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23777' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}
.lead-form .is-invalid {
  border-color: #C0392B;
}
.lead-note {
  color: #777;
}
.lead-msg {
  min-height: 20px;
  font-weight: 500;
}
.lead-msg.ok {
  color: #1E7A46;
}
.lead-msg.err {
  color: #C0392B;
}
.lead-form button[disabled] {
  opacity: .6;
  cursor: progress;
}

/* --- Модальное окно --- */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lead-modal[hidden] {
  display: none;
}
.lead-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(23, 35, 62, .72);
}
.lead-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.lead-modal-close {
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 32px;
  line-height: 1;
  color: #17233E;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
}
.lead-modal-close:hover {
  color: #B68C5A;
}
body.modal-open {
  overflow: hidden;
}

/* --- Липкая кнопка WhatsApp --- */
.sticky-actions {
  position: fixed;
  left: 20px;
  bottom: 24px;
  z-index: 1050;
}
.sticky-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  border-radius: 40px;
  padding: 12px 20px 12px 16px;
  font-weight: 500;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .35);
  transition: all .3s ease-in-out;
}
.sticky-wa:hover {
  color: #fff;
  transform: translateY(-2px);
}
.sticky-wa i {
  font-size: 24px;
  line-height: 1;
}
@media (max-width: 768px) {
  .sticky-actions {
    left: 16px;
    bottom: 16px;
  }
  .sticky-wa span {
    display: none;
  }
  .sticky-wa {
    width: 56px;
    height: 56px;
    justify-content: center;
    padding: 0;
  }
}

/* --- Cookie --- */
.cookie-bar {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #E9E9E9;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .14);
}
.cookie-bar[hidden] {
  display: none;
}
.cookie-bar a {
  color: #B68C5A;
  text-decoration: underline;
}
@media (max-width: 768px) {
  .cookie-bar {
    left: 12px;
    right: 12px;
    bottom: 88px;
    padding: 14px;
  }
}

/* --- Подвал --- */
.footer-legal-links li a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal-links li a:hover {
  color: #B68C5A;
}

/* --- Юридические страницы --- */
.legal-page {
  padding: 60px 0 80px;
}
.legal-page h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 24px;
}
.legal-page h1 {
  font-size: 38px;
  margin-bottom: 8px;
}
.legal-page ul,
.legal-page ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
.legal-page li {
  list-style: disc;
  margin-bottom: 8px;
}
.legal-page ol li {
  list-style: decimal;
}
.legal-page p {
  margin-bottom: 14px;
}
@media (max-width: 768px) {
  .legal-page h1 {
    font-size: 28px;
  }
}

/* --- Мелочи --- */
.header-top-left a:hover,
.header-top-right a:hover {
  color: #B68C5A;
}
.text-nowrap {
  white-space: nowrap;
}
img {
  height: auto;
}

/* --- Шрифтовые иконки вместо картинок шаблона --- */
.feature-icon {
  font-size: 44px;
  line-height: 1;
}
.service-icon-font {
  font-size: 34px;
  line-height: 1;
}
.about-play-icon img {
  width: 24px;
}

/* --- Кнопки: в русском тексте капитализация каждого слова недопустима --- */
.btn-primary, .btn-secondary, .btn1,
.nav-link, .dropdown-item {
  text-transform: none;
}
.nav-link.text-uppercase {
  text-transform: uppercase;
}
.bullet-check i {
  font-size: 20px;
  line-height: 1;
}

/* --- Кнопка звонка на мобильном: в шапке телефона там нет --- */
.sticky-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sticky-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #023A5B;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 10px 24px rgba(2, 58, 91, .35);
  transition: all .3s ease-in-out;
}
.sticky-call:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* Иконка WhatsApp врисована в разметку, отдельный шрифт brands ради неё не грузим */
.sticky-wa .wa-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

/* --- Мобильное меню --- */
/* Пункты клонирует плагин, в шаблоне у них capitalize с !important */
header .slicknav_nav a,
header .dropdown-menu > li > a,
.slicknav_nav .slicknav_item {
  text-transform: none !important;
}
/* В шаблоне жёсткие 280px, а пунктов у нас восемь: последние не доставались */
header .slicknav_nav {
  height: auto;
  max-height: 70vh;
  overflow-y: auto;
}
