/* Дентална практика „Смайл“ – the dental arch in the inks of the practice's own logo.
   Light page (enamel white) with full-bleed night bands in the logo's deep blue; Playpen Sans for display,
   Nevermind for text. Palette and choices: CONTENT_SOURCE.md, "Design". */

@font-face {
    font-family: "Playpen Sans";
    src: url("/fonts/playpen-sans.woff2") format("woff2");
    font-weight: 600 800;
    font-display: swap;
}

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

:root {
    --page: #f6fafc;
    --sheet: #ffffff;
    --wash: #cfe6f5;      /* the pale blue of the practice's chairs */
    --wash-2: #e6f2fa;
    --line: #d3e4ee;
    --ink: #0f2530;
    --muted: #435d69;
    --link: #00658f;
    --cyan: #00a0e0;      /* the tooth of the logo */
    --deep: #003850;      /* the dark end of the logo's gradient */
    --night: #00222f;
    --on-dark: #e9f5fb;
    --on-dark-muted: #b6d3e2;
    --wood: #6e2414;      /* the cherry wood of the cabinets */
    --radius: 22px;
    --radius-lg: 36px;
    --shadow: 0 18px 40px -22px rgba(0, 34, 47, 0.45);
    --display: "Playpen Sans", "Comic Sans MS", system-ui, sans-serif;
    --text: "Nevermind", system-ui, -apple-system, "Segoe UI", sans-serif;
    --lb-bg: rgba(0, 20, 28, 0.95);
    --lb-accent: #00a0e0;
    --lb-accent-soft: rgba(0, 160, 224, 0.22);
}

*,
*::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-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: var(--link);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}

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

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

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}

h3 {
    font-size: 1.3rem;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1em;
}

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

.visually-hidden {
    position: absolute;
    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: #fff;
    border-radius: 10px;
}

.skip:focus {
    top: 12px;
}

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

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid rgba(0, 56, 80, 0.1);
}

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

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

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-inline: auto;
}

.nav a {
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.nav a:hover {
    background: var(--wash-2);
}

.nav a[aria-current="page"] {
    background: var(--deep);
    color: #fff;
}

.top-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--deep);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s, transform 0.2s;
}

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

.lang {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 600;
}

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

.lang span {
    background: var(--wash);
}

@media (max-width: 860px) {
    .top-row {
        justify-content: space-between;
    }

    .nav {
        order: 3;
        width: 100%;
        margin: 0;
        justify-content: center;
    }

    .nav a {
        padding: 6px 10px;
        font-size: 0.95rem;
    }

    .brand img {
        width: 80px;
    }
}

@media (max-width: 560px) {
    /* four items fit one row on a phone; the logo is the link home */
    .nav a:first-child {
        display: none;
    }
}

@media (max-width: 400px) {
    .call {
        padding: 9px 12px;
        font-size: 0.95rem;
    }

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--deep);
    color: #fff;
    font: 700 1rem/1.2 var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

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

.btn-cyan {
    background: var(--cyan);
    color: var(--night);
}

.btn-ghost {
    background: transparent;
    border-color: currentColor;
    color: var(--on-dark);
}

/* ---- hero: the dental arch around the logo ---- */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60% 70% at 78% 45%, rgba(0, 160, 224, 0.32), transparent 70%),
        radial-gradient(50% 60% at 0% 100%, rgba(0, 160, 224, 0.12), transparent 70%),
        linear-gradient(160deg, var(--deep), var(--night) 65%);
    color: var(--on-dark);
    padding-block: clamp(36px, 7vw, 96px) clamp(48px, 8vw, 110px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: clamp(24px, 5vw, 64px);
}

.kicker {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 160, 224, 0.16);
    color: #9fdcf6;
    font-weight: 600;
    font-size: 0.95rem;
}

.hero h1 {
    font-size: clamp(2.3rem, 6.2vw, 4.7rem);
    line-height: 1.04;
    color: #fff;
    margin-bottom: 22px;
}

.hero h1 em {
    font-style: normal;
    color: var(--cyan);
}

.hero .lead {
    max-width: 38ch;
    font-size: 1.15rem;
    color: var(--on-dark-muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hero-phones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.98rem;
    color: var(--on-dark-muted);
}

.hero-phones a {
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.arch-stage {
    position: relative;
    width: min(100%, 520px);
    margin-inline: auto;
    aspect-ratio: 565 / 508;
}

.arch {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.arch .fissure {
    fill: none;
    stroke: #8fbcd2;
    stroke-width: 1.4;
    stroke-linecap: round;
}

.arch-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 38%;
    max-width: 200px;
    translate: -50% -50%;
}

.arch-caption {
    position: absolute;
    left: 50%;
    bottom: 26%;
    translate: -50% 0;
    margin: 0;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(0.85rem, 1.6vw, 1.05rem);
    color: #9fdcf6;
    white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
    .arch .tooth {
        transform-box: fill-box;
        transform-origin: center;
        animation: tooth-in 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) backwards;
        animation-delay: calc(0.25s + var(--i) * 45ms);
    }

    .arch-logo,
    .arch-caption {
        animation: fade-up 0.7s 1.6s ease-out backwards;
    }

    .hero-copy > * {
        animation: fade-up 0.7s ease-out backwards;
    }

    .hero-copy > :nth-child(2) { animation-delay: 0.1s; }
    .hero-copy > :nth-child(3) { animation-delay: 0.2s; }
    .hero-copy > :nth-child(4) { animation-delay: 0.3s; }
    .hero-copy > :nth-child(5) { animation-delay: 0.4s; }
}

@keyframes tooth-in {
    from {
        opacity: 0;
        scale: 0.3;
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        translate: 0 18px;
    }
}

.arch-logo {
    animation-name: fade-up-centered;
}

@keyframes fade-up-centered {
    from {
        opacity: 0;
        translate: -50% -30%;
    }
}

@media (max-width: 860px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .arch-stage {
        width: min(100%, 380px);
    }
}

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

.section {
    padding-block: clamp(56px, 8vw, 104px);
}

.section-tight {
    padding-block: clamp(40px, 6vw, 72px);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--wood);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lede {
    font-size: 1.18rem;
    color: var(--muted);
    max-width: 62ch;
}

.split {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

@media (max-width: 860px) {
    .split {
        grid-template-columns: 1fr;
    }
}

.photo {
    margin: 0;
    position: relative;
}

.photo a {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.photo img {
    width: 100%;
    transition: transform 0.5s ease;
}

.photo a:hover img {
    transform: scale(1.03);
}

.photo figcaption {
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--muted);
}

.photo-tilt a {
    rotate: 2deg;
}

/* bento of the facts the original states */

.bento {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
        "nzok nzok eight"
        "auto kids eight"
        "quote quote quote";
    gap: 16px;
    margin-top: 36px;
}

.tile {
    position: relative;
    padding: 26px;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
    overflow: hidden;
}

.tile h3 {
    margin-bottom: 8px;
}

.tile p {
    margin: 0;
    color: var(--muted);
}

.t-nzok { grid-area: nzok; }
.t-eight { grid-area: eight; }
.t-auto { grid-area: auto; }
.t-kids { grid-area: kids; }
.t-quote { grid-area: quote; }

.tile-night {
    background: linear-gradient(150deg, var(--deep), var(--night));
    border-color: transparent;
    color: var(--on-dark);
}

.tile-night p {
    color: var(--on-dark-muted);
}

.tile-night a {
    color: #9fdcf6;
}

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

.tile-wash p {
    color: #24414e;
}

.tile-figure {
    display: block;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(4rem, 9vw, 6.5rem);
    line-height: 0.9;
    color: var(--cyan);
    margin-bottom: 12px;
}

.tile-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(90deg, var(--sheet), var(--wash-2));
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    line-height: 1.3;
    color: var(--ink);
}

.tile-quote p {
    color: var(--ink);
}

.tile-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    color: var(--link);
}

.tile-night .tile-icon {
    color: var(--cyan);
}

@media (max-width: 960px) {
    .bento {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "nzok nzok"
            "eight auto"
            "eight kids"
            "quote quote";
    }
}

@media (max-width: 560px) {
    .bento {
        grid-template-columns: 1fr;
        grid-template-areas: "nzok" "eight" "auto" "kids" "quote";
    }
}

/* doctors */

.doctors {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 32px;
}

.doctor {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    align-items: start;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--sheet);
    border: 1px solid var(--line);
}

.doctor figure {
    margin: 0;
}

.doctor figure a {
    display: block;
    width: fit-content;
    border-radius: 18px;
    overflow: hidden;
}

.doctor img {
    width: 150px;
}

.doctor h3 {
    margin-bottom: 4px;
}

.doctor .meta {
    margin-bottom: 10px;
    color: var(--wood);
    font-weight: 600;
}

.doctor p {
    color: var(--muted);
}

.doctor .phone-line a {
    font-weight: 700;
}

@media (max-width: 960px) {
    .doctors {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .doctor {
        grid-template-columns: 1fr;
    }

    .doctor img {
        width: 160px;
    }
}

/* the eight kinds of treatment: a sideways strip */

.band-night {
    background:
        radial-gradient(50% 80% at 100% 0%, rgba(0, 160, 224, 0.22), transparent 70%),
        var(--night);
    color: var(--on-dark);
}

.band-night .eyebrow {
    color: #9fdcf6;
}

.band-night .lede {
    color: var(--on-dark-muted);
}

.band-night a {
    color: #9fdcf6;
}

.band-wash {
    background: linear-gradient(180deg, var(--wash-2), var(--page));
}

.strip-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 300px);
    gap: 16px;
    margin: 32px 0 0;
    padding: 4px 4px 18px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--cyan) transparent;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
}

.strip li:last-child {
    margin-right: 40px;
}

.strip li {
    scroll-snap-align: start;
}

.strip a {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(159, 220, 246, 0.22);
    color: var(--on-dark);
    text-decoration: none;
    transition: background-color 0.25s, transform 0.25s, border-color 0.25s;
}

.strip a:hover {
    background: rgba(0, 160, 224, 0.16);
    border-color: var(--cyan);
    transform: translateY(-4px);
}

.strip-num {
    font-family: var(--display);
    font-weight: 800;
    font-size: 3rem;
    line-height: 1;
    color: var(--cyan);
}

.strip h3 {
    margin: 14px 0 8px;
    color: #fff;
}

.strip p {
    margin: 0;
    color: var(--on-dark-muted);
    font-size: 0.98rem;
}

.strip .more {
    margin-top: auto;
    padding-top: 16px;
    color: #9fdcf6;
    font-weight: 600;
}

/* photo mosaic */

.mosaic {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.mosaic li {
    grid-column: span 2;
}

.mosaic a {
    display: block;
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--wash);
}

.mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    transition: transform 0.5s ease;
}

.mosaic a:hover img {
    transform: scale(1.04);
}

.mosaic-full li {
    grid-column: span 3;
}

.mosaic-full a {
    height: auto;
}

.mosaic figure {
    margin: 0;
    height: 100%;
}

.mosaic figcaption {
    padding: 10px 4px 0;
    font-size: 0.95rem;
    color: var(--muted);
}

@media (max-width: 720px) {
    .mosaic {
        grid-template-columns: 1fr 1fr;
    }

    .mosaic li {
        grid-column: span 1;
    }

    .mosaic-full li {
        grid-column: span 2;
    }

    .mosaic li:first-child {
        grid-column: span 2;
    }
}

/* call band */

.call-band {
    background: linear-gradient(120deg, var(--cyan), #0083b8);
    color: var(--night);
}

.call-band .wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
}

.call-band h2 {
    margin-bottom: 6px;
}

.call-band p {
    margin: 0;
    color: #00222f;
}

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

.call-list a {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--night);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s;
}

.call-list a:hover {
    transform: translateX(4px);
}

.call-list span {
    color: var(--on-dark-muted);
    font-weight: 500;
}

@media (max-width: 760px) {
    .call-band .wrap {
        grid-template-columns: 1fr;
    }
}

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

.page-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(44px, 7vw, 88px) clamp(40px, 6vw, 72px);
    background:
        radial-gradient(45% 90% at 95% 10%, rgba(0, 160, 224, 0.3), transparent 70%),
        linear-gradient(160deg, var(--deep), var(--night) 70%);
    color: var(--on-dark);
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5.6vw, 4rem);
    color: #fff;
    max-width: 18ch;
}

.page-hero .lead {
    max-width: 58ch;
    font-size: 1.15rem;
    color: var(--on-dark-muted);
    margin: 0;
}

.page-hero .arch-mini {
    position: absolute;
    right: -60px;
    top: 50%;
    width: 340px;
    translate: 0 -50%;
    opacity: 0.22;
    pointer-events: none;
}

.page-hero .arch-mini .arch {
    position: static;
}

@media (max-width: 720px) {
    .page-hero .arch-mini {
        width: 220px;
        right: -90px;
        opacity: 0.14;
    }
}

/* services: a numbered trail */

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

.trail > li {
    display: grid;
    grid-template-columns: clamp(64px, 10vw, 120px) 1fr;
    gap: clamp(16px, 3vw, 36px);
    padding-block: 34px;
    border-top: 1px solid var(--line);
    scroll-margin-top: 120px;
}

.trail > li:first-child {
    border-top: 0;
}

.trail-num {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 0.9;
    color: var(--wood);
}

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

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

.ticks li {
    position: relative;
    padding-left: 30px;
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 16px;
    height: 18px;
    background: var(--cyan);
    /* a small tooth */
    clip-path: path("M8 0C3 0 0 2 0 6c0 3 1 5 2 8 .5 2 1 4 2.5 4S6 15 8 12c2 3 2 6 3.5 6S13.5 16 14 14c1-3 2-5 2-8 0-4-3-6-8-6z");
}

.trail-photo {
    margin: 22px 0 0;
    max-width: 420px;
}

/* about */

.facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 32px;
}

@media (max-width: 720px) {
    .facts {
        grid-template-columns: 1fr;
    }
}

.doctor-long {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: clamp(22px, 4vw, 48px);
    align-items: start;
    padding-block: 36px;
    border-top: 1px solid var(--line);
}

.doctor-long:first-of-type {
    border-top: 0;
}

.doctor-long figure {
    margin: 0;
}

.doctor-long figure a {
    display: block;
    width: fit-content;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.doctor-long img {
    width: 200px;
}

.doctor-long .meta {
    color: var(--wood);
    font-weight: 600;
}

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

.tags li {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--wash);
    color: #173542;
    font-size: 0.93rem;
    font-weight: 600;
}

@media (max-width: 620px) {
    .doctor-long {
        grid-template-columns: 1fr;
    }
}

/* contact */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 22px;
    align-items: start;
}

@media (max-width: 860px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

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

.card-night {
    background: linear-gradient(160deg, var(--deep), var(--night));
    border: 0;
    color: var(--on-dark);
}

.card-night a {
    color: #fff;
}

.card-night .muted {
    color: var(--on-dark-muted);
}

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

.big-phones a {
    display: block;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.6rem, 4.6vw, 2.3rem);
    line-height: 1.1;
    text-decoration: none;
}

.big-phones a:hover {
    color: #9fdcf6;
}

.big-phones span {
    display: block;
    color: var(--on-dark-muted);
    font-size: 0.95rem;
}

.contact-list {
    display: grid;
    gap: 16px;
    margin: 0;
}

.contact-list dt {
    font-weight: 700;
    color: #9fdcf6;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-list dd {
    margin: 2px 0 0;
}

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

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid #9db8c6;
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--link);
    outline: 3px solid rgba(0, 160, 224, 0.35);
    outline-offset: 0;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

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

.form-hint {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.contact-form ul {
    margin: 6px 0 0;
    padding-left: 18px;
    color: #a3190f;
}

.contact-sent {
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--wash);
}

.contact-sent strong {
    display: block;
}

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

.foot {
    background: var(--night);
    color: var(--on-dark-muted);
    padding-top: clamp(48px, 7vw, 80px);
}

.foot a {
    color: #fff;
}

.foot h2 {
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: #fff;
    margin-bottom: 14px;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}

.foot-logo {
    width: 150px;
    margin-bottom: 14px;
}

.foot-name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
}

.foot-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(159, 220, 246, 0.4);
    color: #9fdcf6;
    font-weight: 600;
    font-size: 0.93rem;
}

.foot-phones,
.foot-nav {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.foot-phones li {
    margin-bottom: 6px;
}

.foot-phones a {
    font-weight: 700;
    white-space: nowrap;
}

.foot address {
    font-style: normal;
    margin-bottom: 22px;
}

.foot-pages {
    margin-top: 8px;
}

.foot-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.foot-bottom {
    margin-top: 44px;
    padding-block: 20px;
    border-top: 1px solid rgba(159, 220, 246, 0.18);
    font-size: 0.92rem;
}

.foot-bottom p {
    margin: 0;
}

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

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

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background: linear-gradient(160deg, var(--deep), var(--night));
    color: var(--on-dark);
    text-align: center;
}

.not-found > div {
    max-width: 560px;
}

.not-found img {
    margin: 0 auto 24px;
}

.not-found h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    color: #fff;
}

.not-found h2 {
    color: #fff;
    margin-top: 36px;
}

.not-found a:not(.btn) {
    color: #9fdcf6;
}

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

/* ---- reveals on scroll ---- */

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

        @keyframes reveal {
            from {
                opacity: 0;
                translate: 0 40px;
            }
        }
    }
}

@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;
    }
}
