/* Нотариус Петър Абаджиев, Рег. № 346 – jade laurel of the Notary Chamber emblem and the honey blinds of the office.
   One light theme with full-bleed jade bands. Fonts: Prata (display), Sofia Sans Semi Condensed (text). */

@font-face {
    font-family: "Prata";
    src: url("/fonts/prata.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Sofia Sans SC";
    src: url("/fonts/sofia-sans-semi-condensed.woff2") format("woff2");
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --night: #10271f;
    --deep: #183d31;
    --lit: #245443;
    --jade: #45846c;
    --jade-text: #2c5f4c;
    --honey: #cdb685;
    --honey-lit: #e6d6ad;
    --honey-pale: #f1e8d2;
    --honey-text: #7a5c24;
    --teak: #9c4f2a;
    --paper: #f6f2e8;
    --sheet: #fffdf8;
    --ink: #1c1a15;
    --muted: #575043;
    --line: #ddd3bd;
    --on-dark: #f6f2e8;
    --on-dark-muted: #c9d6cd;
    --radius: 18px;
    --display: "Prata", "Sofia Sans SC", Georgia, serif;
    --text: "Sofia Sans SC", "Arial Narrow", Arial, sans-serif;
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
    color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.15rem;
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
}

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

a { color: var(--jade-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teak); }
:focus-visible { outline: 3px solid var(--teak); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.4rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.8rem); }
h3, .h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); 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: 12px; top: -60px; z-index: 100;
    background: var(--night); color: var(--on-dark); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

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

.top {
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 20;
}
@supports (backdrop-filter: blur(8px)) {
    .top { backdrop-filter: blur(10px) saturate(1.2); background: color-mix(in srgb, var(--paper) 82%, transparent); }
}
.top-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand lang" "nav nav" "call call";
    align-items: center;
    gap: 10px 16px;
    padding-block: 10px 12px;
}
.brand { grid-area: brand; display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-emblem { width: 46px; height: auto; flex: none; }
.brand-logo { width: min(210px, 100%); height: auto; min-width: 0; }

.lang { grid-area: lang; display: flex; gap: 4px; font-weight: 600; font-size: .95rem; }
.lang a, .lang span { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; border-radius: 999px; text-decoration: none; }
.lang a { color: var(--jade-text); }
.lang a:hover { background: var(--honey-pale); color: var(--ink); }
.lang span { background: var(--night); color: var(--on-dark); }

.nav { grid-area: nav; display: flex; flex-wrap: wrap; gap: 2px 4px; margin-inline: -10px; }
.nav a {
    padding: 8px 10px; border-radius: 999px; text-decoration: none; color: var(--ink);
    font-weight: 600; font-size: 1.05rem; position: relative;
}
.nav a:hover { background: var(--honey-pale); color: var(--ink); }
@media (max-width: 420px) { .nav { margin-inline: -7px; gap: 0; } .nav a { padding: 8px 7px; font-size: 1rem; } .nav a[aria-current]::after { left: 7px; right: 7px; } }
.nav a[aria-current] { color: var(--jade-text); }
.nav a[aria-current]::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; background: var(--honey-text);
}

.call {
    grid-area: call; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--night); color: var(--on-dark); text-decoration: none; font-weight: 700;
    font-size: 1.15rem; letter-spacing: .01em; padding: 11px 20px; border-radius: 999px;
    transition: background .2s ease, transform .2s ease;
}
.call svg { color: var(--honey); }
.call:hover { background: var(--lit); color: #fff; transform: translateY(-1px); }

@media (min-width: 640px) {
    .top-row { grid-template-columns: auto 1fr auto auto; grid-template-areas: "brand . lang call" "nav nav nav nav"; }
    .brand-logo { width: 240px; }
    .brand-emblem { width: 52px; }
}
@media (min-width: 1120px) {
    .top { position: sticky; top: 0; }
    .top-row { grid-template-columns: auto 1fr auto auto; grid-template-areas: "brand nav lang call"; padding-block: 10px; }
    .nav { justify-content: center; margin: 0; }
}

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

.btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px;
    font: 700 1.1rem/1.2 var(--text); text-decoration: none; border: 2px solid transparent; cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-honey { background: var(--honey); color: var(--night); }
.btn-honey:hover { background: var(--honey-lit); color: var(--night); }
.btn-ghost { border-color: color-mix(in srgb, var(--honey) 70%, transparent); color: var(--on-dark); }
.btn-ghost:hover { background: rgba(205, 182, 133, .14); color: #fff; }
.btn-night { background: var(--night); color: var(--on-dark); }
.btn-night:hover { background: var(--lit); color: #fff; }
.btn-jade { background: var(--jade-text); color: #fff; }
.btn-jade:hover { background: var(--night); color: #fff; }

.arrow-link { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.arrow-link::after { content: "→"; transition: transform .2s ease; }
.arrow-link:hover::after { transform: translateX(4px); }

.eyebrow {
    font: 700 .85rem/1.3 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--honey);
    margin-bottom: 1rem;
}
.eyebrow-dark { color: var(--honey-text); }

/* ---------- hero: the office window ---------- */

.hero {
    position: relative; overflow: hidden; color: var(--on-dark);
    background:
        radial-gradient(120% 90% at 85% 10%, rgba(69, 132, 108, .45), transparent 60%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 46px),
        linear-gradient(160deg, var(--deep), var(--night) 70%);
    padding-block: clamp(36px, 7vw, 96px) clamp(48px, 8vw, 110px);
}
.hero-grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }

.hero h1 { color: #fff; max-width: 13ch; margin-bottom: .2em; }
.hero .lead { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); color: var(--on-dark-muted); max-width: 36rem; }

.regno { display: flex; align-items: baseline; gap: 14px; margin: 0 0 .6rem; color: var(--honey); line-height: 1; }
.regno-label { font: 600 clamp(1.1rem, .9rem + 1vw, 1.6rem)/1 var(--text); letter-spacing: .08em; text-transform: uppercase; }
.regno-num {
    font-family: var(--display); font-size: clamp(5.5rem, 3rem + 13vw, 11rem); letter-spacing: -.03em;
    background: linear-gradient(180deg, var(--honey-lit), var(--honey) 55%, #b39a64);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 1rem; }
.hero-hours { font-weight: 600; letter-spacing: .05em; color: var(--honey-lit); margin: 0; }

.window {
    position: relative; margin: 0; justify-self: center; width: min(400px, 100%); padding: 6px;
    border-radius: 206px 206px calc(var(--radius) + 6px) calc(var(--radius) + 6px);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.window a {
    display: block; overflow: hidden; background: var(--deep);
    border-radius: 200px 200px var(--radius) var(--radius);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.window img { width: 100%; aspect-ratio: 470 / 640; object-fit: cover; object-position: center 30%; }
/* the frame of the arch: two honey lines that meet at the top */
.window-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.window-frame path { fill: none; stroke: var(--honey); stroke-opacity: .55; stroke-width: 6; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) {
    .window img { animation: photo-in 1s cubic-bezier(.2, .7, .2, 1) both; }
    @keyframes photo-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
    .window-frame path { stroke-dasharray: 1; animation: frame-draw 1.1s cubic-bezier(.45, 0, .2, 1) .15s both; }
    @keyframes frame-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}

/* ---------- the register entry ---------- */

.record-band { background: linear-gradient(180deg, var(--night) 0 70px, var(--paper) 70px); padding-bottom: clamp(40px, 6vw, 80px); }
.record {
    background: var(--sheet); border-radius: var(--radius); padding: clamp(22px, 4vw, 48px);
    box-shadow: 0 30px 60px -40px rgba(16, 39, 31, .6), 0 0 0 1px var(--line);
    position: relative; overflow: hidden;
}
.record::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 8px;
    background: repeating-linear-gradient(180deg, var(--honey) 0 14px, var(--jade) 14px 28px);
}
.record-head { display: flex; gap: 18px; align-items: center; margin-bottom: 1.4rem; }
.record-head img { width: 72px; flex: none; }
.record-head h2 { margin: 0; }
.record-kicker { margin: 0 0 .3rem; color: var(--muted); font-weight: 600; font-size: 1rem; }

.ledger { margin: 0; display: grid; gap: 0; }
.ledger > div {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
    padding: 12px 0; border-top: 1px solid var(--line);
}
.ledger dt { color: var(--muted); font-weight: 600; flex: 0 0 auto; }
.ledger dd { margin: 0; font-weight: 600; font-size: 1.15rem; }
@media (min-width: 720px) {
    .ledger > div { flex-wrap: nowrap; }
    .ledger dt { display: flex; flex: 1 1 auto; gap: 12px; align-items: baseline; min-width: 0; }
    .ledger dt::after { content: ""; flex: 1; border-bottom: 2px dotted var(--honey); transform: translateY(-4px); min-width: 24px; }
    .ledger dd { flex: 0 1 auto; text-align: right; max-width: 60%; }
}
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .ledger > div { animation: ledger-in linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
        @keyframes ledger-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
    }
}

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

.band { padding-block: clamp(48px, 7vw, 96px); }
.band-sheet { background: var(--sheet); border-block: 1px solid var(--line); }
.band-tight { padding-block: clamp(32px, 5vw, 64px); }
.section-head { max-width: 46rem; margin-bottom: 2rem; }

.bio { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 820px) { .bio { grid-template-columns: auto 1fr; } }
.bio-photo { margin: 0; position: relative; justify-self: start; }
.bio-photo::after {
    content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1; border-radius: var(--radius);
    background: repeating-linear-gradient(90deg, var(--honey) 0 10px, var(--honey-lit) 10px 22px);
}
.bio-photo img { border-radius: var(--radius); width: 389px; }
.bio-text { max-width: 40rem; }

/* services: three cards of different weight */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 860px) {
    .svc-grid { grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; }
    .svc-grid .svc-1 { grid-row: span 2; }
}
.svc {
    position: relative; border-radius: var(--radius); padding: clamp(24px, 3vw, 40px);
    background: var(--paper); border: 1px solid var(--line); overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.svc:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(16, 39, 31, .55); }
.svc h3 a { color: var(--ink); text-decoration: none; }
.svc h3 a::after { content: ""; position: absolute; inset: 0; }
.svc h3 a:hover { color: var(--jade-text); }
.svc p { color: var(--muted); margin: 0; }
.svc-num { display: block; font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--honey-text); margin-bottom: 1.2rem; }
.svc-1 { background: linear-gradient(160deg, var(--lit), var(--night)); border-color: transparent; color: var(--on-dark); display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; }
.svc-1::before {
    content: ""; position: absolute; inset: 0; opacity: .14;
    background: repeating-linear-gradient(90deg, var(--honey) 0 3px, transparent 3px 34px);
}
.svc-1 .svc-num { color: var(--honey); font-size: 4.5rem; margin-bottom: auto; position: relative; }
.svc-1 h3, .svc-1 p { position: relative; }
.svc-1 h3 a { color: #fff; }
.svc-1 h3 a:hover { color: var(--honey-lit); }
.svc-1 p { color: var(--on-dark-muted); }
.svc a:focus-visible::after { outline: 3px solid var(--teak); outline-offset: -3px; border-radius: var(--radius); }
.more { margin: 1.6rem 0 0; }

/* call band */
.callband {
    background:
        repeating-linear-gradient(90deg, rgba(122, 92, 36, .09) 0 2px, transparent 2px 40px),
        linear-gradient(120deg, var(--honey-lit), var(--honey));
    color: var(--night); padding-block: clamp(44px, 6vw, 80px);
}
.callband-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .callband-grid { grid-template-columns: 1fr 1fr; } }
.callband h2 { margin-bottom: .3em; }
.callband-hours { font-family: var(--display); font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); margin-bottom: .4rem; }
.callband a:not(.btn) { color: var(--night); font-weight: 700; }
.callband a:not(.btn):hover { color: var(--teak); }
.big-phone {
    display: inline-block; font-family: var(--display); font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem);
    line-height: 1.1; text-decoration: none; margin-bottom: .5rem; white-space: nowrap;
}
.callband .big-phone { color: var(--night); text-decoration: none; }
.callband-contacts p { overflow-wrap: anywhere; }

/* ---------- page head ---------- */

.page-head {
    color: var(--on-dark);
    background:
        repeating-linear-gradient(90deg, rgba(205, 182, 133, .09) 0 2px, transparent 2px 38px),
        linear-gradient(160deg, var(--deep), var(--night) 75%);
    padding-block: clamp(36px, 6vw, 80px) clamp(36px, 5vw, 64px);
}
.page-head h1 { color: #fff; max-width: 20ch; font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.8rem); }
.page-head .lead { color: var(--on-dark-muted); max-width: 44rem; font-size: clamp(1.15rem, 1rem + .4vw, 1.35rem); margin: 0; }
.crumbs { font-size: 1rem; margin: 0 0 1rem; color: var(--on-dark-muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--honey); }
.crumbs a { color: var(--honey-lit); }
.crumbs a:hover { color: #fff; }

/* ---------- prose and lists ---------- */

.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.two-col { display: grid; gap: clamp(28px, 5vw, 64px); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.4fr 1fr; align-items: start; } }

.marks { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 10px; }
.marks li { position: relative; padding-left: 30px; }
.marks li::before {
    content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 12px;
    border: 2px solid var(--jade); border-radius: 3px; transform: rotate(45deg);
}

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li {
    counter-increment: step; position: relative; padding: 18px 20px 18px 74px;
    background: var(--sheet); border: 1px solid var(--line); border-radius: 14px;
}
.steps li::before {
    content: counter(step, decimal-leading-zero); position: absolute; left: 18px; top: 14px;
    font-family: var(--display); font-size: 1.7rem; color: var(--honey-text); line-height: 1.2;
}

.tags { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.tags li {
    background: var(--sheet); border: 1px solid var(--line); border-left: 5px solid var(--honey);
    border-radius: 10px; padding: 12px 16px; font-weight: 600;
}

.aside-card {
    background: var(--night); color: var(--on-dark); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px);
    position: relative; overflow: hidden;
}
.aside-card::before {
    content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
    background: repeating-linear-gradient(90deg, var(--honey) 0 3px, transparent 3px 30px);
}
.aside-card > * { position: relative; }
.aside-card h2 { font-size: 1.6rem; color: #fff; }
.aside-card p { color: var(--on-dark-muted); }
.aside-card a:not(.btn) { color: var(--honey-lit); }
.aside-card a:not(.btn):hover { color: #fff; }
.aside-card .big-phone { color: #fff; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); }
@media (min-width: 900px) { .aside-sticky { position: sticky; top: 100px; } }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a {
    display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--sheet); color: var(--ink); text-decoration: none; font-weight: 600;
}
.chips a:hover { border-color: var(--jade); color: var(--jade-text); }
.chips a[aria-current] { background: var(--night); color: var(--on-dark); border-color: var(--night); }

/* services overview list */
.svc-list { columns: 2 320px; column-gap: 48px; list-style: none; margin: 0; padding: 0; }
.svc-list li { break-inside: avoid; padding: 12px 0 12px 30px; border-top: 1px solid var(--line); position: relative; }
.svc-list li::before {
    content: ""; position: absolute; left: 4px; top: 1.15em; width: 12px; height: 12px;
    border: 2px solid var(--jade); border-radius: 3px; transform: rotate(45deg);
}

/* ---------- team ---------- */

.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 700px) { .team { grid-template-columns: 1fr 1fr; } }
.person {
    background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
    display: flex; flex-direction: column; gap: 6px;
}
.person h3 { margin: 0; }
.person .role { color: var(--honey-text); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; margin: 0; }
.person p { margin: 0; color: var(--muted); }
.person .tel { font-weight: 700; font-size: 1.2rem; margin-top: auto; padding-top: 10px; }
.person-lead { grid-column: 1 / -1; display: grid; gap: 24px; background: var(--night); border-color: transparent; color: var(--on-dark); padding: 0; overflow: hidden; }
.person-lead h3 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.person-lead .role { color: var(--honey); }
.person-lead p { color: var(--on-dark-muted); }
.person-lead a { color: var(--honey-lit); }
.person-lead a:hover { color: #fff; }
.person-lead figure { margin: 0; }
.person-lead img { width: 100%; height: 100%; object-fit: cover; max-height: 520px; }
.person-lead .person-body { padding: 0 26px 30px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
@media (min-width: 760px) {
    .person-lead { grid-template-columns: minmax(240px, 360px) 1fr; }
    .person-lead .person-body { padding: 34px 34px 34px 0; }
}

/* ---------- links ---------- */

.inst { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.inst a {
    display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 100%;
    background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
    text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .2s ease, transform .2s ease;
}
.inst a small { display: block; color: var(--muted); font-weight: 400; font-size: .95rem; }
.inst a::after { content: "↗"; color: var(--honey-text); font-size: 1.3rem; }
.inst a:hover { border-color: var(--jade); transform: translateY(-2px); color: var(--jade-text); }

/* ---------- contact ---------- */

.contact-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.contact-list { margin: 0; display: grid; gap: 16px; }
.contact-list dt { color: var(--muted); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-list dd { margin: 2px 0 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.card .big-phone { color: var(--night); }

.contact-form { display: grid; gap: 14px; }
.contact-form label { display: block; font-weight: 700; margin-bottom: 4px; }
.contact-form input, .contact-form textarea {
    width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #a99d84;
    border-radius: 10px; padding: 12px 14px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid var(--jade); outline-offset: 1px; border-color: var(--jade); }
.contact-form ::placeholder { color: #6b6455; }
.contact-form ul { margin: 4px 0 0; padding-left: 18px; color: #9b2c1c; }
.form-hint { color: var(--muted); font-size: 1rem; margin: 0; }
.contact-sent { background: #e3efe8; border-left: 5px solid var(--jade); padding: 14px 18px; border-radius: 10px; margin-bottom: 16px; }

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

.foot { background: var(--night); color: var(--on-dark-muted); padding-top: clamp(44px, 6vw, 72px); }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }
.foot h2 { font: 700 .85rem/1.3 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--honey); margin: 0 0 .7rem; }
.foot h2 + * + h2, .foot address + h2 { margin-top: 1.3rem; }
.foot address { font-style: normal; }
.foot a { color: var(--on-dark); }
.foot a:hover { color: var(--honey-lit); }
.foot-emblem { width: 64px; margin-bottom: 12px; }
.foot-logo { width: min(280px, 100%); margin-bottom: 14px; }
.foot-phone { font-family: var(--display); font-size: 1.5rem; text-decoration: none; white-space: nowrap; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-nav .foot-sub { padding-left: 14px; font-size: 1rem; }
.foot-bottom { border-top: 1px solid rgba(205, 182, 133, .25); margin-top: 40px; padding-block: 20px 28px; font-size: .95rem; }
.foot-bottom p { margin: 0; }

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

.not-found { min-height: 100vh; display: grid; place-items: center; padding: 40px var(--gutter); text-align: center;
    background: repeating-linear-gradient(90deg, rgba(205, 182, 133, .08) 0 2px, transparent 2px 38px), linear-gradient(160deg, var(--deep), var(--night)); color: var(--on-dark); }
.not-found > div { max-width: 36rem; }
.not-found img { margin: 0 auto 16px; }
.not-found .nf-emblem { width: 90px; }
.not-found .nf-logo { width: min(300px, 100%); margin-bottom: 28px; }
.not-found h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 3vw, 3rem); }
.not-found h2 { color: #fff; font-size: 1.6rem; margin-top: 2rem; }
.not-found p { color: var(--on-dark-muted); }
.not-found a:not(.btn) { color: var(--honey-lit); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !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;
    }
}

.lightbox { --lb-bg: rgba(9, 24, 18, .96); --lb-text: #f6f2e8; --lb-accent: #cdb685; --lb-accent-soft: rgba(205, 182, 133, .22); }
