/* Шрифт раздаётся с нашего сервера: без передачи IP посетителей сторонним сервисам */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic-wght.e58febde317b.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-wght.938c6e8019b6.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1f1f24;
  --ink-2: #2e2e33;
  --muted: #666670;
  --line: #e8e5df;
  --bg: #ffffff;
  --bg-soft: #f7f5f1;
  --amber: #f5a524;
  --amber-dark: #d98a0b;
  --amber-soft: #fff3dc;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(31, 31, 36, .04), 0 8px 24px rgba(31, 31, 36, .06);
  --shadow-hover: 0 2px 4px rgba(31, 31, 36, .05), 0 16px 40px rgba(31, 31, 36, .10);
  --header-h: 76px;

  --bs-body-font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-color: var(--ink-2);
  --bs-link-color-rgb: 31, 31, 36;
  --bs-link-hover-color-rgb: 217, 138, 11;
}

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
}

/* Уже 320px сайт не сжимается: появляется горизонтальная прокрутка */
body {
  min-width: 320px;
  font-family: var(--bs-body-font-family);
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display-title {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.02em;
}

a {
  text-underline-offset: 3px;
}

/* ---------- Кнопки ---------- */

.btn-accent,
.btn-outline-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-accent {
  background: var(--amber);
  color: var(--ink);
}

.btn-accent:hover {
  background: var(--amber-dark);
  color: var(--ink);
}

.btn-outline-ink {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline-ink:hover {
  background: var(--ink);
  color: #fff;
}

.btn-sm-pill {
  padding: 10px 20px;
  font-size: 15px;
}

.btn-accent:focus-visible,
.btn-outline-ink:focus-visible {
  outline: 3px solid rgba(245, 165, 36, .45);
  outline-offset: 2px;
}

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .navbar {
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 44px;
  height: 44px;
}

.brand__name {
  display: block;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  letter-spacing: .02em;
}

.brand__tagline {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.site-nav .nav-link {
  color: var(--ink-2);
  font-weight: 600;
  padding: 8px 14px !important;
  border-radius: 999px;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--ink);
  background: var(--bg-soft);
}

.header-phone {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--amber-dark);
}

/* ---------- Секции ---------- */

.section {
  padding: 96px 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section--dark {
  background: var(--ink);
  color: rgba(255, 255, 255, .78);
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 12px;
}

.section--dark .eyebrow {
  color: var(--amber);
}

.section-title {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  margin-bottom: 16px;
}

/* Заголовок цвета надписей-подзаголовков (eyebrow) */
.section-title--accent {
  color: var(--amber-dark);
}

.section-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
}

.section--dark .section-lead {
  color: rgba(255, 255, 255, .7);
}

@media (max-width: 767.98px) {
  .section {
    padding: 64px 0;
  }
}

/* ---------- Первый экран ---------- */

.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 100% 0%, var(--amber-soft), transparent 60%),
    var(--bg);
}

.hero__title {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}

.hero__title mark {
  background: linear-gradient(transparent 62%, rgba(245, 165, 36, .45) 62%);
  color: inherit;
  padding: 0 .08em;
}

.hero__lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tasks-card {
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-hover);
}

.tasks-card__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.tasks-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tasks-list li + li {
  border-top: 1px solid var(--line);
}

.tasks-list__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 12px;
  margin: 0 -12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color .2s;
}

.tasks-list__item img {
  flex-shrink: 0;
}

.tasks-list__item span {
  flex: 1;
}

.tasks-list__item::after {
  content: "→";
  color: var(--muted);
  transition: transform .2s, color .2s;
}

.tasks-list__item:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.tasks-list__item:hover::after {
  color: var(--amber-dark);
  transform: translateX(4px);
}

.tasks-card__footer {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

.tasks-card__footer a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.tasks-card__footer a:hover {
  color: var(--amber-dark);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 64px;
}

.stat {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.stat__value {
  font-size: 34px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.1;
}

.stat__label {
  color: var(--muted);
  font-size: 15px;
  margin-top: 4px;
}

@media (max-width: 991.98px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .stats {
    gap: 12px;
    margin-top: 48px;
  }
  .stat {
    padding: 18px 16px;
  }
  .stat__value {
    font-size: 26px;
  }
  .stat__label {
    font-size: 14px;
  }
}

/* ---------- Карточки услуг ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 991.98px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}

.service-card:hover {
  color: inherit;
  border-color: transparent;
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.service-card__icon {
  display: block;
  margin-bottom: 20px;
}

.service-card__icon img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.service-card__title {
  font-size: 21px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.service-card__text {
  color: var(--muted);
  margin-bottom: 24px;
}

.service-card__more {
  margin-top: auto;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-card__more::after {
  content: "→";
  transition: transform .2s;
}

.service-card:hover .service-card__more::after {
  transform: translateX(4px);
}

/* ---------- Как мы работаем ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

@media (max-width: 991.98px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--amber-dark);
  margin-bottom: 18px;
}

.step h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  margin: 0;
}

/* ---------- О компании ---------- */

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='%231f1f24' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.checklist strong {
  display: block;
  color: #fff;
}

.about-card {
  padding: 36px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
}

/* ---------- Вопросы и ответы ---------- */

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 500;
  transition: transform .2s, background-color .2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--amber);
}

.faq-item__answer {
  padding: 0 60px 22px 0;
  color: var(--muted);
}

/* ---------- Форма заявки ---------- */

.lead-card {
  padding: 48px;
  border-radius: 28px;
  background: var(--ink);
  color: rgba(255, 255, 255, .75);
}

.lead-card h2 {
  color: #fff;
}

.lead-form .form-control {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 16px;
}

.lead-form .form-control::placeholder {
  color: rgba(255, 255, 255, .45);
}

.lead-form .form-control:focus {
  border-color: var(--amber);
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 3px rgba(245, 165, 36, .25);
  color: #fff;
}

.lead-form .form-check-input {
  background-color: transparent;
  border-color: rgba(255, 255, 255, .4);
}

.lead-form .form-check-input:checked {
  background-color: var(--amber);
  border-color: var(--amber);
}

.lead-form .form-control.is-invalid {
  border-color: #ff8a7a;
  background-image: none;
  padding-right: 18px;
}

.lead-form .form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(255, 138, 122, .25);
}

.lead-form .form-check-input.is-invalid {
  border-color: #ff8a7a;
}

.lead-form .form-check-input.is-invalid ~ .form-check-label {
  color: inherit;
}

.field-error {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: #ff8a7a;
}

.is-invalid ~ .field-error {
  display: block;
}

.lead-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error:not(:empty) {
  display: block;
  margin: 0 0 12px;
  font-size: 14px;
}

.lead-form button[disabled] {
  opacity: .6;
  cursor: wait;
}

.lead-success {
  padding: 32px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
}

.lead-success h3 {
  color: #fff;
  font-size: 22px;
}

.lead-form .form-check-label {
  font-size: 14px;
}

.lead-form .form-check-label a {
  color: #fff;
}

@media (max-width: 575.98px) {
  .lead-card {
    padding: 28px 20px;
  }
}

/* ---------- Контакты ---------- */

.contact-tile {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  height: 100%;
}

.contact-tile__icon {
  flex-shrink: 0;
  display: flex;
  padding-top: 2px;
}

.contact-tile__label {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-tile a {
  white-space: nowrap;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.contact-tile a:hover {
  color: var(--amber-dark);
}

/* ---------- Подвал ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .65);
  padding: 72px 0 0;
  font-size: 15px;
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand__tagline {
  color: rgba(255, 255, 255, .5);
}

.footer-title {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.site-footer a,
.site-footer .cookie-settings-link {
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer .cookie-settings-link:hover {
  color: var(--amber);
}

.footer-contact {
  display: grid;
  gap: 6px;
}

.footer-contact a {
  color: #fff !important;
  font-weight: 600;
}

.footer-bottom {
  margin-top: 56px;
  padding: 24px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* ---------- Внутренние страницы ---------- */

.page-hero {
  padding: 64px 0 40px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
}

.breadcrumbs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: var(--muted);
}

.prose {
  font-size: 18px;
  line-height: 1.7;
  max-width: 760px;
}

.prose strong {
  color: var(--ink);
}

.site-header .navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(245, 165, 36, .35);
}

.site-header .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='%231f1f24' stroke-linecap='round' stroke-width='2.4' d='M5 8h20M5 15h20M5 22h20'/%3E%3C/svg%3E");
}

.site-nav .nav-link {
  white-space: nowrap;
}

/* На средних экранах прячем подпись под логотипом, чтобы меню не переносилось */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-header .brand__tagline {
    display: none;
  }
  .site-nav .nav-link {
    padding: 8px 10px !important;
  }
}

/* ---------- Карточка заказа на странице услуги ---------- */

.order-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.order-card__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.order-card__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 10px;
}

.order-card__text {
  color: var(--muted);
  margin-bottom: 20px;
}

.order-card__contacts {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.order-card__contacts a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.order-card__contacts a:hover {
  color: var(--amber-dark);
}

/* ---------- Окно заявки ---------- */

.lead-modal .modal-content {
  position: relative;
  padding: 40px;
  border: 0;
  border-radius: 28px;
  background: var(--ink);
  color: rgba(255, 255, 255, .75);
}

.lead-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
}

.lead-modal__title {
  color: #fff;
  font-size: clamp(24px, 3vw, 30px);
  margin: 0 40px 8px 0;
}

.lead-modal__subtitle {
  margin-bottom: 24px;
}

.modal-backdrop.show {
  opacity: .6;
}

@media (max-width: 575.98px) {
  .lead-modal .modal-content {
    padding: 28px 20px;
  }
}

@media (max-width: 575.98px) {
  .site-header .brand__tagline {
    display: none;
  }
}

/* ---------- Узкие экраны ---------- */

@media (max-width: 575.98px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Таблицы в документах на телефоне превращаются в карточки: строка — блок,
   у каждого значения подпись колонки из data-label */
@media (max-width: 767.98px) {
  .table-stack,
  .table-stack tbody,
  .table-stack tr,
  .table-stack td {
    display: block;
    width: 100%;
  }
  .table-stack thead {
    display: none;
  }
  .table-stack tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
  }
  .table-stack td {
    border: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 10px 14px;
  }
  .table-stack td:last-child {
    border-bottom: 0 !important;
  }
  .table-stack td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
  }
  .table-responsive:has(.table-stack) {
    overflow-x: visible;
  }
}

@media (max-width: 575.98px) {
  .hero {
    padding: 40px 0 40px;
  }
  .hero__lead {
    font-size: 17px;
    margin-bottom: 24px;
  }
  /* Кнопки первого экрана одинаковой ширины */
  .hero__actions .btn-accent,
  .hero__actions .btn-outline-ink {
    width: 100%;
  }
  .tasks-card {
    padding: 20px;
  }
  .tasks-list__item {
    gap: 12px;
    padding: 14px 8px;
    margin: 0 -8px;
    font-size: 16px;
  }
  .tasks-list__item img {
    width: 30px;
    height: 30px;
  }
  .service-card,
  .step,
  .order-card {
    padding: 22px;
  }
  .section-lead {
    font-size: 17px;
  }
  .faq-item summary {
    font-size: 17px;
  }
  .faq-item__answer {
    padding-right: 0;
  }
  .site-footer {
    padding-top: 56px;
  }
}

/* ---------- Документы ---------- */

.page-hero__meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.doc {
  max-width: 820px;
  font-size: 17px;
  line-height: 1.7;
}

.doc h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 40px 0 14px;
}

.doc > h2:first-child {
  margin-top: 0;
}

.doc p,
.doc ul {
  margin-bottom: 16px;
}

.doc ul {
  padding-left: 22px;
}

.doc li + li {
  margin-top: 6px;
}

.doc a {
  color: var(--ink);
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
}

.doc a:hover {
  color: var(--amber-dark);
}

.doc .table {
  font-size: 15px;
  line-height: 1.5;
  --bs-table-bg: transparent;
}

.doc .table > :not(caption) > * > * {
  padding: 12px 14px;
  border-color: var(--line);
}

.doc .table thead th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Страницы ошибок ---------- */

.error-page {
  padding: 120px 0;
  text-align: center;
}

.error-page__code {
  font-size: clamp(88px, 16vw, 160px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--amber);
}

.error-page__title {
  font-size: clamp(28px, 4vw, 40px);
  margin: 16px 0 12px;
}

@media (max-width: 575.98px) {
  .error-page {
    padding: 72px 0;
  }
}

/* ---------- Страница контактов ---------- */

.contact-list {
  display: grid;
  gap: 16px;
}

.contact-tile__note {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}

.map-box {
  position: relative;
  height: 100%;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.map-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-box__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

.map-box__placeholder p {
  max-width: 420px;
  margin: 0;
}

.map-box__placeholder a {
  color: var(--ink);
}

@media (max-width: 575.98px) {
  .map-box {
    min-height: 360px;
  }
}

.requisites {
  margin: 0;
}

.requisites dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.requisites dd {
  margin: 2px 0 16px;
  color: var(--ink);
  font-weight: 600;
}

.faq-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.faq-more::after {
  content: "→";
  transition: transform .2s;
}

.faq-more:hover {
  color: var(--amber-dark);
}

.faq-more:hover::after {
  transform: translateX(4px);
}

/* Длинные ссылки и адреса почты переносим, а не выталкиваем за край экрана */
.doc a,
.contact-tile a[href^="mailto:"],
.order-card__contacts a[href^="mailto:"],
.footer-contact a[href^="mailto:"] {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* ---------- Шапка на телефоне ---------- */

/* Плавающая кнопка звонка (телефоны и планшеты) */
.call-fab {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 1020;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(31, 31, 36, .18);
  transition: transform .2s, box-shadow .2s, opacity .2s, visibility .2s;
}

.call-fab:hover,
.call-fab:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(31, 31, 36, .24);
}

.call-fab:focus-visible {
  outline: 3px solid rgba(245, 165, 36, .5);
  outline-offset: 2px;
}

.cookie-banner-open .call-fab {
  opacity: 0;
  visibility: hidden;
}

@media (max-width: 991.98px) {
  /* Чтобы кнопка не закрывала нижнюю строку подвала */
  .footer-bottom {
    padding-bottom: 96px;
  }
}

/* Только на узких экранах: на широких Bootstrap сам прячет «бургер» */
@media (max-width: 991.98px) {
  .site-header .navbar-toggler {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 991.98px) {
  /* Пункты меню — ровным списком по левому краю, как кнопка под ними */
  .site-nav .nav-link {
    padding: 12px 0 !important;
    border-radius: 0;
    font-size: 17px;
  }
  .site-nav .nav-item + .nav-item {
    border-top: 1px solid var(--line);
  }
  .site-nav .nav-link:hover,
  .site-nav .nav-link.active {
    background: none;
    color: var(--amber-dark);
  }
  /* «Консультация» в раскрытом меню — такой же пункт, как остальные */
  .site-header .header-consult {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 0;
    margin-bottom: 8px;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: none;
    color: var(--ink-2);
    font-size: 17px;
    font-weight: 600;
    text-align: left;
  }
  .site-header .header-consult:hover,
  .site-header .header-consult:focus-visible {
    background: none;
    color: var(--amber-dark);
  }
  .site-nav {
    margin-bottom: 0 !important;
  }
}

/* ---------- Анимация кнопки звонка ----------
   Цикл 10 секунд: первую секунду трубка покачивается, дуги мигают по очереди,
   от кнопки расходятся два кольца; остальное время кнопка неподвижна. */

.call-fab::before,
.call-fab::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid var(--amber);
  opacity: 0;
  pointer-events: none;
}

.call-fab__handset,
.call-fab__wave {
  transform-box: fill-box;
}

.call-fab__handset {
  transform-origin: 50% 50%;
}

@media (prefers-reduced-motion: no-preference) {
  .call-fab::before,
  .call-fab::after {
    animation: call-fab-ring 10s ease-out 3s infinite;
  }

  .call-fab::after {
    animation-delay: 3.35s;
  }

  .call-fab__handset {
    animation: call-fab-shake 10s ease-in-out 3s infinite;
  }

  .call-fab__wave--near {
    animation: call-fab-wave 10s ease-in-out 3s infinite;
  }

  .call-fab__wave--far {
    animation: call-fab-wave 10s ease-in-out 3.15s infinite;
  }

  /* Пока человек держит палец или курсор на кнопке, не отвлекаем */
  .call-fab:hover::before,
  .call-fab:hover::after,
  .call-fab:hover .call-fab__handset,
  .call-fab:hover .call-fab__wave {
    animation-play-state: paused;
  }
}

@keyframes call-fab-shake {
  0%   { transform: rotate(0); }
  1.5% { transform: rotate(-13deg); }
  3%   { transform: rotate(11deg); }
  4.5% { transform: rotate(-8deg); }
  6%   { transform: rotate(6deg); }
  7.5% { transform: rotate(-3deg); }
  9%, 100% { transform: rotate(0); }
}

@keyframes call-fab-wave {
  0%   { opacity: 1; }
  2%   { opacity: .15; }
  4.5% { opacity: 1; }
  6.5% { opacity: .15; }
  9%, 100% { opacity: 1; }
}

@keyframes call-fab-ring {
  0%   { opacity: 0; transform: scale(1); }
  1.5% { opacity: .5; transform: scale(1.06); }
  14%  { opacity: 0; transform: scale(1.65); }
  100% { opacity: 0; transform: scale(1.65); }
}
