/* Shared template base. Theme colours and fonts live in style.css */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); margin: 0; line-height: 1.05; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 36px); }
.ico { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.fill { fill: currentColor; stroke: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 999; background: #000; color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
body.no-scroll { overflow: hidden; }
.img-fail { opacity: 0 !important; }
.sample { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.06); color: inherit; opacity: .7; vertical-align: middle; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--btn-r, 999px); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .3s, box-shadow .3s, background .3s, color .3s; white-space: nowrap; }
.btn .ico { font-size: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -12px var(--accent); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 17px; }
.btn-block { width: 100%; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* header */
.hdr { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.hdr .in-bar { display: flex; align-items: center; gap: 20px; height: 76px; }
.hdr nav { display: flex; gap: 6px; margin-left: auto; }
.hdr nav a { padding: 10px 12px; text-decoration: none; font-weight: 600; font-size: 15px; opacity: .85; }
.hdr nav a:hover { opacity: 1; }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: 12px; background: rgba(127,127,127,.12); cursor: pointer; place-items: center; }
.menu-btn .ico { font-size: 22px; }
.mnav { position: fixed; inset: 0; z-index: 90; background: var(--menu-bg, var(--ink)); color: var(--menu-ink, #fff); padding: 90px 24px 30px; display: flex; flex-direction: column; gap: 4px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.mnav.open { opacity: 1; visibility: visible; }
.mnav a { font-family: var(--head); font-size: 34px; text-decoration: none; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.mnav .x { position: absolute; top: 20px; right: 20px; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: inherit; cursor: pointer; display: grid; place-items: center; }
.mnav .x .ico { font-size: 22px; }
.mnav .btn { margin-top: 18px; }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: var(--field-r, 12px); border: 1.5px solid var(--line); background: var(--field-bg, #fff); font-size: 16px; }
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field.err input, .field.err select, .field.err textarea { border-color: #c0392b; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.f-done { display: none; text-align: center; padding: 24px 10px; }
.f-done.show { display: block; }
.f-done .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin: 0 auto 14px; }
.f-done .ok .ico { font-size: 30px; stroke-width: 3; }
.f-done h3 { margin-bottom: 6px; }

/* before/after */
.ba { position: relative; overflow: hidden; border-radius: var(--r, 16px); aspect-ratio: 16 / 10; user-select: none; touch-action: pan-y; cursor: ew-resize; background: #ddd; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba .bar { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.ba .bar span { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.ba .lab { position: absolute; top: 12px; padding: 6px 12px; border-radius: 99px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ba .lab.l { left: 12px; } .ba .lab.r { right: 12px; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 0; cursor: pointer; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { font-size: 22px; transition: transform .3s; flex: none; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; opacity: .8; max-width: 760px; }

/* tabs */
[data-tabs] [role=tabpanel] { display: none; }
[data-tabs] [role=tabpanel].on { display: block; animation: tfade .5s; }
@keyframes tfade { from { opacity: 0; transform: translateY(8px); } }

/* mobile sticky bar */
.mbar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; display: none; gap: 8px; padding: 8px; border-radius: 18px; background: var(--ink); box-shadow: 0 16px 40px -10px rgba(0,0,0,.5); transform: translateY(140%); transition: transform .4s; }
.mbar.show { transform: none; }
.mbar a { flex: 1; min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; font-weight: 700; text-decoration: none; color: var(--bg); font-size: 15px; }
.mbar a.p { background: var(--accent); color: var(--accent-ink); }

@media (max-width: 960px) {
  .hdr nav, .hdr .hdr-cta { display: none; }
  .menu-btn { display: grid; }
  .mbar { display: flex; }
  body { padding-bottom: 80px; }
}
@media (max-width: 640px) { .two { grid-template-columns: 1fr; } body { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } [data-reveal] { opacity: 1; transform: none; } }
