/* ==========================================================================
   CleanWave — styles.css (v4, "Ethereal Glass" rebuild)
   Self-sufficient design system. Does NOT depend on Tailwind being loaded.

   Vibe: deep glass + single teal accent, floating pill nav, double-bezel
   cards, cinematic b/w hero. Motion: cubic-bezier(0.32,0.72,0,1), only
   transform/opacity/filter are animated.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  --font-sans: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  /* dark (base) palette */
  --bg: #070c16;
  --bg-soft: #0a1120;
  --bg-footer: #05080f;
  --card: rgba(255, 255, 255, 0.045);
  --card-solid: #101a2e;
  --card-hover: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.19);
  --text: #eef2f8;
  --muted: #a3aec2;
  --accent: #2dd4bf;
  --accent-strong: #46e6d1;
  --accent-hover: #5ff0dc;
  --accent-title: #67e8d9;
  --accent-ink: #04241d;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --accent-border: rgba(45, 212, 191, 0.45);
  --glow: rgba(45, 212, 191, 0.16);
  --hero-text: #f4f7fb;
  --header-bg: rgba(9, 14, 26, 0.72);
  --header-bg-solid: rgba(9, 14, 26, 0.92);
  --scrim: rgba(3, 6, 12, 0.6);
  --menu-bg: rgba(6, 10, 19, 0.86);
  --shell: rgba(255, 255, 255, 0.035);

  --shadow-card: 0 24px 60px -28px rgba(1, 5, 14, 0.85);
  --shadow-pop: 0 32px 80px -24px rgba(1, 5, 14, 0.9);
  --shadow-img: 0 40px 90px -30px rgba(1, 5, 14, 0.9);
  --inset-hi: inset 0 1px 0 rgba(255, 255, 255, 0.08);

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;

  /* solid theme-independent CTA teal: white text stays >= 4.5:1 on it,
     while the glow keeps it luminous on the dark background */
  --btn-hi: #0d837a;
  --btn-lo: #0a6d64;
  --btn-hi-hover: #0f958a;
  --btn-lo-hover: #0b7a70;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.44, 1);
  --container: 1180px;
  --header-h: 64px;
}

html[data-theme="light"] {
  --bg: #f4f6f8;
  --bg-soft: #eceff3;
  --bg-footer: #0b1220;
  --card: #ffffff;
  --card-solid: #ffffff;
  --card-hover: #ffffff;
  --border: rgba(11, 22, 40, 0.11);
  --border-strong: rgba(11, 22, 40, 0.2);
  --text: #0d1626;
  --muted: #55657c;
  --accent: #0ea5a0;
  --accent-strong: #0b8f8a;
  --accent-hover: #0c9c96;
  --accent-title: #0a6e69;
  --accent-ink: #062b24;
  --accent-soft: rgba(14, 165, 160, 0.1);
  --accent-border: rgba(14, 165, 160, 0.35);
  --glow: rgba(14, 165, 160, 0.18);
  --hero-text: #f4f7fb;
  --header-bg: rgba(255, 255, 255, 0.72);
  --header-bg-solid: rgba(255, 255, 255, 0.92);
  --scrim: rgba(13, 22, 38, 0.4);
  --menu-bg: rgba(248, 250, 252, 0.9);
  --shell: rgba(11, 22, 40, 0.04);

  --shadow-card: 0 20px 50px -24px rgba(15, 30, 55, 0.22);
  --shadow-pop: 0 28px 64px -24px rgba(15, 30, 55, 0.26);
  --shadow-img: 0 36px 80px -32px rgba(15, 30, 55, 0.3);
  --inset-hi: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
html[data-theme="light"] { color-scheme: light; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }

/* anchored sections must never hide their headline under the floating pill */
section[id], main[id] { scroll-margin-top: 96px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

::selection { background: var(--accent); color: var(--accent-ink); }

body.menu-open { overflow: hidden; }

/* film grain: fixed, non-interactive, unifies all sections */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

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

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 60;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--btn-hi) 0%, var(--btn-lo) 100%);
  color: #ffffff;
  font-weight: 600;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 12px; }

/* IO trigger for the header state */
#scroll-sentinel {
  position: absolute;
  top: 56px;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* --------------------------------------------------------------- buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.5s var(--ease), background 0.5s var(--ease),
              border-color 0.5s var(--ease), box-shadow 0.5s var(--ease),
              color 0.5s var(--ease);
}
.btn i { font-size: 19px; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(180deg, var(--btn-hi) 0%, var(--btn-lo) 100%);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(4, 24, 21, 0.25);
  box-shadow: 0 14px 34px -14px var(--glow),
              inset 0 1px 0 rgba(255, 255, 255, 0.26),
              inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--btn-hi-hover) 0%, var(--btn-lo-hover) 100%);
  box-shadow: 0 20px 44px -14px var(--glow),
              inset 0 1px 0 rgba(255, 255, 255, 0.3),
              inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--border-strong); transform: translateY(-1px); }

.btn-ink {
  background: linear-gradient(180deg, var(--btn-hi) 0%, var(--btn-lo) 100%);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(4, 24, 21, 0.25);
  box-shadow: 0 16px 38px -14px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}
.btn-ink:hover {
  background: linear-gradient(180deg, var(--btn-hi-hover) 0%, var(--btn-lo-hover) 100%);
  transform: translateY(-1px);
}

/* secondary on dark surfaces: must never melt into the background */
.btn-ink-outline {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
  box-shadow: var(--inset-hi);
}
.btn-ink-outline:hover {
  background: rgba(255, 255, 255, 0.17);
  border-color: rgba(255, 255, 255, 0.78);
  transform: translateY(-1px);
}

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* "button-in-button" trailing orb */
.btn-orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: -10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 15px;
  transition: transform 0.5s var(--ease-spring), background 0.5s var(--ease);
}
.btn:hover .btn-orb { transform: translate(2px, -2px) scale(1.06); background: rgba(255, 255, 255, 0.28); }
.btn-orb-ink { background: rgba(255, 255, 255, 0.18); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 19px;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.icon-btn:hover { background: var(--card-hover); border-color: var(--border-strong); }
.icon-btn:active { transform: scale(0.94); }

/* theme icons: show the icon of the theme you can switch TO */
html[data-theme="dark"] .icon-sun { display: inline-block; }
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: inline-block; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-title);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ------------------------------------------------- section shell + heads */
/* ONE rhythm for every section: identical vertical padding everywhere, so
   gaps between blocks never jump from tight to empty-looking */
.section { padding: clamp(76px, 9.5vw, 120px) 0; }
.section-soft {
  background:
    radial-gradient(60% 50% at 50% 0%, var(--accent-soft) 0%, transparent 70%),
    var(--bg-soft);
}

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.section-sub { margin-top: 14px; color: var(--muted); font-size: 16.5px; line-height: 1.65; }
/* =============================================================== HEADER ==
   Floating glass pill ("шторка"): detached from the top edge, centered,
   rounded; nav links sit in the middle of the pill. */
.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  width: min(1160px, 100%);
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 18px 44px -22px rgba(1, 5, 14, 0.55), var(--inset-hi);
  transition: background 0.6s var(--ease), box-shadow 0.6s var(--ease),
              border-color 0.6s var(--ease);
}
.site-header.is-scrolled .nav-pill,
.site-header.always-solid .nav-pill {
  background: var(--header-bg-solid);
  border-color: var(--border-strong);
  box-shadow: 0 22px 54px -20px rgba(1, 5, 14, 0.65), var(--inset-hi);
}

.header-left {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--btn-hi) 0%, var(--btn-lo) 100%);
  color: #ffffff;
  font-size: 18px;
  box-shadow: 0 8px 20px -8px var(--glow);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  grid-column: 2;
  justify-self: center;
}
.main-nav a {
  position: relative;
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.4s var(--ease), background 0.4s var(--ease);
}
.main-nav a:hover { color: var(--text); background: var(--card-hover); }
.main-nav a.is-active { color: var(--text); background: var(--card-hover); }

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  grid-column: 3;
  justify-self: end;
}

/* language dropdown */
.lang-wrap { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.lang-btn:hover { background: var(--card-hover); border-color: var(--border-strong); }
.lang-btn i { font-size: 13px; color: var(--muted); transition: transform 0.4s var(--ease); }
.lang-btn[aria-expanded="true"] i { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 176px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--header-bg-solid);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.lang-menu.open { opacity: 1; transform: none; pointer-events: auto; }

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s var(--ease);
}
.lang-option:hover { background: var(--card-hover); }
.lang-option .lang-check { color: var(--accent); opacity: 0; }
.lang-option.is-active .lang-check { opacity: 1; }
.lang-option.is-active span { color: var(--accent-title); }

/* burger (mobile only) */
.nav-burger { display: none; position: relative; }
.nav-burger .icon-x { display: none; }
.nav-burger.is-open .icon-bars { display: none; }
.nav-burger.is-open .icon-x { display: inline-block; }

/* ------------------------------------------------------- mobile menu ---- */
.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 44;
  background: var(--scrim);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.menu-scrim.is-open { opacity: 1; pointer-events: auto; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 46;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 96px 28px 40px;
  background: var(--menu-bg);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }

.mm-links { display: flex; flex-direction: column; gap: 4px; }
.mm-links a {
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), background 0.3s var(--ease);
}
.mm-links a:hover { background: var(--card-hover); }
.mobile-menu.is-open .mm-links a { opacity: 1; transform: none; }
.mobile-menu.is-open .mm-links a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open .mm-links a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.is-open .mm-links a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.is-open .mm-links a:nth-child(4) { transition-delay: 0.26s; }

.mm-lang {
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease) 0.32s, transform 0.6s var(--ease) 0.32s;
}
.mobile-menu.is-open .mm-lang { opacity: 1; transform: none; }
.mm-lang button {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.mm-lang button[aria-selected="true"] {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-title);
}

.mm-cta {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease) 0.38s, transform 0.6s var(--ease) 0.38s,
              background 0.4s var(--ease);
}
.mobile-menu.is-open .mm-cta { opacity: 1; transform: none; }
.mm-cta i { font-size: 20px; }

.mm-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease) 0.44s, transform 0.6s var(--ease) 0.44s;
}
.mobile-menu.is-open .mm-phone { opacity: 1; transform: none; }
.mm-phone i { color: var(--accent); }

/* ================================================================ HERO ==
   Central composition over a darkened b/w backdrop. */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: min(100svh, 860px);
  padding: 140px 0 96px;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.5) contrast(1.1);
}

/* Background video sits above the fallback img and below the veil.
   No filter by default — your clip keeps its own look; the veil still
   guarantees text contrast. Want the same b/w treatment as the img?
   Uncomment the filter line. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: grayscale(1) brightness(0.5) contrast(1.1); */
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* darkened EVERYWHERE incl. the centre behind the headline, so the type
     keeps a >= 8:1 contrast even over the bright foam highlights */
  background:
    radial-gradient(90% 72% at 50% 42%, rgba(4, 8, 16, 0.55) 0%, rgba(4, 8, 16, 0.3) 55%, rgba(4, 8, 16, 0.12) 100%),
    linear-gradient(to bottom, rgba(4, 8, 16, 0.66) 0%, rgba(4, 8, 16, 0.4) 42%, var(--bg) 100%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--hero-text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hero-badge i { color: var(--accent-strong); font-size: 15px; }

.hero-title {
  margin-top: 26px;
  max-width: 15ch;
  color: var(--hero-text);
  font-size: clamp(2.55rem, 6.4vw, 4.7rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 4px 34px rgba(3, 6, 12, 0.55);
}
.hero-title .ht-line,
.hero-title .ht-accent { display: block; }
.ht-accent {
  background: linear-gradient(96deg, #7bf3e0 0%, #38e0c8 55%, #14b8a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  margin-top: 22px;
  max-width: 52ch;
  color: rgba(240, 244, 250, 0.92);
  text-shadow: 0 2px 18px rgba(3, 6, 12, 0.5);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.66;
  text-wrap: balance;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}
.hero-cta .btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.46);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(3, 6, 12, 0.4);
  box-shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.55);
}
.hero-cta .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.24);
}

.hero-areas {
  margin-top: 34px;
  color: rgba(240, 244, 250, 0.8);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* hero entrance choreography */
.anim { opacity: 0; transform: translateY(26px); animation: rise 1s var(--ease) forwards; }
.anim-d1 { animation-delay: 0.1s; }
.anim-d2 { animation-delay: 0.22s; }
.anim-d3 { animation-delay: 0.34s; }
.anim-d4 { animation-delay: 0.48s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ============================================================ BENEFITS == */

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* double-bezel: outer shell + inner core */
.benefit {
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: calc(var(--r-xl) + 5px);
  background: var(--shell);
  transition: transform 0.6s var(--ease), border-color 0.6s var(--ease);
}
.benefit:hover { transform: translateY(-5px); border-color: var(--border-strong); }

.benefit-core {
  height: 100%;
  padding: 26px 24px 28px;
  border-radius: var(--r-xl);
  background: var(--card-solid);
  box-shadow: var(--inset-hi), 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
html[data-theme="dark"] .benefit-core {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.032) 100%);
}

.bn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-title);
  font-size: 24px;
}
.bn-title { font-size: 17.5px; font-weight: 700; letter-spacing: -0.015em; }
.bn-desc { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
/* ============================================================= RESULTS == */
.ba-wrap {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ba-figure {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-img);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  user-select: none;
  -webkit-user-select: none;
}
.ba-figure.is-swapping { opacity: 0; transform: scale(0.985); }

.ba-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-after-layer {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%);
  -webkit-clip-path: inset(0 0 0 50%);
}

.ba-label {
  position: absolute;
  top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(4, 8, 16, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f4f7fb;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba-label-before { left: 16px; }
.ba-label-after { right: 16px; border-color: var(--accent-border); color: var(--accent-strong); }

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.ba-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #0b1220;
  font-size: 20px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  touch-action: pan-y;
}

.ba-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13.5px;
}
.ba-hint i { color: var(--accent); font-size: 16px; }

/* photo previews under the slider: tap a "before" shot to load its pair */
.ba-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.ba-thumb {
  display: flex;
  flex-direction: column;
  padding: 5px 5px 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card-solid);
  box-shadow: var(--inset-hi);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.ba-thumb img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 11px;
  pointer-events: none;
}
.ba-thumb-label {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.ba-thumb:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.ba-thumb.is-active {
  border-color: var(--accent-border);
  box-shadow: 0 12px 30px -14px var(--glow), var(--inset-hi);
}
.ba-thumb.is-active .ba-thumb-label { color: var(--accent-title); }
.ba-thumb.is-active img { outline: 2px solid var(--accent-border); outline-offset: -2px; }

/* ============================================================= PRICING == */
.quick-prices {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 5px;
  max-width: 880px;
  margin: 0 auto clamp(40px, 6vw, 56px);
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: calc(var(--r-xl) + 5px);
  background: var(--shell);
}

.qp-min {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--btn-hi) 0%, var(--btn-lo) 100%);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.qp-min-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 24px;
}
.qp-min-line { font-size: 30px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.qp-min-label { font-size: 12.5px; font-weight: 600; opacity: 0.92; line-height: 1.35; }

.qp-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 24px;
  padding: 14px 22px;
  border-radius: var(--r-xl);
  background: var(--card-solid);
  box-shadow: var(--inset-hi);
  align-content: center;
}
html[data-theme="dark"] .qp-list {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.025) 100%);
}
.qp-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14.5px;
}
.qp-list li:nth-last-child(-n+2) { border-bottom: 0; }
.qp-list span { color: var(--muted); font-weight: 500; }
.qp-list em {
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.qp-list em i {
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  margin-right: 3px;
}

/* category tabs */
.price-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 34px;
}
.price-tab {
  padding: 11px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.45s var(--ease);
}
.price-tab:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.price-tab.is-active {
  background: linear-gradient(180deg, var(--btn-hi) 0%, var(--btn-lo) 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 12px 30px -12px var(--glow);
}

/* price cards: bigger, richer */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.price-card {
  position: relative;
  min-width: 0;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: calc(var(--r-xl) + 5px);
  background: var(--shell);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s var(--ease);
}
.price-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-card); }

.pc-core {
  height: 100%;
  padding: 24px 22px 26px;
  border-radius: var(--r-xl);
  background: var(--card-solid);
  box-shadow: var(--inset-hi);
}
html[data-theme="dark"] .pc-core {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.028) 100%);
}

.pc-top { display: flex; justify-content: space-between; align-items: flex-start; }

.pc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-title);
  font-size: 27px;
}

.pc-name {
  margin-top: 18px;
  font-size: 17px;
  overflow-wrap: break-word;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.pc-price { margin-top: 10px; display: flex; align-items: baseline; gap: 8px; }
.pc-from { color: var(--muted); font-size: 13px; font-weight: 500; }
.pc-num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pc-unit { margin-top: 8px; color: var(--muted); font-size: 13px; }

.pc-rows { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
/* let the price wrap under the label instead of pushing the card wider */
.pc-row { flex-wrap: wrap; }
.pc-row b { white-space: nowrap; }
.pc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}
.pc-row span { color: var(--muted); font-size: 13px; font-weight: 500; }
.pc-row b {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent-title);
}

/* featured card keeps a calmer accent: outlined + glow only, so its icon
   no longer jumps out with a different colour from the rest of the grid */
.price-card.is-featured {
  border-color: var(--accent-border);
  box-shadow: 0 24px 54px -22px var(--glow);
}

/* other-service CTA (arrow-in-circle pattern) */
.other-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 880px;
  margin: 40px auto 0;
  padding: 5px;
  border: 1px solid var(--accent-border);
  border-radius: calc(var(--r-xl) + 5px);
  background:
    radial-gradient(90% 160% at 100% 0%, var(--accent-soft) 0%, transparent 55%),
    var(--shell);
}
.os-copy { padding: 22px 10px 22px 24px; }
.os-title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.os-desc { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 52ch; }
.os-btn { flex-shrink: 0; margin-right: 20px; }

.pricing-final {
  max-width: 640px;
  margin: 34px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.pop-in { animation: pop-in 0.55s var(--ease) both; }
@keyframes pop-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* =============================================================== PROOF == */

.proof {
  position: relative;
  overflow: hidden;
  padding: 5px;
  border-radius: calc(var(--r-xl) + 5px);
  border: 1px solid var(--border);
}
.proof-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52% 90% at 12% 0%, rgba(45, 212, 191, 0.16) 0%, transparent 60%),
    radial-gradient(40% 70% at 92% 100%, rgba(45, 212, 191, 0.09) 0%, transparent 65%);
  pointer-events: none;
}

.proof-inner {
  position: relative;
  padding: clamp(40px, 6vw, 64px);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
  box-shadow: var(--inset-hi);
  text-align: center;
}
html[data-theme="light"] .proof-inner {
  background:
    radial-gradient(52% 90% at 12% 0%, rgba(14, 165, 160, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f7fafb 100%);
}

.proof-title {
  margin-top: 18px;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.proof-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.stat-num {
  display: block;
  font-size: clamp(2.2rem, 4.6vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--accent-strong), #9df0e0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* light theme: keep the gradient inside readable range on white */
html[data-theme="light"] .stat-num {
  background: linear-gradient(120deg, #0b8f8a 0%, #075f5b 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.stat-label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.proof-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 38px;
}
.proof-badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.proof-badges i { color: var(--accent); font-size: 17px; }
/* ============================================================= PROCESS == */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* same double-bezel card as benefits/price cards: each step is a solid,
   self-contained unit, so the ghost numeral always reads as part of ITS
   step instead of floating next to the neighbour's icon */
.step {
  min-width: 0;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: calc(var(--r-xl) + 5px);
  background: var(--shell);
  transition: transform 0.6s var(--ease), border-color 0.6s var(--ease);
}
.step:hover { transform: translateY(-5px); border-color: var(--border-strong); }

.step-core {
  position: relative;
  height: 100%;
  padding: 24px 22px 26px;
  border-radius: var(--r-xl);
  background: var(--card-solid);
  box-shadow: var(--inset-hi);
}
html[data-theme="dark"] .step-core {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.032) 100%);
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-title);
  font-size: 25px;
}

/* ghost numeral: tamed inside the card, top-right, clear ownership */
.step-num {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  background: linear-gradient(180deg, var(--border-strong) 0%, transparent 90%);
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  user-select: none;
}

.step-title { margin-top: 20px; font-size: 17.5px; font-weight: 700; letter-spacing: -0.015em; }
.step-desc { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.62; }

/* short link between adjacent cards: a fading tick across the grid gap,
   at icon height — keeps the "journey" cue without crossing anything */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 55px;
  right: -18px;
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-border), transparent);
  pointer-events: none;
}

/* ================================================================= FAQ == */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.faq-intro { position: sticky; top: 104px; }
.faq-note { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.66; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: calc(var(--r-lg) + 5px);
  background: var(--shell);
  transition: border-color 0.5s var(--ease);
}
.faq-item.is-open { border-color: var(--accent-border); }

.faq-item h3 { margin: 0; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 19px 21px;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--card-solid);
  color: var(--text);
  font-size: 15.5px;
  font-weight: 600;
  text-align: left;
  line-height: 1.4;
  box-shadow: var(--inset-hi);
  transition: background 0.4s var(--ease);
}
html[data-theme="dark"] .faq-q {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
}
.faq-q:hover { background: var(--card-hover); }
.faq-q i {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--accent);
  transition: transform 0.5s var(--ease);
}
.faq-item.is-open .faq-q i { transform: rotate(45deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}
.faq-a > div { overflow: hidden; }
.faq-a p {
  padding: 4px 21px 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.68;
}
.faq-a.is-open { grid-template-rows: 1fr; }

/* ============================================================== FOOTER == */
.site-footer {
  background: var(--bg-footer);
  padding: clamp(56px, 8vw, 88px) 0 34px;
}
html[data-theme="light"] .site-footer { color: #e8edf6; }
html[data-theme="light"] .site-footer .muted-c, html[data-theme="light"] .site-footer .footer-note { color: #9aa6b8; }

/* ============================================================ FINAL CTA = */

.cta-card {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 60px);
  border-radius: calc(var(--r-xl) + 6px);
  background:
    radial-gradient(120% 200% at 0% 0%, rgba(45, 212, 191, 0.16) 0%, transparent 50%),
    linear-gradient(135deg, #0d1526 0%, #0a1120 60%, #081020 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-pop);
  text-align: center;
}
.cta-title {
  color: #f4f7fb;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.cta-sub { margin: 14px auto 0; max-width: 46ch; color: rgba(238, 242, 248, 0.66); font-size: 15.5px; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

/* working hours line under the CTA buttons */
.cta-hours {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
  color: rgba(238, 242, 248, 0.78);
  font-size: 14.5px;
  font-weight: 500;
}
.cta-hours i { color: var(--accent-strong); font-size: 17px; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding: 56px 0 44px;
}

.footer-tagline { margin-top: 16px; max-width: 30ch; color: #9aa6b8; font-size: 14px; line-height: 1.65; }
.site-footer .brand { color: #f4f7fb; }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social .icon-btn { border-color: rgba(255, 255, 255, 0.14); color: #cdd6e4; }
.footer-social .icon-btn:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.06); }

.footer-h {
  color: #f4f7fb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links li { display: flex; align-items: center; gap: 10px; color: #9aa6b8; font-size: 14.5px; }
.footer-links a {
  display: inline-flex;   /* icon + text live INSIDE the anchor -> own gap needed */
  align-items: center;
  gap: 10px;
  color: #cdd6e4;
  transition: color 0.35s var(--ease);
}
.footer-links a:hover { color: var(--accent-strong); }
.footer-links i { color: var(--accent); font-size: 17px; }

.footer-note { color: #9aa6b8; font-size: 14px; line-height: 1.65; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8792a5;
  font-size: 13.5px;
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { color: #9aa6b8; transition: color 0.35s var(--ease); }
.footer-legal a:hover { color: var(--accent-strong); }

/* ============================================================ GALLERY == */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gal-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card-solid);
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
  transition: transform 0.6s var(--ease), border-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.gal-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.gal-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 -70px 90px -70px rgba(4, 8, 16, 0.6);
  pointer-events: none;
}
.gal-item:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-pop);
}
.gal-item:hover img { transform: scale(1.05); }

.gal-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 30px 12px 12px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(4, 8, 16, 0) 0%, rgba(4, 8, 16, 0.82) 78%);
  pointer-events: none;
  text-align: left;
}
.gal-cap-loc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  padding: 3px 9px;
  border: 1px solid rgba(45, 212, 191, 0.45);
  border-radius: 999px;
  background: rgba(10, 30, 28, 0.55);
  color: #7deede;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.gal-cap-loc i { font-size: 11px; }
.gal-cap-task {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #f2f6fb;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
}
.gal-zoom {
  position: absolute;
  right: 14px;
  top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(4, 8, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 18px;
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.gal-item:hover .gal-zoom,
.gal-item:focus-visible .gal-zoom { opacity: 1; transform: none; }

.gallery-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 14px;
}
.gallery-hint > i { color: var(--accent); font-size: 16px; }
.gallery-hint a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  font-size: 17px;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery-hint a:hover {
  color: var(--accent-title);
  border-color: var(--accent-border);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* ============================================================ LIGHTBOX == */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(3, 6, 12, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lb-figure { margin: 0; }
.lb-figure img {
  max-width: min(1080px, 90vw);
  max-height: 68vh;
  width: auto;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.85);
  transform: scale(0.96);
  transition: transform 0.45s var(--ease);
}
.lightbox.is-open .lb-figure img { transform: none; }

/* location / task / result under the lightbox photo */
.lb-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: min(1080px, 90vw);
  margin: 14px auto 0;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: left;
}
.lb-line { color: #dbe3ee; font-size: 13px; line-height: 1.5; }
.lb-line b { color: #7deede; font-weight: 700; }

.lb-close, .lb-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font-size: 20px;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.lb-close:hover, .lb-nav:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
}
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

.lb-count {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #eef2f8;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

body.lb-open { overflow: hidden; }

/* ======================================================= MOBILE CTA BAR = */
.mobile-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 48;
  display: none;
  grid-template-columns: 1.3fr 1fr;
  gap: 8px;
  padding: 8px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--header-bg-solid);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 24px 50px -18px rgba(1, 5, 14, 0.6), var(--inset-hi);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mcb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 14.5px;
  font-weight: 700;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.mcb-btn:active { transform: scale(0.97); }
.mcb-btn i { font-size: 18px; }
.mcb-primary {
  background: linear-gradient(180deg, var(--btn-hi) 0%, var(--btn-lo) 100%);
  color: #ffffff;
  box-shadow: 0 12px 28px -12px var(--glow);
}
.mcb-secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

/* ============================================================== LEGAL == */
.page-shell { max-width: 860px; margin: 0 auto; padding: 150px 24px 80px; }

.legal-main { display: flex; flex-direction: column; gap: 20px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.legal-updated { margin-top: 10px; color: var(--muted); font-size: 13.5px; }
.legal h2 { margin-top: 28px; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; }
.legal p, .legal li { color: var(--muted); font-size: 15px; line-height: 1.7; }
.legal ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal a { color: var(--accent-title); }
.legal a:hover { text-decoration: underline; }

.legal-footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 48px;
  text-align: center;
}

/* ============================================================== REVEAL == */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  /* transform + opacity only: animating filter (blur) here made Lighthouse
     flag 14 non-composited animations and jank the main thread */
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
html.js [data-reveal].in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .anim, html.js [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* =========================================================== RESPONSIVE = */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-burger { display: inline-flex; }
  /* middle grid column is empty without the nav: drop the dead gaps */
  .nav-pill { gap: 0; }
  .header-actions { gap: 6px; }

  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .step:not(:last-child)::after { display: none; }
  .proof-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .quick-prices { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }

  /* one rhythm everywhere, lighter than on desktop */
  .section { padding: 64px 0; }
  section[id], main[id] { scroll-margin-top: 84px; }
  .section-head { margin-bottom: 30px; }

  /* ---- header pill: tighter, no overflow at 360px ---- */
  .nav-pill { padding: 8px 10px 8px 14px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; font-size: 16px; border-radius: 10px; }
  .icon-btn { width: 38px; height: 38px; font-size: 18px; }
  .lang-btn { padding: 0 10px; font-size: 13px; }

  /* ---- hero: full viewport, tighter stack ---- */
  .hero { min-height: 100svh; padding: 108px 0 72px; }
  .hero-badge { font-size: 12px; padding: 8px 15px; }
  .hero-title { margin-top: 18px; font-size: clamp(2.1rem, 9vw, 2.7rem); }
  .hero-sub { margin-top: 16px; font-size: 15.5px; }
  .hero-cta { margin-top: 26px; gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-areas { margin-top: 24px; font-size: 11.5px; letter-spacing: 0.06em; }

  /* ---- benefits ---- */
  .benefit-grid { grid-template-columns: 1fr; gap: 12px; }
  .benefit-core { padding: 22px 20px 24px; }

  /* ---- before / after ---- */
  .ba-figure { border-radius: 18px; }
  .ba-label { top: 12px; padding: 5px 11px; font-size: 11px; }
  .ba-label-before { left: 12px; }
  .ba-label-after { right: 12px; }
  .ba-grip { width: 40px; height: 40px; font-size: 18px; }
  .ba-hint { margin-top: 14px; font-size: 12.5px; }
  .ba-gallery { gap: 8px; margin-top: 18px; }
  .ba-thumb { padding: 4px 4px 6px; border-radius: 13px; }
  .ba-thumb img { width: 74px; height: 50px; border-radius: 9px; }
  .ba-thumb-label { margin-top: 5px; font-size: 10px; }

  /* ---- pricing ---- */
  .quick-prices { margin-bottom: 36px; }
  .qp-min { padding: 18px 20px; }
  .qp-min-line { font-size: 26px; }
  .qp-list { grid-template-columns: 1fr; gap: 0; padding: 8px 18px; }
  .qp-list li { font-size: 14px; padding: 10px 0; }
  .qp-list li:nth-last-child(-n+2) { border-bottom: 1px dashed var(--border); }
  .qp-list li:last-child { border-bottom: 0; }

  /* tabs: one scrollable snap row instead of two wrapped lines */
  .price-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    margin-bottom: 28px;
    margin-inline: -18px;
    padding-inline: 18px;
  }
  .price-tabs::-webkit-scrollbar { display: none; }
  .price-tab { flex: 0 0 auto; scroll-snap-align: start; padding: 10px 16px; font-size: 13px; }

  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pc-core { padding: 20px 16px 22px; }
  .pc-icon { width: 44px; height: 44px; font-size: 22px; border-radius: 14px; }
  .pc-name { margin-top: 14px; font-size: 15px; }
  .pc-num { font-size: 27px; }
  .pc-unit { font-size: 12.5px; }
  .pc-row b { font-size: 16px; }

  .other-service { flex-direction: column; align-items: stretch; }
  .os-copy { padding: 22px 20px 6px; }
  .os-btn { margin: 12px 20px 20px; justify-content: center; }

  /* ---- proof ---- */
  .proof-inner { padding: 34px 20px; }
  .proof-stats { gap: 26px 14px; }
  .proof-badges { margin-top: 30px; }
  .proof-badges li { padding: 8px 14px; font-size: 12.5px; }

  /* ---- process ---- */
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .step-core { padding: 20px 18px 22px; }
  .step-num { top: 14px; right: 16px; font-size: 40px; }

  /* ---- gallery ---- */
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gal-item { border-radius: 14px; }
  .gallery-hint { font-size: 13px; }

  /* ---- faq ---- */
  .faq-q { padding: 16px 18px; font-size: 15px; }
  .faq-a p { padding: 4px 18px 18px; }

  /* ---- final cta ---- */
  .cta-card { padding: 38px 22px; }
  .cta-hours { font-size: 13.5px; margin-top: 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* sticky action bar: always-reachable Telegram + WhatsApp */
  .mobile-cta { display: grid; }
  body.menu-open .mobile-cta,
  body.lb-open .mobile-cta { opacity: 0; pointer-events: none; }
  .site-footer { padding-bottom: 108px; }

  .lb-close, .lb-nav { width: 42px; height: 42px; font-size: 18px; }
  .lb-close { top: 12px; right: 12px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-count { bottom: 14px; }
  .lb-figure img { max-height: 62vh; }
  .lb-caption { margin-top: 10px; padding: 9px 12px; border-radius: 12px; }
  .lb-line { font-size: 11.5px; }
  /* zoom affordance moved to top-right so it never covers the caption */
  .gal-zoom { right: 8px; top: 8px; bottom: auto; width: 34px; height: 34px; font-size: 15px; }
}

/* ======================================================= TINY SCREENS == */
/* 320-400px: price cards stay in 2 columns but every part of them must
   shrink; this kills the "cards run past the screen edge" regression */
@media (max-width: 400px) {
  .container { padding: 0 14px; }
  section[id], main[id] { scroll-margin-top: 78px; }

  .price-grid { gap: 10px; }
  .pc-core { padding: 16px 12px 18px; }
  .pc-icon { width: 40px; height: 40px; font-size: 20px; border-radius: 12px; }
  .pc-name { margin-top: 11px; font-size: 13.5px; line-height: 1.25; }
  .pc-price { margin-top: 8px; gap: 6px; }
  .pc-from { font-size: 11.5px; }
  .pc-num { font-size: 22px; }
  .pc-unit { margin-top: 6px; font-size: 11px; }
  .pc-rows { margin-top: 10px; gap: 6px; }
  .pc-row { padding: 7px 9px; gap: 6px; border-radius: 10px; }
  .pc-row span { font-size: 11.5px; }
  .pc-row b { font-size: 14px; }

  .quick-prices { padding: 4px; }
  .qp-min { padding: 15px 16px; gap: 12px; }
  .qp-min-icon { width: 40px; height: 40px; font-size: 20px; }
  .qp-min-line { font-size: 22px; }
  .qp-list { padding: 6px 14px; }
  .qp-list li { font-size: 13px; }

  .price-tab { padding: 9px 13px; font-size: 12.5px; }

  .benefit-core { padding: 18px 16px 20px; }
  .step-core { padding: 18px 15px 20px; }
  .step-num { font-size: 34px; top: 12px; right: 14px; }
  .step-title { font-size: 15.5px; }
  .step-desc, .bn-desc { font-size: 13.5px; }

  .os-copy { padding: 18px 16px 4px; }
  .os-btn { margin: 10px 16px 16px; }
}
