/* Serbest Nikelaj — landing page components (classes converted from the inline-styled prototype) */

/* ---------- layout primitives ---------- */
.wrap { max-width: var(--max-w); margin: 0 auto; }
.section { padding: var(--s-section) var(--gutter); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--tint { background: var(--bg-2); }
.section--tight-top { padding-top: 40px; }
.section__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: var(--s-7); margin-bottom: var(--s-10);
}
.kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--label); margin-bottom: var(--s-5);
}
.section--dark .kicker { color: var(--bronze); }
.h2 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 5.5vw, 76px);
  line-height: .98; letter-spacing: -.015em; margin: 0; text-wrap: balance;
}
.h2--14 { max-width: 14ch; }
.h2--16 { max-width: 16ch; }
.h2--10 { max-width: 10ch; }
.h2--md { font-size: clamp(40px, 5vw, 68px); }
.h2--sm { font-size: clamp(36px, 4.5vw, 60px); line-height: 1; }
.lede { max-width: 400px; font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; text-wrap: pretty; }
.two-col {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: var(--s-11); align-items: center;
}
.two-col--top { align-items: start; }
.mono-note { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); margin: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px;
  border-radius: var(--r-pill); font-size: 16px; border: 1px solid transparent; background: none;
  color: inherit;
}
.btn--light { background: var(--on-dark); color: var(--ink); font-weight: 500; }
.btn--light:hover { color: var(--accent); }
.btn--outline { border-color: rgba(243, 241, 236, .4); }
.btn--outline:hover { border-color: var(--on-dark); color: var(--on-dark); }
.btn__meta { font-family: var(--font-mono); font-size: 14px; opacity: .7; }

/* ---------- header (modern: smart sticky, section indicator, progress, full-screen mobile menu) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: center;
  padding: 14px 16px; pointer-events: none;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), padding .35s ease;
}
.site-header.is-hidden { transform: translateY(calc(-100% - 8px)); }
.site-header.is-scrolled { padding-top: 10px; }
.nav {
  pointer-events: auto; width: 100%; max-width: var(--max-w); display: flex; align-items: center;
  justify-content: space-between; gap: 16px; padding: 10px 10px 10px 20px; position: relative; z-index: 2;
  background: rgba(20, 20, 20, .62); backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r-pill); color: var(--on-dark);
  transition: padding .35s ease, background .35s ease, box-shadow .35s ease, max-width .45s cubic-bezier(.16, 1, .3, 1);
}
.is-scrolled .nav {
  padding: 6px 6px 6px 16px; background: rgba(20, 20, 20, .84);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .28); max-width: min(var(--max-w), 1080px);
}
/* Element lockup (k3 option C): Ni/28 mark + stacked wordmark */
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand__mark { width: 36px; height: 36px; flex: none; display: block; transition: transform .35s ease; }
.is-scrolled .brand__mark { transform: scale(.9); }
.brand__text { display: flex; flex-direction: column; gap: 4px; }
.brand__name { font-family: var(--font-display); font-size: 24px; line-height: .9; }
.brand__tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .34em; color: var(--sand); }

/* desktop links + sliding indicator */
.nav__links { position: relative; display: flex; gap: 2px; font-size: 14px; }
.nav__link {
  position: relative; z-index: 1; padding: 9px 14px; border-radius: var(--r-pill);
  color: rgba(243, 241, 236, .72); transition: color .25s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--on-dark); }
.nav__link:focus-visible { outline: 2px solid var(--sand); outline-offset: 1px; }
.nav__indicator {
  position: absolute; top: 0; bottom: 0; left: 0; width: var(--ind-w, 0); border-radius: var(--r-pill);
  background: rgba(243, 241, 236, .11); box-shadow: inset 0 0 0 1px rgba(243, 241, 236, .08);
  transform: translateX(var(--ind-x, 0)); opacity: var(--ind-o, 0); pointer-events: none;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), width .45s cubic-bezier(.16, 1, .3, 1), opacity .25s ease;
}
/* reading progress: a copper hairline, the Element mark's bar */
.nav__progress {
  position: absolute; left: 22px; right: 22px; bottom: -1px; height: 2px; border-radius: 2px;
  background: var(--accent); transform-origin: left; transform: scaleX(var(--progress, 0)); opacity: .9;
  pointer-events: none;
}

.nav__actions { display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: flex; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r-pill); padding: 3px;
  font-family: var(--font-mono); font-size: 11px;
}
.lang-switch__opt { position: relative; padding: 6px 10px; border-radius: var(--r-pill); color: var(--on-dark); transition: background .2s ease; }
/* the pill stays slim; the tap target is widened to ≥ 44 × 44 px without moving anything */
.lang-switch__opt::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: 44px; transform: translate(-50%, -50%); }
.lang-switch__opt:hover:not(.is-active) { background: rgba(243, 241, 236, .1); }
.lang-switch__opt.is-active { background: var(--on-dark); color: var(--ink); }
.nav__call {
  display: flex; align-items: center; gap: 8px; background: var(--on-dark); color: var(--ink);
  min-height: 44px; padding: 10px 16px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}
.nav__call:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(63, 166, 107, .6); }
@media (prefers-reduced-motion: no-preference) {
  .dot { animation: sn-pulse 2.4s ease-out infinite; }
}
@keyframes sn-pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 166, 107, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(63, 166, 107, 0); } }

/* hamburger → X */
.nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18);
  color: var(--on-dark); align-items: center; justify-content: center; position: relative; z-index: 3;
}
.burger { position: relative; width: 16px; height: 10px; display: block; }
.burger span {
  position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px; background: currentColor;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), top .35s cubic-bezier(.16, 1, .3, 1);
}
.burger span:first-child { top: 0; }
.burger span:last-child { top: 8.5px; }
.menu-open .burger span:first-child, .nav__toggle[aria-expanded="true"] .burger span:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-open .burger span:last-child, .nav__toggle[aria-expanded="true"] .burger span:last-child { top: 4.25px; transform: rotate(-45deg); }

/* full-screen menu (< 1000 px) */
.menu { display: none; }
@media (max-width: 999px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  /* 600–999 px: the call button keeps its visible label (a bare dot had no name, B5) */
  .nav__call { padding: 10px 14px; font-size: 13px; }
  .menu {
    display: block; position: fixed; inset: 0; z-index: 1; pointer-events: auto; overflow-y: auto;
    background: var(--ink-3); color: var(--on-dark); /* opaque: Safari let the page show through a translucent + blurred layer */
    opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s;
  }
  .menu:target, .menu.is-open { opacity: 1; visibility: visible; transition: opacity .35s ease, visibility 0s; }
  .menu__inner {
    min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
    padding: 108px 24px calc(28px + env(safe-area-inset-bottom));
  }
  .menu:focus { outline: none; }
  .menu__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
  .menu__links li { border-bottom: 1px solid rgba(243, 241, 236, .1); }
  .menu__link {
    display: flex; align-items: baseline; gap: 16px; padding: 12px 0; color: var(--on-dark);
    font-family: var(--font-display); font-size: clamp(34px, 9vw, 52px); line-height: 1.05;
  }
  .menu__link:hover, .menu__link:focus-visible { color: var(--sand); }
  .menu__n { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--accent); min-width: 22px; }
  .menu__foot { display: flex; flex-direction: column; gap: 12px; }
  .menu__call {
    display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-radius: var(--r-lg);
    background: var(--on-dark); color: var(--ink); font-size: 17px; font-weight: 500;
  }
  .menu__call:hover { color: var(--ink); }
  .menu__phone { margin-left: auto; font-family: var(--font-mono); font-size: 15px; opacity: .7; }
  .menu__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .menu__btn {
    display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: var(--r-lg);
    border: 1px solid rgba(243, 241, 236, .22); color: var(--on-dark); font-weight: 500;
  }
  .menu__btn:hover { color: var(--on-dark); background: rgba(243, 241, 236, .06); }
  .menu__btn--wa { background: var(--wa); color: var(--wa-ink); border-color: transparent; }
  .menu__btn--wa:hover { background: var(--wa); color: var(--wa-ink); }
  .menu__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; }
  .menu__addr { margin: 0; font-size: 12px; line-height: 1.5; color: rgba(243, 241, 236, .6); text-align: right; max-width: 60%; }
  /* no-JS close (JS uses the toggle, which stays above the menu) */
  .menu__close {
    position: absolute; top: 22px; right: 28px; width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--on-dark);
    border: 1px solid rgba(255, 255, 255, .18);
  }
  .js .menu__close { display: none; }
  .no-js .menu { z-index: 3; } /* no JS: the menu (with its own ×) covers the bar */
  @media (prefers-reduced-motion: no-preference) {
    .menu__links li, .menu__foot { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .6s cubic-bezier(.16, 1, .3, 1); }
    .menu.is-open .menu__links li, .menu:target .menu__links li { opacity: 1; transform: none; transition-delay: calc(.06s + var(--i) * .045s); }
    .menu.is-open .menu__foot, .menu:target .menu__foot { opacity: 1; transform: none; transition-delay: .38s; }
  }
  .menu-open { overflow: hidden; }
  .menu-open .site-header { transform: none; }
  .menu-open .nav { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (max-width: 599px) { .nav__call { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .site-header, .nav, .nav__indicator, .burger span, .menu { transition: none !important; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; background: var(--ink-3); color: var(--on-dark);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, .35) 0%, rgba(17, 17, 17, .1) 40%, rgba(17, 17, 17, .88) 100%);
}
.hero__inner { position: relative; width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 140px var(--gutter) 40px; }
.hero__eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  opacity: .8; margin-bottom: 22px;
}
.hero__title {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(52px, 9vw, 132px); line-height: .92;
  letter-spacing: -.02em; margin: 0; max-width: 11ch; text-wrap: balance;
}
.hero__title em { font-style: italic; color: var(--sand); }
.hero__sub {
  font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; max-width: 560px; opacity: .88;
  margin: 28px 0 34px; text-wrap: pretty;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 1px; margin-top: 72px;
  border-top: 1px solid rgba(243, 241, 236, .2);
}
.stat { padding: 22px 0 4px; display: flex; flex-direction: column; gap: 6px; }
.stat__v { font-family: var(--font-display); font-size: 44px; line-height: 1; }
.stat__l { font-size: 13px; opacity: .7; }

/* ---------- service strip ---------- */
.strip { background: var(--ink); color: var(--on-dark); overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .06); }
.strip__row {
  display: flex; gap: 48px; padding: 22px var(--gutter); white-space: nowrap; font-family: var(--font-display);
  font-size: 28px; justify-content: center; flex-wrap: wrap; row-gap: 8px; margin: 0; list-style: none;
}
.strip__item { display: flex; align-items: center; gap: 14px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); flex: none; }
.swatch--sm { width: 9px; height: 9px; box-shadow: none; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.svc-card {
  grid-column: span var(--span, 6); position: relative; min-height: 520px; border-radius: var(--r-xl);
  overflow: hidden; background: var(--ink-2); color: var(--on-dark); display: flex; flex-direction: column;
  justify-content: flex-end;
}
.svc-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .82) 100%); }
.svc-card__code {
  position: absolute; top: 18px; left: 18px; font-family: var(--font-mono); font-size: 12px;
  background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); padding: 7px 12px; border-radius: var(--r-pill);
  display: flex; align-items: center; gap: 8px;
}
.svc-card__body { position: relative; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.svc-card__title { font-family: var(--font-display); font-weight: 400; font-size: 46px; line-height: 1; margin: 0; }
.svc-card__desc { font-size: 15px; line-height: 1.55; opacity: .88; margin: 0; max-width: 440px; text-wrap: pretty; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.tag { font-family: var(--font-mono); font-size: 12px; border: 1px solid rgba(255, 255, 255, .28); padding: 6px 10px; border-radius: var(--r-pill); }
@media (max-width: 859px) {
  .svc-card { grid-column: 1 / -1; min-height: 440px; }
  /* narrow cards put the copy over the busiest part of the photo: deeper shade + soft text shadow */
  .svc-card__shade { background: linear-gradient(180deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .5) 38%, rgba(0, 0, 0, .9) 100%); }
  .svc-card__body { text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
}

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 14px; margin-top: 56px; }
.step { display: flex; flex-direction: column; gap: 16px; }
.step__img { aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: #222; }
.step__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step__head { display: flex; align-items: baseline; gap: 12px; border-top: 1px solid rgba(243, 241, 236, .18); padding-top: 14px; }
.step__n { font-family: var(--font-mono); font-size: 12px; color: var(--bronze); }
.step__title { font-weight: 500; font-size: 18px; margin: 0; }
.step__desc { font-size: 14px; line-height: 1.55; opacity: .72; margin: 0; text-wrap: pretty; }

/* ---------- before / after ---------- */
.ba {
  --pos: 50%;
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-xl); overflow: hidden; background: var(--ink-3);
  user-select: none; touch-action: none;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba__img--sim { filter: grayscale(1) sepia(.55) contrast(.75) brightness(.62) blur(.4px); }
/* simulated pair: the "after" side reads as freshly plated (same tuning as the liquid shader) */
.ba[data-ba-sim] > .ba__img { filter: brightness(1.2) contrast(1.18) saturate(1.05); }
.ba__clip { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--on-dark); transform: translateX(-1px); pointer-events: none; }
.ba__knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px;
  border-radius: 50%; background: var(--on-dark); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 14px; color: var(--ink); box-shadow: 0 4px 18px rgba(0, 0, 0, .3);
}
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__label {
  position: absolute; bottom: 16px; font-family: var(--font-mono); font-size: 12px; padding: 6px 12px;
  border-radius: var(--r-pill); pointer-events: none;
}
.ba__label--before { left: 16px; background: rgba(0, 0, 0, .55); color: var(--on-dark); }
.ba__label--after { right: 16px; background: var(--on-dark); color: var(--ink); }

/* ---------- sectors ---------- */
.sectors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); border-top: 1px solid var(--divider); margin: 48px 0 0; padding: 0; list-style: none; }
.sector { padding: 26px 20px 26px 0; border-bottom: 1px solid var(--divider); display: flex; gap: 16px; align-items: baseline; }
.sector__n { font-family: var(--font-mono); font-size: 12px; color: var(--label); }
.sector__body { display: flex; flex-direction: column; gap: 6px; }
.sector__name { font-family: var(--font-display); font-size: 28px; line-height: 1.05; }
.sector__ex { font-size: 14px; color: var(--muted-2); line-height: 1.5; }

/* ---------- gallery ---------- */
/* Even grid: every tile is 4:3, portrait photos span two rows; images crop to fill (cover) so the
 * columns always end on the same line whatever the source aspect ratios are. */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 14px; }
.gallery__item { margin: 0; border-radius: var(--r-md); overflow: hidden; position: relative; background: var(--placeholder); aspect-ratio: 4 / 3; }
.gallery__item--tall { grid-row: span 2; aspect-ratio: auto; }
.gallery__link { position: absolute; inset: 0; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__cap {
  position: absolute; left: 12px; bottom: 12px; font-family: var(--font-mono); font-size: 11px;
  background: rgba(0, 0, 0, .55); color: var(--on-dark); padding: 5px 10px; border-radius: var(--r-pill);
  pointer-events: none;
}
@media (max-width: 999px) {
  /* two columns: tall tiles would stagger and leave an empty row, so every tile stays 4:3 */
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__item--tall { grid-row: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 599px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--tall { grid-row: auto; aspect-ratio: 4 / 5; }
}

/* ---------- about ---------- */
.about__img { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 3; background: #ddd; }
.about__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__body { font-size: 16px; line-height: 1.65; color: var(--muted); margin: 0 0 28px; text-wrap: pretty; }
.quote { margin: 0; padding: 22px 0 0; border-top: 1px solid var(--divider); }
.quote__text { font-family: var(--font-display); font-style: italic; font-size: 26px; line-height: 1.25; margin: 0 0 12px; }
.quote__by { font-size: 14px; color: var(--muted-2); }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--s-11); }
.faq__list { border-top: 1px solid rgba(243, 241, 236, .18); }
.faq__item { border-bottom: 1px solid rgba(243, 241, 236, .18); }
.faq__q {
  width: 100%; background: none; border: 0; color: var(--on-dark); display: flex; justify-content: space-between;
  align-items: center; gap: 20px; padding: 24px 0; text-align: left; font-size: 18px; font-weight: 500;
}
.faq__icon { font-family: var(--font-mono); font-size: 20px; color: var(--bronze); }
.no-js .faq__icon { display: none; }
.faq__a { margin: 0; padding: 0 0 24px; font-size: 15px; line-height: 1.65; opacity: .75; max-width: 620px; text-wrap: pretty; }
.faq__a[hidden] { display: none; }

/* ---------- quote form ---------- */
.phone-card {
  display: inline-flex; flex-direction: column; gap: 4px; padding: 22px 26px; border-radius: var(--r-lg);
  background: var(--ink); color: var(--on-dark); margin-top: 32px;
}
.phone-card:hover { color: var(--sand); }
.phone-card__label { font-family: var(--font-mono); font-size: 12px; opacity: .65; letter-spacing: .1em; text-transform: uppercase; }
.phone-card__num { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.qform {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; background: var(--surface);
  padding: 28px; border-radius: var(--r-xl); border: 1px solid var(--divider-2);
}
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted-2); }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  font-size: 16px; padding: 14px; border: 1px solid var(--divider); border-radius: var(--r-sm);
  background: var(--surface-input); color: var(--ink); width: 100%; margin: 0;
}
.field input, .field select { min-height: 50px; line-height: 1.25; }
/* one look for the select everywhere (iOS drew a 26 px native control): own chevron */
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234A4743' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px;
}
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.field__msg { display: block; }
.field__err { color: var(--danger); font-size: 13px; font-weight: 500; }
.qform__note { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--muted-2); }
.qform__privacy { grid-column: 1 / -1; margin: 0; font-size: 12px; line-height: 1.55; color: var(--muted-2); }
.qform__privacy a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 6px 0; margin: -6px 0; }
.qform__submit {
  grid-column: 1 / -1; background: var(--ink); color: var(--on-dark); border: 0; border-radius: var(--r-pill);
  padding: 18px; font-size: 16px; font-weight: 500;
}
.qform__submit:disabled { opacity: .6; cursor: progress; }
.qform__alert { grid-column: 1 / -1; font-size: 14px; font-weight: 500; color: var(--danger); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent-card {
  background: var(--surface); padding: 40px; border-radius: var(--r-xl); border: 1px solid var(--divider-2);
  display: flex; flex-direction: column; gap: 12px; justify-content: center;
}
.sent-card__title { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.sent-card__body { font-size: 16px; color: var(--muted); }
.btn--wa { background: var(--wa); color: var(--wa-ink); font-weight: 600; align-self: flex-start; margin-top: 8px; }
.btn--wa:hover { color: var(--wa-ink); filter: brightness(1.05); }

/* ---------- contact ---------- */
.contact-section { padding: 0 var(--gutter) 24px; }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.contact__card { background: var(--ink); color: var(--on-dark); border-radius: var(--r-xl); padding: 36px; display: flex; flex-direction: column; gap: 28px; }
.contact__card .kicker { color: var(--bronze); margin: 0; }
.contact__rows { display: flex; flex-direction: column; gap: 22px; }
.contact__row { display: flex; flex-direction: column; gap: 4px; }
.contact__label { font-size: 13px; opacity: .6; }
.contact__phone { font-family: var(--font-display); font-size: 34px; line-height: 1.1; }
.contact__val { font-size: 18px; line-height: 1.45; }
.contact__dir { align-self: flex-start; border: 1px solid rgba(243, 241, 236, .35); padding: 12px 18px; border-radius: var(--r-pill); font-size: 14px; }
.contact__map { border-radius: var(--r-xl); overflow: hidden; min-height: 420px; background: var(--divider); }
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.85) contrast(1.05); display: block; }
@media (max-width: 599px) { .contact__map, .contact__map iframe { min-height: 300px; } }
.contact__mail { display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0; }
.contact__dir { display: inline-flex; align-items: center; min-height: 44px; }
/* map placeholder (click-to-load, B3) */
.contact__map[data-map] { display: flex; }
.map-ph {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 36px 24px; text-align: center; background: var(--bg-2); color: var(--ink);
  background-image: radial-gradient(circle at 1px 1px, rgba(20, 20, 20, .09) 1px, transparent 0);
  background-size: 18px 18px;
}
.map-ph__icon { color: var(--accent); }
.map-ph__title { margin: 0; font-family: var(--font-display); font-size: 30px; line-height: 1.05; }
.map-ph__text { margin: 0; max-width: 34ch; font-size: 14px; line-height: 1.55; color: var(--muted); }
.map-ph__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.map-ph__btn, .map-ph__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500;
}
.map-ph__btn { background: var(--ink); color: var(--on-dark); border: 0; }
.map-ph__btn[hidden] { display: none; }
.map-ph__link { border: 1px solid var(--muted-3); color: var(--ink); }
.map-ph__link:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- footer ---------- */
.footer { padding: 48px var(--gutter) 110px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: flex-end; }
.footer__mark { font-family: var(--font-display); font-size: clamp(56px, 11vw, 160px); line-height: .85; letter-spacing: -.02em; }
.footer__mark em { font-style: normal; color: var(--accent); }
.footer__meta { font-size: 13px; color: var(--muted-2); display: flex; flex-direction: column; gap: 4px; text-align: right; }

/* ---------- whatsapp fab ---------- */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px;
  background: var(--wa); color: var(--wa-ink); padding: 14px 18px; border-radius: var(--r-pill); font-weight: 600;
  font-size: 15px; box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
}
.wa-fab:hover { color: var(--wa-ink); }
.wa-fab svg { display: block; }
@media (max-width: 999px) { .wa-fab span { display: none; } .wa-fab { padding: 14px; } }

/* ======================================================================
   002 — Immersive first impression (progressive enhancement only)
   ====================================================================== */

/* ---------- hero: 3D stage & video ---------- */
.hero__title .line { display: block; }
.hero__img { transition: opacity 1.2s ease; }
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1s ease;
}
.hero__video.is-live { opacity: .62; }
.hero__stage {
  position: absolute; top: 88px; right: 0; bottom: 200px; width: min(56vw, 860px);
  pointer-events: none; opacity: 0; transform: scale(.96);
  transition: opacity 1.1s ease, transform 1.4s cubic-bezier(.16, 1, .3, 1);
}
.hero__stage canvas { display: block; width: 100%; height: 100%; }
.hero__stage.is-live { opacity: 1; transform: none; }
.hero--3d .hero__img { opacity: .34; }
.hero--3d .hero__stage::before { /* soft halo behind the part */
  content: ""; position: absolute; inset: 12% 14%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(217, 195, 165, .16), transparent 70%);
}
@media (max-width: 999px) {
  /* phones & tablets: the part is shown whole, centred above the headline. Room is reserved
   * only when the head script expects 3D to run (html.can3d), so nothing shifts later. */
  .hero__stage { display: none; }
  .can3d[data-hero-mode="3d"] .hero { --stage: min(72vw, 40vh, 440px); }
  .can3d[data-hero-mode="3d"] .hero__stage {
    display: block; top: 84px; bottom: auto; right: auto;
    left: calc(50% - var(--stage) / 2); width: var(--stage); height: var(--stage);
  }
  .can3d[data-hero-mode="3d"] .hero__inner { padding-top: calc(84px + var(--stage)); }
  .hero--3d .hero__img { opacity: .3; }
}
/* short phones (iPhone SE, 320 × 568…): a smaller part so the hero CTA reaches the first screen (B1).
 * Pure CSS on the viewport height, decided before first paint: no layout shift. */
@media (max-width: 999px) and (max-height: 740px) {
  .can3d[data-hero-mode="3d"] .hero { --stage: min(60vw, 27vh, 300px); }
  .hero__inner { padding-bottom: 32px; }
  .hero__eyebrow { margin-bottom: 16px; }
  .hero__sub { margin: 18px 0 22px; }
}
/* 1000–1279 px: the part and the copy shared the same strip (B14) — narrower stage, shorter
 * measure, and the stats lifted clear of the WhatsApp button. */
@media (min-width: 1000px) and (max-width: 1279px) {
  .hero__stage { width: 46vw; }
  .hero__sub { max-width: 46ch; }
  .hero__inner { padding-bottom: 96px; }
}
.stat__v { font-variant-numeric: tabular-nums; }
.stat__l { margin: 0; }

/* ---------- opening choreography (CSS only; no JS needed to end visible) ----------
   Hero text is the LCP candidate when the photo is slow, so it is never faded from opacity 0:
   lines only settle into place (transform), which keeps them painted from the first frame. */
@keyframes sn-settle { from { transform: translateY(18px); } to { transform: none; } }
@keyframes sn-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__eyebrow,
  .js .hero__title .line,
  .js .hero__sub,
  .js .hero__cta { animation: sn-settle .9s cubic-bezier(.16, 1, .3, 1) both; }
  .js .hero .stats { animation: sn-rise .9s cubic-bezier(.16, 1, .3, 1) both; }
  .js .hero__title .line:nth-child(1) { animation-delay: .04s; }
  .js .hero__title .line:nth-child(2) { animation-delay: .12s; }
  .js .hero__sub { animation-delay: .2s; }
  .js .hero__cta { animation-delay: .26s; }
  .js .hero .stats { animation-delay: .36s; }

  [data-reveal] { transition: opacity .9s ease, transform .9s cubic-bezier(.16, 1, .3, 1); }
  .motion-ready [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(36px); }
}

/* ---------- mobile CTA bar ---------- */
.mbar { display: none; }
@media (max-width: 859px) {
  .wa-fab { display: none; }
  .mbar {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 70;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px;
    background: rgba(20, 20, 20, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid rgba(243, 241, 236, .12); border-radius: 14px; box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
    transition: transform .35s cubic-bezier(.16, 1, .3, 1), opacity .25s ease, visibility 0s linear 0s;
  }
  /* visible from the first screen (B1); hidden only while the visitor types in a form field */
  .js .mbar.is-hidden {
    transform: translateY(calc(100% + 28px)); opacity: 0; visibility: hidden;
    transition: transform .35s ease, opacity .25s ease, visibility 0s linear .35s;
  }
  .menu-open .mbar { opacity: 0; visibility: hidden; } /* the open menu has its own actions */
  .mbar__btn {
    min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px;
    border-radius: 10px; color: var(--on-dark); font-size: 13px; font-weight: 500;
    border: 1px solid rgba(243, 241, 236, .18);
  }
  .mbar__btn:hover { color: var(--on-dark); }
  .mbar__btn--wa { background: var(--wa); color: var(--wa-ink); border-color: transparent; font-weight: 600; }
  .mbar__btn--wa:hover { color: var(--wa-ink); }
  .mbar__btn--accent { background: var(--bg); color: var(--ink); border-color: transparent; font-weight: 600; }
  .mbar__btn--accent:hover { color: var(--ink); }
  .mbar__btn svg { width: 16px; height: 16px; flex: none; }
  .footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .mbar, .hero__stage, .hero__video, .hero__img { transition: none !important; }
}

/* ======================================================================
   003 — Scroll story & liquid before/after (progressive enhancement only)
   ====================================================================== */
.step__body { display: flex; flex-direction: column; gap: 16px; }
.story__stage { display: none; }
@media (min-width: 1000px) {
  .story-on .story {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px;
    align-items: start; margin-top: 24px;
  }
  .story-on .steps { display: block; margin-top: 0; }
  .story-on .step {
    min-height: 72vh; justify-content: center; gap: 20px; opacity: .3;
    transition: opacity .5s ease;
  }
  .story-on .step.is-active { opacity: 1; }
  .story-on .step__img { aspect-ratio: 16 / 10; width: min(100%, 360px); order: 2; }
  .story-on .step__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1; }
  .story-on .step__desc { font-size: 16px; max-width: 420px; }
  .story-on .story__stage {
    display: block; position: sticky; top: 12vh; height: 76vh; border-radius: var(--r-xl); overflow: hidden;
    background: radial-gradient(ellipse at 50% 42%, #2b2722 0%, #161514 62%, #111 100%);
  }
  .story__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s ease; }
  .story__stage.is-live canvas { opacity: 1; }
  .story__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
  .story__photo.is-active { opacity: .8; }
  .story__stage.is-live .story__photo { opacity: 0; }
  .story__caption {
    position: absolute; left: 24px; bottom: 20px; z-index: 2; margin: 0;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sand);
  }
}

.ba__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; transition: opacity .4s ease; }
.ba--liquid .ba__gl { opacity: 1; }
.ba--liquid .ba__handle { background: transparent; }

/* ======================================================================
   004 — Gallery viewer, finish spheres, card tilt
   ====================================================================== */
.gallery__link { display: block; color: inherit; cursor: zoom-in; }
.gallery__link:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(12, 12, 12, .94); color: var(--on-dark);
}
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox__fig { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 64px 72px 28px; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: var(--r-md); touch-action: pan-y; user-select: none; }
.lightbox__bar { display: flex; gap: 18px; align-items: baseline; font-size: 14px; }
.lightbox__count { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--sand); }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(243, 241, 236, .25);
  background: rgba(20, 20, 20, .6); color: var(--on-dark); font-size: 26px; line-height: 1; cursor: pointer;
}
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: var(--on-dark); color: var(--ink); }
.lightbox__btn--close { top: 16px; right: 16px; }
.lightbox__btn--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 599px) {
  .lightbox__fig { padding: 64px 12px 84px; }
  .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: 16px; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: sn-fade .25s ease; }
  ::view-transition-group(sn-photo) { animation-duration: .45s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
}
@keyframes sn-fade { from { opacity: 0; } to { opacity: 1; } }

.svc-sphere { display: inline-flex; width: 28px; height: 28px; margin: -6px 2px -6px -8px; }
.svc-sphere__img { width: 28px; height: 28px; display: block; }
.svc-card__glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .22), transparent 45%); mix-blend-mode: soft-light; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .svc-card[data-tilt] { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.16, 1, .3, 1); will-change: transform; }
  .svc-card[data-tilt].is-tilting { transition: transform .12s linear; }
  .svc-card.is-tilting .svc-card__glare { opacity: 1; }
}

/* ---------- error pages ---------- */
.page-error { min-height: 78vh; display: flex; align-items: center; padding-top: 140px; }
.page-error .lede { color: rgba(243, 241, 236, .72); margin-top: 20px; max-width: 520px; }
.page-error__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }

/* ---------- service & article pages ---------- */
.page-head { padding-top: 140px; }
.page-head__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: var(--s-11); align-items: center;
}
.page-head__text { min-width: 0; }
.page-head__title { max-width: 16ch; overflow-wrap: break-word; hyphens: auto; }
.page-head__intro, .page-head__lede { max-width: 560px; margin-top: 22px; color: rgba(243, 241, 236, .78); font-size: 17px; line-height: 1.6; }
.page-head__intro p { margin: 0 0 12px; }
.page-head .tags { margin-top: 18px; }
.page-head__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.page-head__media { margin: 0; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-2); }
.page-head__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-head--compact { padding-bottom: 72px; }
.page-preview {
  display: inline-block; margin: 0 0 18px; padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--on-dark); font-size: 13px;
}
.page-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; font-family: var(--font-mono); font-size: 12px; color: var(--sand); }

.crumbs { margin-bottom: 22px; }
.crumbs__list { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: 13px; color: rgba(243, 241, 236, .62); }
.crumbs__item + .crumbs__item::before { content: "/"; margin: 0 10px; opacity: .5; }
.crumbs__item a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(243, 241, 236, .3); }
.crumbs__item a:hover { color: var(--on-dark); }
.crumbs__item [aria-current] { color: var(--on-dark); }

.page-body__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-11); align-items: start; }
.prose { max-width: 720px; min-width: 0; font-size: 17px; line-height: 1.7; color: var(--ink-2); overflow-wrap: break-word; }
.prose__sec + .prose__sec { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--divider); }
.prose__sec { scroll-margin-top: 100px; }
.prose__h { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.05; margin: 0 0 16px; text-wrap: balance; }
.prose p { margin: 0 0 14px; text-wrap: pretty; }
.page-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; }
.page-aside__card { background: var(--surface); border: 1px solid var(--divider-2); border-radius: var(--r-lg); padding: 20px 22px; }
.page-aside__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--label); margin: 0 0 12px; }
.page-aside__toc { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.5; display: grid; gap: 6px; color: var(--muted); }
.page-aside__link { display: block; font-size: 15px; line-height: 1.45; padding: 4px 0; }
.page-aside__link + .page-aside__link { border-top: 1px solid var(--divider-2); padding-top: 10px; margin-top: 6px; }
@media (max-width: 959px) {
  .page-body__grid { grid-template-columns: minmax(0, 1fr); }
  .page-aside { position: static; }
}

.page-cta__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-9); }
.page-cta .lede { color: rgba(243, 241, 236, .72); margin-top: 18px; max-width: 520px; }
.page-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-cta__actions .btn--wa { margin-top: 0; align-self: auto; }

.guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.guide-card { position: relative; background: var(--surface); border: 1px solid var(--divider-2); border-radius: var(--r-xl); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.guide-card:hover { border-color: var(--divider); }
.guide-card__date { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); margin: 0; }
.guide-card__title { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.05; margin: 0; }
.guide-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.guide-card__sum { margin: 0; color: var(--muted); line-height: 1.6; }
.guide-card__more { margin-top: auto; font-size: 14px; color: var(--accent); }

.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--divider); }
.footer__link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); }
.footer__nav { gap: 0 24px; padding-bottom: 18px; }
.footer__contact {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; margin-bottom: 28px; padding-bottom: 18px;
  border-bottom: 1px solid var(--divider); font-style: normal; font-size: 14px; color: var(--muted);
}
.footer__contact > span { padding: 12px 0; }
.footer__legal { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; justify-content: flex-end; }
@media (max-width: 599px) {
  .footer__meta { text-align: left; }
  .footer__legal { justify-content: flex-start; }
  .footer__contact { flex-direction: column; align-items: flex-start; }
  .footer__contact > span { padding: 4px 0; }
}

.svc-card__more {
  align-self: flex-start; margin-top: 6px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(0, 0, 0, .25); font-size: 14px; font-weight: 500; color: var(--on-dark);
}
.svc-card__more:hover { background: var(--on-dark); color: var(--ink); }

@media (max-width: 599px) {
  .page-head { padding-top: 116px; }
  .page-head__cta .btn, .page-cta__actions .btn { flex: 1 1 100%; justify-content: center; }
  .prose { font-size: 16px; }
  .guide-card { padding: 22px; }
  .guide-card__title { font-size: 28px; }
}

/* ---------- legal (KVKK) page ---------- */
.legal { margin: 0 auto; }
.legal ul { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 6px; }
.legal code { font-family: var(--font-mono); font-size: .88em; background: var(--bg-2); padding: 1px 6px; border-radius: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal__meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
/* unfilled placeholders stay loud so nobody ships them by accident */
.ph { background: #FFE9A8; color: var(--ink); padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* before/after: honest label while the "after" side is simulated (B4) */
.ba__sim-note {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 8px 12px;
  border: 1px dashed var(--muted-3); border-radius: var(--r-sm); font-size: 13px; color: var(--muted);
}
.ba__sim-note::before { content: "i"; display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--ink); color: var(--on-dark); font: 600 11px/1 var(--font-mono); }

/* ======================================================================
   006 — Cookie consent banner, preferences dialog, cookie register
   ====================================================================== */
/* Shown by the inline <head> script before first paint (html.show-cookie-banner): no layout
   shift, identical HTML for every visitor. No JS → never shown (nothing optional runs). */
.cookie-banner-root { display: none; }
html.show-cookie-banner .cookie-banner-root { display: block; }
.cookie-banner-root {
  position: fixed; z-index: 90; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  width: min(620px, calc(100vw - 40px - 96px)); /* clear of the WhatsApp button on the right */
}
.cc-banner {
  --focus: var(--sand);
  background: var(--ink); color: var(--on-dark); border: 1px solid rgba(243, 241, 236, .14);
  border-radius: var(--r-lg); padding: 20px 22px; box-shadow: 0 14px 40px rgba(0, 0, 0, .32);
}
.cc-banner__title { margin: 0 0 6px; font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.1; }
.cc-banner__text { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--on-dark); }
.cc-banner__link { color: var(--sand); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.cc-banner__link:hover { color: var(--on-dark); }
.cc-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-banner__actions .cc-btn { flex: 1 1 0; }

/* Accept and Necessary-only share one style on purpose: equal weight, no nudging. */
.cc-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px;
  border-radius: var(--r-pill); border: 1px solid transparent; font-size: 15px; font-weight: 500;
  line-height: 1.2; text-align: center; white-space: nowrap;
}
.cc-btn--primary { background: var(--on-dark); color: var(--ink); }
.cc-btn--primary:hover { background: var(--sand); color: var(--ink); }
.cc-btn--ghost { background: transparent; color: var(--on-dark); border-color: rgba(243, 241, 236, .55); }
.cc-btn--ghost:hover { border-color: var(--on-dark); color: var(--on-dark); }
.cc-btn--dark { background: var(--ink); color: var(--on-dark); }
.cc-btn--dark:hover { background: var(--ink-3); color: var(--sand); }

/* the banner replaces the mobile CTA bar while it is open (they would cover each other) */
@media (max-width: 859px) {
  .cookie-banner-root { left: 10px; right: 10px; width: auto; bottom: calc(10px + env(safe-area-inset-bottom)); }
  .show-cookie-banner .mbar { display: none; }
  .cc-banner { padding: 16px; }
  .cc-banner__title { font-size: 22px; }
  .cc-banner__text { font-size: 13.5px; margin-bottom: 12px; }
}
@media (max-width: 420px) {
  .cc-banner__actions .cc-btn { flex: 1 1 calc(50% - 4px); padding: 10px 12px; font-size: 14px; }
  .cc-banner__actions .cc-btn--ghost { flex-basis: 100%; }
}

/* ---------- preferences dialog ---------- */
.cc-dialog {
  width: min(640px, calc(100vw - 24px)); max-height: min(88vh, 860px); padding: 0; border: 0;
  border-radius: var(--r-xl); background: var(--surface); color: var(--ink);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .35); overflow: hidden;
}
.cc-dialog[open] { display: flex; flex-direction: column; }
.cc-dialog::backdrop { background: rgba(20, 20, 20, .6); }
.cc-dialog__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 18px 14px 24px; border-bottom: 1px solid var(--divider-2);
}
.cc-dialog__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.05; }
.cc-dialog__close {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%;
  border: 1px solid var(--divider); background: none; color: var(--ink);
}
.cc-dialog__close:hover { border-color: var(--ink); }
.cc-dialog__body { padding: 18px 24px 8px; overflow-y: auto; overscroll-behavior: contain; }
.cc-dialog__intro { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.cc-dialog__actions {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 24px 18px; border-top: 1px solid var(--divider-2);
}
.cc-dialog__actions .cc-btn { flex: 1 1 0; }
@media (max-width: 520px) {
  .cc-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .cc-dialog__head { padding-left: 16px; }
  .cc-dialog__body { padding: 16px; }
  .cc-dialog__actions { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
  /* necessary-only + accept-all side by side (equal weight), save below */
  .cc-dialog__actions .cc-btn { flex: 1 1 calc(50% - 4px); padding: 10px 12px; font-size: 14px; }
  .cc-dialog__actions [data-cc-save] { order: 1; flex-basis: 100%; }
}

.cc-cat { padding: 14px 0; border-top: 1px solid var(--divider-2); }
.cc-cat:first-of-type { border-top: 0; padding-top: 0; }
.cc-cat__head { display: flex; align-items: center; gap: 12px; }
.cc-cat__title { margin: 0; flex: 1; font-size: 17px; font-weight: 600; }
.cc-cat__always { font-family: var(--font-mono); font-size: 12px; color: var(--label); }
.cc-cat__desc, .cc-cat__note { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.cc-cat__note { padding-left: 10px; border-left: 2px solid var(--sand); }
.cc-cat__details { margin-top: 8px; }
.cc-cat__details summary {
  display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-size: 14px;
  font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 3px;
}

/* switch: 44×44 hit area around a 44×24 track */
.cc-switch {
  position: relative; display: inline-grid; place-items: center; width: 52px; height: 44px; flex: none;
  padding: 0; border: 0; background: none; border-radius: var(--r-pill);
}
.cc-switch__track {
  position: relative; width: 44px; height: 24px; border-radius: var(--r-pill); background: var(--muted-2);
  transition: background-color .2s ease;
}
.cc-switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface); transition: transform .2s ease;
}
.cc-switch[aria-checked="true"] .cc-switch__track { background: var(--accent); }
.cc-switch[aria-checked="true"] .cc-switch__track::after { transform: translateX(20px); }
.cc-switch[aria-disabled="true"] { cursor: not-allowed; }
.cc-switch[aria-disabled="true"] .cc-switch__track { background: var(--label); }
@media (prefers-reduced-motion: reduce) {
  .cc-switch__track, .cc-switch__track::after { transition: none; }
}

/* cookie tables (dialog + KVKK notice) */
.cc-table-wrap { overflow-x: auto; margin: 8px 0 12px; border: 1px solid var(--divider); border-radius: var(--r-sm); }
.cc-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.45; }
.cc-table caption { caption-side: top; text-align: left; padding: 10px 12px 4px; font-weight: 600; font-size: 13px; color: var(--ink); }
.cc-table th, .cc-table td { padding: 8px 12px; text-align: left; vertical-align: top; border-top: 1px solid var(--divider-2); }
.cc-table thead th { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); border-top: 0; }
.cc-table tbody th { font-weight: 500; white-space: nowrap; }
.cc-table td:last-child { white-space: nowrap; }
.cc-table code { font-family: var(--font-mono); font-size: .95em; background: var(--bg-2); padding: 1px 6px; border-radius: 6px; }
@media (max-width: 520px) { .cc-table { min-width: 460px; } }

.cookie-register__cat { margin: 26px 0 8px; font-size: 19px; font-weight: 600; line-height: 1.3; scroll-margin-top: 100px; }
.cookie-register__tag { display: inline-block; margin-left: 6px; font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--label); vertical-align: middle; }
.legal .cc-table { font-size: 14px; }
.prose__h { scroll-margin-top: 100px; }

/* footer "Cookie Preferences": a button with JS, a link to the notice without it */
.footer__cookies { padding: 0; border: 0; background: none; font: inherit; font-size: 14px; }
.no-js .footer__cookies, .js .footer__cookies-nojs { display: none; }
