/* ==========================================================================
   Sam's Construction Solutions — site stylesheet
   Self-contained: tokens + components. No build step, no framework.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@500;600;700&display=swap');

/* --------------------------------------------------------------- tokens -- */
:root {
  --bg: #f2f2f3;
  --surface: #e9e9ea;
  --surface-2: #ffffff;
  --ink: #1d1f20;
  --ink-70: color-mix(in srgb, #1d1f20 74%, transparent);
  --ink-55: color-mix(in srgb, #1d1f20 58%, transparent);
  --divider: color-mix(in srgb, #1d1f20 16%, transparent);

  --accent: #5980a6;
  --accent-100: #eef6ff;
  --accent-200: #d6ebff;
  --accent-300: #b5d9fd;
  --accent-500: #749dc4;
  --accent-600: #597ea3;
  --accent-700: #416180;
  --accent-800: #2c455d;
  --accent-900: #1d2d3d;

  --amber: #c08a3e;

  --font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, Segoe UI, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);

  --shadow-sm: 0 1px 2px rgba(29, 31, 32, .10);
  --shadow-md: 0 6px 20px rgba(29, 31, 32, .12);
  --shadow-lg: 0 18px 48px rgba(29, 31, 32, .20);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ----------------------------------------------------------------- base -- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--accent-700); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .015em;
  line-height: 1.06;
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-700);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent-900); color: #fff; padding: 12px 18px;
  font-size: 14px; text-transform: uppercase; letter-spacing: .1em; text-decoration: none;
}
.skip:focus { left: 8px; top: 8px; color: #fff; }

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------------------- layout ---- */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }
.sec     { padding-block: clamp(48px, 6vw, 88px); }
.sec-sm  { padding-block: clamp(32px, 4vw, 56px); }

.dark {
  background: var(--accent-900);
  color: var(--bg);
}
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark a { color: #fff; }
.dark .eyebrow { color: color-mix(in srgb, #f2f2f3 74%, transparent); }
.dark .rule { background: color-mix(in srgb, #f2f2f3 26%, transparent); }
.dark .lede, .dark p { color: color-mix(in srgb, #f2f2f3 84%, transparent); }

/* ------------------------------------------------------------ typography - */
.eyebrow {
  /* Used on both <div> and <h2>: a section label that happens to be the
     section's real heading. Font family and margin are pinned so the tag
     choice never changes how it looks. */
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-700);
}

.rule {
  height: 1px; border: 0;
  background: var(--divider);
  margin: 12px 0 28px;
}

.h-xl { font-size: clamp(38px, 5.6vw, 74px); }
.h-lg { font-size: clamp(32px, 4.2vw, 54px); }
.h-md { font-size: clamp(26px, 2.8vw, 38px); }
.h-sm { font-size: clamp(21px, 1.8vw, 25px); }

.lede {
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.62;
  color: var(--ink-70);
  max-width: 58ch;
  margin: 22px 0 0;
}

.muted { color: var(--ink-70); }
.small { font-size: 14px; }

.meta {
  font-size: 12px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-55);
}

/* --------------------------------------------------------- blueprint fr -- */
.frame {
  position: relative;
  border: 1px solid var(--divider);
  background: var(--surface-2);
}
.frame > .c {
  position: absolute; width: 11px; height: 11px; pointer-events: none;
  color: var(--divider);
}
.frame > .c::before,
.frame > .c::after { content: ""; position: absolute; background: currentColor; }
.frame > .c::before { left: 5px; top: 0; width: 1px; height: 100%; }
.frame > .c::after  { top: 5px; left: 0; width: 100%; height: 1px; }
.frame > .c.tl { top: -6px; left: -6px; }
.frame > .c.tr { top: -6px; right: -6px; }
.frame > .c.bl { bottom: -6px; left: -6px; }
.frame > .c.br { bottom: -6px; right: -6px; }

.dark .frame { background: transparent; border-color: color-mix(in srgb, #f2f2f3 26%, transparent); }
.dark .frame > .c { color: color-mix(in srgb, #f2f2f3 55%, transparent); }

/* ---------------------------------------------------------------- btns --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--bg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent-700);
  border-color: var(--accent-700);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-900);
  border-color: var(--accent-900);
  color: #fff;
}

.btn-amber {
  background: var(--amber);
  border-color: var(--amber);
  color: #1d1f20;
}
.btn-amber:hover {
  background: #a97529; border-color: #a97529; color: #fff;
}

.btn-onDark {
  border-color: color-mix(in srgb, #f2f2f3 48%, transparent);
  color: #fff;
}
.btn-onDark:hover { background: #fff; border-color: #fff; color: var(--accent-900); }

.btn-sm { padding: 11px 20px; font-size: 13px; }

.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------------------------------------------------------------- tags --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--divider);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-70);
  white-space: nowrap;
}
.tag svg { width: 13px; height: 13px; color: var(--accent-700); flex: none; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ================================================================ HEADER == */
.topbar {
  background: var(--accent-900);
  color: var(--bg);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  padding-block: 8px;
}
.topbar .sp { margin-right: auto; }
.topbar a { color: #fff; text-decoration: none; }
.topbar .dim { opacity: .78; }

.site-head {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--divider);
  transition: box-shadow .2s var(--ease);
}
.site-head.stuck { box-shadow: var(--shadow-md); }

.head-inner {
  display: flex; align-items: center; gap: 24px;
  padding-block: 13px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  margin-right: auto;
}
.brand img { width: 42px; height: auto; flex: none; }
.brand b {
  display: block;
  font-family: var(--font-head); font-weight: 600; font-size: 20px;
  line-height: 1.04; letter-spacing: .01em; text-transform: uppercase;
}
.brand span {
  display: block; margin-top: 3px;
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-55);
}

.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  position: relative;
  font-size: 13px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none;
  color: var(--ink-70);
  padding-block: 6px;
  /* Translated labels are longer than the English ones ("Trabajos anteriores",
     "Выполненные работы"). Without this they wrap to two lines and the header
     goes ragged. */
  white-space: nowrap;
  transition: color .15s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--accent-700);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav a:hover { color: var(--accent-700); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--accent-700); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ------------------------------------------------------- language picker -- */
/* A <details> so it opens and closes with no JavaScript at all; site.js only
   adds the niceties (close on outside click / Escape). */
.langpick { position: relative; flex: none; }

.langpick > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  border: 1px solid var(--divider);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink-70);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}
.langpick > summary::-webkit-details-marker { display: none; }
.langpick > summary::marker { content: ""; }
.langpick > summary:hover { border-color: var(--ink); color: var(--ink); }
.langpick > summary svg { width: 15px; height: 15px; flex: none; }
.langpick > summary svg:last-child { width: 12px; height: 12px; opacity: .7; }
.langpick[open] > summary { border-color: var(--ink); color: var(--ink); }
.langpick[open] > summary svg:last-child { transform: rotate(180deg); }

.langpick-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 80;
  min-width: 194px;
  padding: 6px;
  background: var(--surface-2);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-lg);
}
.langpick-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  color: var(--ink);
}
.langpick-menu a:hover { background: var(--accent-100); color: var(--accent-900); }
.langpick-menu a.on {
  background: var(--accent-900);
  color: #fff;
  pointer-events: none;
}
.langpick-menu .lang-code {
  flex: none;
  min-width: 26px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink-55);
}
.langpick-menu a.on .lang-code { color: color-mix(in srgb, #fff 70%, transparent); }
.langpick-menu a:hover .lang-code { color: var(--accent-700); }

.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--divider); background: transparent;
  cursor: pointer; color: var(--ink);
}
.burger span {
  display: block; width: 20px; height: 2px; background: currentColor;
  position: relative; transition: background .15s var(--ease);
}
.burger span::before,
.burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  background: currentColor; transition: transform .22s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--divider);
  background: var(--bg);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 15px var(--gutter);
  border-bottom: 1px solid var(--divider);
  font-size: 14px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
}
.mobile-nav a[aria-current="page"] { color: var(--accent-700); }
.mobile-nav .cta { padding: 18px var(--gutter); border-bottom: 0; }
.mobile-nav .cta .btn { width: 100%; }

/* ================================================================== HERO == */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5.4fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  padding-block: clamp(40px, 5.5vw, 78px) clamp(32px, 4vw, 56px);
}
.hero h1 { font-size: clamp(38px, 5.4vw, 72px); }
.hero h1 span { display: block; }

.hero-media {
  position: relative;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-badge {
  position: absolute; left: -14px; bottom: -14px;
  background: var(--accent-900); color: #fff;
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
}
.hero-badge b {
  display: block; font-family: var(--font-head); font-size: 30px;
  line-height: 1; letter-spacing: .01em;
}
.hero-badge span {
  display: block; margin-top: 4px;
  font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase;
  color: color-mix(in srgb, #f2f2f3 76%, transparent);
}

/* ================================================================= STATS == */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stats > div {
  padding: 26px 24px;
  border-right: 1px solid var(--divider);
}
.stats > div:last-child { border-right: 0; }
.stats b {
  display: block;
  font-family: var(--font-head); font-weight: 600; font-size: 42px;
  line-height: 1; letter-spacing: .01em;
}
.stats span {
  display: block; margin-top: 9px;
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-55);
}

/* ============================================================== SERVICES == */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }

.card {
  padding: 26px;
  background: var(--surface-2);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h2, .card h3 { font-size: 22px; margin: 0; }
.card p { font-size: 15px; line-height: 1.6; margin: 13px 0 0; color: var(--ink-70); }
.card .num {
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: .14em; color: var(--accent-700); margin-bottom: 8px;
}
.card .ico {
  width: 30px; height: 30px; color: var(--accent-700); margin-bottom: 14px;
}

.list {
  display: flex; flex-direction: column; gap: 9px;
  margin: 18px 0 0; padding: 0; list-style: none;
  font-size: 15px; line-height: 1.5;
}
.list li { position: relative; padding-left: 20px; }
.list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 1px; background: var(--accent-700);
}

/* =========================================================== BEFORE/AFTER = */
.ba {
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  background: var(--surface);
  cursor: ew-resize;
}
.ba img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba .ba-after { position: absolute; inset: 0; }
.ba .ba-before {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.ba .ba-handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 2px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .28);
  transform: translateX(-1px);
  pointer-events: none;
}
.ba .ba-knob {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .34);
  display: grid; place-items: center;
  color: var(--accent-900);
}
.ba .ba-knob svg { width: 20px; height: 20px; }

.ba .ba-lbl {
  position: absolute; bottom: 14px;
  padding: 6px 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(29, 31, 32, .78); color: #fff;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.ba .ba-lbl.l { left: 14px; }
.ba .ba-lbl.r { right: 14px; }

.ba input[type="range"] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
}
.ba input[type="range"]:focus-visible { opacity: 0; }
.ba:has(input:focus-visible) { outline: 2px solid var(--accent-700); outline-offset: 3px; }

/* ================================================================ GALLERY = */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0 0 clamp(24px, 3vw, 36px);
}
.filters button {
  padding: 9px 17px;
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase;
  border: 1px solid var(--divider);
  background: transparent; color: var(--ink-70);
  cursor: pointer;
  transition: all .18s var(--ease);
}
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] {
  background: var(--accent-900); border-color: var(--accent-900); color: #fff;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.tile {
  position: relative;
  display: block;
  border: 0; padding: 0;
  background: var(--surface);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  width: 100%;
}
.tile.portrait { aspect-ratio: 3 / 4; }
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
.tile:hover img { transform: scale(1.055); }

.tile .cap {
  position: absolute; inset: auto 0 0 0;
  padding: 34px 16px 14px;
  background: linear-gradient(to top, rgba(20, 24, 28, .88), rgba(20, 24, 28, 0));
  color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.tile:hover .cap,
.tile:focus-visible .cap { opacity: 1; transform: translateY(0); }

@media (hover: none) {
  .tile .cap { opacity: 1; transform: none; }
}

.tile .zoom {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--accent-900);
  opacity: 0; transform: scale(.85);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.tile:hover .zoom { opacity: 1; transform: scale(1); }
.tile .zoom svg { width: 15px; height: 15px; }

/* =============================================================== LIGHTBOX = */
.lb {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  background: rgba(16, 19, 22, .94);
  padding: clamp(12px, 3vw, 40px);
}
.lb.open { display: grid; grid-template-rows: 1fr auto; }

.lb-stage { display: grid; place-items: center; min-height: 0; }
.lb-stage img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lb-cap {
  text-align: center; color: #fff;
  padding-top: 16px;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
}
.lb-cap small {
  display: block; margin-top: 5px;
  font-size: 11px; letter-spacing: .12em;
  color: rgba(255, 255, 255, .55);
}

.lb button {
  position: absolute;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff; cursor: pointer;
  transition: background .18s var(--ease);
}
.lb button:hover { background: rgba(255, 255, 255, .24); }
.lb button svg { width: 20px; height: 20px; }
.lb-close { top: clamp(12px, 3vw, 28px); right: clamp(12px, 3vw, 28px); }
.lb-prev  { left: clamp(8px, 2vw, 28px);  top: 50%; transform: translateY(-50%); }
.lb-next  { right: clamp(8px, 2vw, 28px); top: 50%; transform: translateY(-50%); }

/* ============================================================== CALL BOX = */
/* Shown instead of following a tel: link on anything that cannot dial. */
.callbox {
  position: fixed; inset: 0; z-index: 210;
  display: none;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
  background: rgba(16, 19, 22, .8);
}
.callbox.open { display: grid; }

.callbox-panel {
  position: relative;
  width: min(520px, 100%);
  padding: clamp(32px, 5vw, 52px) clamp(24px, 4vw, 48px);
  background: var(--bg);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.callbox-close {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--divider);
  background: transparent; color: var(--ink);
  cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.callbox-close:hover { background: var(--ink); color: var(--bg); }
.callbox-close svg { width: 18px; height: 18px; }

.callbox-num {
  display: block;
  margin: 18px 0 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(38px, 8vw, 60px);
  line-height: 1.02;
  letter-spacing: .01em;
  color: var(--accent-900);
  text-decoration: none;
  white-space: nowrap;
}
.callbox-num:hover { color: var(--accent-700); }

.callbox-meta {
  margin-top: 12px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-55);
}

.callbox-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: 28px;
}

.callbox-hint {
  margin: 22px 0 0;
  font-size: 13px; line-height: 1.5;
  color: var(--ink-55);
}

/* ============================================================ TESTIMONIAL = */
.quote { padding: 30px; background: var(--surface-2); }
.quote blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.32;
}
.quote figcaption {
  display: flex; align-items: center; gap: 13px; margin-top: 24px;
}
.avatar {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  background: var(--accent-900); color: #fff;
  font-family: var(--font-head); font-size: 19px; letter-spacing: .02em;
}
.stars { display: flex; gap: 3px; margin-bottom: 16px; color: var(--amber); }
.stars svg { width: 16px; height: 16px; }

/* ================================================================== FORM == */
.form { padding: clamp(24px, 3vw, 34px); background: var(--surface-2); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field > span {
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-55); font-weight: 600;
}
.input {
  width: 100%;
  padding: 12px 13px;
  font-family: var(--font-body); font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--divider);
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.input:focus {
  outline: none;
  border-color: var(--accent-700);
  background: #fff;
}
textarea.input { resize: vertical; min-height: 110px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 9px 15px;
  border: 1px solid var(--divider);
  font-size: 13.5px; font-weight: 500;
  cursor: pointer;
  transition: all .16s var(--ease);
}
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip:hover { border-color: var(--ink); }
/* .on is set by site.js; :has() covers the no-JS case on modern browsers.
   The radio itself is visually hidden, so without one of these there would be
   no selected state at all. */
.chip.on,
.chip:has(input:checked) {
  background: var(--accent-900); border-color: var(--accent-900); color: #fff;
}
.chip:has(input:focus-visible) { outline: 2px solid var(--accent-700); outline-offset: 2px; }

.form-status { font-size: 14px; color: var(--accent-700); }
.form-status.err { color: #b42318; }

/* Honeypot. Positioned off-screen rather than display:none, because plenty of
   bots skip hidden fields but happily fill absolutely-positioned ones. It is
   aria-hidden and untabbable, so nobody using the site ever reaches it. */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ================================================================= STEPS == */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.step .n {
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: .14em; color: var(--accent-700);
}
.step h3 { font-size: 21px; margin: 10px 0 0; }
.step p { font-size: 15px; line-height: 1.6; margin: 10px 0 0; color: var(--ink-70); }

/* ================================================================ FOOTER == */
.site-foot { background: var(--accent-900); color: var(--bg); }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-block: 56px 26px;
}
.site-foot h3 {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: color-mix(in srgb, #f2f2f3 60%, transparent);
  margin: 0;
}
.site-foot .col-links {
  display: flex; flex-direction: column; gap: 9px; margin-top: 14px; font-size: 14px;
}
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .brand-line { display: flex; align-items: center; gap: 12px; }
.site-foot .brand-line img { width: 40px; filter: brightness(0) invert(1); }
.site-foot .brand-line b {
  font-family: var(--font-head); font-weight: 600; font-size: 19px;
  line-height: 1.05; text-transform: uppercase; letter-spacing: .01em;
}
.foot-bar {
  display: flex; flex-wrap: wrap; gap: 12px;
  padding-block: 20px 40px;
  border-top: 1px solid color-mix(in srgb, #f2f2f3 20%, transparent);
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: color-mix(in srgb, #f2f2f3 60%, transparent);
}
.foot-bar .sp { margin-right: auto; }

/* ======================================================== MOBILE CALL BAR = */
.callbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  border-top: 1px solid color-mix(in srgb, #f2f2f3 22%, transparent);
  background: var(--accent-900);
}
.callbar a {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: #fff;
}
.callbar a + a { border-left: 1px solid color-mix(in srgb, #f2f2f3 22%, transparent); }
.callbar a.hi { background: var(--amber); color: #1d1f20; }
.callbar svg { width: 16px; height: 16px; }

/* =============================================================== REVEALS == */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .tile img, .card, .btn { transition: none !important; }
}

/* ============================================================= RESPONSIVE = */
@media (max-width: 1080px) {
  .nav { gap: 16px; }
  .nav a { font-size: 12px; letter-spacing: .07em; }
  .head-inner > .btn { display: none; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }
  .head-inner > .btn { display: none; }
  /* The picker stays — a visitor who cannot read the page must still be able
     to change language, so it is the one control that never collapses. */
  .langpick { margin-left: auto; }
  .langpick > summary { padding: 10px 12px; }
  .langpick-menu { min-width: 210px; }

  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .hero-badge { left: auto; right: 12px; bottom: -12px; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(2n) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--divider); }

  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }

  .split { grid-template-columns: 1fr !important; }
  .split .media { order: -1; }

  .callbar { display: flex; }
  body { padding-bottom: 52px; }
  .site-head { top: 0; }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .foot-grid { grid-template-columns: 1fr; }
  .topbar .dim { display: none; }
  .langpick-menu { right: -8px; }
  .brand span { display: none; }
  .brand b { font-size: 17px; }
  .brand img { width: 34px; }
  .quote { padding: 22px; }
  .lb-prev, .lb-next { width: 40px; height: 40px; }
}

/* Split layout helper (image + text side by side) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(22px, 3vw, 44px);
  align-items: center;
}
.split.rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

@media print {
  .site-head, .callbar, .lb, .filters, .topbar { display: none !important; }
  body { padding-bottom: 0; }
}
