/* ============================================================
   EGRN Landing — Mobile-First CSS
   Дизайн-система: узкая мобильная колонка (как hub.html)
   Основной цвет: var(--blue) #2384e8  (синий)
   Вторичный:    var(--green) #34c659  (зелёный)
   Фон:          var(--bg) #fff / var(--bg-secondary) #f8f8fc
   ============================================================ */

/* ============================================================
   CSS Custom Properties (токены)
   ============================================================ */

:root {
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Цвета текста */
  --text-primary:   #070707;
  --text-secondary: #74757a;
  --text-caption:   #8f8f91;

  /* Цвета бренда */
  --blue:           #2384e8;
  --blue-dark:      #1568c7;
  --blue-deeper:    #0d47a1;
  --blue-light:     #e8f6ff;
  --blue-border:    #b9ddf5;

  --green:          #34c659;
  --green-dark:     #16833a;
  --green-light:    #e9f8ee;

  --error:          #b3261e;  /* WCAG AA на #fff (6.32:1) */
  --error-light:    #fce8e6;

  --amber-dark:     #9a5b00;  /* «Ожидает оплаты» — текст бейджа status-unpaid */
  --amber-light:    #fff4de;  /* «Ожидает оплаты» — фон бейджа */

  /* Фоны и границы */
  --bg:             #fff;
  --bg-app:         #f7f6fb;
  --bg-secondary:   #f8f8fc;
  --surface:        #fff;
  --row-bg:         #fff;
  --border:         #ebeaf1;
  --border-input:   #e2e4ec;
  --input-bg:       #fdfdff;
  --notice-bg:      #fff3cd;  /* жёлтая плашка-уведомление о графике работы (success.html #operating-notice) */
  --notice-border:  #ffc107;
  --focus-ring:     0 0 0 3px rgba(57,166,238,0.18);
  --button-height:  48px;

  /* Радиусы */
  --r-sm:  12px;
  --r-md:  16px;
  --r-lg:  18px;
  --r-full: 9999px;

  /* Тени */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 10px 30px rgba(0,0,0,0.05);
  --shadow-lg:  0 16px 40px rgba(0,0,0,0.10);

  /* Vacation banner (плашка о режиме работы) */
  --vacation-banner-bg:     rgba(232, 246, 255, 0.85);  /* --blue-light с alpha 0.85 для backdrop-blur */
  --vacation-banner-border: var(--blue-border);
  --vacation-banner-accent: var(--blue-dark);
}

/* ============================================================
   1. Reset + Base
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-app);
  -webkit-text-size-adjust: 100%;
}

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

a:hover {
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   2. Главный контейнер (как hub.html)
   ============================================================ */

main {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

/* ============================================================
   3. Утилиты
   ============================================================ */

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.text-muted {
  color: var(--text-secondary);
}

/* ============================================================
   4. Типографика
   ============================================================ */

.logo {
  text-align: center;
  margin-bottom: 16px;
}

.logo img,
.logo svg {
  height: 40px;
  width: auto;
  display: inline-block;
}

h1 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 12px;
}

.subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 32px;
}

.section-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.35;
  margin-top: 40px;
  margin-bottom: 16px;
  scroll-margin-top: 24px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.55;
  margin-bottom: 20px;
}

/* ============================================================
   5. Кнопки
   ============================================================ */

/* Base shared */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  min-height: var(--button-height);
}

/* Primary */
.btn-primary {
  height: var(--button-height);
  padding: 0 28px;
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--blue-dark);
  text-decoration: none;
  color: #fff;
}

.btn-primary:active {
  background: var(--blue-deeper);
  box-shadow: none;
  color: #fff;
}

.btn-primary:disabled,
.btn-primary[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Secondary */
.btn-secondary {
  height: var(--button-height);
  padding: 0 28px;
  background: var(--surface);
  color: var(--blue);
  border: 1.5px solid var(--blue-border);
  font-size: 17px;
}

.btn-secondary:hover {
  background: var(--blue-light);
  text-decoration: none;
  color: var(--blue);
}

/* Large modifier */
.btn-large {
  height: var(--button-height);
  padding: 0 36px;
  font-size: 19px;
  border-radius: 14px;
}

/* Small modifier */
.btn-small {
  height: 40px;
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
  border-radius: var(--r-sm);
}

/* Add address (dashed) */
.btn-add-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: var(--button-height);
  padding: 0 16px;
  border: 1.5px dashed var(--blue-border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--blue);
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  margin-top: 8px;
}

.btn-add-address:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

/* ============================================================
   6. Hero CTA
   ============================================================ */

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

/* ============================================================
   7. Преимущества
   ============================================================ */

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 32px;
  margin-bottom: 8px;
}

.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.benefit-card:last-child {
  border-bottom: none;
}

.benefit-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.35;
}

.benefit-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ============================================================
   8. Калькулятор
   ============================================================ */

.calculator-card {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: none;
  margin-bottom: 16px;
}

/* Карточка адреса в калькуляторе */
.calc-house-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--row-bg);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  margin-bottom: 8px;
}

.calc-house-card-icon {
  font-size: 19px;
  flex-shrink: 0;
  color: var(--blue);
}

.calc-house-card-info {
  flex: 1;
  min-width: 0;
}

.calc-house-card-addr {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calc-house-card-count {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* СНИЛС-переключатель */
.snils-toggle {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-bottom: 16px;
}

.toggle-segment {
  flex: 1;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.18s, color 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.toggle-segment.active {
  background: var(--green-dark);
  color: #fff;
  font-weight: 600;
}

.toggle-segment:not(.active):hover {
  background: rgba(52,168,83,0.07);
  color: var(--green);
}

/* Результат калькулятора */
.calc-result {
  background: var(--blue-light);
  border: 1.5px solid var(--blue-border);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin-top: 20px;
}

/* Скидочные бейджи */
.discount-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  cursor: default;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.discount-badge.active {
  background: var(--green-light);
  border-color: #a5d6a7;
  color: var(--green-dark);
}

/* Сворачиваемая таблица цен */
.price-table-collapsible {
  margin-top: 16px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface);
}

.price-table-collapsible summary {
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-dark);
  cursor: pointer;
  list-style: none;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  -webkit-tap-highlight-color: transparent;
}

.price-table-collapsible summary::-webkit-details-marker {
  display: none;
}

.price-table-collapsible summary .arrow {
  display: inline-block;
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.price-table-collapsible[open] > summary .arrow {
  transform: rotate(90deg);
}

.price-table-collapsible.is-closing > summary .arrow {
  transform: rotate(0deg);
}

.price-table-collapsible table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.price-table-collapsible th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
}

.price-table-collapsible th:last-child {
  text-align: right;
}

.price-table-collapsible td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.price-table-collapsible td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--blue);
}

.price-table-collapsible tr:last-child td {
  border-bottom: none;
}

.price-table-collapsible tr:nth-child(even) td {
  background: var(--bg-secondary);
}

/* ============================================================
   9. Пример реестра
   ============================================================ */

.example-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.example-image-wrap {
  cursor: zoom-in;
  width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg);
}

.example-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.example-caption {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* ============================================================
   10. Юр. аргументы
   ============================================================ */

.legal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 14px;
  background: var(--row-bg);
  border: 1px solid transparent;
  border-radius: var(--r-md);
}

.legal-item--accent {
  background: var(--blue-light);
  border-color: var(--blue-border);
}

.legal-icon {
  font-size: 27px;
  flex-shrink: 0;
  margin-top: 2px;
}

.legal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.35;
}

.legal-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   11. Доверие
   ============================================================ */

.trust-card {
  display: flex;
  flex-direction: row;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 24px;
}

.trust-stat {
  flex: 1;
  padding: 20px 12px;
  text-align: center;
}

.trust-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}

.trust-number {
  font-size: 29px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.1;
  display: block;
}

.trust-label {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ============================================================
   12. FAQ
   ============================================================ */

.faq {
  border-top: 1px solid var(--border);
}

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

.faq summary {
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

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

.faq summary::before {
  display: inline-block;
  content: "▸ ";
  width: 1.1em;
  transform-origin: 40% 50%;
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.faq details[open] > summary::before {
  transform: rotate(90deg);
}

.faq details.is-closing > summary::before {
  transform: rotate(0deg);
}

.faq details p {
  padding: 0 0 14px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.animated-details > summary {
  user-select: none;
}

.animated-details > .details-content {
  overflow: hidden;
  transition:
    height 0.3s cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 0.2s ease,
    transform 0.3s cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: height, opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  .animated-details > .details-content,
  .price-table-collapsible summary .arrow,
  .faq summary::before {
    transition: none;
  }
}

/* ============================================================
   13. Форма заказа
   ============================================================ */

#orderForm {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 16px;
}

/* Секция формы (fieldset-замена) */
.form-section {
  border: none;
  padding: 0;
  margin: 0 0 28px 0;
}

.form-section:last-of-type {
  margin-bottom: 0;
}

.form-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Метка поля */
.form-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.required {
  color: var(--error);
  margin-left: 2px;
}

/* Поля ввода */
.form-input,
.form-textarea {
  display: block;
  width: 100%;
  border: 1.5px solid var(--border-input);
  border-radius: var(--r-sm);
  font-size: 17px; /* 16px — iOS не зумит */
  color: var(--text-primary);
  background: var(--input-bg);
  line-height: 1.5;
  transition: border-color 0.18s, box-shadow 0.18s;
  -webkit-appearance: none;
  appearance: none;
}

.form-input {
  height: var(--button-height);
  padding: 0 14px;
}

.form-textarea {
  padding: 12px 14px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #8d939d;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--focus-ring);
}

.form-input.error,
.form-textarea.error {
  border-color: var(--error);
}

/* Фокус на поле с ошибкой — рамка и свечение красные, не синие. */
.form-input.error:focus {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.15);
}

/* Inline-ошибка поля ввода: красный текст по центру между полем и кнопкой. */
.field-error {
  text-align: center;
  color: var(--error);
  font-size: 14px;
  line-height: 1.4;
  margin: 4px 0 12px;
}

.form-textarea {
  resize: vertical;
  min-height: 96px;
}

/* Промокод: input + кнопка «Применить» в одну строку, статус под ними. */
.promo-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.promo-row .form-input {
  flex: 1;
  text-transform: uppercase;
}
.promo-row .btn-secondary {
  flex-shrink: 0;
}
.promo-status {
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.4;
}
.promo-status.is-ok {
  color: var(--green-dark);
}
.promo-status.is-error {
  color: var(--error);
}

.form-hint {
  display: block;
  font-size: 13px;
  color: var(--text-caption);
  margin-top: 4px;
  line-height: 1.4;
}

.form-error {
  display: block;
  font-size: 13px;
  color: var(--error);
  margin-top: 4px;
  line-height: 1.4;
}

/* Всегда однаколоночный layout при max-width 480px */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* Кнопка отправки */
.form-submit {
  width: 100%;
  margin-top: 20px;
}

/* Обёртка submit-кнопки в карточке калькулятора (центр по ширине auto) */
.calc-submit-wrap {
  text-align: center;
  margin-top: 20px;
}

/* Правовой дисклеймер под формой */
.form-legal {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-caption);
  text-align: center;
  line-height: 1.5;
}

.form-legal a {
  color: var(--blue);
  text-decoration: underline;
}

/* ============================================================
   14. Предварительный расчёт
   ============================================================ */

.price-summary {
  background: var(--blue-light);
  border: 1.5px solid var(--blue-border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-top: 20px;
}

.price-summary-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  color: #3c4043;
  padding: 3px 0;
}

/* HTML-атрибут [hidden] должен реально скрывать .price-row, даже несмотря
   на display: flex выше. Базовый user-agent правило [hidden]{display:none}
   имеет меньший приоритет, чем author-селектор .price-row, поэтому без
   этого правила element.hidden=true не работает. Specificity (0,2,0). */
.price-row[hidden] {
  display: none;
}

.price-row-label {
  flex: 1;
}

.price-row-value {
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.price-divider {
  height: 1px;
  background: var(--blue-border);
  margin: 8px 0;
}

.price-total {
  font-size: 19px;
  font-weight: 800;
  color: var(--blue);
}

.price-discount {
  color: var(--green);
  font-weight: 600;
}

/* Состояние «все дома — ручной расчёт»: вместо нулевых цифр
   показываем крупный callout, числовые строки скрыты. */
.price-summary.is-manual .price-summary-figures { display: none; }
.price-summary.is-manual .price-note { display: none; }

.price-manual-callout {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 0 2px;
}
.price-summary.is-manual .price-manual-callout { display: flex; }

.price-manual-callout-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.price-manual-callout-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
}

.price-manual-callout-text strong {
  font-weight: 700;
}

/* ============================================================
   15. Success screen
   ============================================================ */

.order-success {
  text-align: center;
  padding: 40px 16px;
  max-width: 440px;
  margin: 0 auto;
}

.success-icon {
  font-size: 65px;
  display: block;
  margin-bottom: 18px;
}

.success-title {
  font-size: 23px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.success-text {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ============================================================
   16. Footer
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 24px 0 0;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  text-align: center;
  line-height: 1.6;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-caption);
  margin-top: 8px;
}

/* ============================================================
   17. Загрузка
   ============================================================ */

.loading:not(.form-input) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 15px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

/* Skeleton placeholder */
.skeleton {
  background: linear-gradient(90deg, #f1f3f4 25%, #e8eaed 50%, #f1f3f4 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   18. Suggestions dropdown
   ============================================================ */

.input-with-suggestions {
  position: relative;
}

.suggestions-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  max-height: 240px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.suggestions-dropdown::-webkit-scrollbar {
  width: 4px;
}

.suggestions-dropdown::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

.suggestions-dropdown::-webkit-scrollbar-thumb {
  background: #bdc1c6;
  border-radius: 2px;
}

.suggestion-item {
  padding: 11px 14px;
  font-size: 16px;
  color: var(--text-primary);
  cursor: pointer;
  border-bottom: 1px solid #f1f3f4;
  line-height: 1.4;
  transition: background 0.12s;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
  background: var(--blue-light);
  color: var(--blue);
}

.suggestion-item--no-house {
  color: #9aa0a6;
  font-style: italic;
}

.suggestion-item--no-house:hover {
  background: #f8f9fa;
  color: #9aa0a6;
}

.suggestion-hint {
  font-size: 13px;
  color: #bdc1c6;
  font-style: italic;
}

/* ============================================================
   19. Addresses list
   ============================================================ */

.address-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--row-bg);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  margin-bottom: 8px;
}

.address-card:last-child {
  margin-bottom: 0;
}

.address-card-icon {
  font-size: 18px;
  flex-shrink: 0;
  color: var(--blue);
}

.address-card-info {
  flex: 1;
  min-width: 0;
}

.address-card-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  word-break: break-word;
}

.address-card-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.address-card-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  margin-top: 6px;
}

.address-card-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  color: #9aa0a6;
  cursor: pointer;
  border-radius: 6px;
  flex-shrink: 0;
  font-size: 17px;
  transition: color 0.18s, background 0.18s;
}

.address-card-remove:hover {
  color: var(--error);
  background: rgba(217,48,37,0.08);
}

/* ============================================================
   20. Company info
   ============================================================ */

.company-info-card {
  background: var(--row-bg);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 10px;
}

.company-info-card p {
  margin-bottom: 3px;
}

.company-info-card p:last-child {
  margin-bottom: 0;
}

.company-info-card strong {
  color: #3c4043;
}

/* ============================================================
   21. Дополнительные утилитарные классы
   ============================================================ */

/* Результат калькулятора — внутренний контейнер */
.calc-result-inner {
  text-align: center;
}

.calc-result-label {
  font-size: 14px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 4px;
}

.calc-result-price {
  font-size: 29px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

/* Все дома на ручном расчёте — текст «По запросу» вместо «0 ₽».
   Чуть уменьшаем шрифт, чтобы длинная фраза не выглядела как цена. */
.calc-result.is-manual .calc-result-price {
  font-size: 22px;
  color: var(--blue);
}

.calc-discount-info {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  display: block;
  margin-top: 4px;
}

/* Та же причина, что и у .price-row[hidden]: display: block выше перебивает
   user-agent [hidden]{display:none}, из-за чего element.hidden=true визуально
   ничего не делает. Specificity (0,2,0) > (0,1,0). */
.calc-discount-info[hidden] {
  display: none;
}

/* Примечание под скидочными бейджами */
.discount-note {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 8px;
}

/* Секция примера — кнопка скачивания */
.example-download {
  text-align: center;
  margin-top: 20px;
}

/* Подзаголовок героя */
.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 8px;
  margin-bottom: 4px;
  line-height: 1.5;
}

/* Текст доверия */
.trust-text {
  font-size: 17px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* Блок гарантии */
.guarantee-card {
  background: var(--green-light);
  border: 1px solid var(--green);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin: 32px 0;
  text-align: center;
}
.guarantee-title {
  display: block;
  font-size: 17px;
  color: var(--green-dark);
  margin-bottom: 6px;
}
.guarantee-text {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
}

/* Inline ссылка */
.link-inline {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}

.link-inline:hover {
  text-decoration: underline;
}

/* Кнопка отправки формы */
.btn-submit {
  width: 100%;
}

/* Примечание к цене */
.price-note {
  font-size: 13px;
  color: var(--text-caption);
  margin-top: 8px;
  line-height: 1.5;
}

/* Группа поля формы */
.form-group {
  margin-bottom: 16px;
}

.form-group:last-child {
  margin-bottom: 0;
}

/* Скрытый для зрячих, но доступный для скринридеров */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ошибки валидации полей */
.field-error {
  border-color: var(--error) !important;
}

.field-error-message {
  display: block;
  font-size: 13px;
  color: var(--error);
  margin-top: 4px;
}

.addresses-list + .field-error-message {
  margin-bottom: 8px;
}

/* ============================================================
   22. Cabinet surfaces
   ============================================================ */

.cabinet-demo-main {
  padding-bottom: 92px;
}

.cabinet-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.cabinet-app-title {
  min-width: 0;
}

.cabinet-app-title h1 {
  text-align: left;
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.cabinet-app-title p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
  margin-top: 4px;
}

.cabinet-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}

.cabinet-surface {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 16px;
}

.pin-section {
  padding-top: 4px;
}

.pin-title {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.25;
  text-align: center;
}

.pin-input {
  text-align: center;
  font-size: 24px;
  letter-spacing: 8px;
}

.cabinet-profile {
  margin-bottom: 24px;
}

.cabinet-profile[hidden] {
  display: none;
}

.cabinet-order-detail[hidden] {
  display: none;
}

.cabinet-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cabinet-section-heading h2,
.cabinet-section-heading h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.cabinet-section-heading p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 4px;
}

.cabinet-demo-tab-panel[hidden] {
  display: none;
}

.cabinet-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cabinet-kpi {
  background: var(--bg-secondary);
  border-radius: var(--r-sm);
  padding: 12px 10px;
  min-width: 0;
}

.cabinet-kpi-value {
  display: block;
  color: var(--blue);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.cabinet-kpi-label {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.25;
  margin-top: 5px;
}

.cabinet-segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-secondary);
  border-radius: var(--r-md);
  margin-bottom: 16px;
}

.cabinet-segmented button {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
}

.cabinet-segmented button.is-active {
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.orders-container,
.cabinet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cabinet-list .cabinet-action-row {
  width: 100%;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.cabinet-list .cabinet-action-row:hover {
  background: var(--surface);
}

.order-card {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  padding: 16px;
}

.order-card.is-interactive {
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.order-card.is-interactive:hover {
  background: #fefeff;
}

.order-card.is-interactive:active {
  transform: scale(0.99);
}

.order-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.order-number {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.order-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-draft,
.status-new {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.status-unpaid {
  background: var(--amber-light);
  color: var(--amber-dark);
}

.status-processing {
  background: var(--blue-light);
  color: var(--blue-dark);
}

.status-completed {
  background: var(--green-light);
  color: var(--green-dark);
}

.status-cancelled {
  background: var(--error-light);
  color: var(--error);
}

.order-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.order-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: var(--r-full);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.order-houses,
.cabinet-document-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-house-item,
.cabinet-document-row,
.cabinet-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--bg-secondary);
}

.house-address,
.cabinet-row-title {
  flex: 1;
  min-width: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.house-info,
.cabinet-row-subtitle {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 3px;
}

.download-link,
.file-pending {
  color: var(--blue);
  font-weight: 700;
  white-space: nowrap;
  font-size: 13px;
}

.file-pending {
  color: var(--text-caption);
}

.resend-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
}

.resend-actions .resend-btn {
  flex: 1 1 160px;
}

.resend-actions .resend-btn:disabled {
  cursor: default;
  opacity: 0.64;
}

.resend-status {
  min-height: 20px;
  margin-top: 8px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
}

.resend-status.is-error {
  color: var(--error);
}

.cabinet-order-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.order-detail-summary {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.order-detail-heading,
.order-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order-detail-heading h2,
.order-progress-head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.order-detail-heading p,
.order-progress-head p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 5px;
}

.order-detail-meta,
.order-detail-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.order-detail-meta span,
.order-detail-date {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--r-full);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.order-detail-date {
  gap: 6px;
}

.order-detail-date strong {
  color: var(--text-primary);
  font-weight: 700;
}

.order-progress-bar {
  height: 10px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: var(--r-full);
  background: var(--blue-light);
}

.order-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.order-document-links,
.order-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-document-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: none;
}

.order-document-link:hover {
  background: var(--blue-light);
}

.order-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  padding: 2px 0 12px;
}

.order-timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 20px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.order-timeline-dot {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 3px solid var(--blue-light);
  border-radius: var(--r-full);
  background: var(--blue);
}

.order-timeline-item.is-final .order-timeline-dot {
  border-color: var(--green-light);
  background: var(--green);
}

.order-detail-houses {
  gap: 10px;
}

.order-detail-house {
  align-items: flex-start;
}

.house-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 8px;
  padding: 0 9px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 700;
}

.house-status-success {
  background: var(--green-light);
  color: var(--green-dark);
}

.house-status-warning {
  background: var(--amber-light);
  color: var(--amber-dark);
}

.house-status-error {
  background: var(--error-light);
  color: var(--error);
}

.house-status-progress {
  background: var(--blue-light);
  color: var(--blue-dark);
}

.house-status-neutral {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.order-detail-error h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.order-detail-error p {
  color: var(--text-secondary);
  line-height: 1.45;
}

.cabinet-action-status {
  min-height: 20px;
  margin: -8px 0 16px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
}

.cabinet-action-status[hidden] {
  display: none;
}

.cabinet-action-status.is-error {
  color: var(--error);
}

.profile-status {
  min-height: 20px;
  margin-top: 10px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
}

.profile-status[hidden] {
  display: none;
}

.profile-status.is-error {
  color: var(--error);
}

.cabinet-row-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.cabinet-row-action {
  color: var(--text-caption);
  flex-shrink: 0;
}

.cabinet-payment-banner {
  background: #fff4de;
  border: 1px solid #ffd48a;
  border-radius: var(--r-md);
  color: #6f4100;
  padding: 14px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.cart-house-list:empty::before {
  content: "Добавленные дома появятся здесь";
  display: block;
  color: var(--text-caption);
  font-size: 14px;
  line-height: 1.45;
  padding: 4px 0;
}

.cart-house {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-house:last-child {
  border-bottom: 0;
}

.cart-house-body {
  flex: 1;
  min-width: 0;
}

.cart-house-price {
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-primary);
}

.cart-remove {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: var(--r-full);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.cart-remove:hover {
  background: var(--error-light);
  color: var(--error);
}

.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.4;
}

.sum-row span:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
}

.sum-row.discount {
  color: var(--green-dark);
}

.sum-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px solid var(--border);
  font-size: 19px;
  font-weight: 800;
}

.sum-note {
  color: var(--text-caption);
  font-size: 13px;
  line-height: 1.45;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-weight: 600;
}

.link-button:hover {
  text-decoration: underline;
}

.cabinet-bottom-nav {
  position: sticky;
  bottom: 12px;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  min-height: 64px;
  padding: 6px;
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 -10px 28px rgba(7,7,7,0.08), 0 1px 3px rgba(7,7,7,0.05);
  backdrop-filter: blur(18px) saturate(180%);
}

.cabinet-bottom-nav button {
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.cabinet-bottom-nav button.is-active {
  background: var(--blue-light);
  color: var(--blue-dark);
}

/* Иконка вкладки над подписью. */
.cabinet-bottom-nav .nav-ico {
  display: block;
  font-size: 18px;
  line-height: 1;
  margin-bottom: 3px;
}

/* Цвет активной вкладки — по её статусу: активные голубой (общее правило выше),
   завершённые зелёный, отменённые красный. */
.cabinet-bottom-nav button[data-orders-filter="completed"].is-active {
  background: var(--green-light);
  color: var(--green-dark);
}
.cabinet-bottom-nav button[data-orders-filter="cancelled"].is-active {
  background: var(--error-light);
  color: var(--error);
}

/* Полоса с кнопкой нового заказа над списком заказов. */
.new-order-bar {
  margin-bottom: 16px;
}

.cabinet-demo-drawer {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  background: rgba(7,7,7,0.24);
  padding: 16px;
}

.cabinet-demo-drawer[hidden] {
  display: none;
}

.cabinet-demo-drawer-panel {
  width: min(100%, 480px);
  max-height: min(78vh, 720px);
  overflow-y: auto;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 24px 24px var(--r-lg) var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-lg);
}

.cabinet-demo-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cabinet-demo-drawer-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--r-full);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 20px;
}

@media (max-width: 380px) {
  .cabinet-kpi-grid {
    grid-template-columns: 1fr;
  }

  .cabinet-section-heading,
  .order-card-header,
  .order-detail-heading,
  .order-progress-head {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============================================================
   23. Image popup (просмотр примеров реестра)
   ============================================================ */

.image-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
}

.image-popup-img {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--r-md);
  z-index: 1;
}

.image-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 29px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   23. Print styles
   ============================================================ */

@media print {
  .hero-cta,
  .btn-primary,
  .btn-secondary,
  #orderForm {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  main {
    max-width: 100%;
    padding: 0;
  }
}

/* === Как это работает === */
.how-it-works {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0 24px;
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.how-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.how-step-title {
  font-size: 15px;
  font-weight: 600;
  color: #202124;
  display: block;
  margin-bottom: 2px;
}

.how-step-desc {
  font-size: 14px;
  color: #5f6368;
  margin: 0;
}

.how-step-arrow {
  display: none;
}

/* === Reserve fallback form === */
.reserve-fallback {
  margin-top: 32px;
  padding: 24px;
  background: #fff8e1;
  border: 2px solid #ffc107;
  border-radius: 12px;
}

.reserve-fallback h2 {
  font-size: 1.25rem;
  margin: 0 0 8px;
  color: #e65100;
}

.reserve-fallback p {
  font-size: 0.95rem;
  color: #5f6368;
  margin: 0 0 16px;
}

.reserve-fallback .form-group {
  margin-bottom: 14px;
}

.reserve-fallback .form-label {
  font-size: 0.9rem;
}

.reserve-fallback textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px 14px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}

.reserve-fallback textarea:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

/* === DaData failure hint === */
.dadata-hint {
  display: none;
  margin-top: 6px;
  padding: 8px 12px;
  background: #fff8e1;
  border-left: 3px solid #ffc107;
  border-radius: 0 6px 6px 0;
  font-size: 0.85rem;
  color: #5f6368;
  line-height: 1.4;
}

.dadata-hint.visible {
  display: block;
}

/* ============================================================
   Vacation banner — плашка о режиме работы сервиса
   Sticky сверху, с backdrop-blur. Заполняется через /api/operating-mode
   (см. landing/js/vacation-banner.js).
   ============================================================ */

.vacation-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--vacation-banner-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--vacation-banner-border);
  padding: 12px 44px;            /* боковой запас 44px — чтобы центрованный текст не наезжал на кнопку-закрытие */
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.vacation-banner__inner {
  max-width: 980px;
  margin: 0 auto;
}

.vacation-banner__title {
  display: block;                /* заголовок — отдельной строкой */
  font-weight: 600;
  color: var(--vacation-banner-accent);
  margin-bottom: 8px;            /* отступ до текста */
}

/* Кнопка-закрытие — кружок с × в правом верхнем углу (банер sticky = positioned, absolute считается от него). */
.vacation-banner__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--vacation-banner-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  color: var(--vacation-banner-accent);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.vacation-banner__close:hover {
  background: #fff;
}

/* Mobile — крупнее padding для тач-таргета и читаемости. */
@media (max-width: 640px) {
  .vacation-banner {
    padding: 10px 40px;
    font-size: 13px;
  }
}

/* ============================================================
   Личный кабинет (cabinet.html) — вынесенные из разметки инлайн-стили.
   Цвета только через токены; раскладка — через классы.
   ============================================================ */
.auth-subtitle        { text-align: center; color: var(--text-secondary); margin-bottom: 20px; }
.auth-hint            { text-align: center; color: var(--text-secondary); font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
.auth-help            { text-align: center; margin-top: 20px; font-size: 15px; color: var(--text-secondary); }
.auth-error-text      { color: var(--error); text-align: center; margin-top: 12px; }
.otp-info             { text-align: center; color: var(--text-secondary); margin-bottom: 12px; }
.otp-code-input       { text-align: center; font-size: 25px; letter-spacing: 8px; }
.link-accent          { color: var(--blue-dark); font-weight: 500; }

.btn-full             { width: 100%; }
.btn-inline-block     { display: inline-block; }

.auth-section .otp-section,
.auth-section .pin-section { margin-top: 20px; }

/* Шапка кабинета: аватар + организация + персональная скидка + меню «⋯» */
.cabinet-identity-card { margin-bottom: 16px; }
.cabinet-identity      { display: flex; align-items: center; gap: 12px; }
.cabinet-identity-text { flex: 1; min-width: 0; }
.cabinet-identity-name { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cabinet-identity-sub  { margin-top: 3px; color: var(--text-secondary); font-size: 13px; line-height: 1.4; }
.cabinet-identity-sub strong { color: var(--green-dark); font-weight: 700; }
.cabinet-identity-card .cabinet-kpi-grid { margin-top: 14px; }

.cabinet-menu          { position: relative; flex-shrink: 0; }
.cabinet-menu-btn      { width: 40px; height: 40px; border: 0; border-radius: var(--r-full); background: var(--bg-secondary); color: var(--text-secondary); font-size: 22px; line-height: 1; cursor: pointer; }
.cabinet-menu-btn:hover { background: var(--blue-light); color: var(--blue-dark); }
.cabinet-menu-dropdown { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; display: flex; flex-direction: column; min-width: 176px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.cabinet-menu-dropdown[hidden] { display: none; }
.cabinet-menu-dropdown button { border: 0; background: transparent; color: var(--text-primary); font: inherit; font-weight: 600; text-align: left; padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer; }
.cabinet-menu-dropdown button:hover { background: var(--bg-secondary); }

/* Строка дома в карточке заказа: адрес слева растягивается, «Скачать» уходит вправо */
.order-house-text      { flex: 1; min-width: 0; }

.cabinet-new-order    { margin-bottom: 24px; }
.surface-head         { margin: 0 0 12px; }
.promo-input          { max-width: 220px; text-transform: uppercase; }

/* Единый футер всех страниц: тонкая линия-разделитель, тающая к краям (hairline fade) + воздух. */
.page-footer          { position: relative; margin-top: 56px; padding-top: 28px; font-size: 15px; color: var(--text-secondary); line-height: 1.7; text-align: center; }
.page-footer::before  { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 320px; height: 1px; background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent); }
.page-footer a        { color: var(--blue-dark); }

.orders-state         { text-align: center; padding: 40px 0; }
.orders-state-icon    { font-size: 49px; margin-bottom: 12px; }
.orders-state-text    { color: var(--text-secondary); }

.cabinet-bottom-nav--3 { grid-template-columns: repeat(3, 1fr); }

/* мелкие отступы — вынос из инлайна */
.mt-8  { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-0  { margin-bottom: 0; }

/* ============================================================
   Контентные страницы (blog/*, regions/*) — вынесенные из разметки
   инлайн-стили. Значения 1:1 с прежними inline, визуал не меняется.
   ============================================================ */

/* Акцентная ссылка с жирностью 600 (отличается от .link-accent с 500). */
.link-accent-strong       { color: var(--blue-dark); font-weight: 600; text-decoration: none; }
/* :hover перебивает глобальный a:hover{underline} — прежний inline text-decoration:none не подчёркивался. */
.link-accent-strong:hover { text-decoration: none; }

/* Хлебные крошки: контейнер + разделитель «→» + ссылки. */
.breadcrumbs          { font-size: 14px; color: var(--text-caption); margin: 24px 0 8px; }
.breadcrumbs .sep     { margin: 0 6px; }
.breadcrumbs a        { color: var(--text-caption); text-decoration: none; }

/* Маркированные списки в тексте статей. Два межстрочных интервала
   (1.8 и 1.7) — это намеренное различие исходной вёрстки, не унификация. */
.content-list         { line-height: 1.8; padding-left: 20px; }
.content-list-tight   { line-height: 1.7; padding-left: 20px; }

/* Подзаголовок и абзац внутри CTA-блока контентных страниц. */
.content-subhead      { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.content-text         { margin: 0 0 16px; color: var(--text-secondary); }
