/* components.css — Вертикаль Про | новые компоненты UX-архитектуры
   Использует токены из style.css (:root). Подключается после style.css. */

/* ---------- Кнопки: дополнительные модификаторы ---------- */
.btn-sm { padding: 0.5rem 0.9rem; font-size: var(--text-sm); border-radius: var(--radius-sm); }
.btn-block { width: 100%; justify-content: center; }
.btn-link { background: none; color: var(--color-accent-text); padding: 0.4rem 0.5rem; font-size: var(--text-sm); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.btn-link:hover { color: var(--color-primary-2); }

/* ---------- Бренд / логотип ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--color-text); }
.brand__logo { width: auto; height: 34px; flex: none; }
.footer__brand .brand__logo { height: 30px; }
.brand__name { font-weight: 800; font-size: 1.02rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand--light { color: var(--color-text-inverse); }
.brand--light .brand__name { color: var(--color-text-inverse); }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--color-primary); color: var(--color-primary-contrast); padding: 0.7rem 1rem; border-radius: var(--radius-sm); font-size: var(--text-sm); }
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

/* ---------- Хедер ---------- */
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.header__call { flex: none; font-weight: 700; white-space: nowrap; }

/* ---------- Навигация: выпадающее подменю "Услуги" ---------- */
.nav__links { margin: 0; padding: 0; }
.nav__links > li > a, .nav__links > li > button { display: inline-flex; height: 42px; min-height: 42px; align-items: center; justify-content: center; padding: 0.5rem 0.55rem; color: var(--color-text-muted); text-decoration: none; font-size: var(--text-sm); font-weight: 600; line-height: 1.2; white-space: nowrap; border-radius: var(--radius-sm); background: none; border: none; cursor: pointer; font-family: inherit; }
.nav__links > li > a:hover, .nav__links > li > button:hover { color: var(--color-primary); background: var(--color-primary-soft); }
.nav__has-sub { position: relative; }
.nav__sub-toggle::after { content: '▾'; display: inline-block; margin-left: 0.35rem; font-size: 0.9em; line-height: 1; opacity: 0.75; transform: translateY(0.05em); transition: transform 180ms ease; }
.nav__sub { list-style: none; position: absolute; top: 100%; right: 0; min-width: 230px; margin: 0; padding: 0.4rem; background: var(--color-surface-solid); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 180ms ease, transform 180ms ease, visibility 180ms; }
.nav__sub a { display: flex; min-height: 40px; align-items: center; padding: 0.5rem 0.7rem; color: var(--color-text-muted); text-decoration: none; font-size: var(--text-sm); line-height: 1.2; white-space: nowrap; border-radius: var(--radius-sm); }
.nav__sub a:hover { color: var(--color-primary); background: var(--color-primary-soft); }
.nav__has-sub:hover .nav__sub, .nav__has-sub--open .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub-toggle[aria-expanded='true']::after { transform: translateY(0.05em) rotate(180deg); }

/* ---------- Контейнеры / секции ---------- */
.container--narrow { max-width: 760px; }
.section--cta { background: linear-gradient(180deg, transparent, var(--color-surface-offset)); }
.section--calc { padding-block: clamp(2rem, 4vw, 3.5rem); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(640px, 78dvh); display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
/* Фото видно справа, но под текстом слева остаётся чистый фон — так снимок
   работает на эмоцию, не мешая читать заголовок. */
.hero__bg::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #e9eef4 0%, rgba(233,238,244,.96) 27%, rgba(233,238,244,.62) 55%, rgba(233,238,244,.18) 100%);
}
.hero__inner { padding-block: clamp(3rem, 7vw, 5rem); }
.hero__title { font-size: var(--text-3xl); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; max-width: 18ch; }
.hero__lead { margin-top: var(--space-5); max-width: 52ch; font-size: var(--text-lg); color: var(--color-text-muted); }
.hero__cta { margin-top: var(--space-8); display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.hero__contact-actions { margin-top: var(--space-4); display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.hero__contact-link { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--color-text-muted); font-size: var(--text-sm); font-weight: 700; text-decoration: none; transition: color 160ms ease, transform 160ms ease; }
.hero__contact-link svg { width: 21px; height: 21px; flex: none; }
.hero__contact-link--phone { color: #324a68; }
.hero__contact-link--tg { color: #0a6a9e; }
.hero__contact-link--max { color: #155eaa; }
.hero__contact-link--wa { color: #0f6d43; }
.hero__contact-link:hover { color: var(--color-primary); transform: translateY(-1px); }
.hero__hint { margin-top: var(--space-4); color: var(--color-text-faint); font-size: var(--text-sm); }
.contact-request { padding: var(--space-6); border-radius: var(--radius-lg); }
.contact-channels { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.contact-channels .btn { min-height: 42px; }
.contact-channel { gap: 0.6rem; }
.contact-channel svg { width: 20px; height: 20px; flex: none; }
.contact-channel--tg { color: #0a6a9e; }
.contact-channel--max { color: #155eaa; }
.contact-channel--wa { color: #0f6d43; }
.contact-channel.contact-channel--tg:hover { color: #1688bd; background: rgba(34, 158, 217, 0.08); }
.contact-channel.contact-channel--max:hover { color: #155eaa; background: rgba(25, 118, 210, 0.08); }
.contact-channel.contact-channel--wa:hover { color: #117347; background: rgba(22, 138, 87, 0.08); }

/* ---------- Task-first entry point ---------- */
.section--task { padding-top: clamp(3rem, 7vw, 5rem); background: var(--color-surface-offset); }
.task-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-4); }
.task-card { grid-column: span 2; min-height: 164px; padding: var(--space-6); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: var(--space-3); color: var(--color-text); text-align: left; border: 1px solid var(--color-glass-border); border-radius: var(--radius-lg); text-decoration: none; cursor: pointer; }
/* Шесть карточек по 2 колонки = 3 в ряд, без пустой ячейки */
.task-card:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.task-card--primary { border-color: color-mix(in oklab, var(--color-primary) 35%, var(--color-glass-border)); }
.task-card__title { font-size: var(--text-lg); font-weight: 800; letter-spacing: -0.01em; }
.task-card__meta { color: var(--color-text-muted); font-size: var(--text-sm); }
.task-card__cta { margin-top: auto; color: var(--color-primary); font-size: var(--text-sm); font-weight: 800; }

/* ---------- Заголовки секций ---------- */
.section-head { margin-bottom: var(--space-8); max-width: 64ch; }
.section-title { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.02em; }
.section-lead { margin-top: var(--space-4); color: var(--color-text-muted); font-size: var(--text-lg); }

/* ---------- Сетка услуг + карточки ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.svc-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); border-radius: var(--radius-lg); }
.svc-card__icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--color-primary); background: var(--color-primary-soft); border-radius: var(--radius-md); }
.svc-card__icon svg { width: 26px; height: 26px; }
.svc-card__title { font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.01em; }
.svc-card__desc { font-size: var(--text-sm); color: var(--color-text-muted); flex: 1; }
.svc-card__cta { display: flex; flex-direction: column; gap: var(--space-2); }
.svc-card__phone { font-size: var(--text-sm); color: var(--color-primary); text-decoration: none; font-weight: 600; }
.svc-card__phone:hover { text-decoration: underline; }

/* ---------- Факты / "Почему доверяют" ---------- */
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.fact { display: flex; gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius-lg); }
.fact__ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; color: var(--color-primary); background: var(--color-primary-soft); border-radius: var(--radius-sm); }
.fact__ico svg { width: 24px; height: 24px; }
.fact__title { font-size: var(--text-base); font-weight: 700; }
.fact__text { margin-top: 0.3rem; font-size: var(--text-sm); color: var(--color-text-muted); }
.safety-note { margin-top: var(--space-8); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--color-surface-offset); }
.safety-note p { color: var(--color-text-muted); font-size: var(--text-sm); max-width: 70ch; }

/* ---------- CTA-блок ---------- */
.cta-box { padding: var(--space-10); border-radius: var(--radius-xl); text-align: center; }
.cta-box__title { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.02em; }
.cta-box__text { margin: var(--space-4) auto 0; max-width: 52ch; color: var(--color-text-muted); font-size: var(--text-lg); }
.cta-box__btns { margin-top: var(--space-8); display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* ---------- Хлебные крошки ---------- */
.crumbs { display: flex; align-items: center; gap: 0.5rem; font-size: var(--text-xs); color: var(--color-text-faint); margin-bottom: var(--space-5); }
.crumbs a { color: var(--color-text-faint); text-decoration: none; }
.crumbs a:hover { color: var(--color-primary); }
.crumbs span:last-child { color: var(--color-text-muted); }

/* ---------- Финальные контакты на главной ---------- */
.contacts-phones { margin-top: var(--space-8); display: flex; gap: var(--space-5); flex-wrap: wrap; align-items: center; }
.contacts-phones a { font-weight: 800; font-size: var(--text-lg); color: var(--color-text); text-decoration: none; }
.contacts-phones a:hover { color: var(--color-primary); }

/* ---------- Формы: состояния ---------- */
.lead-form { padding: var(--space-8); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: var(--space-5); }
.lead-form__actions, .task-form__actions { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.lead-form__actions .btn-primary, .lead-form__actions .btn-ghost { flex: 1 1 220px; }
.lead-step__title, .task-step__title { font-size: var(--text-lg); font-weight: 800; letter-spacing: -0.01em; }
.field__optional { color: var(--color-text-faint); font-size: 0.9em; font-weight: 400; letter-spacing: 0; text-transform: none; }
.lead-form__note { font-size: var(--text-sm); margin: 0; min-height: 1.2em; }
#taskNote:empty, .copy-note:empty { display: none; }
.copy-note { font-size: var(--text-xs); margin: var(--space-2) 0 0; min-height: 1.2em; }
.lead-form__note.is-error, .copy-note.is-error, .wizard__explain.is-error { color: #c0392b; }
.lead-form__note.is-success, .copy-note.is-success { color: #1d8a4e; }
.input--error, .field input.input--error, .field textarea.input--error { border-color: #c0392b !important; box-shadow: 0 0 0 3px rgba(192,57,43,0.14) !important; }
.wizard__explain { font-size: var(--text-sm); min-height: 1.2em; margin: 0; }
.wizard__explain:empty { display: none; }
.task-form { display: flex; flex-direction: column; gap: var(--space-4); }
.task-form__actions .btn-primary { margin-left: auto; }
.field__hint { font-size: var(--text-xs); color: var(--color-text-faint); margin: 0; line-height: 1.4; }
/* Ошибка вложений: подсказка под полем становится красной, а не серой. */
.field__hint.is-error { color: var(--color-danger, #c0392b); font-weight: 600; }
/* Фиксированный расчёт в заявке: параметры не редактируются в тексте,
   человек дополняет их свободным описанием ниже. */
.calc-summary {
  display: grid; gap: 8px;
  padding: 12px 14px;
  border: 1.5px solid color-mix(in oklab, var(--color-primary) 26%, var(--color-border));
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, color-mix(in oklab, var(--color-primary-soft) 58%, #fff), var(--color-surface-offset));
}
.calc-summary[hidden] { display: none; }
.calc-summary__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.calc-summary__title { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary); }
.calc-summary__edit { border: 0; padding: 0; background: none; color: var(--color-primary); font: inherit; font-size: var(--text-xs); font-weight: 700; text-decoration: underline; cursor: pointer; }
.calc-summary__edit:hover { color: var(--color-primary-2); }
.calc-summary__rows { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px var(--space-4); margin: 0; }
.calc-summary__rows dt { margin: 0; font-size: var(--text-xs); color: var(--color-text-muted); }
.calc-summary__rows dd { margin: 0; text-align: right; font-size: var(--text-xs); font-weight: 700; color: var(--color-text); }
.calc-summary__total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin: 0; padding-top: 7px; border-top: 1px dashed var(--color-divider); }
.calc-summary__total span { font-size: var(--text-xs); color: var(--color-text-muted); }
.calc-summary__total strong { font-size: var(--text-lg); font-weight: 800; color: var(--color-primary); white-space: nowrap; }
.calc-summary__note { margin: 0; font-size: 10px; line-height: 1.4; color: var(--color-text-faint); }
/* Подписи-заголовки в группах визуального выбора */
.field__label, .field legend { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }
.field--choice { gap: 6px; }
/* Поле + миниатюра выбранного варианта (тип кровли, высота парапета) */
.field--preview { gap: var(--space-2); }
.field__row { display: flex; align-items: stretch; gap: 8px; }
.field__row select { flex: 1 1 auto; min-width: 0; }
.select-preview {
  flex: none; width: 78px; display: grid; place-items: center;
  padding: 3px 6px; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  background: linear-gradient(160deg, #eef6ff, #dbeafe);
  color: var(--color-primary);
}
.select-preview svg { width: 100%; height: 100%; max-height: 40px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Выпадающие списки в формах — в одном стиле с полями ввода */
.field select {
  font: inherit; color: var(--color-text); width: 100%;
  padding: 0.55rem 2.2rem 0.55rem 0.9rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface-offset);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.5L7 9.5L11 5.5' stroke='%236b7f99' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 14px;
  -webkit-appearance: none; appearance: none;
  cursor: pointer;
}
.field select:hover { border-color: color-mix(in oklab, var(--color-primary) 45%, var(--color-border)); }
.field select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-primary) 16%, transparent); }
.field--photo { padding: var(--space-3); border: 1px dashed var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface-offset); }

/* ---------- Модалка "Оценить задачу" ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal--open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(8,16,30,0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal__panel {
  position: relative; width: 100%; max-width: 520px;
  /* Не фиксируем 90vh/720px: на невысоких экранах это давало лишний
     вертикальный скролл даже когда контент почти помещался. */
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto; overscroll-behavior: contain;
  padding: var(--space-8); border-radius: var(--radius-xl);
  /* Белая карточка в стиле сайта. Полупрозрачный .glass поверх тёмного
     оверлея давал серый фон, выбивавшийся из остальных поверхностей. */
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  scrollbar-width: thin; scrollbar-color: var(--color-border) transparent;
}
.modal__panel::-webkit-scrollbar { width: 8px; }
.modal__panel::-webkit-scrollbar-track { background: transparent; }
.modal__panel::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: var(--radius-full); }
.modal__close { position: absolute; top: 0.75rem; right: 0.75rem; width: 38px; height: 38px; border-radius: var(--radius-full); border: none; background: var(--color-surface-offset-2); color: var(--color-text-muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.modal__close:hover { color: var(--color-text); background: var(--color-primary-soft); }
.modal__title { font-size: var(--text-xl); font-weight: 800; letter-spacing: -0.02em; padding-right: 2.75rem; }
.modal__lead { margin: var(--space-2) 0 var(--space-6); color: var(--color-text-muted); font-size: var(--text-sm); }
/* В калькуляторах шапка компактнее: там важна высота под шаги мастера */
.modal--calculator .modal__lead { margin-bottom: var(--space-4); }
.modal__success { text-align: center; padding: var(--space-6) var(--space-4); border: 1px solid rgba(74, 222, 128, .35); border-radius: var(--radius-lg); background: rgba(74, 222, 128, .08); }
.modal__success-text { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-5); color: #4ade80; }
.modal__success-text::before { content: '✓ '; font-weight: 700; }
.modal__success-actions { display: flex; align-items: center; justify-content: center; gap: var(--space-3); flex-wrap: wrap; }
.body--lock { overflow: hidden; }
.modal--calculator .modal__panel { max-width: 780px; }
.task-flow-choice { display: grid; gap: var(--space-4); }
.task-flow-choice__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
.task-flow-option { position: relative; min-height: 82px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; grid-template-rows: auto auto; align-items: center; column-gap: var(--space-4); row-gap: 0.25rem; padding: var(--space-4); border: 1.5px solid color-mix(in oklab, var(--color-primary) 20%, var(--color-border)); border-radius: var(--radius-md); background: linear-gradient(110deg, var(--color-surface-solid), color-mix(in oklab, var(--color-primary-soft) 55%, var(--color-surface-solid))); color: var(--color-text); text-align: left; cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.task-flow-option:hover, .task-flow-option:focus-visible { border-color: var(--color-primary); background: linear-gradient(110deg, var(--color-surface-solid), color-mix(in oklab, var(--color-primary-soft) 90%, var(--color-surface-solid))); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.task-flow-option strong { font-size: var(--text-sm); font-weight: 800; }
.task-flow-option__icon { grid-column: 1; grid-row: 1 / span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: var(--color-primary); background: var(--color-primary-soft); }
.task-flow-option__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.task-flow-option__description { grid-column: 2; grid-row: 2; color: var(--color-text-muted); font-size: var(--text-xs); line-height: 1.45; }
.task-flow-option::after { content: '→'; grid-column: 3; grid-row: 1 / span 2; justify-self: end; color: var(--color-primary); font-size: 1.2rem; font-weight: 700; }
#taskFlowChoice[hidden], #taskForm[hidden], #snowCalculator[hidden], #glassWashCalculator[hidden] { display: none !important; }

/* ---------- Пошаговый мастер ---------- */
.wizard { padding: var(--space-8); border-radius: var(--radius-lg); }
/* Плавная смена высоты при переходе между шагами вместо «прыжка» окна */
.wizard.is-animating {
  overflow: hidden;
  transition: height 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
/* Мастер всегда живёт внутри модалки: не рисуем вторую карточку и второй
   паддинг, иначе контент «съезжает» и появляется лишняя серая рамка. */
.modal__panel .wizard {
  padding: 0; border-radius: 0;
  background: transparent; border: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.wiz-step { display: flex; flex-direction: column; gap: var(--space-4); }
.wiz-step.is-entering { animation: wiz-step-in 280ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes wiz-step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.step__title { font-size: var(--text-xl); font-weight: 800; letter-spacing: -0.02em; }
.wizard__nav { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--color-divider); display: flex; align-items: center; gap: var(--space-3); }
/* Если на шаге нет видимых кнопок навигации — не оставляем пустую полосу
   с разделителем. На результате меню не нужно: там свои кнопки действий. */
.wizard__nav:not(:has(> .btn:not([hidden]))) { display: none; }
.wizard.is-result .wizard__nav { display: none; }
.wizard__meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); margin-bottom: var(--space-3); }
.wizard__progress-wrap { min-width: 0; }
.wizard__art { width: 72px; height: 54px; flex: none; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--color-primary-soft); color: var(--color-primary); }
.wizard__art svg { width: 60px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wizard__progress { display: block; font-size: var(--text-xs); color: var(--color-text-faint); font-weight: 700; }
.wizard__progressbar { height: 6px; margin-top: var(--space-2); overflow: hidden; border-radius: var(--radius-full); background: var(--color-surface-offset-2); }
.wizard__progressbar-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--color-primary-2), var(--color-primary)); transition: width var(--transition-interactive); }
.wizard__nav .btn-primary { margin-left: auto; }
.wizard__nav .btn-ghost { margin-right: auto; }

/* ---------- Визуальные контролы параметров ---------- */
.field--viz { gap: 0; }
.viz-control {
  display: grid; gap: var(--space-2);
  padding: 10px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, color-mix(in oklab, var(--color-primary-soft) 34%, #fff), var(--color-surface-offset));
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.viz-control:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-primary) 14%, transparent);
}
.viz-control__body { display: grid; grid-template-columns: minmax(0, 360px) 132px; justify-content: center; gap: var(--space-3); align-items: stretch; }
.wiz-step:has(.viz-control) { gap: 8px; }
.viz-control__stage {
  position: relative; height: 100px; border-radius: var(--radius-sm);
  overflow: hidden; cursor: ns-resize; touch-action: none;
  background: linear-gradient(180deg, #eef6ff 0%, #dbeafe 100%);
  box-shadow: inset 0 0 0 1px rgba(63, 114, 175, 0.12);
  user-select: none; -webkit-user-select: none;
}
.viz-control__stage[data-axis="x"] { cursor: ew-resize; }
.viz-control__stage:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.viz-control__stage svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.viz-control__hint {
  position: absolute; left: 8px; bottom: 5px; z-index: 1;
  font-size: 10px; line-height: 1; color: #6b8cb4; pointer-events: none; white-space: nowrap;
}
.viz-control__panel { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.viz-control__label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }
.viz-control__value { font-size: var(--text-xl); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--color-primary); }
.viz-control__note { min-height: 1.2em; font-size: 10px; line-height: 1.2; color: var(--color-text-faint); }
/* Место под подпись сохраняем всегда: иначе окно «дышит» при смене угла */
.viz-control__note:empty { visibility: hidden; }
.viz-control .qty-input { width: 100%; max-width: none; }
.viz-control .qty-input button { width: 34px; min-height: 42px; font-size: var(--text-lg); }
.viz-control .qty-input input { padding: 0.6rem 0; font-size: 1rem; }
.viz-control .qty-input span { padding-inline: 6px; font-size: 10px; }
/* Готовые пресеты рядом с «живым» контролом: можно тянуть и просто выбрать. */
.viz-presets { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.viz-preset {
  padding: 6px 10px; border: 1px solid var(--color-border); border-radius: 999px;
  background: var(--color-surface-offset); color: var(--color-text-muted);
  font: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}
.viz-preset:hover { border-color: var(--color-primary); color: var(--color-primary); }
.viz-preset.is-active { border-color: var(--color-primary); background: var(--color-primary-soft); color: var(--color-primary); }
.viz-preset:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.viz-presets--angle .viz-preset { padding: 5px 7px; font-size: 11px; }

.viz-art__ground { stroke: #b9cde3; stroke-width: 2; stroke-linecap: round; fill: none; }
.viz-art__wall { fill: #eaf2fb; stroke: #c7d9ec; stroke-width: 1.2; }
.viz-art__hatch { fill: none; stroke: #c7d9ec; stroke-width: 1; }
.viz-art__tower { fill: #eef5fd; stroke: #c7d9ec; stroke-width: 1.2; }
.viz-art__window { fill: #f8fcff; stroke: #c7d9ec; stroke-width: 1; }
.viz-art__roof { stroke: #8aa7c6; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.viz-art__arc { fill: color-mix(in oklab, var(--color-primary) 15%, transparent); stroke: color-mix(in oklab, var(--color-primary) 42%, transparent); stroke-width: 1; }
.viz-art__angle { fill: var(--color-primary); font-size: 11px; font-weight: 700; }
.viz-art__snow { fill: #ffffff; stroke: #b9d6f6; stroke-width: 1; }
.viz-art__ice { fill: rgba(147, 211, 255, 0.78); stroke: #79b8e8; stroke-width: 1; }
.viz-art__icicle { fill: none; stroke: #8cc8f0; stroke-width: 3; stroke-linecap: round; }
.viz-art__flake { fill: #c6ddf5; }
.viz-art__measure { stroke: #9cc0e6; stroke-width: 1.2; stroke-dasharray: 3 3; }
.viz-art__glass { fill: rgba(116, 186, 255, 0.42); stroke: #6fa9e5; stroke-width: 1.6; }
.viz-art__reflect { fill: none; stroke: #ffffff; stroke-width: 3; stroke-linecap: round; opacity: 0.75; }
.viz-art__facade-base { fill: none; stroke: #9fbdd9; stroke-width: 3; stroke-linecap: round; }
.viz-art__pivot { fill: var(--color-primary); }
.viz-art__handle-line { stroke: var(--color-primary); stroke-width: 1.2; stroke-dasharray: 4 4; opacity: 0.55; }
.viz-control__handle { transition: transform 90ms linear; filter: drop-shadow(0 2px 3px rgba(31, 79, 138, 0.22)); }
.viz-control__stage.is-dragging .viz-control__handle { transition: none; }
.viz-control__handle circle { fill: #ffffff; stroke: var(--color-primary); stroke-width: 2; }
.viz-control__handle path { fill: none; stroke: var(--color-primary); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* option-карточки */
.opt-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.opt-cards--sm { grid-template-columns: repeat(2, 1fr); }
.opt-cards--wrap { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.opt-card { position: relative; display: flex; align-items: center; gap: 0.6rem; padding: var(--space-4); border: 1.5px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; transition: border-color 180ms ease, background 180ms ease, transform 180ms ease; }
.opt-card:hover { border-color: var(--color-primary); }
.opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.opt-card__label, .opt-card span { font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); }
.opt-card--sm { padding: var(--space-3); justify-content: center; }
.opt-card:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-soft); }
.opt-card:has(input:checked) span, .opt-card:has(input:checked) .opt-card__label { color: var(--color-primary); }

/* Карточки с иллюстрациями вариантов */
.opt-card__art {
  flex: none; width: 44px; height: 30px; display: grid; place-items: center;
  color: var(--color-primary); opacity: 0.92;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease;
}
.opt-card__art svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.opt-card:hover .opt-card__art { transform: translateY(-1px) scale(1.04); }
.opt-card:has(input:checked) .opt-card__art { opacity: 1; transform: scale(1.06); }
.opt-card:has(input:checked) .opt-card__art svg { stroke-width: 2.2; }
.opt-cards--service { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt-card--service { padding: 10px 12px; gap: 10px; }
.opt-card--service .opt-card__label { font-size: var(--text-sm); line-height: 1.25; }
.opt-card--sm .opt-card__art { width: 38px; height: 25px; }
/* Три равных варианта в один ряд: компактно и без «прыжка» высоты */
.opt-cards--choice { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.opt-card--choice { flex-direction: column; gap: 3px; padding: 5px 6px 6px; text-align: center; }
.opt-card--choice .opt-card__art { width: 40px; height: 25px; }
.opt-card--choice .opt-card__label { font-size: 11px; line-height: 1.2; font-weight: 600; }

/* Результат */
.result-box { text-align: center; padding: 0 0 var(--space-1); }
.result-box__label { font-size: var(--text-sm); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.result-box__price { margin-top: var(--space-2); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; color: var(--color-primary); }
.result-box__context, .result-box__next { margin: var(--space-2) auto 0; max-width: 48ch; font-size: var(--text-sm); color: var(--color-text-muted); }
.result-box__disclaimer { margin: var(--space-3) auto 0; max-width: 48ch; font-size: var(--text-xs); color: var(--color-text-faint); }
.result-box__cta { margin-top: var(--space-4); display: flex; flex-direction: row; gap: var(--space-3); align-items: stretch; }
.result-box__cta > .btn { flex: 1; min-width: 0; }
.result-box .btn-link { margin-top: var(--space-1); }
@media (max-width: 640px) { .result-box__cta { flex-direction: column; } }

/* ---------- Мобильная нижняя панель: контакт + скрытие на результате ---------- */
.mobilebar__btn--wa { color: #075e54; }
.mobilebar__btn--wa svg { color: #25d366; }
.mobilebar__btn--primary { color: var(--color-primary-contrast); background: linear-gradient(135deg, var(--color-primary-2), var(--color-primary)); }
.mobilebar__btn--primary span:first-child { font-size: 1.2rem; line-height: 1; }
.mobilebar__btn--phone { display: none; }

/* ---------- Mobile menu button ---------- */
.nav-toggle { width: 42px; height: 42px; border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-surface); position: relative; }
.nav-toggle::before, .nav-toggle::after { content: ''; position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--transition-interactive), top var(--transition-interactive); }
.nav-toggle::before { top: 16px; box-shadow: 0 7px 0 currentColor; }
.nav-toggle::after { top: 23px; opacity: 0; }
.nav-toggle[aria-expanded='true']::before { top: 20px; transform: rotate(45deg); box-shadow: none; }
.nav-toggle[aria-expanded='true']::after { top: 20px; opacity: 1; transform: rotate(-45deg); }

/* ---------- Реальные фото в секциях (доверие) ---------- */
.section-media { margin-top: var(--space-10); max-width: 860px; margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-md); background: var(--color-surface-offset-2); }
.section-media img { width: 100%; height: auto; display: block; aspect-ratio: 3 / 2; object-fit: cover; }
.section-media figcaption { padding: var(--space-3) var(--space-4); font-size: var(--text-sm); color: #475569; line-height: 1.5; }
.section-media + .facts-grid { margin-top: var(--space-10); }
.lead-step, .task-step { display: grid; gap: var(--space-4); }
.field--upload { position: relative; padding: var(--space-4); border: 1px dashed var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-offset); }
.field--upload > span { font-size: var(--text-sm); font-weight: 700; color: var(--color-text); }
.field--upload input[type="file"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.field__upload-picker { display: inline-flex; width: max-content; align-items: center; margin-top: var(--space-2); padding: 0.55rem 0.85rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-text); background: var(--color-surface-solid); font-size: var(--text-sm); font-weight: 600; cursor: pointer; }
.field--upload input[type="file"]:focus-visible + .field__upload-picker { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.field--upload small { color: var(--color-text-faint); font-size: var(--text-xs); font-weight: 400; letter-spacing: 0; text-transform: none; }
.upload-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-2); margin-top: var(--space-2); }
.upload-chip { display: flex; align-items: center; gap: 0.6rem; min-width: 0; padding: 0.4rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface-solid); }
.upload-chip__thumb, .upload-chip__icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--color-surface-offset); }
.upload-chip__icon { display: flex; align-items: center; justify-content: center; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.02em; color: var(--color-text-muted); }
.upload-chip__meta { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 0.1rem; }
.upload-chip__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-xs); font-weight: 600; color: var(--color-text); }
.upload-chip__size { font-size: 0.68rem; color: var(--color-text-faint); }
.upload-chip__remove { flex: 0 0 auto; width: 28px; height: 28px; min-width: 28px; min-height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--color-text-muted); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.upload-chip__remove:hover { background: var(--color-surface-offset); color: var(--color-danger, #ef4444); }
.upload-chip__remove:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .task-grid { grid-template-columns: repeat(2, 1fr); }
  .task-card, .task-card:nth-child(n + 4) { grid-column: span 1; }
  .nav__has-sub .nav__sub { position: static; display: none; min-width: 0; box-shadow: none; border: none; padding-left: 0.75rem; }
  .nav__has-sub:hover .nav__sub { display: none; }
  .nav__has-sub.nav__has-sub--open .nav__sub { display: block; opacity: 1; visibility: visible; transform: none; }
}
@media (max-width: 720px) {
  .header__call { display: none; }
  .nav--open .nav__links { width: 100%; align-items: stretch; }
  .nav--open .nav__links > li { width: 100%; }
  .nav--open .nav__links > li > a, .nav--open .nav__links > li > button { display: flex; width: 100%; justify-content: flex-start; text-align: left; }
  .nav--open .nav__has-sub { display: flex; flex-direction: column; align-items: stretch; }
  .nav--open .nav__sub-toggle::after { margin-left: auto; }
  .cards-grid { grid-template-columns: 1fr; }
  .opt-cards { grid-template-columns: 1fr; }
  .opt-cards--sm { grid-template-columns: 1fr 1fr; }
  .opt-cards--service { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opt-cards--choice { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .opt-card--service { padding: 8px 10px; gap: 8px; }
  .opt-card--service .opt-card__art { width: 32px; height: 22px; }
  .opt-card--service .opt-card__label { font-size: 12px; }
  .hero { min-height: auto; }
  .hero__cta .btn { flex: 1 1 220px; }
  .cta-box { padding: var(--space-6); }
  .wizard { padding: var(--space-5); }
  .task-grid { grid-template-columns: 1fr; }
  .task-card, .task-card:nth-child(n + 4) { grid-column: 1; min-height: 136px; }
  .lead-form__actions, .task-form__actions { align-items: stretch; flex-direction: column; }
  .lead-form__actions .btn, .task-form__actions .btn { width: 100%; }
  .lead-form__actions .btn { flex: 0 0 auto; }
  .task-form__actions .btn-primary { margin-left: 0; }
  .modal__success-actions { flex-direction: column; }
  .task-flow-choice__grid { grid-template-columns: 1fr; }
  .modal--calculator .modal__panel { max-width: 100%; }
  /* На телефоне не размываем весь экран под модалкой и не анимируем
     height мастера: и то и другое — дорогая перерисовка на каждом кадре. */
  .modal__overlay {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .wizard.is-animating { transition: none; }
}
@media (max-width: 540px) {
  .facts-grid { grid-template-columns: 1fr; }
  .opt-cards--sm { grid-template-columns: 1fr 1fr; }
  .opt-card--choice .opt-card__label { font-size: 10.5px; }
  .opt-card__art { width: 36px; height: 25px; }
  .select-preview { width: 64px; }
  .task-flow-option { grid-template-columns: 40px minmax(0, 1fr) 16px; column-gap: var(--space-3); }
  /* На узких экранах 2rem паддинга оставляли слишком мало места контенту */
  .modal { padding: 0.75rem; }
  .modal__panel { padding: var(--space-5); }
  .modal__title, .modal__lead { padding-right: 2.25rem; }
  .wizard__art { width: 60px; height: 46px; }
  .wizard__art svg { width: 50px; height: 38px; }
  .wizard__nav .btn { flex: 1 1 0; min-width: 0; }
  .wizard__nav .btn-primary { margin-left: 0; }
  .wizard__nav .btn-ghost { margin-right: 0; }
}

/* Правовая информация */
.legal { padding: var(--space-12, 64px) 0; }
.legal__lead { max-width: 70ch; color: var(--color-muted, #64748b); }
.legal details { border-top: 1px solid rgba(148,163,184,.25); padding: 12px 0; }
.legal details:last-child { border-bottom: 1px solid rgba(148,163,184,.25); }
.legal summary { cursor: pointer; font-weight: 700; list-style-position: inside; }
.legal__body { max-width: 85ch; color: var(--color-muted, #475569); font-size: var(--text-sm, 14px); line-height: 1.6; }
.legal__body p { margin: 10px 0; }
.legal__body a { color: var(--color-primary, #2563eb); }
.legal__version { opacity: .7; font-size: 12px; }
.footer__legal a { color: inherit; text-decoration: underline; margin-right: 4px; }

/* Юридические вставки на главной */
.legal-strip { margin-top: var(--space-10, 48px); padding: 18px 0; border-top: 1px solid rgba(148,163,184,.25); color: #475569; font-size: 14px; line-height: 1.65; }
.legal-strip p { margin: 4px 0; }
.legal-strip a, .price-note a, .result-box__disclaimer a { color: var(--color-accent-text); text-decoration: underline; text-underline-offset: 3px; }
.price-note { margin-top: 14px; font-size: 13px; color: #475569; line-height: 1.55; }

/* ============================================================
   ДОВЕРИЕ / ГАЛЕРЕЯ / LIGHTBOX / МОБИЛЬНЫЙ НИЗ
   ============================================================ */
/* Блок «Что гарантируем» — пункты редактируются из админки. */
.trust-list { list-style: none; margin: var(--space-8) 0 0; padding: var(--space-6); display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); border-radius: var(--radius-lg); }
.trust-list li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: var(--text-sm); color: var(--color-text); line-height: 1.5; }
.trust-list li::before { content: ''; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--color-primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a5d9e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E") center/13px no-repeat; }
.trust-head { margin: var(--space-10) 0 0; font-size: var(--text-xl); }

/* Галерея: кликабельные фото с подписью и увеличивающим стеком. */
.work-item { position: relative; margin: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--color-surface-offset-2); }
.work-item__link { display: block; position: relative; }
.work-item__link::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(10,17,32,.82) 100%); opacity: 0; transition: opacity var(--transition-interactive); }
.work-item:hover .work-item__link::after,
.work-item:focus-within .work-item__link::after { opacity: 1; }
.work-item__zoom { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(10,17,32,.62); color: #fff; font-size: 18px; line-height: 1; opacity: 0; transition: opacity var(--transition-interactive); }
.work-item:hover .work-item__zoom,
.work-item:focus-within .work-item__zoom { opacity: 1; }
.work-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 12px 14px; color: #fff; font-size: var(--text-sm); line-height: 1.4; opacity: 0; transition: opacity var(--transition-interactive); }
.work-item:hover figcaption,
.work-item:focus-within figcaption { opacity: 1; }
@media (hover: none) {
  .work-item__link::after, .work-item figcaption { opacity: 1; }
  .work-item__zoom { display: none; }
}

/* Полноэкранный просмотр фото. */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(6,12,22,.92); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(100%, 1400px); max-height: 82vh; object-fit: contain; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox__close:hover { background: rgba(255,255,255,.26); }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; color: #e6edf6; font-size: var(--text-sm); padding: 0 24px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 28px; cursor: pointer; }
.lightbox__nav:hover { background: rgba(255,255,255,.26); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

/* Нижняя мобильная панель не должна перекрывать футер. */
@media (max-width: 720px) {
  .mobilebar ~ * { padding-bottom: 0; }
  .footer { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 721px) { .mobilebar { display: none !important; } }

.footer__title { font-size: var(--text-base); font-weight: 800; margin: 0 0 var(--space-3); text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-inverse); }
.contact-hours { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-text-faint); line-height: 1.5; }

@media (max-width: 600px) {
  .trust-list { grid-template-columns: 1fr; }
  .trust-head { margin-top: var(--space-8); }
}

/* Спрайт калькулятора: раньше позиционировался инлайновым style="" */
.wizard-art-sprite { position:absolute; overflow:hidden; }

/* Скрытый пиксель Метрики для noscript — без inline style (CSP style-src 'self'). */
.metrika-noscript { position:absolute; left:-9999px; }
