/*
 * ООО «СК «Доминанта» — сайт dominanta-group.com
 * Статическая версия. Палитра, логотип и шрифты сохранены 1:1
 * по исходным template_styles.css / style.css.
 *
 * Фирменные цвета (взяты из исходной вёрстки без изменений):
 *   #525657  — основной текст / тёмная плашка меню
 *   #f4f3f3  — фон шапки
 *   #00ab5d  — основной акцент (рамка, ссылки при наведении)
 *   #3bc565 / #019d4d — градиент пункта меню при наведении
 *   #a7a7a7  — цвет ссылок / приглушённый текст
 *   #9ba3a5  — точечные разделители
 *   #e9e9e9  — фон подвала
 *   #7e7f84  — текст подвала
 *   #f1f1f1  — фон плиток услуг
 *   #f5f5f5  — светлая подложка
 *   #cbcbcb / #808080 — рамки
 *   #898989  — даты/приглушённое
 *   #30a8c3  — синий акцент (ice-menu)
 *   #038000  — активная «крошка»
 */

:root {
  --c-text: #525657;
  --c-head: #f4f3f3;
  --c-accent: #00ab5d;
  --c-accent-dark: #019d4d;
  --c-accent-light: #3bc565;
  --c-link: #a7a7a7;
  --c-dot: #9ba3a5;
  --c-footer: #e9e9e9;
  --c-footer-text: #7e7f84;
  --c-tile: #f1f1f1;
  --c-soft: #f5f5f5;
  --c-border: #cbcbcb;
  --c-frame: #808080;
  --c-muted: #898989;
  --c-blue: #30a8c3;
  --c-active: #038000;
  --c-white: #ffffff;

  --font-body: "Myriad Pro Regular", "Myriad Pro", Roboto, -apple-system,
    "Segoe UI", Arial, Helvetica, sans-serif;
  --font-head: "Myriad Pro Condensed", "Myriad Pro Cond", Roboto, Arial,
    Helvetica, sans-serif;
  --font-hb: "Myriad Pro Bold Condensed", "Myriad Pro Cond", Roboto, Arial,
    Helvetica, sans-serif;
  --font-rc: "Roboto Condensed Regular", "Roboto Condensed", Roboto, Arial,
    Helvetica, sans-serif;

  /* Ширина колонки: в исходнике #base_wrap{max-width:940px}.
     box-sizing:border-box + padding 20px по краям => 980 - 40 = 940. */
  --wrap: 980px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(82, 86, 87, .06), 0 8px 24px rgba(82, 86, 87, .08);
  --shadow-lift: 0 4px 10px rgba(82, 86, 87, .10), 0 18px 40px rgba(82, 86, 87, .14);
}

/* ----------------------------- fonts ----------------------------- */
@font-face {
  font-family: "Myriad Pro Condensed";
  src: url("../fonts/MyriadPro-Cond.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "Myriad Pro Bold Condensed";
  src: url("../fonts/MyriadPro-BoldCond.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "Myriad Pro Regular";
  src: url("../fonts/MyriadPro-Regular.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed Regular";
  src: url("../fonts/RobotoCondensed-Regular.ttf") format("truetype");
  font-display: swap;
}

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

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

body {
  margin: 0;
  min-height: 100%;
  color: var(--c-text);
  background: var(--c-white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
/* <picture> — только контейнер для WebP-источника: display:contents убирает
   его из потока, поэтому геометрия .hero/.gallery/.services-board__cell--img
   и др.
   полностью определяется вложенным <img> (см. img_tag() в build_site.py). */
picture { display: contents; }
a { color: var(--c-text); text-decoration: none; }
a:hover { color: var(--c-accent); }
h1, h2, h3, h4 { font-family: var(--font-hb); font-weight: 400; line-height: 1.2; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--c-accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

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

/* ----------------------------- header ----------------------------- */
.site-header {
  background: var(--c-head);
  border-top: 5px solid var(--c-accent);
}

/* Геометрия шапки — как в исходном template_styles.css:
   .header-top{padding:15px 25px 20px 20px} + .logo{height:135px} => 170px,
   сверху рамка 5px, снизу .main-menu ul{height:88px}  => шапка 263px. */
.header__bar {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  padding: 15px 20px 20px;
  min-height: 170px;
}

.logo { flex: 0 0 auto; display: block; }
.logo img { width: 208px; height: auto; }

/* правая часть шапки: меню разделов, адрес, телефон */
.header__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  margin-left: auto;
}

.header__contacts {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

/* .address{font-size:20px; right:215px; text-align:right} */
.header__address {
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.2;
  text-align: right;
  color: var(--c-text);
}

/* .phone{width:155px;border-radius:10px;top:65px} .phone p{font-size:24px}
   .phone p span{color:#00ab5d;font-size:20px} */
.header__phone {
  width: 155px;
  flex: 0 0 auto;
  font-family: var(--font-hb);
  font-size: 24px;
  line-height: 1.2;
  text-align: center;
  color: var(--c-text);
}
.header__phone a { color: var(--c-text); }
.header__phone a:hover { color: var(--c-accent); }
.header__phone span { color: var(--c-accent); font-size: 20px; }

/* верхнее меню (О компании … Контакты): .top-menu a{font-size:18px;padding:0 18px}
   .top-menu li:after{content:" / "} */
.top-menu ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.top-menu li { padding: 5px 0; }
.top-menu li::after { content: " / "; color: var(--c-dot); }
.top-menu li:last-child::after { content: ""; }
.top-menu a {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--c-link);
  padding: 0 18px;
  line-height: 1.2;
}
.top-menu a:hover { color: var(--c-accent); }

/* главное меню: .main-menu ul{background:#525657;height:88px}
   .main-menu li{width:19.99%} .main-menu li a{height:88px;padding-top:28px;
   font-size:18px;border-right:1px dotted #9ba3a5}  (940 / 5 = 188px) */
.main-menu { background: var(--c-text); }
.main-menu ul {
  display: flex;
  flex-wrap: wrap;
  height: 88px;
}
.main-menu li { flex: 1 1 0; width: 19.99%; min-width: 0; }
.main-menu a {
  display: block;
  height: 88px;
  padding: 28px 10px 0;
  text-align: center;
  color: var(--c-white);
  font-family: var(--font-head);
  font-size: 18px;
  line-height: 1.2;
  border-right: 1px dotted var(--c-dot);
  transition: background .25s ease, color .25s ease;
}
.main-menu li:last-child a { border-right: 0; }
.main-menu a:hover,
.main-menu a[aria-current="page"] {
  color: var(--c-white);
  background: var(--c-accent-light);
  background: linear-gradient(to bottom, var(--c-accent-light) 0%, var(--c-accent-dark) 100%);
}
.main-menu a[aria-current="page"] { cursor: default; }

/* mobile nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  background: var(--c-text);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-hb);
  font-size: 18px;
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 22px; height: 2px; background: currentColor; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor;
}
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }

/* ----------------------------- hero ----------------------------- */
/* Исходный слайдер главной: .slider img — 940×235, во всю колонку,
   сразу под шапкой (#base_wrap). На внутренних страницах скрыт
   (#inner .slider{display:none}). */
.hero { background: var(--c-head); }
.hero img { width: 100%; max-width: 940px; height: auto; margin: 0 auto; }

/* ----------------------------- crumbs ----------------------------- */
/* Пропорции — как в исходнике (#bc{margin:25px 0 -10px}, li line-height:20px,
   a font-size:11px, opacity:.5). Внешние отступы задаются только по вертикали,
   чтобы .wrap продолжал центрировать колонку (margin:0 auto). */
.crumbs { margin-top: 25px; margin-bottom: 4px; }
.crumbs ul { display: flex; flex-wrap: wrap; align-items: center; }
.crumbs li { line-height: 20px; }
.crumbs a {
  display: block;
  padding: 0 15px;
  color: #555;
  font-family: arial, helvetica, sans-serif;
  font-size: 11px;
  opacity: .5;
  text-decoration: underline;
  background: url("../img/breadcrumbs_arrow.png") no-repeat center right;
}
.crumbs li:first-child a { padding-left: 0; }
.crumbs li:last-child a { background: none; }
.crumbs a:hover { opacity: 1; color: var(--c-accent); }
/* текущая страница — без подчёркивания (подчёркивание остаётся на ссылках) */
.crumbs [aria-current="page"] {
  color: var(--c-active);
  font-family: arial, helvetica, sans-serif;
  font-size: 11px;
  text-decoration: none;
}

/* ----------------------------- content ----------------------------- */
main { display: block; }
/* семантическая обёртка основной статьи: нейтральный блок-контейнер,
   чтобы разметка не влияла на вёрстку (нужна для «режима чтения») */
.page { display: block; }

.page-head {
  margin: 20px 0 6px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--c-border);
}
.page-head h1 {
  margin: 0;
  font-size: clamp(20px, 3vw, 26px);
  text-transform: uppercase;
  letter-spacing: .01em;
}

.content {
  max-width: 100%;
  padding: 8px 0 40px;
}
.content p { margin: 0 0 12px; }
.content h2 {
  margin: 28px 0 12px;
  font-size: 19px;
  text-transform: uppercase;
}
.content h3 { margin: 22px 0 8px; font-size: 17px; }
.content b, .content strong { font-family: var(--font-hb); font-weight: 400; font-size: 16px; }

.content ul.bullets {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.content ul.bullets > li {
  position: relative;
  padding: 5px 0 5px 24px;
  /* маркер списка рисуется одним символом ::before — нативный disc убран,
     чтобы не было двух точек подряд (серая + зелёная) */
}
.content ul.bullets > li::before {
  content: "";
  position: absolute;
  left: 2px; top: 15px;
  width: 7px; height: 7px;
  background: var(--c-accent);
  border-radius: 50%;
}
.content ul.bullets ul { margin: 8px 0 0; padding-left: 6px; }
.content ul.bullets ul > li { padding-left: 20px; }
.content ul.bullets ul > li::before {
  background: var(--c-dot); width: 6px; height: 6px; top: 15px;
}

.lead { font-size: 16px; }

.note {
  background: var(--c-soft);
  border-left: 4px solid var(--c-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin: 18px 0;
}
.note p:last-child { margin-bottom: 0; }

/* ----------------------------- service tiles ----------------------------- */
/* Шахматная раскладка «НАШИ УСЛУГИ» (как в исходном шаблоне: 2 ряда × 6 ячеек).
   Пара «подпись + иллюстрация» на широких экранах распускается в две соседние
   ячейки через display:contents, на мобильных — становится карточкой. */
.services { margin: 26px 0 8px; }
.services-board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 225px;
  margin: 16px 0 0;
  padding: 0;
}
.services-board__pair { display: contents; }
.services-board__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  overflow: hidden;
  background: var(--c-tile);
  text-decoration: none;
}
.services-board__tile--text {
  font-family: var(--font-hb);
  font-size: 18px;
  line-height: 1.2;
  color: var(--c-text);
}
.services-board__tile--img { padding: 0; }
.services-board__tile--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.services-board__tile:hover { background: var(--c-white); }
.services-board__tile--text:hover { color: var(--c-accent); }
.services-board__cell--blank { background: var(--c-white); }

/* ----------------------------- galleries ----------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin: 24px 0 8px;
  padding: 0;
}
.gallery a {
  display: block;
  border: 1px solid var(--c-frame);
  border-radius: 3px;
  padding: 3px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--c-soft);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery a:hover img { transform: scale(1.06); }

/* ----------------------------- partners ----------------------------- */
.partners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  margin: 24px 0 8px;
}
.partners li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: var(--shadow);
}
.partners img {
  width: 200px;
  max-width: 100%;
  height: 110px;
  object-fit: contain;
  margin-bottom: 14px;
}
.partners span {
  font-family: var(--font-hb);
  font-weight: 400;
  font-size: 16px;
  color: var(--c-text);
}

/* ----------------------------- documents ----------------------------- */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin: 24px 0; }
.docs a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.docs a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.docs img { width: 200px; max-width: 100%; margin-bottom: 14px; }
.docs span { font-family: var(--font-hb); font-size: 16px; }

/* ----------------------------- contact ----------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.3fr);
  gap: 34px;
  align-items: start;
  margin: 20px 0;
}
.contact-list li { padding: 4px 0; }
.contact-list a { color: var(--c-text); text-decoration: underline; }
.contact-list a:hover { color: var(--c-accent); }
.contact-block h3 { margin: 20px 0 6px; font-size: 17px; }
.contact-block h3:first-child { margin-top: 0; }
.map img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ----------------------------- footer ----------------------------- */
/* Пропорции подвала — как в исходнике:
   #footer{max-width:940px;padding:20px 15px 45px;font-size:14px},
   колонки .ice-row{width:210px}, .footers-address{float:right;width:230px} */
.site-footer {
  background: var(--c-footer);
  color: var(--c-footer-text);
  font-family: var(--font-rc);
  font-size: 14px;
  margin-top: 40px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 210px 250px 1fr;
  gap: 20px;
  padding: 20px 20px 45px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.footer-col__title {
  display: block;
  font-family: var(--font-hb);
  font-size: 22px;
  color: var(--c-text);
  padding-bottom: 15px;
}
.footer-col li { padding: 3px 0; }
.site-footer a { color: var(--c-footer-text); font-size: 14px; }
.site-footer a:hover { color: var(--c-accent); }
.footer-address {
  justify-self: end;
  text-align: right;
  width: 230px;
  max-width: 100%;
}
.footer-address p {
  font-family: var(--font-rc);
  font-size: 22px;
  color: var(--c-text);
  margin: 0 0 15px;
}
.footer-address span { display: block; line-height: 1.5; }
.footer-bottom {
  border-top: 1px solid rgba(82, 86, 87, .14);
  font-size: 12px;
  color: var(--c-muted);
}
.footer-bottom .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 16px;
}
.footer-bottom__links { display: inline; }
/* каждая политика — цельный блок: перенос строки происходит между политиками,
   а не внутри названия («по политикам», а не «по словам») */
.footer-bottom__links a {
  color: var(--c-muted);
  text-decoration: underline;
  white-space: nowrap;
}
.footer-bottom__links a:hover { color: var(--c-accent); }
@media (max-width: 300px) {
  /* на самых узких экранах (напр. Galaxy Fold, 280px) длинное название
     политики чуть уменьшаем, чтобы оно уместилось в одну строку */
  .footer-bottom__links a { font-size: 12px; }
}

/* ----------------------------- cookie ----------------------------- */
.cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: rgba(82, 86, 87, .97);
  color: #fff;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .2);
}
.cookie[hidden] { display: none; }
.cookie__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 20px;
  font-size: 14px;
}
.cookie__inner p { margin: 0; flex: 1 1 320px; }
.cookie__inner a { color: #fff; text-decoration: underline; }
.cookie__btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 20px;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--font-hb);
  font-size: 16px;
  cursor: pointer;
}
.cookie__btn:hover { background: var(--c-accent-dark); }
.cookie__btn--ghost {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}
.cookie__btn--ghost:hover { background: rgba(255, 255, 255, .15); }

/* ----------------------------- lightbox ----------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .88);
  padding: 30px;
}
.lightbox[open], .lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 6px; }
.lightbox__btn {
  position: absolute;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__btn:hover { background: var(--c-accent); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__caption {
  position: absolute;
  bottom: 16px; left: 0; right: 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
}

/* ----------------------------- legal ----------------------------- */
.legal { max-width: 860px; }
.legal h2 { margin-top: 30px; }
.content table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; }
.content th, .content td {
  border: 1px solid var(--c-border);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 16px;
}
.content th { background: var(--c-tile); font-family: var(--font-hb); font-weight: 400; }

/* кнопка «Скопировать реквизиты» (показывается только с JS) */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px 18px;
  border: 1px solid var(--c-accent);
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-accent);
  font-family: var(--font-hb);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.copy-btn::before {
  content: "";
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-radius: 3px;
  box-shadow: 3px 3px 0 -1px currentColor;
}
.copy-btn:hover { background: var(--c-accent); color: var(--c-white); }
.copy-btn.is-done { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-white); }

/* ----------------------------- 404 ----------------------------- */
.notfound { text-align: center; padding: 70px 20px 90px; }
.notfound h1 { font-size: clamp(56px, 12vw, 110px); color: var(--c-accent); margin: 0; }
.notfound p { font-size: 19px; }

/* ----------------------------- responsive ----------------------------- */
@media (max-width: 980px) {
  .header__bar { min-height: 0; padding-bottom: 16px; align-items: center; }
  .header__side { align-items: stretch; gap: 14px; margin-left: 0; width: 100%; }
  .top-menu ul { justify-content: flex-start; }
  .header__contacts { width: 100%; justify-content: space-between; align-items: center; }
  .header__address { text-align: left; }
  .nav-toggle { display: inline-flex; align-self: flex-start; }

  .main-menu ul { flex-direction: column; height: auto; }
  .main-menu li { width: 100%; }
  .main-menu a {
    height: auto;
    padding: 14px 18px;
    text-align: left;
    border-right: 0;
    border-bottom: 1px dotted var(--c-dot);
  }
  .main-menu.is-collapsed ul { display: none; }

  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .footer-address { grid-column: 1 / -1; justify-self: start; text-align: left; }

  /* услуги: на планшете — карточки 2 в ряд (иллюстрация сверху, подпись снизу) */
  .services-board {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 18px;
  }
  .services-board__pair {
    display: flex;
    flex-direction: column;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .services-board__pair:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
  .services-board__tile { padding: 0; background: transparent; }
  .services-board__tile--img { order: -1; aspect-ratio: 16 / 10; }
  .services-board__tile--img img { object-position: center; }
  .services-board__tile--text {
    flex: 1;
    padding: 14px 16px;
    font-size: 17px;
    color: var(--c-text);
  }
  .services-board__cell--blank { display: none; }
}

@media (max-width: 720px) {
  .header__contacts { gap: 12px; }
  .header__phone { font-size: 22px; width: auto; }
  .logo img { width: 170px; }
  .top-menu a { font-size: 16px; padding: 0 10px; }
  .contact-grid { grid-template-columns: 1fr; }
  /* подвал на телефоне: «О НАС» и «УСЛУГИ» — в две колонки (как на планшете),
     адрес — во всю ширину под ними; так столбцы заполняют ширину экрана
     вместо пустоты справа от коротких ссылок */
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .footer-address { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  /* услуги на телефоне: компактная горизонтальная карточка-строка */
  .services-board { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 12px; }
  .services-board__pair { flex-direction: row; align-items: stretch; }
  .services-board__tile--img { flex: 0 0 104px; width: 104px; aspect-ratio: 4 / 5; }
  .services-board__tile--text {
    align-items: center;
    justify-content: flex-start;
    padding: 12px 16px;
    text-align: left;
    font-size: 17px;
  }
  .services-board__cell--blank { display: none; }
  .content table { display: block; overflow-x: auto; }
  .content { overflow-wrap: break-word; }
}

@media (min-width: 981px) {
  .main-menu.is-collapsed ul { display: flex; }
}

@media print {
  .site-header, .main-menu, .top-menu, .hero, .cookie, .lightbox, .crumbs { display: none !important; }
  body { font-size: 12pt; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
