/* ==================================================================
   СТРОЙ-ДИЗАЙН — справочник по стилям интерьера
   1. Токены, сброс, типографика, контейнер, кнопки, формы
================================================================== */

/* Атрибут hidden обязан скрывать: правило класса с display перебивает
   браузерное [hidden]{display:none}, и скрытый блок остаётся видимым. */
[hidden] { display: none !important; }

:root {
  /* Палитра — кремовая с зелёным подтоном */
  --bg:       #FAFBF5;
  --bg-warm:  #F0EEE0;
  --bg-mute:  #F5F5EF;
  --sand:     #D9D6BF;
  --green:    #013D2D;
  --green-2:  #014634;
  --ink:      #14140F;
  --ink-2:    #4A4A42;
  --btn:      #000000;
  --rule:     #DCDBCE;
  --rule-2:   #C9C7B6;
  --img-ph:   #F5F5F5;
  /* Скрим под текстом фотополос: середина, где лежат заголовок и лид,
     затемнена сильнее краёв. Плоская заливка .35 не давала белому тексту
     контраста на светлых кадрах, а равномерное усиление пачкало тёмные. */
  --overlay:  linear-gradient(180deg,
                rgba(20, 20, 15, .20) 0%,
                rgba(20, 20, 15, .66) 42%,
                rgba(20, 20, 15, .66) 62%,
                rgba(20, 20, 15, .20) 100%);

  /* Шрифты */
  --f-display: "Manrope","Golos Text","Arial",sans-serif;
  --f-text:    "Manrope","Golos Text","Arial",sans-serif;
  --f-caps:    'Archivo', 'Helvetica Neue', Arial, Helvetica, sans-serif;

  /* Сетка */
  --container: 1240px;
  --pad:       80px;
  --measure:   620px;
  --measure-l: 720px;
  --sec:       120px;
  --gap:       32px;
  --hdr-top:   64px;
  --hdr-main:  72px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; background: var(--img-ph); }

a { color: inherit; text-decoration: none; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
  margin: 0;
}

button { background: none; border: 0; padding: 0; cursor: pointer; }

table { border-collapse: collapse; width: 100%; }

em, i { font-style: italic; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--green);
  color: var(--bg);
  padding: 12px 20px;
  font-family: var(--f-caps);
  font-size: 11px;
  letter-spacing: .16em;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------------
   Типографика
------------------------------------------------------------------ */

.h-display,
h1.h-display,
.page-head__h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.h-sec {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.h-sub {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.h-card {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.22;
  letter-spacing: -0.005em;
}

.kicker {
  font-family: var(--f-caps);
  font-weight: 600;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.meta {
  font-family: var(--f-caps);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.caps-band {
  font-family: var(--f-caps);
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.25;
}

.lede {
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}

.card__lede {
  font-family: var(--f-text);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

.prose p + p { margin-top: 20px; }
.prose a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-color: var(--ink); }

/* ------------------------------------------------------------------
   Контейнер и ритм
------------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.measure { max-width: var(--measure); }
.measure--c { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.measure--l { max-width: var(--measure-l); }

.section { padding-top: var(--sec); padding-bottom: var(--sec); }
.section--tight { padding-top: 88px; padding-bottom: 88px; }
.section--warm { background: var(--bg-warm); }
.section--mute { background: var(--bg-mute); }

.sec-head { margin-bottom: 48px; }
.sec-head--c { text-align: center; }
.sec-head .kicker + .h-sec,
.sec-head .kicker + .h-display { margin-top: 12px; }
.sec-head .h-sec + .lede,
.sec-head .h-display + .lede { margin-top: 24px; }
.sec-head .lede + .btn,
.sec-head .h-sec + .btn { margin-top: 32px; }

.hr { height: 1px; background: var(--rule); border: 0; }
.hr--short { width: 220px; margin: 0 auto; }

/* ------------------------------------------------------------------
   Кнопки — border-radius: 0 везде
------------------------------------------------------------------ */

.btn {
  display: inline-block;
  border: 0;
  border-radius: 0;
  font-family: var(--f-caps);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1;
  padding: 15px 30px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .1s ease;
  text-align: center;
}

.btn--primary { background: var(--btn); color: var(--bg); }
.btn--primary:hover { background: var(--green); }
.btn--primary:active { transform: translateY(1px); }

.btn--cta { background: var(--green); color: var(--bg); padding: 14px 26px; }
.btn--cta:hover { background: var(--btn); }
.btn--cta:active { transform: translateY(1px); }

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-2);
  padding: 14px 29px;
}
.btn--secondary:hover { border-color: var(--ink); }
.btn--secondary:active { transform: translateY(1px); }

.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: var(--green); color: var(--bg); }

.btn--wide {
  display: block;
  width: 100%;
  height: 56px;
  line-height: 26px;
  padding: 15px 30px;
}

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

/* Tertiary — основной «читать дальше» */
.link-more {
  font-family: var(--f-text);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: var(--rule-2);
  transition: text-decoration-color .2s ease, text-underline-offset .2s ease;
}
.link-more:hover { text-decoration-color: var(--ink); text-underline-offset: 3px; }
.link-more--light { color: var(--bg); text-decoration-color: rgba(250, 251, 245, .55); }
.link-more--light:hover { text-decoration-color: var(--bg); }
.link-more__arw { font-style: normal; }

/* Круглые стрелки каруселей — единственные круги на сайте */
.carousel-nav { display: flex; gap: 12px; }
.arrow {
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: transparent;
  transition: border-color .2s ease, opacity .2s ease;
}
.arrow:hover { border-color: var(--ink); }
.arrow[disabled] { opacity: .35; cursor: default; }
.arrow[disabled]:hover { border-color: var(--rule); }

.slide-counter {
  font-family: var(--f-caps);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--ink-2);
  text-align: center;
  margin-bottom: 28px;
}

/* ------------------------------------------------------------------
   Формы
------------------------------------------------------------------ */

.field { display: block; }
.field__label {
  display: block;
  font-family: var(--f-caps);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.field__input,
.field__area {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 10px 0;
  font-family: var(--f-text);
  font-size: 16px;
  color: var(--ink);
  transition: border-color .2s ease;
}
.field__area { min-height: 120px; resize: vertical; }
.field__input::placeholder,
.field__area::placeholder { color: #9C9B8E; }
.field__input:hover,
.field__area:hover { border-bottom-color: var(--rule-2); }
.field__input:focus,
.field__area:focus { outline: none; border-bottom-color: var(--ink); }

.field + .field { margin-top: 28px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--f-text);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  cursor: pointer;
}
.check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 3px;
  border: 1px solid var(--rule-2);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.check input[type="checkbox"]:checked { background: var(--green); border-color: var(--green); }
.check a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.check a:hover { color: var(--ink); }

.ic { flex: 0 0 auto; }

/* ==================================================================
   2. Шапка, навигация, бургер, мобильное меню, футер
================================================================== */

.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}

/* Строка 1 */
.hdr__top {
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  max-height: var(--hdr-top);
  opacity: 1;
  transition: max-height .24s ease, opacity .24s ease;
}
.hdr__top-in {
  height: var(--hdr-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.hdr__city,
.hdr__sitemap {
  font-family: var(--f-caps);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
  flex: 1 1 0;
  white-space: nowrap;
}
.hdr__sitemap { text-align: right; transition: color .2s ease; }
.hdr__sitemap:hover { color: var(--ink); }

.hdr__logo {
  flex: 0 0 auto;
  font-family: var(--f-caps);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .30em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

/* Строка 2 */
.hdr__main { border-bottom: 1px solid var(--rule); }
.hdr__main-in {
  height: var(--hdr-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hdr__left { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; }

.hdr__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-caps);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .2s ease;
}
.hdr__toggle:hover { color: var(--green); }
.hdr__toggle .ic { transition: transform .24s ease; }
.hdr__toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }

.hdr__burger { display: none; color: var(--ink); }

.hdr__logo-mini {
  display: none;
  flex: 0 0 auto;
  font-family: var(--f-caps);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

/* Шапка тянется шире текстового контейнера: восемь пунктов меню серифом
   не помещаются в 1240px рядом с переключателем и CTA. */
.hdr .container { max-width: 1440px; }

.hdr__nav { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.hdr__nav-list { display: flex; align-items: center; gap: 20px; }
.hdr__nav-item { flex: 0 0 auto; }
.hdr__nav-link {
  font-family: var(--f-text);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  white-space: nowrap;
  text-decoration: none;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color .2s ease;
}
.hdr__nav-link:hover { text-decoration: underline; text-decoration-color: var(--rule-2); }
.hdr__nav-link.is-active { text-decoration: underline; text-decoration-color: var(--ink); }

.hdr__cta { flex: 0 0 auto; white-space: nowrap; }

/* Схлопывание первой строки при скролле */
.hdr.is-stuck .hdr__top { max-height: 0; opacity: 0; border-bottom-color: transparent; }
.hdr.is-stuck .hdr__toggle { display: none; }
.hdr.is-stuck .hdr__logo-mini { display: block; }

/* Панель рубрикатора */
.rubricator {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.rubricator__in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 44px;
}
.rubricator__list { margin-top: 16px; }
.rubricator__list li + li { margin-top: 10px; }
.rubricator__list a {
  font-family: var(--f-text);
  font-size: 15px;
  color: var(--ink);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.rubricator__list a:hover { text-decoration: underline; }
.rubricator__all {
  font-family: var(--f-caps) !important;
  font-size: 10px !important;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2) !important;
  display: inline-block;
  margin-top: 6px;
}

/* Бургер-меню — полноэкранная кремовая панель */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mmenu[hidden] { display: none; }
.mmenu__bar {
  height: var(--hdr-top);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--rule);
}
.mmenu__logo {
  font-family: var(--f-caps);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.mmenu__close { color: var(--ink); padding: 8px; margin-right: -8px; }
.mmenu__nav { padding: 24px 20px 56px; }
.mmenu__kicker { margin: 28px 0 12px; }
.mmenu__kicker:first-child { margin-top: 4px; }
.mmenu__list { border-top: 1px solid var(--rule); }
.mmenu__link {
  display: block;
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1.2;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.mmenu__link.is-active { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.mmenu__cta { margin-top: 32px; display: block; }

/* ------------------------------------------------------------------
   Футер
------------------------------------------------------------------ */

.ftr { background: var(--bg); margin-top: 0; }

.ftr__rule { height: 1px; background: var(--rule); }

/* Ярус 1 — полоса подписки */
.nlbar {
  border-top: 1px solid var(--rule);
  padding: 56px 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.nlbar__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nlbar__btn { flex: 0 0 auto; }

.nlform { padding-bottom: 48px; max-width: 620px; }
.nlform[hidden] { display: none; }
.nlform__row { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.nlform__row .field { flex: 1 1 auto; }
.nlform__row .btn { flex: 0 0 auto; }

/* Ярус 2 — четыре колонки */
.ftr__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 56px 0 64px;
}
.ftr__col-title {
  font-family: var(--f-caps);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 20px;
}
.ftr__links li + li { margin-top: 12px; }
.ftr__links a {
  font-family: var(--f-text);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color .2s ease;
}
.ftr__links a:hover { color: var(--ink); text-decoration: underline; }

/* Ярус 3 — нижняя строка */
.ftr__bottom {
  border-top: 1px solid var(--rule);
  padding: 36px 0 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.ftr__meta {
  font-family: var(--f-caps);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.ftr__meta--right { text-align: right; }
.ftr__mono {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 44px;
  line-height: 1;
  color: var(--ink);
  text-align: center;
}

/* Ярус 4 — зелёная полоса 8px */
.ftr__strip { height: 8px; background: var(--green); width: 100%; }

/* ==================================================================
   3. Секции
================================================================== */

/* --- Крошки --- */
.crumbs { padding-top: 28px; padding-bottom: 48px; }
.crumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumbs__item {
  font-family: var(--f-caps);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.crumbs__item a { color: var(--ink); transition: color .2s ease; }
.crumbs__item a:hover { color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; }
/* Разделитель крошек цветом линеек на кремовом фоне давал контраст 1.34:1 —
   крошки читались как слипшийся текст. */
.crumbs__sep { color: var(--ink-2); }

/* --- page-head --- */
.page-head { text-align: center; padding: 96px 0; }
.page-head .kicker + .page-head__h1 { margin-top: 12px; }
.page-head__h1 { font-family: var(--f-display); font-weight: 400; }
.page-head__sub { margin: 24px auto 0; max-width: var(--measure); color: var(--ink-2); }

/* --- facts-strip --- */
.facts { background: var(--bg-mute); }
.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--rule);
}
.facts__cell {
  border-right: 1px solid var(--rule);
  padding: 44px 24px;
  text-align: center;
}
.facts__num {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  color: var(--ink);
}
.facts__label { margin-top: 12px; }
.facts--3 .facts__grid { grid-template-columns: repeat(3, 1fr); }

/* --- Карточки --- */
.card { display: block; }
.card__media {
  overflow: hidden;
  background: var(--img-ph);
  aspect-ratio: 4 / 3;
}
.card__media img,
.card__media .ph { width: 100%; height: 100%; object-fit: cover; }
.card__media img { transition: transform .6s ease-out; }
.card:hover .card__media img { transform: scale(1.03); }
.card--portrait .card__media { aspect-ratio: 3 / 4; }
.card__kicker { margin-top: 16px; }
.card__title { margin-top: 8px; font-family: var(--f-display); font-weight: 400; font-size: 20px; line-height: 1.22; }
.card__title--sm { font-size: 18px; }
.card__lede { margin-top: 6px; }
.card__lede--2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-clamp: 2; overflow: hidden; }
.card__lede--3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-clamp: 3; overflow: hidden; }
.card__cta { margin-top: 16px; display: inline-block; }
.card:hover .link-more { text-decoration-color: var(--ink); }

/* Карточка-документ без изображения */
.doccard {
  min-height: 240px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: var(--sand);
  color: var(--ink);
}
.doccard--green { background: var(--green); color: var(--bg); }
.doccard--green2 { background: var(--green-2); color: var(--bg); }
.doccard--green .kicker,
.doccard--green2 .kicker { color: rgba(250, 251, 245, .78); }
.doccard__title {
  margin-top: 12px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
}
.doccard__lede { margin-top: 12px; font-size: 14px; line-height: 1.55; opacity: .86; }
.doccard__link { margin-top: auto; padding-top: 24px; }

/* --- styles-grid / articles-grid --- */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }

/* --- Карусель с подрезкой --- */
.carousel { position: relative; }
.carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-left: calc(-1 * var(--pad));
  margin-right: calc(-1 * var(--pad));
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__track { display: flex; gap: var(--gap); padding-bottom: 4px; }
.carousel__item { flex: 0 0 300px; scroll-snap-align: center; }
.carousel__item--wide { flex: 0 0 min(760px, 78vw); }
.carousel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.carousel .carousel-nav { flex: 0 0 auto; }

/* Точки-штрихи */
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.dots__item { width: 22px; height: 1px; background: var(--rule-2); border-radius: 0; transition: background-color .2s ease; }
.dots__item.is-active { background: var(--ink); }

/* --- gallery-carousel --- */
.gal__figure { margin: 0; }
.gal__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gal__cap { margin-top: 12px; }

/* --- photo-band --- */
.band {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after { content: ''; position: absolute; inset: 0; background: var(--overlay); z-index: -1; }
.band__in { text-align: center; color: #fff; padding: 80px var(--pad); width: 100%; max-width: var(--container); }
.band__title { color: #fff; }
.band__lede { margin: 20px auto 0; max-width: var(--measure); color: rgba(255, 255, 255, .92); font-size: 17px; line-height: 1.7; }
.band__btn { margin-top: 32px; }
.band__wide { position: absolute; left: 0; right: 0; bottom: 0; background: var(--btn); color: var(--bg); }
.band__wide:hover { background: var(--green); }

.band--sm { min-height: 480px; }
.band--hero { min-height: 700px; }
.band--style { min-height: 620px; }

/* --- hero-slider --- */
.hero { position: relative; }
.hero__slides { position: relative; }
.hero__slide { display: none; }
.hero__slide.is-active { display: flex; }
.hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(250, 251, 245, .9);
}
.hero__nav--prev { left: 24px; }
.hero__nav--next { right: 24px; }
.hero__counter { padding: 28px 0 0; margin-bottom: 0; }

/* --- intro-lede --- */
.intro { text-align: center; }
.intro .h-sec { margin-top: 12px; }
.intro__text { margin: 24px auto 0; max-width: var(--measure); }
.intro__text p + p { margin-top: 20px; }
.intro__btn { margin-top: 32px; }

/* --- rubricator-split / text-media --- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.split__media { position: relative; min-height: 520px; background: var(--img-ph); }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__panel {
  background: var(--bg-warm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 88px clamp(32px, 6vw, 88px);
}
.split__list { margin-top: 32px; border-top: 1px solid var(--rule); }
.split__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.split__row-title {
  font-family: var(--f-display);
  font-size: 20px;
  line-height: 1.2;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  text-decoration: underline;
  text-decoration-color: var(--rule-2);
  transition: text-decoration-color .2s ease;
}
.split__row:hover .split__row-title { text-decoration-color: var(--ink); }
.split__row-count { flex: 0 0 auto; }

/* text-media: чередование */
.tm { display: grid; grid-template-columns: 48% 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.tm + .tm { margin-top: 96px; }
.tm__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tm__body .h-sub { margin-top: 12px; }
.tm__body p { margin-top: 20px; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.tm__list { margin-top: 20px; }
.tm__list li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}
.tm__list li + li { margin-top: 10px; }
.tm__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 12px;
  height: 1px;
  background: var(--ink-2);
}
.tm--rev .tm__media { order: 2; }
.tm--rev .tm__body { order: 1; }

/* --- tabs --- */
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 16px;
  margin-bottom: 48px;
}
.tabs__btn {
  font-family: var(--f-caps);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.tabs__btn:hover { color: var(--ink); }
.tabs__btn[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs__panel[hidden] { display: none; }

/* --- accordion --- */
.acc { border-top: 1px solid var(--rule); }
.acc__item { border-bottom: 1px solid var(--rule); }
.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  text-align: left;
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink);
}
.acc__btn:hover { color: var(--green); }
.acc__ic { flex: 0 0 auto; color: var(--ink-2); transition: transform .24s ease; }
.acc__btn[aria-expanded="true"] .acc__ic { transform: rotate(45deg); }
.acc__panel { overflow: hidden; height: 0; transition: height .24s ease; }
.acc__panel-in { padding: 0 0 24px; max-width: var(--measure); font-size: 16px; line-height: 1.7; color: var(--ink-2); }

/* --- toc --- */
.toc { display: grid; grid-template-columns: minmax(0, var(--measure)) 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.toc__list { border-top: 1px solid var(--rule); }
.toc__item { display: flex; align-items: baseline; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.toc__num { flex: 0 0 auto; }
.toc__link {
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.4;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.toc__link:hover { text-decoration: underline; }
.toc__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* Две колонки оглавления выравниваются по высоте: портрет 3/4 был вдвое выше
   короткого списка и оставлял под ним пустое пятно на всю высоту секции.
   Ниже 1024px сетка одноколоночная — там правило не нужно. */
@media (min-width: 1025px) {
  .toc { align-items: stretch; }
  .toc__media { position: relative; min-height: 320px; }
  .toc__media img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}

/* --- news-list --- */
.newslist { border-top: 1px solid var(--rule); }
.newslist__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.newslist__date { padding-top: 5px; }
.newslist__title {
  font-family: var(--f-display);
  font-size: 20px;
  line-height: 1.25;
  color: var(--ink);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.newslist__row:hover .newslist__title { text-decoration: underline; }
.newslist__lede { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }

.yearjump { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 40px; }
.yearjump__item {
  font-family: var(--f-caps);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 0 18px;
  border-right: 1px solid var(--rule);
  transition: color .2s ease;
}
.yearjump__item:first-child { padding-left: 0; }
.yearjump__item:last-child { border-right: 0; }
.yearjump__item:hover { color: var(--ink); }
.yearjump__item.is-active { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* --- pagination --- */
.pager { margin-top: 64px; text-align: center; }
.pager__more { display: inline-block; }
.pager__row { margin-top: 32px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pager__num {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-text);
  font-size: 15px;
  color: var(--ink-2);
  transition: color .2s ease;
}
.pager__num:hover { color: var(--ink); }
.pager__num[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.pager__arrow {
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: border-color .2s ease;
}
.pager__arrow:hover { border-color: var(--ink); }
.pager__arrow[disabled] { opacity: .35; }

/* --- related-strip --- */
.related { border-top: 1px solid var(--rule); padding-top: 40px; }
.related__grid { margin-top: 32px; }

/* --- Таблицы --- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { min-width: 640px; }
.tbl thead th {
  background: var(--sand);
  font-family: var(--f-caps);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: left;
  padding: 14px 20px;
}
.tbl td {
  font-family: var(--f-text);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.tbl td:first-child { white-space: nowrap; }
.tbl td:last-child { color: var(--ink-2); }

/* Плашка-примечание */
.notice { background: var(--bg-warm); padding: 40px clamp(24px, 4vw, 48px); }
.notice__text { margin-top: 12px; font-family: var(--f-display); font-size: 20px; line-height: 1.4; max-width: 760px; }
.notice__date { margin-top: 16px; }

/* --- style-facts, palette, checklist --- */
.facts-tbl { border-top: 1px solid var(--rule); }
.facts-tbl__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.facts-tbl__val { font-family: var(--f-text); font-size: 16px; line-height: 1.5; }

.palette { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.palette__sw { height: 120px; border-radius: 0; }
.palette__name { margin-top: 12px; }
.palette__hex { font-family: var(--f-text); font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.palette__cell { padding-right: 16px; }

.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; }
.checklist__item { display: flex; gap: 16px; }
.checklist__num { flex: 0 0 auto; padding-top: 4px; font-size: 11px; letter-spacing: .18em; }
.checklist__text { font-family: var(--f-text); font-size: 16px; line-height: 1.6; }

/* --- Статья --- */
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.article__meta-dot { color: var(--ink-2); }
.article__h1 { margin-top: 16px; text-align: left; font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.14; }
.article__body { max-width: var(--measure); }
.article__body p { font-size: 17px; line-height: 1.7; }
.article__body p + p { margin-top: 20px; }
.article__body h2 { font-family: var(--f-display); font-weight: 400; font-size: 28px; line-height: 1.2; margin-top: 56px; }
.article__body h2 + p { margin-top: 20px; }
.article__body ul { margin-top: 20px; }
.article__body ul li { position: relative; padding-left: 22px; line-height: 1.7; }
.article__body ul li + li { margin-top: 8px; }
.article__body ul li::before { content: ''; position: absolute; left: 0; top: 14px; width: 12px; height: 1px; background: var(--ink-2); }
.article__quote {
  margin: 40px 0;
  padding-left: 28px;
  border-left: 1px solid var(--rule);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
}
.article__figure { margin: 48px 0; }
.article__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article__figcap { margin-top: 12px; }

.share { border-top: 1px solid var(--rule); margin-top: 56px; padding-top: 24px; display: flex; align-items: center; gap: 24px; }
.share__links { display: flex; gap: 18px; }
.share__link { color: var(--ink); transition: color .2s ease; }
.share__link:hover { color: var(--green); }

/* --- featured-article --- */
.feat { display: grid; grid-template-columns: 58% 1fr; align-items: stretch; }
.feat__media { position: relative; min-height: 420px; background: var(--img-ph); }
.feat__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat__panel { background: var(--bg-warm); padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.feat__title { margin-top: 12px; font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 3vw, 32px); line-height: 1.18; }
.feat__lede { margin-top: 16px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.feat__link { margin-top: 32px; }

/* --- rubric-intro соседние разделы --- */
.siblings { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 32px; }
.siblings__link {
  font-family: var(--f-caps);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 0 18px;
  border-right: 1px solid var(--rule);
  transition: color .2s ease;
}
.siblings__link:last-child { border-right: 0; }
.siblings__link:hover { color: var(--ink); }

/* --- faq-groups --- */
.faqgroup + .faqgroup { margin-top: 72px; }
.faqgroup__head { text-align: center; margin-bottom: 40px; }
.faqgroup__head .h-sub { margin-top: 12px; }
.faqgroup__sep { margin: 72px auto; }

/* --- principles --- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); }
.principles__col { padding: 0 clamp(20px, 3vw, 40px); border-right: 1px solid var(--rule); }
.principles__col:first-child { padding-left: 0; }
.principles__col:last-child { border-right: 0; padding-right: 0; }
.principles__col .h-card { margin-top: 12px; font-size: 22px; }
.principles__col p { margin-top: 16px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }

/* --- Контакты --- */
.contact-card { border: 1px solid var(--rule); padding: clamp(24px, 4vw, 48px); }
.contact-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 40px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--rule-2);
  border-radius: 0;
  padding: 8px 14px;
  font-family: var(--f-caps);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}
.contact-card__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-card__addr { font-family: var(--f-display); font-size: 20px; line-height: 1.4; margin-top: 10px; }
.contact-card__email { font-family: var(--f-text); font-size: 18px; margin-top: 10px; text-underline-offset: 5px; text-decoration-thickness: 1px; text-decoration: underline; text-decoration-color: var(--rule-2); }
.contact-card__email:hover { text-decoration-color: var(--ink); }
.contact-card__block + .contact-card__block { margin-top: 32px; }
.contact-card__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.hours { margin-top: 12px; display: grid; grid-template-columns: repeat(7, 1fr); }
.hours__day { text-align: center; padding-bottom: 8px; }
.hours__val {
  background: var(--bg-mute);
  text-align: center;
  padding: 10px 4px;
  font-family: var(--f-text);
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink);
  border-right: 1px solid var(--bg);
}

.map { border: 1px solid var(--rule); }
.map__frame { aspect-ratio: 16 / 9; width: 100%; }
.map__frame iframe { width: 100%; height: 100%; border: 0; }
.map__link { margin-top: 16px; display: inline-block; }

.edcontacts { border-top: 1px solid var(--rule); }
.edcontacts__row {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  gap: 32px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.edcontacts__text { font-family: var(--f-text); font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.edcontacts__mail { font-family: var(--f-text); font-size: 16px; text-underline-offset: 5px; text-decoration-thickness: 1px; text-decoration: underline; text-decoration-color: var(--rule-2); white-space: nowrap; }
.edcontacts__mail:hover { text-decoration-color: var(--ink); }

/* --- sitemap --- */
.sitemap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.sitemap__group { border-top: 1px solid var(--rule); padding-top: 20px; }
.sitemap__title { font-family: var(--f-caps); font-weight: 600; font-size: 11px; letter-spacing: .20em; text-transform: uppercase; color: var(--ink); }
.sitemap__list { margin-top: 20px; }
.sitemap__list li + li { margin-top: 10px; }
.sitemap__list a { font-family: var(--f-text); font-size: 15px; color: var(--ink-2); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .2s ease; }
.sitemap__list a:hover { color: var(--ink); text-decoration: underline; }

/* --- 404 --- */
.err { text-align: center; padding: 120px 0; }
.err__num { font-family: var(--f-display); font-weight: 400; font-size: clamp(72px, 12vw, 120px); line-height: 1; margin-top: 16px; }
.err__sub { margin: 24px auto 0; max-width: var(--measure); color: var(--ink-2); }
.err__btns { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* --- legal-text --- */
.legal { max-width: var(--measure-l); }
.legal__sec + .legal__sec { margin-top: 48px; }
.legal__h { font-family: var(--f-display); font-weight: 400; font-size: 22px; line-height: 1.3; }
.legal__sec p { margin-top: 14px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.legal__list { margin-top: 14px; }
.legal__list li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.legal__list li + li { margin-top: 8px; }
.legal__list li::before { content: ''; position: absolute; left: 0; top: 13px; width: 12px; height: 1px; background: var(--ink-2); }

/* --- Модалка --- */
.modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(20, 20, 15, .55); }
.modal__box { position: relative; background: var(--bg); max-width: 560px; width: 100%; padding: clamp(24px, 4vw, 48px); max-height: 90vh; overflow-y: auto; }
.modal__close { position: absolute; top: 16px; right: 16px; color: var(--ink); padding: 8px; }
.modal__title { font-family: var(--f-display); font-size: 26px; line-height: 1.2; margin-top: 12px; }
.modal__body { margin-top: 20px; }

/* --- Появление при скролле --- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.is-in { opacity: 1; transform: none; }

/* ==================================================================
   4. Медиазапросы, доступность, печать
================================================================== */

/* --- 1400px и ниже: шапка поджимает поля и меню --- */
@media (max-width: 1400px) {
  .hdr .container { padding-left: 40px; padding-right: 40px; }
  .hdr__nav-list { gap: 14px; }
  .hdr__nav-link { font-size: 14px; }
}

/* --- 1300px и ниже --- */
@media (max-width: 1300px) {
  .hdr__nav-list { gap: 12px; }
  .hdr__nav-link { font-size: 13.5px; }
}

/* --- 1200px и ниже: поля 40px --- */
@media (max-width: 1200px) {
  :root { --pad: 40px; }
}

/* --- 1024px и ниже: сетки в 2 колонки --- */
@media (max-width: 1024px) {
  :root { --sec: 88px; --gap: 24px; }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .ftr__cols { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .rubricator__in { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .sitemap { grid-template-columns: repeat(2, 1fr); }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .facts__cell { border-bottom: 1px solid var(--rule); }
  .toc { grid-template-columns: 1fr; }
  .toc__media { max-width: 420px; }
  .palette { grid-template-columns: repeat(3, 1fr); }
  .principles { grid-template-columns: 1fr; }
  .principles__col { border-right: 0; border-bottom: 1px solid var(--rule); padding: 32px 0; }
  .principles__col:first-child { padding-top: 0; }
  .principles__col:last-child { border-bottom: 0; padding-bottom: 0; }
  .split { grid-template-columns: 1fr; }
  .split__media { min-height: 380px; }
  .split__panel { padding: 56px clamp(24px, 5vw, 48px); }
  .feat { grid-template-columns: 1fr; }
  .feat__media { min-height: 320px; }
  .band { min-height: 460px; }
  .band--hero { min-height: 540px; }
  .band--style { min-height: 480px; }
  .contact-card__grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .facts-tbl__row { grid-template-columns: 160px 1fr; gap: 20px; }
  .edcontacts__row { grid-template-columns: 1fr; gap: 8px; }
}

/* --- 1200px и ниже: меню в бургер --- */
@media (max-width: 1200px) {
  .hdr__nav { display: none; }
  .hdr__toggle { display: none; }
  .hdr__burger { display: inline-flex; align-items: center; justify-content: center; padding: 8px; margin-left: -8px; }
  /* Мини-логотип — только в прилипшем состоянии: первая строка с основным
     логотипом здесь не схлопывается, и безусловный display: block печатал
     «СТРОЙ-ДИЗАЙН» в шапке дважды подряд. */
  .hdr.is-stuck .hdr__logo-mini { display: block; }
  .hdr__main-in { justify-content: space-between; }
  .rubricator { display: none; }
}

/* --- 900px и ниже --- */
@media (max-width: 900px) {
  .tm { grid-template-columns: 1fr; gap: 28px; }
  .tm + .tm { margin-top: 64px; }
  .tm--rev .tm__media { order: 0; }
  .tm--rev .tm__body { order: 0; }
  .nlbar { flex-direction: column; align-items: stretch; gap: 24px; padding: 40px 0 36px; }
  .nlbar__btn { width: 100%; }
  .ftr__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 24px; }
  .ftr__meta--right { text-align: center; }
}

/* --- 640px и ниже: одна колонка --- */
@media (max-width: 640px) {
  :root { --pad: 20px; --sec: 64px; }
  body { font-size: 16px; }
  .grid3, .grid2 { grid-template-columns: 1fr; }
  .ftr__cols { grid-template-columns: 1fr; gap: 36px; padding: 40px 0 48px; }
  .sitemap { grid-template-columns: 1fr; }
  .facts__grid { grid-template-columns: 1fr; border-left: 0; }
  .facts__cell { border-right: 0; padding: 32px 16px; }
  .facts__cell:last-child { border-bottom: 0; }
  .page-head { padding: 64px 0; }
  .crumbs { padding-bottom: 32px; }
  .band { min-height: 420px; }
  .band--hero { min-height: 480px; }
  .band__in { padding: 56px 20px; }
  .band__wide { position: static; margin-top: 32px; }
  .carousel__item { flex: 0 0 78vw; }
  .carousel__item--wide { flex: 0 0 88vw; }
  .carousel__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .newslist__row { grid-template-columns: 1fr; gap: 10px; }
  .newslist__date { padding-top: 0; }
  .palette { grid-template-columns: repeat(2, 1fr); }
  .palette__sw { height: 96px; }
  .facts-tbl__row { grid-template-columns: 1fr; gap: 8px; }
  .checklist { gap: 20px; }
  .nlform__row { flex-direction: column; align-items: stretch; gap: 24px; }
  .nlform__row .btn { width: 100%; }
  .hours { grid-template-columns: repeat(4, 1fr); gap: 8px 0; }
  .err { padding: 72px 0; }
  .err__btns .btn { width: 100%; }
  .ftr__mono { font-size: 38px; }
  .tabs__list { gap: 20px; }
  .share { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* --- 440px и ниже --- */
/* Верхняя строка шапки (город · логотип · карта сайта) в одну линию не влезала уже
   на 381px: правило включалось только с 380px, а в полосе 381-440px строка вылезала
   за контейнер и пряталась под overflow: hidden. */
@media (max-width: 440px) {
  .hdr__cta { padding: 12px 14px; font-size: 10px; letter-spacing: .12em; }
  .hdr__logo { font-size: 12px; letter-spacing: .22em; }
  .hdr__logo-mini { font-size: 11px; letter-spacing: .20em; }
  .hdr__city, .hdr__sitemap { font-size: 9px; letter-spacing: .14em; }
}

/* --- Фокус --- */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.btn:focus-visible,
.arrow:focus-visible,
.pager__arrow:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.band :focus-visible,
.doccard--green :focus-visible,
.doccard--green2 :focus-visible { outline-color: var(--bg); }

/* --- Уменьшенная анимация --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover .card__media img { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .acc__panel { transition: none; }
}

/* ------------------------------------------------------------------
   Дополнения секций
------------------------------------------------------------------ */

a.card__media { display: block; }
.card__title a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.card:hover .card__title a { text-decoration: underline; text-decoration-color: var(--rule-2); }

.hero__slide { min-height: 700px; }
.hero__counter { color: var(--ink-2); }

.doccard__link .link-more { color: inherit; }

.tm__body > .kicker + .h-sub { margin-top: 12px; }

.sec-head .kicker + .h-sub { margin-top: 12px; }

.section--first { padding-top: 0; }

.intro__actions { margin-top: 32px; }

.law-notice { margin-top: 56px; }

.newslist__row a { display: block; }

.style-hero__meta { margin-top: 16px; color: rgba(255, 255, 255, .9); }

.contact-form { margin-top: 32px; }
.contact-form .btn { margin-top: 32px; }
.form-note { margin-top: 16px; font-size: 14px; color: var(--ink-2); min-height: 21px; }

.hours__cell:last-child .hours__val { border-right: 0; }

a.tabs__btn { display: inline-block; }
a.tabs__btn[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }

.pager { margin-bottom: 96px; }

.legal a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--rule-2); }
.legal a:hover { text-decoration-color: var(--ink); }

.faqgroup__head .h-sub { font-family: var(--f-display); }

.palette__cell:last-child { padding-right: 0; }

@media (max-width: 1024px) {
  .hero__slide { min-height: 540px; }
}
@media (max-width: 640px) {
  .hero__slide { min-height: 480px; }
  .hero__nav { display: none; }
}

/* --- Печать --- */
@media print {
  .hdr, .mmenu, .ftr__strip, .nlbar, .nlform, .carousel-nav, .hero__nav,
  .dots, .pager, .skip-link, .modal, .map { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .container { max-width: 100%; padding: 0; }
  .band { min-height: auto; color: #000; }
  .band__img, .band::after { display: none; }
  .band__title, .band__lede { color: #000; }
  .section { padding: 16pt 0; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #555; }
  .reveal { opacity: 1; transform: none; }
  .acc__panel { height: auto !important; }
}
