:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-strong: #0f1720;
  --surface-soft: #ebf0f4;
  --text: #0c1828;
  --text-soft: #3d5166;
  --line: rgba(16, 32, 50, 0.12);
  --brand: #0b78b7;
  --brand-deep: #0a4e78;
  --accent: #d8a942;
  --accent-coral: #f26b5b;
  --accent-sun: #ffbf47;
  --accent-mint: #6fcf97;
  --danger: #d9473f;
  --danger-deep: #b9322b;
  --ok: #0f766e;
  --shadow: 0 18px 40px rgba(16, 32, 50, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --header-nav-breakpoint: 1040px;
  /* Від хедера до рядка крихт (перша секція в main); також margin-bottom у .breadcrumbs — один rhythm */
  --main-breadcrumb-offset-top: 15px;
  /* min-height 80px + border 1px у .site-header__inner */
  --site-header-offset: 81px;
  /* Горизонтальний відступ текстового блоку під крихтами (герой тощо) */
  --hero-copy-offset: 50px;
  /* Лівий край тексту героя = лівий край CTA на PNG (hero-home-cta) */
  --hero-cta-inset: 20px;
  /* Горизонтальний «гаттер» тексту всередині картки тематичної секції послуг */
  --services-topic-card-padding-x: clamp(18px, 3vw, 32px);
  /* Сила «сіруватого» фону: змішування з білим на body та у hero (інакше герой закриває фон суцільним --bg). 1 ≈ як раніше; менше — світліше й PNG помітніший */
  --page-bg-tint-opacity: 0.95;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--site-header-offset);
  /* Keeps centered layout aligned when the scrollbar appears/disappears (e.g. windowed vs “full screen”) */
  scrollbar-gutter: stable;
  overflow-y: scroll;
  /* База під градієнт: якщо та сама що кінець градієнта (#f4f6f8), зміна альфи не видна */
  background-color: #fff;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(
      circle at top left,
      rgba(11, 120, 183, calc(0.08 * var(--page-bg-tint-opacity))),
      transparent 24%
    ),
    radial-gradient(
      circle at 88% 12%,
      rgba(242, 107, 91, calc(0.08 * var(--page-bg-tint-opacity))),
      transparent 18%
    ),
    radial-gradient(
      circle at 14% 82%,
      rgba(255, 191, 71, calc(0.08 * var(--page-bg-tint-opacity))),
      transparent 16%
    ),
    linear-gradient(
      180deg,
      rgba(251, 252, 253, var(--page-bg-tint-opacity)) 0%,
      rgba(244, 246, 248, var(--page-bg-tint-opacity)) 100%
    );
}

body.menu-open {
  overflow: hidden;
}

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

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

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Desktop: the “Що ремонтуємо” nav trigger should not show a focus rectangle. */
@media (min-width: 821px) {
  #nav-more-trigger {
    border-color: transparent;
    box-shadow: none;
    outline: none;
  }

  #nav-more-trigger:focus,
  #nav-more-trigger:focus-visible {
    outline: none;
    box-shadow: none;
    border-color: transparent;
  }
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow-readable p + p {
  margin-top: 1rem;
}

.narrow-readable {
  max-width: min(740px, 100%);
}

.list-prose {
  max-width: 860px;
  line-height: 1.55;
}

.list-prose li + li {
  margin-top: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  align-self: flex-start;
  backdrop-filter: blur(16px);
  background: rgba(254, 254, 254, 0.92);
  border-bottom: 1px solid rgba(16, 32, 50, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  min-height: 80px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
}

.brand__logo {
  display: block;
  width: clamp(152px, 15vw, 208px);
  height: auto;
}

.brand__wordmark {
  display: inline-block;
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 14px 26px rgba(11, 120, 183, 0.22);
}

.brand__meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand__name {
  font-size: 1rem;
}

.brand__tag {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 10px;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.header-phones {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.header-phones.header-phones--center {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}

@media (max-width: 820px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand phones menu";
    align-items: center;
    column-gap: 12px;
  }

  .site-header__inner > .brand {
    grid-area: brand;
    justify-self: start;
  }

  .site-header__inner > .menu-toggle {
    grid-area: menu;
    justify-self: end;
  }

  .header-phones.header-phones--center {
    grid-area: phones;
    grid-row: 1;
    justify-self: center;
    z-index: 2;
    padding: 0 6px;
  }
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 20px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.header-phone:hover,
.header-phone:focus-visible {
  color: var(--brand-deep);
  opacity: 1;
}

.hero-contact-phones {
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
}

.hero-contact-phones .header-phone {
  width: auto;
}

.hero-contact-phone-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
}

.hero-contact-schedule {
  margin-top: 14px;
}

.page-contact .hero .hero-contact-phone-block .contact-schedule-title {
  margin-bottom: 12px;
}

.page-contact .hero .hero-contact-phone-block .hero-contact-phones {
  margin-top: 8px;
}

.page-contact .hero .hero-contact-schedule > .contact-schedule-title {
  margin-bottom: 12px;
}

/* Підзаголовки «Телефони» / «Графік роботи» на сторінці Контакти */
.page-contact .hero .contact-schedule-title {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 3.35vw, 3rem);
  line-height: 1.06;
  max-width: 700px;
  font-weight: 700;
  color: var(--text);
}

.page-contact .hero .hero-contact-hours {
  margin: 0;
  padding-top: 0;
  margin-inline-start: 0;
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
}

.page-contact .hero .hero-contact-area {
  margin: 10px 0 0;
  padding: 0;
  margin-inline-start: 20px;
  max-width: 28rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.38;
  color: var(--text-soft);
}

.page-contact .hero .hero__intro--contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 46rem;
}

/* Контакти: hero без зайвого padding — висоту задає flex між хедером і футером */
body.page-contact #main-content > .hero.hero--home-fullwidth:first-child {
  padding-bottom: 0;
}

.page-contact .hero .hero__intro--contact .hero-intro-body h1 {
  margin: 0;
}

.page-contact .hero .hero__intro--contact .lead {
  margin-top: 0;
  margin-bottom: 16px;
}

/* Контакти: телефони в герої — як у хедері (колонка, .header-phone) */
.hero--home-fullwidth .hero-intro-contact-details {
  text-indent: 0;
  margin-top: clamp(28px, 6vh, 88px);
}

.hero--home-fullwidth .hero-intro-contact-details .hero-contact-label {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  text-indent: 0;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 24px rgba(244, 246, 248, 0.98);
}

.hero--home-fullwidth .hero-intro-contact-details .hero-contact-phones {
  margin: 0 0 10px;
}

.hero--home-fullwidth .hero-intro-contact-details .header-phone {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 24px rgba(244, 246, 248, 0.98);
}

.hero--home-fullwidth .hero-intro-contact-details .hero-contact-meta {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.68;
  color: var(--text-soft);
  text-indent: 0;
}

.hero--home-fullwidth .hero-intro-contact-details .hero-contact-meta > span {
  display: block;
}

.hero--home-fullwidth .hero-intro-contact-details .hero-contact-area {
  margin-top: 6px;
}

@media (max-width: 820px) {
  :root {
    --hero-copy-offset: 0px;
  }

  body {
    background-color: #eceff4;
    background-image: url("./mobile-brands-watermark.svg");
    background-size: 500px;
    background-repeat: repeat;
    background-position: center top;
    background-attachment: scroll;
    position: relative;
    isolation: isolate;
  }

  body::before {
    content: none;
    display: none;
  }

  body > * {
    position: relative;
    z-index: 1;
  }

  .hero::before {
    display: none;
    content: none;
    background: none;
  }

  body::after {
    content: none;
  }

  /* Mobile: main прозорий — видно watermark на body на всіх сторінках */
  #main-content {
    position: static;
    isolation: auto;
    background: transparent;
    background-image: none;
  }

  #main-content::before {
    content: none;
  }

  #main-content > * {
    position: relative;
    z-index: 1;
  }

  .hero-contact-phones {
    align-items: flex-start;
    width: auto;
  }

  .hero-contact-phones .header-phone {
    justify-content: flex-start;
    width: auto;
  }
}

@keyframes mobileBgDrift {
  0% {
    transform: translate3d(-6%, -4%, 0) scale(1.02);
    filter: blur(14px) hue-rotate(0deg);
  }
  100% {
    transform: translate3d(6%, 4%, 0) scale(1.04);
    filter: blur(16px) hue-rotate(-10deg);
  }
}

@media (min-width: 821px) {
  .site-header__inner {
    min-height: 82px;
    flex-wrap: nowrap;
    gap: 20px;
  }

  .nav {
    display: contents;
  }

  .nav-list {
    order: 3;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
    padding-left: 20px;
  }

  .nav-list > li + li {
    margin-left: 20px;
  }

  .site-header .header-phones {
    order: 2;
    margin-left: 20px;
    margin-right: 20px;
  }

  .button-danger {
    order: 4;
    margin-left: 20px;
  }

  .site-header .header-phones {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 4px;
  }

  .site-header .header-phone {
    min-height: 0;
    font-size: 20px;
    line-height: 1.2;
  }

  .button-danger {
    min-height: 0;
    padding: 0;
    white-space: nowrap;
    background: transparent;
    box-shadow: none;
    border: 0;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
  }

  .button-danger:hover,
  .button-danger:focus-visible {
    background: transparent;
    box-shadow: none;
    color: var(--brand-deep);
    opacity: 0.9;
    white-space: nowrap;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 0;
  color: var(--text);
  background: transparent;
  font-weight: 500;
  text-shadow: none;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--brand-deep);
  background: transparent;
}

.nav-item--dropdown {
  position: relative;
}

.nav-link--parent {
  gap: 6px;
}

.nav-link--parent::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  opacity: 0.55;
  margin-top: 2px;
}

.nav-link--burger {
  justify-content: center;
  padding: 10px 12px;
  min-width: 44px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.nav-burger {
  position: relative;
  width: 18px;
  height: 12px;
  display: block;
  /* Robust “burger” rendering on mobile browsers:
     draw 3 bars on the element itself so it doesn't depend on ::before. */
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  opacity: 0.75;
}

.nav-burger::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 2px;
  top: 0;
  background: currentColor;
  border-radius: 999px;
  box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
  opacity: 0.75;
}

.nav-sub {
  display: none;
  list-style: none;
  margin: 0;
  padding: 10px;
  min-width: min(280px, calc(100vw - 48px));
  border-radius: var(--radius-md);
  background: rgba(254, 254, 254, 0.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  gap: 4px;
  flex-direction: column;
  z-index: 30;
}

.nav-sublink {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--text-soft);
}

.nav-sublink:hover,
.nav-sublink:focus-visible,
.nav-sublink.is-active {
  color: var(--brand-deep);
  background: rgba(11, 120, 183, 0.08);
}

.nav-item--dropdown:has(.nav-sublink.is-active) .nav-link--parent {
  color: var(--brand-deep);
  background: transparent;
}

@media (min-width: 1041px) {
  .nav-sub {
    position: absolute;
    /* Flush with trigger so hover is not lost in a dead gap */
    top: 100%;
    left: 0;
    padding-top: 12px;
  }

  .nav-item--dropdown:hover .nav-sub,
  .nav-item--dropdown:focus-within .nav-sub {
    display: flex;
  }
}

@media (max-width: 820px) {
  .nav-sub {
    position: static;
    width: auto;
    min-width: min(280px, 100%);
    margin-top: 8px;
    padding: 8px 8px 8px 12px;
    border-left: 3px solid rgba(11, 120, 183, 0.35);
    border-radius: 14px;
    background: rgba(11, 120, 183, 0.06);
    box-shadow: none;
  }

  .nav-item--dropdown.is-open .nav-sub {
    display: flex;
  }
}

.button,
.button-secondary,
.button-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 14px 28px rgba(11, 120, 183, 0.18);
}

.button:hover,
.button:focus-visible,
.button-secondary:hover,
.button-secondary:focus-visible,
.button-danger:hover,
.button-danger:focus-visible {
  transform: translateY(-1px);
}

.button:hover,
.button:focus-visible {
  background: var(--brand-deep);
  box-shadow: 0 16px 30px rgba(10, 78, 120, 0.22);
}

.button-secondary {
  color: var(--brand-deep);
  background: rgba(11, 120, 183, 0.08);
  border-color: rgba(11, 120, 183, 0.18);
  box-shadow: 0 10px 22px rgba(16, 32, 50, 0.08);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(11, 120, 183, 0.14);
  border-color: rgba(11, 120, 183, 0.28);
}

.button-danger {
  color: #fff;
  background: linear-gradient(135deg, var(--danger), var(--danger-deep));
  box-shadow: 0 14px 28px rgba(217, 71, 63, 0.26);
}

.button-danger:hover,
.button-danger:focus-visible {
  background: linear-gradient(135deg, #e1534b, #b12d26);
  box-shadow: 0 16px 30px rgba(185, 50, 43, 0.3);
}

.hero {
  padding: 76px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 24px auto auto 50%;
  width: min(560px, 64vw);
  height: min(560px, 64vw);
  transform: translateX(-8%);
  background:
    radial-gradient(circle, rgba(216, 169, 66, 0.22), transparent 56%),
    radial-gradient(circle at 70% 40%, rgba(242, 107, 91, 0.12), transparent 38%);
  pointer-events: none;
  filter: blur(14px);
}

/* Home hero uses a photo background; this glow is anchored to 50% and can read as the scene “sliding” on wide screens */
:is(.page-home, .page-contact, .page-services, .page-maystram)
  .hero.hero--home-fullwidth::before {
  display: none;
  content: none;
  background: none;
}

.page-services .hero.hero--home-fullwidth::after {
  content: none;
  display: none;
  background: none;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 26px;
  position: relative;
  z-index: 1;
}

.hero__layout--single {
  grid-template-columns: 1fr;
}

/* Contact-style hero: don't stretch the visual card to the full text column height */
.hero__layout:has(.hero__aside-stack) {
  align-items: start;
}

.hero__layout:has(.hero__aside-stack) .hero-card--visual {
  min-height: 0;
}

.hero__aside-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.hero-fullbleed {
  width: 100vw;
  margin-top: -96px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  position: relative;
}

.hero--home-fullwidth {
  overflow: visible;
  padding-bottom: 0;
}

.hero--home-fullwidth .hero__layout--single {
  position: relative;
  z-index: 2;
}

.hero--home-fullwidth .hero-fullbleed {
  position: sticky;
  top: 82px;
  z-index: 1;
}

.hero--home-fullwidth + .section.section--tight {
  position: relative;
  z-index: 3;
  margin-top: -132px;
  padding-top: 176px;
  background: linear-gradient(
    180deg,
    rgba(244, 246, 248, 0) 0,
    rgba(244, 246, 248, 0.92) 104px,
    var(--bg) 176px
  );
}

.hero-visual--home-photo {
  display: block;
  width: 100%;
  height: clamp(320px, 40vw, 560px);
  object-fit: cover;
  object-position: center 30%;
  filter: blur(2.4px) brightness(0.92) saturate(0.9) contrast(0.96);
  transform: scale(1.08);
  transform-origin: center;
}

.hero-fullbleed::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.26)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
}

.hero--home-fullwidth .container {
  position: relative;
  z-index: 2;
}

.hero-card--visual-compact {
  min-height: 0;
}

.hero-card--visual-compact .hero-visual {
  min-height: 200px;
  max-height: min(320px, 42vw);
  object-fit: cover;
}

.hero-visual--contact-photo {
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.94) contrast(0.98) brightness(0.94);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(1.85rem, 3.35vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 700px;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.22rem, 1.7vw, 1.74rem);
  line-height: 1.16;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.lead {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--text-soft);
  font-size: 1.125rem;
  line-height: 1.65;
}

.hero-card,
.panel,
.service-card,
.stat-card,
.contact-card,
.step,
.faq-item,
.highlight-card,
.info-band {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.hero-card--visual {
  padding: 0;
  min-height: 100%;
  display: flex;
  align-items: stretch;
  isolation: isolate;
}

.hero-card--visual::before {
  display: none;
}

.hero-card--visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 16, 26, 0.03), rgba(7, 16, 26, 0.11));
}

.hero-visual {
  width: 100%;
  min-height: 100%;
  object-fit: cover;
  filter: none;
  transform: none;
  transform-origin: center;
}

/* Keep anti-AI softening only for raster heroes if they return */
.hero-visual[src$=".png"] {
  filter: saturate(0.88) contrast(0.96) brightness(0.98);
  transform: scale(1.005);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--accent-coral));
}

.hero-card ul,
.service-card ul,
.faq-item ul,
.contact-card ul {
  margin: 0;
  padding-left: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.proof-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proof-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid rgba(11, 120, 183, 0.2);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(16, 32, 50, 0.06);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 650;
}

.stats,
.cards,
.steps,
.faq-grid,
.contact-grid,
.split-layout,
.highlight-grid {
  display: grid;
  gap: 20px;
}

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

.stat-card {
  padding: 15px;
  border-radius: var(--radius-md);
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.9rem;
  line-height: 1;
}

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

.service-card,
.contact-card,
.highlight-card,
.faq-item,
.step {
  padding: 24px;
  border-radius: var(--radius-md);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.service-card:nth-child(3n + 1),
.contact-card:nth-child(3n + 1),
.highlight-card:nth-child(3n + 1),
.faq-item:nth-child(3n + 1),
.step:nth-child(3n + 1) {
  border-top: 4px solid rgba(11, 120, 183, 0.42);
}

.service-card:nth-child(3n + 2),
.contact-card:nth-child(3n + 2),
.highlight-card:nth-child(3n + 2),
.faq-item:nth-child(3n + 2),
.step:nth-child(3n + 2) {
  border-top: 4px solid rgba(255, 191, 71, 0.6);
}

.service-card:nth-child(3n),
.contact-card:nth-child(3n),
.highlight-card:nth-child(3n),
.faq-item:nth-child(3n),
.step:nth-child(3n) {
  border-top: 4px solid rgba(242, 107, 91, 0.42);
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card > p:last-child {
  margin-top: auto;
}

.service-card:hover,
.contact-card:hover,
.highlight-card:hover,
.faq-item:hover,
.step:hover,
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 42px rgba(16, 32, 50, 0.12);
  border-color: rgba(11, 120, 183, 0.18);
}

/* Посилання «Детальніше» в картках послуг — читається як клікабельне посилання */
.service-card > p:last-child a {
  font-weight: 400;
  color: var(--brand-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.service-card > p:last-child a:hover {
  color: var(--brand);
}

.section {
  padding: 72px 0;
}

.section--tight {
  padding-top: var(--main-breadcrumb-offset-top);
}

/* Лише крихти в контейнері: без стандартного нижнього padding секції (72px) перед наступним блоком */
main > .section.section--tight:has(.container > nav.breadcrumbs):not(:has(.container > h1)) {
  padding-bottom: 0;
}

/* Хаби з крихтами (fridges/, air-conditioners/ тощо): зсув контенту як у герої головної */
#main-content
  > .section.section--tight
  > .container:has(> nav.breadcrumbs:first-child)
  > :not(nav.breadcrumbs) {
  padding-inline-start: var(--hero-copy-offset);
}

.fridge-brand-index {
  list-style: none;
  padding-left: 0;
  margin: 0 0 48px;
  display: grid;
  gap: 6px;
  max-width: 28rem;
}

.fridge-brand-index li {
  margin: 0;
}

.fridge-brand-index a:hover,
.fridge-brand-index a:focus-visible {
  color: var(--brand);
}

.section--soft {
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 191, 71, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(235, 240, 244, 0.55), rgba(235, 240, 244, 0.2));
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.page-home .section-head {
  margin-bottom: 20px;
}

.page-home .eyebrow {
  margin-bottom: 10px;
}

.page-home .hero--home-fullwidth .eyebrow {
  margin: 0 0 30px;
  line-height: 1;
}

/* Рівні відступи між заголовком, лідом і кнопкою (головна + 4 хаби) */
:is(.page-home, .page-services-index, .page-services.page-service-landing, .page-repair-topics-index, .page-areas-index, .page-contact, .page-maystram)
  .hero--home-fullwidth
  .hero__intro:has(.hero-intro-body) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  max-width: 46rem;
  padding-inline-start: var(--hero-cta-inset);
  padding-inline-end: var(--hero-cta-inset);
  box-sizing: border-box;
}

/* Двоколонковий герой (наприклад автоелектрика, 404): лише текстова колонка */
#main-content
  > .hero.hero--home-fullwidth
  .hero__layout:not(.hero__layout--single)
  > div:first-child {
  padding-inline-start: var(--hero-copy-offset);
  box-sizing: border-box;
}

.hero--home-fullwidth .hero__intro:has(.hero-intro-body) :is(h1, .lead, .hero-intro-extra, .hero-intro-hub) {
  margin: 0;
}

.page-home .hero--home-fullwidth .hero-home-cta .hero-actions,
.page-services.page-services-index .hero--home-fullwidth .hero-home-cta .hero-actions,
.page-services.page-service-landing .hero--home-fullwidth .hero-home-cta .hero-actions,
.page-repair-topics.page-repair-topics-index .hero--home-fullwidth .hero-home-cta .hero-actions,
.page-areas.page-areas-index .hero--home-fullwidth .hero-home-cta .hero-actions,
.page-contact .hero--home-fullwidth .hero-home-cta .hero-actions,
.page-maystram .hero--home-fullwidth .hero-home-cta .hero-actions {
  margin: 0;
}

.hero--home-fullwidth .hero-intro-body {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.4vw, 20px);
}

.hero--home-fullwidth .hero-intro-body .lead {
  margin-bottom: 0;
  text-indent: 2em;
}

/* Однакова типографіка героя; перший рядок кожного абзацу з відступом 2em */
.hero--home-fullwidth .hero-intro-body :is(.lead, .hero-intro-extra, .hero-intro-hub) {
  max-width: 46rem;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.68;
  text-indent: 2em;
}

/* Великий проміжок між абзацами у hero (як у прикладі) */
.hero--home-fullwidth .hero-intro-body .hero-intro-extra {
  margin-top: clamp(28px, 6vh, 88px);
}

.hero--home-fullwidth .hero-intro-body .hero-intro-hub {
  margin-top: clamp(16px, 3.5vh, 52px);
}

.hero--home-fullwidth .hero-intro-hub a {
  color: var(--brand-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.hero--home-fullwidth .hero-intro-hub a:hover,
.hero--home-fullwidth .hero-intro-hub a:focus-visible {
  color: var(--brand);
}

.hero--home-fullwidth .hero-intro-body h1 {
  line-height: 1.14;
  max-width: 46rem;
}

.hero--home-fullwidth .hero-intro-body h1 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.hero--home-fullwidth .hero-intro-body h1 a:hover,
.hero--home-fullwidth .hero-intro-body h1 a:focus-visible {
  color: var(--brand);
}

/* Текст героя на змішаному фоні: трохи чіткіший контури */
.hero.hero--home-fullwidth .hero__intro :is(h1, .lead, .hero-intro-extra, .hero-intro-hub),
.hero.hero--home-fullwidth .hero__intro--services :is(.services-hub__link, .services-hub__desc) {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 18px rgba(244, 246, 248, 0.95);
}

/* Головна / Майстрам / Контакти: посилений контур тексту на PNG-фоні */
:is(.page-home, .page-maystram, .page-contact, .page-areas.page-areas-index, .page-services.page-service-landing)
  .hero__intro
  :is(h1, .lead, .hero-intro-extra, .hero-intro-hub, .contact-schedule-title, .hero-contact-hours, .hero-contact-area) {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 24px rgba(244, 246, 248, 0.98),
    0 0 40px rgba(255, 255, 255, 0.85);
}

body.page-home .hero.hero--home-fullwidth::after,
body.page-maystram .hero.hero--home-fullwidth::after,
body.page-contact .hero.hero--home-fullwidth::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Під PNG і текстом; інакше змиває CTA в лівому нижньому куті */
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(244, 246, 248, 0.94) 0%,
    rgba(244, 246, 248, 0.82) 42%,
    rgba(244, 246, 248, 0.35) 58%,
    transparent 72%
  );
}

.page-home h2 {
  margin-bottom: 10px;
}

.page-home h3 {
  margin-bottom: 8px;
}

.page-home .lead {
  margin-bottom: 20px;
}

:is(.page-home, .page-contact, .page-maystram, .page-services-index, .page-repair-topics.page-repair-topics-index,
.page-areas.page-areas-index) .hero-actions {
  margin: 40px 0;
}

/* Головна, Контакти, Майстрам: кнопку внизу героя, 28px до футера / наступної секції — як хаб Послуги */
:is(.page-home, .page-contact, .page-maystram, .page-repair-topics.page-repair-topics-index,
.page-areas.page-areas-index) #main-content > .hero.hero--home-fullwidth:first-child {
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

:is(.page-home)
  #main-content
  > .hero.hero--home-fullwidth:first-child
  > .container {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 0;
}

:is(.page-contact, .page-maystram, .page-areas.page-areas-index)
  #main-content
  > .hero.hero--home-fullwidth:first-child
  > .container {
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

/* Головна: узгодити “низ” hero з хабом /services/ */
body.page-home
  #main-content
  > .hero.hero--home-fullwidth:first-child
  > .container {
  padding-bottom: var(--main-breadcrumb-offset-top);
}

/* Майстрам: нижній відступ hero — у блоці «хедер — фон — футер» нижче */

:is(.page-home, .page-contact, .page-maystram, .page-repair-topics.page-repair-topics-index,
.page-areas.page-areas-index)
  #main-content
  > .hero.hero--home-fullwidth:first-child
  .hero__layout--single {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

:is(.page-home, .page-contact, .page-maystram, .page-repair-topics.page-repair-topics-index,
.page-areas.page-areas-index)
  #main-content
  > .hero.hero--home-fullwidth:first-child
  .hero__layout--single
  > .hero__intro {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 46rem;
}

/* Головна: зазор лише між блоками в intro (кнопка — у .hero-home-cta на фоні) */
body.page-home #main-content > .hero.hero--home-fullwidth:first-child .hero__intro {
  gap: clamp(32px, 5.5vw, 64px);
  padding-bottom: 0;
}

/*
 * У хабів .container у DOM пізніше за .hero__png-stack і перекриває CTA (текстова колонка на всю висоту hero).
 * Кліки «пропускаємо» крізь контейнер; інтерактив лише в крихтах і посиланнях у тексті героя.
 */
:is(
    body.page-home,
    body.page-services.page-services-index,
    body.page-services.page-service-landing,
    body.page-repair-topics.page-repair-topics-index,
    body.page-areas.page-areas-index,
    body.page-contact,
    body.page-maystram
  )
  #main-content
  > .hero.hero--home-fullwidth:first-child
  > .container {
  pointer-events: none;
}

:is(
    body.page-home,
    body.page-services.page-services-index,
    body.page-services.page-service-landing,
    body.page-repair-topics.page-repair-topics-index,
    body.page-areas.page-areas-index,
    body.page-contact,
    body.page-maystram
  )
  #main-content
  > .hero.hero--home-fullwidth:first-child
  > .container
  :is(
      nav.breadcrumbs,
      nav.breadcrumbs a,
      .hero__layout a,
      .hero__layout button,
      .hero-intro-body a
    ) {
  pointer-events: auto;
}

body.page-home #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack .hero-home-cta,
body.page-services.page-services-index #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack .hero-home-cta,
body.page-services.page-service-landing #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack .hero-home-cta,
body.page-repair-topics.page-repair-topics-index #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack .hero-home-cta,
body.page-areas.page-areas-index #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack .hero-home-cta,
body.page-contact #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack .hero-home-cta,
body.page-maystram #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack .hero-home-cta {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  left: var(--hero-cta-inset);
  bottom: var(--hero-cta-inset);
  max-width: min(calc(100% - 2 * var(--hero-cta-inset)), 26rem);
  pointer-events: auto;
}

/* Головна / Майстрам / Контакти: CTA чіткіша на фоні PNG і градієнта */
:is(.page-home, .page-maystram, .page-contact)
  .hero-home-cta
  .hero-actions
  .button {
  box-shadow:
    0 10px 28px rgba(11, 120, 183, 0.42),
    0 0 0 2px rgba(255, 255, 255, 0.92);
}

body.page-home #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack .hero-home-cta .hero-actions,
body.page-services.page-services-index #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack .hero-home-cta .hero-actions,
body.page-services.page-service-landing #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack .hero-home-cta .hero-actions,
body.page-repair-topics.page-repair-topics-index #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack .hero-home-cta .hero-actions,
body.page-areas.page-areas-index #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack .hero-home-cta .hero-actions,
body.page-contact #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack .hero-home-cta .hero-actions,
body.page-maystram #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack .hero-home-cta .hero-actions {
  margin: 0;
}

/* Послуги (хаб): CTA на тій самій висоті, що й на головній */
body.page-services.page-services-index
  #main-content
  > .hero.hero--home-fullwidth:first-child
  .hero__intro--services {
  padding-bottom: 20px;
}

/* Майстрам: CTA на тій самій висоті, що й на головній */
body.page-maystram #main-content > .hero.hero--home-fullwidth:first-child .hero__intro--maystram {
  padding-bottom: 20px;
}

/*
 * Головна (ПК): крохті + текст + кнопка у межах 600px висоти контейнера;
 * додаткові абзаци прокручуються лише у .hero-intro-body.
 */
@media (min-width: 821px) {
  body.page-home #main-content > .hero.hero--home-fullwidth:first-child > .container {
    max-height: 690px;
    overflow: hidden;
    box-sizing: border-box;
  }

  body.page-home #main-content > .hero.hero--home-fullwidth:first-child .hero__layout--single {
    min-height: 0;
    overflow: hidden;
  }

  body.page-home #main-content > .hero.hero--home-fullwidth:first-child .hero__intro {
    gap: clamp(28px, 3.2vw, 52px);
    overflow: hidden;
    min-height: 0;
  }

  body.page-home .hero-intro-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    gap: clamp(10px, 1.8vw, 18px);
  }
}

:is(
    .page-home,
    .page-contact,
    .page-maystram,
    .page-services-index,
    .page-repair-topics.page-repair-topics-index,
.page-areas.page-areas-index,
    .page-service-landing
  )
  .hero-actions
  .button {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 14px 28px rgba(11, 120, 183, 0.18);
}

:is(
    .page-home,
    .page-contact,
    .page-maystram,
    .page-services-index,
    .page-repair-topics.page-repair-topics-index,
.page-areas.page-areas-index,
    .page-service-landing
  )
  .hero-actions
  .button:hover,
:is(
    .page-home,
    .page-contact,
    .page-maystram,
    .page-services-index,
    .page-repair-topics.page-repair-topics-index,
.page-areas.page-areas-index,
    .page-service-landing
  )
  .hero-actions
  .button:focus-visible {
  color: #fff;
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  box-shadow: 0 16px 30px rgba(10, 78, 120, 0.22);
}

:is(
    .page-home,
    .page-contact,
    .page-maystram,
    .page-services-index,
    .page-repair-topics.page-repair-topics-index,
.page-areas.page-areas-index,
    .page-service-landing
  )
  .hero-actions
  .button-secondary {
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(11, 120, 183, 0.26);
  box-shadow: 0 10px 22px rgba(16, 32, 50, 0.08);
  backdrop-filter: blur(14px);
}

:is(
    .page-home,
    .page-contact,
    .page-maystram,
    .page-services-index,
    .page-repair-topics.page-repair-topics-index,
.page-areas.page-areas-index,
    .page-service-landing
  )
  .hero-actions
  .button-secondary:hover,
:is(
    .page-home,
    .page-contact,
    .page-maystram,
    .page-services-index,
    .page-repair-topics.page-repair-topics-index,
.page-areas.page-areas-index,
    .page-service-landing
  )
  .hero-actions
  .button-secondary:focus-visible {
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(11, 120, 183, 0.38);
  box-shadow: 0 12px 24px rgba(16, 32, 50, 0.1);
}

:is(
    .page-home,
    .page-services.page-services-index,
    .page-services.page-service-landing,
    .page-repair-topics.page-repair-topics-index,
.page-areas.page-areas-index,
    .page-contact,
    .page-maystram
  )
  .hero-home-cta
  .callback-feedback {
  margin: 0;
  max-width: min(24rem, 100%);
}

.page-home .hero-fullbleed {
  display: none;
}

.page-home .hero--home-fullwidth .hero-fullbleed {
  top: 122px;
}

.page-home .hero--home-fullwidth + .section.section--tight,
.page-home .hero--home-fullwidth + .section.section--services-topic {
  margin-top: 0;
  padding-top: 80px;
  background: transparent;
}

/* Послуги: без градієнтного перекриття поверх hero-services-generated.png */
.page-services .hero--home-fullwidth + .section.section--tight {
  margin-top: 0;
  padding-top: 80px;
  background: transparent;
}

.page-home .section {
  padding: 48px 0;
}

:is(.page-home, .page-contact, .page-services, .page-maystram, .page-repair-topics) .hero--home-fullwidth {
  position: relative;
  isolation: isolate;
  padding-top: 0;
  padding-bottom: 40px;
  /* Фон секції не повинен давати “ступеньку” по краях відносно body-фону */
  background-color: transparent;
  border-bottom: 1px solid rgba(16, 32, 50, 0.06);
}

.page-repair-topics.page-repair-topics-index .hero.hero--home-fullwidth,
.page-areas.page-areas-index .hero.hero--home-fullwidth{
  padding-bottom: 0;
  border-bottom: none;
}

/* Контакти / Майстрам: лише хедер — hero (PNG) — футер, без зайвого padding перед футером */
:is(.page-contact, .page-maystram, .page-areas.page-areas-index) .hero.hero--home-fullwidth {
  padding-bottom: 0;
  border-bottom: none;
}

/* Головна: PNG 1200×800 */
body.page-home #main-content > .hero.hero--home-fullwidth:first-child {
  min-height: max(
    calc(min(1180px, 100vw - 32px) * 800 / 1200),
    clamp(520px, 54vh, 800px)
  );
}

/* Послуги: фон hero — мінімальна висота за пропорцією 800/1200 */
.page-services .hero--home-fullwidth {
  min-height: max(
    calc(min(1180px, 100vw - 32px) * 800 / 1200),
    clamp(520px, 54vh, 800px)
  );
}

/* Майстрам: PNG 1200×800; секція росте з текстом */
body.page-maystram #main-content > .hero.hero--home-fullwidth:first-child {
  position: relative;
  isolation: isolate;
  min-height: calc(min(1180px, 100vw - 32px) * 800 / 1200);
  height: auto;
  overflow: visible;
}

/* Контакти: PNG 1200×800; секція росте з текстом */
body.page-contact #main-content > .hero.hero--home-fullwidth:first-child,
body.page-areas.page-areas-index #main-content > .hero.hero--home-fullwidth:first-child {
  position: relative;
  isolation: isolate;
  min-height: calc(min(1180px, 100vw - 32px) * 800 / 1200);
  height: auto;
  overflow: visible;
}

/* Текст з відступом; секція без верхнього padding — фон/малюнок від верху одразу під хедером */
:is(.page-home, .page-contact, .page-services, .page-maystram)
  .hero--home-fullwidth
  > .container {
  padding-top: 100px;
}

/* Крихти всередині hero (перший блок у main): верхній відступ лише під текст крихт; PNG починається від верху секції під хедером */
#main-content > .hero.hero--home-fullwidth:first-child > .container:has(> nav.breadcrumbs:first-child) {
  padding-top: var(--main-breadcrumb-offset-top);
}

/*
 * Хаби з PNG-героєм: спільна рамка розміру зображення + CTA в лівому нижньому куті PNG.
 */
body.page-home #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack,
body.page-services.page-services-index #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack,
body.page-services.page-service-landing #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack,
body.page-repair-topics.page-repair-topics-index #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack,
body.page-areas.page-areas-index #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack,
body.page-contact #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack,
body.page-maystram #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  max-width: 1200px;
  aspect-ratio: 1200 / 800;
  /* Над градієнтом (::after z-index 0), під текстом (.container z-index 2) */
  z-index: 1;
  pointer-events: none;
}

body.page-home #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack .hero__home-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: unset;
  left: auto;
  top: auto;
  transform: none;
  z-index: 0;
  pointer-events: none;
  background-color: transparent;
  background-image: url("./hero-home-generated.png");
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
}

body.page-services.page-services-index #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack .hero__services-bg,
body.page-services.page-service-landing #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack .hero__services-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: unset;
  left: auto;
  top: auto;
  transform: none;
  z-index: 0;
  pointer-events: none;
}

body.page-repair-topics.page-repair-topics-index #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack .hero__repair-topics-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: unset;
  left: auto;
  top: auto;
  transform: none;
  z-index: 0;
  pointer-events: none;
}

body.page-contact #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack .hero__home-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: unset;
  left: auto;
  top: auto;
  transform: none;
  z-index: 0;
  pointer-events: none;
}

body.page-areas.page-areas-index #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack .hero__areas-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: unset;
  left: auto;
  top: auto;
  transform: none;
  z-index: 0;
  pointer-events: none;
  background-color: transparent;
  background-image: url("./hero-areas-generated.png");
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
}

body.page-maystram #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack .hero__maystram-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: unset;
  left: auto;
  top: auto;
  transform: none;
  z-index: 0;
  pointer-events: none;
}

.page-maystram .hero__maystram-bg {
  background-color: transparent;
  background-image: url("./hero-maystram-generated.png");
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
}

/*
 * Сторінка Послуги: лише PNG (hero-services-generated.png), без CSS-градієнтів поверх.
 * Макет 1200×800; шар absolute (інакше flex-hero стискає блок до вузької смуги).
 */
.page-services .hero__services-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  max-width: 1200px;
  height: auto;
  aspect-ratio: 1200 / 800;
  z-index: 0;
  pointer-events: none;
  background-color: transparent;
  background-image: url("./hero-services-generated.png");
  /* Масштаб по ширині контейнера (1200×800), пропорції як на головній — без розтягування */
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
}

.page-services .hero__services-bg::before,
.page-services .hero__services-bg::after {
  content: none;
  display: none;
}

/* «Що ремонтуємо»: масштаб по ширині, висота за пропорцією PNG (1200×800). */
.page-repair-topics .hero__repair-topics-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  max-width: 1200px;
  height: auto;
  aspect-ratio: 1200 / 800;
  z-index: 0;
  pointer-events: none;
  background-color: transparent;
  background-image: url("./hero-repair-topics-generated.png");
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
}

.page-services-index .hero .hero__services-bg {
  bottom: auto;
  height: auto;
  aspect-ratio: 1200 / 800;
}

/*
 * Сторінки «хедер — фон — футер» (Майстрам, Контакти): без 1fr / 100vh,
 * щоб між hero і футером не лишалась порожня смуга.
 */
:is(body.page-maystram, body.page-contact) {
  display: grid;
  grid-template-rows: auto auto auto;
  min-height: 0;
  background: #f4f6f8;
  background-image: none;
}

body.page-maystram .site-header,
body.page-contact .site-header {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

body.page-maystram > .site-header,
body.page-contact > .site-header {
  grid-row: 1;
}

body.page-maystram > #main-content,
body.page-contact > #main-content {
  grid-row: 2;
  display: block;
  margin: 0;
  padding: 0;
}

body.page-maystram > .footer,
body.page-contact > .footer {
  grid-row: 3;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  margin-top: 0;
}

body.page-maystram > .mobile-cta,
body.page-maystram > .modal-backdrop,
body.page-contact > .mobile-cta,
body.page-contact > .modal-backdrop {
  grid-row: 1;
  grid-column: 1;
}

body.page-maystram #main-content > .hero.hero--home-fullwidth:first-child {
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

body.page-maystram
  #main-content
  > .hero.hero--home-fullwidth:first-child
  .hero__layout--single,
body.page-maystram
  #main-content
  > .hero.hero--home-fullwidth:first-child
  .hero__layout--single
  > .hero__intro {
  flex: 0 0 auto;
  min-height: auto;
}

/* Майстрам: PNG 1200×800 — масштаб по ширині, без crop */
body.page-maystram .hero .hero__maystram-bg {
  position: absolute;
  top: 0;
  left: 50%;
  right: auto;
  z-index: 0;
  pointer-events: none;
  width: min(1180px, calc(100% - 32px));
  max-width: 1200px;
  height: auto;
  aspect-ratio: 1200 / 800;
  transform: translateX(-50%);
  background-color: transparent;
  background-image: url("./hero-maystram-generated.png");
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Контакти: PNG 1200×800 — масштаб по ширині, без crop */
body.page-contact .hero .hero__home-bg {
  position: absolute;
  top: 0;
  left: 50%;
  right: auto;
  z-index: 0;
  pointer-events: none;
  width: min(1180px, calc(100% - 32px));
  max-width: 1200px;
  height: auto;
  aspect-ratio: 1200 / 800;
  transform: translateX(-50%);
  background-color: transparent;
  background-image: url("./hero-contact-generated.png");
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Де працюємо: PNG 1200×800 — як на головній і контактах */
body.page-areas.page-areas-index .hero .hero__areas-bg {
  position: absolute;
  top: 0;
  left: 50%;
  right: auto;
  z-index: 0;
  pointer-events: none;
  width: min(1180px, calc(100% - 32px));
  max-width: 1200px;
  height: auto;
  aspect-ratio: 1200 / 800;
  transform: translateX(-50%);
  background-color: transparent;
  background-image: url("./hero-areas-generated.png");
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
}

body.page-maystram
  #main-content
  > .hero.hero--home-fullwidth:first-child
  > .container,
body.page-contact
  #main-content
  > .hero.hero--home-fullwidth:first-child
  > .container {
  flex: 0 0 auto;
  overflow: visible;
  padding-bottom: 28px;
}

body.page-contact #main-content > .hero.hero--home-fullwidth:first-child {
  display: flex;
  flex-direction: column;
}

body.page-contact
  #main-content
  > .hero.hero--home-fullwidth:first-child
  .hero__layout--single,
body.page-contact
  #main-content
  > .hero.hero--home-fullwidth:first-child
  .hero__layout--single
  > .hero__intro {
  flex: 0 0 auto;
  min-height: auto;
}

/* Десктоп: рівний фон «Послуги» / підкладка hero під PNG; на мобілці — watermark лише з body */
@media (min-width: 821px) {
  body.page-maystram .hero.hero--home-fullwidth,
  body.page-contact .hero.hero--home-fullwidth {
    background-color: #f4f6f8;
  }

  /* Послуги: рівний фон без градієнтів (body::before на мобільних теж вимкнено) */
  body.page-services {
    background-color: #f8fafc;
    background-image: none;
  }

  body.page-services #main-content {
    background-color: #f8fafc;
    background-image: none;
  }

  .page-services .hero.hero--home-fullwidth {
    background-color: #f8fafc;
    background-image: none;
  }
}

.page-services .section--soft {
  background: var(--bg);
}

/* Послуги: main розтягується між хедером і футером, hero заповнює main */
body.page-services,
body.page-repair-topics {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Хаб /services/: лише один hero у main — не тягнемо висоту вікна, щоб під футером не було «повітря» */
body.page-services.page-services-index,
body.page-repair-topics.page-repair-topics-index,
body.page-areas.page-areas-index {
  min-height: unset;
}

.page-services #main-content,
.page-repair-topics #main-content,
.page-areas #main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Хаб Послуги: main без зайвих полів, одразу футер */
.page-services.page-services-index #main-content,
.page-repair-topics.page-repair-topics-index #main-content,
.page-areas.page-areas-index #main-content {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.page-services .hero.hero--home-fullwidth,
.page-repair-topics .hero.hero--home-fullwidth,
.page-areas .hero.hero--home-fullwidth {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

/*
 * Хаб /services/: PNG у .hero__services-bg позиціонований absolute і не займає місце в потоці —
 * якщо секція нижча за висоту картинки (800px), низ малюнка виходить за межі блоку й перекриває футер.
 * min-height збігається з висотою фону; padding-bottom текстової колонки лишається на --main-breadcrumb-offset-top.
 */
.page-services.page-services-index .hero.hero--home-fullwidth,
.page-services.page-service-landing .hero.hero--home-fullwidth {
  flex: 0 0 auto;
  min-height: calc(min(1180px, 100vw - 32px) * 800 / 1200);
  margin: 0;
  border-bottom: none;
  padding: 0;
}

.page-repair-topics.page-repair-topics-index .hero.hero--home-fullwidth,
.page-areas.page-areas-index .hero.hero--home-fullwidth{
  flex: 0 0 auto;
  min-height: calc(min(1180px, 100vw - 32px) * 800 / 1200);
  overflow: visible;
  margin: 0;
  border-bottom: none;
  padding: 0;
}

.page-services-index .hero.hero--home-fullwidth > .container,
.page-repair-topics-index .hero.hero--home-fullwidth > .container,
.page-areas.page-areas-index .hero.hero--home-fullwidth > .container,
.page-services.page-service-landing .hero.hero--home-fullwidth > .container {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  /* Від низу кнопки до верхнього краю футера — той самий rhythm, що від хедера до крихт */
  padding-bottom: var(--main-breadcrumb-offset-top);
  box-sizing: border-box;
}

.page-services.page-service-landing .hero.hero--home-fullwidth > .container > .breadcrumbs {
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
  padding-inline-start: var(--hero-cta-inset);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 24px rgba(244, 246, 248, 0.98);
}

/*
 * Хаб «Послуги» (ПК): крихти + список + кнопка у фіксованій висоті колонки; +90px зазор над кнопкою (до базових ~10px) —
 * max-height 690px, щоб текст і кнопка не обрізались (overflow усередині колонки).
 */
@media (min-width: 821px) {
  .page-services-index .hero.hero--home-fullwidth > .container,
  .page-services.page-service-landing .hero.hero--home-fullwidth > .container {
    max-height: 690px;
    overflow: hidden;
    padding-bottom: var(--main-breadcrumb-offset-top);
  }

  .page-services-index .hero.hero--home-fullwidth > .container > .breadcrumbs,
  .page-services.page-service-landing .hero.hero--home-fullwidth > .container > .breadcrumbs {
    flex: 0 0 auto;
    margin-bottom: var(--main-breadcrumb-offset-top);
  }

  .page-services-index .hero.hero--home-fullwidth .hero__layout--single,
  .page-services.page-service-landing .hero.hero--home-fullwidth .hero__layout--single {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .page-services-index .hero.hero--home-fullwidth .hero__intro--services,
  .page-services.page-service-landing .hero.hero--home-fullwidth .hero__intro {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .page-services.page-service-landing .hero-intro-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    gap: clamp(10px, 1.8vw, 18px);
  }

  .page-services-index .hero__intro--services .services-hub__list {
    flex: 0 1 auto;
    min-height: 0;
    overflow: visible;
    gap: 1px;
  }

  .page-services-index .hero__intro--services .services-hub__link {
    font-size: clamp(1.02rem, 1.45vw, 1.2rem);
    line-height: 1.22;
  }

  .page-services-index .hero__intro--services .services-hub__desc {
    font-size: 0.875rem;
    line-height: 1.38;
    margin-top: 2px;
  }
}

.page-services-index .hero.hero--home-fullwidth .hero__layout--single,
.page-services.page-service-landing .hero.hero--home-fullwidth .hero__layout--single {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.page-services-index .hero.hero--home-fullwidth .hero__intro--services,
.page-services.page-service-landing .hero.hero--home-fullwidth .hero__intro {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(12px, 2.4vw, 20px);
  max-width: 46rem;
}

/* Локальні сторінки /areas/remont-holodylnyka-*: той самий відступ тексту в hero, що на основних сторінках. */
.page-area-fridge .hero.hero--home-fullwidth > .container > .breadcrumbs,
.page-area-fridge .hero.hero--home-fullwidth .hero__intro {
  padding-inline-start: var(--hero-copy-offset);
  padding-inline-end: var(--hero-cta-inset);
  box-sizing: border-box;
}

@media (min-width: 821px) {
  .page-area-fridge .hero--home-fullwidth .hero-intro-body {
    gap: 10px;
  }

  .page-area-fridge .hero--home-fullwidth .hero-intro-body .hero-intro-hub {
    margin-top: 10px;
  }

  .page-area-fridge .hero--home-fullwidth .hero-intro-body :is(h1, .lead, .hero-intro-hub) {
    max-width: 52rem;
  }
}

/* Послуги (хаб): без зазору між hero і першою карткою напрямів */
.page-services .hero--home-fullwidth + .section.section--services-topic {
  margin-top: 0;
}

/* Послуги: однаковий фон і типографіка для чотирьох блоків напрямів */
.page-services .section.section--services-topic {
  padding-top: clamp(22px, 3.2vw, 34px);
  padding-bottom: clamp(22px, 3.2vw, 34px);
  background: var(--bg);
}

/* Перша секція в main (хаб .section--tight або стаття .section--services-topic): один відступ від хедера до крихт */
#main-content > .section.section--tight:first-child,
#main-content > .section.section--services-topic:first-child {
  padding-top: var(--main-breadcrumb-offset-top);
}

.page-services .section.section--services-topic > .container {
  background: #fff;
  border-radius: 14px;
  padding: clamp(20px, 3vw, 30px) var(--services-topic-card-padding-x);
  box-shadow: 0 10px 36px rgba(11, 78, 120, 0.1);
  border: 1px solid rgba(11, 120, 183, 0.14);
}

/* Крихти першими в картці — без подвійної «подушки» зверху; горизонтально як у звичайному .container на хабах */
.page-services .section.section--services-topic > .container:has(> .breadcrumbs:first-child) {
  padding-top: 0;
  padding-inline: 0;
  padding-bottom: clamp(20px, 3vw, 30px);
}

.page-services .section.section--services-topic > .container:has(> .breadcrumbs:first-child) > :not(.breadcrumbs) {
  padding-inline-start: calc(var(--services-topic-card-padding-x) + var(--hero-copy-offset));
  padding-inline-end: var(--services-topic-card-padding-x);
}

.page-services
  .section.section--services-topic
  > .container:not(:has(> .breadcrumbs:first-child)) {
  padding-inline-start: calc(var(--services-topic-card-padding-x) + var(--hero-copy-offset));
  padding-inline-end: var(--services-topic-card-padding-x);
}

.page-services .section.section--services-topic + .section.section--services-topic {
  border-top: 1px solid rgba(16, 32, 50, 0.06);
}

/* Хаб /services/ і лендінги послуг: блоки під PNG — стек білих карток як на головній */
:is(.page-services.page-services-index, .page-services.page-service-landing)
  .hero--home-fullwidth
  + .section.section--services-topic {
  margin-top: 0;
  padding-top: clamp(14px, 2.2vw, 22px);
}

:is(.page-services.page-services-index, .page-services.page-service-landing) .section.section--services-topic {
  padding-top: clamp(10px, 1.6vw, 16px);
  padding-bottom: clamp(10px, 1.6vw, 16px);
}

:is(.page-services.page-services-index, .page-services.page-service-landing)
  .section.section--services-topic
  > .container {
  padding: clamp(16px, 2.5vw, 24px) var(--services-topic-card-padding-x);
}

:is(.page-services.page-services-index, .page-services.page-service-landing)
  .section.section--services-topic
  > .container:not(:has(> .breadcrumbs:first-child)) {
  padding-inline-start: var(--services-topic-card-padding-x);
  padding-inline-end: var(--services-topic-card-padding-x);
}

:is(.page-services.page-services-index, .page-services.page-service-landing)
  .section.section--services-topic
  + .section.section--services-topic {
  margin-top: 0;
  border-top: none;
}

:is(.page-services.page-services-index, .page-services.page-service-landing) .section.section--services-topic h2 {
  margin: 0 0 12px;
  font-size: clamp(1.32rem, 2.15vw, 1.72rem);
  line-height: 1.14;
}

:is(.page-services.page-services-index, .page-services.page-service-landing)
  .section.section--services-topic
  > .container
  > p {
  margin: 0 0 16px;
}

:is(.page-services.page-services-index, .page-services.page-service-landing)
  .section.section--services-topic
  > .container
  > ul {
  margin: 0;
  padding-left: 1.35em;
  line-height: 1.55;
}

:is(.page-services.page-services-index, .page-services.page-service-landing)
  .section.section--services-topic
  > .container
  > ul
  > li
  + li {
  margin-top: 0.35em;
}

:is(.page-services.page-services-index, .page-services.page-service-landing)
  .section.section--services-topic
  .cards,
:is(.page-services.page-services-index, .page-services.page-service-landing)
  .section.section--services-topic
  .highlight-grid,
:is(.page-services.page-services-index, .page-services.page-service-landing)
  .section.section--services-topic
  .steps {
  margin-top: 0;
}

:is(.page-services.page-services-index, .page-services.page-service-landing) .section.section--services-topic .steps {
  margin-bottom: 0;
  gap: clamp(14px, 2vw, 20px);
}

:is(.page-services.page-services-index, .page-services.page-service-landing)
  .section.section--services-topic
  .steps
  .step {
  padding: 14px 16px;
}

:is(.page-services.page-services-index, .page-services.page-service-landing)
  .section.section--services-topic
  .highlight-grid
  + p {
  margin-top: 20px;
  margin-bottom: 0;
}

:is(.page-services.page-services-index, .page-services.page-service-landing)
  #main-content
  > .section.section--services-topic:last-of-type {
  padding-bottom: clamp(18px, 2.8vw, 28px);
}

/* Хаб «Що ремонтуємо»: 8 блоків під PNG — компактні проміжки (не padding .section 72px) */
.page-repair-topics.page-repair-topics-index .hero--home-fullwidth + .section.section--services-topic,
.page-areas.page-areas-index .hero--home-fullwidth + .section.section--services-topic{
  margin-top: 0;
  padding-top: clamp(14px, 2.2vw, 22px);
}

.page-repair-topics.page-repair-topics-index .section.section--services-topic,
.page-areas.page-areas-index .section.section--services-topic{
  padding-top: clamp(10px, 1.6vw, 16px);
  padding-bottom: clamp(10px, 1.6vw, 16px);
  background: var(--bg);
}

.page-repair-topics.page-repair-topics-index .section.section--services-topic > .container,
.page-areas.page-areas-index .section.section--services-topic > .container{
  background: #fff;
  border-radius: 14px;
  padding: clamp(16px, 2.5vw, 24px) var(--services-topic-card-padding-x);
  box-shadow: 0 10px 36px rgba(11, 78, 120, 0.1);
  border: 1px solid rgba(11, 120, 183, 0.14);
}

.page-repair-topics.page-repair-topics-index .section.section--services-topic + .section.section--services-topic,
.page-areas.page-areas-index .section.section--services-topic + .section.section--services-topic{
  margin-top: 0;
}

.page-repair-topics.page-repair-topics-index .section.section--services-topic h2,
.page-areas.page-areas-index .section.section--services-topic h2{
  margin: 0 0 12px;
  font-size: clamp(1.32rem, 2.15vw, 1.72rem);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 720px;
}

.page-repair-topics.page-repair-topics-index .section.section--services-topic .fridge-brand-index {
  margin-bottom: 0;
}

.page-areas.page-areas-index .areas-list-intro {
  margin: 0 0 10px;
  max-width: 46rem;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

.page-areas.page-areas-index .areas-localities {
  max-width: 46rem;
}

.page-areas.page-areas-index .areas-localities a:hover,
.page-areas.page-areas-index .areas-localities a:focus-visible {
  color: var(--brand);
}

.page-repair-topics.page-repair-topics-index #main-content > .section.section--services-topic:last-of-type,
.page-areas.page-areas-index #main-content > .section.section--services-topic:last-of-type{
  padding-bottom: clamp(18px, 2.8vw, 28px);
}

/* Головна: секції під hero — стек білих карток як на хабі «Що ремонтуємо» */
.page-home .hero--home-fullwidth + .section.section--services-topic {
  margin-top: 0;
  padding-top: clamp(14px, 2.2vw, 22px);
}

.page-home .section.section--services-topic {
  padding-top: clamp(10px, 1.6vw, 16px);
  padding-bottom: clamp(10px, 1.6vw, 16px);
  background: var(--bg);
}

.page-home .section.section--services-topic > .container {
  background: #fff;
  border-radius: 14px;
  padding: clamp(16px, 2.5vw, 24px) var(--services-topic-card-padding-x);
  box-shadow: 0 10px 36px rgba(11, 78, 120, 0.1);
  border: 1px solid rgba(11, 120, 183, 0.14);
}

.page-home .section.section--services-topic + .section.section--services-topic {
  margin-top: 0;
}

.page-home .section.section--services-topic h2 {
  margin: 0 0 12px;
  font-size: clamp(1.32rem, 2.15vw, 1.72rem);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 720px;
}

.page-home .section.section--services-topic > .container > p {
  margin: 0 0 16px;
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--text);
  max-width: 720px;
}

.page-home .section.section--services-topic .fridge-brand-index {
  margin-bottom: 0;
  max-width: none;
}

.page-home .section.section--services-topic .cards {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.page-home .section.section--services-topic .service-card {
  background: #fff;
  backdrop-filter: none;
}

.page-home .section.section--services-topic .steps {
  margin: 0 0 20px;
}

.page-home .section.section--services-topic .home-process-highlights {
  margin: 0;
}

.page-home #main-content > .section.section--services-topic:last-of-type {
  padding-bottom: clamp(18px, 2.8vw, 28px);
}

.page-services .section.section--services-topic p {
  font-family: inherit;
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--text);
  max-width: 720px;
}

.page-services .section.section--services-topic p:not(:last-child) {
  margin-bottom: 12px;
}

.page-services .section.section--services-topic h1,
.page-services .section.section--services-topic h2,
.page-services .section.section--services-topic h3,
.page-services .section.section--services-topic h4 {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 720px;
}

:is(.page-services-index, .page-service-landing) .section.section--services-topic h1,
:is(.page-services-index, .page-service-landing) .section.section--services-topic h2,
:is(.page-services-index, .page-service-landing) .section.section--services-topic h3,
:is(.page-services-index, .page-service-landing) .section.section--services-topic h4 {
  margin-bottom: 12px;
  font-size: clamp(1.32rem, 2.15vw, 1.72rem);
  line-height: 1.14;
}

/* Хаб /services/: чотири напрями — посилання як акцент, опис як lead на головній */
.page-services-index .hero__intro--services .services-hub__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-width: 760px;
  width: 100%;
}

.page-services-index .hero__intro--services .services-hub__link {
  display: inline;
  font-weight: 650;
  font-size: clamp(1.2rem, 1.95vw, 1.45rem);
  line-height: 1.38;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.page-services-index .hero__intro--services .services-hub__link:hover,
.page-services-index .hero__intro--services .services-hub__link:focus-visible {
  color: var(--brand-deep);
}

.page-services-index .hero__intro--services .services-hub__desc {
  margin: 4px 0 0;
  padding: 0;
  text-indent: 0;
  max-width: 760px;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-soft);
}

/* Описи напрямів: відступ першого рядка (Холодильники, Злив, Спліти, Ларі…) */
.page-services-index .hero__intro--services .services-hub__item .services-hub__desc {
  text-indent: 1.5em;
}

.page-services:not(.page-services-index) .section.section--services-topic h1 {
  margin-bottom: 14px;
  font-size: clamp(1.42rem, 2.5vw, 1.88rem);
  line-height: 1.12;
}

.page-services:not(.page-services-index) .section.section--services-topic h2 {
  margin-bottom: 12px;
  font-size: clamp(1.32rem, 2.15vw, 1.72rem);
  line-height: 1.14;
  scroll-margin-top: 96px;
}

.page-services:not(.page-services-index) .section.section--services-topic h3 {
  margin-bottom: 12px;
  font-size: clamp(1.22rem, 2vw, 1.58rem);
  line-height: 1.16;
}

.page-services:not(.page-services-index) .section.section--services-topic h4 {
  margin-bottom: 12px;
  font-size: clamp(1.14rem, 1.85vw, 1.42rem);
  line-height: 1.18;
}

.page-services #services-fridges a,
.page-services #services-ac a,
.page-services #services-washing a,
.page-services #services-other a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

/* Текст під блоками послуг (як у «Ремонт холодильників»): абзацний відступ, без проміжку між абзацами */
.page-services #services-fridges ~ p,
.page-services #ariston-repair ~ p,
.page-services #samsung-repair ~ p,
.page-services #atlant-repair ~ p,
.page-services #ardo-repair ~ p,
.page-services #beko-repair ~ p,
.page-services #bosch-repair ~ p,
.page-services #electrolux-repair ~ p,
.page-services #gorenje-repair ~ p,
.page-services #indesit-repair ~ p,
.page-services #lg-repair ~ p,
.page-services #liebherr-repair ~ p,
.page-services #nord-repair ~ p,
.page-services #sharp-repair ~ p,
.page-services #snaige-repair ~ p,
.page-services #stinol-repair ~ p,
.page-services #whirlpool-repair ~ p,
.page-services #zanussi-repair ~ p,
.page-services #services-ac ~ p,
.page-services #services-washing ~ p,
.page-services #services-other ~ p,
.page-services #freezers-repair ~ p,
.page-services #dryers-repair ~ p,
.page-services #dishwashers-repair ~ p,
.page-services #electric-stoves-repair ~ p,
.page-services #heating-appliances-repair ~ p {
  text-indent: 1.5em;
  margin-bottom: 0;
}

/* Перехід по якорю з головної: заголовок блоку не під sticky-хедером */
.page-services #services-fridges,
.page-services #ariston-repair,
.page-services #samsung-repair,
.page-services #atlant-repair,
.page-services #ardo-repair,
.page-services #beko-repair,
.page-services #bosch-repair,
.page-services #electrolux-repair,
.page-services #gorenje-repair,
.page-services #indesit-repair,
.page-services #lg-repair,
.page-services #liebherr-repair,
.page-services #nord-repair,
.page-services #sharp-repair,
.page-services #snaige-repair,
.page-services #stinol-repair,
.page-services #whirlpool-repair,
.page-services #zanussi-repair,
.page-services #services-ac,
.page-services #services-washing,
.page-services #services-other,
.page-services #freezers-repair,
.page-services #dryers-repair,
.page-services #dishwashers-repair,
.page-services #electric-stoves-repair,
.page-services #heating-appliances-repair {
  scroll-margin-top: 96px;
}

/* Статті ремонту пральних машин за брендом (аналог пер-брендових сторінок холодильників) */
.page-services section.washing-brand-article .container > h1 {
  scroll-margin-top: 96px;
}

.page-services section.washing-brand-article .container > h2 {
  scroll-margin-top: 96px;
}

.page-services section.washing-brand-article .container > p {
  text-indent: 1.5em;
  margin-bottom: 0;
}

.page-services section.ac-brand-article .container > h1 {
  scroll-margin-top: 96px;
}

.page-services section.ac-brand-article .container > h2 {
  scroll-margin-top: 96px;
}

.page-services section.ac-brand-article .container > p {
  text-indent: 1.5em;
  margin-bottom: 0;
}

.page-home .section--tight .section-head .eyebrow {
  margin-bottom: 10px;
}

.page-home .section--soft {
  padding-top: 40px;
  padding-bottom: 40px;
}

.page-home .section-head p:last-child,
.page-home .service-card p:last-child,
.page-home .highlight-card p:last-child,
.page-home .faq-item p:last-child,
.page-home .step p:last-child,
.page-home .stat-card p:last-child,
.page-home .info-band p:last-child {
  margin-bottom: 0;
}

.page-home .service-card p + p,
.page-home .highlight-card p + p,
.page-home .faq-item p + p,
.page-home .step p + p,
.page-home .stat-card p + p {
  margin-top: 8px;
}

.page-home .stats,
.page-home .cards,
.page-home .steps,
.page-home .faq-grid,
.page-home .highlight-grid {
  gap: 26px;
}

/* «Що ремонтуємо» — 2 картки в ряд на десктопі; на вузьких екранах — один стовпчик (див. @media max-width 980px) */
.page-home .stat-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.page-home .service-card {
  padding: 15px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.page-home .info-band {
  padding: 22px 24px;
  background: rgba(254, 254, 254, 0.34);
  border-color: rgba(16, 32, 50, 0.08);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.page-home .info-band .contact-pill {
  min-height: 40px;
  padding: 10px 14px;
  background: rgba(254, 254, 254, 0.28);
  border-color: rgba(16, 32, 50, 0.08);
  color: var(--text);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.page-home .info-band .contact-pill:hover,
.page-home .info-band .contact-pill:focus-visible {
  color: var(--brand-deep);
  background: rgba(254, 254, 254, 0.46);
  border-color: rgba(11, 120, 183, 0.16);
}

.section-head p,
.muted {
  color: var(--text-soft);
}

.split-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: start;
}

.check-list,
.inline-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.inline-list li {
  position: relative;
  padding-left: 26px;
}

.check-list li + li,
.inline-list li + li {
  margin-top: 12px;
}

.check-list li::before,
.inline-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

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

.step__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(11, 120, 183, 0.16), rgba(255, 191, 71, 0.24));
  color: var(--brand-deep);
  font-weight: 800;
}

/* Головна та хаб /services/: номер збоку + праворуч заголовок і до 2 рядків опису */
:is(.page-home, .page-services.page-services-index, .page-services.page-service-landing)
  .steps
  .step--compact-rows {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 6px;
}

:is(.page-home, .page-services.page-services-index, .page-services.page-service-landing)
  .steps
  .step--compact-rows
  .step__index {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  margin-bottom: 0;
}

:is(.page-home, .page-services.page-services-index, .page-services.page-service-landing)
  .steps
  .step--compact-rows
  h3 {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 0;
  line-height: 1.2;
}

:is(.page-home, .page-services.page-services-index, .page-services.page-service-landing)
  .steps
  .step--compact-rows
  p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.45;
}

:is(.page-services.page-services-index, .page-services.page-service-landing)
  .section.section--services-topic
  .steps
  .step--compact-rows
  .step__index {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 0.95rem;
}

:is(.page-services.page-services-index, .page-services.page-service-landing)
  .section.section--services-topic
  .steps
  .step--compact-rows
  h3 {
  font-size: 1.02rem;
}

:is(.page-services.page-services-index, .page-services.page-service-landing)
  .section.section--services-topic
  .steps
  .step--compact-rows
  p {
  font-size: 0.9375rem;
  line-height: 1.42;
}

.faq-grid,
.contact-grid,
.highlight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.panel--dark {
  color: #f8fafc;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 191, 71, 0.18), transparent 22%),
    radial-gradient(circle at 84% 20%, rgba(242, 107, 91, 0.14), transparent 18%),
    linear-gradient(135deg, var(--surface-strong), #20384b);
  border-color: rgba(255, 255, 255, 0.08);
}

.panel--dark p,
.panel--dark li,
.panel--dark .muted {
  color: rgba(248, 250, 252, 0.82);
}

.info-band {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255, 191, 71, 0.12), rgba(11, 120, 183, 0.08)),
    rgba(255, 255, 255, 0.92);
}

.breadcrumbs {
  margin-bottom: var(--main-breadcrumb-offset-top);
  color: var(--text-soft);
  font-size: 0.95rem;
}

.breadcrumbs a {
  color: var(--brand-deep);
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(11, 120, 183, 0.2);
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-deep);
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(16, 32, 50, 0.06);
}

.form-panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-stack {
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-weight: 700;
}

.form-input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(16, 32, 50, 0.14);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

.form-input::placeholder {
  color: #7b8794;
}

.form-input:focus {
  outline: 2px solid rgba(11, 120, 183, 0.24);
  border-color: rgba(11, 120, 183, 0.4);
}

.form-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.form-input.form-input--textarea {
  display: block;
  min-height: 112px;
  resize: vertical;
  padding-top: 14px;
  padding-bottom: 14px;
  font-family: inherit;
  line-height: 1.45;
}

.callback-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(111, 207, 151, 0.18);
  border: 1px solid rgba(15, 118, 110, 0.28);
  color: var(--text);
  font-size: 1rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(13, 23, 32, 0.52);
  backdrop-filter: blur(8px);
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-dialog.callback-modal__dialog {
  position: relative;
  width: min(460px, 100%);
  max-height: min(92vh, 720px);
  overflow-y: auto;
  padding: 26px 24px 28px;
  margin: auto;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.modal-dialog.callback-modal__dialog h2 {
  margin: 0 40px 20px 0;
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  line-height: 1.15;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: rgba(16, 32, 50, 0.06);
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(16, 32, 50, 0.11);
}

.callback-modal__actions {
  margin-top: 8px;
}

.callback-form-message {
  margin: 0 0 10px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.callback-form-message.callback-form-message--error {
  color: var(--danger-deep);
}

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

body.modal-open {
  overflow: hidden;
}

.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px calc(14px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom))
    calc(14px + env(safe-area-inset-left));
  gap: 10px;
  grid-template-columns: 1fr;
  align-items: stretch;
  background: linear-gradient(180deg, rgba(13, 23, 32, 0) 0%, rgba(13, 23, 32, 0.78) 24%, rgba(13, 23, 32, 0.92) 100%);
  backdrop-filter: blur(6px);
  box-shadow: 0 -14px 32px rgba(12, 24, 40, 0.18);
}

.mobile-cta .button,
.mobile-cta .button-secondary {
  width: 100%;
  justify-content: center;
  text-align: center;
  font-weight: 700;
}

.mobile-cta a.button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-hint {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.cta-band {
  border-radius: var(--radius-md);
  padding: 28px 24px;
  background: linear-gradient(135deg, rgba(11, 120, 183, 0.12), rgba(242, 107, 91, 0.08));
  border: 1px solid rgba(11, 120, 183, 0.22);
  box-shadow: var(--shadow);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.service-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.service-quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(11, 120, 183, 0.28);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--brand-deep);
  box-shadow: 0 8px 18px rgba(16, 32, 50, 0.06);
}

.service-quick-links a:hover {
  border-color: rgba(11, 120, 183, 0.5);
}

.other-services ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.other-services li a {
  font-weight: 600;
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section--faq details {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.section--faq details + details {
  margin-top: 12px;
}

.section--faq summary {
  cursor: pointer;
  font-weight: 700;
  line-height: 1.35;
}

.section--faq details[open] summary {
  margin-bottom: 10px;
  color: var(--brand-deep);
}

.section--faq details p {
  margin: 0;
  color: var(--text-soft);
}

.footer {
  padding: 64px 0 30px;
  background: #0d1720;
  color: rgba(255, 255, 255, 0.92);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) max-content max-content;
  justify-content: space-between;
  column-gap: 32px;
  row-gap: 24px;
  align-items: start;
}

.footer a {
  color: rgba(255, 255, 255, 0.92);
}

.footer p,
.footer li {
  color: rgba(255, 255, 255, 0.82);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li + li {
  margin-top: 8px;
}

.footer__bottom {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
}

/* Logo already contains a white plate, so avoid extra frame in footer */
.footer .brand__logo {
  padding: 0;
  background: transparent;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 120;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 10px;
  background: #0b78b7;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(16, 32, 50, 0.24);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero__layout,
  .split-layout,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .hero-card--visual {
    min-height: 320px;
  }

  .cards,
  .stats,
  .steps,
  .faq-grid,
  .contact-grid,
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .page-home .section.section--services-topic .cards {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 821px) and (max-width: 1040px) {
  .site-header__inner {
    min-height: 76px;
    flex-wrap: nowrap;
    padding: 12px 0;
  }

  .nav {
    display: contents;
  }

  .nav-list {
    order: 3;
    flex-wrap: nowrap;
    gap: 0;
    align-items: center;
    justify-content: center;
    padding-left: 14px;
  }

  .nav-list > li + li {
    margin-left: 14px;
  }

  .site-header .header-phones,
  .button-danger {
    margin-left: 14px;
  }

  .nav-link {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 0.95rem;
  }

  .brand__logo {
    width: 168px;
  }

  .header-phone {
    padding: 0;
    font-size: 20px;
  }

  .button-danger {
    min-height: 0;
    padding: 0;
    font-size: 0.92rem;
  }

  .nav-item--dropdown {
    position: relative;
  }

  .nav-link--parent {
    color: var(--text);
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-sub {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 280px;
    padding: 10px;
  }

  .nav-item--dropdown.is-open .nav-sub {
    display: flex;
  }

  .nav-link--parent[aria-expanded="true"] {
    color: var(--brand-deep);
    background: transparent;
  }
}

@media (max-width: 820px) {
  .site-header {
    background: rgba(254, 254, 254, 0.96);
  }

  .brand__logo {
    width: 160px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 8px;
    font-size: 0;
    line-height: 0;
    border-radius: 12px;
  }

  .menu-toggle::before {
    content: "";
    display: block;
    width: 22px;
    height: 14px;
    background:
      linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
      linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat,
      linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
    opacity: 0.8;
  }

  /* Mobile: “What we fix” link. */
  #nav-more-trigger.nav-more-trigger {
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0;
    min-height: 40px;
    padding: 10px 14px;
    justify-content: center;
    width: auto;
    white-space: nowrap;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(254, 254, 254, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    grid-template-rows: auto auto auto;
    justify-content: center;
    justify-items: center;
    align-items: center;
    column-gap: 22px;
    row-gap: 10px;
    padding: 0;
  }

  .nav-list > li {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .nav-list > li.nav-item--home {
    grid-column: 1;
    grid-row: 1;
  }

  .nav-list > li.nav-item--services {
    grid-column: 2;
    grid-row: 1;
  }

  .nav-list > li.nav-item--repair-topics {
    grid-column: 1;
    grid-row: 2;
  }

  .nav-list > li.nav-item--maystram {
    grid-column: 2;
    grid-row: 2;
  }

  .nav-list > li.nav-item--contact {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .nav-list > li.nav-item--more {
    display: none;
  }

  .nav-list > li.nav-item--contact > a,
  .nav-list > li.nav-item--more > button {
    justify-content: center;
    text-align: center;
    width: auto;
  }

  .nav-list > li > :is(a, button) {
    white-space: nowrap;
  }

  /* Mobile menu typography: plain centered text like the reference. */
  .nav.is-open .nav-list {
    justify-content: center;
    width: 100%;
  }

  .nav.is-open .nav-list > li {
    flex: 0 0 auto;
  }

  .nav.is-open .nav-list > li > :is(a.nav-link, button.nav-more-trigger) {
    padding: 0;
    min-height: auto;
    font-size: 1.05rem;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: capitalize;
    color: #000;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  /* Mobile menu: remove the blue focus/active rectangle. */
  .nav.is-open :is(a, button):focus-visible {
    outline: none;
  }

  .nav.is-open .nav-link.is-active {
    outline: none;
  }

  .nav.is-open .nav-list > li > :is(a.nav-link, button.nav-more-trigger)::after {
    display: none;
  }

  .nav .header-phones {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .nav .header-phone {
    width: 100%;
    justify-content: center;
    color: var(--text);
  }

  .nav-link,
  .nav .button-secondary,
  .nav .button-danger,
  .nav .header-phone {
    justify-content: center;
  }

  .nav-link,
  .nav-link--parent,
  .nav .button-danger {
    color: var(--text);
    background: transparent;
  }

  /* Mobile taps can leave a focus ring; hide it for the plain-text menu. */
  .nav.is-open .nav-list > li > :is(a.nav-link, button.nav-more-trigger):focus,
  .nav.is-open .nav-list > li > :is(a.nav-link, button.nav-more-trigger):focus-visible {
    outline: none;
  }

  /* Mobile dropdown (“Що ремонтуємо”): keep trigger aligned, nudge popup left. */
  .nav.is-open .nav-item--dropdown {
    position: relative;
    align-self: center;
  }

  .nav.is-open .nav-item--dropdown .nav-sub {
    max-width: calc(100vw - 48px);
    transform: translateX(-40px);
  }

  /* Mobile: hide the “ще” dropdown (top-level links cover the hub). */
  .nav-list > li.nav-item--more,
  #nav-more-trigger {
    display: none !important;
  }

  .site-header__inner {
    min-height: 72px;
    flex-wrap: nowrap;
  }
}

@media (max-width: 820px) {
  /* Компактніша мобільна «сітка»: трохи менший текст і менше «повітря» між блоками */
  :root {
    --services-topic-card-padding-x: clamp(12px, 3vw, 20px);
    --main-breadcrumb-offset-top: 10px;
    --hero-copy-offset: clamp(22px, 5vw, 40px);
    --hero-cta-inset: 12px;
  }

  html {
    font-size: 93.75%;
  }

  body {
    line-height: 1.55;
  }

  /*
   * Мобільний патерн на body: білі картки ріжуть око — підкладаємо легке «молочне скло»
   * (напівпрозорість + blur), зовнішню смугу секцій робимо прозорою.
   * Усі селектори через #main-content — охоплює будь-який тип сторінки (не лише page-home/page-services).
   */
  #main-content .section.section--services-topic {
    background: transparent;
  }

  #main-content .section.section--services-topic > .container {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 28px rgba(11, 78, 120, 0.065);
    border-color: rgba(16, 32, 50, 0.09);
  }

  #main-content
    :is(
      .hero-card,
      .panel:not(.panel--dark),
      .service-card,
      .stat-card,
      .contact-card,
      .step,
      .faq-item,
      .highlight-card
    ) {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 26px rgba(11, 78, 120, 0.07);
    border-color: rgba(16, 32, 50, 0.1);
  }

  #main-content .info-band {
    background:
      linear-gradient(135deg, rgba(255, 191, 71, 0.1), rgba(11, 120, 183, 0.06)),
      rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(11, 78, 120, 0.055);
  }

  #main-content .form-panel {
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 26px rgba(11, 78, 120, 0.07);
  }

  .contact-pill,
  .proof-chip {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .service-quick-links a {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  #main-content .cta-band {
    background:
      linear-gradient(135deg, rgba(11, 120, 183, 0.11), rgba(242, 107, 91, 0.08)),
      rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 26px rgba(11, 78, 120, 0.065);
    border-color: rgba(11, 120, 183, 0.16);
  }

  .modal-dialog.callback-modal__dialog {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 14px 40px rgba(16, 32, 50, 0.14);
  }

  .container {
    width: min(1180px, calc(100% - 20px));
  }

  /* Менший вертикальний rhythm секцій і героя */
  .hero,
  .section {
    padding: 32px 0;
  }

  #main-content > .hero.hero--home-fullwidth:first-child .hero__intro {
    gap: clamp(18px, 4.5vw, 44px);
  }

  #main-content .hero-actions {
    margin: 22px 0;
  }

  #main-content .lead {
    margin-bottom: 14px;
  }

  .stats,
  .cards,
  .steps,
  .faq-grid,
  .contact-grid,
  .highlight-grid {
    gap: 14px;
  }

  .section.section--services-topic .cards {
    gap: 14px;
  }

  .section.section--services-topic > .container {
    padding: clamp(12px, 2vw, 18px) var(--services-topic-card-padding-x);
  }

  #main-content :is(.service-card, .contact-card, .highlight-card, .faq-item, .step, .stat-card, .panel, .hero-card) {
    padding: 12px;
  }

  #main-content .info-band {
    padding: 16px 14px;
  }

  .cta-band {
    padding: 20px 16px;
  }

  /* Нижня панель «Подзвонити» вимкнена — телефони в шапці та в контенті */
  .mobile-cta {
    display: none !important;
  }

  .footer {
    padding: 44px 0 22px;
  }

  .footer__grid {
    column-gap: 22px;
    row-gap: 16px;
  }

  .footer__bottom {
    margin-top: 22px;
    padding-top: 12px;
  }

  .footer li + li {
    margin-top: 6px;
  }

  /* Хаб Послуги: герой без зайвої вертикальної «подушки» */
  .page-services.page-services-index .hero.hero--home-fullwidth,
  .page-services.page-service-landing .hero.hero--home-fullwidth,
  .page-repair-topics.page-repair-topics-index .hero.hero--home-fullwidth,
.page-areas.page-areas-index .hero.hero--home-fullwidth{
    padding: 0;
  }

  /* Перший герой Головна / Контакти / Майстрам / Послуги — той самий прийом, без зайвої верхньої «смуги» 56px */
  :is(
      .page-home,
      .page-contact,
      .page-maystram,
      .page-repair-topics.page-repair-topics-index,
      .page-areas.page-areas-index,
      .page-services.page-services-index,
      .page-services.page-service-landing
    )
    #main-content
    > .hero.hero--home-fullwidth:first-child {
    padding: 0;
  }

  /* Глобальний padding .section на мобільних не змінює відступ до крихт у першій секції main */
  #main-content > .section.section--tight:first-child,
  #main-content > .section.section--services-topic:first-child {
    padding-top: var(--main-breadcrumb-offset-top);
  }

  .hero--home-fullwidth {
    overflow: hidden;
  }

  /* Мобільні: без PNG/фонових зображень у hero; CTA під текстом */
  :is(
      .hero__home-bg,
      .hero__services-bg,
      .hero__repair-topics-bg,
      .hero__maystram-bg,
      body.page-home
        #main-content
        > .hero.hero--home-fullwidth:first-child
        .hero__png-stack
        .hero__home-bg,
      body.page-services.page-services-index
        #main-content
        > .hero.hero--home-fullwidth:first-child
        .hero__png-stack
        .hero__services-bg,
      body.page-services.page-service-landing
        #main-content
        > .hero.hero--home-fullwidth:first-child
        .hero__png-stack
        .hero__services-bg,
      body.page-repair-topics.page-repair-topics-index
        #main-content
        > .hero.hero--home-fullwidth:first-child
        .hero__png-stack
        .hero__repair-topics-bg,
      body.page-areas.page-areas-index
        #main-content
        > .hero.hero--home-fullwidth:first-child
        .hero__png-stack
        .hero__areas-bg,
      .hero__areas-bg,
      body.page-maystram
        #main-content
        > .hero.hero--home-fullwidth:first-child
        .hero__png-stack
        .hero__maystram-bg,
      body.page-contact
        #main-content
        > .hero.hero--home-fullwidth:first-child
        .hero__png-stack
        .hero__home-bg,
      .page-services .hero__services-bg,
      .page-repair-topics .hero__repair-topics-bg,
      body.page-maystram .hero .hero__maystram-bg,
      body.page-contact .hero .hero__home-bg
    ) {
    display: none !important;
    visibility: hidden !important;
    background: none !important;
    background-image: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    aspect-ratio: unset !important;
    overflow: hidden !important;
  }

  /*
   * На мобілці PNG у hero вимкнені; градієнт ::after лишався і густо перекривав ліву половину,
   * тож фоновий watermark (body) був видимий лише справа.
   */
  body.page-home .hero.hero--home-fullwidth::after,
  body.page-maystram .hero.hero--home-fullwidth::after,
  body.page-contact .hero.hero--home-fullwidth::after {
    content: none;
    display: none;
    background: none;
  }

  body.page-home #main-content > .hero.hero--home-fullwidth:first-child,
  .page-services .hero--home-fullwidth,
  body.page-maystram #main-content > .hero.hero--home-fullwidth:first-child,
  body.page-contact #main-content > .hero.hero--home-fullwidth:first-child,
  .page-services.page-services-index .hero.hero--home-fullwidth,
  .page-services.page-service-landing .hero.hero--home-fullwidth,
  .page-repair-topics.page-repair-topics-index .hero.hero--home-fullwidth,
  .page-areas.page-areas-index .hero.hero--home-fullwidth {
    min-height: unset !important;
  }

  body.page-home #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack,
  body.page-services.page-services-index
    #main-content
    > .hero.hero--home-fullwidth:first-child
    .hero__png-stack,
  body.page-services.page-service-landing
    #main-content
    > .hero.hero--home-fullwidth:first-child
    .hero__png-stack,
  body.page-repair-topics.page-repair-topics-index
    #main-content
    > .hero.hero--home-fullwidth:first-child
    .hero__png-stack,
  body.page-areas.page-areas-index
    #main-content
    > .hero.hero--home-fullwidth:first-child
    .hero__png-stack,
  body.page-contact #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack,
  body.page-maystram #main-content > .hero.hero--home-fullwidth:first-child .hero__png-stack {
    aspect-ratio: unset !important;
    min-height: 0 !important;
    height: auto !important;
    background-image: none !important;
  }

  .hero-visual--home-photo,
  .hero-visual--contact-photo,
  .hero-card--visual .hero-visual,
  .hero-card--visual-compact .hero-visual {
    display: none;
  }

  :is(
      body.page-home,
      body.page-contact,
      body.page-maystram,
      body.page-services.page-services-index,
      body.page-services.page-service-landing,
      body.page-repair-topics.page-repair-topics-index,
      body.page-areas.page-areas-index
    )
    #main-content
    > .hero.hero--home-fullwidth:first-child {
    display: flex;
    flex-direction: column;
    min-height: unset;
    height: auto;
    overflow: visible;
  }

  :is(
      body.page-home,
      body.page-contact,
      body.page-maystram,
      body.page-services.page-services-index,
      body.page-services.page-service-landing,
      body.page-repair-topics.page-repair-topics-index,
      body.page-areas.page-areas-index
    )
    #main-content
    > .hero.hero--home-fullwidth:first-child
    > .container {
    order: 1;
  }

  :is(
      body.page-home,
      body.page-contact,
      body.page-maystram,
      body.page-services.page-services-index,
      body.page-services.page-service-landing,
      body.page-repair-topics.page-repair-topics-index,
      body.page-areas.page-areas-index
    )
    #main-content
    > .hero.hero--home-fullwidth:first-child
    .hero__png-stack {
    position: static;
    left: auto;
    transform: none;
    width: min(1180px, calc(100% - 32px));
    max-width: none;
    margin: 0 auto;
    aspect-ratio: unset;
    height: auto;
    min-height: 0;
    order: 2;
    pointer-events: auto;
  }

  :is(
      body.page-home,
      body.page-contact,
      body.page-maystram,
      body.page-services.page-services-index,
      body.page-services.page-service-landing,
      body.page-repair-topics.page-repair-topics-index,
      body.page-areas.page-areas-index
    )
    #main-content
    > .hero.hero--home-fullwidth:first-child
    .hero__png-stack
    .hero-home-cta {
    position: static;
    left: auto;
    bottom: auto;
    max-width: 100%;
    margin: 14px auto 0;
    padding: 0;
  }

  .page-services.page-services-index .hero.hero--home-fullwidth,
  .page-services.page-service-landing .hero.hero--home-fullwidth,
  .page-repair-topics.page-repair-topics-index .hero.hero--home-fullwidth,
  .page-areas.page-areas-index .hero.hero--home-fullwidth {
    overflow: visible;
    min-height: unset;
  }

  .hero--home-fullwidth .hero-fullbleed {
    position: relative;
    top: auto;
  }

  .hero--home-fullwidth + .section.section--tight {
    margin-top: 0;
    padding-top: 18px;
    background: transparent;
  }
}

@media (max-width: 560px) {
  .breadcrumbs {
    font-size: 0.9rem;
  }

  h1 {
    font-size: clamp(1.65rem, 6.6vw, 2.4rem);
    line-height: 1.08;
  }

  #main-content .hero--home-fullwidth .hero-intro-body h1 {
    font-size: clamp(1.65rem, 6.6vw, 2.4rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin-bottom: 12px;
    text-indent: 1em;
  }

  /* Hero title: avoid forced line breaks on small screens. */
  #main-content .hero--home-fullwidth .hero-intro-body h1 br {
    display: none;
  }

  body :is(h1, h2, h3, h4) {
    line-height: 1.14 !important;
  }

  body :is(p, li, button, .lead, .hero-intro-extra, .hero-intro-hub, a:not(.button):not(.header-phone):not(.nav-link)) {
    line-height: 1.38 !important;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.52;
  }

  /* Компактний текст у колонці hero (усі сторінки з .hero-intro-body) */
  #main-content .hero--home-fullwidth .hero-intro-body :is(.lead, .hero-intro-extra, .hero-intro-hub) {
    font-size: 1.0625rem;
    line-height: 1.5;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-fullbleed {
    margin-top: -54px;
  }

  .hero-visual--home-photo {
    height: clamp(220px, 58vw, 360px);
    object-position: center 34%;
  }

  .proof-bar {
    gap: 8px;
  }

  .proof-chip {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 0.88rem;
  }

  #main-content :is(.stat-card, .contact-card, .highlight-card, .faq-item, .step, .panel, .hero-card) {
    padding: 15px;
  }

  .footer {
    padding: 34px 0 16px;
  }

  .footer p,
  .footer li,
  .footer a {
    font-size: 0.94rem;
  }
}


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

  .hero-visual {
    transform: none;
  }
}
