/*
 * Homepage and shared chrome. Uses the design-system tokens.
 * Does not replace variables.css.
 */

:root {
  --header-height: clamp(76px, 2.2vw + 40px, 108px);
  --hero-title-size: clamp(3.5rem, 2rem + 1.7vw, 6.25rem);
  --hero-logo-size: clamp(3.5rem, 1.6rem + 1.6vw, 5.5rem);
  --hero-btn-size: clamp(0.95rem, 0.72rem + 0.22vw, 1.25rem);
  --hero-ui-size: clamp(0.95rem, 0.7rem + 0.28vw, 1.25rem);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

#services,
#workshop,
#symptoms,
#models,
#steps,
#work,
#reviews,
#blog,
#contact,
#booking-form {
  scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

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

.icon {
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.btn-pill {
  border-radius: 999px;
  padding-inline: 1.25rem;
}

.band {
  background: var(--color-bg-soft);
}

.eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--color-leather-light);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-head {
  margin-bottom: var(--space-6);
}

.section-head h2,
.section-intro h2 {
  margin: 0;
}

.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.section-intro .section-head {
  margin-bottom: 0;
}

.lead {
  margin: 0;
  max-width: 46ch;
  color: var(--color-text-muted);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  padding: 0;
  overflow: visible;
  background: transparent;
  border-bottom: 1px solid var(--color-border);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(17, 16, 15, 0.92);
  pointer-events: none;
}

.site-header__bar {
  position: relative;
  z-index: 1;
  overflow: visible;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.75rem 1rem;
  height: 100%;
  min-width: 0;
  width: min(92vw, clamp(2200px, 85vw, 3000px));
  max-width: none;
}

.brand {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
  min-width: 0;
  color: var(--color-text);
  text-decoration: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.brand__name {
  font-size: clamp(0.95rem, 0.78rem + 0.22vw, 1.15rem);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.01em;
  line-height: 1.05;
  white-space: nowrap;
}

.brand img,
.footer-brand img {
  display: block;
  width: var(--hero-logo-size, 56px);
  height: var(--hero-logo-size, 56px);
  border-radius: 50%;
  object-fit: cover;
}

.site-nav {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
}

.header-phones {
  order: 3;
  display: grid;
  flex: 0 0 auto;
  gap: 0;
  margin-left: auto;
}

.header-phones a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--hero-ui-size, 0.8125rem);
  font-weight: var(--fw-semibold);
  line-height: 1.15;
  white-space: nowrap;
}

.header-phones a:hover {
  color: var(--color-leather-light);
}

.header-phones .icon {
  width: 14px;
  height: 14px;
  color: var(--color-leather-light);
}

.header-book {
  order: 4;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  white-space: nowrap;
}

.header-book .icon,
.hero-actions .icon {
  width: 16px;
  height: 16px;
}

.header-call,
.menu-toggle {
  display: none;
}

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

.menu-toggle {
  order: 6;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
}

.header-call {
  order: 5;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  color: var(--color-leather-light);
  text-decoration: none;
}

.header-call .icon {
  width: 18px;
  height: 18px;
}

.menu-toggle__bar {
  position: relative;
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--color-text);
}

.menu-toggle__bar::before,
.menu-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--color-text);
}

.menu-toggle__bar::before {
  top: -6px;
}

.menu-toggle__bar::after {
  top: 6px;
}

.nav-toggle:focus-visible + .menu-toggle {
  outline: var(--outline-width) solid var(--color-focus);
  outline-offset: var(--outline-offset);
}

.nav-toggle:checked + .menu-toggle .menu-toggle__bar {
  background: transparent;
}

.nav-toggle:checked + .menu-toggle .menu-toggle__bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle:checked + .menu-toggle .menu-toggle__bar::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav__list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.15rem clamp(0.45rem, 0.65vw, 1.05rem);
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-text);
  text-decoration: none;
  font-size: clamp(0.9rem, 0.72rem + 0.2vw, 1.2rem);
  font-weight: var(--fw-medium);
}

.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a,
.site-nav__list a[aria-current="page"] {
  color: var(--color-leather-light);
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible {
  color: var(--color-leather-light);
}

.site-nav__extra {
  display: none;
}

.site-nav .sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1180px) {
  .nav-toggle,
  .menu-toggle,
  .header-call {
    display: none;
  }

  .brand,
  .header-phones,
  .header-book {
    flex-shrink: 0;
  }

  .header-phones {
    z-index: 2;
  }

  .site-nav {
    display: flex;
    justify-content: center;
  }

  .site-nav__list {
    width: max-content;
    max-width: 100%;
    gap: 0.1rem;
    padding: 0.22rem;
    overflow: visible;
    background: rgba(17, 16, 15, 0.55);
    border: 1px solid rgba(245, 242, 237, 0.16);
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  }

  .site-nav__list > .menu-item-has-children > a {
    padding-right: 1.45rem;
  }

  .site-nav__list > .menu-item-has-children > a::before {
    content: "";
    position: absolute;
    right: 0.7rem;
    top: 50%;
    width: 0.32rem;
    height: 0.32rem;
    margin-top: -0.28rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
  }

  .site-nav__list > .menu-item > a {
    position: relative;
    min-height: 2.65rem;
    padding: 0 clamp(0.72rem, 0.35rem + 0.5vw, 1.15rem);
    border-radius: 999px;
    color: var(--color-text);
    font-size: clamp(0.98rem, 0.78rem + 0.22vw, 1.15rem);
    font-weight: var(--fw-medium);
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .site-nav__list > .menu-item-has-children > a {
    padding-right: 1.55rem;
  }

  .site-nav__list > .menu-item > a::after {
    content: "";
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: 0.42rem;
    height: 1px;
    background: var(--color-leather-light);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--duration) var(--ease);
  }

  .site-nav__list > .menu-item > a:hover,
  .site-nav__list > .menu-item > a:focus-visible {
    color: var(--color-leather-light);
    background: transparent;
  }

  .site-nav__list > .menu-item > a:hover::after,
  .site-nav__list > .menu-item > a:focus-visible::after,
  .site-nav__list > .current-menu-item > a::after,
  .site-nav__list > .current_page_item > a::after,
  .site-nav__list > .current-menu-ancestor > a::after {
    transform: scaleX(1);
  }

  .site-nav__list > .current-menu-item > a,
  .site-nav__list > .current_page_item > a,
  .site-nav__list > .current-menu-ancestor > a {
    color: var(--color-text);
  }

  .site-nav .menu-item-has-children {
    position: relative;
  }

  .site-nav .sub-menu {
    display: none;
    position: absolute;
    z-index: 80;
    min-width: 17.5rem;
    max-width: 22rem;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    background: rgba(23, 21, 19, 0.98);
    border: 1px solid rgba(197, 138, 93, 0.32);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
  }

  .site-nav__list > .menu-item-has-children > .sub-menu {
    top: 100%;
    left: 0;
    max-height: min(70vh, 32rem);
    overflow-y: auto;
  }

  .site-nav__list > .menu-item-has-children:hover > .sub-menu,
  .site-nav__list > .menu-item-has-children:focus-within > .sub-menu,
  .site-nav .sub-menu > .menu-item-has-children:hover > .sub-menu,
  .site-nav .sub-menu > .menu-item-has-children:focus-within > .sub-menu {
    display: grid;
  }

  .site-nav__list > .menu-item > .sub-menu:has(> .menu-item-has-children:hover),
  .site-nav__list > .menu-item > .sub-menu:has(> .menu-item-has-children:focus-within) {
    overflow: visible;
  }

  .site-nav .sub-menu .sub-menu {
    top: -0.35rem;
    left: calc(100% - 0.35rem);
    max-height: min(70vh, 28rem);
    overflow-y: auto;
  }

  .site-nav__list > .menu-item-has-children > .sub-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -0.6rem;
    height: 0.6rem;
  }

  .site-nav .sub-menu .sub-menu::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -0.7rem;
    width: 0.7rem;
  }

  .site-nav .sub-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 2.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: var(--fw-medium);
    letter-spacing: 0;
    white-space: normal;
    text-align: left;
  }

  .site-nav .sub-menu a::after {
    content: none;
    position: static;
    width: auto;
    height: auto;
    background: none;
    transform: none;
  }

  .site-nav .sub-menu .menu-item-has-children > a::after {
    content: "";
    width: 0.4rem;
    height: 0.4rem;
    margin-left: auto;
    border-right: 1.5px solid currentColor;
    border-top: 1.5px solid currentColor;
    transform: rotate(45deg);
    flex: 0 0 auto;
    background: none;
  }

  .site-nav .sub-menu a:hover,
  .site-nav .sub-menu a:focus-visible,
  .site-nav .sub-menu .menu-item-has-children:hover > a,
  .site-nav .sub-menu .menu-item-has-children:focus-within > a {
    background: rgba(169, 111, 69, 0.18);
    color: var(--color-text);
  }
}

/* Hero */

.hero {
  --hero-copy-offset: clamp(1.5rem, 14vh, 11rem);
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin-top: calc(var(--header-height) * -1);
  padding: calc(var(--header-height) + var(--hero-copy-offset)) 0 var(--space-4);
  background: var(--color-bg-soft);
}

@media (max-height: 800px) {
  .hero {
    --hero-copy-offset: clamp(0.75rem, 3.5vh, 2.5rem);
  }
}

.hero__photo,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__photo {
  z-index: 0;
  object-fit: cover;
  object-position: 78% center;
}

.hero__shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(17, 16, 15, 0.18) 0%, rgba(17, 16, 15, 0) 28%, rgba(17, 16, 15, 0) 62%, rgba(17, 16, 15, 0.5) 100%),
    linear-gradient(90deg, rgba(17, 16, 15, 0.92) 0%, rgba(17, 16, 15, 0.8) 18%, rgba(17, 16, 15, 0.62) 40%, rgba(17, 16, 15, 0.36) 55%, rgba(17, 16, 15, 0.1) 72%, rgba(17, 16, 15, 0) 84%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-self: center;
  width: min(92vw, clamp(2200px, 85vw, 3000px));
  max-width: none;
  margin-inline: auto;
}

.hero__copy {
  width: min(100%, clamp(44rem, 42vw, 72rem));
  max-width: 72rem;
}

.hero .eyebrow {
  margin-bottom: var(--space-3);
  font-size: clamp(0.75rem, 0.55rem + 0.22vw, 1.05rem);
}

h1.hero-title {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0;
  font-size: var(--hero-title-size);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: wrap;
  hyphens: manual;
  word-break: normal;
  overflow-wrap: normal;
}

.hero-title__line {
  display: inline;
  hyphens: manual;
  overflow-wrap: normal;
  word-break: normal;
}

.hero-title__accent {
  color: var(--color-leather-light);
}

.hero-title__place {
  white-space: nowrap;
}

/* Phones: a 56px title does not fit a 375px screen ("Спеціалізований", "Івано-Франківську" ran off the edge
   and made the page scroll sideways). Smaller title, and the city line may wrap. */
@media (max-width: 767px) {
  :root {
    --hero-title-size: clamp(2rem, 1.35rem + 3vw, 3rem);
  }

  .hero-title__place {
    white-space: normal;
  }

  /* Never split these at the hyphen ("Mercedes-/Benz", "Івано-/Франківську"). */
  .hero-title__accent,
  .hero-title__city {
    white-space: nowrap;
  }
}

.subline {
  margin: var(--space-4) 0 0;
  max-width: min(100%, clamp(28rem, 28vw, 40rem));
  color: var(--color-text-muted);
  font-size: clamp(1rem, 0.82rem + 0.22vw, 1.4rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.hero-actions .btn,
.header-book .btn {
  min-height: clamp(2.75rem, 2.1rem + 0.7vw, 3.75rem);
  padding: clamp(0.7rem, 0.45rem + 0.35vw, 1.05rem) clamp(1.15rem, 0.7rem + 0.7vw, 1.85rem);
  font-size: var(--hero-btn-size, 0.95rem);
}

.hero-actions .btn-secondary {
  border-color: rgba(197, 138, 93, 0.7);
  background: rgba(17, 16, 15, 0.28);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-5);
  margin: 0 0 var(--space-4);
  padding: var(--space-5) 0 0;
  list-style: none;
}

.hero-facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
  max-width: none;
}

.hero-facts .icon {
  width: clamp(22px, 0.7rem + 0.5vw, 34px);
  height: clamp(22px, 0.7rem + 0.5vw, 34px);
  margin-top: 0.15rem;
  color: var(--color-leather-light);
}

.hero-facts li > span {
  display: block;
  min-width: 0;
}

.hero-facts strong {
  display: block;
  color: var(--color-text);
  font-size: var(--hero-ui-size, var(--fs-sm));
  font-weight: var(--fw-semibold);
}

.hero-facts li > span > span {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--hero-ui-size, var(--fs-sm));
}

.hero-floor {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
  margin-top: auto;
  padding-top: 1.25rem;
}

.hero-care {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.7rem;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  min-height: 3.25rem;
  padding: 0.7rem 1.2rem;
  border: 2px solid #ffd700;
  border-radius: 999px;
  background: rgba(11, 16, 20, 0.92);
  color: #fff8e8;
  font-size: clamp(1.15rem, 0.95rem + 0.45vw, 1.45rem);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.hero-care .ua-heart {
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
}

.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  gap: var(--space-2);
  min-height: 44px;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  text-decoration: none;
}

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

.scroll-hint__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245, 242, 237, 0.35);
  border-radius: 50%;
}

.scroll-hint .icon {
  width: 18px;
  height: 18px;
  color: var(--color-text);
}

/* Sections */

.service-grid,
.symptom-grid,
.work-grid,
.review-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

.service-grid .service-card {
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  color: var(--color-text);
  text-decoration: none;
  border-top: 2px solid rgba(197, 138, 93, 0.45);
}

.service-grid .service-card:hover {
  color: var(--color-text);
}

.service-grid .service-card h3 {
  margin: 0;
  font-size: var(--fs-lg);
}

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--color-bg);
}

.card-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  margin: 0;
}

.card-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-4) var(--space-5);
}

.service-card__mark {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  display: block;
  margin: 0;
  padding: 0.2rem 0.5rem;
  color: var(--color-text);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  background: rgba(17, 16, 15, 0.78);
  border-radius: var(--radius-sm);
}

.service-grid .service-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.workshop {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.workshop__copy {
  max-width: 40rem;
}

.workshop .lead {
  margin-top: var(--space-4);
}

.workshop__prose p {
  margin: 0 0 var(--space-4);
  max-width: 62ch;
  color: var(--color-text-muted);
}

.workshop__prose p:last-child {
  margin-bottom: 0;
}

.workshop__photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.workshop__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 60% center;
}

.symptom-card,
.work-card,
.model-card {
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.symptom-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-4);
  text-decoration: none;
  transition:
    border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.symptom-card strong {
  font-weight: var(--fw-semibold);
}

.symptom-card span {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.symptom-card:hover {
  color: var(--color-text);
  border-color: var(--color-border-hover);
  transform: translateY(var(--lift-card));
}

.model-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.model-tabs__btn {
  min-height: 44px;
  padding: 0 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  cursor: pointer;
}

.model-tabs__btn[aria-pressed="true"] {
  border-color: transparent;
  background: var(--color-btn-primary);
}

.swipe-note {
  margin: 0 0 var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.model-scroller {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scroll-behavior: auto;
  scrollbar-color: var(--color-leather-dark) transparent;
}

.model-card {
  position: relative;
  display: block;
  flex: 0 0 200px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  font-weight: var(--fw-semibold);
  text-decoration: none;
  background: var(--color-surface);
}

.model-card .card-photo {
  aspect-ratio: 4 / 5;
  object-position: center 42%;
}

.model-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 46%;
  background: linear-gradient(transparent, rgba(17, 16, 15, 0.88));
  pointer-events: none;
}

.model-card span {
  position: absolute;
  right: 0.85rem;
  bottom: 0.75rem;
  left: 0.85rem;
  z-index: 1;
}

.model-card:hover {
  color: var(--color-text);
  border-color: var(--color-border-hover);
}

.model-card[hidden] {
  display: none;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.steps__num {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--color-leather-light);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
}

.steps h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-lg);
}

.steps p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.work-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--color-surface);
  transition:
    border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.work-card:hover {
  color: inherit;
  border-color: var(--color-border-hover);
  transform: translateY(var(--lift-card));
}

.work-card h3 {
  margin: 0;
  font-size: var(--fs-lg);
}

.work-card__tag {
  margin: 0 0 var(--space-2);
  color: var(--color-leather-light);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: 0;
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 2px solid rgba(197, 138, 93, 0.45);
  border-radius: var(--radius-lg);
}

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

.review-card p {
  margin: 0;
}

.review-card footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.review-card__who {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-text);
}

.review-card cite {
  font-style: normal;
  font-weight: var(--fw-semibold);
}

.review-card__mark {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #8c5c39;
  color: #f6f1ea;
  font-size: 0.72rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
}

.section-more {
  color: var(--color-leather-light);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  white-space: nowrap;
}

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

.blog-grid {
  display: grid;
  gap: var(--space-3);
}

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.blog-card .card-copy {
  flex: 1;
  gap: var(--space-3);
}

.blog-card__date,
.blog-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.blog-card h3 {
  margin: 0;
  font-size: var(--fs-lg);
}

.blog-card h3 a,
.blog-card__more {
  color: var(--color-text);
  text-decoration: none;
}

.blog-card h3 a:hover,
.blog-card__more:hover {
  color: var(--color-leather-light);
}

.blog-card__more {
  margin-top: auto;
  font-weight: var(--fw-semibold);
}

.blog-shell {
  padding: clamp(2rem, 3vw, 3.25rem) 0 clamp(3.5rem, 6vw, 5.5rem);
}

.blog-hero h1 {
  max-width: 18em;
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 1.4rem + 1.2vw, 3rem);
  line-height: 1.12;
}

.blog-lead {
  max-width: 46rem;
}

.blog-lead :is(h2, h3, p) {
  margin: 0 0 0.55rem;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
}

.blog-lead :is(h2, h3) {
  color: var(--color-text);
  font-weight: var(--fw-semibold);
  font-size: 1.15rem;
}

.blog-count,
.blog-empty {
  margin: 0.75rem 0 0;
  color: var(--color-text-muted);
}

.blog-tools {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.35rem;
}

.blog-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 36rem;
}

.blog-search input[type="search"] {
  flex: 1 1 14rem;
  min-height: 44px;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
}

.blog-search button {
  min-height: 44px;
  padding: 0 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--color-btn-primary);
  color: var(--color-text);
  font: inherit;
  font-weight: var(--fw-semibold);
  cursor: pointer;
}

.blog-cats {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-color: var(--color-leather-dark) transparent;
}

.blog-cats a {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  font-size: var(--fs-sm);
  text-decoration: none;
  white-space: nowrap;
}

.blog-cats a[aria-current="page"] {
  border-color: transparent;
  background: var(--color-btn-primary);
}

.blog-grid--archive {
  margin-top: 1.75rem;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.blog-card__cat {
  color: var(--color-leather-light);
  text-decoration: none;
}

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

.blog-card__title {
  margin: 0;
  font-size: var(--fs-lg);
  line-height: 1.3;
}

.blog-card__title a {
  color: var(--color-text);
  text-decoration: none;
}

.blog-card__title a:hover {
  color: var(--color-leather-light);
}

.blog-related {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.blog-related h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 1.2rem + 0.6vw, 2rem);
}

.blog-card .card-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  background: #141210;
}

@media (min-width: 1100px) {
  .blog-card--lead {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(20rem, 46%) minmax(0, 1fr);
    align-items: center;
  }

  .blog-card--lead .card-media {
    height: auto;
  }

  .blog-card--lead .card-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
  }

  .blog-card--lead .card-copy {
    justify-content: flex-start;
    padding: var(--space-6);
  }

  .blog-card--lead .blog-card__title {
    font-size: clamp(1.6rem, 1.2rem + 0.7vw, 2.15rem);
  }
}

.contact-grid {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}

.contact-lead {
  margin-top: var(--space-3);
  margin-bottom: var(--space-5);
}

.form-notice {
  margin: 0 0 var(--space-4);
  padding: 1.15rem 1.2rem 1.2rem 1.15rem;
  border: 1px solid rgba(197, 138, 93, 0.5);
  border-left: 4px solid #c58a5d;
  border-radius: 14px;
  background: #141210;
  color: #f5f2ed;
  font-weight: 400;
  line-height: 1.45;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.form-notice--ok {
  background: linear-gradient(135deg, rgba(169, 111, 69, 0.34), #141210 46%);
}

.form-notice--err {
  background: linear-gradient(135deg, rgba(140, 92, 57, 0.22), #1a1412 42%);
}

.form-notice__kicker {
  margin: 0 0 0.35rem;
  color: #c58a5d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-notice__title {
  margin: 0 0 0.45rem;
  color: #f7f1ea;
  font-size: clamp(1.25rem, 1.05rem + 0.55vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
}

.form-notice__text {
  margin: 0;
  max-width: 38rem;
  color: #f5f2ed;
  font-size: 1.05rem;
  font-weight: 500;
}

.form-notice__meta {
  margin: 0.8rem 0 0;
  color: #c58a5d;
  font-size: 1rem;
  font-weight: 600;
}

.form-notice__phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0.75rem 0 0;
}

.form-notice__phones a {
  color: #f7f1ea;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.form-notice__phones a:hover,
.form-notice__phones a:focus-visible {
  color: #c58a5d;
}

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

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 16, 20, 0.78);
}

.booking-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  max-height: calc(100svh - 2rem);
  overflow: auto;
  padding: 1.35rem 1.2rem 1.4rem;
  border: 1px solid rgba(197, 138, 93, 0.5);
  border-radius: 16px;
  background: #141210;
  color: #f5f2ed;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.booking-modal__panel h2 {
  margin: 0 0 0.4rem;
  padding-right: 2.75rem;
  color: #f7f1ea;
  font-size: clamp(1.45rem, 1.2rem + 0.5vw, 1.85rem);
  line-height: 1.2;
}

.booking-modal__lead {
  margin: 0 0 1rem;
  color: #d9d0c6;
}

.booking-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(197, 138, 93, 0.55);
  border-radius: 999px;
  background: transparent;
  color: #f5f2ed;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.booking-modal__close:hover,
.booking-modal__close:focus-visible {
  border-color: #c58a5d;
  color: #c58a5d;
}

.booking-modal .lead-form .btn {
  background: #8c5c39;
}

body.booking-modal-open {
  overflow: hidden;
}

.lead-form {
  position: relative;
  display: grid;
  gap: var(--space-4);
}

.lead-form label {
  display: grid;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

.lead-form .field-hint {
  color: var(--color-muted, #b7aea4);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.4;
}

.lead-form input:invalid[aria-invalid="true"],
.lead-form input:user-invalid {
  border-color: #c45c4a;
}

.lead-form .btn {
  justify-self: start;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-side {
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.contact-side > p:last-child {
  margin-bottom: 0;
}

.contact-label {
  margin: 0 0 var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.contact-address {
  margin: var(--space-4) 0 0;
  font-weight: var(--fw-semibold);
}

.contact-region {
  margin: 0 0 var(--space-3);
  color: var(--color-text-muted);
}

.contact-phones a,
.footer-phones a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-text);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}

.contact-phones a {
  font-size: var(--fs-xl);
}

.contact-phones a:hover,
.footer-phones a:hover {
  color: var(--color-leather-light);
}

.map-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: var(--fw-semibold);
}

/* Footer and mobile bar */

.site-footer {
  padding: var(--space-8) 0 var(--space-5);
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  gap: var(--space-6);
}

.footer-brand img {
  width: 72px;
  height: 72px;
  margin-bottom: var(--space-3);
}

.site-footer h2 {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-lg);
}

.service-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-4);
}

.service-extra a {
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  text-decoration: none;
}

.service-extra a:hover {
  border-color: var(--color-border-hover);
  color: var(--color-leather-light);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.crumbs a {
  color: var(--color-leather-light);
  text-decoration: none;
}

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

.crumbs span[aria-current="page"] {
  color: var(--color-text);
}

.rel-block {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.rel-block h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.rel-block ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rel-block a {
  color: var(--color-leather-light);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.rel-block a:hover {
  color: var(--color-text);
}

.seo-guide,
.mercedes-seo-article {
  margin-top: 2.5rem;
}

.seo-guide h2,
.mercedes-seo-article h2 {
  margin: 2rem 0 0.75rem;
  font-size: clamp(1.35rem, 1.1rem + 0.4vw, 1.7rem);
}

.seo-guide h3,
.mercedes-seo-article h3 {
  margin: 1.4rem 0 0.4rem;
  font-size: 1.15rem;
}

.seo-guide p,
.mercedes-seo-article p {
  margin: 0 0 0.9rem;
}

.seo-guide a,
.mercedes-seo-article a {
  color: var(--color-leather-light);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-brand p,
.footer-base {
  color: var(--color-text-muted);
}

.footer-brand p {
  max-width: 36ch;
}

.footer-phones {
  display: grid;
}

.footer-links {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-leather-light);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  font-size: var(--fs-sm);
}

.footer-base p {
  margin: 0;
}

.ua-line {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.25rem;
  padding: 0.65rem 1.15rem;
  border: 2px solid #ffd700;
  border-radius: 999px;
  background: rgba(11, 16, 20, 0.92);
  color: #f5f2ed;
  font-size: clamp(1.15rem, 0.95rem + 0.45vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.ua-line .ua-heart {
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
}

.mobile-bar {
  display: none;
}

/* Inner content on the dark background */

.entry-wrap > article + article {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.entry-thumb {
  margin: 0 0 var(--space-5);
}

.entry-thumb img,
.entry-content img {
  height: auto;
  border-radius: var(--radius-md);
}

.entry-figure {
  margin: var(--space-5) 0;
}

.entry-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.entry-figure figcaption {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.entry-thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.entry-content {
  color: var(--color-text);
}

.entry-content::after {
  content: "";
  display: block;
  clear: both;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: var(--color-text);
}

.entry-content a {
  color: var(--color-leather-light);
}

.entry-content a:hover {
  color: var(--color-text);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25rem;
}

.entry-content blockquote {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-4);
  border-left: 3px solid var(--color-leather);
  color: var(--color-text-muted);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.entry-content pre {
  overflow: auto;
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-md);
}

.entry-content .alignleft {
  float: left;
  margin: 0 var(--space-4) var(--space-4) 0;
}

.entry-content .alignright {
  float: right;
  margin: 0 0 var(--space-4) var(--space-4);
}

.entry-content .aligncenter {
  display: block;
  margin-inline: auto;
}

.page-shell {
  padding: clamp(2rem, 3vw, 3.25rem) 0 clamp(3.5rem, 6vw, 5.5rem);
}

.page-shell .entry-wrap {
  width: min(100% - 2rem, 48rem);
  margin-inline: auto;
}

.page-shell .entry-content h1,
.page-shell .entry-title {
  margin: 0 0 1.35rem;
  font-size: clamp(2rem, 1.35rem + 1.35vw, 2.85rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.page-shell .entry-content h2 {
  margin: 2.4rem 0 0.85rem;
  font-size: clamp(1.35rem, 1.12rem + 0.45vw, 1.7rem);
  line-height: 1.25;
}

.page-shell .entry-content h3 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.2rem;
}

.page-shell .entry-content p,
.page-shell .entry-content li {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.page-shell .entry-content p {
  margin: 0 0 1rem;
}

.page-shell .entry-header .blog-card__meta {
  margin-bottom: 0.85rem;
}

.page-shell .entry-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 18px;
  background: #141210;
}

.page-shell .entry-figure {
  margin: 0 0 1.75rem;
}

.page-shell .entry-figure img,
.page-shell .entry-content img.entry-photo,
.page-shell .entry-content img.size-medium,
.page-shell .entry-content img.size-large {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  margin: 0 0 1.5rem;
  border-radius: 18px;
  background: #141210;
}

.page-shell .entry-content img[width="20"],
.page-shell .entry-content img[width="16"],
.page-shell .entry-content img[width="24"],
.page-shell .entry-content img[width="32"],
.page-shell .entry-content img[width="40"],
.page-shell .entry-content img[width="48"] {
  display: inline-block;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  margin: 0 0.25rem;
  border-radius: 0;
  object-fit: contain;
  vertical-align: middle;
}

.entry-content img.entry-photo,
.entry-content img.size-medium,
.entry-content img.size-large {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto var(--space-5);
  border-radius: var(--radius-lg);
}

.entry-content .wp-caption-text,
.archive-description {
  color: var(--color-text-muted);
}

.entry-content iframe,
.entry-content video,
.entry-content embed {
  max-width: 100%;
}

.entry-wrap input[type="text"],
.entry-wrap input[type="email"],
.entry-wrap input[type="url"],
.entry-wrap input[type="tel"],
.entry-wrap input[type="date"],
.entry-wrap input[type="search"],
.entry-wrap textarea,
.lead-form input,
.lead-form textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 input[type="url"],
.wpcf7 textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  font-size: var(--fs-base);
}

.lead-form textarea,
.entry-wrap textarea {
  min-height: 8rem;
  resize: vertical;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin: 0 0 var(--space-6);
}

.search-form label {
  flex: 1 1 16rem;
}

.search-form .search-submit,
.comment-form .submit {
  min-height: 44px;
  padding: 0 1.15rem;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-btn-primary);
  color: var(--color-text);
  font: inherit;
  font-weight: var(--fw-semibold);
  cursor: pointer;
}

.navigation.pagination {
  margin-top: var(--space-6);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  text-decoration: none;
}

.page-numbers.current {
  background: var(--color-btn-primary);
  border-color: transparent;
}

.comment-list,
.comment-respond {
  margin-top: var(--space-7);
  color: var(--color-text);
}

.comment-list {
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .symptom-grid,
  .work-grid,
  .review-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

@media (min-width: 800px) {
  .workshop {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-8);
  }

  .footer-grid {
    grid-template-columns: 1.15fr 1.15fr 1.2fr 0.95fr 0.85fr;
  }
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

@media (min-width: 1366px) {
  .hero-facts {
    grid-template-columns: repeat(4, max-content);
    justify-content: start;
  }
}

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

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

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

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

@media (min-width: 1280px) {
  .steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1179px) {
  .header-phones,
  .header-book {
    display: none;
  }

  .header-call,
  .menu-toggle {
    display: inline-flex;
  }

  .brand {
    margin-right: auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 3;
    max-height: calc(100dvh - var(--header-height) - 5rem);
    overflow: auto;
    padding: var(--space-2) var(--container-padding) var(--space-4);
    background: rgba(17, 16, 15, 0.97);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-toggle:checked ~ .site-nav {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__list a {
    width: 100%;
    padding: 0.15rem 0.15rem;
    font-size: 1.05rem;
    font-weight: var(--fw-semibold);
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav__list a:hover,
  .site-nav__list a:focus-visible {
    color: var(--color-leather-light);
  }

  .site-nav .sub-menu {
    display: grid;
    position: static;
    max-height: none;
    overflow: visible;
    margin: 0 0 0.35rem 0.85rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-nav .sub-menu .sub-menu {
    margin-left: 0.85rem;
  }

  .site-nav .sub-menu a {
    font-size: 0.95rem;
    font-weight: var(--fw-medium);
    color: var(--color-text-muted);
  }

  .site-nav .sub-menu .sub-menu a {
    font-size: 0.9rem;
  }

  .site-nav__extra {
    display: grid;
    gap: var(--space-2);
    margin-top: var(--space-3);
  }

  .site-nav__extra a {
    min-height: 44px;
  }

  .footer-links a {
    min-height: 44px;
  }

  .mobile-bar {
    position: fixed;
    z-index: 45;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3) calc(var(--space-2) + env(safe-area-inset-bottom));
    background: rgba(17, 16, 15, 0.94);
    border-top: 1px solid var(--color-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .mobile-bar .btn {
    width: 100%;
    min-height: 44px;
  }

  body {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }

  .hero {
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 767px) {
  .hero {
    --hero-copy-offset: clamp(1rem, 6vh, 3.25rem);
  }

  .hero__photo {
    object-position: center center;
  }

  .hero__shade {
    background: linear-gradient(180deg, rgba(17, 16, 15, 0.78) 0%, rgba(17, 16, 15, 0.5) 38%, rgba(17, 16, 15, 0.22) 68%, rgba(17, 16, 15, 0.62) 100%);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn,
  .lead-form .btn {
    width: 100%;
  }

  .hero-floor {
    align-items: center;
    gap: 0.85rem;
    margin-top: auto;
    padding-top: 1rem;
  }

  .hero-care,
  .scroll-hint {
    align-self: center;
  }

  .section-intro {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) and (max-height: 800px) {
  .hero {
    --hero-copy-offset: 1rem;
  }
}

@media (min-width: 783px) {
  .admin-bar .site-header {
    top: 32px;
  }

  .admin-bar .hero {
    min-height: calc(100vh - 32px);
    min-height: calc(100dvh - 32px);
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .admin-bar .hero {
    min-height: calc(100vh - 46px);
    min-height: calc(100dvh - 46px);
  }
}

@media (min-width: 1920px) {
  .section {
    padding-block: 5rem;
    font-size: 1.0625rem;
  }

  .section h2 {
    font-size: 2.5rem;
  }

  .model-card {
    flex-basis: 220px;
  }
}

@media (min-width: 2560px) {
  .section {
    padding-block: 5.75rem;
    font-size: 1.125rem;
  }

  .section h2 {
    font-size: 2.75rem;
  }

  .service-grid .service-card h3,
  .steps h3,
  .work-card h3 {
    font-size: 1.35rem;
  }

  .model-card {
    flex-basis: 240px;
  }
}

@media (min-width: 3840px) {
  .section {
    padding-block: 6.5rem;
    font-size: 1.1875rem;
  }

  .section h2 {
    font-size: 3rem;
  }

  .service-grid .service-card h3,
  .steps h3,
  .work-card h3 {
    font-size: 1.5rem;
  }

  .model-card {
    flex-basis: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .model-scroller {
    scroll-behavior: auto;
  }

  .symptom-card,
  .menu-toggle__bar,
  .menu-toggle__bar::before,
  .menu-toggle__bar::after {
    transition: none;
  }
}

.booking-panel {
  margin-top: var(--space-7);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.booking-panel h2 {
  margin: var(--space-2) 0 var(--space-3);
}

.booking-panel > p {
  margin: 0 0 var(--space-4);
  color: var(--color-text-muted);
}

.wpcf7 {
  margin-top: var(--space-5);
}

.wpcf7 form {
  display: grid;
  gap: var(--space-3);
}

.wpcf7 label,
.wpcf7 .wpcf7-form-control-wrap {
  display: block;
}

.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"] {
  justify-self: start;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: #8c5c39;
  color: #f6f1ea;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.wpcf7-not-valid-tip,
.wpcf7-response-output {
  color: var(--color-text);
}

.page-shell article:has(.entry-content h1) > .entry-header {
  display: none;
}

.reviews-page.page-shell .entry-wrap {
  width: min(100% - 2rem, 72rem);
}

.reviews-page .panel-layout,
.reviews-page .panel-grid,
.reviews-page .panel-grid-cell,
.reviews-page .siteorigin-panels-stretch {
  width: 100% !important;
  max-width: 100%;
  margin-right: 0 !important;
  margin-left: 0 !important;
  left: auto !important;
}

.reviews-page .panel-row-style[style*="background-image"] {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 340px;
  margin: 0 0 2rem;
  padding: 1.6rem !important;
  overflow: hidden;
  border-radius: 18px;
  background-size: cover !important;
  background-position: center 62% !important;
}

.reviews-page .panel-row-style[style*="background-image"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 16, 15, 0.88), rgba(17, 16, 15, 0.28));
}

.reviews-page .panel-row-style[data-overlay="true"] {
  display: none;
}

.reviews-page .sow-headline-container {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
}

.reviews-page .sow-headline {
  margin: 0;
  color: #f6f1ea;
  font-size: clamp(2rem, 1.35rem + 1.35vw, 2.85rem);
  line-height: 1.15;
}

.reviews-page .decoration {
  display: flex;
  justify-content: center;
  margin: 0.85rem 0 0.65rem;
}

.reviews-page .decoration-inside {
  width: 4.5rem;
  height: 2px;
  background: #c58a5d;
}

.reviews-page .sow-sub-headline {
  margin: 0;
  color: rgba(246, 241, 234, 0.82);
  font-size: 1.05rem;
  font-weight: 400;
}

.reviews-page .wpcr3_respond_3 {
  margin: 0 0 1.5rem;
}

.reviews-page .wpcr3_show_btn,
.reviews-page .wpcr3_submit_btn,
.reviews-page .wpcr3_cancel_btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: #8c5c39;
  color: #f6f1ea;
  font-weight: 600;
  cursor: pointer;
}

.reviews-page .wpcr3_cancel_btn {
  background: transparent;
  border: 1px solid var(--color-border);
}

.reviews-page .wpcr3_table_2 {
  width: min(100%, 36rem);
}

.reviews-page .wpcr3_table_2 td {
  display: block;
  padding: 0.35rem 0;
}

.reviews-page .wpcr3_table_2 input[type="text"],
.reviews-page .wpcr3_table_2 textarea {
  width: 100%;
}

.reviews-page .wpcr3_business {
  display: grid;
  gap: 1rem;
}

.reviews-page .wpcr3_item_name,
.reviews-page .wpcr3_aggregateRating_overallText,
.reviews-page .wpcr3_aggregateRating_reviewCount,
.reviews-page .wpcr3_dotline {
  display: none;
}

.reviews-page .wpcr3_aggregateRating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.25rem;
}

.reviews-page .wpcr3_review {
  margin: 0;
  padding: 1.25rem 1.35rem 1.4rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 2px solid rgba(197, 138, 93, 0.45);
  border-radius: 18px;
}

.reviews-page .wpcr3_review_title {
  margin: 0.35rem 0 0.5rem;
}

.reviews-page .wpcr3_review_datePublished,
.reviews-page .wpcr3_review_author {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.reviews-page .wpcr3_caps {
  color: var(--color-text);
  font-weight: 600;
}

.reviews-page .wpcr3_content,
.reviews-page .wpcr3_content p {
  margin: 0;
}

@media (min-width: 800px) {
  .reviews-page .wpcr3_business {
    grid-template-columns: 1fr 1fr;
  }

  .reviews-page .wpcr3_aggregateRating {
    grid-column: 1 / -1;
  }
}

/* Bottom-right corner: the AI chat button (ays-chatgpt-assistant) sat on top of the reCAPTCHA badge on desktop
   and on the «Записатися» button of the quick-action bar on phones. Stack them instead. */
.ays-assistant-chatbox-closed-view {
  bottom: 88px !important;
}

@media (max-width: 1179px) {
  .grecaptcha-badge {
    bottom: calc(5.25rem + env(safe-area-inset-bottom)) !important;
  }

  .ays-assistant-chatbox-closed-view {
    bottom: calc(9.75rem + env(safe-area-inset-bottom)) !important;
  }
}

/* Category descriptions sometimes start with an inline image: put it above the text. */
.blog-lead img {
  display: block;
  float: none;
  max-width: min(100%, 22rem);
  height: auto;
  margin: 0 0 1rem;
  border-radius: var(--radius-lg);
}
