/* Дентална клиника „Д-р Милчева“, Варна – chair lime and band cyan on clinic white.
   Colours from the clinic's own rooms (CONTENT_SOURCE.md, "Design"). One light theme. */

@font-face {
    font-family: "Overpass";
    src: url("/fonts/overpass.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Mulish";
    src: url("/fonts/mulish.woff2") format("woff2");
    font-weight: 200 1000;
    font-display: swap;
}

:root {
    --page: #f8fbf6;
    --sheet: #ffffff;
    --wash: #e7f6fa;
    --ink: #12313b;
    --ink-soft: #3f5961;
    --night: #0e2a33;
    --night-2: #153a46;
    --on-night: #eaf6f3;
    --on-night-soft: #b9d3d6;
    --cyan: #09bae8;
    --cyan-deep: #086e8a;
    --cyan-lit: #6fd8f5;
    --lime: #b9c934;
    --lime-soft: #e7eebb;
    --peach: #efb79e;
    --peach-soft: #fbe6dc;
    --line: #d5e4e4;
    --radius: 28px;
    --radius-s: 16px;
    --display: "Overpass", "Arial Narrow", Arial, sans-serif;
    --text: "Mulish", "Segoe UI", Arial, sans-serif;
    --wrap: 1200px;
    --shadow: 0 24px 60px -30px rgba(14, 42, 51, .45);
}

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

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

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font: 400 1.0625rem/1.65 var(--text);
    overflow-x: hidden;
}

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

a {
    color: var(--cyan-deep);
    text-underline-offset: .18em;
    text-decoration-thickness: 1px;
}

a:hover {
    text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 850;
    line-height: 1.04;
    letter-spacing: -.025em;
    margin: 0 0 .5em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.3rem, 6.4vw, 5.2rem);
}

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

h3 {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    letter-spacing: -.015em;
}

p {
    margin: 0 0 1em;
}

.h3 {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    letter-spacing: -.015em;
}

.wrap {
    width: min(100% - 32px, var(--wrap));
    margin-inline: auto;
}

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

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--night);
    color: var(--on-night);
    border-radius: 10px;
}

.skip:focus {
    top: 12px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    margin: 0 0 1rem;
    font: 800 .8rem/1 var(--display);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cyan-deep);
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 6px;
    border-radius: 3px;
    background: var(--lime);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    padding: .9em 1.4em;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font: 800 1rem/1.1 var(--display);
    letter-spacing: .01em;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease;
}

.btn:hover {
    background: var(--cyan-deep);
    transform: translateY(-2px);
}

.btn-lime {
    background: var(--lime);
    color: var(--ink);
}

.btn-lime:hover {
    background: #cddb4c;
    color: var(--ink);
}

.btn svg {
    width: 18px;
    height: 18px;
    flex: none;
}

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

.top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(248, 251, 246, .86);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid rgba(18, 49, 59, .08);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    padding-block: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    margin-right: auto;
}

.brand svg {
    width: 38px;
    height: 42px;
    flex: none;
}

.brand-text {
    display: grid;
    line-height: 1.05;
}

.brand-name {
    font: 900 1.25rem/1 var(--display);
    letter-spacing: -.02em;
}

.brand-sub {
    font: 700 .74rem/1.2 var(--text);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--lime);
    color: var(--ink);
    font: 800 1rem/1 var(--display);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease;
}

.call:hover {
    background: #cddb4c;
}

.call svg {
    width: 16px;
    height: 16px;
}

.lang {
    display: flex;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font: 800 .85rem/1 var(--display);
}

.lang a,
.lang span {
    padding: 7px 10px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--ink);
}

.lang span[aria-current] {
    background: var(--ink);
    color: #fff;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
    order: 4;
    width: 100%;
}

.nav a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--ink);
    font: 700 .98rem/1.1 var(--display);
    text-decoration: none;
    transition: background-color .2s ease;
}

.nav a:hover {
    background: var(--lime-soft);
}

.nav a[aria-current] {
    background: var(--ink);
    color: #fff;
}

@media (min-width: 980px) {
    .nav {
        order: 0;
        width: auto;
    }
}

@media (max-width: 520px) {
    .brand-sub {
        font-size: .66rem;
    }

    .call {
        padding: 9px 12px;
        font-size: .92rem;
    }

    .nav {
        justify-content: space-between;
        gap: 0;
        margin-inline: -8px;
        width: calc(100% + 16px);
    }

    .nav a {
        padding: 8px 8px;
        font-size: .9rem;
    }
}

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

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 6vw, 80px) 0 clamp(48px, 7vw, 100px);
}

.hero::before {
    content: "";
    position: absolute;
    width: 46vw;
    max-width: 640px;
    aspect-ratio: 1;
    right: -12vw;
    top: -10vw;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, var(--wash), transparent 70%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.08fr .92fr;
    }
}

.hero h1 {
    font-size: clamp(2.3rem, 5.6vw, 4.6rem);
    margin-bottom: .35em;
}

.hero h1 .hl {
    background: linear-gradient(transparent 62%, var(--lime) 62% 92%, transparent 92%);
    padding-inline: .06em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 22px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.chips li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--sheet);
    border: 1px solid var(--line);
    font-size: .92rem;
    font-weight: 700;
}

.chips li::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--cyan);
}

.chips li:nth-child(2)::before {
    background: var(--lime);
}

.chips li:nth-child(3)::before {
    background: var(--peach);
}

.hero-art {
    position: relative;
    margin: 0;
    padding: 0 0 26px 26px;
}

.hero-art::before {
    content: "";
    position: absolute;
    inset: 26px 26px 0 0;
    border-radius: 46% 46% 38% 38% / 40% 40% 30% 30%;
    background: linear-gradient(150deg, var(--cyan), var(--lime));
}

.hero-art a {
    display: block;
    position: relative;
}

.hero-art img {
    width: 100%;
    aspect-ratio: 4 / 4.2;
    object-fit: cover;
    border-radius: 46% 46% 38% 38% / 40% 40% 30% 30%;
    box-shadow: var(--shadow);
}

.hero-art figcaption {
    position: absolute;
    right: 6%;
    bottom: 2px;
    max-width: 70%;
    padding: 10px 16px;
    border-radius: 16px;
    background: var(--night);
    color: var(--on-night);
    font-size: .9rem;
    font-weight: 700;
    box-shadow: var(--shadow);
}

@media (prefers-reduced-motion: no-preference) {
    .hero .reveal {
        animation: rise .8s cubic-bezier(.2, .7, .2, 1) both;
    }

    .hero .reveal:nth-child(2) {
        animation-delay: .08s;
    }

    .hero .reveal:nth-child(3) {
        animation-delay: .16s;
    }

    .hero .reveal:nth-child(4) {
        animation-delay: .24s;
    }

    .hero-art {
        animation: pop 1s .15s cubic-bezier(.2, .7, .2, 1) both;
    }
}

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

@keyframes pop {
    from {
        opacity: 0;
        transform: scale(.94) rotate(-2deg);
    }
}

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

.band {
    padding: clamp(56px, 8vw, 110px) 0;
}

.band-tight {
    padding: clamp(36px, 5vw, 64px) 0;
}

.band-wash {
    background: var(--wash);
}

.band-sheet {
    background: var(--sheet);
}

.section-head {
    display: grid;
    gap: 8px 40px;
    margin-bottom: clamp(28px, 4vw, 48px);
}

@media (min-width: 900px) {
    .section-head {
        grid-template-columns: 1fr 1fr;
        align-items: end;
    }
}

.section-head h2,
.section-head p {
    margin: 0;
}

/* the three directions: a bento of coloured tiles */

.bento {
    display: grid;
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

@media (min-width: 760px) {
    .bento {
        grid-template-columns: 1.25fr 1fr;
        grid-template-rows: auto auto;
    }

    .bento li:first-child {
        grid-row: span 2;
    }
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 240px;
    padding: clamp(22px, 3vw, 36px);
    border-radius: var(--radius);
    color: var(--ink);
    text-decoration: none;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.tile-lime {
    background: var(--lime);
}

.tile-cyan {
    background: var(--cyan);
}

.tile-peach {
    background: var(--peach);
}

.tile-num {
    font: 900 1rem/1 var(--display);
    letter-spacing: .1em;
}

.tile h3 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin: .6em 0 .4em;
    max-width: 12em;
}

.tile p {
    max-width: 30em;
    font-weight: 600;
}

.tile-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 800 1rem/1 var(--display);
}

.tile-more::after {
    content: "→";
    transition: transform .2s ease;
}

.tile:hover .tile-more::after {
    transform: translateX(5px);
}

.tile img {
    width: 100%;
    margin: 18px 0 22px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-s);
}

/* the rest of the services, under the bento */

.range {
    display: grid;
    gap: 14px;
    margin-top: 16px;
    padding: clamp(22px, 3vw, 32px);
    border-radius: var(--radius);
    background: var(--page);
    border: 1px solid var(--line);
}

.range h3 {
    margin: 0;
}

.range ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.range li {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--sheet);
    border: 1px solid var(--line);
    font-weight: 700;
    font-size: .95rem;
}

.range .tile-more {
    color: var(--cyan-deep);
}

/* ---- the growth chart (ростомер) ---- */

.growth {
    position: relative;
    background: var(--night);
    color: var(--on-night);
    overflow: hidden;
}

.growth h2 {
    color: #fff;
}

.growth .eyebrow {
    color: var(--cyan-lit);
}

.growth .lead {
    color: var(--on-night-soft);
}

.chart {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 0 clamp(16px, 4vw, 48px);
    align-items: stretch;
}

@media (min-width: 900px) {
    .chart {
        grid-template-columns: 120px 1fr;
    }
}

.ruler {
    position: relative;
    border-radius: 22px;
    background:
        repeating-linear-gradient(to top, rgba(234, 246, 243, .55) 0 2px, transparent 2px 20px) left 0 bottom 0 / 34% 100% no-repeat,
        repeating-linear-gradient(to top, rgba(234, 246, 243, .9) 0 3px, transparent 3px 100px) left 0 bottom 0 / 58% 100% no-repeat,
        var(--night-2);
    overflow: hidden;
}

.ruler-fill {
    position: absolute;
    inset: 0 0 0 auto;
    width: 38%;
    background: linear-gradient(to top, var(--lime), var(--cyan));
    border-radius: 0 22px 22px 0;
}

.ruler-arm {
    position: absolute;
    left: -6px;
    right: -6px;
    top: 0;
    height: 14px;
    border-radius: 8px;
    background: var(--lime);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .ruler-fill {
            animation: fill-up linear both;
            animation-timeline: view();
            animation-range: entry 30% cover 65%;
        }

        .ruler-arm {
            animation: arm-up linear both;
            animation-timeline: view();
            animation-range: entry 30% cover 65%;
        }

        .milestones li {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 70%;
        }
    }
}

@keyframes fill-up {
    from {
        clip-path: inset(92% 0 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes arm-up {
    from {
        top: calc(92% - 7px);
    }

    to {
        top: 0;
    }
}

.milestones {
    display: flex;
    flex-direction: column-reverse;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.milestones li {
    display: grid;
    gap: 4px 24px;
    padding: 20px 22px;
    border-radius: 20px;
    background: rgba(234, 246, 243, .06);
    border: 1px solid rgba(234, 246, 243, .14);
}

@media (min-width: 760px) {
    .milestones li {
        grid-template-columns: 13rem 1fr;
        align-items: baseline;
        padding: 24px 28px;
    }
}

.age {
    margin: 0;
    font: 900 clamp(1.4rem, 2.4vw, 1.9rem)/1.05 var(--display);
    overflow-wrap: anywhere;
    letter-spacing: -.02em;
    color: var(--lime);
}

.milestones h3 {
    color: #fff;
    margin: 0 0 .3em;
}

.milestones p {
    color: var(--on-night-soft);
    margin: 0 0 .5em;
}

.milestones a {
    color: var(--cyan-lit);
    font-weight: 800;
}

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

.strip {
    display: flex;
    gap: 16px;
    padding: 4px 16px 18px;
    margin: 0;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--cyan-deep) transparent;
}

@media (min-width: 1232px) {
    .strip {
        padding-inline: calc((100vw - var(--wrap)) / 2);
    }
}

.strip li {
    flex: none;
    scroll-snap-align: center;
}

.strip figure {
    margin: 0;
}

.strip img {
    height: clamp(240px, 38vw, 400px);
    width: auto;
    border-radius: var(--radius);
    object-fit: cover;
}

.strip figcaption {
    margin-top: 10px;
    font-size: .92rem;
    font-weight: 700;
    color: var(--ink-soft);
    max-width: 30ch;
}

/* ---- statements, team, cards ---- */

.trio {
    display: grid;
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: trio;
}

@media (min-width: 760px) {
    .trio {
        grid-template-columns: repeat(3, 1fr);
    }
}

.trio li {
    padding: 26px;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
    font-weight: 600;
}

.trio li::before {
    counter-increment: trio;
    content: "0" counter(trio);
    display: block;
    margin-bottom: 14px;
    font: 900 2.4rem/1 var(--display);
    color: var(--cyan-deep);
}

.duo {
    display: grid;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}

@media (min-width: 900px) {
    .duo {
        grid-template-columns: 1fr 1fr;
    }

    .duo-wide {
        grid-template-columns: 1.3fr 1fr;
    }
}

.duo-photo {
    margin: 0;
}

.duo-photo img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.duo-photo figcaption {
    margin-top: 10px;
    font-size: .92rem;
    color: var(--ink-soft);
}

.people {
    display: grid;
    gap: 16px;
    padding: 0;
    margin: 0 0 24px;
    list-style: none;
}

.person {
    padding: 22px 24px;
    border-radius: 20px;
    background: var(--sheet);
    border-left: 8px solid var(--lime);
    box-shadow: 0 1px 0 var(--line);
}

.person:nth-child(2) {
    border-left-color: var(--cyan);
}

.person h3 {
    margin-bottom: .2em;
}

.person .role {
    font-weight: 800;
    color: var(--cyan-deep);
    margin-bottom: .5em;
}

.person p:last-child {
    margin-bottom: 0;
}

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

.call-band {
    background:
        radial-gradient(circle at 92% 10%, rgba(9, 186, 232, .35), transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(185, 201, 52, .3), transparent 45%),
        var(--night);
    color: var(--on-night);
}

.call-grid {
    display: grid;
    gap: 28px;
    align-items: center;
}

@media (min-width: 900px) {
    .call-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

.call-band h2 {
    color: #fff;
}

.big-phone {
    display: inline-block;
    font: 900 clamp(2rem, 5.6vw, 3.8rem)/1 var(--display);
    letter-spacing: -.02em;
    color: var(--lime);
    text-decoration: none;
    word-break: break-all;
}

.big-phone:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

.facts {
    display: grid;
    gap: 14px;
    margin: 0;
}

.facts div {
    padding: 16px 20px;
    border-radius: 18px;
    background: rgba(234, 246, 243, .07);
    border: 1px solid rgba(234, 246, 243, .14);
}

.facts dt {
    font: 800 .78rem/1.2 var(--display);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cyan-lit);
    margin-bottom: 4px;
}

.facts dd {
    margin: 0;
    font-weight: 700;
}

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

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

.page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 6vw, 84px) 0 clamp(36px, 5vw, 64px);
    background: var(--wash);
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 340px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 46px solid var(--lime);
    opacity: .55;
}

@media (max-width: 700px) {
    .page-hero::after {
        width: 200px;
        border-width: 30px;
        right: -110px;
        bottom: -130px;
    }
}

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

.page-hero h1 {
    font-size: clamp(2.2rem, 5.6vw, 4.4rem);
    max-width: 14em;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0 0 18px;
    list-style: none;
    font-size: .92rem;
    font-weight: 700;
}

.crumbs li + li::before {
    content: "/";
    margin-right: 6px;
    color: var(--ink-soft);
}

.crumbs [aria-current] {
    color: var(--ink-soft);
}

.prose {
    max-width: 46rem;
}

.prose h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-top: 1.6em;
}

.prose h2:first-child {
    margin-top: 0;
}

.ticks {
    padding: 0;
    margin: 0 0 1.4em;
    list-style: none;
    display: grid;
    gap: 10px;
}

.ticks li {
    position: relative;
    padding: 14px 18px 14px 52px;
    border-radius: 16px;
    background: var(--sheet);
    border: 1px solid var(--line);
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 19px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: inset 0 0 0 5px var(--lime-soft);
}

.ticks strong {
    font-family: var(--display);
    font-weight: 800;
}

.qa {
    display: grid;
    gap: 12px;
    margin: 0 0 1.4em;
}

.qa div {
    padding: 20px 22px;
    border-radius: 20px;
    background: var(--peach-soft);
}

.qa dt {
    font: 800 1.15rem/1.3 var(--display);
    margin-bottom: 6px;
}

.qa dd {
    margin: 0;
}

.side-grid {
    display: grid;
    gap: clamp(28px, 5vw, 64px);
}

@media (min-width: 960px) {
    .side-grid {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        align-items: start;
    }
}

.side-photos {
    display: grid;
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.side-photos figure {
    margin: 0;
}

.side-photos img {
    width: 100%;
    border-radius: var(--radius);
}

.side-photos figcaption {
    margin-top: 8px;
    font-size: .9rem;
    color: var(--ink-soft);
}

.others {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

@media (min-width: 760px) {
    .others {
        grid-template-columns: repeat(3, 1fr);
    }
}

.others a {
    display: block;
    height: 100%;
    padding: 20px 22px;
    border-radius: 20px;
    background: var(--sheet);
    border: 1px solid var(--line);
    color: var(--ink);
    font: 800 1.15rem/1.25 var(--display);
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}

.others a:hover {
    border-color: var(--cyan-deep);
    transform: translateY(-2px);
}

.others [aria-current] {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.others small {
    display: block;
    margin-top: 6px;
    font: 600 .9rem/1.4 var(--text);
    color: var(--ink-soft);
}

.others [aria-current] small {
    color: var(--on-night-soft);
}

.cards {
    display: grid;
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

@media (min-width: 760px) {
    .cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 24px;
    border-top: 8px solid var(--lime);
}

.card-cyan .card-body {
    border-top-color: var(--cyan);
}

.card-peach .card-body {
    border-top-color: var(--peach);
}

.card-body p {
    color: var(--ink-soft);
}

.card-body .tile-more {
    color: var(--cyan-deep);
}

.list-cols {
    columns: 2 18rem;
    column-gap: 24px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.list-cols li {
    break-inside: avoid;
    margin-bottom: 12px;
    padding: 16px 20px;
    border-radius: 18px;
    background: var(--sheet);
    border: 1px solid var(--line);
}

.list-cols strong {
    display: block;
    font: 800 1.08rem/1.3 var(--display);
}

.list-cols span {
    color: var(--ink-soft);
}

.equip {
    counter-reset: eq;
    padding: 0;
    margin: 0;
    list-style: none;
    display: grid;
    gap: 0;
    border-top: 2px solid var(--ink);
}

.equip li {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 0 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.equip li::before {
    counter-increment: eq;
    content: counter(eq, decimal-leading-zero);
    font: 900 1.1rem/1.5 var(--display);
    color: var(--cyan-deep);
}

.equip strong {
    font-family: var(--display);
    font-weight: 800;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.gallery figure {
    margin: 0;
}

.gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
    transition: transform .3s ease;
}

.gallery a:hover img {
    transform: scale(1.02);
}

.gallery figcaption {
    margin-top: 8px;
    font-size: .9rem;
    color: var(--ink-soft);
}

.docs {
    display: grid;
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

@media (min-width: 760px) {
    .docs {
        grid-template-columns: 1fr 1fr;
    }
}

.docs figure {
    margin: 0;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
    height: 100%;
}

.docs img {
    width: 100%;
    border-radius: 14px;
}

.docs figcaption {
    padding: 14px 6px 4px;
    font-size: .95rem;
}

.docs figcaption strong {
    display: block;
    font: 800 1.1rem/1.3 var(--display);
    margin-bottom: 4px;
}

.note {
    font-size: .92rem;
    color: var(--ink-soft);
}

.nhif {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 18px;
    background: var(--lime-soft);
    font-weight: 800;
}

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

.contact-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 960px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        align-items: start;
    }
}

.panel {
    padding: clamp(22px, 3vw, 36px);
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
}

.panel-night {
    background: var(--night);
    color: var(--on-night);
    border: 0;
}

.panel-night h2 {
    color: #fff;
}

.panel-night .facts {
    margin-top: 22px;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form label,
.contact-form legend {
    display: block;
    margin-bottom: 6px;
    font: 800 .98rem/1.3 var(--display);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--line);
    border-radius: 14px;
    background: var(--page);
    color: var(--ink);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--cyan-deep);
    outline: none;
    box-shadow: 0 0 0 3px rgba(8, 110, 138, .25);
}

.contact-form fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

.choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.choice {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font: 600 1rem/1.3 var(--text) !important;
}

.choice input {
    width: 20px;
    height: 20px;
    accent-color: var(--cyan-deep);
}

.contact-form ul {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    color: #a02020;
    font-weight: 700;
}

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

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

.contact-sent {
    padding: 16px 20px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: var(--lime-soft);
}

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

.foot {
    background: var(--night);
    color: var(--on-night-soft);
    padding: clamp(48px, 6vw, 80px) 0 28px;
    font-size: .98rem;
}

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

.foot-grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 760px) {
    .foot-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
    }
}

.foot h2 {
    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cyan-lit);
    margin-bottom: 14px;
}

.foot ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.foot address {
    font-style: normal;
}

.foot-brand {
    color: #fff;
}

.foot-brand .brand-sub {
    color: var(--on-night-soft);
}

.foot-phone {
    font: 900 1.4rem/1.2 var(--display);
    color: var(--lime) !important;
    text-decoration: none;
}

.foot-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(234, 246, 243, .15);
    font-size: .9rem;
}

.foot-bottom p {
    margin: 0;
}

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

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background:
        radial-gradient(circle at 85% 15%, var(--wash), transparent 45%),
        var(--page);
}

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

.not-found .brand {
    margin-bottom: 28px;
}

.not-found h1 {
    font-size: clamp(2.2rem, 7vw, 3.6rem);
}

.not-found h2 {
    font-size: 1.6rem;
    margin-top: 1.6em;
}

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

.lightbox {
    --lb-bg: rgba(8, 26, 32, .94);
    --lb-text: #eaf6f3;
    --lb-accent: #b9c934;
    --lb-accent-soft: rgba(185, 201, 52, .25);
}
