/* ЯTD · version 2 · the bar after dark
   Warm black lacquer, brick-red fields, gold hairline drawings, bone type. */
:root {
  --ink: #0f0c0a; --ink-2: #17120f; --ink-3: #211915; --ink-4: #2c221d;
  --red: #8b2a1d; --red-d: #6e1f15; --red-dd: #561810; --red-l: #a8432d;
  --gold: #d6b06c; --gold-l: #e6c98f; --gold-d: #a88444;
  --bone: #f1e8da; --bone-2: rgba(241, 232, 218, 0.72); --bone-3: rgba(241, 232, 218, 0.5);
  --line: rgba(214, 176, 108, 0.24); --line-2: rgba(214, 176, 108, 0.45); --line-bone: rgba(241, 232, 218, 0.16);
  --f-d: 'Playfair Display', 'DejaVu Serif', Georgia, serif;
  --f-b: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1); --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --gut: clamp(16px, 4vw, 48px); --max: 1280px;
  --sec: clamp(5rem, 11vw, 9.5rem);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--ink-4) var(--ink); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--bone); font: 400 1.0625rem/1.6 var(--f-b); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--gold); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: top 200ms var(--ease); }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.h1 { font: 400 clamp(2.75rem, 6.2vw, 5.75rem)/0.98 var(--f-d); letter-spacing: -0.02em; }
.h1-a { display: block; }
.h1-b { display: block; margin-top: 0.55em; font: 500 clamp(1rem, 1.5vw, 1.2rem)/1.35 var(--f-b); letter-spacing: 0.01em; color: var(--gold); max-width: 44ch; }
.h1--page { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.02; max-width: 18ch; }
.h2 { font: 400 clamp(2rem, 3.8vw, 3.25rem)/1.05 var(--f-d); letter-spacing: -0.015em; }
.h3 { font: 500 1.35rem/1.2 var(--f-d); }
.lede { font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--bone-2); max-width: 46ch; margin: 1.5rem 0 0; }
.lede-s { color: var(--bone-2); max-width: 52ch; margin: 1rem 0 0; }
.tlink { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--gold); font-weight: 500; text-decoration: none; padding-block: 0.4rem; }
.tlink .ic { width: 18px; transition: transform 220ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .tlink:hover .ic { transform: translateX(4px); } .tlink:hover { color: var(--gold-l); } }

/* ---------- buttons ---------- */
.ic { width: 20px; height: 20px; flex: none; }
.btn { --bg: var(--gold); --fg: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 52px; padding: 0 1.5rem; border: 1px solid transparent; border-radius: 999px; background: var(--bg); color: var(--fg); font: 600 1rem/1 var(--f-b); letter-spacing: 0.01em; text-decoration: none; cursor: pointer; transition: transform 160ms var(--ease), background-color 200ms ease, box-shadow 220ms ease, border-color 200ms ease; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(0.97); }
.btn .ic { width: 18px; height: 18px; transition: transform 220ms var(--ease); }
.btn--gold { --bg: var(--gold); --fg: var(--ink); }
.btn--bone { --bg: var(--bone); --fg: var(--red-dd); }
.btn--line { --bg: transparent; --fg: var(--bone); border-color: var(--line-2); }
.btn--sm { min-height: 42px; padding: 0 1.1rem; font-size: 0.94rem; }
@media (hover: hover) and (pointer: fine) {
  .btn--gold:hover { --bg: var(--gold-l); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7); }
  .btn--bone:hover { --bg: #fff8ec; box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.6); }
  .btn--line:hover { border-color: var(--gold); --fg: var(--gold-l); }
  .btn:hover .ic:last-child:not(:first-child) { transform: translateX(3px); }
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- header ---------- */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color 260ms ease, border-color 260ms ease, transform 320ms var(--ease); border-bottom: 1px solid transparent; }
.hd.is-solid { background: rgba(15, 12, 10, 0.86); border-bottom-color: var(--line-bone); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px); }
.hd.is-hidden { transform: translateY(-100%); }
.hd-in { display: flex; align-items: center; gap: 2rem; max-width: var(--max); margin-inline: auto; padding: 0 var(--gut); height: 76px; }
.hd-mark { text-decoration: none; }
.mark { font: 500 1.75rem/1 var(--f-d); letter-spacing: 0.02em; color: var(--bone); white-space: nowrap; }
.mark-r { color: var(--gold); display: inline-block; transition: transform 480ms var(--ease-io); }
@media (hover: hover) and (pointer: fine) { .hd-mark:hover .mark-r { transform: scaleX(-1); } }
.hd-nav { display: flex; gap: 1.6rem; margin-inline: auto; }
.hd-nav a { position: relative; font-size: 0.95rem; color: var(--bone-2); text-decoration: none; padding-block: 0.5rem; transition: color 180ms ease; }
.hd-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.15rem; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease); }
.hd-nav a[aria-current='page'] { color: var(--bone); }
.hd-nav a[aria-current='page']::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .hd-nav a:hover { color: var(--bone); } .hd-nav a:hover::after { transform: scaleX(1); } }
.hd-r { display: flex; align-items: center; gap: 0.9rem; margin-left: auto; }
.hd-nav + .hd-r { margin-left: 0; }
.lang { display: inline-grid; place-items: center; min-width: 42px; height: 42px; border: 1px solid var(--line-bone); border-radius: 999px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; color: var(--bone-2); text-decoration: none; transition: border-color 200ms ease, color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .lang:hover { border-color: var(--gold); color: var(--gold); } }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line-bone); background: transparent; color: var(--bone); place-items: center; cursor: pointer; }
.menu-btn:active { transform: scale(0.95); }
.drawer { position: fixed; inset: 76px 0 0; background: var(--ink); border-top: 1px solid var(--line-bone); padding: 2rem var(--gut) 2.5rem; display: flex; flex-direction: column; overflow-y: auto; }
.drawer[hidden] { display: none; }
.drawer.is-open { animation: drawer-in 320ms var(--ease) both; }
@keyframes drawer-in { from { opacity: 0; transform: translateY(-10px); } }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a { font: 400 clamp(1.9rem, 8vw, 2.6rem)/1.15 var(--f-d); color: var(--bone); text-decoration: none; padding: 0.55rem 0; border-bottom: 1px solid var(--line-bone); }
.drawer-nav a[aria-current='page'] { color: var(--gold); }
.drawer-foot { margin-top: auto; padding-top: 2rem; display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.lang--lg { width: auto; padding: 0 1.2rem; height: 52px; letter-spacing: 0.02em; font-size: 1rem; }
@media (max-width: 1080px) { .hd-nav { display: none; } .menu-btn { display: inline-grid; } .hd-r { margin-left: auto; } }
@media (max-width: 520px) { .hd-cta { display: none; } .hd-in { height: 68px; } .drawer { inset: 68px 0 0; } }
body.menu-open { overflow: hidden; }

/* ---------- drawings ---------- */
.art { width: 100%; height: auto; overflow: visible; }
.ln { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mi-art .ln { stroke-width: 3; } .mi-art .ln.thin { stroke-width: 2.2; }
.phero-art .ln { stroke-width: 1.1; } .phero-art .ln.thin { stroke-width: 0.8; }
.final-art .ln { stroke-width: 2.2; }
.ln.thin { stroke-width: 1; opacity: 0.75; }
.ln.trail { stroke-dasharray: 0.012 0.022; opacity: 0.55; }
.ln.dots { stroke-dasharray: 0.004 0.03; stroke-width: 1.6; opacity: 0.7; }
.ln.spark { stroke-width: 1.2; }
.liquid { fill: var(--red); }
.js [data-draw] .ln:not(.trail):not(.dots) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-io); }
.js [data-draw].is-drawn .ln:not(.trail):not(.dots) { stroke-dashoffset: 0; }
.js [data-draw] .ln:nth-of-type(2n) { transition-delay: 120ms; }
.js [data-draw] .ln:nth-of-type(3n) { transition-delay: 260ms; }
.js [data-draw] .ln.trail, .js [data-draw] .ln.dots, .js [data-draw] .ln.spark { opacity: 0; transition: opacity 900ms ease 900ms; }
.js [data-draw].is-drawn .ln.trail { opacity: 0.55; }
.js [data-draw].is-drawn .ln.dots { opacity: 0.7; }
.js [data-draw].is-drawn .ln.spark { opacity: 1; }

/* hero drawing: glass fills, bottle flips */
.art--hero .fill-rise { transform: translateY(90px); transform-box: fill-box; }
.js .hero-art.is-drawn .fill-rise { transform: translateY(0); transition: transform 2.4s var(--ease-io) 1.1s; }
.no-js .art--hero .fill-rise, html:not(.js) .art--hero .fill-rise { transform: none; }
.art--hero .bottle { transform-box: fill-box; transform-origin: 50% 55%; }
.hero-art.is-drawn .bottle { animation: flip 4.2s var(--ease-io) 2.2s infinite; }
@keyframes flip {
  0%, 30% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-46px) rotate(-200deg); }
  70%, 100% { transform: translateY(0) rotate(-360deg); }
}
.hero-art.is-drawn .spark { animation: twinkle 4.2s ease 2.2s infinite; }
@keyframes twinkle { 0%, 40%, 100% { opacity: 1; } 55% { opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) {
  .js [data-draw] .ln { transition: none !important; stroke-dashoffset: 0 !important; }
  .js [data-draw] .ln.trail, .js [data-draw] .ln.dots, .js [data-draw] .ln.spark { opacity: 1; transition: none; }
  .hero-art .bottle, .hero-art .spark { animation: none !important; }
  .art--hero .fill-rise { transform: none !important; transition: none !important; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(7.5rem, 14vh, 10rem) 0 0; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0 0 auto auto; width: 62vw; height: 92%; background: radial-gradient(ellipse at 70% 40%, rgba(139, 42, 29, 0.34), transparent 62%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; min-height: min(74vh, 760px); }
.hero-art { justify-self: center; width: min(100%, 440px); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; min-height: 0; } .hero-art { order: -1; width: min(44vw, 190px); margin: 0 0 -0.75rem; justify-self: start; } .hero { padding-top: 6.5rem; } }

.starter { margin-top: 2.25rem; max-width: 560px; padding: 1.4rem 1.4rem 1.1rem; border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(180deg, rgba(33, 25, 21, 0.85), rgba(23, 18, 15, 0.85)); }
.starter-l { font: 500 0.86rem/1 var(--f-b); letter-spacing: 0.02em; color: var(--gold); margin-bottom: 1rem; }
.starter-row { display: flex; gap: 0.75rem; margin-top: 1rem; align-items: stretch; }
.starter-g { flex: 1; display: flex; align-items: center; gap: 0.75rem; min-height: 52px; padding: 0 1rem; border: 1px solid var(--line-bone); border-radius: 999px; background: var(--ink); }
.starter-g span { font-size: 0.9rem; color: var(--bone-2); }
.starter-g input { flex: 1; min-width: 0; width: 100%; background: none; border: 0; color: var(--bone); font: 600 1.05rem var(--f-b); text-align: right; outline: none; font-variant-numeric: tabular-nums; }
.starter-g:focus-within { border-color: var(--gold); }
.starter-n { margin: 0.75rem 0 0; font-size: 0.82rem; color: var(--bone-3); }
@media (max-width: 480px) { .starter-row { flex-direction: column; } .starter { padding: 1.1rem; } }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; border: 0; padding: 0; margin: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span, .chip-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line-bone); color: var(--bone-2); font: 500 0.94rem var(--f-b); transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 160ms var(--ease); user-select: none; }
.chip-btn { background: transparent; cursor: pointer; }
.chip input:checked + span, .chip-btn[aria-pressed='true'] { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.chip:active span, .chip-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip:hover input:not(:checked) + span, .chip-btn:hover:not([aria-pressed='true']) { border-color: var(--gold); color: var(--bone); } }

.facts { list-style: none; margin: clamp(3rem, 7vw, 5.5rem) 0 0; padding: 1.6rem 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { padding: 0 1.25rem; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong { display: block; font: 400 1.35rem/1.15 var(--f-d); color: var(--bone); }
.facts span { font-size: 0.92rem; color: var(--bone-2); }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; row-gap: 1.4rem; } .facts li:nth-child(3) { border-left: 0; padding-left: 0; } }

/* ---------- sections ---------- */
.sec { padding-block: var(--sec); }
.sec-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head--row { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }

.manifesto { padding-block: clamp(6rem, 13vw, 11rem) clamp(4rem, 8vw, 7rem); }
.mf-big { font: 400 clamp(2rem, 4.6vw, 4.1rem)/1.12 var(--f-d); letter-spacing: -0.015em; max-width: 22ch; margin: 0; text-wrap: balance; }
.mf-big span + span { color: var(--gold); font-style: italic; }
.mf-row { display: flex; gap: 2rem 4rem; align-items: end; justify-content: space-between; flex-wrap: wrap; margin-top: 2.5rem; padding-left: clamp(0rem, 18vw, 16rem); }
.mf-p { max-width: 48ch; color: var(--bone-2); margin: 0; }
@media (max-width: 720px) { .mf-row { padding-left: 0; } }

/* process carousel on red */
.proc { background: var(--red); color: var(--bone); padding-bottom: clamp(3rem, 6vw, 4.5rem); position: relative; }
.proc .lede-s { color: rgba(241, 232, 218, 0.9); }
.proc .ln { stroke: var(--gold-l); }
.proc-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.proc-ctl { display: flex; align-items: center; gap: 0.6rem; }
.proc-count { font-variant-numeric: tabular-nums; margin-right: 0.6rem; color: rgba(241, 232, 218, 0.9); font-size: 0.95rem; }
.rbtn { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 999px; border: 1px solid rgba(241, 232, 218, 0.35); background: transparent; color: var(--bone); cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease, transform 160ms var(--ease), opacity 180ms ease; }
.rbtn:active { transform: scale(0.95); }
.rbtn:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .rbtn:not(:disabled):hover { background: var(--bone); color: var(--red-d); border-color: var(--bone); } }
.proc-track { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; scroll-padding-inline: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); }
.proc-track::-webkit-scrollbar { display: none; }
.proc-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.proc-track:focus-visible { outline-color: var(--bone); outline-offset: -4px; }
.proc-list { list-style: none; margin: 0; display: flex; gap: clamp(1rem, 2vw, 1.5rem); padding: 0 max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); width: max-content; }
.proc-card { scroll-snap-align: start; width: clamp(270px, 30vw, 380px); min-height: 460px; padding: 1.75rem; display: flex; flex-direction: column; background: var(--red-d); border: 1px solid rgba(241, 232, 218, 0.14); border-radius: 22px; }
.proc-art { width: 150px; height: 150px; margin: -0.5rem 0 auto -0.75rem; }
.proc-n { margin: 2rem 0 0.6rem; font: 400 1rem/1 var(--f-d); color: var(--gold-l); font-variant-numeric: tabular-nums; }
.proc-h { font: 400 1.9rem/1.08 var(--f-d); margin-bottom: 0.75rem; }
.proc-p { margin: 0; color: rgba(241, 232, 218, 0.9); font-size: 1rem; }
.proc-foot { display: flex; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.proc-drag { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; letter-spacing: 0.03em; color: rgba(241, 232, 218, 0.9); }
.proc-drag .ic { width: 16px; }
.proc-bar { flex: 1; height: 1px; background: rgba(241, 232, 218, 0.22); position: relative; overflow: hidden; }
.proc-bar span { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--gold-l); transform-origin: left; transform: scaleX(0.2); transition: transform 300ms var(--ease); }

/* services as a menu card */
.menu-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mi { position: relative; display: grid; grid-template-columns: 88px auto 1fr auto 48px; grid-template-rows: auto auto; column-gap: 1.5rem; align-items: center; padding: 1.75rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.mi-art { grid-row: 1 / 3; width: 88px; height: 88px; opacity: 0.92; transition: transform 500ms var(--ease); }
.mi-name { font: 400 clamp(1.7rem, 3vw, 2.5rem)/1.1 var(--f-d); transition: color 200ms ease; }
.mi-dots { height: 1px; align-self: center; margin-top: 0.5em; background-image: radial-gradient(circle, var(--gold-d) 1px, transparent 1.4px); background-size: 9px 3px; background-repeat: repeat-x; background-position: left center; min-width: 2rem; }
.mi-tag { font: 500 0.95rem var(--f-b); color: var(--gold); white-space: nowrap; }
.mi-desc { grid-column: 2 / 5; color: var(--bone-2); max-width: 60ch; margin-top: 0.4rem; }
.mi-go { grid-row: 1 / 3; grid-column: 5; justify-self: end; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-2); color: var(--gold); transition: background-color 200ms ease, color 200ms ease, transform 300ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .mi:hover .mi-name { color: var(--gold-l); }
  .mi:hover .mi-art { transform: rotate(-4deg) scale(1.04); }
  .mi:hover .mi-go { background: var(--gold); color: var(--ink); transform: translateX(4px); }
}
@media (max-width: 720px) {
  .mi { grid-template-columns: 64px 1fr 40px; column-gap: 1rem; row-gap: 0.2rem; }
  .mi-art { width: 64px; height: 64px; grid-row: 1 / 4; }
  .mi-dots { display: none; }
  .mi-name { grid-column: 2; }
  .mi-tag { grid-column: 2; grid-row: 2; white-space: normal; font-size: 0.9rem; }
  .mi-desc { grid-column: 2 / 4; grid-row: 3; font-size: 0.96rem; }
  .mi-go { grid-column: 3; grid-row: 1 / 3; width: 40px; height: 40px; }
}

/* calculator */
.calc-sec { background: var(--ink-2); border-block: 1px solid var(--line-bone); }
.calc { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); border: 1px solid var(--line-2); border-radius: 26px; overflow: hidden; background: var(--ink); }
.calc-in { padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.75rem; align-content: start; }
.calc-f { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc-f legend, .calc-l { display: flex; justify-content: space-between; align-items: baseline; width: 100%; padding: 0; margin-bottom: 0.8rem; font-size: 0.92rem; color: var(--bone-2); }
.calc-l output { font: 400 1.7rem/1 var(--f-d); color: var(--bone); font-variant-numeric: tabular-nums; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --p: 9%; }
.range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--gold) var(--p), var(--ink-4) var(--p)); border-radius: 2px; }
.range::-moz-range-track { height: 2px; background: var(--ink-4); }
.range::-moz-range-progress { height: 2px; background: var(--gold); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -11px; border-radius: 50%; background: var(--bone); border: 5px solid var(--gold); transition: transform 160ms var(--ease); }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--bone); border: 5px solid var(--gold); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.seg { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.seg label { position: relative; flex: 1 0 auto; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 44px; min-width: 48px; padding: 0 0.7rem; border: 1px solid var(--line-bone); border-radius: 12px; font-weight: 500; color: var(--bone-2); font-variant-numeric: tabular-nums; transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease; }
.seg input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .seg label:hover input:not(:checked) + span { border-color: var(--gold); color: var(--bone); } }
.calc-pair { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem 1rem; align-items: center; }
.calc-pair .calc-l { margin: 0; }
.num { width: 6.5rem; min-height: 44px; padding: 0 0.9rem; border: 1px solid var(--line-bone); border-radius: 12px; background: var(--ink-2); color: var(--bone); font: 600 1rem var(--f-b); text-align: right; font-variant-numeric: tabular-nums; }
.num:focus { outline: none; border-color: var(--gold); }
.check { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 0.7rem; cursor: pointer; color: var(--bone-2); font-size: 0.95rem; }
.check input { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin: 0; border: 1px solid var(--line-2); border-radius: 6px; display: grid; place-items: center; cursor: pointer; transition: background-color 160ms ease; }
.check input::after { content: ''; width: 10px; height: 5px; border: 2px solid var(--ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform 160ms var(--ease); }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.calc-out { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--red); display: flex; flex-direction: column; }
.calc-nums { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1.2rem; }
.cn { margin: 0; padding-top: 1rem; border-top: 1px solid rgba(241, 232, 218, 0.24); }
.cn dt { font-size: 0.9rem; color: rgba(241, 232, 218, 0.9); order: 2; }
.cn dd { margin: 0 0 0.2rem; font: 400 clamp(2.4rem, 4.4vw, 3.6rem)/1 var(--f-d); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.02em; }
.cn { display: flex; flex-direction: column; }
.cn dd { order: 1; }
.cn--lead dd { color: var(--gold-l); }
.cn-sub { order: 3; margin: 0.3rem 0 0; font-size: 0.85rem; color: rgba(241, 232, 218, 0.9); }
.calc-note { margin: auto 0 1.2rem; padding-top: 2rem; font-size: 0.88rem; color: rgba(241, 232, 218, 0.9); }
.calc-send { align-self: flex-start; --bg: var(--bone); --fg: var(--red-dd); }
@media (hover: hover) and (pointer: fine) { .calc-send:hover { --bg: #fff8ec; } }
.bump { animation: bump 360ms var(--ease); }
@keyframes bump { 0% { opacity: 0.4; transform: translateY(4px); } 100% { opacity: 1; transform: none; } }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.calc .seg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calc .seg span { min-width: 0; padding: 0; }
@media (max-width: 520px) { .calc-send { align-self: stretch; } }
.calc-sec--page { background: transparent; border: 0; padding-top: 1rem; }

/* agenda */
.ev-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ev { display: grid; grid-template-columns: 110px 1fr auto; gap: 1.5rem; align-items: center; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.ev-date { text-align: center; padding: 0.7rem 0; border: 1px solid var(--line-2); border-radius: 16px; }
.ev-day { display: block; font: 400 2.4rem/1 var(--f-d); font-variant-numeric: lining-nums; }
.ev-mon { display: block; font-size: 0.82rem; letter-spacing: 0.08em; color: var(--gold); text-transform: uppercase; margin-top: 0.3rem; }
.ev-h { font: 400 1.55rem/1.15 var(--f-d); margin: 0 0 0.35rem; }
.ev-meta { margin: 0; color: var(--bone-2); font-size: 0.95rem; }
.ev-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 0.7rem; border-radius: 999px; font-size: 0.8rem; font-weight: 500; border: 1px solid var(--line-2); color: var(--gold); }
.tag--sample { border-color: rgba(241, 232, 218, 0.3); color: var(--bone-2); border-style: dashed; }
.ev-act { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: end; }
.ev-act .btn { min-height: 44px; font-size: 0.92rem; padding: 0 1.1rem; }
.ev-note { margin: 1.25rem 0 0; font-size: 0.85rem; color: var(--bone-3); }
.ev-empty { padding: 2.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ev-filter { margin-bottom: 2rem; }
@media (max-width: 760px) { .ev { grid-template-columns: 76px 1fr; } .ev-day { font-size: 1.9rem; } .ev-act { grid-column: 1 / -1; justify-content: start; } }

/* areas */
.areas { border-top: 1px solid var(--line-bone); }
.areas-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem 4rem; }
.isl { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.6rem; align-content: start; }
.isl li { font: 400 clamp(1.5rem, 2.6vw, 2.2rem)/1.3 var(--f-d); }
.isl li:first-child { color: var(--gold); }
.towns { grid-column: 2; margin: 0; color: var(--bone-3); font-size: 0.95rem; }
@media (max-width: 860px) { .areas-grid { grid-template-columns: 1fr; } .towns { grid-column: 1; } }

/* faq */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2.5rem 5rem; align-items: start; }
.faq-grid .h2 { position: sticky; top: 110px; max-width: 14ch; }
.faq-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.4rem 0; cursor: pointer; font: 400 1.3rem/1.3 var(--f-d); transition: color 180ms ease; }
.qa summary::-webkit-details-marker { display: none; }
.ic-plus { width: 22px; height: 22px; color: var(--gold); transition: transform 300ms var(--ease); }
.qa[open] .ic-plus { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .qa summary:hover { color: var(--gold-l); } }
.qa-a p { margin: 0; padding: 0 3rem 1.6rem 0; color: var(--bone-2); max-width: 62ch; }
.qa::details-content { block-size: 0; overflow: clip; transition: block-size 360ms var(--ease), content-visibility 360ms allow-discrete; }
.qa[open]::details-content { block-size: auto; }
html { interpolate-size: allow-keywords; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .h2 { position: static; } .qa summary { font-size: 1.15rem; } }

/* final call */
.final { background: var(--red); text-align: center; position: relative; overflow: hidden; }
.final-in { display: flex; flex-direction: column; align-items: center; }
.final-art { width: 92px; margin-bottom: 1.5rem; }
.final-art .ln { stroke: var(--gold-l); }
.final-h { font: 400 clamp(2.8rem, 7vw, 6rem)/1 var(--f-d); letter-spacing: -0.02em; }
.final-p { max-width: 46ch; margin: 1.25rem auto 0; color: rgba(241, 232, 218, 0.86); font-size: 1.1rem; }
.final .actions { justify-content: center; }
.final .btn--line { border-color: rgba(241, 232, 218, 0.45); }
@media (hover: hover) and (pointer: fine) { .final .btn--line:hover { border-color: var(--bone); --fg: var(--bone); background: rgba(0, 0, 0, 0.12); } }

/* ---------- inner pages ---------- */
.phero { position: relative; padding: clamp(8rem, 15vh, 10rem) 0 0; overflow: hidden; }
.phero::before { content: ''; position: absolute; right: -10vw; top: 0; width: 60vw; height: 100%; background: radial-gradient(ellipse at 60% 40%, rgba(139, 42, 29, 0.3), transparent 60%); pointer-events: none; }
.phero--slim { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.phero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 3rem; align-items: center; }
.phero-art { width: min(100%, 320px); justify-self: center; }
.phero-art--mark { display: grid; place-items: center end; width: auto; justify-self: end; }
.mark--xl { font-size: clamp(5rem, 11vw, 9.5rem); letter-spacing: 0; }
@media (max-width: 860px) { .phero-grid { grid-template-columns: 1fr; } .phero-art { order: -1; width: 170px; justify-self: start; } .phero-art--mark { width: auto; justify-self: start; } .mark--xl { font-size: 5rem; } }
.crumbs ol { list-style: none; display: flex; gap: 0.6rem; margin: 0 0 1.5rem; padding: 0; font-size: 0.88rem; color: var(--bone-3); }
.crumbs li + li::before { content: '/'; margin-right: 0.6rem; color: var(--gold-d); }
.crumbs a { color: var(--bone-2); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

.incl-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2.5rem 5rem; align-items: start; }
.card-menu { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.card-menu li { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: baseline; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.cm-a { font: 400 1.45rem/1.2 var(--f-d); }
.cm-b { color: var(--gold); font-size: 0.96rem; text-align: right; }
@media (max-width: 860px) { .incl-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .card-menu li { grid-template-columns: 1fr; gap: 0.2rem; } .card-menu .mi-dots { display: none; } .cm-b { text-align: left; } }

.moments { background: var(--ink-2); border-block: 1px solid var(--line-bone); }
.mo-list { list-style: none; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.mo-list li { padding: 0 clamp(1rem, 2.5vw, 2.25rem); border-left: 1px solid var(--line); }
.mo-list li:first-child { border-left: 0; padding-left: 0; }
.mo-n { font: 400 1rem/1 var(--f-d); color: var(--gold); }
.mo-list h3 { font: 400 1.9rem/1.1 var(--f-d); margin: 1.1rem 0 0.7rem; }
.mo-list p { color: var(--bone-2); margin: 0; }
@media (max-width: 860px) { .mo-list { grid-template-columns: 1fr; gap: 2rem; } .mo-list li { border-left: 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); } }

.calc-strip { padding-block: clamp(3rem, 6vw, 4.5rem); }
.calc-strip-in { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; flex-wrap: wrap; padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line-2); border-radius: 22px; }
.calc-strip-in p { margin: 0; max-width: 56ch; font: 400 1.35rem/1.35 var(--f-d); }
.svc--other { border-top: 1px solid var(--line-bone); }
.svc--other .h2 { margin-bottom: 2.5rem; }

.about-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 3rem 5rem; }
.about-body p { font-size: 1.18rem; line-height: 1.65; color: var(--bone-2); max-width: 60ch; }
.about-body p:first-child { font: 400 clamp(1.5rem, 2.4vw, 2rem)/1.35 var(--f-d); color: var(--bone); max-width: 32ch; margin-bottom: 1.5em; }
.about-side .h3 { margin: 0 0 1rem; color: var(--gold); }
.about-side .h3 + p { color: var(--bone-2); }
.about-side p + .h3, .team + .h3 { margin-top: 2.5rem; }
.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.team li { display: flex; align-items: center; gap: 1rem; color: var(--bone-2); }
.team strong { color: var(--bone); font-weight: 600; }
.team-i { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font: 400 1.6rem var(--f-d); color: var(--gold); }
.base { background: var(--ink-2); border-block: 1px solid var(--line-bone); }
.base-in { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 2rem 3rem; align-items: center; }
.base-addr { font-style: normal; display: flex; gap: 0.9rem; color: var(--bone-2); line-height: 1.5; }
.base-addr strong { color: var(--bone); }
.base-addr .ic { color: var(--gold); margin-top: 3px; }
@media (max-width: 860px) { .about-grid, .base-in { grid-template-columns: 1fr; } }

/* quote form */
.qf-sec { padding-top: 0; }
.qf-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: 2.5rem 4rem; align-items: start; }
.qf { display: grid; gap: 1.6rem; }
.qf-f { border: 0; margin: 0; padding: 0; }
.qf-f legend { padding: 0; margin-bottom: 0.8rem; font-size: 0.95rem; color: var(--bone-2); }
.qf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: grid; gap: 0.5rem; }
.field > span { font-size: 0.95rem; color: var(--bone-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 0.8rem 1rem; border: 1px solid var(--line-bone); border-radius: 14px; background: var(--ink-2); color: var(--bone); font: 400 1rem var(--f-b); transition: border-color 180ms ease, background-color 180ms ease; }
.field input, .field select { height: 52px; }
.field textarea { resize: vertical; min-height: 120px; }
.qf-row { align-items: start; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23d6b06c' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--bone-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background-color: var(--ink-3); }
.field input[type='date'] { color-scheme: dark; }
.field small { font-size: 0.82rem; color: var(--bone-3); }
.field.is-bad input { border-color: #e0806b; }
.err { font-style: normal; font-size: 0.86rem; color: #f0a08e; }
.chip--check span::before { content: ''; width: 0; height: 0; margin-right: 0; transition: width 160ms var(--ease), margin 160ms var(--ease); }
.chip--check input:checked + span::before { width: 7px; height: 7px; margin-right: 0.5rem; border-radius: 50%; background: var(--red); }
.qf-ready { margin: 0; color: var(--gold); }
.qf-sum { position: sticky; top: 100px; display: grid; gap: 1.25rem; }
.qf-sum-in { padding: 1.75rem; border: 1px solid var(--line-2); border-radius: 22px; background: var(--red); }
.qf-sum-in .h3 { margin-bottom: 1.2rem; }
.sum { margin: 0; display: grid; gap: 0.75rem; }
.sum div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; padding-bottom: 0.7rem; border-bottom: 1px solid rgba(241, 232, 218, 0.2); }
.sum dt { color: rgba(241, 232, 218, 0.9); font-size: 0.9rem; }
.sum dd { margin: 0; overflow-wrap: anywhere; }
.sum-empty { margin: 0; color: rgba(241, 232, 218, 0.9); }
.sum-note { margin: 1.25rem 0 0; font-size: 0.86rem; color: rgba(241, 232, 218, 0.9); }
.qf-direct { padding: 1.5rem 1.75rem; border: 1px solid var(--line-bone); border-radius: 22px; display: grid; gap: 0.8rem; }
.qf-direct .h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.qf-direct a { display: flex; align-items: center; gap: 0.75rem; color: var(--bone-2); text-decoration: none; }
.qf-direct a .ic { color: var(--gold); }
.qf-direct a:hover { color: var(--bone); }
@media (max-width: 960px) { .qf-grid { grid-template-columns: 1fr; } .qf-sum { position: static; } }
@media (max-width: 560px) { .qf-row { grid-template-columns: 1fr; } }

.legal-in { max-width: 72ch; }
.legal-in .h3 { margin: 2rem 0 0.6rem; color: var(--gold); }
.legal-in p { color: var(--bone-2); }

/* ---------- footer ---------- */
.ft { padding: clamp(4rem, 8vw, 6rem) 0 2rem; border-top: 1px solid var(--line-bone); }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 2.5rem; }
.ft-mark { text-decoration: none; display: inline-block; margin-bottom: 1rem; }
.ft-mark .mark { font-size: 2.6rem; }
.ft-brand p { color: var(--bone-2); max-width: 34ch; font-size: 0.96rem; }
.ft-h { font: 500 0.85rem var(--f-b); letter-spacing: 0.08em; color: var(--gold); margin-bottom: 1rem; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.ft ul a, .ft-link { color: var(--bone-2); text-decoration: none; font-size: 0.96rem; }
.ft ul a:hover, .ft-link:hover { color: var(--bone); text-decoration: underline; }
.ft-addr { color: var(--bone-2); font-size: 0.96rem; line-height: 1.55; margin-bottom: 0.6rem; }
.ft-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-bone); font-size: 0.85rem; color: var(--bone-3); }
.ft-base p { margin: 0; }
.ft-base a { color: var(--bone-2); text-decoration: none; }
.ft-base a:hover { color: var(--bone); }
@media (max-width: 900px) { .ft-grid { grid-template-columns: 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ft-grid { grid-template-columns: 1fr; } }

.fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); box-shadow: 0 14px 32px -12px rgba(0, 0, 0, 0.7); transition: transform 220ms var(--ease), opacity 220ms ease; }
.fab .ic { width: 26px; height: 26px; }
.fab:active { transform: scale(0.94); }
.js .fab { opacity: 0; transform: translateY(16px); pointer-events: none; }
.js .fab.is-on { opacity: 1; transform: none; pointer-events: auto; }
body[data-page='quote'] .fab { display: none; }
