/* Къртица ЕООД – wet concrete, the cut face and the gold plate of the firm's own logo.
   Rubik Dirt (headlines), Rubik (text and figures). One light theme; dark cut-face bands. */

@font-face {
    font-family: 'Rubik Dirt';
    src: url('/fonts/rubik-dirt.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Rubik';
    src: url('/fonts/rubik.woff2') format('woff2');
    font-weight: 300 900;
    font-display: swap;
}

:root {
    --concrete: #e6e4de;
    --sheet: #f4f3ef;
    --slab: #cfccc3;
    --ink: #141412;
    --muted: #4a4943;
    --cut: #1b1c19;
    --cut-2: #25261f;
    --cut-3: #34352e;
    --gold: #d4a849;
    --gold-hi: #f3e5c0;
    --gold-lo: #d0a546;
    --blue: #1f5aa6;
    --rust: #7a3b1f;
    --on-dark: #ecebe6;
    --on-dark-muted: #bdbbb2;
    --radius: 18px;
    --display: 'Rubik Dirt', 'Rubik', system-ui, sans-serif;
    --text: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --figures: 'Rubik', system-ui, sans-serif;
    --texture: url('/img/concrete.svg');
    --lb-accent: #d4a849;
    --lb-accent-soft: rgb(212 168 73 / .28);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 6rem;
}

body {
    margin: 0;
    font-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--concrete) var(--texture);
    overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}
.band-dark :focus-visible, .foot :focus-visible, .tile-dark :focus-visible { outline-color: var(--gold); }

h1, h2, h3 { line-height: 1.12; margin: 0 0 .6em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap {
    width: min(1200px, 100% - 2.5rem);
    margin-inline: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip {
    position: absolute;
    left: 1rem; top: -4rem;
    z-index: 100;
    padding: .6rem 1rem;
    background: var(--ink);
    color: var(--gold-hi);
    border-radius: 8px;
}
.skip:focus { top: 1rem; }

/* ---------- type ---------- */

.display, .display-2 {
    font-family: var(--display);
    font-weight: 400;
    letter-spacing: -.005em;
    word-spacing: .06em;
    overflow-wrap: normal;
}
.display {
    font-size: clamp(3rem, 8.4vw, 6.2rem);
    line-height: .98;
    margin-bottom: .35em;
}
.display-2 {
    font-size: clamp(1.85rem, 4.6vw, 3.3rem);
    line-height: 1.04;
}

.eyebrow {
    font-family: var(--figures);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: .6rem;
}
.band-dark .eyebrow, .tile-dark .eyebrow { color: var(--gold); }

.lead {
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    max-width: 38em;
    color: var(--muted);
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .8rem 1.3rem;
    border-radius: 12px;
    border: 2px solid var(--ink);
    font: 600 1.05rem/1.2 var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn-call {
    background: var(--gold);
    color: var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: .01em;
    padding: .7rem 1.3rem;
}
.btn-call:hover { box-shadow: 6px 6px 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--sheet); }
.btn-dark { background: var(--ink); color: var(--gold-hi); }
.btn-dark:hover { box-shadow: 4px 4px 0 var(--gold); }
.band-dark .btn-dark { border-color: var(--gold); }

/* ---------- header ---------- */

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(244 243 239 / .9);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    backdrop-filter: blur(10px) saturate(1.2);
    border-bottom: 3px solid var(--ink);
}
.top-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .6rem 1.5rem;
    padding-block: .55rem;
}
.brand { display: block; line-height: 0; }
.brand img { height: 46px; width: auto; }

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .2rem .3rem;
}
.nav a {
    padding: .4rem .7rem;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
}
.nav a:hover { background: var(--slab); }
.nav a[aria-current="page"] {
    background: var(--ink);
    color: var(--gold-hi);
}

.top-end { display: flex; align-items: center; gap: .8rem; }
.lang { display: flex; gap: .15rem; font-weight: 700; font-size: .92rem; }
.lang a, .lang span { padding: .15rem .4rem; border-radius: 6px; text-decoration: none; }
.lang a { color: var(--blue); }
.lang span { background: var(--slab); color: var(--ink); }

.call {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .9rem .4rem;
    border-radius: 10px;
    background: var(--gold);
    color: var(--ink);
    border: 2px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    white-space: nowrap;
}
.call:hover { box-shadow: 5px 5px 0 var(--ink); }

@media (max-width: 1080px) {
    .top-row { grid-template-columns: auto auto; justify-content: space-between; }
    .nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
    .top-end { grid-column: 2; grid-row: 1; }
}
@media (max-width: 560px) {
    .brand img { height: 34px; }
    .top-end { gap: .5rem; }
    .call { font-size: .95rem; padding: .35rem .6rem; gap: .3rem; }
    .call svg { width: 15px; height: 15px; }
    .nav { gap: .1rem; margin-inline: -.45rem; }
    .nav a { padding: .3rem .45rem; font-size: .97rem; }
}
@media (max-width: 400px) {
    .brand img { height: 28px; }
    .lang { font-size: .88rem; }
}

/* ---------- bands ---------- */

.band { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band-dark {
    background: var(--cut) radial-gradient(120% 80% at 85% 0%, var(--cut-3), transparent 60%);
    color: var(--on-dark);
}
.band-dark a:not(.btn) { color: var(--gold); }
.band-dark p { color: var(--on-dark-muted); }

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p:last-child { margin-bottom: 0; }
.more { margin: clamp(2rem, 4vw, 2.75rem) 0 0; }

/* ---------- hero ---------- */

.hero {
    position: relative;
    padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem);
    overflow: clip;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; align-items: center; }
.hero-art { position: relative; }
.hero-art::before {
    content: "";
    position: absolute;
    inset: 8% -6% -6% 8%;
    border-radius: 30px;
    background: var(--ink);
}
.cut {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: inset 0 0 0 2px var(--ink);
}
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-art { max-width: 420px; width: 88%; justify-self: center; }
}

/* the cut: finished state by default (a hole with its label); the motion only when allowed */
.cut-bit, .cut-core { opacity: 0; }
.cut-dia { font: 600 30px var(--figures); letter-spacing: .06em; }
.cut-num { font: 800 62px var(--figures); letter-spacing: -.01em; }

@media (prefers-reduced-motion: no-preference) {
    .cut-kerf { stroke-dasharray: 100; animation: cut-kerf 2.5s .35s cubic-bezier(.45, 0, .55, 1) both; }
    .cut-bit {
        transform-box: view-box;
        transform-origin: 280px 280px;
        animation: cut-bit 3.2s both;
    }
    .cut-segs {
        transform-box: view-box;
        transform-origin: 280px 280px;
        animation: cut-spin .35s linear 8;
    }
    .cut-core {
        transform-box: view-box;
        transform-origin: 280px 280px;
        animation: cut-core 1.1s 3.05s cubic-bezier(.5, 0, .75, 0) both;
    }
    .cut-label { animation: cut-fade .7s 3.7s both; }
}
@keyframes cut-kerf { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes cut-spin { to { transform: rotate(360deg); } }
@keyframes cut-bit {
    0% { opacity: 0; transform: scale(1.12); }
    10% { opacity: 1; transform: scale(1); }
    86% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.14); }
}
@keyframes cut-core {
    0% { opacity: 1; transform: none; }
    35% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0; transform: translate(30px, 190px) rotate(9deg) scale(1.08); }
}
@keyframes cut-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
    .hero-text > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
    .hero-text > :nth-child(2) { animation-delay: .08s; }
    .hero-text > :nth-child(3) { animation-delay: .16s; }
    .hero-text > :nth-child(4) { animation-delay: .24s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- figures ---------- */

.figures {
    background: var(--sheet);
    border-block: 3px solid var(--ink);
}
.figure-row {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.figure-row li {
    padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1rem, 2vw, 1.6rem);
    border-left: 2px solid var(--slab);
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    column-gap: .35rem;
}
.figure-row li:first-child { border-left: 0; padding-left: 0; }
.fig {
    font-family: var(--figures);
    font-weight: 800;
    font-size: clamp(2.3rem, 4.4vw, 3.7rem);
    line-height: .95;
    letter-spacing: -.02em;
}
.fig-unit { font-weight: 700; font-size: 1.15rem; color: var(--rust); }
.fig-text { grid-column: 1 / -1; margin-top: .6rem; color: var(--muted); font-size: .98rem; line-height: 1.45; }
@media (max-width: 900px) {
    .figure-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .figure-row li:nth-child(3) { border-left: 0; padding-left: 0; }
    .figure-row li:nth-child(n + 3) { border-top: 2px solid var(--slab); }
}
@media (max-width: 420px) {
    .figure-row li { padding-inline: .7rem 0; }
}

/* ---------- the depth ruler ---------- */

.methods { background: var(--cut) radial-gradient(90% 70% at 10% 0%, var(--cut-3), transparent 65%); color: var(--on-dark); }
.methods p { color: var(--on-dark-muted); }
.methods .eyebrow { color: var(--gold); }
.ruler {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.8rem;
}
.ruler-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: .2rem 1rem;
    margin-bottom: .55rem;
}
.ruler-head strong { font-size: 1.15rem; }
.ruler-val {
    font-family: var(--figures);
    font-weight: 800;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--gold);
}
.ruler-bar {
    position: relative;
    height: 18px;
    border-radius: 4px;
    background:
        repeating-linear-gradient(90deg, rgb(255 255 255 / .2) 0 2px, transparent 2px 12.5%),
        rgb(255 255 255 / .06);
}
.ruler-bar span {
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(var(--depth) / 800 * 100%);
    border-radius: 4px;
    background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
    transform-origin: left center;
}
.ruler-open .ruler-bar span {
    clip-path: polygon(0 0, 97% 0, 99% 25%, 97.5% 50%, 100% 75%, 98% 100%, 0 100%);
}
.ruler li > p { margin: .6rem 0 0; max-width: 44rem; }
.ruler-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 1.4rem;
    padding-top: .5rem;
    border-top: 2px solid rgb(255 255 255 / .25);
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
    color: var(--on-dark-muted);
}
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .ruler-bar span {
            animation: fill linear both;
            animation-timeline: view();
            animation-range: entry 10% cover 40%;
        }
    }
}
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- services bento ---------- */

.bento {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 1rem;
}
.tile {
    background: var(--sheet);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    padding: 1.4rem 1.4rem 1.2rem;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.tile h3 { font-size: 1.22rem; }
.tile p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.tile-photo {
    grid-column: span 2;
    grid-row: span 2;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--ink);
    color: var(--on-dark);
}
.tile-photo a { display: block; flex: 1; min-height: 200px; max-height: 300px; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; }
.tile-photo .tile-body { padding: 1.3rem 1.4rem 1.4rem; }
.tile-photo p { color: var(--on-dark-muted); }
.tile-dark { background: var(--cut); color: var(--on-dark); }
.tile-dark p { color: var(--on-dark-muted); }
.tile-gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.tile-gold p { color: var(--ink); }
@media (max-width: 1100px) { .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 780px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
    .bento { grid-template-columns: minmax(0, 1fr); }
    .tile-photo { grid-column: auto; grid-row: auto; }
}

/* ---------- the Ø gauge ---------- */

.gauge {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
}
.gauge-figure { margin: 0; }
.gauge-figure svg { width: 100%; height: auto; display: block; }
.gauge-figure figcaption { margin-top: .8rem; font-size: .95rem; color: var(--on-dark-muted); }
.gauge-slab { fill: var(--cut-3); stroke: rgb(255 255 255 / .18); stroke-width: 3; }
.gauge-ring {
    fill: none;
    stroke: rgb(236 235 230 / .32);
    stroke-width: 2;
    transition: fill .25s ease, stroke .25s ease;
}
.gauge-dim line { stroke: var(--gold-hi); stroke-width: 3; }
.gauge:not(.is-live) .gauge-dim { display: none; }

/* the ring of the chosen diameter: the hole */
.gauge:has(input[value="52"]:checked) .gauge-ring[data-d="52"],
.gauge:has(input[value="62"]:checked) .gauge-ring[data-d="62"],
.gauge:has(input[value="82"]:checked) .gauge-ring[data-d="82"],
.gauge:has(input[value="102"]:checked) .gauge-ring[data-d="102"],
.gauge:has(input[value="112"]:checked) .gauge-ring[data-d="112"],
.gauge:has(input[value="122"]:checked) .gauge-ring[data-d="122"],
.gauge:has(input[value="132"]:checked) .gauge-ring[data-d="132"],
.gauge:has(input[value="152"]:checked) .gauge-ring[data-d="152"],
.gauge:has(input[value="182"]:checked) .gauge-ring[data-d="182"],
.gauge:has(input[value="202"]:checked) .gauge-ring[data-d="202"],
.gauge:has(input[value="250"]:checked) .gauge-ring[data-d="250"],
.gauge:has(input[value="300"]:checked) .gauge-ring[data-d="300"],
.gauge:has(input[value="350"]:checked) .gauge-ring[data-d="350"],
.gauge:has(input[value="400"]:checked) .gauge-ring[data-d="400"],
.gauge:has(input[value="450"]:checked) .gauge-ring[data-d="450"],
.gauge:has(input[value="500"]:checked) .gauge-ring[data-d="500"],
.gauge:has(input[value="600"]:checked) .gauge-ring[data-d="600"],
.gauge:has(input[value="700"]:checked) .gauge-ring[data-d="700"],
.gauge:has(input[value="800"]:checked) .gauge-ring[data-d="800"] {
    fill: #0b0b0a;
    stroke: var(--gold);
    stroke-width: 8;
}

.gauge-dias { border: 0; margin: 0 0 1.4rem; padding: 0; min-width: 0; }
.gauge-dias legend { padding: 0; margin-bottom: .7rem; font-weight: 600; color: var(--on-dark); }
.gauge-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { position: relative; cursor: pointer; }
.chip input {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}
.chip span {
    display: block;
    padding: .25rem .6rem .3rem;
    border-radius: 8px;
    border: 2px solid rgb(236 235 230 / .35);
    font-weight: 600;
    font-size: .98rem;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    color: var(--on-dark);
    transition: background-color .15s ease, border-color .15s ease;
}
.chip:hover span { border-color: var(--gold); }
.chip input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--gold-hi); outline-offset: 2px; }

.gauge-calc[hidden] { display: none; }
.gauge-depth { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 600; }
.gauge-depth output { font-weight: 800; font-size: 1.5rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.gauge-calc input[type="range"] { width: 100%; margin: .6rem 0 .2rem; accent-color: var(--gold); height: 1.6rem; }
.gauge-scale { display: flex; justify-content: space-between; font-size: .88rem; color: var(--on-dark-muted); }
.gauge-result {
    margin: 1.4rem 0 1rem;
    padding: 1.2rem 1.3rem;
    border-radius: var(--radius);
    background: rgb(0 0 0 / .35);
    border: 2px solid var(--cut-3);
    display: grid;
    gap: .2rem;
}
.gauge-result-label { font-size: .95rem; color: var(--on-dark-muted); }
.gauge-price {
    font-family: var(--figures);
    font-weight: 800;
    font-size: clamp(2.4rem, 6vw, 3.4rem);
    line-height: 1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    color: var(--gold);
}
.gauge-sum { font-size: .95rem; color: var(--on-dark); }
.gauge-note { font-size: .95rem; margin: 0; }
@media (max-width: 860px) {
    .gauge { grid-template-columns: minmax(0, 1fr); }
    .gauge-figure { max-width: 360px; }
}

/* ---------- photo strip ---------- */

.strip {
    list-style: none;
    margin: 0;
    padding: 0 max(1.25rem, (100% - 1200px) / 2) 1rem;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(1.25rem, (100% - 1200px) / 2);
}
.strip li { flex: none; scroll-snap-align: start; position: relative; }
.strip a {
    display: block;
    height: clamp(240px, 38vw, 360px);
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--ink);
}
.strip img { height: 100%; width: auto; max-width: none; transition: transform .4s ease; }
.strip a:hover img { transform: scale(1.04); }

/* ---------- call band ---------- */

.call-band {
    background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
    border-top: 3px solid var(--ink);
    padding-block: clamp(3rem, 7vw, 5rem);
}
.call-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 2rem;
    align-items: center;
}
.call-grid p { font-size: 1.15rem; margin: 0; max-width: 32em; }
.call-actions { display: grid; gap: .8rem; justify-items: start; container-type: inline-size; }
.call-actions .big-phone { font-size: clamp(1.7rem, 11cqi, 3.6rem); }
.big-phone {
    font-family: var(--figures);
    font-weight: 800;
    font-size: clamp(2.1rem, 5.4vw, 3.6rem);
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}
.big-phone:hover { text-decoration: underline; text-decoration-thickness: .06em; }
.call-mail { color: var(--ink); font-weight: 600; font-size: 1.1rem; }
@media (max-width: 860px) { .call-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- inner pages ---------- */

.page-hero {
    position: relative;
    padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem);
    overflow: clip;
    border-bottom: 3px solid var(--ink);
}
.page-hero::after {
    content: "";
    position: absolute;
    right: max(-120px, -8vw);
    top: 50%;
    width: clamp(220px, 34vw, 420px);
    aspect-ratio: 1;
    translate: 0 -50%;
    border-radius: 50%;
    background: radial-gradient(circle, #0d0d0b 0 58%, #3a3933 70%, transparent 71%);
    box-shadow: 0 0 0 10px var(--gold), 0 0 0 13px var(--ink);
    opacity: .95;
}
.page-hero .wrap { position: relative; z-index: 1; padding-right: clamp(0px, 24vw, 360px); }
.page-hero .display { font-size: clamp(2.6rem, 6.2vw, 5rem); }
.page-hero .lead { max-width: 34em; }
@media (max-width: 760px) {
    .page-hero::after { width: 96px; top: 1rem; translate: 0 0; right: -34px; box-shadow: 0 0 0 7px var(--gold), 0 0 0 9px var(--ink); }
    .page-hero .wrap { padding-right: 0; }
    .page-hero .eyebrow, .page-hero .display { padding-right: 4rem; }
    .page-hero .display { font-size: clamp(2.1rem, 10vw, 3rem); }
}

.prose { max-width: 46rem; }
.prose p { color: var(--muted); }
.prose h2 { margin-top: 2rem; }

.service-list { display: grid; gap: clamp(2.5rem, 5vw, 4rem); counter-reset: svc; }
.service {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
    padding-top: clamp(1.6rem, 3vw, 2.2rem);
    border-top: 3px solid var(--ink);
}
.service-head { counter-increment: svc; }
.service-head::before {
    content: counter(svc, decimal-leading-zero);
    display: block;
    font-family: var(--display);
    font-size: 2.4rem;
    line-height: 1;
    color: var(--rust);
    margin-bottom: .5rem;
}
.service h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
.service p, .service li { color: var(--muted); }
.service ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.service li { margin-bottom: .35rem; }
.service li::marker { color: var(--rust); }
.service h3 { font-size: 1.1rem; margin-top: 1.2rem; }
.service-figs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.service-figs li {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    column-gap: .35rem;
    padding: 1.3rem 1.4rem;
    border-radius: var(--radius);
    background: var(--cut);
    color: var(--on-dark);
}
.service-figs .fig { color: var(--gold); }
.service-figs .fig-unit { color: var(--gold-hi); }
.service-figs .fig-text { color: var(--on-dark-muted); }
.service-photo { margin: 0; }
.service-photo a { display: block; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--ink); }
.service-photo img { width: 100%; }
@media (max-width: 820px) { .service { grid-template-columns: minmax(0, 1fr); } }

.method-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .8rem; }
.method-list li {
    padding: .9rem 1rem;
    border-radius: 12px;
    background: var(--sheet);
    border: 2px solid var(--slab);
    margin: 0;
}
.method-list strong { display: block; color: var(--ink); }
.method-list .val { display: block; font-weight: 800; font-size: 1.25rem; color: var(--rust); line-height: 1.2; margin: .15rem 0 .35rem; }

/* prices */
.notes {
    background: var(--sheet);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    padding: clamp(1.3rem, 3vw, 2rem);
}
.notes h2 { font-size: 1.5rem; }
.notes ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; }
.notes li { color: var(--muted); }
.notes li::marker { color: var(--rust); }
.notes .warn { color: var(--ink); font-weight: 700; }
.price-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 4vw, 3rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.price-group h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; }
.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--sheet);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    overflow: hidden;
}
.price-table th, .price-table td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid var(--slab); vertical-align: baseline; }
.price-table thead th, .price-table thead th.ask, .price-table thead th.num { background: var(--ink); color: var(--gold-hi); font-weight: 600; font-size: .95rem; font-style: normal; white-space: normal; line-height: 1.3; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table .num { text-align: right; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.price-table .dia { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table .ask { text-align: right; color: var(--muted); font-style: italic; white-space: nowrap; }
.price-table tbody tr:nth-child(even) { background: rgb(207 204 195 / .25); }
.price-caption { font-size: .95rem; color: var(--muted); margin: .7rem 0 0; }
@media (max-width: 520px) {
    .price-table th, .price-table td { padding: .55rem .6rem; }
    .price-table .ask { white-space: normal; }
}

/* gallery */
.gallery {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 3 280px;
    column-gap: 1rem;
}
.gallery li { break-inside: avoid; margin-bottom: 1rem; position: relative; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--ink); }
.gallery img { width: 100%; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.03); }

/* about */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.about-photo a { display: block; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--ink); }
.about-photo figcaption { font-size: .95rem; color: var(--muted); margin-top: .6rem; }
.about-photo { margin: 0; }
.brands { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0 0 1.5rem; padding: 0; }
.brands li {
    padding: .3rem .9rem .35rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--gold-hi);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .04em;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }

.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.facts li { background: var(--cut-2); border-radius: var(--radius); padding: 1.2rem 1.3rem; color: var(--on-dark-muted); }
.facts .fig { display: block; color: var(--gold); font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: .4rem; }

/* contact */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}
.card {
    background: var(--sheet);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    padding: clamp(1.3rem, 3vw, 2rem);
}
.card-dark { background: var(--cut); color: var(--on-dark); border-color: var(--cut); }
.card-dark p, .card-dark dd { color: var(--on-dark-muted); }
.card-dark a:not(.btn) { color: var(--gold); }
.card-dark .big-phone { color: var(--gold); }
.contact-list { margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.contact-list dt { font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.contact-list dd { margin: 0; }
.phone-box { container-type: inline-size; }
.phone-box .big-phone { display: inline-block; font-size: clamp(1.4rem, 9.6cqi, 3.4rem); }
.card h2 { font-size: 1.5rem; }
.card h2.h3 { font-size: 1.15rem; margin-top: 1.8rem; }
.marks { margin: 0; padding-left: 1.2rem; }
.marks li { margin-bottom: .35rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* the platform contact form */
.contact-form { display: grid; gap: 1rem; }
.contact-form label { display: block; font-weight: 600; margin-bottom: .3rem; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
    width: 100%;
    padding: .75rem .9rem;
    border: 2px solid var(--ink);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    color: var(--ink);
}
.contact-form textarea { min-height: 10rem; resize: vertical; }
.contact-form ::placeholder { color: #6a6962; }
.contact-form ul { margin: .3rem 0 0; padding-left: 1.1rem; color: #9b2316; font-size: .95rem; }
.contact-form .btn { justify-self: start; background: var(--gold); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.form-hint { font-size: .9rem; color: var(--muted); margin: 0; }
.contact-sent {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    background: #e3efd8;
    border: 2px solid #3e6b22;
    color: #1f3a0e;
    margin-bottom: 1rem;
}
.contact-sent strong { display: block; }

/* ---------- footer ---------- */

.foot {
    background: var(--ink);
    color: var(--on-dark-muted);
    padding-top: clamp(3rem, 6vw, 4.5rem);
}
.foot a { color: var(--gold); }
.foot h2 {
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--on-dark);
    margin-bottom: .8rem;
}
.foot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
}
.foot-logo {
    display: inline-block;
    padding: .8rem 1rem;
    border-radius: 14px;
    background: var(--sheet) var(--texture);
    margin-bottom: 1rem;
    line-height: 0;
}
.foot-logo img { height: 52px; width: auto; }
.foot-phone {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -.01em;
    text-decoration: none;
    white-space: nowrap;
}
.foot-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.foot-bottom {
    margin-top: 2.5rem;
    padding-block: 1.3rem;
    border-top: 1px solid rgb(255 255 255 / .15);
    font-size: .92rem;
}
.foot-bottom p { margin: 0; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } .foot-logo img { height: 40px; } }

/* ---------- 404 ---------- */

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1.25rem;
    text-align: center;
}
.not-found > div { max-width: 36rem; }
.not-found img { margin: 0 auto 2rem; height: 60px; width: auto; }
.not-found h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 7vw, 3.6rem); }
.not-found h2 { margin-top: 2.5rem; font-size: 1.4rem; }
.not-found .btn { background: var(--gold); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
/* ---- lightbox: /js/lightbox.js opens a linked image enlarged over the page, in a <dialog> ----
   Paste this block into the site's css/site.css. The overlay is dark in every theme and brings its own
   colours and box sizing, so it does not depend on the rest of the stylesheet. To recolour it to the
   site, set these on .lightbox (or on :root): --lb-bg, --lb-text, --lb-accent (focus ring),
   --lb-accent-soft (hover). */

[data-lightbox] {
    cursor: zoom-in;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 68px 12px 14px;
    border: 0;
    background: var(--lb-bg, rgba(12, 14, 16, 0.95));
    color: var(--lb-text, #f2f2f2);
    color-scheme: dark;
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox::backdrop {
    background: none;
}

.lightbox-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
}

.lightbox-caption {
    display: grid;
    place-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 56px;
    color: var(--lb-text, #f2f2f2);
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.lightbox-button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-button:hover {
    border-color: #ffffff;
    background-color: var(--lb-accent-soft, rgba(255, 255, 255, 0.16));
}

.lightbox-button:focus-visible {
    outline: 3px solid var(--lb-accent, #ffffff);
    outline-offset: 3px;
    border-radius: 50%;
}

.lightbox-button[hidden] {
    display: none;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.lightbox-prev,
.lightbox-next {
    bottom: 14px;
}

.lightbox-prev {
    left: 12px;
    rotate: 180deg;
}

.lightbox-next {
    right: 12px;
}

@media (min-width: 760px) {
    .lightbox {
        padding: 24px 84px 18px;
    }

    .lightbox-caption {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next,
    .lightbox-close {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] {
        animation: lightbox-in 0.2s ease;
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}
