/* Instalatérství Kapka – ukázkový web (Weby od Marka) */
:root {
  /* barva firmy: změňte tyto tři řádky a celý web se přebarví */
  --brand: #0b5c57;
  --brand-press: #084642;
  --brand-soft: #dcebe8;

  --paper: #f6f7f5;
  --white: #ffffff;
  --surface: #e9eeec;
  --ink: #0f1e1d;
  --muted: #45524f;
  --line: #c3cfcb;
  --alarm: #b8321c;
  --alarm-soft: #fdebe6;
  --demo-red: #d92d20;

  --m: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --gap: clamp(88px, 12vw, 176px);

  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);
  --step-ui: 1.375rem;
  --step-lead: clamp(1.375rem, 1.1rem + 1.2vw, 2.125rem);
  --step-head: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dock-h: 0px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-body)/1.55 "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; font-stretch: 112%; }
h2 { font-size: var(--step-head); }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
::selection { background: var(--brand); color: var(--white); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
button, a, label, [role="button"] { touch-action: manipulation; }
button, .btn, .tile, .seg span { -webkit-user-select: none; user-select: none; }
[hidden] { display: none !important; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--m); }
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: 8px; }
.skip:focus { top: 8px; }
.opt { font-weight: 400; color: var(--muted); }

/* buttons: one shape (full round), one fill */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--brand); color: var(--white);
  font: 700 var(--step-body)/1.1 "Archivo", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 44px; padding: 0 20px; }
.btn--big { min-height: 60px; padding: 0 30px; }
.btn--wide { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--alarm { background: var(--alarm); margin-top: 14px; }
.btn__num { font-weight: 500; opacity: .85; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--brand-press); }
  .btn--ghost:hover { background: var(--ink); color: var(--white); }
  .btn--alarm:hover { background: #962714; }
}

/* demo strip */
.strip { background: var(--ink); color: #d7e1df; font-size: var(--step-small); }
.strip__in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-block: 8px; }
.strip__txt { flex: 1 1 260px; }
@media (max-width: 560px) { .strip__txt { flex-basis: 100%; } .strip__in { gap: 4px 10px; } .price-pill { padding: 8px 10px; } }
.strip__back { color: var(--white); font-weight: 600; white-space: nowrap; padding-block: 6px; }
.price-pill {
  font: 700 0.875rem/1 "Archivo", sans-serif; color: var(--white); background: var(--demo-red);
  border: 0; border-radius: 999px; padding: 9px 14px; min-height: 34px; cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 160ms ease;
}
.price-pill:active { transform: scale(0.96); }
.price-pill:focus-visible { outline-color: var(--white); }
@media (hover: hover) and (pointer: fine) { .price-pill:hover { background: #b42318; } }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: var(--paper); transition: box-shadow 200ms ease; }
.top.is-stuck { box-shadow: 0 6px 18px -12px rgba(15, 30, 29, .35); }
.top__in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: var(--step-body); letter-spacing: -0.01em; white-space: nowrap; }
.logo svg { width: 26px; height: 26px; fill: var(--brand); }
.top__nav { display: flex; gap: 26px; margin-left: auto; }
.top__nav a { text-decoration: none; font-weight: 600; padding-block: 10px; }
.top__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; min-height: 44px; }
@media (hover: hover) and (pointer: fine) { .top__nav a:hover, .top__phone:hover { color: var(--brand); } }
@media (max-width: 1000px) { .top__nav { display: none; } .top__phone { margin-left: auto; } }
@media (max-width: 560px) {
  .top__in { gap: 10px; min-height: 60px; }
  .top__cta { display: none; }
  .top__phone { width: 44px; justify-content: center; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
  .top__phone span { display: none; }
}

/* hero */
.hero { padding-block: clamp(20px, 4vw, 48px) clamp(56px, 8vw, 112px); overflow: hidden; }
.hero__title { display: block; letter-spacing: 0; line-height: 1; }
.hero__trade { display: block; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.01em; font-stretch: 100%; color: var(--muted); }
.hero__name {
  display: block; width: max-content; white-space: nowrap; color: var(--brand);
  font-size: clamp(5rem, 26vw, 22rem); font-weight: 900; font-stretch: 125%;
  letter-spacing: -0.045em; line-height: 0.86; margin: 0.04em 0 0 -0.04em;
  transform-origin: 0 100%;
}
.hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px 64px; margin-top: clamp(28px, 4vw, 56px); align-items: end; }
.hero__promise { font-size: var(--step-lead); font-weight: 600; line-height: 1.22; letter-spacing: -0.015em; max-width: 24ch; text-wrap: balance; }
.hero__area { margin-top: 18px; color: var(--ink); max-width: 44ch; }
.hero__act { display: grid; gap: 14px; justify-items: start; }
.status { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; min-height: 28px; }
.status__dot { width: 12px; height: 12px; border-radius: 50%; background: #8a9693; flex: none; }
.status.is-open .status__dot { background: #1f9d55; position: relative; }
.status.is-open .status__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #1f9d55; animation: live 2.4s var(--ease-out) 1.2s infinite; }
@keyframes live { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
.status.is-closed .status__dot { background: #c27b12; }
.hero__reply { display: inline-flex; align-items: center; gap: 10px; }
.hero__reply .ic { color: var(--brand); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; gap: 22px; }
  .hero__btns { display: grid; width: 100%; }
  .hero__btns .btn { width: 100%; }
}
@media (max-width: 420px) { .btn__num { display: none; } }

/* ── motion ─────────────────────────────────────────────
   Obsah je vidět i bez JS: skrývá se až pod třídou .will-reveal, kterou přidá app.js.
   Úvod (data-load) je čisté CSS, takže doběhne i když skript selže. */

/* úvod stránky: hlavička, pak písmena „Kapka“, pak text a tlačítka (vše do ~1,3 s) */
.js [data-load] { animation: load-up 640ms var(--ease-out) var(--d, 0ms) backwards; }
.js .strip__in[data-load], .js .top__in[data-load] { animation-name: load-down; animation-duration: 480ms; }
@keyframes load-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes load-down { from { opacity: 0; transform: translateY(-8px); } }
.hero__name .ch { display: inline-block; animation: letter-up 760ms var(--ease-out) calc(180ms + var(--i) * 55ms) backwards; }
@keyframes letter-up { from { opacity: 0; transform: translateY(0.28em) rotate(4deg); } }

/* bloky při posunu */
.will-reveal [data-reveal]:not([data-reveal="mask"]):not([data-reveal="foot"]) { opacity: 0; transform: translateY(24px); }
[data-reveal] { transition: opacity 560ms var(--ease-out), transform 680ms var(--ease-out); transition-delay: var(--rd, 0ms); }
[data-reveal].in { opacity: 1 !important; transform: none !important; }

/* nadpisy sekcí vyjedou zpoza okraje */
.mask { display: block; overflow: hidden; padding: 0.14em 0 0.1em; margin: -0.14em 0 -0.1em; }
.mask__in { display: block; transition: transform 760ms var(--ease-out) var(--rd, 0ms); }
.will-reveal [data-reveal="mask"]:not(.in) .mask__in { transform: translateY(110%); }

/* seznamy: položky po jedné */
[data-stagger] > * { transition: opacity 480ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms); }
.will-reveal [data-stagger]:not(.in) > * { opacity: 0; transform: translateY(16px); }
.will-reveal .svc__list:not(.in) > * { transform: translateX(-28px); }
.will-reveal .rows:not(.in) > * { transform: translateX(-36px); }
.will-reveal .rev__stars:not(.in) > * { transform: scale(0.5) rotate(-30deg); }
.rev__stars > * { transition-delay: calc(300ms + var(--i, 0) * 70ms); }
.will-reveal .work__tabs:not(.in) > * { transform: translateY(10px) scale(0.96); }
/* ceník: řádky se „dotisknou“ a tečky dojedou k ceně */
.pgroup > .prow { transition-delay: calc(120ms + var(--i, 0) * 45ms); }
.prow__dots { transform-origin: 0 50%; transition: transform 700ms var(--ease-out) calc(260ms + var(--i, 0) * 45ms); }
.will-reveal .pgroup:not(.in) .prow__dots { transform: translateY(-5px) scaleX(0); }
.will-reveal .sheet[data-reveal]:not(.in) { transform: translateY(48px) rotate(-1.5deg); }
.sheet[data-reveal] { transition-duration: 600ms, 900ms; }

/* mapa: řeky se nakreslí, obce „kápnou“ od Prahy na východ */
.map .river { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1400ms var(--ease-out) 150ms; }
.will-reveal .map:not(.in) .river { stroke-dashoffset: 1; }
.map .town { transition: opacity 360ms var(--ease-out), transform 520ms cubic-bezier(0.34, 1.56, 0.64, 1); transition-delay: calc(450ms + var(--i, 0) * 60ms); transform-box: fill-box; }
.will-reveal .map:not(.in) .town { opacity: 0; transform: translateY(-18px); }

/* patička: velký nápis se zvedne zespodu */
.foot__mark { transition: transform 900ms var(--ease-out); }
.will-reveal .foot__mark:not(.in) { transform: translateY(45%); }

/* request form */
.req { background: var(--white); padding-block: var(--gap); }
.req__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
.req__lead { font-size: var(--step-lead); line-height: 1.3; margin-top: 18px; max-width: 30ch; }
.form { margin-top: 44px; display: grid; gap: 44px; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step__t { display: flex; align-items: center; gap: 12px; padding: 0; font-weight: 800; font-size: var(--step-ui); letter-spacing: -0.01em; margin-bottom: 16px; }
.step__n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--white); font-size: var(--step-body); flex: none; }
.hint { color: var(--muted); margin-bottom: 14px; max-width: 56ch; }
.form__end .hint { margin: 12px 0 0; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile { position: relative; display: block; cursor: pointer; }
.tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tile__box {
  display: grid; align-content: space-between; gap: 18px; min-height: 120px; height: 100%;
  padding: 16px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line);
  font-weight: 700; line-height: 1.2;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}
.tile__box .ic { width: 34px; height: 34px; color: var(--brand); }
.tile:active .tile__box { transform: scale(0.97); }
.tile input:checked + .tile__box { background: var(--brand); color: var(--white); box-shadow: inset 0 0 0 2px var(--brand); }
.tile input:checked + .tile__box .ic { color: var(--white); }
.tile input:focus-visible + .tile__box { outline: 3px solid var(--brand); outline-offset: 3px; }
.tile--alarm .tile__box .ic { color: var(--alarm); }
.tile--alarm input:checked + .tile__box { background: var(--alarm); box-shadow: inset 0 0 0 2px var(--alarm); }
.tile__tick { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--white); color: var(--brand); display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity 160ms ease, transform 200ms var(--ease-out); }
.tile__tick .ic { width: 16px; height: 16px; stroke-width: 3; }
.tile--alarm .tile__tick { color: var(--alarm); }
.tile input:checked ~ .tile__tick { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .tile:hover .tile__box { box-shadow: inset 0 0 0 2px var(--ink); } .tile input:checked + .tile__box { box-shadow: inset 0 0 0 2px var(--brand); } }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile__box { min-height: 96px; gap: 12px; padding: 14px; } }

.alarm { display: flex; gap: 14px; margin-top: 16px; padding: 18px; border-radius: 14px; background: var(--alarm-soft); color: #5e1608; box-shadow: inset 0 0 0 2px #f3b7a8; }
.alarm > .ic { color: var(--alarm); width: 30px; height: 30px; }
.alarm__t { font-weight: 800; margin-bottom: 4px; }
.alarm:not([hidden]) { animation: pop-in 260ms var(--ease-out); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px); } }

.photo { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.photo__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo__pick { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); font-weight: 700; cursor: pointer; transition: transform 140ms var(--ease-out), box-shadow 160ms ease; }
.photo__pick .ic { color: var(--brand); }
.photo__pick:active { transform: scale(0.97); }
.photo__input:focus-visible + .photo__prev, .photo__input:focus-visible ~ .photo__pick { outline: 3px solid var(--brand); }
.photo:focus-within .photo__pick { box-shadow: inset 0 0 0 2px var(--brand); }
@media (hover: hover) and (pointer: fine) { .photo__pick:hover { box-shadow: inset 0 0 0 2px var(--ink); } }
.photo__prev { position: relative; margin: 0; }
.photo__prev img { width: 160px; height: 120px; object-fit: cover; border-radius: 12px; background: var(--surface); }
.photo__prev:not([hidden]) { animation: pop-in 240ms var(--ease-out); }
.photo__rm { position: absolute; top: -12px; right: -12px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--white); background: var(--ink); color: var(--white); display: grid; place-items: center; cursor: pointer; }
.photo__rm .ic { width: 18px; height: 18px; }

.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field label, .field__l { font-weight: 700; }
input:not([type]), input[list], textarea {
  width: 100%; font: 400 var(--step-body)/1.4 "Archivo", sans-serif; color: var(--ink);
  background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; min-height: 54px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
textarea { resize: vertical; min-height: 104px; }
input::placeholder, textarea::placeholder { color: #5c6a67; }
input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
[aria-invalid="true"] { border-color: var(--alarm) !important; }
.err { color: var(--alarm); font-weight: 600; margin-top: 8px; }
.field .err { margin-top: 0; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 52px; padding: 6px 8px; text-align: center; line-height: 1.15; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); font-weight: 600; cursor: pointer; transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 140ms var(--ease-out); }
.seg label:active span { transform: scale(0.97); }
.seg input:checked + span { background: var(--ink); color: var(--white); box-shadow: inset 0 0 0 2px var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 3px; }

.done { margin-top: 44px; padding: clamp(24px, 4vw, 40px); border-radius: 18px; background: var(--brand-soft); }
.done:focus { outline: none; }
.done:not([hidden]) { animation: pop-in 300ms var(--ease-out); }
.done__t { display: flex; gap: 12px; align-items: center; font-size: var(--step-lead); letter-spacing: -0.02em; margin-bottom: 10px; }
.done:not([hidden]) .done__t .ic { stroke-dasharray: 24; animation: tick-draw 420ms var(--ease-out) 160ms backwards; }
@keyframes tick-draw { from { stroke-dashoffset: 24; } }
.done__t .ic { width: 40px; height: 40px; padding: 7px; border-radius: 50%; background: var(--brand); color: var(--white); stroke-width: 3; }
.done .btn { margin-top: 20px; }

/* ticket (zakázkový list) */
.ticket { position: sticky; top: 96px; }
.ticket__paper {
  position: relative; background: var(--paper); padding: 30px 26px 34px; overflow: hidden;
  clip-path: polygon(0 8px, 4% 0, 8% 8px, 12% 0, 16% 8px, 20% 0, 24% 8px, 28% 0, 32% 8px, 36% 0, 40% 8px, 44% 0, 48% 8px, 52% 0, 56% 8px, 60% 0, 64% 8px, 68% 0, 72% 8px, 76% 0, 80% 8px, 84% 0, 88% 8px, 92% 0, 96% 8px, 100% 0, 100% 100%, 0 100%);
}
.ticket__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 800; font-size: var(--step-ui); letter-spacing: -0.01em; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.ticket__no { font-weight: 500; font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.ticket__rows { margin: 0; }
.ticket__rows div { display: grid; grid-template-columns: 82px 1fr; gap: 12px; padding: 13px 0; border-bottom: 2px dotted var(--line); }
.ticket__rows dt { color: var(--muted); font-size: var(--step-small); padding-top: 2px; }
.ticket__rows dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.ticket__rows dd.flash { animation: ink-in 360ms var(--ease-out); }
@keyframes ink-in { from { opacity: .2; transform: translateX(-4px); } }
.ticket__foot { margin-top: 16px; font-size: var(--step-small); color: var(--muted); }
.ticket__stamp {
  position: absolute; right: 18px; bottom: 34px; padding: 6px 14px; border: 4px solid var(--brand); border-radius: 8px;
  color: var(--brand); font-weight: 900; font-size: var(--step-ui); letter-spacing: .02em; font-stretch: 112%;
  transform: rotate(-12deg) scale(1.4); opacity: 0; pointer-events: none;
  transition: opacity 180ms ease, transform 320ms var(--ease-out);
}
.ticket.is-sent .ticket__stamp { opacity: .9; transform: rotate(-12deg) scale(1); }
@media (max-width: 1060px) {
  .req__grid { grid-template-columns: 1fr; gap: 40px; }
  .ticket { position: static; display: none; }
  .ticket.is-sent { display: block; }
}

/* services: poster list */
.svc { padding-block: var(--gap); }
.svc__list { list-style: none; margin: clamp(32px, 5vw, 64px) 0 0; padding: 0; }
.svc__item { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px 48px; align-items: baseline; padding-block: clamp(14px, 1.6vw, 22px); }
.svc__item { position: relative; }
.svc__item + .svc__item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--surface); transform-origin: 0 50%; transition: transform 800ms var(--ease-out) calc(var(--i, 0) * 55ms + 100ms); }
.will-reveal .svc__list:not(.in) .svc__item::before { transform: scaleX(0); }
.svc__name { font-size: var(--step-head); font-weight: 800; font-stretch: 112%; letter-spacing: -0.035em; line-height: 1; transition: color 200ms ease; overflow-wrap: anywhere; }
.svc__text { max-width: 44ch; }
.svc__item--alarm .svc__name { color: var(--alarm); }
@media (hover: hover) and (pointer: fine) { .svc__item:hover .svc__name { color: var(--brand); } .svc__item--alarm:hover .svc__name { color: #8f2412; } }
@media (max-width: 760px) { .svc__item { grid-template-columns: 1fr; } }

/* price sheet */
.price { background: var(--brand); padding-block: var(--gap); }
.sheet {
  max-width: 680px; margin: 0 auto; background: var(--paper); padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 56px);
  --z: 10px;
  clip-path: polygon(0 var(--z), 2.5% 0, 5% var(--z), 7.5% 0, 10% var(--z), 12.5% 0, 15% var(--z), 17.5% 0, 20% var(--z), 22.5% 0, 25% var(--z), 27.5% 0, 30% var(--z), 32.5% 0, 35% var(--z), 37.5% 0, 40% var(--z), 42.5% 0, 45% var(--z), 47.5% 0, 50% var(--z), 52.5% 0, 55% var(--z), 57.5% 0, 60% var(--z), 62.5% 0, 65% var(--z), 67.5% 0, 70% var(--z), 72.5% 0, 75% var(--z), 77.5% 0, 80% var(--z), 82.5% 0, 85% var(--z), 87.5% 0, 90% var(--z), 92.5% 0, 95% var(--z), 97.5% 0, 100% var(--z),
    100% calc(100% - var(--z)), 97.5% 100%, 95% calc(100% - var(--z)), 92.5% 100%, 90% calc(100% - var(--z)), 87.5% 100%, 85% calc(100% - var(--z)), 82.5% 100%, 80% calc(100% - var(--z)), 77.5% 100%, 75% calc(100% - var(--z)), 72.5% 100%, 70% calc(100% - var(--z)), 67.5% 100%, 65% calc(100% - var(--z)), 62.5% 100%, 60% calc(100% - var(--z)), 57.5% 100%, 55% calc(100% - var(--z)), 52.5% 100%, 50% calc(100% - var(--z)), 47.5% 100%, 45% calc(100% - var(--z)), 42.5% 100%, 40% calc(100% - var(--z)), 37.5% 100%, 35% calc(100% - var(--z)), 32.5% 100%, 30% calc(100% - var(--z)), 27.5% 100%, 25% calc(100% - var(--z)), 22.5% 100%, 20% calc(100% - var(--z)), 17.5% 100%, 15% calc(100% - var(--z)), 12.5% 100%, 10% calc(100% - var(--z)), 7.5% 100%, 5% calc(100% - var(--z)), 2.5% 100%, 0 calc(100% - var(--z)));
}
.sheet h2 { text-align: center; }
.sheet__sub { text-align: center; color: var(--muted); margin: 14px auto 0; max-width: 40ch; }
.pgroup { margin-top: 44px; }
.pgroup h3 { font-size: var(--step-ui); letter-spacing: -0.01em; font-stretch: 100%; margin-bottom: 6px; }
.prow { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 0 8px; padding-top: 16px; }
.prow__n { font-weight: 600; }
.prow__dots { border-bottom: 3px dotted #a9b6b2; transform: translateY(-5px); min-width: 16px; }
.prow__v { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prow__d { grid-column: 1 / -1; color: var(--muted); font-size: var(--step-small); max-width: 40ch; }
@media (max-width: 420px) { .prow { grid-template-columns: 1fr auto; } .prow__dots { display: none; } .prow__v { padding-left: 12px; } }

/* area map */
.area { padding-block: var(--gap); }
.area__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 32px 64px; align-items: center; }
.area__lead { font-size: var(--step-lead); line-height: 1.3; margin-top: 18px; max-width: 26ch; }
.area__places { list-style: none; margin: 32px 0 0; padding: 0; columns: 2; column-gap: 24px; }
.area__places li { display: flex; align-items: center; gap: 10px; padding-block: 6px; break-inside: avoid; font-weight: 600; }
.area__places li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: none; }
.map { margin: 0; }
.map svg { width: 100%; height: auto; background: var(--surface); border-radius: 18px; }
.map figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.map .town circle { fill: var(--brand); transition: transform 200ms var(--ease-out); transform-box: fill-box; transform-origin: center; }
.map .town text { font: 600 15px "Archivo", sans-serif; fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 5px; stroke-linejoin: round; }
.map .town.is-hot circle { transform: scale(1.6); }
@media (max-width: 600px) { .map .town text { font-size: 22px; stroke-width: 6px; } .map .town.minor text { display: none; } .map .prg text { font-size: 28px; } }
.map .prg text { font: 800 22px "Archivo", sans-serif; fill: #8a9a96; letter-spacing: .02em; }
@media (max-width: 860px) { .area__grid { grid-template-columns: 1fr; } }

/* before / after */
.work { background: var(--ink); color: var(--white); padding-block: var(--gap); }
.work__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px; }
.work__head p { color: #c4d1ce; max-width: 36ch; }
.work__tabs { display: flex; gap: 8px; margin: 32px 0 18px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin-inline: -4px; }
.work__tabs::-webkit-scrollbar { display: none; }
.work__tab { flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: #22312f; color: #dfe8e6; font: 600 var(--step-body) "Archivo", sans-serif; cursor: pointer; transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out); }
.work__tab:active { transform: scale(0.97); }
.work__tab[aria-selected="true"] { background: var(--white); color: var(--ink); }
.work__tab:focus-visible { outline-color: var(--white); }
@media (hover: hover) and (pointer: fine) { .work__tab:hover:not([aria-selected="true"]) { background: #2f403d; } }
.ba { --pos: 50%; position: relative; aspect-ratio: 8 / 5; overflow: hidden; border-radius: 18px; background: #22312f; touch-action: pan-y; cursor: ew-resize; -webkit-user-select: none; user-select: none; }
.ba__img { position: absolute; inset: 0; }
.ba__img svg { width: 100%; height: 100%; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--white); pointer-events: none; }
.ba__handle span { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 3px var(--ink); transition: transform 160ms var(--ease-out); }
.ba__handle span::before, .ba__handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -7px; border: 7px solid transparent; }
.ba__handle span::before { left: 8px; border-right-color: var(--ink); }
.ba__handle span::after { right: 8px; border-left-color: var(--ink); }
.ba.is-drag .ba__handle span { transform: scale(1.1); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; pointer-events: none; }
.ba:focus-within { outline: 3px solid var(--white); outline-offset: 4px; }
.ba__tag { position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(15, 30, 29, .82); color: var(--white); font-weight: 700; font-size: var(--step-small); pointer-events: none; }
.ba__tag--b { left: 14px; }
.ba__tag--a { right: 14px; background: var(--white); color: var(--ink); }
.ba svg.swap { animation: fade-in 260ms var(--ease-out); }
@keyframes fade-in { from { opacity: 0; } }
@media (max-width: 600px) { .ba { aspect-ratio: 5 / 4; } }
.work__cap { margin-top: 16px; color: #c4d1ce; min-height: 1.55em; }
.drip { animation: drip 1.8s cubic-bezier(0.55, 0, 1, 0.45) infinite; }
@keyframes drip { 0%, 30% { transform: translateY(0); opacity: 1; } 85% { transform: translateY(105px); opacity: 1; } 100% { transform: translateY(110px); opacity: 0; } }

/* reviews */
.rev { padding-block: var(--gap); }
.rev__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; }
.rev__score { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.rev__stars { display: inline-flex; color: #e3a008; }
.rev__stars .ic { width: 22px; height: 22px; }
.rev__demo { color: var(--muted); }
.rev__grid { display: grid; grid-template-columns: 5fr 7fr; margin-top: 40px; }
.quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(24px, 4vw, 48px); }
.quote p { font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.01em; font-weight: 500; max-width: 26ch; text-indent: -0.4em; }
.quote footer { font-weight: 700; }
.quote footer span { display: block; font-weight: 400; opacity: .8; }
.quote:nth-child(1) { grid-row: span 2; background: var(--brand); color: var(--white); min-height: 420px; }
.quote:nth-child(2) { background: var(--brand-soft); }
.quote:nth-child(3) { background: var(--surface); }
@media (max-width: 760px) { .rev__grid { grid-template-columns: 1fr; } .quote:nth-child(1) { grid-row: auto; min-height: 0; } }

/* contact rows */
.contact { padding-block: var(--gap) 0; }
.contact__h { margin-bottom: clamp(28px, 4vw, 48px); }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; padding-block: clamp(18px, 3vw, 34px); padding-inline: max(var(--m), calc((100% - var(--max)) / 2 + var(--m))); text-decoration: none; }
.rows li:nth-child(odd) .row { background: var(--surface); }
.rows li:nth-child(even) .row { background: var(--white); }
.row__k { width: 120px; flex: none; color: var(--muted); font-weight: 600; }
.row__v { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; font-stretch: 108%; overflow-wrap: anywhere; min-width: 0; font-variant-numeric: tabular-nums; }
.row__v small { display: block; font-size: var(--step-body); font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: 8px; font-stretch: 100%; }
a.row { transition: background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { a.row:hover .row__v { color: var(--brand); } }
.rows li:last-child .row { background: var(--brand); color: var(--white); align-items: center; justify-content: space-between; }
.row__arrow { display: grid; place-items: center; width: clamp(56px, 6vw, 84px); height: clamp(56px, 6vw, 84px); border-radius: 50%; background: var(--white); color: var(--brand); transition: transform 200ms var(--ease-out); }
.row__arrow .ic { width: 50%; height: 50%; stroke-width: 2.5; }
@media (hover: hover) and (pointer: fine) { a.row--go:hover .row__v { color: var(--white); } a.row--go:hover .row__arrow { transform: translateX(6px); } }
.row--go:active .row__arrow { transform: scale(0.94); }
@media (max-width: 640px) { .row { flex-direction: column; gap: 6px; } .row--go { flex-direction: row; } .row__k { width: auto; font-size: var(--step-small); } }

/* footer */
.foot { background: var(--ink); color: #cfdad7; overflow: hidden; padding-top: 48px; padding-bottom: var(--dock-h); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }
.foot a { color: var(--white); }
.foot strong { color: var(--white); }
.foot__mark { font-size: clamp(5rem, 26vw, 22rem); font-weight: 900; font-stretch: 125%; letter-spacing: -0.045em; line-height: .8; color: #2b8c84; margin: 40px 0 0 -0.04em; white-space: nowrap; width: max-content; height: .68em; overflow: hidden; }

/* phone dock */
.dock { display: none; }
@media (max-width: 760px) {
  :root { --dock-h: calc(68px + env(safe-area-inset-bottom)); }
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--paper); box-shadow: 0 -8px 24px -16px rgba(15, 30, 29, .45);
    transition: transform 260ms var(--ease-drawer);
  }
  .dock a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform 140ms var(--ease-out); }
  .dock a:active { transform: scale(0.97); }
  .dock__call { background: var(--brand); color: var(--white); }
  .dock__req { box-shadow: inset 0 0 0 2px var(--ink); }
  .dock.is-hidden, .dock.is-away { transform: translateY(110%); visibility: hidden; transition: transform 260ms var(--ease-drawer), visibility 0s 260ms; }
}

/* demo toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--dock-h) + 16px); z-index: 60; max-width: calc(100vw - 32px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--white); padding: 14px 20px; border-radius: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(15, 30, 29, .3); transition: opacity 200ms ease, transform 260ms var(--ease-out); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* price pop-up */
.pp { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 22px; background: var(--white); color: var(--ink); box-shadow: 0 24px 60px rgba(15, 30, 29, .3); }
.pp::backdrop { background: rgba(10, 22, 21, .6); }
.pp[open] { animation: pp-in 240ms var(--ease-out); }
@keyframes pp-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.pp__in { position: relative; padding: 28px 24px 24px; display: grid; gap: 14px; }
.pp__x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .pp__x:hover { background: var(--surface); color: var(--ink); } }
.pp h2:focus { outline: none; }
.pp h2 { font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.02em; padding-right: 40px; }
.pp h2 span { color: var(--brand); white-space: nowrap; }
.pp__list { list-style: none; margin: 0; padding: 16px 18px; display: grid; gap: 8px; background: var(--brand-soft); border-radius: 14px; }
.pp__list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; line-height: 1.35; }
.pp__list .ic { width: 20px; height: 20px; color: var(--brand); stroke-width: 3; margin-top: 1px; }
.pp__note { color: var(--muted); line-height: 1.45; }
.pp__note strong { color: var(--ink); }
.pp__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.pp__btns .btn { flex: 1 1 180px; }

.nojs { padding: 16px var(--m); }

@media (prefers-reduced-motion: reduce) {
  .will-reveal [data-reveal], .will-reveal[data-reveal], .will-reveal [data-stagger] > *, .will-reveal .sheet[data-reveal]:not(.in) { transform: none !important; }
  [data-reveal], [data-stagger] > * { transition: opacity 300ms ease; transition-delay: 0ms; }
  .js [data-load] { animation: fade-in 300ms ease backwards; }
  .hero__name .ch { animation: none; }
  .mask__in, .will-reveal [data-reveal="mask"]:not(.in) .mask__in, .foot__mark, .will-reveal .foot__mark:not(.in) { transform: none; transition: none; }
  .prow__dots, .will-reveal .pgroup:not(.in) .prow__dots, .svc__item::before, .will-reveal .svc__list:not(.in) .svc__item::before { transform: none; transition: none; }
  .map .river, .will-reveal .map:not(.in) .river { stroke-dashoffset: 0; transition: none; }
  .map .town, .will-reveal .map:not(.in) .town { transform: none; transition: opacity 300ms ease; }
  .status.is-open .status__dot::after, .done:not([hidden]) .done__t .ic { animation: none; }
  .drip { animation: none; }
  .hero__name { transform: none !important; }
  .pp[open] { animation: pp-fade 180ms ease-out; }
  @keyframes pp-fade { from { opacity: 0; } }
  .alarm:not([hidden]), .photo__prev:not([hidden]), .done:not([hidden]) { animation: none; }
  .ticket__rows dd.flash { animation: none; }
  .ticket__stamp { transition: opacity 180ms ease; transform: rotate(-12deg); }
}
