/* Ортодонтска практика д-р Богданова: the archwire of the practice's own logo.
   Violet of the logo's inner frame as the night of the page, the turquoise of its teeth, the sky blue of its outer
   frame, the steel grey of its wire, on enamel white. Chiron GoRound TC for display and text, Jura for numbers. */

@font-face {
    font-family: "Chiron GoRound";
    src: url("/fonts/chiron-goround.woff2") format("woff2");
    font-weight: 200 900;
    font-display: swap;
}

/* Jura has no ѝ (U+045D): leave it to the next face. */
@font-face {
    font-family: "Jura";
    src: url("/fonts/jura.woff2") format("woff2");
    font-weight: 300 700;
    font-display: swap;
    unicode-range: U+0020-007E, U+00A0-00FF, U+0400-045C, U+045E-045F, U+2010-2026, U+2030, U+2039-203A, U+20AC, U+2116, U+2122;
}

:root {
    --night: #22102f;
    --violet-deep: #2a1538;
    --violet-lit: #3a1f4d;
    --violet: #8954a2;          /* the logo's inner frame, measured */
    --violet-ink: #6b3a86;      /* the same hue, dark enough for text on white */
    --tooth: #12b9c3;           /* the logo's teeth, measured */
    --tooth-ink: #0a6d74;       /* turquoise that carries text on white */
    --sky: #62c9db;             /* the logo's outer frame, measured */
    --sky-soft: #d9f2f6;
    --steel: #6b6d6f;           /* the logo's wire */
    --steel-light: #c3c6ca;
    --paper: #fbf9fd;
    --lilac: #f2edf7;
    --line: #e2d9ec;
    --text: #22102f;
    --text-soft: #4d3d5a;
    --on-dark: #f6f1fb;
    --on-dark-soft: #d3c6e0;
    --radius: 22px;
    --radius-lg: 34px;
    --shadow: 0 1px 2px rgb(34 16 47 / .08), 0 14px 40px -18px rgb(34 16 47 / .35);
    --sans: "Chiron GoRound", "Segoe UI", system-ui, sans-serif;
    --num: "Jura", "Chiron GoRound", system-ui, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font: 400 1.0625rem/1.6 var(--sans);
    overflow-x: clip;
}

img,
svg {
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: var(--violet-ink);
    text-decoration-thickness: 1.5px;
    text-underline-offset: .18em;
}

a:hover {
    color: var(--night);
}

:focus-visible {
    outline: 3px solid var(--tooth);
    outline-offset: 3px;
    border-radius: 6px;
}

h1,
h2,
h3 {
    margin: 0 0 .5em;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.015em;
    text-wrap: balance;
}

h2 {
    font-size: clamp(1.8rem, 4.2vw, 3rem);
}

h3 {
    font-size: 1.3rem;
}

p {
    margin: 0 0 1em;
}

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

.nowrap {
    white-space: nowrap;
}

.num {
    font-family: var(--num);
    font-weight: 700;
    font-variant-numeric: lining-nums tabular-nums;
    letter-spacing: .01em;
    white-space: nowrap;
}

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

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: .6rem 1rem;
    background: var(--night);
    color: var(--on-dark);
    border-radius: 10px;
}

.skip:focus {
    top: 1rem;
}

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

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(251 249 253 / .88);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid rgb(137 84 162 / .16);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.25rem;
    padding-block: .55rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: var(--night);
    text-decoration: none;
    margin-right: auto;
}

.brand img {
    width: auto;
    height: 58px;
}

.brand-name {
    font-weight: 800;
    font-size: 1.12rem;
    line-height: 1.1;
}

.nav {
    display: flex;
    gap: .25rem;
}

.nav a,
.lang a,
.lang span {
    display: inline-block;
    padding: .45rem .8rem;
    border-radius: 999px;
    color: var(--night);
    text-decoration: none;
    font-weight: 600;
}

.nav a:hover,
.lang a:hover {
    background: var(--lilac);
}

.nav a[aria-current="page"] {
    background: var(--night);
    color: var(--on-dark);
}

.lang {
    display: flex;
    font-family: var(--num);
    font-weight: 700;
    font-size: .95rem;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 2px;
}

.lang a,
.lang span {
    padding: .25rem .6rem;
}

.lang span[aria-current] {
    background: var(--sky-soft);
    color: var(--night);
}

.call {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1rem;
    border-radius: 999px;
    background: var(--tooth);
    color: var(--night);
    text-decoration: none;
    font-size: 1.05rem;
    box-shadow: 0 6px 18px -8px rgb(18 185 195 / .9);
    transition: transform .2s ease, background-color .2s ease;
}

.call:hover {
    background: var(--sky);
    color: var(--night);
    transform: translateY(-1px);
}

@media (max-width: 860px) {
    .top-row {
        gap: .4rem .6rem;
    }

    .brand img {
        height: 48px;
    }

    .nav {
        order: 3;
        flex: 1 1 auto;
    }

    .lang {
        order: 4;
    }
}

@media (max-width: 520px) {
    .brand-name {
        display: none;
    }

    .nav a {
        padding: .4rem .65rem;
    }
}

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

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.4rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    font-variant-numeric: lining-nums;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-tooth {
    background: var(--tooth);
    color: var(--night);
    box-shadow: 0 10px 30px -12px rgb(18 185 195 / .9);
}

.btn-tooth:hover {
    background: #fff;
    color: var(--night);
}

.btn-ghost {
    border-color: rgb(246 241 251 / .5);
    color: var(--on-dark);
}

.btn-ghost:hover {
    border-color: var(--on-dark);
    color: var(--on-dark);
    background: rgb(255 255 255 / .08);
}

.btn-violet {
    background: var(--night);
    color: var(--on-dark);
}

.btn-violet:hover {
    background: var(--violet-lit);
    color: var(--on-dark);
}

.btn-line {
    border-color: var(--night);
    color: var(--night);
}

.btn-line:hover {
    background: var(--night);
    color: var(--on-dark);
}

/* ---- hero with the archwire ---- */

.eyebrow {
    margin: 0 0 1rem;
    font-family: var(--num);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--tooth);
}

.eyebrow-dark {
    color: var(--tooth-ink);
}

.hero {
    position: relative;
    overflow: clip;
    background:
        radial-gradient(60rem 30rem at 85% -10%, rgb(137 84 162 / .55), transparent 60%),
        radial-gradient(40rem 26rem at -5% 110%, rgb(18 185 195 / .22), transparent 60%),
        linear-gradient(170deg, var(--violet-lit), var(--violet-deep) 45%, var(--night));
    color: var(--on-dark);
    padding-top: clamp(2.5rem, 5vw, 4rem);
}

.hero-text {
    position: relative;
    z-index: 1;
}

.hero h1 {
    max-width: 21ch;
    font-size: clamp(2.4rem, 6.2vw, 5rem);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -.03em;
}

.hero .lead {
    max-width: 34rem;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    color: var(--on-dark-soft);
}

.arch {
    display: block;
    width: 100%;
    height: clamp(180px, 19vw, 270px);
    margin-top: clamp(1rem, 3vw, 1.5rem);
    overflow: visible;
}

.arch-crown {
    fill: rgb(255 255 255 / .06);
    stroke: var(--tooth);
    stroke-width: 8;
    stroke-linejoin: round;
}

.arch-wire {
    fill: none;
    stroke: var(--steel-light);
    stroke-width: 6;
    stroke-linecap: round;
}

.arch-bracket {
    fill: var(--steel-light);
}

.arch-slot {
    stroke: var(--steel);
    stroke-width: 6;
}

@media (prefers-reduced-motion: no-preference) {
    .arch-wire {
        stroke-dasharray: 1;
        animation: wire 1.1s cubic-bezier(.6, 0, .3, 1) .25s backwards;
    }

    .arch-tooth {
        animation: align 1.15s cubic-bezier(.3, 1.35, .45, 1) backwards;
        animation-delay: calc(1.05s + var(--i) * 90ms);
    }

    .hero-text > * {
        animation: rise .8s cubic-bezier(.2, .8, .2, 1) backwards;
    }

    .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 wire {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
}

@keyframes align {
    from { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); }
    to { transform: none; }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
}

/* ---- sections ---- */

.band {
    padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.band-tight {
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.more {
    margin-top: 1.5rem;
    font-weight: 700;
}

/* the price list as a bento: braces large, the appliance and the examination beside it */
.bento {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.tile {
    position: relative;
    overflow: hidden;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1.5px solid var(--line);
    box-shadow: var(--shadow);
    container-type: inline-size;
}

.tile h3 {
    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
}

.tile-braces {
    grid-row: span 2;
    background:
        radial-gradient(28rem 18rem at 100% 0, rgb(18 185 195 / .25), transparent 65%),
        linear-gradient(160deg, var(--violet-lit), var(--night));
    border-color: transparent;
    color: var(--on-dark);
}

.tile-from::after {
    /* a short piece of the archwire with three brackets, as at the foot of the inner pages' band */
    content: "";
    display: block;
    height: 24px;
    margin-top: 1.2rem;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='288' height='24' viewBox='0 0 288 24'%3E%3Crect y='10' width='288' height='4' fill='rgb%28195,198,202%29'/%3E%3Cg fill='rgb%28195,198,202%29'%3E%3Crect x='10' y='1' width='30' height='22' rx='6'/%3E%3Crect x='129' y='1' width='30' height='22' rx='6'/%3E%3Crect x='248' y='1' width='30' height='22' rx='6'/%3E%3C/g%3E%3Cg fill='rgb%28107,109,111%29'%3E%3Crect x='10' y='10' width='30' height='4'/%3E%3Crect x='129' y='10' width='30' height='4'/%3E%3Crect x='248' y='10' width='30' height='4'/%3E%3C/g%3E%3C/svg%3E") center / 288px 24px no-repeat,
        linear-gradient(var(--steel-light), var(--steel-light)) 0 50% / 100% 4px no-repeat;
    opacity: .8;
    -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.tile-from {
    position: relative;
    z-index: 1;
    margin: 0 0 1.6rem;
    font-size: clamp(1.6rem, 9cqi, 3rem);
    color: var(--tooth);
    line-height: 1.1;
}

.kinds {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .6rem;
}

.kinds li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: .25rem 1rem;
    padding: .85rem 1.1rem;
    border-radius: 16px;
    background: rgb(255 255 255 / .07);
    border: 1px solid rgb(255 255 255 / .12);
    font-weight: 700;
    font-size: 1.1rem;
}

.kinds .num {
    font-size: 1.25rem;
    color: var(--on-dark);
}

.tile-appliance {
    background: var(--sky);
    border-color: transparent;
}

.tile-exam {
    background: #fff;
}

.tile-price {
    margin: 1.4rem 0 0;
    font-size: clamp(1.5rem, 9cqi, 2.6rem);
    line-height: 1.1;
    color: var(--night);
}

@media (max-width: 760px) {
    .bento {
        grid-template-columns: minmax(0, 1fr);
    }

    .tile-braces {
        grid-row: auto;
    }
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .tile {
            animation: tile-in linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 70%;
        }
    }
}

@keyframes tile-in {
    from { opacity: .2; transform: translateY(40px) scale(.97); }
}

/* where: the sky band with the map picture of the original */
.where {
    padding-block: clamp(3.5rem, 8vw, 6rem);
    background:
        repeating-linear-gradient(90deg, transparent 0 58px, rgb(34 16 47 / .04) 58px 60px),
        var(--lilac);
}

.where-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.phones {
    display: grid;
    gap: .6rem;
    margin: 1.5rem 0 0;
}

.phones div {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 1rem;
    align-items: baseline;
}

.phones dt {
    font-family: var(--num);
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.phones dd {
    margin: 0;
    font-size: 1.15rem;
    overflow-wrap: anywhere;
}

.phones .num {
    font-size: 1.35rem;
}

.map-card {
    margin: 0;
    padding: .75rem;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
    border: 3px solid var(--sky);
}

.map-card a {
    display: block;
    border-radius: calc(var(--radius-lg) - 12px);
    overflow: hidden;
}

.map-card img {
    display: block;
    width: 100%;
    transition: transform .4s ease;
}

.map-card a:hover img {
    transform: scale(1.04);
}

.map-card figcaption {
    padding: .7rem .4rem .2rem;
    font-size: .95rem;
    color: var(--text-soft);
}

.map-card-flat {
    margin-top: 1.8rem;
    box-shadow: none;
}

@media (max-width: 820px) {
    .where-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

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

.page-hero {
    position: relative;
    overflow: clip;
    padding-block: clamp(2.8rem, 7vw, 5rem) clamp(4.6rem, 8vw, 5.6rem);
    background:
        linear-gradient(transparent calc(100% - 3.15rem), var(--steel-light) calc(100% - 3.15rem) calc(100% - 2.9rem), transparent calc(100% - 2.9rem)),
        radial-gradient(50rem 24rem at 90% 0, rgb(137 84 162 / .5), transparent 60%),
        linear-gradient(170deg, var(--violet-lit), var(--night));
    color: var(--on-dark);
}

.page-hero::after {
    /* three brackets of the logo's archwire on the wire line at the foot of the band */
    content: "";
    position: absolute;
    right: clamp(1.25rem, 8vw, 8rem);
    bottom: 2.4rem;
    width: 288px;
    max-width: 70vw;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='288' height='24' viewBox='0 0 288 24'%3E%3Crect y='10' width='288' height='4' fill='rgb%28195,198,202%29'/%3E%3Cg fill='rgb%28195,198,202%29'%3E%3Crect x='10' y='1' width='30' height='22' rx='6'/%3E%3Crect x='129' y='1' width='30' height='22' rx='6'/%3E%3Crect x='248' y='1' width='30' height='22' rx='6'/%3E%3C/g%3E%3Cg fill='rgb%28107,109,111%29'%3E%3Crect x='10' y='10' width='30' height='4'/%3E%3Crect x='129' y='10' width='30' height='4'/%3E%3Crect x='248' y='10' width='30' height='4'/%3E%3C/g%3E%3C/svg%3E") right center / contain no-repeat;
}

.page-hero h1 {
    font-size: clamp(2.3rem, 6.5vw, 4.6rem);
    font-weight: 850;
    letter-spacing: -.03em;
    line-height: 1.02;
}

.page-hero .lead {
    max-width: 36rem;
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    color: var(--on-dark-soft);
    margin-bottom: 0;
}

.price-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 330px);
    gap: 1.5rem;
    align-items: start;
}

.price-card {
    padding: clamp(1.2rem, 3vw, 2.4rem);
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1.5px solid var(--line);
    box-shadow: var(--shadow);
    container-type: inline-size;
}

.price-head {
    display: flex;
    justify-content: space-between;
    padding: 0 .2rem .8rem;
    border-bottom: 2px solid var(--night);
    font-family: var(--num);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.price-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: line;
}

.price-list li {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    padding: 1.15rem .2rem;
    border-bottom: 1px solid var(--line);
    counter-increment: line;
}

.price-list li::before {
    content: counter(line, decimal-leading-zero);
    font-family: var(--num);
    font-weight: 700;
    font-size: .85rem;
    color: var(--tooth-ink);
}

.pl-name {
    font-weight: 700;
    font-size: clamp(1.02rem, 3.6cqi, 1.25rem);
}

.pl-dots {
    flex: 1 1 1rem;
    min-width: 1rem;
    border-bottom: 2px dotted var(--steel-light);
    transform: translateY(-.3em);
}

.pl-price {
    font-size: clamp(1.1rem, 4.6cqi, 1.55rem);
    color: var(--night);
}

@container (max-width: 520px) {
    .price-list li {
        flex-wrap: wrap;
    }

    .pl-name {
        flex: 1 1 calc(100% - 2.5rem);
    }

    .pl-dots {
        display: none;
    }

    .pl-price {
        margin-left: auto;
    }
}

.ask {
    padding: clamp(1.4rem, 3vw, 2rem);
    border-radius: var(--radius-lg);
    background: var(--sky);
    container-type: inline-size;
}

.ask h2 {
    font-size: 1.5rem;
}

.ask a {
    color: var(--night);
}

.ask-phone {
    margin: 1.2rem 0 .4rem;
    font-size: clamp(1.4rem, 10cqi, 2.1rem);
}

.ask-phone a {
    text-decoration: none;
}

@media (max-width: 860px) {
    .price-wrap {
        grid-template-columns: minmax(0, 1fr);
    }
}

.duo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 1.5rem;
    align-items: start;
}

.card {
    padding: clamp(1.3rem, 3vw, 2.2rem);
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1.5px solid var(--line);
    box-shadow: var(--shadow);
    container-type: inline-size;
}

.card h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.big-phone {
    margin: 0 0 1rem;
    font-size: clamp(1.6rem, 11cqi, 2.8rem);
    line-height: 1.1;
}

.big-phone a {
    color: var(--night);
    text-decoration: none;
    background: linear-gradient(transparent 62%, var(--sky-soft) 62%);
}

.card .phones div {
    grid-template-columns: 5.5rem minmax(0, 1fr);
}

@media (max-width: 860px) {
    .duo {
        grid-template-columns: minmax(0, 1fr);
    }
}

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

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-form label {
    display: block;
    margin-bottom: .35rem;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .8rem 1rem;
    border: 1.5px solid #9d8fab;
    border-radius: 14px;
    background: var(--paper);
    color: var(--text);
    font: inherit;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
    border-color: var(--violet);
    outline-offset: 1px;
}

.contact-form textarea::placeholder {
    color: #6c5f78;
}

.contact-form .btn {
    justify-self: start;
}

.form-hint {
    margin: 0;
    font-size: .92rem;
    color: var(--text-soft);
}

.contact-sent {
    margin-bottom: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    background: var(--sky-soft);
}

.contact-sent strong {
    display: block;
}

.contact-form ul {
    margin: .3rem 0 0;
    padding-left: 1.1rem;
    color: #a3123a;
}

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

.foot {
    background: var(--night);
    color: var(--on-dark-soft);
    padding-top: clamp(3rem, 6vw, 4.5rem);
}

.foot a {
    color: var(--on-dark);
}

.foot a:hover {
    color: var(--sky);
}

.foot h2 {
    margin-bottom: .6rem;
    font-family: var(--num);
    font-size: .9rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--sky);
}

.foot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
}

.foot-id {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.foot-logo {
    flex: none;
    width: 112px;
    border-radius: 18px;
}

.foot-name {
    margin-bottom: .4rem;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--on-dark);
}

.foot address {
    font-style: normal;
}

.foot-bottom {
    margin-top: 2.5rem;
    padding-block: 1.3rem;
    border-top: 1px solid rgb(255 255 255 / .14);
    font-size: .92rem;
}

.foot-bottom p {
    margin: 0;
}

@media (max-width: 860px) {
    .foot-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

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

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1.25rem;
    background: linear-gradient(170deg, var(--violet-lit), var(--night));
    color: var(--on-dark);
}

.not-found > div {
    max-width: 36rem;
}

.not-found img {
    width: 150px;
    border-radius: 20px;
}

.not-found h1 {
    margin-top: 1.5rem;
    font-size: clamp(2rem, 6vw, 3rem);
}

.not-found h2 {
    margin-top: 2.5rem;
    font-size: 1.5rem;
}

.not-found a:not(.btn) {
    color: var(--sky);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !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: rgb(22 10 31 / .94);
    --lb-accent: #12b9c3;
    --lb-accent-soft: rgb(18 185 195 / .25);
}

a[href^="tel:"] {
    white-space: nowrap;
}
