/* ══════════════════════════════════════════════════════════
   Ремонт х Строй ЕООД — style.css
   Palette taken from the company logo:
   navy #12406e · teal #109c9c · near-white #fdfdfd
   ══════════════════════════════════════════════════════════ */

:root {
  --navy: #12406e;
  --navy-dark: #0c2c4d;
  --navy-ink: #0e3358;
  --teal: #109c9c;
  --teal-dark: #0c8383;
  --teal-soft: #e2f4f4;
  --bg: #fdfdfd;
  --bg-tint: #f2f7f9;
  --line: #dfe9ef;
  --text: #33475b;
  --muted: #5f7386;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 40px rgba(18, 64, 110, 0.10);
  --shadow-lg: 0 24px 70px rgba(18, 64, 110, 0.16);
  --font-display: "Unbounded", "Manrope", sans-serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal-dark); text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.18;
  font-weight: 700;
  overflow-wrap: break-word;
}

h2 { font-size: clamp(1.55rem, 1.05rem + 2.2vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.ico {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  flex: none;
}

.center { text-align: center; margin-top: 2.4rem; }
.only-desktop { display: inline; }

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.95em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(18, 64, 110, 0.30);
}
.btn-primary:hover { background: var(--navy-ink); box-shadow: 0 12px 30px rgba(18, 64, 110, 0.38); }

.btn-teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(16, 156, 156, 0.35);
}
.btn-teal:hover { background: var(--teal-dark); }

.btn-ghost {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }

.btn-lg { font-size: 1.07rem; padding: 1.05em 1.9em; }
.btn-block { width: 100%; }

/* ─── Top bar ─────────────────────────────────────────── */
.topbar {
  background: var(--navy-dark);
  color: #bcd2e6;
  font-size: 0.85rem;
  font-weight: 600;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 0.45rem;
}
.topbar-links { display: flex; gap: 1.4rem; }
.topbar-link {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.topbar-link:hover { color: #7fd6d4; }

/* ─── Header ──────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 75;
  background: rgba(253, 253, 253, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(18, 64, 110, 0.08); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-block: 0.6rem;
}
.header-phone { display: none; }
.brand { grid-column: 2; grid-row: 1; margin-inline: clamp(1.2rem, 2.5vw, 2.4rem); }
.brand-logo { height: 54px; width: auto; }

.nav-panel { display: contents; }
.nav-extra { display: none; }
.nav-group { display: flex; align-items: center; gap: 1.6rem; }
.nav-group-left { grid-column: 1; grid-row: 1; justify-self: start; }
.nav-group-right { grid-column: 3; grid-row: 1; justify-self: end; }
.nav-link {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.98rem;
  position: relative;
  padding-block: 0.3rem;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--teal);
  transition: right 0.22s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }
.nav-cta { margin-left: 0.4rem; padding: 0.72em 1.3em; font-size: 0.92rem; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.burger span {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ─── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(16, 156, 156, 0.10), transparent 60%),
    linear-gradient(180deg, #f6fafb 0%, var(--bg) 100%);
  padding-block: clamp(3rem, 7vw, 6rem) clamp(4.5rem, 8vw, 7rem);
  overflow: clip;
}
.hero-glow-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-glow-bg::before,
.hero-glow-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.hero-glow-bg::before {
  width: 640px;
  height: 640px;
  top: -220px;
  left: 4%;
  background: radial-gradient(circle, rgba(16, 156, 156, 0.17), transparent 65%);
  animation: glowDrift 16s ease-in-out infinite alternate;
}
.hero-glow-bg::after {
  width: 760px;
  height: 760px;
  bottom: -320px;
  right: -6%;
  background: radial-gradient(circle, rgba(18, 64, 110, 0.13), transparent 65%);
  animation: glowDrift 21s ease-in-out infinite alternate-reverse;
}
@keyframes glowDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(70px, 45px) scale(1.15); }
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-kicker {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.hero-kicker span {
  color: var(--teal);
  font-weight: 400;
  margin-inline: 0.3em;
}

.hero-title {
  font-size: clamp(1.9rem, 1.1rem + 3.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 1.2rem;
}
.swap-wrap { display: inline-block; min-height: 1.2em; }
.swap-word {
  color: var(--teal);
  display: inline-block;
  border-bottom: 5px solid rgba(16, 156, 156, 0.25);
  padding-bottom: 0.06em;
}
.swap-word.is-out { animation: wordOut 0.35s ease forwards; }
.swap-word.is-in { animation: wordIn 0.35s ease; }
@keyframes wordOut { to { opacity: 0; transform: translateY(-0.5em); } }
@keyframes wordIn { from { opacity: 0; transform: translateY(0.5em); } }

.hero-sub {
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.08rem);
  max-width: 34em;
  margin-bottom: 1.8rem;
}
.hero-cta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 560px;
  margin-bottom: 1.7rem;
}
.hero-cta .btn {
  font-size: 0.98rem;
  padding: 0.78em 1.3em;
}

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
}
.hero-trust li { display: inline-flex; align-items: center; gap: 0.45em; }
.hero-trust .ico { color: var(--teal); }

.hero-visual { position: relative; }
.hero-photo-frame {
  position: relative;
  clip-path: polygon(0 24%, 54% 0, 100% 20%, 100% 100%, 0 100%);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(18, 64, 110, 0.0) 55%, rgba(18, 64, 110, 0.35) 100%);
}
.hero-photo {
  width: 100%;
  height: clamp(320px, 44vw, 520px);
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.75rem 1.05rem;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--muted);
  animation: floaty 5s ease-in-out infinite;
}
.hero-badge strong { color: var(--navy); font-size: 0.94rem; }
.hero-badge-1 { left: -1.4rem; bottom: 2.2rem; }
.hero-badge-2 { right: -1rem; top: 30%; animation-delay: 2.5s; }
.hero-badge-ico {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
}
.hero-badge-ico.teal { background: var(--teal); }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.rooline-divider {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  pointer-events: none;
}
.rooline-divider svg { width: 100%; height: clamp(36px, 6vw, 90px); }
.rooline-divider path {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
}
.roof-navy { stroke: var(--navy); }
.roof-teal { stroke: var(--teal); }

/* ─── Marquee ─────────────────────────────────────────── */
.marquee {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  padding-block: 0.85rem;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  width: max-content;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.marquee-track i { color: var(--teal); font-style: normal; }
@keyframes marquee {
  to { transform: translateX(-33.333%); }
}

/* ─── Sections ────────────────────────────────────────── */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-tint { background: var(--bg-tint); }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
}
.eyebrow {
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.section-sub { color: var(--muted); margin-top: 1rem; max-width: 36em; }

/* ─── Services ────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--text);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.svc-media {
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
}
.svc-media img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.svc-card:hover .svc-media img { transform: scale(1.06); }
.svc-body { padding: 0.4rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.svc-ico {
  width: 52px; height: 52px;
  margin-top: -26px;
  margin-bottom: 0.9rem;
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  box-shadow: 0 8px 20px rgba(18, 64, 110, 0.35);
  position: relative;
  z-index: 1;
}
.svc-card:nth-child(even) .svc-ico { background: var(--teal); box-shadow: 0 8px 20px rgba(16, 156, 156, 0.35); }
.svc-body h3 { margin-bottom: 0.55rem; font-size: 1.06rem; }
.svc-body p { font-size: 0.92rem; color: var(--muted); flex: 1; }
.svc-link {
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--teal-dark);
}
.svc-card:hover .svc-link { gap: 0.7em; }
.svc-link { transition: gap 0.2s ease; }

/* ─── Estimator ───────────────────────────────────────── */
.est {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
}
.est-controls, .est-result {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.est-controls { border: 1px solid var(--line); }
.est-result {
  box-shadow: var(--shadow-lg);
  border-top: 6px solid var(--teal);
}
.est-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.9rem;
}
.est-label + .est-label { margin-top: 1.6rem; }

.est-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.7rem;
}
.est-svc {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1em;
  background: var(--bg-tint);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.est-svc .ico { color: var(--teal); font-size: 1.2rem; }
.est-svc:hover { border-color: var(--line); }
.est-svc.is-selected {
  background: var(--teal-soft);
  border-color: var(--teal);
}

.est-slider-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 0.6rem;
}
input[type="range"] {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--teal) var(--fill, 25%), #dce8ee var(--fill, 25%));
  outline: none;
  cursor: pointer;
  min-width: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--white);
  border: 7px solid var(--navy);
  box-shadow: 0 4px 12px rgba(18, 64, 110, 0.35);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--white);
  border: 6px solid var(--navy);
  box-shadow: 0 4px 12px rgba(18, 64, 110, 0.35);
  cursor: grab;
}
.est-size-out {
  min-width: 5.2em;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  background: var(--bg-tint);
  border-radius: 10px;
  padding: 0.45em 0.6em;
}

.est-levels { display: flex; gap: 0.7rem; }
.est-level {
  flex: 1;
  padding: 0.75em 1em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background: var(--bg-tint);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.est-level:hover { border-color: var(--line); }
.est-level.is-selected { background: var(--teal-soft); border-color: var(--teal); }

.est-result-label {
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-dark);
  margin-bottom: 0.4rem;
}
.est-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.3rem);
  color: var(--navy);
  letter-spacing: -0.01em;
  transition: opacity 0.15s ease;
}
.est-price.is-updating { opacity: 0.25; }
.est-note { font-size: 0.88rem; color: var(--muted); margin-top: 0.5rem; }

.est-stack {
  list-style: none;
  margin-block: 1.4rem;
  display: grid;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}
.est-stack li { display: flex; align-items: center; gap: 0.6em; }
.est-stack .ico { color: var(--teal); }

.est-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}
.est-form input[type="text"],
.est-form input[type="tel"] {
  width: 100%;
  padding: 0.9em 1.1em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  background: var(--bg);
  min-width: 0;
}
.est-form input:focus { outline: 2px solid var(--teal); border-color: transparent; }

.est-alt { margin-top: 1.4rem; text-align: left; }
.est-alt-or {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.viber-line {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: #f3edfb;
  border: 1.5px solid #d9c9f2;
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
  color: #5b437e;
  font-size: 0.92rem;
  line-height: 1.45;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.viber-line:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(101, 70, 160, 0.18); }
.viber-line .ico { color: #7360f2; font-size: 1.5rem; margin-top: 0.1em; }
.viber-line strong { color: #46326a; }

.hp-field { position: absolute; left: -9999px; opacity: 0; }

.form-ok {
  margin-top: 0.9rem;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 0.85em 1.1em;
  font-size: 0.95rem;
}

/* ─── Interactive house ───────────────────────────────── */
.house {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(1.4rem, 3.5vw, 3rem);
  align-items: center;
  margin-bottom: 3rem;
}
.house-stage {
  position: relative;
  background:
    radial-gradient(600px 340px at 50% 80%, rgba(16, 156, 156, 0.07), transparent 70%),
    var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.5vw, 2rem);
}
.house-hint {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 0.5em 1em;
  box-shadow: 0 8px 20px rgba(18, 64, 110, 0.3);
}
.house-svg { width: 100%; height: auto; }

.house-svg .part { transition: filter 0.25s ease, opacity 0.25s ease; }
.house-svg .part.is-active { filter: drop-shadow(0 0 16px rgba(16, 156, 156, 0.65)); }

.hs { cursor: pointer; outline: none; }
.hs-hit { fill: transparent; }
.hs-ring {
  fill: rgba(16, 156, 156, 0.18);
  stroke: rgba(16, 156, 156, 0.5);
  stroke-width: 2;
  transition: fill 0.2s ease;
  animation: hsPulse 2.2s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.hs-dot {
  fill: var(--white);
  stroke: var(--teal);
  stroke-width: 5;
  transition: fill 0.2s ease, stroke 0.2s ease;
}
.hs:hover .hs-ring, .hs:focus-visible .hs-ring { fill: rgba(16, 156, 156, 0.32); }
.hs.is-active .hs-dot { fill: var(--teal); stroke: var(--navy); }
.hs.is-active .hs-ring { animation: none; fill: rgba(18, 64, 110, 0.15); stroke: var(--navy); }
.hs:focus-visible .hs-dot { stroke: var(--navy); }
@keyframes hsPulse {
  0% { transform: scale(0.7); opacity: 0.9; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

.house-panel {
  background: var(--white);
  border-radius: var(--radius);
  border-top: 6px solid var(--teal);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.house-panel.is-swapping { opacity: 0; transform: translateY(10px); }
.house-panel-ico {
  width: 54px; height: 54px;
  border-radius: 15px;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 20px rgba(18, 64, 110, 0.3);
}
.house-panel h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.house-panel p { color: var(--muted); font-size: 0.97rem; }
.house-panel-price {
  margin-block: 1rem 1.3rem;
  background: var(--teal-soft);
  border-radius: var(--radius-sm);
  padding: 0.7em 1em;
  font-size: 0.95rem;
}
.house-panel-price strong { color: var(--teal-dark); font-size: 1.05em; }

.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
.gal-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.gal-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gal-card:hover img { transform: scale(1.07); }
.gal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(12, 44, 77, 0.85) 100%);
}
.gal-caption {
  position: absolute;
  left: 1.2rem; right: 1.2rem; bottom: 1.1rem;
  z-index: 1;
  color: var(--white);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.35;
}

/* ─── Process ─────────────────────────────────────────── */
.process-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.steps { list-style: none; display: grid; gap: 1.6rem; }
.step {
  position: relative;
  padding-left: 4.4rem;
}
.step::before {
  content: "";
  position: absolute;
  left: 1.55rem;
  top: 3.4rem;
  bottom: -1.6rem;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--teal), rgba(16, 156, 156, 0.12));
}
.step:last-child::before { display: none; }
.step-num {
  position: absolute;
  left: 0; top: 0;
  width: 3.2rem; height: 3.2rem;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--teal);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(16, 156, 156, 0.25);
}
.step h3 { margin-bottom: 0.35rem; }
.step p { color: var(--muted); font-size: 0.97rem; }

.process-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
}
.process-photo img {
  width: 100%;
  height: clamp(280px, 34vw, 420px);
  object-fit: cover;
}
.process-photo figcaption {
  padding: 1.1rem 1.4rem;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
}

/* ─── Testimonials ────────────────────────────────────── */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.quote::before {
  content: "“";
  position: absolute;
  top: -0.15em;
  right: 0.35em;
  font-family: var(--font-display);
  font-size: 4.6rem;
  color: rgba(16, 156, 156, 0.16);
  line-height: 1;
}
.quote p { font-size: 0.99rem; color: var(--text); flex: 1; }
.quote footer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--navy);
}
.quote-avatar {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.quote:nth-child(2) .quote-avatar { background: var(--teal); }

/* ─── CTA band ────────────────────────────────────────── */
.cta-band {
  position: relative;
  color: var(--white);
  padding-block: clamp(4rem, 9vw, 7rem);
  overflow: clip;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(12, 44, 77, 0.96) 20%, rgba(18, 64, 110, 0.82) 60%, rgba(16, 156, 156, 0.55) 120%),
    url("../img/cta-house.jpg") center 30% / cover no-repeat;
}
.cta-inner { position: relative; max-width: 760px; }
.cta-inner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-inner p { color: #c4d8ea; font-size: 1.08rem; max-width: 34em; margin-bottom: 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ─── Contact ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-info h2 { margin-bottom: 0.4rem; }
.contact-list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 1.3rem;
}
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list strong { color: var(--navy); }
.contact-list a { font-weight: 700; }
.contact-ico {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 13px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  display: grid;
  gap: 1.1rem;
}
.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--navy);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85em 1.05em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  resize: vertical;
  min-width: 0;
}
.svc-choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.svc-choice legend {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--navy);
  padding: 0;
  margin-bottom: 0.6rem;
}
.svc-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.svc-chip input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
}
.svc-chip span {
  display: inline-flex;
  align-items: center;
  padding: 0.55em 1.05em;
  border-radius: 999px;
  background: var(--bg-tint);
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.svc-chip span:hover { border-color: var(--line); }
.svc-chip input:checked + span {
  background: var(--teal-soft);
  border-color: var(--teal);
}
.svc-chip input:focus-visible + span {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 2px solid var(--teal); border-color: transparent; }
.form-note { font-size: 0.85rem; color: var(--muted); text-align: center; }

/* ─── Footer ──────────────────────────────────────────── */
.footer {
  background: var(--navy-dark);
  color: #a8c0d6;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.4rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.4rem;
}
.footer-logo {
  width: 200px;
  height: auto;
  border-radius: 14px;
  margin-bottom: 1.1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.footer-tag { margin-top: 0.6rem; font-size: 0.9rem; max-width: 24em; }
.footer-head {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.1rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.footer-col a { color: #a8c0d6; transition: color 0.18s ease; }
.footer-col a:hover { color: #7fd6d4; }
.footer-hours { font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-block: 1.3rem;
  font-size: 0.85rem;
}
.footer-legal { display: flex; gap: 1.4rem; }
.footer-legal a { color: #7d99b3; }
.footer-legal a:hover { color: #7fd6d4; }

/* ─── Mobile sticky bar ───────────────────────────────── */
.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: none;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.3s ease;
  padding-bottom: env(safe-area-inset-bottom);
}
.sticky-bar.is-visible { transform: translateY(0); }
.sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  padding: 0.95em 0.5em;
  font-weight: 800;
  font-size: 0.9rem;
  background: var(--white);
  color: var(--navy);
}
.sticky-call { background: var(--navy); color: var(--white); }
.sticky-viber { background: #7360f2; color: var(--white); }
.sticky-quote { background: var(--teal); color: var(--white); }

/* ─── Modal ───────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 44, 77, 0.6);
  backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 470px;
  width: 100%;
  padding: 2.4rem 2.2rem 2rem;
  text-align: center;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
}
.modal-logo { width: 170px; height: auto; margin: 0 auto 1.2rem; }
.modal-card h3 { font-size: 1.25rem; margin-bottom: 0.7rem; }
.modal-card > p { color: var(--muted); font-size: 0.97rem; }
.modal-close {
  position: absolute;
  top: 0.9rem; right: 0.9rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-tint);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.modal-close:hover { background: var(--line); }

/* ─── Reveal animations ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .hero-badge,
  .hero-glow-bg::before, .hero-glow-bg::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

@media (max-width: 1180px) {
  .nav-group { gap: 1rem; }
  .nav-link { font-size: 0.92rem; }
  .nav-cta { padding: 0.85em 1.2em; font-size: 0.92rem; }
}

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-badge-1 { left: 0.4rem; }
  .hero-badge-2 { right: 0.4rem; }
}

@media (max-width: 900px) {
  .only-desktop { display: none; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; }

  .est { grid-template-columns: 1fr; }
  .house { grid-template-columns: 1fr; }
  .process-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .gal-grid { grid-template-columns: 1fr 1fr; }
  .gal-card:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }

  /* mobile nav */
  /* backdrop-filter would trap the fixed nav panel inside the header */
  .header { background: var(--bg); backdrop-filter: none; }
  .burger { display: flex; grid-column: 3; grid-row: 1; justify-self: end; }
  .header-phone {
    display: grid;
    place-items: center;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--teal-soft);
    color: var(--teal-dark);
    font-size: 1.15rem;
  }
  .brand { margin-inline: 0; }
  .nav-panel {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 80;
    width: 100%;
    background:
      radial-gradient(440px 440px at 88% 8%, rgba(16, 156, 156, 0.28), transparent 65%),
      radial-gradient(520px 520px at 8% 100%, rgba(16, 156, 156, 0.16), transparent 60%),
      linear-gradient(165deg, var(--navy-dark), var(--navy));
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 5.2rem 1.8rem 2.4rem;
    transform: translateX(105%);
    transition: transform 0.35s ease;
    overflow-y: auto;
  }
  .nav-panel::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 360px;
    height: 190px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 62'><path d='M4 52L52 10' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='9' stroke-linecap='round'/><path d='M62 14L112 52' stroke='%23109c9c' stroke-opacity='0.12' stroke-width='9' stroke-linecap='round'/></svg>") no-repeat center / contain;
    pointer-events: none;
  }
  .nav-panel.is-open { transform: translateX(0); }
  .nav-group { flex-direction: column; align-items: center; gap: 0.2rem; width: 100%; }
  .nav-link {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--white);
    width: 100%;
    padding-block: 0.7rem;
    text-align: center;
  }
  .nav-link::after { display: none; }
  .nav-link.is-active { color: #7fd6d4; }
  .nav-cta {
    margin: 1.4rem 0 0;
    width: 100%;
    background: var(--white);
    color: var(--navy);
    font-size: 1.02rem;
    padding: 1em 1.3em;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  }
  .nav-extra {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    margin-top: 1.6rem;
  }
  .nav-extra-call {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    color: #7fd6d4;
    font-weight: 800;
    font-size: 1.05rem;
  }
  .nav-extra-hours { color: #8fabc4; font-size: 0.85rem; font-weight: 600; }

  /* staggered link entrance */
  .nav-panel .nav-link, .nav-panel .nav-cta, .nav-panel .nav-extra {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .nav-panel.is-open .nav-link, .nav-panel.is-open .nav-cta, .nav-panel.is-open .nav-extra {
    opacity: 1;
    transform: none;
  }
  .nav-panel.is-open .nav-group-left .nav-link:nth-child(1) { transition-delay: 0.08s; }
  .nav-panel.is-open .nav-group-left .nav-link:nth-child(2) { transition-delay: 0.13s; }
  .nav-panel.is-open .nav-group-left .nav-link:nth-child(3) { transition-delay: 0.18s; }
  .nav-panel.is-open .nav-group-right .nav-link:nth-child(1) { transition-delay: 0.23s; }
  .nav-panel.is-open .nav-group-right .nav-link:nth-child(2) { transition-delay: 0.28s; }
  .nav-panel.is-open .nav-cta { transition-delay: 0.34s; }
  .nav-panel.is-open .nav-extra { transition-delay: 0.4s; }

  .burger { position: relative; z-index: 90; }
  .burger.is-open span { background: var(--white); }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }

  .section { padding-block: 3rem; }
  .container { padding-inline: 1.1rem; }

  .topbar-note { display: none; }
  .topbar-inner { justify-content: center; }

  .brand-logo { height: 42px; }

  /* centered mobile layout */
  .section-head { text-align: center; margin-inline: auto; }
  .section-head .section-sub { margin-inline: auto; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-trust { justify-content: center; }
  .contact-info { text-align: center; }
  .contact-info .section-sub { margin-inline: auto; }
  .contact-info .contact-list { text-align: left; }
  .cta-inner { text-align: center; }
  .cta-inner p { margin-inline: auto; }

  .hero { padding-block: 2.6rem 4.2rem; }
  .hero-kicker { font-size: 0.72rem; letter-spacing: 0.13em; }
  .hero-cta { grid-template-columns: 1fr; max-width: none; }
  .hero-cta .btn { width: 100%; }
  .hero-photo { height: 300px; }
  .hero-badge { font-size: 0.78rem; padding: 0.6rem 0.8rem; }
  .hero-badge-1 { left: 0.5rem; bottom: 0.8rem; }
  .hero-badge-2 { right: 0.5rem; top: 26%; }
  .hero-badge-ico { width: 34px; height: 34px; font-size: 1rem; }
  .hero-trust { gap: 0.45rem 1rem; font-size: 0.86rem; }

  .services-grid { grid-template-columns: 1fr; }
  .svc-media img { height: 190px; }

  .est-controls, .est-result { padding: 1.3rem 1.1rem; }
  .est-services { grid-template-columns: 1fr; }
  .est-form-row { grid-template-columns: 1fr; }
  .est-levels { flex-direction: column; }

  .house { margin-bottom: 2.2rem; }
  .house-hint { font-size: 0.72rem; top: 0.7rem; left: 0.7rem; }
  .hs { transform-box: fill-box; transform-origin: center; transform: scale(1.45); }
  .gal-grid { grid-template-columns: 1fr; }
  .gal-card:last-child { aspect-ratio: 4 / 3; }
  .center .btn { width: 100%; }

  .step { padding-left: 3.8rem; }
  .step-num { width: 2.8rem; height: 2.8rem; font-size: 0.85rem; }
  .step::before { left: 1.35rem; }

  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }

  .form-row { grid-template-columns: 1fr; }

  /* service chips: tidy full-width stack, like the estimator */
  .svc-chips { display: grid; grid-template-columns: 1fr; gap: 0.55rem; }
  .svc-chip span {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.85em 1em;
    font-size: 0.92rem;
    border-radius: var(--radius-sm);
  }

  /* minimal footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.3rem;
    padding-block: 2.2rem 1.6rem;
    justify-items: center;
    text-align: center;
  }
  .footer-grid nav.footer-col { display: none; }
  .footer-head, .footer-tag { display: none; }
  .footer-logo { width: 150px; margin-bottom: 0; }
  .footer-col { align-items: center; gap: 0.5rem; }
  .footer-bottom-inner { justify-content: center; text-align: center; }

  .sticky-bar { display: grid; }
  body { padding-bottom: 0; }
  .footer-bottom { padding-bottom: 3.6rem; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 1.72rem; }
  .btn-lg { font-size: 0.98rem; padding: 1em 1.2em; }
  .sticky-btn { font-size: 0.8rem; }
}

/* ══════════════════════════════════════════════════════════
   SUBPAGES — услуги · проекти · за нас · правни · 404
   ══════════════════════════════════════════════════════════ */

.container-narrow { max-width: 780px; }
.section-head-center { margin-inline: auto; text-align: center; }

/* ─── Page hero ───────────────────────────────────────── */
.page-hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(16, 156, 156, 0.10), transparent 60%),
    linear-gradient(180deg, #f6fafb 0%, var(--bg) 100%);
  padding-block: clamp(3rem, 6vw, 5rem) clamp(4.5rem, 8vw, 7rem);
  overflow: clip;
}
.page-hero-inner {
  position: relative;
  max-width: 720px;
}
.page-hero h1 {
  font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 1.1rem;
}
.page-hero-sub {
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.08rem);
  color: var(--muted);
  max-width: 36em;
  margin-bottom: 1.8rem;
}
.page-hero-cta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 620px;
}
.page-hero-cta .btn {
  font-size: 0.95rem;
  padding-inline: 1em;
}
.page-hero .hero-trust { margin-top: 0.4rem; }

.page-hero-split-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.page-hero-split .page-hero-sub { margin-bottom: 1.6rem; }

/* ─── Sticky service subnav ───────────────────────────── */
.subnav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(253, 253, 253, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.subnav-inner {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-block: 0.65rem;
  scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  white-space: nowrap;
  padding: 0.5em 1.05em;
  border-radius: 999px;
  background: var(--bg-tint);
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.subnav-link .ico { color: var(--teal); }
.subnav-link:hover { border-color: var(--line); }
.subnav-link.is-active {
  background: var(--teal-soft);
  border-color: var(--teal);
}

/* ─── Service detail sections ─────────────────────────── */
.svc-detail { padding-block: clamp(3.2rem, 7vw, 5.5rem); }
.svc-detail-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.svc-detail-flip .svc-detail-media { order: 2; }
.svc-detail-flip .svc-detail-copy { order: 1; }

.svc-detail-media {
  position: relative;
  padding-bottom: 2.6rem;
  padding-right: 2.6rem;
}
.svc-detail-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.svc-detail-photo img {
  width: 100%;
  height: clamp(320px, 34vw, 460px);
  object-fit: cover;
}
.svc-detail-photo-sm {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(130px, 14vw, 200px);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--bg);
}
.section-tint .svc-detail-photo-sm { border-color: var(--bg-tint); }
.svc-detail-photo-sm img {
  width: 100%;
  height: clamp(150px, 16vw, 230px);
  object-fit: cover;
}
.photo-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 0.45em 1em;
  box-shadow: 0 8px 20px rgba(18, 64, 110, 0.3);
}
.svc-detail-copy h2 { margin-bottom: 0.4rem; }
.svc-detail-copy .section-sub { margin-bottom: 1.5rem; }

.check-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.2rem;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--navy);
  margin-bottom: 1.6rem;
}
.check-grid li { display: flex; align-items: flex-start; gap: 0.55em; }
.check-grid .ico { color: var(--teal); margin-top: 0.15em; }

.svc-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}
.price-pill {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--teal-dark);
  border: 1.5px solid rgba(16, 156, 156, 0.35);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  border-radius: 999px;
  padding: 0.4em 1.1em;
}
.price-note { font-size: 0.88rem; color: var(--muted); font-weight: 600; }
.svc-detail-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ─── FAQ accordion ───────────────────────────────────── */
.faq { display: grid; gap: 0.8rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq-item[open] {
  border-color: rgba(16, 156, 156, 0.4);
  box-shadow: var(--shadow);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-x {
  position: relative;
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--teal-soft);
  transition: transform 0.25s ease, background 0.25s ease;
}
.faq-x::before, .faq-x::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2.5px;
  border-radius: 2px;
  background: var(--teal-dark);
  transform: translate(-50%, -50%);
}
.faq-x::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.25s ease; }
.faq-item[open] .faq-x { transform: rotate(45deg); }
.faq-body { padding: 0 1.3rem 1.2rem; }
.faq-body p { color: var(--muted); font-size: 0.97rem; }

/* ─── Lead band (CTA + callback form) ─────────────────── */
.lead-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.lead-copy h2 { color: var(--white); margin-bottom: 1rem; }
.lead-copy p { color: #c4d8ea; font-size: 1.05rem; max-width: 30em; margin-bottom: 1.8rem; }
.lead-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-top: 6px solid var(--teal);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  display: grid;
  gap: 0.95rem;
}
.lead-form-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--navy);
}
.lead-label {
  display: grid;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--navy);
}
.lead-form input[type="text"],
.lead-form input[type="tel"] {
  width: 100%;
  padding: 0.85em 1.05em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  min-width: 0;
}
.lead-form input:focus { outline: 2px solid var(--teal); border-color: transparent; }
.lead-form .form-note { margin-top: -0.2rem; }
.lead-form .form-ok { margin-top: 0; }

/* ─── Case study stepper ──────────────────────────────── */
.case {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: stretch;
}
.case-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 420px;
  background: var(--navy-dark);
}
.case-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}
.case-media img.is-fading { opacity: 0; }
.case-count {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  background: rgba(12, 44, 77, 0.85);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.4em 1em;
  backdrop-filter: blur(4px);
}
.case-side { display: flex; flex-direction: column; }
.case-progress {
  height: 6px;
  border-radius: 4px;
  background: #dce8ee;
  overflow: hidden;
  margin-bottom: 1.2rem;
}
.case-progress span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
  transition: width 0.35s ease;
}
.case-steps { list-style: none; display: grid; gap: 0.55rem; flex: 1; }
.case-step {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.case-step:hover { border-color: var(--teal); }
.case-step.is-active {
  background: var(--teal-soft);
  border-color: var(--teal);
}
.case-step-num {
  flex: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  background: var(--navy);
  width: 2rem; height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 0.1rem;
}
.case-step.is-active .case-step-num { background: var(--teal); }
.case-step-body { display: grid; gap: 0.15rem; }
.case-step-body strong { color: var(--navy); font-size: 0.99rem; }
.case-step-body em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.45;
}
.case-step:not(.is-active) .case-step-body em { display: none; }
.case-nav { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.case-arrow {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.case-arrow:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ─── Gallery filter + masonry ────────────────────────── */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.8rem;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 1.2em;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.filter-btn span {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-radius: 999px;
  padding: 0.1em 0.55em;
}
.filter-btn:hover { border-color: var(--teal); }
.filter-btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.filter-btn.is-active span { background: rgba(255, 255, 255, 0.16); color: #7fd6d4; }

.masonry {
  columns: 3;
  column-gap: 1.1rem;
}
.ph {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 1.1rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow);
  break-inside: avoid;
  background: var(--navy-dark);
  animation: phIn 0.35s ease;
}
@keyframes phIn {
  from { opacity: 0; transform: translateY(14px); }
}
.ph img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.ph:hover img { transform: scale(1.05); opacity: 0.92; }
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(12, 44, 77, 0.72) 100%);
  pointer-events: none;
}
.ph-tag {
  position: absolute;
  left: 0.8rem;
  bottom: 0.75rem;
  z-index: 1;
  color: var(--white);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ph.is-hidden { display: none; }
.gal-note {
  margin-top: 2rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
}

/* ─── Lightbox ────────────────────────────────────────── */
.lb {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lb[hidden] { display: none; }
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 27, 46, 0.92);
  backdrop-filter: blur(6px);
}
.lb-figure {
  position: relative;
  max-width: min(92vw, 1100px);
  text-align: center;
  animation: modalIn 0.25s ease;
}
.lb-img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin-inline: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lb-cap {
  margin-top: 0.9rem;
  color: #c4d8ea;
  font-weight: 600;
  font-size: 0.95rem;
}
.lb-count {
  position: absolute;
  top: 1.1rem;
  left: 1.3rem;
  color: #8fabc4;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
}
.lb-btn {
  position: absolute;
  z-index: 2;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: background 0.2s ease;
}
.lb-btn:hover { background: var(--teal); }
.lb-close { top: 0.9rem; right: 0.9rem; }
.lb-prev { left: 0.9rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.9rem; top: 50%; transform: translateY(-50%); }

/* ─── About: story + stats ────────────────────────────── */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.story-copy h2 { margin-bottom: 1.1rem; }
.story-copy p { color: var(--muted); margin-bottom: 1rem; }
.story-copy p:last-child { margin-bottom: 0; color: var(--navy); font-weight: 700; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem 1.3rem;
  display: grid;
  gap: 0.3rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem);
  color: var(--teal-dark);
  letter-spacing: -0.01em;
}
.stat:nth-child(even) .stat-num { color: var(--navy); }
.stat-cap { font-weight: 700; font-size: 0.9rem; color: var(--muted); }

/* ─── About: values ───────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.value-ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 8px 20px rgba(18, 64, 110, 0.3);
}
.value-ico.teal { background: var(--teal); box-shadow: 0 8px 20px rgba(16, 156, 156, 0.3); }
.value-card h3 { margin-bottom: 0.5rem; font-size: 1.08rem; }
.value-card p { color: var(--muted); font-size: 0.92rem; }

/* ─── About: service area ─────────────────────────────── */
.area {
  position: relative;
  color: var(--white);
  padding-block: clamp(4rem, 9vw, 7rem);
  overflow: clip;
}
.area-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(12, 44, 77, 0.94) 15%, rgba(18, 64, 110, 0.75) 55%, rgba(16, 156, 156, 0.45) 120%),
    url("../img/rila-samokov.jpg") center 40% / cover no-repeat;
}
.area-inner { position: relative; max-width: 720px; }
.area-inner h2 { color: var(--white); margin-bottom: 1rem; }
.eyebrow-light { color: #7fd6d4; }
.area-sub { color: #c4d8ea; font-size: 1.05rem; max-width: 34em; margin-bottom: 1.8rem; }
.area-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.area-chips li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: 0.5em 1.15em;
  font-weight: 700;
  font-size: 0.94rem;
}
.area-chips li:first-child {
  background: var(--teal);
  border-color: var(--teal);
}
.area-note { color: #a8c0d6; font-size: 0.92rem; font-weight: 600; }

/* ─── About: mini steps ───────────────────────────────── */
.mini-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
}
.mini-step {
  position: relative;
  background: var(--bg-tint);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
}
.mini-step-num {
  display: inline-grid;
  place-items: center;
  width: 2.7rem; height: 2.7rem;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--teal);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 16px rgba(16, 156, 156, 0.22);
}
.mini-step h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.mini-step p { color: var(--muted); font-size: 0.9rem; }

/* ─── Legal pages ─────────────────────────────────────── */
.legal h1 {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem);
  margin-bottom: 0.5rem;
}
.legal-date {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2.2rem;
}
.legal h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.7rem;
}
.legal p { color: var(--text); margin-bottom: 0.9rem; max-width: 62ch; }
.legal a { font-weight: 700; }

/* ─── 404 ─────────────────────────────────────────────── */
.page-404 { min-height: 100vh; display: flex; }
.nf {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(16, 156, 156, 0.10), transparent 60%),
    linear-gradient(180deg, #f6fafb 0%, var(--bg) 100%);
  overflow: clip;
  padding-block: 4rem 7rem;
}
.nf-inner {
  position: relative;
  text-align: center;
  max-width: 620px;
}
.nf-brand { display: inline-block; margin-bottom: 2rem; }
.nf-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.5rem, 14vw, 8rem);
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.nf-code span { color: var(--teal); }
.nf h1 { font-size: clamp(1.3rem, 1rem + 1.6vw, 1.9rem); margin-bottom: 0.8rem; }
.nf-sub { color: var(--muted); margin-bottom: 2rem; }
.nf-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}
.nf-divider { position: absolute; }

/* ══════════════════════════════════════════════════════════
   SUBPAGES — RESPONSIVE
   ══════════════════════════════════════════════════════════ */

@media (max-width: 1080px) {
  .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .page-hero-split-inner { grid-template-columns: 1fr; }
  .page-hero-split .hero-visual { max-width: 640px; }
  .svc-detail-inner { grid-template-columns: 1fr; gap: 2rem; }
  .svc-detail-flip .svc-detail-media { order: 0; }
  .svc-detail-flip .svc-detail-copy { order: 1; }
  .lead-inner { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .case-media { min-height: 340px; aspect-ratio: 4 / 3; }
  .story-grid { grid-template-columns: 1fr; }
  .masonry { columns: 2; }
}

@media (max-width: 760px) {
  .page-hero-inner { text-align: center; margin-inline: auto; }
  .page-hero-sub { margin-inline: auto; }
  .page-hero-cta { grid-template-columns: 1fr; max-width: none; }
  .page-hero-cta .btn { width: 100%; }
  .page-hero .hero-trust { justify-content: center; }
  .page-hero-split .page-hero-copy { text-align: center; }

  .svc-detail-media { padding-right: 1.2rem; }
  .svc-detail-photo img { height: 260px; }
  .svc-detail-photo-sm { border-width: 4px; }
  .check-grid { grid-template-columns: 1fr; }
  .svc-price-row { justify-content: flex-start; }
  .svc-detail-cta { flex-direction: column; }
  .svc-detail-cta .btn { width: 100%; }

  .faq-item summary { padding: 0.95rem 1.05rem; font-size: 0.95rem; }
  .faq-body { padding: 0 1.05rem 1.05rem; }

  .lead-copy { text-align: center; }
  .lead-copy p { margin-inline: auto; }
  .lead-band .cta-actions { flex-direction: column; }
  .lead-band .cta-actions .btn { width: 100%; }

  .case-media { aspect-ratio: 3 / 3.4; min-height: 0; }
  .case-step { padding: 0.7rem 0.85rem; }
  .case-nav { justify-content: center; }

  .filter { justify-content: center; }
  .filter-btn { flex: 1 1 calc(50% - 0.55rem); justify-content: center; }
  .masonry { columns: 2; column-gap: 0.7rem; }
  .ph { margin-bottom: 0.7rem; border-radius: 10px; }
  .ph-tag { font-size: 0.66rem; left: 0.6rem; bottom: 0.55rem; }

  .lb-btn { width: 46px; height: 46px; }
  .lb-prev { top: auto; bottom: 1rem; transform: none; left: 1rem; }
  .lb-next { top: auto; bottom: 1rem; transform: none; right: 1rem; }
  .lb-img { max-height: 66vh; }
  .lb-count { top: 1rem; left: 1.1rem; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
  .stat { padding: 1.2rem 1rem 1rem; }
  .values-grid { grid-template-columns: 1fr; }
  .mini-steps { grid-template-columns: 1fr; }
  .area-inner { text-align: center; }
  .area-sub { margin-inline: auto; }
  .area-chips { justify-content: center; }

  .legal h1 { margin-top: 0.5rem; }

  .nf { padding-block: 3rem 6rem; }
  .nf-actions { flex-direction: column; }
  .nf-actions .btn { width: 100%; }
}
