/* ===================================================== base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display), "Golos Text", serif; font-weight: var(--dw); font-style: var(--ds); letter-spacing: var(--dls); }
h3 { letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

:root {
  --gut: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}
main > .sec, .hero, .foot { width: min(100% - var(--gut) * 2, var(--max)); margin-inline: auto; }

/* ===================================================== buttons */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--accent { --bg: var(--accent); --fg: var(--accent-ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { --bg: var(--accent-ink); --fg: var(--accent); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--wide { width: 100%; }
.link-btn {
  background: none; border: 0; padding: 4px 0; cursor: pointer; font-weight: 500; color: var(--accent);
  border-bottom: 1px solid currentColor; line-height: 1.2;
}
.round-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.round-btn svg { width: 22px; height: 22px; }
.round-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.round-btn:disabled { opacity: .35; pointer-events: none; }
.chip { display: inline-flex; padding: 8px 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; text-decoration: none; font-size: 15px; }
.chip:hover { background: rgba(255,255,255,.12); }

/* ===================================================== nav */
.nav {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gut); transition: background-color .3s, box-shadow .3s;
}
.nav.is-scrolled { background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display), "Golos Text", serif; font-weight: var(--dw); font-style: var(--ds); font-size: 21px; line-height: 1; letter-spacing: var(--dls); text-decoration: none; }
.logo-mark { width: 16px; height: 22px; border-radius: 50%; background: var(--accent); position: relative; transform: rotate(28deg); flex: none; }
.logo-mark::after { content: ""; position: absolute; left: 50%; top: 3px; bottom: 3px; width: 6px; margin-left: -3px; border: 2px solid var(--paper); border-color: transparent var(--paper) transparent transparent; border-radius: 50%; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-phone-m { display: none; }
.nav-end { display: flex; align-items: center; gap: 18px; }
.nav-phone { text-decoration: none; font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger svg { width: 24px; height: 24px; }

/* ===================================================== hero */
.hero { padding-top: clamp(28px, 6vh, 72px); }
.hero-title { font-size: clamp(38px, 7.2vw, 104px); line-height: 1; letter-spacing: var(--dls); }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--d) * 110ms + 80ms); }
.is-ready .hero-title .ln > span { transform: none; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 48px; margin-top: clamp(22px, 4vh, 40px); flex-wrap: wrap; }
.hero-sub { max-width: 46ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-row, .stats { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease) .5s, transform .9s var(--ease) .5s; }
.is-ready .hero-row, .is-ready .stats { opacity: 1; transform: none; }

.hero-visual { margin-top: clamp(28px, 5vh, 56px); }
.measure { position: relative; height: 34px; display: grid; place-items: center; }
.measure-line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform 1.2s var(--ease) .65s; }
.measure-line::before, .measure-line::after { content: ""; position: absolute; top: -8px; width: 1px; height: 17px; background: var(--ink); }
.measure-line::before { left: 0; } .measure-line::after { right: 0; }
.measure::before, .measure::after { /* arrow heads */
  content: ""; position: absolute; top: 50%; width: 9px; height: 9px; border: solid var(--ink); border-width: 0 0 1px 1px;
  opacity: 0; transition: opacity .4s 1.6s;
}
.measure::before { left: 1px; transform: translateY(-50%) rotate(45deg); }
.measure::after { right: 1px; transform: translateY(-50%) rotate(-135deg); }
.measure-label { position: relative; background: var(--paper); padding: 0 16px; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .6s 1.3s; }
.is-ready .measure-line { transform: scaleX(1); }
.is-ready .measure-label, .is-ready .measure::before, .is-ready .measure::after { opacity: 1; }

.hero-panel { position: relative; margin-top: 14px; height: clamp(320px, 58vh, 640px); border-radius: var(--r-lg); overflow: hidden; background: #2a211c; isolation: isolate; }
.hero-video, .hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-fallback { background: radial-gradient(120% 90% at 70% 10%, var(--accent-soft), var(--surface)); }
.hero-tint { position: absolute; inset: 0; background: var(--accent); mix-blend-mode: multiply; opacity: var(--tint); pointer-events: none; }
.slats { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(9, 1fr); z-index: 2; pointer-events: none; }
.slats span { background: var(--paper); transform-origin: 50% 0; transition: transform 1s var(--ease); transition-delay: calc(450ms + var(--i) * 70ms); margin-bottom: -1px; }
.is-ready .slats span { transform: scaleY(0); }
.is-ready .slats { visibility: hidden; transition: visibility 0s 2.4s; }
.hero-badge {
  position: absolute; left: 20px; bottom: 20px; z-index: 1; padding: 10px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 80%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px; font-weight: 500;
}

.stats { display: grid; grid-template-columns: repeat(var(--n), 1fr); margin: 0; padding: 32px 0 8px; }
.stat { padding: 0 24px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat dt { font-family: var(--font-display), "Golos Text", serif; font-weight: var(--dw); font-style: var(--ds); font-size: clamp(32px, 4vw, 56px); line-height: 1; letter-spacing: var(--dls); font-variant-numeric: tabular-nums; }
.stat dd { margin: 10px 0 0; color: var(--muted); font-size: 15px; max-width: 24ch; }

/* ===================================================== sections */
.sec { padding-block: clamp(72px, 11vw, 150px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 20px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-title { font-size: clamp(30px, 4.2vw, 58px); line-height: 1.04; }
.sec-sub { color: var(--muted); max-width: 52ch; font-size: clamp(16px, 1.25vw, 18px); }
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
.svc { display: flex; flex-direction: column; }
.svc-img { aspect-ratio: var(--ratio, 4 / 3); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc:hover .svc-img img { transform: scale(1.045); }
.svc-body { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; flex: 1; }
.svc h3 { font-size: 21px; line-height: 1.2; }
.svc p { color: var(--muted); font-size: 16px; }
.svc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.svc-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.svc--lead { grid-column: span 2; grid-row: span 2; }
.svc--lead .svc-img { aspect-ratio: auto; flex: 1; min-height: 360px; }
.svc--lead .svc-img img { object-position: 50% 40%; }
.svc--lead h3 { font-size: clamp(24px, 2.4vw, 32px); }
.svc--lead .svc-body { flex: none; }

/* process */
.track { display: flex; gap: 6px; margin-bottom: 40px; }
.track-seg { flex: var(--w) 1 0; min-width: 56px; position: relative; padding-top: 34px; }
.track-bar { position: absolute; left: 0; right: 0; top: 0; height: 22px; border-radius: 6px; background: var(--accent-soft); overflow: hidden; }
.track-bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease); transition-delay: calc(var(--i) * 260ms); }
.track.is-in .track-bar::after { transform: scaleX(1); }
.track-num { position: absolute; left: 8px; top: 3px; z-index: 1; font-size: 12px; font-weight: 600; line-height: 16px; color: var(--accent-ink); opacity: 0; transition: opacity .3s; transition-delay: calc(var(--i) * 260ms + 300ms); }
.track.is-in .track-num { opacity: 1; }
.track-dur { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px 24px; }
.step { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.step-num { font: 600 14px/1 "Golos Text", sans-serif; color: var(--accent); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 19px; }
.step p { color: var(--muted); font-size: 15.5px; }
.step-dur { font-size: 14px; font-weight: 500; margin-top: auto; }

/* works rail */
.rail-nav { display: flex; gap: 10px; }
.rail {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
  margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scroll-padding-inline: var(--gut);
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail.is-drag .work { pointer-events: none; }
.work { flex: 0 0 clamp(270px, 42vw, 620px); margin: 0; scroll-snap-align: start; }
.work-img { aspect-ratio: 7 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.work-img img { width: 100%; height: 100%; object-fit: cover; user-select: none; }
.work figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; flex-wrap: wrap; }
.work figcaption strong { font-weight: 500; }
.work figcaption span { color: var(--muted); font-size: 15px; }
.rail-progress { height: 2px; background: var(--line); margin-top: 32px; border-radius: 2px; overflow: hidden; }
.rail-progress span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(.2); transition: transform .15s linear; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(min(var(--n), 3), minmax(0, 1fr)); gap: 20px; }
.plan { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line-strong); border-radius: var(--r-lg); }
.plan h3 { font-size: 18px; }
.plan-price { font-family: var(--font-display), "Golos Text", serif; font-weight: var(--dw); font-style: var(--ds); font-size: clamp(34px, 3.6vw, 48px); line-height: 1; letter-spacing: var(--dls); }
.plan-note { color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; margin: 10px 0 18px; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; font-size: 16px; }
.plan li svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 2px; }
.plan .btn { margin-top: auto; }
.plan--featured { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.plan--featured .plan-note { color: inherit; opacity: .75; }
.plan--featured ul { border-color: color-mix(in srgb, var(--accent-ink) 25%, transparent); }
.plan--featured li svg { color: inherit; }

/* reviews */
.reviews { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px 64px; }
.rev-side { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.rev-nav { display: flex; align-items: center; gap: 16px; }
.rev-count { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 52px; text-align: center; }
.rev-count b { color: var(--ink); font-weight: 600; }
.rev-stage { display: grid; }
.rev { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .55s var(--ease), transform .55s var(--ease), visibility 0s .55s; }
.rev.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.rev p { font-family: var(--font-display), "Golos Text", serif; font-weight: 400; font-style: var(--ds); font-size: clamp(22px, 2.5vw, 34px); line-height: 1.3; letter-spacing: var(--dls); }
.rev p::before { content: "«"; } .rev p::after { content: "»"; }
.rev footer { margin-top: 28px; display: flex; flex-direction: column; gap: 2px; }
.rev footer span { color: var(--muted); font-size: 15px; }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px 64px; align-items: start; }
.faq-list { border-top: 1px solid var(--line-strong); }
.qa { border-bottom: 1px solid var(--line-strong); }
.qa-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; background: none; border: 0; cursor: pointer; text-align: left; font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; }
.qa-q svg { width: 24px; height: 24px; flex: none; transition: transform .35s var(--ease); }
.qa-q[aria-expanded="true"] svg { transform: rotate(45deg); }
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.qa-a > div { overflow: hidden; }
.qa-a p { color: var(--muted); padding-bottom: 24px; max-width: 62ch; }
.qa.is-open .qa-a { grid-template-rows: 1fr; }

/* contact */
.contact-panel { position: relative; overflow: hidden; border-radius: var(--r-lg); background: #17181b; color: #F2F2F0; isolation: isolate; }
.contact-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .9; }
.contact-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(14,15,18,.75), rgba(14,15,18,.2)); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 40px 64px; padding: clamp(28px, 5vw, 72px); align-items: start; }
.contact .sec-sub { color: rgba(242,242,240,.75); margin-top: 18px; }
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; margin: 40px 0 0; }
.contact-list dt { font-size: 14px; color: rgba(242,242,240,.6); }
.contact-list dd { margin: 4px 0 0; font-weight: 500; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.chips { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.contact .lead-form { background: var(--surface); color: var(--ink); border-radius: var(--r-md); padding: clamp(20px, 2.6vw, 32px); }

/* ===================================================== forms */
.lead-form { min-width: 0; container-type: inline-size; }
.lf-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; max-width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--paper); transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.is-invalid input { border-color: #d0342c; box-shadow: 0 0 0 3px rgba(208,52,44,.12); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { color: #d0342c; font-size: 14.5px; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.is-sending .spinner { display: inline-block; }
.is-sending .btn-label { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }
.lf-success { text-align: center; padding: 24px 8px; display: grid; justify-items: center; gap: 12px; }
.lf-success:focus { outline: none; }
.lf-success h3 { font-size: 24px; }
.lf-success p { color: var(--muted); max-width: 34ch; }
.done-mark { width: 72px; height: 72px; margin-bottom: 6px; }
.done-mark circle { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw .7s var(--ease) forwards; }
.done-mark path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s var(--ease) .55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* modal */
.modal { position: fixed; padding: 0; border: 0; margin: auto; background: transparent; color: var(--ink); width: min(640px, calc(100% - 24px)); max-width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: visible; }
.modal::backdrop { background: rgba(10, 12, 18, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[open] { animation: pop .45s var(--ease); }
.modal[open]::backdrop { animation: fade .35s ease; }
@keyframes pop { from { opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.modal-box { position: relative; width: 100%; min-width: 0; background: var(--surface); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 40px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-gutter: stable; }
.modal h2 { font-size: clamp(24px, 3vw, 30px); padding-right: 52px; overflow-wrap: anywhere; }
.modal h2:focus { outline: none; }
.modal-text { color: var(--muted); margin: 10px 0 24px; }
.modal-box.is-done > h2, .modal-box.is-done > .modal-text { display: none; }
.modal-close { position: absolute; z-index: 3; top: 14px; right: 14px; width: 44px; height: 44px; background: var(--surface); }

/* footer */
.foot { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 24px 48px; align-items: start; padding: 56px 0 48px; margin-top: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); }
.foot-brand p { color: var(--muted); margin-top: 14px; max-width: 44ch; font-size: 15px; }
.foot-contacts { display: grid; gap: 6px; font-size: 15px; }
.foot-contacts a { text-decoration: none; }
.foot-copy { color: var(--muted); font-size: 14px; }

.mbar { display: none; }

/* ===================================================== responsive */
@media (max-width: 1080px) {
  .nav-links { gap: 18px; }
  .nav-phone { display: none; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc--lead { grid-row: auto; }
  .svc--lead .svc-img { aspect-ratio: 16 / 9; min-height: 0; flex: none; }
  .contact-inner { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr auto; }
  .sec-head .sec-sub { grid-column: 1; grid-row: 2; }
  .sec-head .rail-nav { grid-row: 1 / span 2; grid-column: 2; align-self: end; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav-end { margin-left: auto; gap: 8px; }
  .nav-end .btn { display: none; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 8px; padding: 80px var(--gut) 40px;
    background: var(--paper); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
  }
  .nav-links a { font-family: var(--font-display), "Golos Text", serif; font-weight: var(--dw); font-style: var(--ds); font-size: 30px; line-height: 1.3; color: var(--ink); letter-spacing: var(--dls); }
  .nav-links .nav-phone-m { display: block; font: 500 18px/1.4 "Golos Text", sans-serif; margin-top: 24px; color: var(--muted); }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav.is-open { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
  .reviews, .faq { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; padding-bottom: 110px; }
  .mbar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; display: flex; gap: 10px;
    padding: 8px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0,0,0,.14), 0 0 0 1px var(--line);
    transform: translateY(140%); transition: transform .45s var(--ease);
  }
  .mbar .round-btn { background: var(--paper); }
  .mbar.is-shown { transform: none; }
  .track-dur { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .svc-grid { grid-template-columns: 1fr; gap: 40px; }
  .svc--lead { grid-column: auto; }
  .stats { grid-template-columns: 1fr; gap: 18px; }
  .stat, .stat:first-child { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat dd { margin-top: 6px; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1; }
  .hero-panel { height: 340px; }
  .measure-label { font-size: 13px; padding: 0 10px; }
  .contact-list { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-head .rail-nav { display: none; }
  .work { flex-basis: 82vw; }
  .rev-side { gap: 20px; }
  .reviews .rev-nav { order: 2; }
}

/* preview (inside admin) */
.is-preview .mbar { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .slats { display: none; }
}

/* ===================================================== cafe additions */
.field-row { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(76px, .45fr); align-items: start; gap: 12px; }
.field-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field input[type="date"], .field input[type="time"] { min-width: 0; }
.is-dark .field input, .is-dark .field select, .is-dark .field textarea { color-scheme: dark; }
.contact .lead-form .field input, .contact .lead-form .field select, .contact .lead-form .field textarea { background: var(--paper); }

.map-sec { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 32px 56px; align-items: stretch; }
.map-card { display: flex; flex-direction: column; gap: 22px; padding-top: 8px; }
.map-info { display: grid; gap: 16px; margin: 6px 0 0; }
.map-info dt { font-size: 14px; color: var(--muted); }
.map-info dd { margin: 4px 0 0; font-size: 18px; font-weight: 500; }
.map-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.map-box { position: relative; min-height: 440px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.map { position: absolute; inset: 0; }
.map .leaflet-container, .map.leaflet-container { font: inherit; background: var(--surface); }
.map .leaflet-tile-pane { filter: grayscale(.55) sepia(.18) contrast(.98); }
.is-dark .map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) grayscale(.6) sepia(.25) brightness(.85) contrast(.95); }
.map .leaflet-control-attribution { background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--muted); font-size: 11px; }
.map .leaflet-control-attribution a { color: inherit; }
.map .leaflet-bar a { background: var(--surface); color: var(--ink); border-color: var(--line); }
.map-pin { width: 44px; height: 44px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--accent); box-shadow: 0 8px 22px rgba(0,0,0,.28); display: grid; place-items: center; }
.map-pin::after { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-ink); }
.map-hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 500; padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 80%, transparent); color: var(--paper); font-size: 13.5px; pointer-events: none; opacity: 0; transition: opacity .3s; }
.map-hint.is-on { opacity: 1; }

/* style-specific accents */
.style-retro .sec-title, .style-retro .hero-title { text-transform: none; }
.style-retro .btn { border-radius: 4px; }
.style-retro .hero-panel, .style-retro .svc-img, .style-retro .work-img { box-shadow: 6px 6px 0 var(--accent); }
.style-retro .plan { border-width: 2px; border-color: var(--ink); }
.style-matcha .btn { border-radius: 999px; }
.style-nordic .btn { border-radius: 10px; }
.style-nordic .sec-title, .style-nordic .hero-title { font-weight: 600; }

@media (max-width: 860px) {
  .map-sec { grid-template-columns: 1fr; }
  .map-box { min-height: 340px; }
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row .field:first-child { grid-column: 1 / -1; }
  .field-row--2 { grid-template-columns: minmax(0, 1fr); }
  .field-row--2 .field:first-child { grid-column: auto; }
}

/* ===================================================== logo image */
.logo-img { height: 34px; width: auto; max-width: 160px; object-fit: contain; display: block; }
.foot .logo-img { height: 40px; }

/* ===================================================== pickers (date / time / select) */
.pick { position: relative; min-width: 0; }
.pick select { position: absolute; inset: 0; opacity: 0; pointer-events: none; width: 100%; }
.pick-btn {
  width: 100%; min-width: 0; min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px 10px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--paper);
  color: var(--ink); cursor: pointer; text-align: left; transition: border-color .2s, box-shadow .2s;
}
.pick-btn:hover { border-color: color-mix(in srgb, var(--ink) 55%, transparent); }
.pick-btn:focus-visible, .pick-btn[aria-expanded="true"] { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pick-btn svg { width: 20px; height: 20px; flex: none; color: var(--muted); transition: transform .25s var(--ease); }
.pick[data-pick="select"] .pick-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.pick-val { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.pick-val.is-ph { color: var(--muted); }
.field.is-invalid .pick-btn { border-color: #d0342c; box-shadow: 0 0 0 3px rgba(208,52,44,.12); }

.pop {
  position: fixed; z-index: 2000; min-width: min(220px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 30px 70px -18px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.08); padding: 14px;
  font: 400 15px/1.4 "Golos Text", system-ui, sans-serif; animation: pop-in .2s var(--ease);
}
.pop.is-up { animation-name: pop-in-up; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes pop-in-up { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.pop-backdrop { display: none; }
.pop button { font: inherit; color: inherit; }

/* calendar */
.cal { width: 304px; max-width: 100%; }
.cal-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.cal-title { flex: 1; font-family: var(--font-display), serif; font-weight: var(--dw); font-style: var(--ds); font-size: 18px; letter-spacing: var(--dls); text-transform: none; padding-left: 4px; }
.cal-nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; cursor: pointer; }
.cal-nav:hover:not(:disabled) { background: var(--accent-soft); border-color: transparent; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-nav svg { width: 18px; height: 18px; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-week span { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0 6px; font-weight: 500; }
.cal-week span:nth-child(n+6) { color: var(--accent); }
.cal-day {
  aspect-ratio: 1; border: 0; border-radius: min(var(--r-sm), 12px); background: transparent; cursor: pointer;
  font-variant-numeric: tabular-nums; font-weight: 500; position: relative; transition: background-color .15s, color .15s;
}
.cal-day:hover:not(:disabled) { background: var(--accent-soft); }
.cal-day:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cal-day.is-out { visibility: hidden; }
.cal-day:disabled { color: var(--muted); opacity: .35; cursor: default; }
.cal-day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.cal-day.is-sel { background: var(--accent); color: var(--accent-ink); }
.cal-day.is-sel::after { background: var(--accent-ink); }
.pop-foot { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.chip-btn { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-weight: 500; font-size: 14px; }
.chip-btn:hover { border-color: var(--accent); color: var(--accent); }

/* time slots */
.slots { width: 300px; max-width: 100%; }
.slots-title { font-size: 13px; color: var(--muted); margin: 0 2px 10px; }
.slots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-height: 260px; overflow-y: auto; padding: 2px; scrollbar-width: thin; }
.slot {
  padding: 10px 0; border-radius: min(var(--r-sm), 12px); border: 1px solid var(--line); background: transparent; cursor: pointer;
  font-variant-numeric: tabular-nums; font-weight: 500; transition: background-color .15s, border-color .15s, color .15s;
}
.slot:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.slot:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.slot:disabled { opacity: .3; cursor: default; text-decoration: line-through; }
.slot.is-sel { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.slots-group { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin: 6px 2px 0; }
.slots-empty { color: var(--muted); font-size: 14px; padding: 6px 2px; }

/* option list */
.opts { padding: 6px; max-height: 300px; overflow-y: auto; scrollbar-width: thin; }
.opt {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
  padding: 11px 12px; border: 0; border-radius: min(var(--r-sm), 10px); background: transparent; cursor: pointer;
}
.opt:hover, .opt.is-act { background: var(--accent-soft); }
.opt:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.opt svg { width: 18px; height: 18px; color: var(--accent); opacity: 0; flex: none; }
.opt[aria-selected="true"] { font-weight: 600; }
.opt[aria-selected="true"] svg { opacity: 1; }
.opts.is-compact { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.opts.is-compact .opt { justify-content: center; padding: 10px 0; font-variant-numeric: tabular-nums; }
.opts.is-compact .opt svg { display: none; }
.opts.is-compact .opt[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }

/* phones: bottom sheet */
@media (max-width: 560px) {
  .pop { left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important; max-width: none; width: auto !important;
    border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); animation: sheet-in .28s var(--ease); }
  .pop::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 0 auto 12px; }
  .pop-backdrop { display: block; position: fixed; inset: 0; z-index: 1999; background: rgba(0,0,0,.4); animation: fade .2s; }
  .cal, .slots { width: auto; }
  .cal-day { font-size: 16px; }
  .slots-grid { max-height: 46vh; }
  .opts { max-height: 55vh; }
  @keyframes sheet-in { from { transform: translateY(100%); } }
}

/* Form rows follow their available width, including a narrow contact column. */
@container (max-width: 540px) {
  .field-row:not(.field-row--2) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row:not(.field-row--2) > .field:first-child { grid-column: 1 / -1; }
}
@container (max-width: 380px) {
  .field-row, .field-row:not(.field-row--2), .field-row--2 { grid-template-columns: minmax(0, 1fr); }
  .field-row > .field { grid-column: auto; }
}
.lead-form .btn { max-width: 100%; white-space: normal; }
.lead-form .btn-label, .consent span, .field > span, .opt > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 360px) {
  .modal h2 { font-size: 20px; }
}
