/* =====================================================================
   Автосервіс — redesign
   Brand palette & typography extracted verbatim from ../ver1/style.css
   ===================================================================== */

:root {
  /* ── Brand palette ── */
  --c-bg:            #171717;
  --c-bg-elevated:   #1c1c1c;
  --c-bg-soft:       #2a2a2a;
  --c-ink:           #f5f5f5;
  --c-white:         #F7F7F4;
  --c-line:          #E1E0DB;
  --c-muted:         #b0afa8;
  --c-outline:       #C6C6C3;
  --c-accent:        #00AEEF;
  --c-accent-deep:   #0096cf;
  --c-on-accent:     #171717;
  --c-scrim-rgb:     23, 23, 23;

  --c-accent-rgb:    0, 174, 239;
  --c-line-rgb:      225, 224, 219;

  /* ── Surfaces ── */
  --surface:         rgba(255, 255, 255, 0.022);
  --surface-hover:   rgba(255, 255, 255, 0.045);
  --glass:           rgba(23, 23, 23, 0.72);
  --hairline:        rgba(var(--c-line-rgb), 0.10);
  --hairline-strong: rgba(var(--c-line-rgb), 0.18);

  /* ── Micro shadows ── */
  --shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-sm:  0 2px 10px rgba(0, 0, 0, 0.24);
  --shadow-md:  0 12px 32px -12px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 0 1px rgba(var(--c-accent-rgb), 0.35),
                 0 16px 40px -18px rgba(var(--c-accent-rgb), 0.35);

  /* ── Typography ── */
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Jura', sans-serif;
  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Jura, sans-serif;

  /* ── Rhythm ── */
  --gutter: 5vw;
  --header-h: 5.25rem;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* ── Motion ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 620ms;
}

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

html {
  font-size: clamp(14px, 1vw + 12px, 18px);
  scroll-behavior: smooth;
  scrollbar-color: rgba(var(--c-accent-rgb), 0.45) transparent;
  /* Always reserve the scrollbar's space: short pages (no scrollbar) and long
     pages (scrollbar) then have the same width, so the fixed header doesn't
     jump sideways when navigating between them or opening the mobile menu. */
  scrollbar-gutter: stable;
}

body {
  background-color: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-ui);
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

.link-to,
.link-to:visited {
  color: #00AEEF;
}

img, video, canvas, svg, iframe {
  display: block;
  max-width: 100%;
}

img, video, canvas, svg {
  height: auto;
}

::selection {
  background: rgba(var(--c-accent-rgb), 0.28);
  color: var(--c-white);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* =====================================================================
   Light theme
   ===================================================================== */
:root[data-theme="light"] {
  color-scheme: light;
  --c-bg:            #f4f4f1;
  --c-bg-elevated:   #ffffff;
  --c-bg-soft:       #e6e6e1;
  --c-ink:           #1c1c1c;
  --c-white:         #1c1c1c;
  --c-line:          #8a8a85;
  --c-muted:         #5b5b56;
  --c-outline:       #55554f;
  --c-accent:        #0096cf;
  --c-accent-deep:   #007eb0;
  --c-accent-rgb:    0, 150, 207;
  --c-line-rgb:      60, 60, 55;
  --c-scrim-rgb:     244, 244, 241;
  --c-on-accent:     #ffffff;
  --surface:         rgba(0, 0, 0, 0.025);
  --surface-hover:   rgba(0, 0, 0, 0.05);
  --glass:           rgba(244, 244, 241, 0.78);
  --shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-sm:  0 2px 10px rgba(0, 0, 0, 0.10);
  --shadow-md:  0 12px 32px -12px rgba(0, 0, 0, 0.25);
}
:root[data-theme="light"] .line,
:root[data-theme="light"] .header-line { filter: none; opacity: 0.18; }
:root[data-theme="light"] .menu-overlay,
:root[data-theme="light"] .lang-modal-overlay { background: rgba(30, 30, 30, 0.35); }
:root[data-theme="light"] .contacts-map iframe,
:root[data-theme="light"] .contacts-map:hover iframe { filter: grayscale(30%); }
:root[data-theme="light"] .messenger-icon:not(:hover) { background-color: #55554f; }
:root[data-theme="light"] .menu { box-shadow: -20px 0 60px -30px rgba(0, 0, 0, 0.3); }
:root[data-theme="light"] .service-nav__link.is-active .service-nav__index { color: rgba(255, 255, 255, 0.75); }

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--c-white);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-soft), border-color var(--dur) var(--ease-soft);
}
.theme-toggle:hover { background: var(--surface-hover); border-color: rgba(var(--c-accent-rgb), 0.35); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
@media (max-width: 768px) { .theme-toggle { margin-left: auto; } }

/* =====================================================================
   Ambient background — brand guide lines + soft accent aura
   ===================================================================== */
.lines {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 0;
  padding: 0 var(--gutter);
}

.line {
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--c-line) 12%,
    var(--c-line) 88%,
    transparent
  );
  filter: brightness(20%);
}

.aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46rem 30rem at 82% -8%, rgba(var(--c-accent-rgb), 0.12), transparent 68%),
    radial-gradient(38rem 26rem at 4% 42%, rgba(var(--c-accent-rgb), 0.055), transparent 70%);
}

/* =====================================================================
   Progress bar
   ===================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 1200;
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(var(--c-accent-rgb), 0.25), var(--c-accent));
  will-change: transform;
  pointer-events: none;
}

/* =====================================================================
   Header
   ===================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  min-height: var(--header-h);
  padding: 1.1rem var(--gutter);
  padding-top: calc(1.1rem + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease-soft),
              border-color var(--dur) var(--ease-soft),
              box-shadow var(--dur) var(--ease-soft),
              padding var(--dur) var(--ease-soft);
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(var(--c-scrim-rgb), 0.92), rgba(var(--c-scrim-rgb), 0));
  opacity: 1;
  transition: opacity var(--dur) var(--ease-soft);
  pointer-events: none;
  z-index: -2;
}

.header.scrolled {
  background-color: var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--hairline);
  box-shadow: var(--shadow-sm);
  padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
  padding-bottom: 0.75rem;
}

.header.scrolled::before {
  opacity: 0;
}

.header-lines {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: -1;
  padding: 0 var(--gutter);
}

.header-line {
  width: 1px;
  height: 100%;
  background-color: var(--c-line);
  filter: brightness(20%);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-soft);
}

.header-brand:hover {
  transform: translateY(-1px);
}

.header-brand-text {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--c-white);
  filter: brightness(80%);
  letter-spacing: 0.02em;
  margin-top: 7px;
  transition: filter var(--dur) var(--ease-soft);
}

.header-brand:hover .header-brand-text {
  filter: brightness(100%);
}

.hero-logo {
  max-width: 200px;
  width: 100%;
  height: auto;
  transition: max-width var(--dur) var(--ease-soft);
}

.header.scrolled .hero-logo {
  max-width: 168px;
}

/* =====================================================================
   Primary navigation
   ===================================================================== */
.menu__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}

.menu__item {
  position: relative;
}

.menu__link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  display: block;
  min-width: 90px;
  text-align: center;
  padding: 0.62em 1em;
  border-radius: var(--radius-pill);
  color: var(--c-muted);
  text-decoration: none;
  isolation: isolate;
  transition: color var(--dur) var(--ease-soft), transform var(--dur) var(--ease-out);
}

.menu__link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--surface);
  border: 1px solid transparent;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--dur) var(--ease-soft), transform var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-soft);
}

.menu__link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.34em;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--c-accent);
  transform: translateX(-50%);
  transition: width var(--dur) var(--ease-out);
}

.menu__link:hover,
.menu__link:focus-visible {
  color: var(--c-white);
  transform: translateY(-1px);
}

.menu__link:hover::before,
.menu__link:focus-visible::before {
  opacity: 1;
  transform: scale(1);
  border-color: var(--hairline);
}

.menu__link:hover::after,
.menu__link:focus-visible::after {
  width: 32%;
}

.menu__item--current .menu__link {
  color: var(--c-accent);
}

.menu__item--current .menu__link::before {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(var(--c-accent-rgb), 0.28);
  background: rgba(var(--c-accent-rgb), 0.08);
}

.menu__item--current .menu__link::after {
  width: 42%;
}

/* ── Burger ── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 12px 8px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  cursor: pointer;
  z-index: 1002;
  transition: background-color var(--dur) var(--ease-soft), border-color var(--dur) var(--ease-soft);
}

.burger:hover {
  background: var(--surface-hover);
  border-color: rgba(var(--c-accent-rgb), 0.35);
}

.burger span {
  display: block;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-white);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) var(--ease-soft),
              background-color var(--dur) var(--ease-soft);
  flex-shrink: 0;
}

.burger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background: var(--c-accent);
}

.burger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}

.burger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background: var(--c-accent);
}

/* ── Mobile overlay backdrop ── */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease-soft), visibility var(--dur) var(--ease-soft);
}

.menu-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 6rem;
}

.hero-content {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-text,
.hero-text-outline,
.hero-text-outline-light {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 142px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.01em;
}

.hero-text {
  color: var(--c-white);
  filter: brightness(80%);
}

.hero-text-outline {
  color: var(--c-bg);
  -webkit-text-stroke: 1px var(--c-accent);
}

.hero-text-outline-light {
  color: var(--c-bg);
  -webkit-text-stroke: 1px var(--c-outline);
}

/* staggered entrance */
.hero-content > * {
  opacity: 0;
  transform: translateY(28px);
  animation: heroIn 900ms var(--ease-out) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 120ms; }
.hero-content > *:nth-child(2) { animation-delay: 250ms; }
.hero-content > *:nth-child(3) { animation-delay: 380ms; }

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Scroll-down indicator ── */
.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeInIndicator 700ms var(--ease-out) 900ms forwards;
  transition: opacity var(--dur) var(--ease-soft);
}

@keyframes fadeInIndicator {
  to { opacity: 1; }
}

/* `animation: none` is required so the class wins over the filled keyframe. */
.scroll-down.is-hidden {
  animation: none;
  opacity: 0;
  pointer-events: none;
}

.scroll-down svg {
  animation: bounce 2.4s var(--ease-soft) infinite;
}

.scroll-down .scroll-dot {
  animation: dotDrift 2.4s var(--ease-soft) infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@keyframes dotDrift {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(14px); opacity: 0.15; }
}

/* =====================================================================
   Sections
   ===================================================================== */
.section {
  width: 100%;
  position: relative;
  z-index: 1;
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
}

.polirovka,
.ozon,
.chistka,
.contacts {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(4.5rem, 9vh, 8rem) var(--gutter);
}

/* Multi-page layout: a section that opens the page must clear the fixed header. */
main > .section:first-child:not(.hero) {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vh, 5rem));
}

.polirovka + .ozon,
.ozon + .chistka,
.chistka + .contacts {
  border-top: 1px solid var(--hairline);
}

.section-content {
  width: 100%;
  max-width: 1200px;
  display: flex;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: flex-start;
}

.section-title-wrapper {
  flex-shrink: 0;
  width: clamp(60px, 8vw, 100px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: sticky;
  top: calc(var(--header-h) + clamp(1rem, 4vh, 3rem));
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 80px);
  font-weight: 700;
  color: var(--c-white);
  filter: brightness(80%);
  text-transform: uppercase;
  line-height: 1.1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  margin: 0;
}

.ozon .section-title {
  color: var(--c-bg);
  -webkit-text-stroke: 1px var(--c-accent);
  filter: none;
}

.chistka .section-title {
  color: var(--c-bg);
  -webkit-text-stroke: 1px var(--c-outline);
  filter: none;
}

/* =====================================================================
   Service groups — modern replacement for the old tabbed widgets.
   Anchored, smooth-scrolling sub-sections + sticky scroll-spy sub-nav.
   ===================================================================== */
.service-group {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3vw, 2.75rem);
  flex: 1;
  min-width: 0;
}

/* The shell is the sticky glass pill and hosts the scroll arrows; the nav itself
   is the horizontal scroller holding the pills. */
.service-nav-shell {
  position: sticky;
  top: calc(var(--header-h) + 0.39rem);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem;
  border-radius: var(--radius-pill);
  background: var(--glass);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.service-nav {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.service-nav::-webkit-scrollbar {
  display: none;
}

/* Soft edge fade telling the user content continues past the visible strip. */
.service-nav-shell.can-scroll-left .service-nav {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 2rem);
  mask-image: linear-gradient(to right, transparent 0, #000 2rem);
}

.service-nav-shell.can-scroll-right .service-nav {
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 2rem);
  mask-image: linear-gradient(to left, transparent 0, #000 2rem);
}

.service-nav-shell.can-scroll-left.can-scroll-right .service-nav {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 2rem, #000 calc(100% - 2rem), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 2rem, #000 calc(100% - 2rem), transparent 100%);
}

/* ── Scroll arrows ── */
.service-nav__arrow {
  flex: 0 0 auto;
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--surface-hover);
  color: var(--c-white);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-soft), border-color var(--dur) var(--ease-soft),
              color var(--dur) var(--ease-soft), transform var(--dur) var(--ease-out),
              opacity var(--dur) var(--ease-soft);
}

.service-nav-shell.is-scrollable .service-nav__arrow {
  display: flex;
}

.service-nav__arrow svg {
  width: 17px;
  height: 17px;
}

.service-nav__arrow:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-on-accent);
  transform: scale(1.07);
}

.service-nav__arrow:active {
  transform: scale(0.94);
}

.service-nav__arrow:disabled {
  opacity: 0.22;
  cursor: default;
  transform: none;
  background: var(--surface);
}

/* Nudge animation on the arrow pointing at hidden content. */
.service-nav-shell.can-scroll-right .service-nav__arrow--next svg {
  animation: navNudge 1.9s var(--ease-soft) infinite;
}

.service-nav-shell.can-scroll-left .service-nav__arrow--prev svg {
  animation: navNudge 1.9s var(--ease-soft) infinite reverse;
}

.service-nav__arrow:hover svg {
  animation: none;
}

@keyframes navNudge {
  0%, 55%, 100% { transform: translateX(0); }
  75% { transform: translateX(2.5px); }
}

.service-nav__link {
  flex: 1 1 auto;
  scroll-snap-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: clamp(0.8125rem, 0.9vw + 0.45rem, 1rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: var(--c-muted);
  text-decoration: none;
  isolation: isolate;
  transition: color var(--dur) var(--ease-soft), transform var(--dur) var(--ease-out);
}

.service-nav__link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--surface-hover);
  border: 1px solid transparent;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity var(--dur) var(--ease-soft), transform var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-soft), background-color var(--dur) var(--ease-soft);
}

.service-nav__link .service-nav__index {
  font-family: var(--font-body);
  font-size: 0.75em;
  font-weight: 700;
  color: rgba(var(--c-accent-rgb), 0.65);
  transition: color var(--dur) var(--ease-soft);
}

.service-nav__link:hover,
.service-nav__link:focus-visible {
  color: var(--c-white);
  transform: translateY(-1px);
}

.service-nav__link:hover::before,
.service-nav__link:focus-visible::before {
  opacity: 1;
  transform: scale(1);
  border-color: var(--hairline-strong);
}

.service-nav__link.is-active {
  color: var(--c-on-accent);
}

.service-nav__link.is-active::before {
  opacity: 1;
  transform: scale(1);
  background: var(--c-accent);
  border-color: var(--c-accent);
}

.service-nav__link.is-active .service-nav__index {
  color: rgba(23, 23, 23, 0.6);
}

/* ── Service blocks ── */
.service-blocks {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.service-block {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.35rem, 2.6vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-xs);
  scroll-margin-top: calc(var(--header-h) + 5.25rem);
  transition: border-color var(--dur) var(--ease-soft),
              background-color var(--dur) var(--ease-soft),
              box-shadow var(--dur) var(--ease-soft),
              transform var(--dur) var(--ease-out);
}

.service-block::after {
  content: '';
  position: absolute;
  left: 0;
  top: clamp(1.35rem, 2.6vw, 2.5rem);
  bottom: clamp(1.35rem, 2.6vw, 2.5rem);
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--c-accent), rgba(var(--c-accent-rgb), 0));
  opacity: 0;
  transform: scaleY(0.2);
  transform-origin: top;
  transition: opacity var(--dur) var(--ease-soft), transform var(--dur-slow) var(--ease-out);
}

.service-block:hover {
  transform: translateY(-2px);
  background: var(--surface-hover);
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-md);
}

.service-block.is-current {
  border-color: rgba(var(--c-accent-rgb), 0.28);
}

.service-block.is-current::after {
  opacity: 1;
  transform: scaleY(1);
}

.service-block__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hairline);
}

.service-block__eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(var(--c-accent-rgb), 0.7);
  letter-spacing: 0.12em;
  flex-shrink: 0;
}

.service-block__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw + 0.4rem, 1.6rem);
  font-weight: 700;
  color: var(--c-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin: 0;
}

/* =====================================================================
   Copy
   ===================================================================== */
.section-text,
.ozon-text {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--c-muted);
  line-height: 1.75;
  margin: 0;
  max-width: 68ch;
}

.section-text strong,
.ozon-text strong {
  color: var(--c-white);
  font-weight: 700;
}

.ozon-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  min-width: 0;
  padding: clamp(1.35rem, 2.6vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-xs);
}

.ozon-heading {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw + 0.5rem, 1.75rem);
  font-weight: 700;
  color: var(--c-white);
  filter: brightness(80%);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  max-width: 46ch;
}

.ozon-subheading {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
  font-weight: 700;
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 1.35rem 0 0.25rem;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.ozon-subheading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--c-accent-rgb), 0.35), transparent);
}

/* ── Feature lists ── */
.ozon-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin: 0.35rem 0 0;
}

.ozon-list li {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--c-muted);
  line-height: 1.7;
  position: relative;
  padding: 0.75rem 1rem 0.75rem 2.1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--hairline);
  transition: transform var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-soft),
              background-color var(--dur) var(--ease-soft);
}

.ozon-list li::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 1.4em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 0 rgba(var(--c-accent-rgb), 0.35);
  transition: box-shadow var(--dur) var(--ease-soft);
}

.ozon-list li:hover {
  transform: translateX(3px);
  background: var(--surface-hover);
  border-color: rgba(var(--c-accent-rgb), 0.24);
}

.ozon-list li:hover::before {
  box-shadow: 0 0 0 4px rgba(var(--c-accent-rgb), 0.14);
}

.ozon-list li strong {
  color: var(--c-white);
  font-weight: 700;
}

.ozon-cta {
  color: var(--c-white);
  font-weight: 700;
  margin-top: 0.75rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(var(--c-accent-rgb), 0.10), rgba(var(--c-accent-rgb), 0.02));
  border: 1px solid rgba(var(--c-accent-rgb), 0.22);
  max-width: none;
}

/* ── Price highlight ── */
.ozon-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin-top: 0.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(var(--c-accent-rgb), 0.05);
  border: 1px solid rgba(var(--c-accent-rgb), 0.18);
  align-self: flex-start;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-soft),
              border-color var(--dur) var(--ease-soft);
}

.ozon-price:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--c-accent-rgb), 0.4);
  box-shadow: var(--shadow-glow);
}

.ozon-price-label {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--c-muted);
}

.ozon-price-old {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw + 0.5rem, 1.25rem);
  font-weight: 700;
  color: var(--c-muted);
  text-decoration: line-through;
}

.ozon-price-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2rem);
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1.15;
}

/* =====================================================================
   Price tables
   ===================================================================== */
.table-card {
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.012);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease-soft), box-shadow var(--dur) var(--ease-soft);
}

.table-card:hover {
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-sm);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.2vw + 0.5rem, 1rem);
  color: var(--c-muted);
}

.price-table th,
.price-table td {
  padding: 0.85rem 1.15rem;
  text-align: left;
}

.price-table th {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.026);
  border-bottom: 1px solid var(--hairline-strong);
}

.price-table th:last-child,
.price-table td:last-child {
  text-align: right;
}

.price-table tbody tr {
  transition: background-color var(--dur-fast) var(--ease-soft);
}

.price-table tbody tr + tr td {
  border-top: 1px solid rgba(var(--c-line-rgb), 0.055);
}

.price-table tbody tr:hover {
  background: rgba(var(--c-accent-rgb), 0.06);
}

.price-table td:last-child {
  color: var(--c-white);
  font-weight: 700;
  white-space: nowrap;
}

.price-table tbody tr:hover td:last-child {
  color: var(--c-accent);
}

.table-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw + 0.5rem, 1.75rem);
  font-weight: 700;
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 2.5rem 0 1rem;
}

/* =====================================================================
   Contacts
   ===================================================================== */
.contacts-content {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(0, 1.34fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: stretch;
}

.contacts-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
  padding: clamp(1.35rem, 2.6vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur) var(--ease-soft), box-shadow var(--dur) var(--ease-soft);
}

.contacts-info:hover {
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-md);
}

.contacts-info .section-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--hairline);
}

.contacts-info .section-text:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.contacts-info .section-text strong {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.contacts-info a {
  color: var(--c-accent);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  /*width: fit-content;*/
  transition: color var(--dur) var(--ease-soft), transform var(--dur) var(--ease-out);
}

.contacts-info a:hover {
  color: var(--c-white);
  transform: translateX(2px);
}

.messenger-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.messenger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--c-bg-soft);
  border: 1px solid var(--hairline);
  color: #fff;
  text-decoration: none;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-soft),
              box-shadow var(--dur) var(--ease-soft), border-color var(--dur) var(--ease-soft);
}

.messenger-icon svg,
.messenger-icon img {
  width: 30px;
  height: 30px;
}

.messenger-icon:hover {
  transform: translateY(-3px) scale(1.06);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.messenger-whatsapp:hover { background-color: #25D366; }
.messenger-telegram:hover { background-color: #0088CC; }
.messenger-viber:hover    { background-color: #7360F2; }

.contacts-map {
  position: relative;
  width: 100%;
  min-height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur) var(--ease-soft), box-shadow var(--dur) var(--ease-soft);
}

.contacts-map:hover {
  border-color: rgba(var(--c-accent-rgb), 0.28);
  box-shadow: var(--shadow-md);
}

.contacts-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  filter: grayscale(100%) invert(92%) contrast(83%);
  transition: filter var(--dur-slow) var(--ease-soft);
}

.contacts-map:hover iframe {
  filter: grayscale(60%) invert(92%) contrast(88%);
}

.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  pointer-events: none;
  z-index: 2;
  animation: pinFloat 3s var(--ease-soft) infinite;
}

@keyframes pinFloat {
  0%, 100% { transform: translate(-50%, -100%); }
  50% { transform: translate(-50%, calc(-100% - 6px)); }
}

/* =====================================================================
   Gallery — thumbnail carousel inside a service block
   ===================================================================== */
.gallery {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  min-width: 0;
}

.gallery__track {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 0.85rem;
  margin: 0;
  padding: 0.35rem 0.1rem 0.6rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.gallery__slide {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
}

.gallery__item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--c-bg-soft);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-soft),
              border-color var(--dur) var(--ease-soft);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.gallery__item:hover,
.gallery__item:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(var(--c-accent-rgb), 0.6);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(var(--c-accent-rgb), 0.35);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

/* Play badge on video thumbnails */
.gallery__play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 54px;
  height: 54px;
  translate: -50% -50%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  border: 2px solid rgba(255, 255, 255, 0.85);
  transition: background-color var(--dur) var(--ease-soft), transform var(--dur) var(--ease-out);
}

.gallery__play::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  translate: -50% -50%;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}

.gallery__item--video:hover .gallery__play {
  background: var(--c-accent);
  transform: scale(1.08);
}

.gallery__arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--surface-hover);
  color: var(--c-white);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-soft), border-color var(--dur) var(--ease-soft),
              color var(--dur) var(--ease-soft), transform var(--dur) var(--ease-out),
              opacity var(--dur) var(--ease-soft);
}

.gallery__arrow svg {
  width: 17px;
  height: 17px;
}

.gallery__arrow:hover:not(:disabled) {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-on-accent);
  transform: scale(1.07);
}

.gallery__arrow:disabled {
  opacity: 0.22;
  cursor: default;
  background: var(--surface);
}

/* Hidden until JS confirms the strip overflows */
.gallery:not(.is-scrollable) .gallery__arrow {
  display: none;
}

/* =====================================================================
   Lightbox — enlarged image / YouTube player
   ===================================================================== */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.92);
  color: #f5f5f5;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease-soft), visibility 0s linear var(--dur);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur) var(--ease-soft), visibility 0s;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
}

.lightbox__counter {
  padding-left: 0.5rem;
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
}

.lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 100%;
  padding: 0 60px;
  touch-action: pan-y;
}

.lightbox__content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.lightbox__media {
  max-width: min(100%, 1400px);
  max-height: 100%;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: lightboxIn var(--dur) var(--ease-out);
}

img.lightbox__media {
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__video {
  width: min(100%, 1280px, calc((100vh - 9rem) * 16 / 9));
  aspect-ratio: 16 / 9;
  height: auto;
  background: #000;
}

.lightbox__video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.lightbox__caption {
  min-height: 1.5em;
  padding: 0.6rem 1rem 0.2rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
  opacity: 0.85;
}

.lightbox__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-soft), border-color var(--dur) var(--ease-soft),
              transform var(--dur) var(--ease-out);
}

.lightbox__btn svg {
  width: 22px;
  height: 22px;
}

.lightbox__btn:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  transform: scale(1.06);
}

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

.lightbox__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 1;
}

.lightbox__nav--prev { left: 0.25rem; }
.lightbox__nav--next { right: 0.25rem; }

.lightbox.is-single .lightbox__nav,
.lightbox.is-single .lightbox__counter {
  visibility: hidden;
}

@media (max-width: 768px) {
  .gallery__slide { width: min(70vw, 260px); }
  .gallery__arrow { display: none !important; }
  .lightbox { padding: 0.5rem 0.25rem; }
  .lightbox__nav {
    top: auto;
    bottom: -0.25rem;
    translate: none;
  }
  .lightbox__stage { padding: 0 0 3.5rem; }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox.is-open { transition: none; }
  .lightbox__media { animation: none; }
  .gallery__item, .gallery__item img { transition: none; }
}

/* =====================================================================
   Scroll-driven reveals
   ===================================================================== */
/* `translate` (not `transform`) is used so reveals compose cleanly with
   the rotated section titles and the card hover transforms. */
[data-reveal] {
  opacity: 0;
  translate: 0 24px;
  transition: opacity var(--dur-slow) var(--ease-out), translate var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, translate;
}

[data-reveal].is-visible {
  opacity: 1;
  translate: none;
  will-change: auto;
}

[data-reveal='left']  { translate: -24px 0; }
[data-reveal='right'] { translate: 24px 0; }
[data-reveal='fade']  { translate: none; }

/* =====================================================================
   Language switch modal
   ===================================================================== */
.lang-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease-soft), visibility var(--dur) var(--ease-soft);
}

.lang-modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.lang-modal {
  background: var(--c-bg-elevated);
  border: 1px solid rgba(var(--c-accent-rgb), 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.5rem 2rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--dur-slow) var(--ease-out);
}

.lang-modal-overlay.visible .lang-modal {
  transform: translateY(0) scale(1);
}

.lang-modal-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--c-white);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.lang-modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.lang-modal-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.7rem 2.2rem;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--c-muted);
  cursor: pointer;
  transition: color var(--dur) var(--ease-soft), border-color var(--dur) var(--ease-soft),
              background-color var(--dur) var(--ease-soft), transform var(--dur) var(--ease-out);
}

.lang-modal-btn:hover {
  color: var(--c-white);
  border-color: var(--c-accent);
  transform: translateY(-1px);
}

.lang-modal-btn--yes {
  background: var(--c-accent);
  color: var(--c-bg);
  border-color: var(--c-accent);
}

.lang-modal-btn--yes:hover {
  background: var(--c-accent-deep);
  border-color: var(--c-accent-deep);
  color: var(--c-bg);
}

/* =====================================================================
   Tablet & below (<= 900px)
   ===================================================================== */
@media (max-width: 900px) {
  .section-content {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }

  .section-title-wrapper {
    position: static;
    width: auto;
    justify-content: flex-start;
  }

  .section-title {
    writing-mode: horizontal-tb;
    transform: none;
    white-space: normal;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .contacts-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .contacts-map iframe {
    min-height: 320px;
  }
}

/* =====================================================================
   Mobile navigation & layout (<= 768px)
   ===================================================================== */
@media (max-width: 768px) {
  :root {
    --header-h: 4.5rem;
  }

  .burger {
    display: flex;
  }

  .menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 84vw);
    height: 100dvh;
    background: rgba(var(--c-scrim-rgb), 0.96);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-left: 1px solid var(--hairline);
    box-shadow: -20px 0 60px -30px rgba(0, 0, 0, 0.9);
    transform: translateX(100%);
    transition: transform 420ms var(--ease-out);
    z-index: 1001;
    overflow-y: auto;
    padding-top: calc(5.5rem + env(safe-area-inset-top, 0px));
  }

  .menu.open {
    transform: translateX(0);
  }

  .menu__list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1.25rem 2rem;
    gap: 0.25rem;
  }

  .menu__link {
    text-align: left;
    justify-content: flex-start;
    min-width: 0;
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 0.85em 1em;
    border-radius: var(--radius);
    font-size: 1rem;
  }

  .menu__link::after {
    left: 1em;
    transform: none;
    bottom: 0.9em;
  }

  .menu__link:hover::after,
  .menu__link:focus-visible::after,
  .menu__item--current .menu__link::after {
    width: 22px;
  }

  .hero {
    padding: calc(var(--header-h) + 1.5rem) var(--gutter) 5rem;
  }

  .hero-text,
  .hero-text-outline,
  .hero-text-outline-light {
    font-size: clamp(2.5rem, 10vw, 4.5rem);
    line-height: 1.1;
  }

  .scroll-down {
    bottom: 1.5rem;
  }

  .service-nav-shell {
    border-radius: var(--radius);
    padding: 0.35rem;
  }

  .service-nav__arrow {
    width: 34px;
    height: 34px;
  }

  .service-nav__link {
    flex: 0 0 auto;
    font-size: 0.875rem;
    padding: 0.5rem 0.95rem;
  }

  .service-block {
    scroll-margin-top: calc(var(--header-h) + 4.5rem);
  }
}

/* =====================================================================
   Phone (<= 480px)
   ===================================================================== */
@media (max-width: 480px) {
  :root {
    --gutter: 4vw;
  }

  .lines {
    padding: 0 25vw;
  }

  .line:nth-child(odd) {
    display: none;
  }

  /* Header lines must match the page lines on phones */
  .header-lines {
    padding: 0 25vw;
  }

  .header-line:nth-child(odd) {
    display: none;
  }

  .hero-text,
  .hero-text-outline,
  .hero-text-outline-light {
    font-size: clamp(2rem, 13vw, 3.5rem);
    line-height: 1.12;
  }

  .header {
    padding: 0.75rem var(--gutter);
    padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
  }

  .hero-logo,
  .header.scrolled .hero-logo {
    max-width: 140px;
  }

  .section-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .service-block__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .section-text,
  .ozon-text,
  .ozon-list li {
    font-size: 0.95rem;
  }

  .price-table th,
  .price-table td {
    padding: 0.7rem 0.85rem;
  }

  .scroll-down svg {
    width: 20px;
    height: 32px;
  }

  .contacts-map iframe {
    min-height: 280px;
  }

  .lang-modal-buttons {
    flex-direction: column;
  }
}

/* =====================================================================
   Safe-area bottom padding (notch / gestures)
   ===================================================================== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .contacts {
    padding-bottom: calc(clamp(4.5rem, 9vh, 8rem) + env(safe-area-inset-bottom, 0px));
  }
}

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

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hero-content > *,
  .scroll-down {
    opacity: 1;
    transform: none;
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    translate: none;
  }
}
