/* МБ-Фургон — industrial corporate, grid-aligned */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-cyrillic-400-normal.woff2") format("woff2"),
       url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-cyrillic-500-normal.woff2") format("woff2"),
       url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-cyrillic-600-normal.woff2") format("woff2"),
       url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-cyrillic-700-normal.woff2") format("woff2"),
       url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/syne-latin.woff2") format("woff2");
}

:root {
  --bg: #121417;
  --bg-elevated: #181b20;
  --bg-muted: #16191e;
  --text: #e8eaed;
  --text-muted: #9aa0a6;
  --accent: #e11d2e;
  --accent-hover: #f43f5e;
  --line: #2a2f36;
  --font-display: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --container: 1140px;
  --gutter: 1.75rem;
  --header-h: 5.25rem;
  --topbar-h: 2.15rem;
  --space-section: 6.5rem;
  --space-block: 2rem;
  --space-stack: 1.25rem;
  --radius: 8px;
  --radius-sm: 6px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

html.is-nav-open,
body.is-nav-open {
  overflow: hidden;
  overscroll-behavior: none;
}

html.is-nav-open .cookie-consent {
  visibility: hidden;
  pointer-events: none;
}

main#main {
  overflow-x: clip;
  max-width: 100%;
}

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

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

.text-accent {
  color: var(--accent);
}

.container {
  --bs-gutter-x: 0;
  width: min(100% - (var(--gutter) * 2), var(--container));
  max-width: none;
  margin-inline: auto;
  padding-left: 0;
  padding-right: 0;
}

/* ---------- Header / Nav ---------- */
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--bg);
}

.site-header {
  background: var(--bg);
}

.topbar {
  height: var(--topbar-h);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0e1013;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: var(--topbar-h);
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar__item:hover {
  color: var(--text);
}

.topbar__ico {
  display: inline-flex;
  flex: 0 0 0.85rem;
  align-items: center;
  justify-content: center;
  width: 0.85rem;
  height: 0.85rem;
  color: inherit;
  opacity: 0.9;
  line-height: 1;
}

.topbar__ico svg {
  display: block;
  width: 0.85rem;
  height: 0.85rem;
}

.topbar__item--address {
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__item--address span,
.topbar__item--hours span,
.topbar__item--email span,
.topbar__item--phone span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 991.98px) {
  .topbar__item--hours {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .topbar__item--address {
    display: none;
  }
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: var(--header-h);
  padding-block: 0.65rem;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .site-header__inner {
    position: relative;
  }

  .brand {
    grid-column: 1;
    position: relative;
    z-index: 2;
    background: var(--bg);
    padding-right: 1rem;
  }

  .site-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    left: max(var(--gutter), calc((100% - var(--container)) / 2));
    right: max(var(--gutter), calc((100% - var(--container)) / 2));
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
  }

  .site-nav .navbar-collapse {
    flex-basis: auto;
    flex-grow: 0;
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .site-nav .navbar-collapse,
  .site-nav .nav-item,
  .site-nav .nav-link,
  .site-nav .dropdown-menu {
    pointer-events: auto;
  }
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}
.brand:hover { color: var(--text); }

.brand picture {
  display: block;
  line-height: 0;
}

.brand__logo {
  display: block;
  height: 2.875rem; /* ~46px desktop */
  width: auto;
  max-width: min(13.5rem, 46vw);
  object-fit: contain;
  object-position: left center;
}

.brand__tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.2;
  padding-left: 0.1rem;
}

.site-nav {
  padding: 0;
  justify-content: flex-end;
}

.site-nav__list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.15rem;
  margin: 0;
}

.site-nav .nav-link {
  color: var(--text-muted);
  padding: 0.7rem 0.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
  border-radius: 0;
  white-space: nowrap;
  background: transparent;
}
.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible {
  color: var(--text);
  background: transparent;
}
/* Bootstrap paints .nav-link.show / .active dark (navbar-active-color) — keep light on the dark header */
.site-nav .navbar-nav .nav-link.show,
.site-nav .navbar-nav .nav-link:active {
  color: var(--text);
  background: transparent;
}
.site-nav .navbar-nav .nav-link.is-active,
.site-nav .navbar-nav .nav-link.is-active:hover,
.site-nav .navbar-nav .nav-link.is-active.show {
  color: var(--accent);
  background: transparent;
}

.site-nav .dropdown-toggle::after {
  margin-left: 0.35em;
  vertical-align: 0.15em;
}

/* Desktop: animated underline on links + full-width mega menu for «Услуги» */
.site-nav .nav-link {
  transition: color 0.15s ease;
}

.site-nav .dropdown-toggle::after {
  transition: transform 0.2s ease;
}

.site-nav .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

@media (min-width: 992px) {
  .site-nav .nav-link {
    position: relative;
  }

  .site-nav .nav-link::before {
    content: "";
    position: absolute;
    left: 0.25rem;
    right: 0.25rem;
    bottom: 0.3rem;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .site-nav .nav-link:hover::before,
  .site-nav .nav-link:focus-visible::before,
  .site-nav .nav-link.is-active::before,
  .site-nav .nav-link.show::before {
    transform: scaleX(1);
  }

  .site-nav .nav-item.dropdown {
    position: static;
  }

  .site-nav__cta {
    margin-left: 0.35rem;
  }

  .site-nav__cta .btn {
    min-height: 2.5rem;
    white-space: nowrap;
  }

  .site-nav .mega {
    --bs-dropdown-bg: #171a1f;
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #171a1f;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.28s;
    z-index: 1020;
  }

  .site-nav .mega.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
  }

  /* invisible bridge so the pointer can travel from the link to the panel */
  .site-nav .mega::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -2.25rem;
    height: 2.25rem;
  }

  .mega__inner {
    overflow: hidden;
    border-radius: 19px;
  }

  .mega__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    padding: 1.75rem 2rem 1.5rem;
  }
}

.mega__title {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mega__list {
  display: grid;
  gap: 0.05rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mega .dropdown-item {
  display: block;
  padding: 0.45rem 0.7rem;
  margin-inline: -0.7rem;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--text);
  white-space: normal;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.2s ease;
}

.mega .dropdown-item:hover,
.mega .dropdown-item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: translateX(3px);
}

.mega .dropdown-item.is-active {
  color: var(--accent);
}

.mega__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem 2rem;
  border-top: 1px solid var(--line);
  background: #13161a;
}

.mega__all,
.mega__cta {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.mega__all {
  color: var(--text);
}

.mega__cta {
  color: var(--accent-hover);
}

.mega__all::after,
.mega__cta::after {
  content: "→";
  display: inline-block;
  margin-left: 0.45em;
  transition: transform 0.18s ease;
}

.mega__all:hover,
.mega__all:focus-visible {
  color: #fff;
}

.mega__cta:hover,
.mega__cta:focus-visible {
  color: #fff;
}

.mega__all:hover::after,
.mega__cta:hover::after {
  transform: translateX(4px);
}

.mega__all.is-active {
  color: var(--accent);
}

/* Header gets a hairline + soft shadow once the page scrolls */
.site-chrome {
  transition: box-shadow 0.25s ease;
}

.site-chrome.is-scrolled {
  box-shadow: 0 1px 0 var(--line), 0 14px 34px rgba(0, 0, 0, 0.28);
}

.dropdown-menu {
  --bs-dropdown-bg: #22262d;
  --bs-dropdown-link-color: var(--text-muted);
  --bs-dropdown-link-hover-color: var(--text);
  --bs-dropdown-link-hover-bg: transparent;
  --bs-dropdown-link-active-color: var(--accent);
  --bs-dropdown-link-active-bg: transparent;
  --bs-dropdown-border-color: rgba(255, 255, 255, 0.08);
  --bs-dropdown-border-radius: var(--radius);
  --bs-dropdown-padding-y: 0.55rem;
  min-width: 15rem;
  box-shadow: none;
}

.dropdown-item {
  font-size: 0.9rem;
  padding: 0.65rem 1.2rem;
  background: transparent;
}
.dropdown-item.is-active,
.dropdown-item.is-active:hover,
.dropdown-item.is-active:focus,
.dropdown-item:active {
  color: var(--accent);
  background: transparent;
  font-weight: 600;
}
.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--text);
  background: transparent;
}

.dropdown-divider { display: none; }

.site-header__aside {
  display: none;
}

.phone {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  white-space: nowrap;
}
.phone:hover { color: var(--accent); }

/* Custom burger: three bars (short middle) that morph into a cross */
.nav-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--bg-elevated);
  color: var(--text);
  z-index: 1031;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: #4a515b;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  background: rgba(225, 29, 46, 0.14);
}

.nav-toggle__box {
  position: relative;
  display: block;
  width: 1.25rem;
  height: 14px;
}

.nav-toggle__line {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.38s cubic-bezier(0.7, 0, 0.2, 1), width 0.25s ease, opacity 0.2s ease;
}

.nav-toggle__line--top {
  top: 0;
}

.nav-toggle__line--mid {
  top: 6px;
  left: auto;
  right: 0;
  width: 68%;
}

.nav-toggle__line--bot {
  top: 12px;
}

.nav-toggle:hover .nav-toggle__line--mid {
  width: 100%;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line--top {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line--mid {
  width: 0;
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line--bot {
  transform: translateY(-6px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle,
  .nav-toggle__line {
    transition: none;
  }
}

/* ---------- Buttons ---------- */
/* Button hierarchy (Bootstrap tokens): primary fill / secondary surface / tertiary text */
.btn {
  --bs-btn-padding-x: 1.2rem;
  --bs-btn-padding-y: 0.6rem;
  --bs-btn-font-size: 0.9375rem;
  --bs-btn-font-weight: 600;
  --bs-btn-line-height: 1.2;
  --bs-btn-border-width: 1px;
  --bs-btn-border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  letter-spacing: 0.01em;
}

.btn-sm {
  --bs-btn-padding-x: 0.85rem;
  --bs-btn-padding-y: 0.35rem;
  --bs-btn-font-size: 0.8125rem;
  min-height: 2.25rem;
}

.btn-accent {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--accent-hover);
  --bs-btn-hover-border-color: var(--accent-hover);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--accent-hover);
  --bs-btn-active-border-color: var(--accent-hover);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--accent);
}

.btn-outline-light {
  --bs-btn-font-weight: 500;
  --bs-btn-color: var(--text);
  --bs-btn-bg: var(--bg-elevated);
  --bs-btn-border-color: #4a515b;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #22262c;
  --bs-btn-hover-border-color: #8b929b;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #22262c;
  --bs-btn-active-border-color: #8b929b;
}

.btn-ghost,
.btn-link {
  --bs-btn-color: var(--text-muted);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: var(--text);
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: var(--text);
  --bs-btn-active-bg: transparent;
  --bs-btn-active-border-color: transparent;
  /* inline-block (not the .btn flex): in a flex container the underline on hover would
     propagate to the blockified arrow too; here only the text is underlined */
  display: inline-block;
  min-height: 0;
  padding: 0;
  font-weight: 500;
  text-decoration: none;
}

.btn-link:not(.cookie-consent-settings-btn)::after {
  content: "→";
  margin-left: 0.4em;
  display: inline-block;
  transition: transform 0.18s ease;
}

.btn-link:not(.cookie-consent-settings-btn):hover::after {
  transform: translateX(3px);
}

.btn-link:hover,
.btn-ghost:hover {
  color: var(--bs-btn-hover-color);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* ---------- Hero (Smart Recovery layout: inset rounded panel, text | photo) ---------- */
.hero {
  position: relative;
  height: auto;
  max-height: none;
  overflow: visible;
  padding: 2.5rem 0 var(--space-section);
  background: var(--bg);
}

.hero-panel {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  background: #1a1e24;
  /* Fixed panel height so slide changes don't resize the hero (~416–640px) */
  height: clamp(26rem, 60vh, 40rem);
}

.hero-swiper {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-swiper .swiper-slide {
  height: 100%;
  box-sizing: border-box;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.hero-slide__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  min-height: 0;
  overflow: visible;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  padding-right: clamp(1.25rem, 3vw, 2rem);
  box-sizing: border-box;
}

.hero-slide__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 2.05rem);
  font-weight: 700;
  line-height: 1.22;
  margin: 0 0 1.1rem;
  color: #fff;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.hero-slide__lead {
  margin: 0 0 1.75rem;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.55;
}

.hero-slide__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.65rem 0.75rem;
  margin-top: auto;
}

.hero-slide__actions .btn {
  min-width: 10.5rem;
}

.hero-slide__actions .btn-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-bg: rgba(18, 20, 23, 0.55);
  --bs-btn-border-color: rgba(255, 255, 255, 0.42);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.12);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.8);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: rgba(255, 255, 255, 0.14);
  --bs-btn-active-border-color: #fff;
  backdrop-filter: blur(8px);
}

.hero-slide__more {
  display: inline-block;
  width: max-content;
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.hero-slide__more:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.hero-slide__media {
  position: relative;
  z-index: 0;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #121417;
  /* Keep media in its grid cell — no bleed into text column */
  margin: 0;
}

.hero-slide__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide__img--from-right {
  object-position: right center;
}

.hero-slide__img--contain {
  object-fit: contain;
  object-position: center;
}

.hero-thumbs {
  margin: 0.85rem 0 0;
  padding: 0;
  overflow: hidden;
}

.hero-thumbs .swiper-wrapper {
  align-items: stretch;
}

/* slidesPerView: 6 sets widths; keep height/cursor styles only */
.hero-thumbs .swiper-slide {
  height: auto;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.hero-thumbs .swiper-slide:hover,
.hero-thumbs .swiper-slide-thumb-active {
  opacity: 1;
}

.hero-thumb {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
}

.hero-thumb__img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  background: #1a1e24;
}

.hero-thumb__label {
  display: block;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-thumbs .swiper-slide-thumb-active .hero-thumb__label {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .hero-thumbs {
    display: none;
  }
}

@media (max-width: 991.98px) {
  /* Stacked layout: keep a stable total height (~480–640px) */
  .hero-panel {
    height: clamp(30rem, 72vh, 40rem);
  }

  .hero-slide {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(10rem, 40%) minmax(0, 1fr);
    height: 100%;
    min-height: 0;
  }

  .hero-slide__media {
    order: -1;
    min-height: 0;
    height: 100%;
    aspect-ratio: auto;
  }

  .hero-slide__text {
    padding: 1.35rem 1.25rem 1.5rem;
    overflow: visible;
  }

  .hero-slide__title {
    max-width: 100%;
    font-size: clamp(1.25rem, 5vw, 1.7rem);
  }
}

@media (max-width: 575.98px) {
  .hero-panel {
    border-radius: 1.25rem;
  }

  .hero-slide__actions {
    flex-direction: row;
  }

  .hero-slide__actions .btn {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 0;
    justify-content: center;
    text-align: center;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: var(--space-section) 0;
}

.section--muted {
  background: var(--bg-muted);
}

/* Light section strip (home services) — same metal-gray family as .cta-band */
.section--light {
  --light-bg: #e6e8ec;
  --light-text: #1a1d21;
  --light-muted: #5a6169;
  --light-line: #c4c8ce;
  background: var(--light-bg);
  color: var(--light-text);
  border-block: 1px solid var(--light-line);
}

.section--light .btn-outline-light {
  --bs-btn-color: var(--light-text);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #b7bcc3;
  --bs-btn-hover-color: var(--light-text);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: var(--light-text);
  --bs-btn-active-color: var(--light-text);
  --bs-btn-active-bg: #fff;
  --bs-btn-active-border-color: var(--light-text);
}

.section--light .btn-link {
  --bs-btn-color: var(--light-muted);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: var(--light-text);
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: var(--light-text);
  --bs-btn-active-bg: transparent;
  --bs-btn-active-border-color: transparent;
}

.section--light .btn-link:hover,
.section--light .btn-link:focus-visible {
  color: var(--light-text);
}

.section--light .section-title {
  color: var(--light-text);
}

.section--light .section-lead {
  color: var(--light-muted);
}

.section--light .service-link {
  color: var(--light-text);
}

.section--light .service-link:hover {
  color: var(--light-text);
}

.section--light .service-link:hover .service-link__title {
  color: var(--accent);
}

.section--light .service-link__desc {
  color: var(--light-muted);
}

.section--light .service-link__media {
  background: transparent;
}

/* ---------- Trust strip (minimal) ---------- */
.trust .section-lead {
  margin-bottom: 2rem;
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 2.5rem;
}

.trust-item {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 2px solid var(--accent);
  padding-top: 1.15rem;
}

.trust-item__value {
  margin: 0 0 0.4rem;
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  color: var(--light-text, #1a1d21);
}

.trust-item__label {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}

.trust-item__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--light-muted, #5a6169);
}

@media (max-width: 767.98px) {
  .trust__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ---------- Reviews (Yandex quotes) ---------- */
.reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  margin-bottom: 2.25rem;
}

.reviews__intro {
  flex: 1 1 16rem;
  min-width: 0;
}

.reviews__intro .section-title,
.reviews__intro .section-lead {
  margin-bottom: 0;
}

.reviews__intro .section-lead {
  margin-top: 0.75rem;
}

.reviews__summary {
  flex: 0 0 auto;
  text-align: right;
}

.reviews__score {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  color: var(--light-text, #1a1d21);
}

.reviews__stars {
  margin: 0.35rem 0 0.25rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  line-height: 1;
}

.reviews__meta {
  margin: 0;
  color: var(--light-muted, #5a6169);
  font-size: 0.9rem;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.35rem;
}

.review-card {
  margin: 0;
  padding: 1.35rem 1.4rem 1.4rem;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  color: var(--light-text, #1a1d21);
}

.review-card__stars {
  margin: 0 0 0.85rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  line-height: 1;
}

.review-card__text {
  margin: 0 0 1.15rem;
  color: var(--light-text, #1a1d21);
  font-size: 1rem;
  line-height: 1.65;
}

.review-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
}

.review-card__author {
  font-style: normal;
  font-weight: 600;
  color: var(--light-text, #1a1d21);
}

.review-card__date {
  color: var(--light-muted, #5a6169);
  font-size: 0.88rem;
}

.reviews__actions {
  margin-top: 2.5rem;
}

@media (max-width: 991.98px) {
  .reviews__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .reviews__summary {
    text-align: left;
  }
}

.section-title,
.page-title {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.page-title {
  font-weight: 700;
}

.page-title {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
}

.section-title {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.section-lead,
.lead-text {
  color: var(--text-muted);
  max-width: none;
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.section p {
  max-width: none;
  margin-bottom: 1rem;
}

.service-list__title {
  margin: 1.5rem 0 0.65rem;
  font-weight: 600;
}

.service-list {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}

.service-list li {
  margin-bottom: 0.35rem;
}

/* Services — grid without border cage */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  column-gap: 2.5rem;
  row-gap: 1.35rem;
}

.service-grid.service-grid--related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 991.98px) {
  .service-grid.service-grid--related {
    grid-template-columns: minmax(0, 1fr);
  }
}

.service-link {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem 1.15rem;
  align-items: start;
  padding: 1.35rem 0;
  color: var(--text);
  text-decoration: none;
}
.service-link:hover {
  color: var(--text);
}
.service-link:hover .service-link__title {
  color: var(--accent);
}

.service-link__media {
  display: block;
  overflow: hidden;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
}

.service-link__img {
  width: 100%;
  height: 5.25rem;
  object-fit: cover;
  transition: opacity 0.2s ease, transform 0.25s ease;
}
.service-link:hover .service-link__img {
  opacity: 0.92;
  transform: scale(1.03);
}

.service-link__body {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.15rem;
}

.service-link__title {
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.3;
  transition: color 0.15s ease;
}

.service-link__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.section-actions {
  margin-top: 1.75rem;
}

/* Extra photos on service pages */
.service-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.service-gallery .media-frame {
  margin: 0;
}

/* ---------- Brands marquee ---------- */
.section--brands {
  overflow: hidden;
}

.section--brands .section-lead {
  margin-bottom: 2rem;
}

.brands-track {
  margin: 0 0 2rem;
  overflow: hidden;
}

.brands-swiper {
  overflow: hidden;
  padding-inline: var(--gutter);
}

.brands-swiper .swiper-wrapper {
  transition-timing-function: linear;
  align-items: stretch;
}

.brands-swiper .swiper-slide {
  width: 8.5rem;
  height: auto;
}

.brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 5.25rem;
  padding: 0.65rem 0.85rem;
  background: #fff;
  border-radius: var(--radius-sm);
}

.brand-tile__img {
  width: 100%;
  height: 100%;
  max-height: 3.75rem;
  object-fit: contain;
}

.brands-copy {
  max-width: 42rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

@media (min-width: 576px) {
  .brands-swiper .swiper-slide {
    width: 9.5rem;
  }
  .brand-tile {
    height: 5.75rem;
  }
}

@media (min-width: 992px) {
  .brands-swiper .swiper-slide {
    width: 10.5rem;
  }
  .brand-tile {
    height: 6.25rem;
    padding: 0.85rem 1rem;
  }
  .brand-tile__img {
    max-height: 4.25rem;
  }
}

.media-frame {
  overflow: hidden;
  background: var(--bg-elevated);
  border-radius: var(--radius);
}

.media-frame img,
.gallery-item img,
.gallery-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item,
.gallery-preview a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery-item:hover img,
.gallery-preview a:hover img {
  opacity: 0.92;
}

.breadcrumbs {
  padding: 0.85rem 0 0;
}

.breadcrumb {
  --bs-breadcrumb-divider-color: var(--text-muted);
  background: transparent;
  padding: 0.35rem 0 0;
  margin: 0;
}

/* Inner pages: breadcrumbs sit above .section — don't stack full section pad on top */
.breadcrumbs + .section {
  padding-top: 1.5rem;
}

.breadcrumb-item,
.breadcrumb-item a {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.breadcrumb-item.active { color: var(--text); }
.breadcrumb-item a:hover { color: var(--text); }

.price-table-wrap {
  overflow-x: auto;
}

.price-table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--line);
  --bs-table-striped-bg: transparent;
  margin: 0;
  width: 100%;
}

.price-table thead th {
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  border-bottom-width: 1px;
  padding: 0.9rem 0 1rem;
}

.price-table td {
  padding: 1.1rem 0;
  vertical-align: top;
}

.price-table tbody tr:hover {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
}

.price-col {
  white-space: nowrap;
  font-weight: 600;
  color: var(--accent);
  text-align: right;
  padding-left: 1.5rem !important;
}

.contact-list {
  margin: 0;
}
.contact-list dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 1.6rem;
}
.contact-list dt:first-child { margin-top: 0; }
.contact-list dd {
  margin: 0.4rem 0 0;
  font-size: 1.05rem;
}

.map-frame {
  overflow: hidden;
  background: var(--bg-elevated);
  min-height: 320px;
  border-radius: var(--radius);
}
.map-frame iframe {
  display: block;
  width: 100%;
  min-height: 420px;
}

.site-footer {
  margin-top: 2rem;
  padding: 4.5rem 0 2rem;
}

.footer-row {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-row {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 2.5rem;
  }
}

@media (min-width: 992px) {
  .footer-row {
    grid-template-columns: minmax(15rem, 1.2fr) minmax(11rem, 0.9fr) minmax(9rem, 0.7fr) minmax(11rem, 0.85fr);
  }
}

.footer-links__all {
  color: var(--accent) !important;
  font-weight: 600;
}

.footer-links__all:hover {
  color: var(--accent-hover) !important;
}

.footer-legal {
  margin-top: 1.5rem;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 0.85rem;
  text-decoration: none;
}

.footer-brand__logo {
  display: block;
  height: 2rem;
  width: auto;
  max-width: 11rem;
  object-fit: contain;
  object-position: left center;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 2.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-made {
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.footer-made:hover {
  color: var(--text);
}

.footer-made__brand {
  font-family: "Syne", var(--font-display), sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.footer-made:hover .footer-made__brand {
  color: var(--accent-hover);
}

.cta-line {
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* ---------- CTA: dark photo card on a paper strip (end of every page) ---------- */
.cta-band {
  /* -1px overlap hides the sub-pixel seam between sections with fractional heights */
  margin-top: -1px;
  background: #f1f3f5;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.cta-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 25rem;
  overflow: hidden;
  border-radius: 24px;
  background: #101216;
  color: #fff;
}

/* soft brand glow behind the text, under the photo fade */
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(60% 90% at 0% 100%, rgba(225, 29, 46, 0.22), transparent 62%);
}

.cta-card__media {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: 66%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%);
  mask-image: linear-gradient(90deg, transparent 0, #000 38%);
}

.cta-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #101216 0%, rgba(16, 18, 22, 0.6) 30%, rgba(16, 18, 22, 0) 68%),
    linear-gradient(0deg, rgba(16, 18, 22, 0.55), rgba(16, 18, 22, 0) 35%);
}

.cta-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
}

.cta-card__content {
  position: relative;
  max-width: 37rem;
  padding: clamp(2rem, 5vw, 3.5rem);
}

.cta-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.cta-card__lead {
  max-width: 32rem;
  margin: 0.9rem 0 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
}

.cta-card__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: cta-step;
}

.cta-card__steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.88);
  counter-increment: cta-step;
}

.cta-card__steps li::before {
  content: counter(cta-step);
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.cta-card__call {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.75rem;
  margin: 1.15rem 0 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.cta-card__phone {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.cta-card__phone:hover,
.cta-card__phone:focus-visible {
  color: var(--accent-hover);
}

@media (max-width: 991.98px) {
  .cta-card {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .cta-card__media {
    position: relative;
    inset: auto;
    order: -1;
    width: 100%;
    height: 13rem;
  }

  .cta-card__media {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .cta-card__media::after {
    background: linear-gradient(0deg, #101216 0%, rgba(16, 18, 22, 0.35) 45%, rgba(16, 18, 22, 0) 100%);
  }

  .cta-card__img {
    object-position: 70% 50%;
  }

  .cta-card__content {
    max-width: none;
    padding-top: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .cta-card {
    border-radius: 18px;
  }

  .cta-card__media {
    height: 11rem;
  }

  .cta-card__actions {
    flex-direction: column;
  }

  .cta-card__actions .btn {
    width: 100%;
  }

  .cta-card__steps {
    flex-direction: column;
  }
}

/* Dark surface inside a light section: secondary button = the standard dark-surface secondary */
.section--light .cta-bar .btn-outline-light {
  --bs-btn-color: var(--text);
  --bs-btn-bg: var(--bg-elevated);
  --bs-btn-border-color: #4a515b;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #22262c;
  --bs-btn-hover-border-color: #8b929b;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #22262c;
  --bs-btn-active-border-color: #8b929b;
}

/* ---------- CTA bar: compact dark block inside long pages ---------- */
.cta-bar {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
}

.cta-bar__inner {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 1.6rem clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
  border-radius: 18px;
  background: #15181d;
  color: #fff;
}

.cta-bar__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(45% 160% at 0% 50%, rgba(225, 29, 46, 0.2), transparent 70%);
}

.cta-bar__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #fff;
}

.cta-bar__lead {
  margin: 0.3rem 0 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}

.cta-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 0.85rem;
}

.cta-bar__phone {
  margin-left: 0.5rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.cta-bar__phone:hover,
.cta-bar__phone:focus-visible {
  color: var(--accent-hover);
}

@media (max-width: 767.98px) {
  .cta-bar__actions {
    width: 100%;
  }

  .cta-bar__actions .btn {
    flex: 1 1 100%;
  }

  .cta-bar__phone {
    flex: 1 1 100%;
    margin: 0.2rem 0 0;
    text-align: center;
  }
}

.site-nav__mobile-cta {
  display: grid;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.75rem;
}

.site-nav__mobile-cta .btn-lg {
  width: 100%;
}

.site-nav__mobile-contacts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-nav__phone {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__phone:hover {
  color: var(--accent-hover);
}

.site-nav__mobile-meta {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---------- Tablet ---------- */
@media (max-width: 1199.98px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }
}

@media (max-width: 991.98px) {
  :root {
    /* Keep header height stable (same as desktop) — no shrink on tablet/mobile */
    --header-h: 5.25rem;
    --topbar-h: 0rem;
    --space-section: 4.5rem;
    --gutter: 1.35rem;
  }

  /* Top info strip is desktop-only; phone and WhatsApp are in the mobile menu and the hero. */
  .topbar {
    display: none;
  }

  .site-chrome {
    position: static;
    background: none;
    backdrop-filter: none;
  }

  body {
    padding-top: var(--header-h);
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: var(--header-h);
    min-height: var(--header-h);
    max-height: none;
    padding-top: 0;
    background: var(--bg);
  }

  .site-header__inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.85rem 1rem;
    height: var(--header-h);
    min-height: var(--header-h);
    max-height: var(--header-h);
    padding-block: 0;
    box-sizing: border-box;
  }

  .brand {
    order: 1;
    margin-right: auto;
  }

  .brand__logo {
    height: 2.5rem;
    max-width: min(12rem, 48vw);
  }

  .nav-toggle { order: 3; }

  .site-header__aside {
    display: none;
  }

  .brand__tag { display: none; }

  .site-chrome.is-scrolled .site-header {
    box-shadow: 0 1px 0 var(--line), 0 10px 26px rgba(0, 0, 0, 0.28);
  }

  /* Mobile menu: full-screen panel that wipes down, links rise in one by one */
  .navbar-collapse,
  .navbar-collapse.collapsing,
  .navbar-collapse.collapse {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1028;
    display: flex !important;
    flex-direction: column;
    order: unset;
    flex-basis: auto;
    width: 100%;
    height: auto !important;
    max-height: none;
    margin: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background:
      radial-gradient(75% 38% at 100% 0%, rgba(225, 29, 46, 0.16), transparent 70%),
      var(--bg);
    padding: 0.5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    clip-path: inset(0 0 100% 0);
    transition: opacity 0.25s ease, clip-path 0.45s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s linear 0.45s;
  }

  html.is-nav-open .navbar-collapse,
  html.is-nav-open .navbar-collapse.collapsing,
  .navbar-collapse.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    clip-path: inset(0 0 0 0);
    transition-delay: 0s;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 0.35rem;
    counter-reset: nav-item;
  }

  .site-nav .nav-item,
  .site-nav__mobile-cta {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  html.is-nav-open .site-nav .nav-item,
  html.is-nav-open .site-nav__mobile-cta {
    opacity: 1;
    transform: none;
    transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--i, 0) * 55ms + 140ms);
  }

  .site-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.05rem 0;
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text);
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-link::before {
    counter-increment: nav-item;
    content: counter(nav-item, decimal-leading-zero);
    flex: 0 0 1.7rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--text-muted);
  }

  .site-nav .nav-link.is-active,
  .site-nav .nav-link.is-active::before {
    color: var(--accent);
  }

  .site-nav .dropdown-toggle::after {
    flex: 0 0 auto;
    width: 0.55rem;
    height: 0.55rem;
    margin: 0 0.35rem 0 auto;
    border: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    vertical-align: 0;
    transform: rotate(45deg);
  }

  .site-nav .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(-135deg);
  }

  /* «Услуги» accordion: height animates via grid rows */
  .site-nav .mega {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: grid !important;
    grid-template-rows: 0fr;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: grid-template-rows 0.38s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .site-nav .mega.show {
    grid-template-rows: 1fr;
  }

  .mega__inner {
    min-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: visibility 0s linear 0.38s;
  }

  .mega.show .mega__inner {
    visibility: visible;
    transition-delay: 0s;
  }

  .mega__grid {
    display: grid;
    gap: 1.35rem;
    padding: 1.1rem 0 0.9rem 2.6rem;
  }

  .mega__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }

  .mega .dropdown-item {
    padding: 0.5rem 0;
    margin-inline: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
  }

  .mega .dropdown-item:hover,
  .mega .dropdown-item:focus-visible {
    background: transparent;
    transform: none;
  }

  .mega__foot {
    display: grid;
    gap: 0.6rem;
    padding: 0 0 1.1rem 2.6rem;
    border-bottom: 1px solid var(--line);
  }

  .mega__cta {
    display: none;
  }

  .dropdown-item {
    line-height: 1.3;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.75rem;
    row-gap: 0.35rem;
  }

  .service-link {
    grid-template-columns: 4.5rem 1fr;
    padding: 1.35rem 0;
  }

  .service-link__img {
    height: 3.75rem;
  }

  .map-frame iframe { min-height: 300px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 575.98px) {
  :root {
    --space-section: 3.5rem;
    --gutter: 1.15rem;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 0.75rem;
    row-gap: 0;
  }

  .service-link {
    grid-template-columns: 3.15rem 1fr;
    gap: 0.35rem 0.55rem;
    padding: 0.65rem 0;
    align-items: center;
  }

  .service-link__img {
    height: 2.65rem;
  }

  .service-link__body {
    gap: 0.15rem;
    padding-top: 0;
  }

  .service-link__title {
    font-size: 0.88rem;
    line-height: 1.25;
  }

  .service-link__desc {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .section.section--light {
    padding-block: 2.5rem;
  }

  .section.section--light .section-lead {
    margin-bottom: 1.15rem;
  }

  .service-gallery {
    grid-template-columns: 1fr;
  }

  .section-lead,
  .lead-text {
    margin-bottom: 1.25rem;
  }

  .breadcrumbs + .section {
    padding-top: 1.15rem;
  }

  .price-col {
    padding-left: 0.75rem !important;
    font-size: 0.92rem;
  }

  .section .row.g-5 {
    --bs-gutter-y: 2.5rem;
  }

  .site-footer {
    padding: 3.25rem 0 1.75rem;
  }
}

/* Gallery page — dense grid, light filters (scoped) */
.gallery-page .gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin: 0 0 1.5rem;
}

.gallery-page .gallery-filter {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.2;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  border-radius: 2px;
}

.gallery-page .gallery-filter:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
}

.gallery-page .gallery-filter.is-active {
  color: #fff;
  border-color: var(--accent);
  background: rgba(225, 29, 46, 0.12);
}

.gallery-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .gallery-page .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (min-width: 1200px) {
  .gallery-page .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gallery-page .gallery-item[hidden] {
  display: none !important;
}

.gallery-page .gallery-item--video {
  position: relative;
}

.gallery-page .gallery-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 2.75rem;
  height: 2.75rem;
  margin: -1.375rem 0 0 -1.375rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

.gallery-page .gallery-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.45rem 0 0.45rem 0.75rem;
  border-color: transparent transparent transparent #fff;
}

.footer-bottom__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
}

.footer-bottom__meta a {
  color: var(--text-muted);
}

.footer-bottom__meta a:hover {
  color: var(--text);
}

.footer-cookie-link {
  padding: 0;
  color: var(--text-muted);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  background: none;
  border: 0;
  cursor: pointer;
}

.footer-cookie-link:hover {
  color: var(--text);
}

.legal-doc__meta {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.legal-doc h2 {
  margin: 1.85rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.legal-doc p,
.legal-doc li {
  color: var(--text-muted);
}

.legal-doc ul {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
}

.legal-doc li {
  margin: 0.35rem 0;
}

.cookie-consent {
  position: fixed;
  right: 0.85rem;
  bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  left: 0.85rem;
  z-index: 1080;
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  background: #1a1e24;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.cookie-consent-title {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 1rem;
}

.cookie-consent-desc {
  max-width: 52rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.cookie-consent-desc a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cookie-consent-settings-btn {
  min-height: 0;
  padding: 0.35rem 0.5rem;
  color: var(--text);
  font-weight: 600;
}

.cookie-consent-settings-btn:hover {
  color: #fff;
}

.cookie-consent-modal .modal-content {
  background: #1a1e24;
  color: var(--text);
  border: 1px solid var(--line);
}

.cookie-consent-modal .modal-header,
.cookie-consent-modal .modal-footer {
  border-color: var(--line);
}

.cookie-consent-modal-lead,
.cookie-consent-option-note {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.cookie-consent-option {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.cookie-consent-option:last-child {
  border-bottom: 0;
}

.cookie-consent-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.cookie-consent-badge {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cookie-consent-switch {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  font-weight: 700;
  cursor: pointer;
}

.cookie-consent-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-consent-switch-ui {
  position: relative;
  flex-shrink: 0;
  width: 2.6rem;
  height: 1.45rem;
  background: #3a4048;
  border-radius: 999px;
  transition: background 0.18s ease;
}

.cookie-consent-switch-ui::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.15rem;
  height: 1.15rem;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease;
}

.cookie-consent-switch input:checked + .cookie-consent-switch-ui {
  background: var(--accent);
}

.cookie-consent-switch input:checked + .cookie-consent-switch-ui::after {
  transform: translateX(1.15rem);
}

.cookie-consent-switch input:focus-visible + .cookie-consent-switch-ui {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body.has-cookie-consent {
  padding-bottom: 8.5rem;
}

@media (max-width: 575.98px) {
  .cookie-consent-actions {
    width: 100%;
  }

  body.has-cookie-consent {
    padding-bottom: 13rem;
  }
}

.to-top {
  position: fixed;
  right: max(1rem, var(--gutter));
  bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px));
  z-index: 1035;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid #4a515b;
  border-radius: 0.75rem;
  background: var(--bg-elevated);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.4rem);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.to-top:hover,
.to-top:active {
  background: #22262c;
  border-color: #8b929b;
}

.to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.to-top__glyph {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.to-top__glyph::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 0.72rem;
  height: 0.72rem;
  border-left: 2px solid var(--text);
  border-top: 2px solid var(--text);
  border-radius: 1px;
  transform: translate(-50%, -55%) rotate(45deg);
}

body.has-cookie-consent .to-top {
  bottom: calc(8.5rem + 0.65rem);
}

@media (max-width: 575.98px) {
  body.has-cookie-consent .to-top {
    bottom: calc(13rem + 0.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .to-top {
    transition: none;
  }
}

.about-services {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem 1.25rem;
}

@media (min-width: 768px) {
  .about-services {
    grid-template-columns: 1fr 1fr;
  }
}

.about-services a {
  color: var(--text-muted);
}

.about-services a:hover {
  color: var(--text);
}

/* Lead page (/ocenka) — dark hero + light paper body (same system as the other inner pages) */
body.page-lead {
  --lead-bg: #f1f3f5;
  --lead-text: #1a1d21;
  --lead-muted: #5a6169;
  --lead-line: #dde0e5;
  --lead-field: #fff;
}

body.page-lead .page-body {
  color: var(--lead-text);
}

body.page-lead .lead-form__stub {
  color: var(--lead-muted);
  border-bottom-color: var(--lead-line);
}

body.page-lead .lead-form__label {
  color: var(--lead-muted);
}

body.page-lead .lead-form__input {
  background: var(--lead-field);
  border-color: #b7bcc3;
  color: var(--lead-text);
}

body.page-lead .lead-form__input::placeholder {
  color: #7a828b;
}

body.page-lead .lead-form__input:hover {
  border-color: #8d949c;
}

body.page-lead .lead-form__input:focus {
  border-color: var(--accent);
  background: var(--lead-field);
}

body.page-lead .lead-form__input.is-err,
body.page-lead .lead-form__input.is-err:focus {
  border-color: #c45c5c;
}

body.page-lead .lead-drop {
  background: var(--lead-field);
  border-color: #b7bcc3;
}

body.page-lead .lead-drop:hover,
body.page-lead .lead-drop:focus-visible {
  border-color: #8d949c;
}

body.page-lead .lead-drop.is-dragover {
  background: #fff4f4;
}

body.page-lead .lead-drop__icon {
  background: var(--lead-bg);
}

body.page-lead .lead-drop__icon::before,
body.page-lead .lead-drop__icon::after {
  background: var(--lead-text);
}

body.page-lead .lead-drop__title {
  color: var(--lead-text);
}

body.page-lead .lead-drop__or,
body.page-lead .lead-drop__hint {
  color: var(--lead-muted);
}

body.page-lead .lead-drop__item {
  background: var(--lead-bg);
  border-color: var(--lead-line);
}

body.page-lead .lead-drop__add {
  border-color: #b7bcc3;
  color: var(--lead-muted);
}

body.page-lead .lead-drop__add:hover,
body.page-lead .lead-drop__add:focus-visible {
  border-color: var(--lead-text);
  color: var(--lead-text);
}

body.page-lead .lead-form__consent {
  color: var(--lead-muted);
}

body.page-lead .lead-form__consent a {
  color: var(--lead-text);
}

body.page-lead .lead-form__consent a:hover {
  color: var(--accent);
}

body.page-lead .lead-form__status.is-ok {
  color: var(--lead-text);
}

body.page-lead .btn-outline-light {
  --bs-btn-color: var(--lead-text);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #b7bcc3;
  --bs-btn-hover-color: var(--lead-text);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: var(--lead-text);
  --bs-btn-active-color: var(--lead-text);
  --bs-btn-active-bg: #fff;
  --bs-btn-active-border-color: var(--lead-text);
}

.lead-form-wrap {
  margin-top: 3.5rem;
}

.lead-form {
  width: 100%;
  max-width: none;
  position: relative;
}

.lead-form__stub {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1.75rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
}

.lead-form__stub a {
  color: var(--accent);
  text-decoration: none;
}

.lead-form__stub a:hover {
  color: var(--accent-hover);
}

.lead-form__hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.lead-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1rem;
}

.lead-form__field--full {
  grid-column: 1 / -1;
}

.lead-form__label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.lead-form__input {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  line-height: 1.4;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lead-form__textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.lead-form__input::placeholder {
  color: var(--text-muted);
}

.lead-form__input:hover {
  border-color: #3a414b;
}

.lead-form__input:focus {
  outline: none;
  border-color: var(--accent);
  background: #1a1e24;
}

.lead-form__input.is-err,
.lead-form__input.is-err:focus {
  border-color: #c45c5c;
}

.lead-drop {
  position: relative;
  display: block;
  width: 100%;
  padding: 1.35rem 1.15rem;
  border: 1.5px dashed var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 48%),
    var(--bg-elevated);
  cursor: pointer;
  transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.lead-drop:hover,
.lead-drop:focus-visible {
  border-color: #4a5560;
  outline: none;
}

.lead-drop.is-dragover {
  border-color: var(--accent);
  border-style: solid;
  background: #1c1418;
  transform: translateY(-1px);
}

.lead-drop.is-filled {
  padding: 1rem;
}

.lead-drop__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.lead-drop__prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 0.85rem 0.5rem 0.55rem;
}

.lead-drop.is-filled .lead-drop__prompt {
  display: none;
}

.lead-drop__icon {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 0.55rem;
  border-radius: 12px;
  background: #ffffff;
  position: relative;
}

.lead-drop__icon::before,
.lead-drop__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #2a2f36;
  border-radius: 1px;
  transform: translate(-50%, -50%);
}

.lead-drop__icon::before {
  width: 0.95rem;
  height: 2px;
}

.lead-drop__icon::after {
  width: 2px;
  height: 0.95rem;
}

.lead-drop__title {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
}

.lead-drop__or {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.lead-drop__hint {
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
  max-width: 22rem;
}

.lead-drop__previews {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}

.lead-drop__previews[hidden] {
  display: none;
}

.lead-drop__item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-muted);
  border: 1px solid var(--line);
}

.lead-drop__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead-drop__remove {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(18, 20, 23, 0.82);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  font-size: 1rem;
}

.lead-drop__remove:hover,
.lead-drop__remove:focus-visible {
  background: var(--accent);
  outline: none;
}

.lead-drop__add {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.lead-drop__add:hover,
.lead-drop__add:focus-visible {
  border-color: var(--text-muted);
  color: var(--text);
  outline: none;
}

.lead-drop__error {
  margin: 0.55rem 0 0;
  color: var(--accent);
  font-size: 0.88rem;
}

.lead-form__consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  cursor: pointer;
}

.lead-form__consent input {
  margin-top: 0.28rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.lead-form__consent a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.lead-form__consent a:hover {
  color: var(--accent);
}

.lead-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.lead-form__actions .btn {
  min-height: 2.85rem;
  padding-inline: 1.25rem;
  border-radius: 12px;
}

.lead-form__status {
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.lead-form__status.is-ok {
  color: var(--text);
}

.lead-form__status.is-err {
  color: var(--accent);
}

@media (max-width: 575.98px) {
  .lead-form__grid {
    grid-template-columns: 1fr;
  }

  .lead-drop {
    padding: 1.15rem 0.95rem;
  }

  .lead-form__actions {
    flex-direction: column;
  }

  .lead-form__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-form__input,
  .lead-drop {
    transition: none;
  }

  .lead-drop.is-dragover {
    transform: none;
  }
}

/* HTML sitemap (/sitemap) */
.sitemap-page .section-lead a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.sitemap-toolbar {
  display: grid;
  gap: 0.75rem;
  margin: 1.75rem 0 1.25rem;
}

.sitemap-search-wrap {
  position: relative;
  display: block;
  margin: 0;
}

.sitemap-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 1.05rem;
  height: 1.05rem;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.55;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M10.5 3a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15Zm0 2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11Zm7.03 12.47 3.2 3.2-1.42 1.42-3.2-3.2 1.42-1.42Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sitemap-search-input {
  min-height: 3rem;
  padding-left: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
}

.sitemap-search-input:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
}

.sitemap-search-meta {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.sitemap-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.sitemap-jump__link {
  border-radius: 999px;
}

.sitemap-grid {
  display: grid;
  gap: 1rem;
}

.sitemap-section {
  padding: 1.25rem 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  scroll-margin-top: 5rem;
}

.sitemap-section-head {
  display: grid;
  gap: 0.65rem;
}

.sitemap-section-title-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.sitemap-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.25;
}

.sitemap-section-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.sitemap-section-hint {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.sitemap-links {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.sitemap-links__a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.sitemap-links__a:hover {
  color: var(--accent-hover);
}

.sitemap-links__meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.sitemap-empty {
  margin-top: 1rem;
  color: var(--text-muted);
}

.sitemap-foot-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}


/* ---------- /ocenka: dedicated lead page ---------- */
.ocenka__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}

.ocenka__subtitle {
  margin: 1.75rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.ocenka__list,
.ocenka__steps {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ocenka__list li {
  position: relative;
  padding-left: 1.5rem;
}

.ocenka__list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.7em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.ocenka__steps {
  counter-reset: ocenka-step;
}

.ocenka__steps li {
  position: relative;
  padding-left: 2.25rem;
  counter-increment: ocenka-step;
}

.ocenka__steps li::before {
  content: counter(ocenka-step);
  position: absolute;
  left: 0;
  top: 0.05em;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
}

.ocenka__alt {
  margin: 1.75rem 0 0;
  color: var(--lead-muted, var(--text-muted));
}

.ocenka__form {
  padding: 2rem;
  border-radius: 18px;
  background: #fff;
}

body.page-lead .ocenka__subtitle {
  color: var(--lead-text);
}

.ocenka__subtitle--first {
  margin-top: 0;
}

body.page-lead .lead-form__consent,
body.page-lead .lead-form__consent span {
  color: var(--lead-muted);
}

@media (max-width: 991.98px) {
  .ocenka__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 575.98px) {
  .ocenka__form {
    padding: 1.35rem;
  }
}

/* ---------- Photo placeholder ---------- */
.photo-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0;
  padding: 1.25rem;
  border: 1.5px dashed #4a525c;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 12px, transparent 12px 24px),
    #171a1f;
  color: var(--text);
  overflow: hidden;
}

.photo-slot__icon {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 1.75rem;
  height: 1.75rem;
  opacity: 0.4;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8eaed' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8a2 2 0 0 1 2-2h2l1.5-2h7L17 6h2a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.photo-slot__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(225, 29, 46, 0.16);
  color: #ff8a95;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.photo-slot__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.photo-slot__title {
  font-weight: 700;
  font-size: 0.9375rem;
}

.photo-slot__brief {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Photo placeholder on light sections */
.section--light .photo-slot {
  border-color: #a9b0b9;
  background:
    repeating-linear-gradient(135deg, rgba(26, 29, 33, 0.035) 0 12px, transparent 12px 24px),
    #eef0f3;
  color: var(--light-text);
}

.section--light .photo-slot__icon {
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1d21' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8a2 2 0 0 1 2-2h2l1.5-2h7L17 6h2a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E");
}

.section--light .photo-slot__badge {
  background: rgba(225, 29, 46, 0.1);
  color: #c4132a;
}

.section--light .photo-slot__brief {
  color: var(--light-muted);
}

/* ---------- Service page: price rows ---------- */
.service-prices {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.service-prices__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.service-prices__row:first-child {
  border-top: 1px solid var(--line);
}

.service-prices__value {
  flex-shrink: 0;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
}

.service-prices__note {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

@media (max-width: 575.98px) {
  .service-prices__row {
    flex-direction: column;
    gap: 0.2rem;
  }
}


/* ================= Service pages: dark hero → light content → light related ================= */
.page-service .service-hero {
  padding-block: clamp(1.25rem, 3vw, 2.25rem) clamp(2.5rem, 5vw, 3.75rem);
}

.page-service .service-hero .lead-text {
  max-width: 38rem;
  font-size: 1.08rem;
}

:is(.page-service, .page-catalog, .page-error) .service-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.page-service .service-hero .media-frame {
  border-radius: 18px;
  overflow: hidden;
}

:is(.page-service, .page-catalog, .page-price, .page-gallery, .page-contacts, .page-lead, .page-legal, .page-utility, .page-error) .section--light {
  border-block: 0;
  --light-bg: #e6e8ec;
}

:is(.page-service, .page-catalog, .page-price, .page-gallery, .page-contacts, .page-lead, .page-legal, .page-utility, .page-error) .section--paper {
  --light-bg: #f1f3f5;
  --light-line: #dde0e5;
}

.page-service .service-body {
  padding-block: var(--space-section);
}

.page-service .service-body p,
.page-service .service-body li {
  color: #3a4048;
  line-height: 1.7;
}

.page-service .service-body .service-list__title {
  color: var(--light-text);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 2rem;
}

.page-service .service-body__main > .service-list__title:first-child,
.page-service .service-body__main > p:first-child {
  margin-top: 0;
}

.page-service .service-body p.service-list__title {
  font-size: 1rem;
  margin-top: 1.25rem;
}

.page-service .service-body a {
  color: var(--accent);
}

.page-service .service-prices-card {
  margin-top: 2.5rem;
  padding: clamp(1.25rem, 3vw, 1.85rem);
  background: #fff;
  border-radius: 18px;
}

.page-service .service-prices-card .service-list__title {
  margin-top: 0;
}

.page-service .service-prices-card .service-prices__row {
  border-color: #e3e6ea;
}

.page-service .service-prices-card .service-prices__row:first-child {
  border-top-color: #e3e6ea;
}

.page-service .service-prices-card .service-prices__name {
  color: #3a4048;
}

.page-service .service-prices-card .service-prices__value {
  color: var(--light-text);
}

.page-service .service-prices-card .service-prices__note {
  margin: 0;
  color: var(--light-muted);
}

.page-service .service-body__aside {
  align-self: start;
}

@media (min-width: 992px) {
  .page-service .service-body__aside {
    position: sticky;
    top: 1.5rem;
  }
}

.page-service .service-body .service-gallery {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.page-service .service-body .media-frame {
  border-radius: 18px;
  overflow: hidden;
}

.page-service .service-aside-card {
  padding: 1.5rem;
  background: var(--bg);
  border-radius: 18px;
  color: var(--text);
}

.page-service .service-aside-card__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff !important;
}

.page-service .service-body .service-aside-card__text {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.page-service .service-aside-card .btn {
  display: block;
  width: 100%;
  color: #fff;
}

.page-service .service-aside-card__actions {
  display: grid;
  gap: 0.6rem;
}

.page-service .service-aside-card .btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.page-service .service-aside-card .btn-outline-light:hover,
.page-service .service-aside-card .btn-outline-light:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}

.page-service .service-zoom {
  display: block;
  cursor: zoom-in;
}

.page-service .service-zoom img {
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.page-service .service-zoom:hover img {
  transform: scale(1.03);
}

.page-service .service-figure {
  margin: 0;
}

.page-service .service-figure__caption {
  margin-top: 0.4rem;
  padding: 0 0.25rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--light-muted);
}

.page-service .service-trust-card {
  margin-top: 1rem;
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  color: var(--light-text);
}

.page-service .service-trust-card__title {
  margin: 0;
  padding: 1.2rem 1.25rem 0.85rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--light-text);
}

.page-service .service-trust-card__list {
  margin: 0;
  padding: 0 1.25rem;
  list-style: none;
  display: grid;
}

.page-service .service-trust-card__list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.85rem;
  border-top: 1px solid #e6e8ec;
}

.page-service .service-trust-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.6 2.5L12 5.5'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}

.page-service .service-trust-card__label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--light-text);
}

.page-service .service-trust-card__note {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--light-muted);
}

.page-service .service-trust-card__rating {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.15rem;
  padding: 0.95rem 1.25rem;
  background: var(--bg);
  color: #fff;
  text-decoration: none;
}

.page-service .service-trust-card__rating:hover {
  color: #fff;
}

.page-service .service-trust-card__score {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.page-service .service-trust-card__rating-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.78);
}

.page-service .service-trust-card__rating:hover .service-trust-card__rating-text {
  color: #fff;
}

.page-service .service-trust-card__arrow {
  flex: 0 0 auto;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.page-service .service-trust-card__rating:hover .service-trust-card__arrow {
  transform: translateX(3px);
}

.page-service .service-body .service-aside-card__phone {
  display: block;
  margin-top: 0.9rem;
  text-align: center;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.page-service .service-body .service-aside-card__phone:hover {
  color: #fff;
}

/* Related services: white cards on grey, image on top */
.page-service .service-grid--related {
  gap: 1.25rem;
}

.page-service .service-grid--related .service-link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  transition: transform 0.2s ease;
}

.page-service .service-grid--related .service-link:hover {
  transform: translateY(-2px);
}

.page-service .service-grid--related .service-link__media {
  border-radius: 0;
  background: #d8dbe0;
}

.page-service .service-grid--related .service-link__img {
  height: 9.5rem;
}

.page-service .service-grid--related .service-link__body {
  gap: 0.4rem;
  padding: 1.1rem 1.25rem 1.35rem;
}

.page-service .service-grid--related .service-link__title {
  font-size: 1.1rem;
}

.page-service .service-grid--related .service-link__desc {
  font-size: 0.92rem;
  color: var(--light-muted);
}

/* ================= Catalog (/uslugi): dark hero → light grouped cards ================= */
.catalog-hero,
.page-hero {
  padding-block: clamp(1.25rem, 3vw, 2.25rem) clamp(2.5rem, 5vw, 3.75rem);
}

.catalog-hero .lead-text,
.page-hero .section-lead {
  max-width: 42rem;
  margin-bottom: 0;
  font-size: 1.08rem;
}

.page-hero .legal-doc__meta {
  margin-bottom: 0.5rem;
}

.catalog-body {
  padding-block: var(--space-section);
}

.catalog-group + .catalog-group,
.cta-bar + .catalog-group {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
}

.catalog-group__head {
  margin-bottom: 1.5rem;
}

.catalog-group__head .section-title {
  margin-bottom: 0.4rem;
}

.catalog-group__head .section-lead {
  margin: 0;
}

/* Catalog cards: same anatomy and behaviour as the home task cards (.lp-task):
   white card, transparent 1px border that turns accent on hover, image zoom, price + arrow footer. */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 1199.98px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

.catalog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 18px;
  background: #fff;
  color: var(--light-text);
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.catalog-card:hover {
  color: var(--light-text);
  border-color: var(--accent);
}

.catalog-card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e6e8ec;
}

.catalog-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.catalog-card:hover .catalog-card__img {
  transform: scale(1.05);
}

.catalog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.1rem 1.15rem 1.15rem;
}

.catalog-card__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.catalog-card__text {
  flex: 1;
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--light-muted);
}

.catalog-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid #e6e8ec;
}

.catalog-card__price {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--light-text);
}

.catalog-card__arrow {
  color: var(--accent);
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.catalog-card:hover .catalog-card__arrow {
  transform: translateX(4px);
}

@media (max-width: 575.98px) {
  .catalog-card {
    flex-direction: row;
  }

  .catalog-card__media {
    flex: 0 0 38%;
    aspect-ratio: auto;
  }

  .catalog-card__body {
    padding: 0.9rem 1rem;
  }

  .catalog-card__text {
    margin-bottom: 0.65rem;
    font-size: 0.8125rem;
  }

  .catalog-card__foot {
    padding-top: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-card,
  .catalog-card__img,
  .catalog-card__arrow {
    transition: none;
  }
}

/* ================= Inner pages: dark hero → light paper body (price, gallery, contacts, legal, sitemap, 404) ================= */
.page-body {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.page-body .section-title {
  color: var(--light-text);
}

.page-body .page-note a {
  white-space: nowrap;
}

.page-body .page-note {
  max-width: 48rem;
  margin: 0 0 2.25rem;
  color: var(--light-muted);
  line-height: 1.65;
}

/* Price table: white card, hairline rows */
.page-body .price-table-wrap {
  padding: 0.5rem clamp(1rem, 3vw, 1.75rem);
  border-radius: 18px;
  background: #fff;
}

.page-body .price-table {
  --bs-table-color: var(--light-text);
  --bs-table-border-color: #e6e8ec;
}

.page-body .price-table thead th {
  color: var(--light-muted);
}

.page-body .price-table tbody tr:last-child td {
  border-bottom-width: 0;
}

.page-body .price-table tbody tr:hover {
  --bs-table-color: var(--light-text);
}

/* Contacts */
.page-body .contact-card {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 18px;
  background: #fff;
}

.page-body .contact-list dt {
  color: var(--light-muted);
}

.page-body .contact-list dd {
  color: var(--light-text);
}

.page-body .contact-card .d-flex {
  margin-top: 1.75rem;
}

.page-body .map-frame {
  height: 100%;
  min-height: 24rem;
  border-radius: 18px;
  background: #fff;
}

.page-body .map-frame iframe {
  height: 100%;
  min-height: 24rem;
}

/* Gallery */
.page-body.gallery-page .gallery-filter {
  border: 1px solid #b7bcc3;
  border-radius: 12px;
  background: #fff;
  color: var(--light-text);
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.page-body.gallery-page .gallery-filter:hover {
  color: var(--light-text);
  border-color: var(--light-text);
}

.page-body.gallery-page .gallery-filter.is-active {
  color: #fff;
  border-color: var(--light-text);
  background: var(--light-text);
}

.page-body.gallery-page .gallery-item {
  border-radius: 14px;
  background: #d8dbe0;
}

/* Legal documents: one white reading card */
.legal-card {
  max-width: 60rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  border-radius: 18px;
  background: #fff;
}

.legal-card > :first-child {
  margin-top: 0;
}

.legal-card h2,
.legal-card h3 {
  color: var(--light-text);
}

.legal-card h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.legal-card p,
.legal-card li {
  color: #3d444c;
  line-height: 1.65;
}

.legal-card strong {
  color: var(--light-text);
}

.legal-card code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: #eef0f3;
  color: var(--light-text);
}

/* Sitemap */
.page-body .sitemap-search-input {
  border: 1px solid #b7bcc3;
  background: #fff;
  color: var(--light-text);
}

.page-body .sitemap-search-meta,
.page-body .sitemap-section-hint,
.page-body .sitemap-links__meta,
.page-body .sitemap-empty {
  color: var(--light-muted);
}

.page-body .sitemap-jump__link {
  border: 1px solid #b7bcc3;
  background: #fff;
  color: var(--light-text);
  font-weight: 500;
}

.page-body .sitemap-jump__link:hover {
  border-color: var(--light-text);
  color: var(--light-text);
}

.page-body .sitemap-section {
  border: 0;
  border-radius: 18px;
  background: #fff;
}

.page-body .sitemap-section-title {
  color: var(--light-text);
}

.page-body .sitemap-section-count {
  border-color: #dde0e5;
  color: var(--light-muted);
}

.page-body .sitemap-links__a {
  color: var(--light-text);
}

.page-body .sitemap-links__a:hover {
  color: var(--accent);
}

.page-body .sitemap-section-toggle {
  color: var(--light-muted);
}

.page-body .sitemap-foot-cta {
  border-top-color: #dde0e5;
}

.page-body .sitemap-foot-cta p {
  color: var(--light-muted);
}

.page-body .sitemap-foot-cta .btn-link {
  color: var(--light-text);
}
