/* TeN Cosmetics Bulgaria – "Tecnologia e Natura": the lab chart of the product lines.
   Graphite of the logo's ink, cool lab paper, and one colour per range: face aqua, body leaf,
   SPA lavender, solarium amber. Advent Pro (display) + Geologica (text). */

@font-face {
    font-family: 'Advent Pro';
    src: url('/fonts/advent-pro.woff2') format('woff2');
    font-weight: 200 700;
    font-stretch: 100% 125%;
    font-display: swap;
}

@font-face {
    font-family: 'Geologica';
    src: url('/fonts/geologica.woff2') format('woff2');
    font-weight: 300 700;
    font-display: swap;
}

:root {
    --ink: #14171b;
    --ink-2: #1d2228;
    --ink-3: #2a3038;
    --paper: #f1f3ef;
    --sheet: #ffffff;
    --line: #d3d8d1;
    --text: #1b1f24;
    --muted: #535a62;
    --on-ink: #eef1f3;
    --on-ink-muted: #b4bbc3;
    --silver: #9aa0a7;
    --link: #0b6461;
    --face: #86d3cf;
    --body: #b3cf6a;
    --spa: #b9abef;
    --sun: #f5ad4a;
    --face-deep: #0b6461;
    --body-deep: #4b6114;
    --spa-deep: #57479a;
    --sun-deep: #8f4f00;
    --radius: 18px;
    --display: 'Advent Pro', 'Arial Narrow', sans-serif;
    --sans: 'Geologica', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color-scheme: light;
}

*, *::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-family: var(--sans);
    font-size: 1.0625rem;
    font-weight: 350;
    line-height: 1.62;
    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 #1a8f8a;
    outline-offset: 3px;
    border-radius: 4px;
}

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

h1 {
    font-size: clamp(2.5rem, 1.6rem + 4.6vw, 5.4rem);
    font-weight: 300;
    font-stretch: 112%;
}

h2 {
    font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3.2rem);
    font-weight: 400;
    font-stretch: 108%;
}

h3, .h3 {
    font-size: 1.45rem;
    font-weight: 600;
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: min(1220px, 100% - 2.5rem);
    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: 1rem;
    top: -4rem;
    z-index: 100;
    background: var(--ink);
    color: var(--on-ink);
    padding: 0.6rem 1rem;
    border-radius: 10px;
}

.skip:focus {
    top: 1rem;
}

sup.x {
    font-size: 0.55em;
    vertical-align: super;
    line-height: 0;
    letter-spacing: 0;
}

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

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(241 243 239 / 0.86);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid rgb(20 23 27 / 0.08);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.2rem;
    padding: 0.7rem 0;
}

.brand {
    display: block;
    margin-right: auto;
    padding: 0.35rem 0;
}

.brand img {
    width: clamp(135px, 28vw, 300px);
    height: auto;
}

.call {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--ink);
    color: var(--on-ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.98rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
}

.call:hover {
    background: var(--ink-3);
}

.call .dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--face);
    box-shadow: 0 0 0 4px rgb(134 211 207 / 0.25);
}

.lang {
    display: flex;
    gap: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.lang a, .lang span {
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
}

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

.lang a:hover {
    background: rgb(20 23 27 / 0.08);
}

.lang {
    order: 4;
}

.nav {
    order: 3;
    flex: 1 1 calc(100% - 7rem);
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin: 0 -0.4rem;
    padding-bottom: 0.1rem;
}

.nav::-webkit-scrollbar {
    display: none;
}

.nav a {
    flex: none;
    color: var(--text);
    text-decoration: none;
    font-weight: 450;
    font-size: 0.97rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
}

.nav a:hover {
    background: rgb(20 23 27 / 0.07);
}

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

@media (max-width: 479px) {
    .top-row {
        gap: 0.5rem 0.6rem;
    }

    .call {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }
}

@media (min-width: 1080px) {
    .top-row {
        flex-wrap: nowrap;
    }

    .nav {
        flex: 0 1 auto;
        order: 1;
        margin: 0;
    }

    .brand {
        margin-right: 0.5rem;
    }

    .nav {
        margin-right: auto;
    }

    .call {
        order: 2;
    }

    .lang {
        order: 3;
    }
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    text-decoration: none;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--on-ink);
    transition: transform 0.2s ease, background 0.2s ease;
}

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

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

.btn-light:hover {
    background: #ffffff;
}

.btn-line {
    background: transparent;
    color: var(--on-ink);
    box-shadow: inset 0 0 0 1.5px rgb(238 241 243 / 0.5);
}

.btn-line:hover {
    background: rgb(238 241 243 / 0.1);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

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

.dark {
    background: var(--ink);
    color: var(--on-ink);
}

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

.dark .btn-light, .dark .btn-light:hover {
    color: var(--ink);
}

.dark .btn-line, .dark .btn-line:hover {
    color: var(--on-ink);
}

.dark .muted, .dark .lead {
    color: var(--on-ink-muted);
}

.kicker {
    font-family: var(--display);
    font-stretch: 125%;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.86rem;
    margin: 0 0 1rem;
    color: var(--muted);
}

.dark .kicker {
    color: var(--on-ink-muted);
}

.lead {
    font-size: clamp(1.1rem, 1rem + 0.45vw, 1.32rem);
    color: var(--muted);
    max-width: 44em;
}

.band {
    padding: clamp(3.5rem, 2.5rem + 4vw, 6.5rem) 0;
}

.band-tight {
    padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0;
}

/* ---- home hero: the chart ---- */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(3rem, 2rem + 3vw, 5rem);
    background:
        radial-gradient(60rem 30rem at 95% -10%, rgb(134 211 207 / 0.20), transparent 60%),
        radial-gradient(40rem 26rem at -10% 110%, rgb(185 171 239 / 0.16), transparent 60%),
        radial-gradient(30rem 20rem at 60% 120%, rgb(245 173 74 / 0.12), transparent 60%),
        var(--ink);
}

.hero-grid {
    display: grid;
    gap: 2.5rem;
}

.hero h1 {
    font-size: clamp(2.3rem, 1.5rem + 3vw, 4.3rem);
    font-stretch: 104%;
    max-width: 14ch;
    margin-bottom: 0.35em;
    overflow-wrap: break-word;
    hyphens: auto;
}

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

.hero .lead {
    color: var(--on-ink-muted);
}

.hero-logo {
    width: min(360px, 80%);
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-welcome {
    font-family: var(--display);
    font-stretch: 112%;
    font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--on-ink);
    border-left: 3px solid var(--face);
    padding-left: 1rem;
    margin: 1.5rem 0 2rem;
    max-width: 30em;
}

@media (min-width: 1000px) {
    .hero-grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        align-items: center;
    }
}

/* the chart of the lines: one tile per product line, coloured by range */

.chart {
    --cols: 4;
    display: grid;
    grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 560px) {
    .chart {
        --cols: 5;
    }
}

@media (min-width: 1000px) {
    .chart {
        --cols: 6;
    }
}

.chart-wide {
    gap: 8px;
}

@media (min-width: 1000px) {
    .chart-wide {
        --cols: 8;
    }
}

.tile {
    --c: var(--face);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 1;
    min-width: 0;
    padding: 0.45rem 0.5rem 0.4rem;
    border-radius: 10px;
    background: var(--c);
    color: var(--ink);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.tile:hover, .tile:focus-visible {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 24px rgb(0 0 0 / 0.3);
}

.tile.r-body { --c: var(--body); }
.tile.r-spa { --c: var(--spa); }
.tile.r-sun { --c: var(--sun); }

.tile-n {
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1;
}

.tile-s {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.35rem, 0.9rem + 1.8vw, 2.2rem);
    line-height: 0.9;
    letter-spacing: -0.02em;
}

.tile-name {
    font-size: 0.64rem;
    line-height: 1.1;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 560px) {
    .tile-name {
        font-size: 0.72rem;
    }
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    font-size: 0.92rem;
}

.chart-legend a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.chart-legend a:hover {
    text-decoration: underline;
}

.dark .chart-legend a {
    color: var(--on-ink);
}

.swatch {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 3px;
    background: var(--face);
}

.swatch.r-body { background: var(--body); }
.swatch.r-spa { background: var(--spa); }
.swatch.r-sun { background: var(--sun); }

@media (prefers-reduced-motion: no-preference) {
    .chart-animate .tile {
        animation: tile-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
        animation-delay: calc(var(--i, 0) * 28ms + 150ms);
    }

    .hero-copy > * {
        animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }

    .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
    .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
    .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
    .hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
}

@keyframes tile-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.85);
    }
}

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

/* ---- ranges: bento ---- */

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

@media (min-width: 760px) {
    .bento {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: minmax(250px, auto);
    }

    .bento li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .bento li:nth-child(2) { grid-column: span 2; }
}

.range-card {
    --c: var(--face);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 260px;
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink);
    color: var(--on-ink);
    text-decoration: none;
    isolation: isolate;
}

.range-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.6s ease;
}

.range-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgb(20 23 27 / 0) 30%, rgb(20 23 27 / 0.88) 100%);
}

.range-card:hover img {
    transform: scale(1.05);
}

.range-card-body {
    padding: 1.4rem 1.5rem;
}

.range-card h3 {
    font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem);
    font-weight: 400;
    font-stretch: 110%;
    margin: 0 0 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.range-card h3::before {
    content: '';
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 4px;
    background: var(--c);
    flex: none;
}

.range-card p {
    margin: 0;
    color: var(--on-ink-muted);
    font-size: 0.95rem;
}

.range-card.r-body { --c: var(--body); }
.range-card.r-spa { --c: var(--spa); }
.range-card.r-sun { --c: var(--sun); }

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

.figures {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    list-style: none;
    margin: 2.5rem 0 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

@media (min-width: 860px) {
    .figures {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.figures li {
    padding: 1.6rem 1.2rem 1.4rem 0;
    border-bottom: 1px solid var(--line);
}

.figures strong {
    display: block;
    font-family: var(--display);
    font-weight: 200;
    font-stretch: 112%;
    font-size: clamp(3.4rem, 2.4rem + 4vw, 6rem);
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.figures span {
    display: block;
    margin-top: 0.6rem;
    color: var(--muted);
    font-size: 0.98rem;
    max-width: 16em;
}

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

/* ---- split / prose ---- */

.split {
    display: grid;
    gap: 2rem 4rem;
}

@media (min-width: 900px) {
    .split {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    }
}

.prose {
    max-width: 46em;
}

.prose h2 {
    font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem);
    margin-top: 1.6em;
}

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

.prose ul {
    padding-left: 1.2em;
}

.prose li {
    margin-bottom: 0.35em;
}

.ticks {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2em;
}

.ticks li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.45rem;
}

.ticks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 0.8rem;
    height: 2px;
    background: var(--link);
}

.dark .ticks li::before {
    background: var(--face);
}

/* pillars (about page): numbered blocks */

.pillars {
    display: grid;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: p;
}

@media (min-width: 760px) {
    .pillars {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.pillars > li {
    counter-increment: p;
    background: var(--sheet);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.6rem 1.2rem;
}

.pillars > li::before {
    content: counter(p, decimal-leading-zero);
    display: block;
    font-family: var(--display);
    font-weight: 300;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--face-deep);
    margin-bottom: 0.8rem;
}

.pillars h3 {
    font-size: 1.5rem;
}

/* clients ribbon */

.ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.ribbon li {
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgb(238 241 243 / 0.25);
    font-family: var(--display);
    font-stretch: 110%;
    font-size: 1.15rem;
    font-weight: 500;
}

/* ---- page heads ---- */

.page-hero {
    --c: var(--face);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(50rem 22rem at 100% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 65%),
        var(--ink);
    color: var(--on-ink);
    padding: clamp(2.5rem, 2rem + 3vw, 5rem) 0 clamp(2.5rem, 2rem + 2vw, 4rem);
}

.page-hero.r-body { --c: var(--body); }
.page-hero.r-spa { --c: var(--spa); }
.page-hero.r-sun { --c: var(--sun); }

.page-hero h1 {
    font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem);
    max-width: 18ch;
}

.page-hero .lead,
.page-hero .kicker {
    color: var(--on-ink-muted);
}

.page-hero a {
    color: var(--on-ink);
}

.page-hero .tile {
    color: var(--ink);
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1.4rem;
    font-size: 0.9rem;
    color: var(--on-ink-muted);
}

.crumbs li + li::before {
    content: '/';
    margin-right: 0.5rem;
    opacity: 0.6;
}

.crumbs a {
    color: var(--on-ink);
}

.ph-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 900px) {
    .ph-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    }
}

.ph-photo {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: #ffffff;
}

.ph-photo img {
    width: 100%;
}

.big-tile {
    --c: var(--face);
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 5.6rem;
    height: 5.6rem;
    padding: 0.5rem 0.6rem;
    border-radius: 12px;
    background: var(--c);
    color: var(--ink);
    margin-bottom: 1.2rem;
}

.big-tile.r-body { --c: var(--body); }
.big-tile.r-spa { --c: var(--spa); }
.big-tile.r-sun { --c: var(--sun); }

.big-tile .tile-s {
    font-size: 2.4rem;
}

.tagline {
    font-family: var(--display);
    font-stretch: 110%;
    font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.7rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--on-ink);
    max-width: 30em;
}

/* ---- cards: lines, products, equipment ---- */

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

.card {
    --c: var(--face);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--sheet);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover, .card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgb(20 23 27 / 0.12);
    border-color: var(--c);
}

.card.r-body { --c: var(--body); }
.card.r-spa { --c: var(--spa); }
.card.r-sun { --c: var(--sun); }

.card-img {
    display: grid;
    place-items: center;
    height: 240px;
    background: #ffffff;
    border-bottom: 4px solid var(--c);
    padding: 0.8rem;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-body {
    padding: 1.1rem 1.25rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.card h2, .card h3 {
    font-size: 1.45rem;
    font-weight: 600;
    margin: 0;
}

.card h3 a, .card h2 a {
    color: var(--text);
    text-decoration: none;
}

.card h3 a::after, .card h2 a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.5;
}

.card .more {
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--link);
}

.count {
    font-size: 0.85rem;
    color: var(--muted);
}

/* ---- product page ---- */

.product-grid {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 900px) {
    .product-grid {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    }

    .product-photo {
        position: sticky;
        top: 7rem;
    }
}

.product-photo {
    margin: 0;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
}

.product-photo a {
    display: block;
}

.product-photo img {
    margin-inline: auto;
}

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

.facts > div {
    display: grid;
    gap: 0.3rem 2rem;
    padding: 1.2rem 0;
    border-top: 1px solid var(--line);
}

.facts > div:last-child {
    border-bottom: 1px solid var(--line);
}

@media (min-width: 700px) {
    .facts > div {
        grid-template-columns: 11rem minmax(0, 1fr);
    }
}

.facts dt {
    font-family: var(--display);
    font-stretch: 115%;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--muted);
    padding-top: 0.2rem;
}

.facts dd {
    margin: 0;
}

.facts dd p {
    margin: 0 0 0.45em;
}

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

/* ---- files (methods, presentations) ---- */

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

.files a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    height: 100%;
    padding: 0.9rem 1rem;
    background: var(--sheet);
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    text-decoration: none;
}

.files a:hover {
    border-color: var(--ink);
}

.file-type {
    flex: none;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3.4rem;
    border-radius: 6px 14px 6px 6px;
    background: var(--ink);
    color: var(--on-ink);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.files strong {
    display: block;
    font-weight: 500;
    line-height: 1.3;
}

.files small {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
}

.dark .files a {
    background: var(--ink-2);
    border-color: var(--ink-3);
    color: var(--on-ink);
}

.dark .files small {
    color: var(--on-ink-muted);
}

.dark .file-type {
    background: var(--face);
    color: var(--ink);
}

/* ---- chips: other items of a section ---- */

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

.chips a {
    display: inline-block;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--sheet);
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
}

.chips a:hover {
    border-color: var(--ink);
}

.chips a[aria-current] {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--on-ink);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 2rem;
}

.section-head h2 {
    margin: 0;
}

/* ---- where to buy ---- */

.city-nav {
    position: sticky;
    top: 6.6rem;
    z-index: 5;
    padding: 0.8rem 0;
    background: rgb(241 243 239 / 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.city {
    scroll-margin-top: 10rem;
    padding: 2.5rem 0 1rem;
    border-top: 1px solid var(--line);
}

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

.city h2 {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.city h2 .count {
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0;
}

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

.partners li {
    background: var(--sheet);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

.partners strong {
    display: block;
    font-family: var(--display);
    font-stretch: 108%;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.partners .kind {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.partners a {
    font-weight: 500;
}

.partner-logo {
    margin-top: 0.6rem;
    max-height: 60px;
    width: auto;
}

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

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

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.panel {
    background: var(--sheet);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.3rem, 1rem + 1.5vw, 2.2rem);
}

.panel h2 {
    font-size: 1.9rem;
}

.big-phone {
    display: inline-block;
    font-family: var(--display);
    font-weight: 400;
    font-stretch: 110%;
    font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
    line-height: 1.1;
    color: var(--ink);
    text-decoration: none;
}

.big-phone:hover {
    color: var(--link);
}

.contact-list {
    margin: 1.5rem 0 0;
}

.contact-list > div {
    padding: 0.9rem 0;
    border-top: 1px solid var(--line);
}

.contact-list dt {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--muted);
    font-weight: 500;
}

.contact-list dd {
    margin: 0.2rem 0 0;
}

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

.reps li {
    background: var(--ink-2);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
}

.reps .area {
    display: block;
    font-size: 0.85rem;
    color: var(--on-ink-muted);
    margin-bottom: 0.4rem;
}

.reps strong {
    display: block;
    font-weight: 500;
    font-size: 1.05rem;
}

.reps a {
    color: var(--face);
    font-weight: 500;
}

/* form */

.contact-form label {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 0 0.35rem;
}

.contact-form > div {
    margin-bottom: 1rem;
}

.contact-form input:not([type=hidden]),
.contact-form textarea {
    width: 100%;
    font: inherit;
    color: var(--text);
    background: var(--paper);
    border: 1px solid #a9b0a8;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--ink);
}

.contact-form ul {
    margin: 0.3rem 0;
    padding-left: 1.1rem;
    color: #a3221c;
    font-size: 0.9rem;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.8rem;
}

.contact-sent {
    background: #e2f3f1;
    border: 1px solid var(--face-deep);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin-bottom: 1.2rem;
}

.contact-sent strong {
    display: block;
}

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

.call-band {
    background:
        linear-gradient(100deg, var(--face) 0 25%, var(--body) 25% 50%, var(--spa) 50% 75%, var(--sun) 75%) top / 100% 6px no-repeat,
        var(--ink-2);
    color: var(--on-ink);
    padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0;
}

.call-band-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.call-band h2 {
    margin: 0 0 0.3rem;
    font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem);
}

.call-band p {
    margin: 0;
    color: var(--on-ink-muted);
}

.call-band .big-phone {
    color: var(--on-ink);
}

.call-band .big-phone:hover {
    color: var(--face);
}

/* ---- equipment strip ---- */

.devices {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 12px;
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
}

.device {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--ink-2);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--ink-3);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.device:hover, .device:focus-within {
    border-color: var(--face);
    transform: translateY(-3px);
}

.device-img {
    background: #ffffff;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.device-img img {
    max-height: 100%;
    width: auto;
}

.device-body {
    padding: 1rem 1.2rem 1.3rem;
}

.device h3 {
    font-size: 1.4rem;
    margin: 0 0 0.3rem;
}

.device h3 a {
    color: var(--on-ink);
    text-decoration: none;
}

.device h3 a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.device p {
    margin: 0;
    font-size: 0.93rem;
    color: var(--on-ink-muted);
}

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

.foot {
    background: var(--ink);
    color: var(--on-ink-muted);
    padding: 4rem 0 0;
    font-size: 0.95rem;
}

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

.foot-grid {
    display: grid;
    gap: 2rem;
}

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

.foot h2 {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--on-ink-muted);
    margin: 0 0 0.9rem;
}

.foot ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.foot li {
    margin-bottom: 0.4rem;
}

.foot-logo {
    width: 240px;
    margin-bottom: 1.1rem;
}

.foot-phone {
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: none;
}

.foot-bottom {
    margin-top: 3rem;
    padding: 1.4rem 0 1.6rem;
    border-top: 1px solid var(--ink-3);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    font-size: 0.86rem;
}

.foot-bottom p {
    margin: 0;
}

.foot-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 6px;
}

.foot-bars span:nth-child(1) { background: var(--face); }
.foot-bars span:nth-child(2) { background: var(--body); }
.foot-bars span:nth-child(3) { background: var(--spa); }
.foot-bars span:nth-child(4) { background: var(--sun); }

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

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1.25rem;
    background: var(--ink);
    color: var(--on-ink);
}

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

.not-found img {
    width: min(320px, 100%);
    margin-bottom: 2rem;
}

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

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

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

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