/* =============================================================
   АДС Профи — надстройка над общим каркасом семьи сайтов (style.css).
   Здесь: крупнее текст для старшего возраста, шапка с телефоном диспетчерской,
   hero «синька», памятка при аварии, обращение диспетчерской, печать памятки.
   ============================================================= */

/* ---------- Базовый размер и переключатель «Аа» ---------- */
html, body { font-size: 17px; line-height: 1.6; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 300;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 10px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.header :focus-visible, .footer :focus-visible, .hero :focus-visible { outline-color: var(--amber); }

/* ---------- Читаемость: служебные подписи не меньше 13px ---------- */
.eyebrow { font-size: 0.76rem; letter-spacing: 0.12em; }
.page-head__crumbs, .news-card__meta, .news-card__more, .teaser__num, .teaser__foot,
.article__meta, .article__back, .doc-card__meta, .reqs__row dt, .contact-block__label,
.footer__col-title, .chip, .news-slider__counter {
  font-size: 0.76rem; letter-spacing: 0.1em;
}
.page-head__meta { font-size: 0.85rem; }
.news-card__tag { font-size: 0.72rem; }
.lead { font-size: 1.18rem; }
.news-card__title { font-size: 1.3rem; }
.news-card__excerpt, .bento__text, .value-card p, .teaser__text { font-size: 1.02rem; line-height: 1.6; }
.about-body p { font-size: 1.1rem; line-height: 1.7; }
.about-numbers__lbl { font-size: 0.86rem; }
.contact-block__value { font-size: 1.25rem; }
.field label { font-family: var(--font-sans); font-size: 0.92rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text); }
.form-note, .form-consent__text { font-size: 0.92rem; }
.btn { font-size: 1rem; }
.footer__lead { font-size: 1rem; }
.footer__list a, .footer__list span { font-size: 1rem; }
.footer__bottom { font-size: 0.86rem; }
.doc-card__ext { color: #fff; font-size: 10px; }
.h-1 { font-size: clamp(2rem, 3.4vw, 2.9rem); letter-spacing: -0.012em; }
.h-display { letter-spacing: -0.015em; }

/* ---------- Шапка ---------- */
.header__inner { gap: 28px; }
.header__mark {
  position: relative; min-width: 76px; padding: 0 16px;
  font-size: 12px; letter-spacing: 0.14em;
}
/* эмалевая табличка: тонкая молочная рамка внутри, как на подъездных номерах */
.header__mark::after {
  content: ""; position: absolute; inset: 3px;
  border: 1px solid rgba(245, 242, 236, 0.85); border-radius: 7px; pointer-events: none;
}
.header__name { font-size: 1rem; letter-spacing: 0.02em; }
.header__sub { font-size: 10.5px; letter-spacing: 0.12em; color: var(--on-dark-mute); }
.nav__link { font-size: 0.98rem; padding: 10px 13px; }

.header__tools { display: flex; align-items: center; gap: 10px; }
.fs-btn {
  height: 44px; min-width: 52px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 10px;
  color: var(--on-dark); font-family: var(--font-display); font-size: 1.02rem; line-height: 1;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.fs-btn b { font-family: var(--font-mono); font-weight: 500; font-size: 0.8rem; color: var(--amber); min-width: 0.9em; }
.fs-btn:hover { border-color: var(--amber); color: var(--amber); }

.header__cta {
  font-family: var(--font-sans); font-size: 1.06rem; font-weight: 600; letter-spacing: 0;
  padding: 7px 18px 7px 16px; gap: 12px; line-height: 1.15;
}
.header__cta-txt { display: flex; flex-direction: column; }
.header__cta-txt small {
  font-family: var(--font-mono); font-weight: 400; font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--on-dark-mute); margin-bottom: 2px;
}
.header__cta svg { width: 18px; height: 18px; }

/* бургер для планшетов и узких ноутбуков (у сестринских сайтов там телефон уезжал за край) */
@media (max-width: 1320px) and (min-width: 721px) {
  .nav { display: none; }
  .header__inner { grid-template-columns: auto 1fr; }
  .header__tools { justify-self: end; }
  .header__burger { display: inline-flex; width: 44px; height: 44px; border-color: rgba(255,255,255,0.2); }
  .nav__drawer { display: flex; }
}
.nav__drawer .nav__link { font-size: 1.1rem; padding: 14px 16px; }
.nav__drawer-call {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.2);
  color: var(--amber); font-weight: 600; font-size: 1.1rem;
}

/* ---------- Hero «синька» ---------- */
.hero--ads .hero__media-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  transform-origin: 70% 40%;
  animation: adsHeroDrift 40s ease-in-out infinite alternate;
}
@keyframes adsHeroDrift { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero--ads .hero__scrim {
  background:
    linear-gradient(90deg, rgba(15,29,48,0.84) 0%, rgba(15,29,48,0.68) 30%, rgba(15,29,48,0.3) 52%, rgba(15,29,48,0) 68%),
    linear-gradient(180deg, rgba(15,29,48,0.35) 0%, transparent 22%, transparent 70%, rgba(15,29,48,0.6) 100%);
}
.hero--ads .hero__title { font-size: clamp(2.5rem, 3.8vw, 3.9rem); margin-bottom: 26px; }
.hero--ads .hero__title small { font-family: var(--font-mono); font-weight: 400; font-size: 0.76rem; letter-spacing: 0.16em; display: block; }
.hero--ads .hero__title-name { color: var(--on-dark); display: block; }
.hero__phone {
  display: inline-flex; flex-direction: column; gap: 6px;
  color: var(--amber); margin-bottom: 22px;
  transition: color 0.2s var(--ease);
}
.hero__phone small {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(245,242,236,0.82);
}
.hero__phone span {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 3vw, 2.9rem);
  letter-spacing: -0.01em; line-height: 1.05; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap;
}
.hero__phone:hover { color: #fff; }
.hero--ads .hero__sub { font-size: clamp(1.08rem, 1.3vw, 1.28rem); max-width: 34em; margin: 0 0 30px; }
.hero--ads .hero__stats { margin-top: 40px; }
.hero--ads .hero__stat-lbl { font-size: 0.74rem; letter-spacing: 0.1em; color: rgba(245,242,236,0.82); }
.hero--ads .hero__cta .btn svg { flex-shrink: 0; }

/* ---------- Памятка «Если случилась авария» ---------- */
.memo {
  max-width: 1080px; background: var(--white);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 44px 52px 38px;
  box-shadow: 0 24px 60px -30px rgba(15,29,48,0.28);
}
.memo__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-bottom: 24px; border-bottom: 1px solid var(--line-2);
}
.memo__kicker {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 10px;
}
.memo__title { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
.memo__print { flex-shrink: 0; }
.memo__cols, .memo__row { --memo-sit: 27%; }
.memo__cols {
  display: grid; grid-template-columns: var(--memo-sit) 1fr 170px; gap: 0 28px;
  padding: 18px 0 12px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute);
}
.memo__cols span:last-child { text-align: right; }
.memo__row { position: relative; border-bottom: 1px solid var(--line); padding: 22px 0; }
.memo__row::after { content: ""; display: table; clear: both; }
.memo__sit {
  float: left; width: var(--memo-sit); list-style: none; cursor: default;
  font-family: var(--font-display); font-size: 1.28rem; line-height: 1.3; color: var(--text); padding-right: 20px;
}
.memo__sit::-webkit-details-marker { display: none; }
.memo__sit::marker { content: ""; }
.memo__body {
  margin-left: calc(var(--memo-sit) + 28px);
  display: grid; grid-template-columns: 1fr 170px; gap: 0 28px; align-items: start;
}
.memo__steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 8px; }
.memo__steps li { counter-increment: st; position: relative; padding-left: 1.6em; color: var(--text); font-size: 1.02rem; line-height: 1.55; }
.memo__steps li::before {
  content: counter(st) "."; position: absolute; left: 0; top: 0;
  font-family: var(--font-display); color: var(--gold-2);
}
.memo__steps a { color: var(--brand); border-bottom: 1px solid var(--gold-line); }
.memo__call { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.memo__call small {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute);
}
.memo__call a {
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; color: var(--text);
  font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; transition: color 0.2s var(--ease);
}
.memo__call a:hover { color: var(--brand); }
.memo__call .memo__call-alt { font-size: 1.05rem; color: var(--text-2); }
/* газ — единственное красное на сайте: тонкая кирпичная линия слева и номер */
.memo__row--alert::before {
  content: ""; position: absolute; left: -26px; top: 22px; bottom: 22px; width: 3px;
  background: var(--alert); border-radius: 2px;
}
.memo__row--alert .memo__sit, .memo__row--alert .memo__call a:first-of-type { color: var(--alert); }
.memo__foot { margin-top: 26px; display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: end; }
.memo__foot p { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--text-2); max-width: 62ch; }
.memo__foot strong { color: var(--text); font-weight: 600; }
.memo__foot .memo__hint {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); text-align: right; max-width: 26ch;
}

/* ---------- Обращение диспетчерской (лист письма, как у УК «Жилые Кварталы») ---------- */
.offer-head { max-width: 900px; margin: 0 auto 40px; text-align: center; }
.offer-head .eyebrow { justify-content: center; }
.offer-head .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--gold); }
.offer-letter {
  max-width: 900px; margin: 0 auto; background: var(--white);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 50px 56px 42px; box-shadow: 0 24px 60px -30px rgba(15,29,48,0.28);
}
.offer-letter__head { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.offer-letter__kicker {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 10px;
}
.offer-letter__title { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1.25; margin: 0; color: var(--text); }
.offer-letter p { margin: 0 0 18px; font-size: 1.08rem; line-height: 1.8; color: var(--text-2); }
.offer-letter__sign {
  margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto; column-gap: 28px; align-items: start;
}
.offer-letter__sign-lbl {
  grid-row: 1; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-2); line-height: 1.2; margin-bottom: 10px;
}
.offer-letter__sign-lbl--left { grid-column: 1; }
.offer-letter__sign-lbl--right { grid-column: 2; justify-self: end; }
.offer-letter__sign-name { grid-row: 2; grid-column: 1; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.25; color: var(--text); }
.offer-letter__phone {
  grid-row: 2; grid-column: 2; justify-self: end;
  font-family: var(--font-display); font-size: 1.6rem; line-height: 1.2; color: var(--text);
  white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; transition: color 0.2s var(--ease);
}
.offer-letter__phone:hover { color: var(--brand); }
.offer-letter__sign-role { grid-row: 3; grid-column: 1; margin-top: 6px; font-size: 0.92rem; color: var(--text-2); }

/* ---------- О службе на главной: ровные ячейки цифр ---------- */
@media (min-width: 921px) {
  .page-home .about-numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-home .about-numbers__cell { padding: 30px 26px; border-right: 0; position: relative; }
  .page-home .about-numbers__cell + .about-numbers__cell::before {
    content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 1px; background: var(--line);
  }
  .page-home .about-numbers__num { font-size: clamp(2rem, 2.8vw, 2.6rem); margin-bottom: 14px; }
}

/* ---------- Подвал ---------- */
.footer__brand .header__sub { margin-top: 3px; }
.footer__phone { font-family: var(--font-display); font-size: 1.35rem !important; letter-spacing: -0.005em; font-variant-numeric: lining-nums tabular-nums; }
.footer__inline { display: inline !important; font-weight: 600; }

/* ---------- Планшет ---------- */
@media (max-width: 920px) {
  .memo { padding: 36px 32px 30px; }
  .memo__cols { display: none; }
  .memo__sit { float: none; width: auto; margin-bottom: 12px; padding-right: 0; }
  .memo__body { margin-left: 0; }
  .memo__row--alert::before { left: -18px; }
}

/* ---------- Телефон ---------- */
@media (max-width: 720px) {
  html, body { font-size: 16.5px; }
  .eyebrow { font-size: 0.74rem; }
  .h-1 { font-size: clamp(1.65rem, 7vw, 2.05rem); }
  .lead { font-size: 1.04rem; }

  .header__inner { grid-template-columns: 1fr auto; }
  .header__name { font-size: 0.92rem; }
  .header__mark { min-width: 46px; height: 30px; padding: 0 9px; font-size: 10px; letter-spacing: 0.08em; border-radius: 8px; }
  .header__mark::after { inset: 2px; border-radius: 6px; }
  .fs-btn { height: 40px; min-width: 44px; padding: 0 8px; font-size: 0.95rem; }
  .header__cta { width: 44px; height: 44px; padding: 0; }
  .header__cta-txt { display: none; }

  /* hero: карточка, телефон крупно по центру */
  .hero.hero--ads { height: auto; min-height: 76vh; max-height: none; }
  .hero--ads .hero__media-img { animation: none; object-position: 30% 50%; }
  .hero--ads .hero__scrim { background: linear-gradient(180deg, rgba(15,29,48,0.45) 0%, rgba(15,29,48,0.55) 45%, rgba(15,29,48,0.85) 100%); }
  .hero--ads .hero__content { padding: 0 20px 26px; }
  .hero--ads .hero__title { font-size: clamp(2.1rem, 9vw, 2.6rem); margin-top: 54px; margin-bottom: 18px; }
  .hero--ads .hero__title small { font-size: 0.68rem; letter-spacing: 0.12em; margin-bottom: 12px; }
  .hero__phone { align-items: center; margin: 0 auto 16px; }
  .hero__phone small { font-size: 0.68rem; }
  .hero__phone span { font-size: clamp(1.75rem, 8vw, 2.2rem); }
  .hero--ads .hero__sub { font-size: 1rem; line-height: 1.55; margin: 0 auto 22px; }
  .hero--ads .hero__cta { margin-bottom: 8px; }
  .hero--ads .hero__cta .btn { font-size: 1.02rem; padding: 15px 20px; }

  /* памятка: каждая строка раскрывается касанием */
  .memo { padding: 0; border: 0; box-shadow: none; border-radius: 0; }
  .memo__head { flex-direction: column; align-items: stretch; gap: 16px; }
  .memo__title { font-size: 1.35rem; }
  .memo__print { display: none; }
  .memo__row { padding: 0; }
  .memo__sit {
    cursor: pointer; padding: 18px 40px 18px 0; margin: 0; font-size: 1.15rem; position: relative;
  }
  .memo__sit::after {
    content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
    border-right: 2px solid var(--text-mute); border-bottom: 2px solid var(--text-mute); transform: rotate(45deg);
    transition: transform 0.25s var(--ease);
  }
  .memo__row[open] .memo__sit::after { transform: rotate(-135deg); margin-top: -2px; }
  .memo__body { grid-template-columns: 1fr; gap: 14px; padding-bottom: 20px; }
  .memo__call { text-align: left; align-items: flex-start; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .memo__call small { width: 100%; }
  .memo__row--alert::before { left: -10px; top: 14px; bottom: 14px; }
  .memo__foot { grid-template-columns: 1fr; }
  .memo__foot .memo__hint { display: none; }

  /* обращение: лист растворяется в карточке секции */
  .offer-head { margin-bottom: 22px; }
  .offer-letter { padding: 0; border: 0; box-shadow: none; max-width: none; }
  .offer-letter__title { font-size: 1.35rem; }
  .offer-letter p { font-size: 1rem; line-height: 1.7; }
  .offer-letter__sign { grid-template-columns: 1fr; }
  .offer-letter__sign-lbl--right { grid-row: 4; grid-column: 1; justify-self: start; margin-top: 20px; }
  .offer-letter__phone { grid-row: 5; grid-column: 1; justify-self: start; font-size: 1.5rem; }

  /* нижняя панель: крупнее, «Позвонить» по центру */
  .tabbar__ico svg { width: 24px; height: 24px; }
  .tabbar__lbl { font-size: 11.5px; }
  .tabbar__item { padding: 8px 2px 7px; }
  .tabbar__item--call { color: var(--brand-2); }
  .tabbar__item--call .tabbar__ico {
    width: 50px; height: 50px; margin-top: -20px; border-radius: 50%;
    background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(15,29,48,0.6);
    border: 3px solid #fff;
  }
  .tabbar__item--call .tabbar__ico svg { width: 22px; height: 22px; }
  .tabbar__item--call .tabbar__lbl { font-weight: 600; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero--ads .hero__media-img { animation: none; }
}

/* ---------- Печать памятки: только лист, чёрным по белому ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  body.printing-memo > *:not(.page), body.printing-memo .header, body.printing-memo .nav__drawer,
  body.printing-memo .tabbar, body.printing-memo .footer, body.printing-memo .cookie-banner { display: none !important; }
  body.printing-memo .main > section:not(#pamyatka) { display: none !important; }
  body.printing-memo { background: #fff !important; padding: 0 !important; }
  body.printing-memo .main { padding: 0 !important; }
  body.printing-memo #pamyatka { padding: 0 !important; margin: 0 !important; border: 0 !important; box-shadow: none !important; }
  body.printing-memo #pamyatka .section-head, body.printing-memo .memo__print { display: none !important; }
  body.printing-memo .memo { box-shadow: none; border: 0; padding: 0; max-width: none; color: #000; }
  body.printing-memo .memo * { color: #000 !important; }
  body.printing-memo .memo__row { break-inside: avoid; }
  body.printing-memo .memo__row--alert::before { background: #000; left: -10px; }
  body.printing-memo .memo__sit::after { display: none; }
  body.printing-memo .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Правки после просмотра ---------- */
.hero--ads .hero__stats { flex-wrap: nowrap; }
.hero--ads .hero__stat { flex: 0 1 auto; padding: 18px 24px; }
.memo { max-width: none; }
.footer__phone { white-space: nowrap; }
.contacts-grid > * { min-width: 0; }
@media (max-width: 720px) {
  .footer__phone { font-size: 1.12rem !important; }
}

/* =============================================================
   v3 — правки по итогам ревью
   ============================================================= */
.nowrap { white-space: nowrap; }
html { scroll-padding-top: calc(var(--header-h) + 12px); }

/* шапка: подпись под названием только в подвале; размеры в px, чтобы «Аа» не ломал шапку */
.header .header__sub { display: none; }
.header__name { font-size: 16px; white-space: nowrap; }
.header .nav__link { font-size: 16.5px; }
.header__cta { font-size: 17px; }
.header__cta-txt small { font-size: 10px; }
.fs-btn { font-size: 17px; }
.fs-btn b { font-size: 13px; }
.header__mark { background: var(--brand-2); font-size: 12px; }
.header__mark::after { border-color: rgba(245,242,236,0.45); }
/* закрытое меню недоступно с клавиатуры */
.nav__drawer { visibility: hidden; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s; }
body.nav-open .nav__drawer { visibility: visible; transition-delay: 0s; }
.nav__drawer-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.nav__drawer-call { margin-top: 0; }
.nav__drawer-fs {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 16px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2); color: var(--on-dark); font-size: 1.02rem;
}
.nav__drawer-fs span { font-family: var(--font-display); }
.nav__drawer-fs b { color: var(--amber); font-family: var(--font-mono); font-weight: 500; }

/* hero: цифры регламента */
.hero--ads .hero__stat-num { font-variant-numeric: lining-nums; white-space: nowrap; }

/* памятка: две колонки (ситуация / что сделать), один номер в шапке листа */
#pamyatka { padding-top: 40px; }
.memo__head { align-items: flex-end; }
.memo__phone { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.memo__phone small {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute);
}
.memo__phone a {
  font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.1; color: var(--text);
  white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; transition: color 0.2s var(--ease);
}
.memo__phone a:hover { color: var(--brand); }
.memo__row { padding: 20px 0; }
.memo__body { display: block; margin-left: calc(var(--memo-sit) + 28px); }
.memo__steps { max-width: 62ch; }
.memo__gas { color: var(--alert) !important; border-bottom: 0 !important; font-weight: 600; font-size: 1.1em; }
.memo__foot { grid-template-columns: 1fr auto; align-items: center; }
.memo__print { white-space: nowrap; }
.memo__fill { display: none; }
@media (max-width: 920px) {
  .memo__body { margin-left: 0; }
  .memo__head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .memo__phone { align-items: flex-start; text-align: left; }
}
@media (max-width: 720px) {
  #pamyatka { padding-top: 24px; }
  .memo__foot { grid-template-columns: 1fr; }
  .memo__body { padding-bottom: 18px; }
}

/* адресный аншлаг вместо фото дома (как синяя табличка на фасаде) */
.house-card__head--plate { background: var(--cream-3); align-items: center; justify-content: center; padding: 22px; }
.addr-plate {
  position: relative; width: 100%; max-width: 330px; padding: 16px 22px 14px;
  background: linear-gradient(180deg, #2A5C9E 0%, #1F4F8F 100%); color: #fff; border-radius: 10px;
  box-shadow: 0 10px 22px -14px rgba(15,29,48,0.55);
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
}
.addr-plate::after {
  content: ""; position: absolute; inset: 5px; border: 1.5px solid rgba(245,242,236,0.85); border-radius: 6px; pointer-events: none;
}
.addr-plate__street { font-family: var(--font-sans); font-weight: 600; font-size: 1.02rem; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.2; }
.addr-plate__num { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; font-variant-numeric: lining-nums; }
.house-card__head--big.house-card__head--plate .addr-plate { max-width: 420px; }

/* страница дома: воздух перед подвалом */
.house-detail { padding-bottom: 80px; }

/* «О службе», телефон: карточки ценностей без обрезки текста */
@media (max-width: 720px) {
  .values-grid { grid-template-columns: 1fr !important; }
  .value-card { height: auto !important; }
  .value-card p { display: block !important; -webkit-line-clamp: unset !important; overflow: visible !important; }
}

/* форма: поля не вылезают из сетки; понятные ошибки */
.form-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.form-row > .field, .field { min-width: 0; }
.input, .textarea { width: 100%; min-width: 0; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--alert); box-shadow: 0 0 0 3px rgba(180,52,42,0.12); }
.form-status { font-family: var(--font-sans); font-size: 1rem; line-height: 1.45; letter-spacing: 0; text-transform: none; font-weight: 500; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

/* контакты: главный телефон диспетчерской крупно */
.contact-block--main { background: var(--ink); border-color: var(--ink); }
.contact-block--main .contact-block__label { color: var(--on-dark-mute); }
.contact-block--main .contact-block__value, .contact-block--main .contact-block__value a { color: var(--on-dark); font-family: var(--font-display); font-size: 1.9rem; line-height: 1.15; }
.contact-block--main .contact-block__value a:hover { color: var(--amber); }
.contact-block--main .contact-block__ico { color: var(--amber); border-color: rgba(157,192,236,0.35); background: rgba(157,192,236,0.08); }

/* узкие экраны: ничего не обрезается */
.page-head .container > * { min-width: 0; }
.page-head__title { overflow-wrap: break-word; }
.docs-info__table td, .docs-info__table th { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .hero__phone span { font-size: min(8.4vw, 2.2rem); }
  .hero.hero--ads { min-height: 0; }
  .hero--ads .hero__content { padding-bottom: 28px; }
  .hero--ads .hero__cta { margin-top: 6px; }
  /* меню и на телефоне: бургер в шапке */
  .header__burger { display: inline-flex !important; width: 44px; height: 44px; border-color: rgba(255,255,255,0.22); }
  .nav__drawer { display: flex !important; top: var(--header-h); padding: 12px 16px 20px; }
  .header__tools { gap: 8px; }
}
@media (max-width: 380px) {
  .fs-btn { display: none; }
  .header__name { font-size: 14px; }
  .hero--ads .hero__cta .btn { white-space: normal; padding-left: 14px; padding-right: 14px; }
  .page-head__title { font-size: clamp(1.7rem, 8.5vw, 2.2rem); hyphens: auto; }
}

/* ---------- Печать ---------- */
@media print {
  .header, .nav__drawer, .tabbar, .cookie-banner, .hero__media, .hero__scrim, .skip-link { display: none !important; }
  .main { padding-top: 0 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { padding: 0 !important; }
  /* кнопка «Распечатать памятку»: один лист A4 */
  @page { size: A4; margin: 11mm; }
  body.printing-memo .memo { font-size: 10.5pt; }
  body.printing-memo .memo__head { padding-bottom: 10px; }
  body.printing-memo .memo__title { font-size: 17pt; }
  body.printing-memo .memo__phone a { font-size: 19pt; }
  body.printing-memo .memo__row { padding: 7px 0; }
  body.printing-memo .memo__sit { font-size: 12pt; }
  body.printing-memo .memo__steps { gap: 2px; }
  body.printing-memo .memo__steps li { font-size: 10pt; line-height: 1.35; }
  body.printing-memo .memo__foot { margin-top: 10px; display: block; }
  body.printing-memo .memo__foot p { font-size: 10pt; }
  body.printing-memo .memo__print { display: none !important; }
  body.printing-memo .memo__fill {
    display: flex !important; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 11pt;
  }
  body.printing-memo .memo__fill span { display: inline-flex; align-items: flex-end; gap: 6px; }
  body.printing-memo .memo__fill i { display: inline-block; width: 70mm; border-bottom: 1px solid #000; height: 1.1em; }
  body.printing-memo .memo__fill i.s { width: 14mm; }
  body.printing-memo .memo__gas { color: #000 !important; }
}

/* v3.1 */
.page-head__title.h-display { font-size: clamp(2.4rem, 4.6vw, 4.2rem); }
.page-head__crumbs { overflow-wrap: anywhere; }
@media print {
  body.printing-memo .memo { font-size: 9.5pt; }
  body.printing-memo .memo__title { font-size: 15pt; }
  body.printing-memo .memo__kicker { margin-bottom: 4px; }
  body.printing-memo .memo__phone a { font-size: 17pt; }
  body.printing-memo .memo__row { padding: 4px 0; }
  body.printing-memo .memo__sit { font-size: 11pt; }
  body.printing-memo .memo__steps li { font-size: 9.5pt; line-height: 1.3; }
  body.printing-memo .memo__foot p { font-size: 9.5pt; }
  body.printing-memo .memo__row--alert::before { top: 4px; bottom: 4px; }
}

/* =============================================================
   v4 — слайдеры фото (hero и «О службе»), выравнивание «О службе»
   ============================================================= */
.slides { position: relative; overflow: hidden; }
.hero__media.slides { position: absolute; inset: 0; }
.slides__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.slides__img.is-active { opacity: 1; }
.hero__media.slides .slides__img { transform: scale(1.04); transition: opacity 1.2s ease, transform 7s linear; }
.hero__media.slides .slides__img.is-active { transform: scale(1); }

/* полоски-переключатели: активная заполняется по ходу показа */
.slides__bars { display: flex; gap: 8px; z-index: 4; }
.slides__bar {
  position: relative; width: 46px; height: 24px; padding: 0; background: none; border: 0; cursor: pointer;
}
.slides__bar::before, .slides__bar::after {
  content: ""; position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px;
}
.slides__bar::before { right: 0; background: rgba(245, 242, 236, 0.38); }
.slides__bar::after { width: 0; background: #fff; }
.slides__bar.is-done::after { width: 100%; }
.slides__bar.is-active::after { animation: slideBar var(--slide-ms, 6000ms) linear forwards; }
.slides__bar:hover::before { background: rgba(245, 242, 236, 0.7); }
.slides__bar:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
@keyframes slideBar { from { width: 0; } to { width: 100%; } }

.hero__bars { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); }

/* «О службе» на главной: идёт сразу после hero — плавный переход и ровные колонки */
#aboutTeaser.section--transition { padding-top: 190px; padding-bottom: 104px; background: var(--cream); }
#aboutTeaser.section--transition::before { height: 160px; }
.page-home .about-grid { align-items: center; gap: 64px; }
.page-home .about-media { margin-top: 0; }
.page-home .about-body > .eyebrow { margin-top: 0; }
.page-home .about-body p:last-of-type { margin-bottom: 0; }
.page-home .about-quote { margin-top: 26px; }
.about-photo.slides { position: relative; height: clamp(240px, 21vw, 300px); }
.about-photo .slides__bars {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 10px;
  background: linear-gradient(180deg, rgba(15,29,48,0) 0%, rgba(15,29,48,0.55) 100%);
}
.about-photo .slides__bar { width: 34px; }

@media (max-width: 920px) {
  .page-home .about-grid { gap: 32px; }
}
@media (max-width: 720px) {
  .hero__bars { bottom: 16px; }
  .hero--ads .hero__content { padding-bottom: 54px; }
  #aboutTeaser.section--transition { padding-top: 26px; padding-bottom: 28px; background: var(--white); }
  .about-photo.slides { height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .slides__img, .hero__media.slides .slides__img { transition: opacity 0.4s ease; transform: none !important; }
  .slides__bar.is-active::after { animation: none; width: 100%; }
}

/* =============================================================
   v5 — первый экран без номера телефона, девиз; заглушка новостей
   ============================================================= */
.hero--ads .hero__content { width: clamp(520px, 40vw, 600px); }
.hero--ads .hero__title { margin-bottom: 14px; }
.hero__motto {
  margin: 0 0 22px; font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.35rem, 1.8vw, 1.7rem); line-height: 1.3; color: var(--amber);
}
.hero--ads .hero__sub { max-width: none; margin-bottom: 32px; }
.hero--ads .hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.hero--ads .hero__stat { width: auto; padding: 18px 10px; text-align: center; }
.hero--ads .hero__stat-lbl { letter-spacing: 0.06em; }
.hero--ads .hero__cta .btn--ghost { padding-left: 28px; padding-right: 28px; }

.news-placeholder {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 38px 40px; box-shadow: var(--sh-1);
}
.news-placeholder__title { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.5rem; color: var(--text); }
.news-placeholder__text { margin: 0; color: var(--text-2); font-size: 1.05rem; line-height: 1.6; max-width: 56ch; }

@media (max-width: 720px) {
  .hero--ads .hero__content { width: auto; }
  .hero__motto { font-size: 1.25rem; margin-bottom: 14px; }
  .hero--ads .hero__title { margin-top: 70px; }
  .hero--ads .hero__stats { display: none; }
  .news-placeholder { padding: 24px 20px; box-shadow: none; }
}

/* =============================================================
   v6 — «О службе»: фото на уровне заголовка, полоски и цифры по центру
   ============================================================= */
.page-home .about-grid { align-items: start; }
/* верх фото = верх заголовка «О службе» (над ним надзаголовок «Раздел / 03») */
.page-home .about-media { margin-top: 47px; }
.about-photo .slides__bars { justify-content: center; }
.page-home .about-numbers__cell { text-align: center; }
.page-home .about-numbers__lbl { margin-left: auto; margin-right: auto; max-width: 18ch; }
.header__cta-txt { font-size: 17px; }
@media (max-width: 920px) {
  .page-home .about-media { margin-top: 0; }
}

/* =============================================================
   v7 — первый экран: без затемнений, текст по центру и крупнее
   ============================================================= */
.hero--ads .hero__scrim { display: none; }
.hero--ads .hero__panel { justify-content: center; }
.hero--ads .hero__content {
  width: min(920px, calc(100% - 48px)); margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero--ads .hero__title { font-size: clamp(3.2rem, 5.6vw, 5.6rem); margin-bottom: 16px; }
.hero--ads .hero__title small { font-size: 0.82rem; letter-spacing: 0.2em; margin-bottom: 20px; }
.hero__motto { font-size: clamp(1.6rem, 2.3vw, 2.2rem); color: #fff; margin-bottom: 22px; }
.hero--ads .hero__sub { font-size: clamp(1.15rem, 1.45vw, 1.4rem); max-width: 40em; margin: 0 auto 36px; color: #fff; }
.hero--ads .hero__cta { justify-content: center; }
/* читаемость на светлых фото — только тень у текста, без подложек */
.hero--ads .hero__title, .hero--ads .hero__title small, .hero__motto, .hero--ads .hero__sub {
  text-shadow: 0 2px 22px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.5);
}
.hero--ads .hero__title-name { color: #fff; }
/* под первым экраном без тёмной полосы */
#newsTeaser.section--transition { padding-top: 96px; background: var(--cream); }
#newsTeaser.section--transition::before { display: none; }
@media (max-width: 720px) {
  .hero--ads .hero__content { width: auto; }
  .hero--ads .hero__title { font-size: clamp(2.4rem, 11vw, 3rem); }
  .hero__motto { font-size: 1.4rem; }
  .hero--ads .hero__sub { font-size: 1.05rem; }
  #newsTeaser.section--transition { padding-top: 34px; background: var(--white); }
}
/* v7.1 */
.hero--ads .hero__title small {
  font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.16em; color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,0.7), 0 1px 2px rgba(0,0,0,0.6);
}
@media (max-width: 720px) {
  .header__name { font-size: 13.5px; }
  .hero--ads .hero__title small { font-size: 0.72rem; letter-spacing: 0.12em; }
}
@media (max-width: 430px) {
  .fs-btn { display: none; }
}
@media (max-width: 360px) {
  .header__name { font-size: 12px; }
  .header__mark { min-width: 40px; padding: 0 7px; }
  .header__brand { gap: 8px; }
  .header__tools { gap: 6px; }
  .header__cta, .header__burger { width: 40px !important; height: 40px !important; }
}

/* =====================================================================
   v4 (23.10.2026): простая шапка, «Размер сайта», шапки страниц, «О компании»
   ===================================================================== */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Размер сайта: увеличивается ВСЁ (шапка, телефон, кнопки, картинки), как масштаб браузера --- */
html[data-fs="1"] body { zoom: 1.15; }
html[data-fs="2"] body { zoom: 1.3; }
@media (max-width: 720px) {
  html[data-fs="1"] body { zoom: 1.1; }
  html[data-fs="2"] body { zoom: 1.2; }
}

/* --- Шапка попроще: плоская табличка «АДС», телефон без рамки --- */
.header__mark { min-width: 0; height: 34px; padding: 0 11px; border-radius: 6px; background: var(--brand-2); font-size: 12px; letter-spacing: 0.12em; }
.header__mark::after { display: none; }
.header__tools { gap: 20px; }
.header__cta {
  border: 0; background: none; padding: 6px 2px; border-radius: 0;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: 0; gap: 8px;
}
.header__cta:hover { background: none; color: var(--amber); }
.header__cta svg { width: 16px; height: 16px; }

/* переключатель «А А А»: три размера, выбранный подчёркнут */
.fs-switch { display: inline-flex; align-items: flex-end; gap: 2px; }
.fs-switch__btn {
  position: relative; display: inline-flex; align-items: flex-end; justify-content: center;
  min-width: 30px; height: 36px; padding: 0 5px 8px; border: 0; border-radius: 6px; background: none;
  color: var(--on-dark-mute); font-family: var(--font-sans); font-weight: 600; line-height: 1; cursor: pointer;
  transition: color 0.2s var(--ease);
}
.fs-switch__btn:hover { color: var(--on-dark); }
.fs-switch__btn.is-on { color: var(--on-dark); }
.fs-switch__btn.is-on::after {
  content: ""; position: absolute; left: 7px; right: 7px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--amber);
}
.fs-switch__btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.fs-switch--header .fs-switch__btn--0 .fs-switch__a { font-size: 14px; }
.fs-switch--header .fs-switch__btn--1 .fs-switch__a { font-size: 18px; }
.fs-switch--header .fs-switch__btn--2 .fs-switch__a { font-size: 22px; }
.fs-open { display: none; }

/* окошко выбора размера на телефоне */
.fs-pop {
  position: fixed; top: calc(var(--header-h) + 8px); right: 12px; z-index: 120;
  width: min(330px, calc(100vw - 24px)); padding: 14px 14px 16px;
  background: #fff; color: var(--text); border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 18px 40px -12px rgba(15, 29, 48, 0.45);
}
.fs-pop[hidden] { display: none; }
.fs-pop__title { font-family: var(--font-sans); font-weight: 600; font-size: 16px; margin: 2px 4px 12px; }
.fs-switch--pop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.fs-switch--pop .fs-switch__btn {
  flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px;
  height: auto; min-height: 84px; padding: 12px 4px 10px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text);
}
.fs-switch--pop .fs-switch__btn.is-on { border-color: var(--brand); background: rgba(31, 79, 143, 0.08); color: var(--brand); }
.fs-switch--pop .fs-switch__btn.is-on::after { display: none; }
.fs-switch--pop .fs-switch__btn--0 .fs-switch__a { font-size: 18px; }
.fs-switch--pop .fs-switch__btn--1 .fs-switch__a { font-size: 24px; }
.fs-switch--pop .fs-switch__btn--2 .fs-switch__a { font-size: 30px; }
.fs-switch__cap { font-size: 13px; font-weight: 500; line-height: 1.2; color: var(--text-2); }
.fs-switch--pop .fs-switch__btn.is-on .fs-switch__cap { color: var(--brand); }

@media (max-width: 720px) {
  .fs-switch--header { display: none; }
  .header .header__cta { display: none; }               /* позвонить — большая кнопка в нижней панели */
  .fs-open {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.22);
    background: none; color: var(--on-dark); font-family: var(--font-sans); font-weight: 600; font-size: 17px; cursor: pointer;
  }
  .fs-open[aria-expanded="true"] { border-color: var(--amber); color: var(--amber); }
  .header__name { font-size: 15px; }
}
@media (max-width: 360px) {
  .fs-open { width: 40px; height: 40px; }
  .header__name { font-size: 13px; }
}

/* меню не помещается в строку (крупный размер или узкий экран) → бургер */
html.nav-tight .header .nav { display: none; }
html.nav-tight .header__inner { grid-template-columns: auto 1fr; }
html.nav-tight .header__tools { justify-self: end; }
html.nav-tight .header__burger { display: inline-flex; width: 44px; height: 44px; border-color: rgba(255, 255, 255, 0.2); }
html.nav-tight .nav__drawer { display: flex; }

/* --- Шапки внутренних страниц — как у УК ЖК: всё по левому краю; на ПК слева заголовок и текст, справа факты --- */
.page-head .container { display: block; }
.page-head .lead { max-width: 46em; }
.page-head .container .page-head__meta {
  display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: baseline;
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line);
  text-align: left;
}
.page-head__fact { font-family: var(--font-mono); font-size: 0.88rem; letter-spacing: 0.04em; color: var(--text-2); }
.page-head__fact b { font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; letter-spacing: 0; color: var(--text); margin-left: 6px; }
@media (max-width: 720px) {
  .page-head .container .page-head__meta { flex-direction: column; gap: 6px; margin-top: 4px; padding-top: 14px; }
}
@media (min-width: 921px) {  /* как в шаблоне: две колонки только на широких экранах */
  .page-head .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
  .page-head .container .page-head__meta {
    flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 8px;
    margin: 0; padding: 0; border-top: 0;
  }
  .page-head { padding-bottom: 44px; }
  .page-head .lead { margin-bottom: 0; }  /* низ фактов — на одной линии с последней строкой текста */
}
/* длинный заголовок («Политика конфиденциальности») — мельче, чтобы слово не рвалось в узкой левой колонке */
.page-head__title--long.h-display { font-size: clamp(1.7rem, 3.3vw, 3.1rem); }
/* ПК, две колонки: заголовок не шире своей колонки и при крупном размере сайта (самое длинное слово целиком) */
@media (min-width: 921px) {
  .page-head .container > div:first-child { container-type: inline-size; }
  .page-head__title.h-display { font-size: min(clamp(2.4rem, 4.6vw, 4.2rem), 10.8cqi); }  /* «на обслуживании» — неразрывно */
  .page-head__title--long.h-display { font-size: min(clamp(1.7rem, 3.3vw, 3.1rem), 8.8cqi); }
}

/* --- «О компании»: фото и цифры по центру высоты текста --- */
.about-grid { align-items: center; }
.about-media { margin-top: 0; }
@media (max-width: 720px) {
  .header__inner { gap: 10px; }
  .header__tools { gap: 8px; }
  .header__brand { gap: 10px; min-width: 0; }
  .header__name-wrap { min-width: 0; }
  .header__name { white-space: normal; line-height: 1.15; }
  .header__mark { height: 30px; padding: 0 9px; font-size: 11px; }
}
/* очень тесно (узкий телефон + крупный размер): убираем табличку «АДС», название остаётся */
html.hdr-tight .header__mark { display: none; }
@media (max-width: 720px) {
  .page-head__fact b { display: block; margin: 2px 0 0; overflow-wrap: anywhere; }
}

/* --- Главная, «О компании» (ПК): фото с табличкой опущены — низ таблички на одной линии с кнопкой «Подробнее» --- */
@media (min-width: 921px) {
  .page-home .about-grid { align-items: end; }
  .page-home .about-media { margin-top: 0; }
}

/* домов пока нет — в карточке цифр две ячейки вместо трёх */
.about-numbers.about-numbers--two { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

/* --- Мобильная: на самых узких телефонах (≤360px) увеличение мягче, чтобы ничего не вылезало --- */
@media (max-width: 360px) {
  html[data-fs="1"] body { zoom: 1.06; }
  html[data-fs="2"] body { zoom: 1.12; }
  .contact-block__value { overflow-wrap: anywhere; }
}
@media (max-width: 720px) {
  .teasers { grid-template-columns: minmax(0, 1fr); }
  .teaser { min-width: 0; }
  .teaser__title, .teaser__text { overflow-wrap: break-word; hyphens: auto; }
}

/* =====================================================================
   Памятка «Если случилась авария» v2 (23.10.2026): единая типографика
   — весь текст одним шрифтом (Geist), два размера: ситуация и шаги;
   — номера шагов одинаковые кружки; телефон обычного размера в шапке;
   — 6 карточек: 2 колонки на ПК, 1 на телефоне; печать — 1 лист A4.
   ===================================================================== */
.aid {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 36px 40px 32px; box-shadow: 0 18px 44px -30px rgba(15, 29, 48, 0.35);
  font-family: var(--font-sans); color: var(--text);
}
.aid__head {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line);
}
.aid__kicker { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.aid__title { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; line-height: 1.25; margin: 0; color: var(--text); }
.aid__call {
  display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0;
  padding: 12px 22px 12px 14px; border-radius: 14px; background: var(--cream); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.aid__call:hover { border-color: var(--brand); background: #fff; }
.aid__call-ico {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; flex-shrink: 0;
}
.aid__call-txt { display: flex; flex-direction: column; line-height: 1.25; }
.aid__call-txt small { font-size: 0.82rem; color: var(--text-2); }
.aid__call-txt b { font-size: 1.15rem; font-weight: 600; white-space: nowrap; }

.aid__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.aid__card {
  background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px 24px;
}
.aid__sit {
  margin: 0 0 14px; font-family: var(--font-sans); font-size: 1.12rem; font-weight: 600; line-height: 1.35; color: var(--text);
}
.aid__steps { margin: 0; padding: 0; list-style: none; counter-reset: aid; display: grid; gap: 10px; }
.aid__steps li {
  counter-increment: aid; position: relative; padding-left: 36px;
  font-size: 1rem; line-height: 1.55; color: var(--text-2);
}
.aid__steps li::before {
  content: counter(aid); position: absolute; left: 0; top: 0.1em;
  width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); color: var(--brand);
  font-size: 0.8rem; font-weight: 600; line-height: 1;
}
.aid__steps a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

.aid__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line);
}
.aid__foot p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--text-2); max-width: 62ch; }
.aid__foot strong { color: var(--text); font-weight: 600; }
.aid__print { white-space: nowrap; }
.aid__fill { display: none; }

@media (max-width: 900px) {
  .aid__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .aid { padding: 22px 18px 20px; border-radius: 18px; }
  .aid__title { font-size: 1.4rem; }
  .aid__head { padding-bottom: 20px; margin-bottom: 18px; }
  .aid__call { width: 100%; }
  .aid__card { padding: 18px 16px 18px; }
  .aid__print { display: none; }
}

@media print {
  body.printing-memo .aid { border: 0; box-shadow: none; padding: 0; border-radius: 0; font-size: 10pt; }
  body.printing-memo .aid * { color: #000 !important; }
  body.printing-memo .aid__head { padding-bottom: 8px; margin-bottom: 8px; }
  body.printing-memo .aid__title { font-size: 15pt; }
  body.printing-memo .aid__call { padding: 0; border: 0; background: none; }
  body.printing-memo .aid__call-ico { display: none; }
  body.printing-memo .aid__call-txt b { font-size: 16pt; }
  body.printing-memo .aid__grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  body.printing-memo .aid__card { background: none; border: 1px solid #999; border-radius: 6px; padding: 7px 10px; break-inside: avoid; }
  body.printing-memo .aid__sit { font-size: 11pt; margin-bottom: 4px; }
  body.printing-memo .aid__steps { gap: 2px; }
  body.printing-memo .aid__steps li { font-size: 9.5pt; line-height: 1.3; padding-left: 20px; }
  body.printing-memo .aid__steps li::before { width: 14px; height: 14px; font-size: 7.5pt; border-color: #000; }
  body.printing-memo .aid__foot { margin-top: 8px; padding-top: 8px; display: block; }
  body.printing-memo .aid__foot p { font-size: 9.5pt; }
  body.printing-memo .aid__print { display: none !important; }
  body.printing-memo .aid__fill { display: flex !important; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 11pt; }
  body.printing-memo .aid__fill span { display: inline-flex; align-items: flex-end; gap: 6px; }
  body.printing-memo .aid__fill i { display: inline-block; width: 70mm; border-bottom: 1px solid #000; height: 1.1em; }
  body.printing-memo .aid__fill i.s { width: 14mm; }
}
/* «О компании»: цифры под слайдером по центру — как на главной */
.about-numbers__cell { text-align: center; }
.about-numbers__lbl { margin-left: auto; margin-right: auto; max-width: 18ch; }
@media (max-width: 720px) {
  /* секция на телефоне уже белая карточка — у памятки своей рамки нет, иначе текст зажат */
  .aid { padding: 0; border: 0; box-shadow: none; border-radius: 0; background: none; }
  .aid__card { padding: 16px 14px; }
  .aid__steps li { padding-left: 32px; }
}

/* --- Новости: пустая лента на всю ширину сетки; пустые счётчики в шапке скрыты --- */
.news-empty { grid-column: 1 / -1; }
.page-head__meta[hidden], .page-head .container .page-head__meta[hidden] { display: none !important; }
