/* Д-р Ели Бацелова – дентална медицина, Пловдив.
   Aubergine of the logo and the original site, porcelain of the cabinets, walnut and honey of the wood in the
   treatment rooms, tulip violet of the lounge chairs. Viaoda Libre for display, Finlandica Text for text. */

@font-face {
    font-family: 'Viaoda Libre';
    src: url('/fonts/viaoda-libre.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
    /* its en dash, quotes and № read badly: the text face draws them */
    unicode-range: U+0020-007E, U+00A0-00FF, U+0400-045F, U+2010-2012, U+2014-2019, U+201A, U+201D, U+2020-2026, U+20AC;
}

@font-face {
    font-family: 'Finlandica Text';
    src: url('/fonts/finlandica-text.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --aub-950: #1a0624;
    --aub-900: #22082f;
    --aub-800: #2a0b3a;
    --aub-700: #3d1453;
    --aub-600: #55216f;
    --tulip: #8e3c86;
    --tulip-soft: #ead8e6;
    --porcelain: #f7f2ec;
    --paper: #fffcf8;
    --linen: #efe6dc;
    --walnut: #85501f;
    --walnut-deep: #5e3612;
    --honey: #dca167;
    --honey-light: #f0c99d;
    --ink: #24102d;
    --muted: #5b4862;
    --line: #dccfc3;
    --on-dark: #f6eef7;
    --on-dark-muted: #d4c3d9;
    --radius: 22px;
    --radius-lg: 36px;
    --display: 'Viaoda Libre', 'Finlandica Text', Georgia, serif;
    --text: 'Finlandica Text', 'Segoe UI', system-ui, sans-serif;
    --wrap: 1180px;
    --head-h: 76px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--head-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--porcelain);
    color: var(--ink);
    font-family: var(--text);
    font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
    line-height: 1.6;
    font-variant-numeric: lining-nums;
    overflow-x: clip;
}

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

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

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

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

h1, h2, h3 {
    line-height: 1.12;
    margin: 0 0 .5em;
    text-wrap: balance;
}

h1, .display, .h-big, .h-sec, .quote p, .trail-year, .tile-title, .callband h2 {
    font-family: var(--display);
    font-weight: 400;
    letter-spacing: -.01em;
}

p {
    margin: 0 0 1em;
}

.nowrap {
    white-space: nowrap;
}

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

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

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--paper);
    color: var(--aub-800);
    border-radius: 10px;
    font-weight: 600;
}

.skip:focus {
    top: 12px;
}

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

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(42 11 58 / .94);
    color: var(--on-dark);
    border-bottom: 1px solid rgb(255 255 255 / .08);
}

@supports (backdrop-filter: blur(10px)) {
    .top {
        background: rgb(42 11 58 / .82);
        backdrop-filter: blur(14px) saturate(1.3);
    }
}

.top-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    min-height: var(--head-h);
    padding-block: 10px;
}

.brand {
    flex: 0 1 auto;
    margin-right: auto;
    display: block;
    border-radius: 8px;
}

.brand img {
    width: clamp(220px, 22vw, 280px);
}

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

.nav a {
    color: var(--on-dark);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 500;
    font-size: .98rem;
    transition: background-color .2s, color .2s;
}

.nav a:hover {
    background: rgb(255 255 255 / .1);
    color: #fff;
}

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

.call {
    order: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--honey);
    color: var(--aub-950);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s, background-color .2s;
}

.call:hover {
    background: var(--honey-light);
    color: var(--aub-950);
    transform: translateY(-1px);
}

.lang {
    order: 4;
    display: flex;
    gap: 2px;
    font-size: .88rem;
    font-weight: 600;
}

.lang a,
.lang span {
    padding: 6px 9px;
    border-radius: 8px;
    color: var(--on-dark);
    text-decoration: none;
}

.lang span[aria-current] {
    background: rgb(255 255 255 / .14);
}

.lang a:hover {
    background: rgb(255 255 255 / .1);
    color: #fff;
}

.menu-btn {
    display: none;
}

@media (max-width: 1120px) {
    .nav {
        order: 5;
        width: 100%;
    }
}

@media (max-width: 760px) {
    .top .call {
        display: none;
    }

    .top-row {
        gap: 10px 12px;
    }

    .brand img {
        width: min(300px, calc(100vw - 32px - 64px));
    }

    .js .menu-btn {
        display: inline-flex;
        order: 4;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        padding: 0;
        border: 1px solid rgb(255 255 255 / .3);
        border-radius: 50%;
        background: transparent;
        color: var(--on-dark);
        cursor: pointer;
    }

    .js .top .lang {
        display: none;
    }

    .js .top.menu-open .lang {
        display: flex;
        order: 6;
        width: 100%;
        padding-bottom: 12px;
    }

    .menu-bars,
    .menu-bars::before,
    .menu-bars::after {
        display: block;
        width: 16px;
        height: 2px;
        background: currentColor;
        border-radius: 2px;
        transition: transform .25s, opacity .25s;
    }

    .menu-bars {
        position: relative;
    }

    .menu-bars::before,
    .menu-bars::after {
        content: '';
        position: absolute;
        left: 0;
    }

    .menu-bars::before {
        top: -5px;
    }

    .menu-bars::after {
        top: 5px;
    }

    .menu-btn[aria-expanded='true'] .menu-bars {
        background: transparent;
    }

    .menu-btn[aria-expanded='true'] .menu-bars::before {
        transform: translateY(5px) rotate(45deg);
    }

    .menu-btn[aria-expanded='true'] .menu-bars::after {
        transform: translateY(-5px) rotate(-45deg);
    }

    .js .nav {
        display: none;
        flex-direction: column;
        padding: 6px 0 12px;
    }

    .js .nav.open {
        display: flex;
    }

    .js .nav a {
        padding: 12px 14px;
        font-size: 1.05rem;
        border-radius: 14px;
    }
}

/* ---- buttons and links ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 12px 24px;
    border-radius: 999px;
    font: 700 1rem/1.2 var(--text);
    font-variant-numeric: lining-nums;
    text-decoration: none;
    text-align: center;
    border: 2px solid transparent;
    transition: transform .2s, background-color .2s, color .2s, border-color .2s;
}

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

.btn-aub {
    background: var(--aub-800);
    color: var(--on-dark);
}

.btn-aub:hover {
    background: var(--aub-600);
    color: #fff;
}

.btn-ghost {
    border-color: var(--aub-800);
    color: var(--aub-800);
}

.btn-ghost:hover {
    background: var(--aub-800);
    color: var(--on-dark);
}

.btn-honey {
    background: var(--honey);
    color: var(--aub-950);
}

.btn-honey:hover {
    background: var(--honey-light);
    color: var(--aub-950);
}

.arrow-link {
    font-weight: 700;
    color: var(--walnut-deep);
    text-decoration: none;
    border-bottom: 2px solid var(--honey);
    padding-bottom: 2px;
}

.arrow-link::after {
    content: ' →';
    display: inline-block;
    transition: transform .2s;
}

.arrow-link:hover {
    color: var(--tulip);
}

.arrow-link:hover::after {
    transform: translateX(4px);
}

.eyebrow {
    margin: 0 0 .9em;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--walnut);
}

.eyebrow-light {
    color: var(--honey-light);
}

.lead {
    font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem);
    color: var(--muted);
    max-width: 60ch;
}

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

.hero {
    position: relative;
    padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 96px);
    background:
        radial-gradient(60% 70% at 92% 10%, rgb(142 60 134 / .16), transparent 70%),
        radial-gradient(50% 60% at 0% 100%, rgb(220 161 103 / .22), transparent 70%),
        var(--porcelain);
    overflow: clip;
}

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

.display {
    font-size: clamp(2.3rem, 1.2rem + 3.9vw, 4.55rem);
    line-height: 1.02;
    color: var(--aub-800);
    margin-bottom: .35em;
}

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

.hero-art {
    position: relative;
    padding-bottom: 40px;
}

.arch {
    display: block;
    aspect-ratio: 4 / 5;
    /* a round top (radii in % of width and height) and soft lower corners */
    border-radius: 50% 50% var(--radius-lg) var(--radius-lg) / 40% 40% var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    background: var(--aub-800);
    box-shadow: 0 30px 60px -30px rgb(42 11 58 / .55);
    max-width: 460px;
    margin-left: auto;
}

.arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 38% 50%;
}

.hero-doc {
    position: absolute;
    left: 0;
    bottom: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px 10px 10px;
    background: var(--paper);
    border-radius: 999px;
    box-shadow: 0 18px 40px -18px rgb(42 11 58 / .5);
    max-width: calc(100% - 20px);
}

.hero-doc img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 20%;
}

.hero-doc figcaption {
    font-size: .9rem;
    line-height: 1.3;
    color: var(--muted);
}

.hero-doc strong {
    display: block;
    color: var(--aub-800);
    font-size: 1rem;
}

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

    .arch {
        aspect-ratio: 5 / 4;
        max-width: none;
        border-radius: 50% 50% var(--radius) var(--radius) / 62.5% 62.5% var(--radius) var(--radius);
    }
}

/* opening: the headline rises, the arch opens from below */
@media (prefers-reduced-motion: no-preference) {
    .hero-text > * {
        animation: rise .8s cubic-bezier(.2, .7, .2, 1) both;
    }

    .hero-text > :nth-child(2) { animation-delay: .08s; }
    .hero-text > :nth-child(3) { animation-delay: .18s; }
    .hero-text > :nth-child(4) { animation-delay: .28s; }

    .arch {
        animation: arch-open 1.1s cubic-bezier(.3, .7, .2, 1) .1s both;
    }

    .arch img {
        animation: settle 1.6s cubic-bezier(.3, .7, .2, 1) .1s both;
    }

    .hero-doc {
        animation: rise .7s cubic-bezier(.2, .7, .2, 1) .75s both;
    }
}

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

@keyframes arch-open {
    from { clip-path: inset(100% 0 0 0 round 999px 999px 0 0); }
    to { clip-path: inset(0 0 0 0 round 0); }
}

@keyframes settle {
    from { transform: scale(1.12); }
}

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

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

.band-soft {
    background: var(--linen);
}

.band-aub {
    background:
        radial-gradient(70% 90% at 100% 0%, rgb(142 60 134 / .35), transparent 70%),
        linear-gradient(160deg, var(--aub-800), var(--aub-950));
    color: var(--on-dark);
}

.band-aub a {
    color: var(--honey-light);
}

.band-aub a:hover {
    color: #fff;
}

.h-big {
    font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.6rem);
    color: var(--aub-800);
}

.band-aub .h-big {
    color: #fff;
}

.h-sec {
    font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
    color: var(--aub-800);
}

.sec-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 48px;
    align-items: end;
    margin-bottom: clamp(24px, 4vw, 44px);
}

.sec-head p {
    color: var(--muted);
    max-width: 52ch;
}

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

.sec-more {
    margin-top: 32px;
}

/* ---- the week (signature) ---- */

.week-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.week-grid > div:first-child p {
    color: var(--on-dark-muted);
    max-width: 38ch;
}

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

.week {
    --cols: 9;
    container-type: inline-size;
    position: relative;
    padding: clamp(18px, 3vw, 32px);
    border-radius: var(--radius-lg);
    background: rgb(255 255 255 / .06);
    border: 1px solid rgb(255 255 255 / .12);
}

.week-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgb(255 255 255 / .1);
    color: var(--on-dark);
    font-weight: 600;
    font-size: .92rem;
}

.week-status::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #9aa0a6;
}

.week-status.is-open::before {
    background: #7be0a0;
    box-shadow: 0 0 0 4px rgb(123 224 160 / .2);
}

.week-axis,
.week-days li {
    display: grid;
    grid-template-columns: 6.6rem minmax(0, 1fr) 8rem;
    align-items: center;
    gap: 14px;
}

.week-axis {
    margin-bottom: 8px;
    font-size: .78rem;
    color: var(--on-dark-muted);
}

.week-scale {
    position: relative;
    height: 1.4em;
}

.week-scale span {
    position: absolute;
    left: calc(100% * var(--h) / var(--cols));
    transform: translateX(-50%);
}

.week-days {
    list-style: none;
    margin: 0;
    padding: 0;
}

.week-days li {
    padding: 11px 0;
    border-top: 1px solid rgb(255 255 255 / .1);
}

.week-day {
    font-weight: 600;
    color: var(--on-dark);
}

.week-day .short {
    display: none;
    text-decoration: none;
}

.week-track {
    position: relative;
    height: 14px;
    border-radius: 999px;
    background:
        repeating-linear-gradient(90deg, rgb(255 255 255 / .16) 0 1px, transparent 1px calc(100% / var(--cols))),
        rgb(255 255 255 / .05);
}

.week-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(100% * var(--from) / var(--cols));
    width: calc(100% * (var(--to) - var(--from)) / var(--cols));
    border-radius: 999px;
    background: linear-gradient(90deg, var(--honey), var(--honey-light));
    transform-origin: left center;
}

.week-time {
    font-weight: 700;
    color: #fff;
    text-align: right;
    white-space: nowrap;
}

.week-days li.is-today .week-day::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 8px;
    vertical-align: middle;
    border-radius: 50%;
    background: var(--honey);
}

.week-days li.is-today .week-track {
    outline: 2px solid rgb(240 201 157 / .6);
    outline-offset: 3px;
}

.week-note {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgb(255 255 255 / .1);
    color: var(--on-dark-muted);
    font-size: .92rem;
}

@container (max-width: 470px) {
    .week-axis,
    .week-days li {
        grid-template-columns: 2.4rem minmax(0, 1fr) 7.4rem;
        gap: 10px;
    }

    .week-scale span:nth-child(even) {
        display: none;
    }

    .week-day .long {
        display: none;
    }

    .week-day .short {
        display: inline;
    }
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .week-bar {
            animation: fill-bar linear both;
            animation-timeline: view();
            animation-range: entry 10% cover 40%;
        }
    }
}

@keyframes fill-bar {
    from { transform: scaleX(0); opacity: .3; }
    to { transform: scaleX(1); opacity: 1; }
}

/* the week on a light page (contact) */
.week-light .week {
    background: var(--aub-800);
}

/* ---- services bento ---- */

.bento {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.tile {
    container-type: inline-size;
    padding: clamp(20px, 3vw, 32px);
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
    transition: transform .25s, box-shadow .25s;
}

.tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 40px -28px rgb(42 11 58 / .45);
}

.tile-title {
    font-size: clamp(1.45rem, 1.2rem + .9vw, 1.95rem);
    color: var(--aub-800);
    margin-bottom: .6em;
}

.tile-sub {
    margin: 1em 0 .4em;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--walnut);
}

.tile-aesthetic {
    grid-column: span 3;
    grid-row: span 2;
    background:
        radial-gradient(90% 60% at 100% 0%, rgb(142 60 134 / .4), transparent 70%),
        linear-gradient(165deg, var(--aub-700), var(--aub-900));
    border-color: transparent;
    color: var(--on-dark);
}

.tile-aesthetic .tile-title {
    color: #fff;
}

.tile-aesthetic .tile-sub {
    color: var(--honey-light);
}

.tile-aesthetic .ticks li::before {
    background: var(--honey);
}

.tile-aesthetic a {
    color: var(--honey-light);
}

.tile-aesthetic a:hover {
    color: #fff;
}

.tile-general,
.tile-restorative {
    grid-column: span 3;
}

.tile-prevention {
    grid-column: span 4;
    background: var(--tulip-soft);
    border-color: transparent;
}

.tile-single {
    grid-column: span 2;
    display: flex;
    align-items: center;
    background: var(--linen);
    border-color: transparent;
}

.band-soft .tile-single {
    background: var(--paper);
}

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

    .tile-aesthetic {
        grid-column: span 2;
        grid-row: auto;
    }

    .tile-general,
    .tile-restorative {
        grid-column: span 1;
    }

    .tile-prevention,
    .tile-single {
        grid-column: span 2;
    }
}

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

    .tile-aesthetic,
    .tile-general,
    .tile-restorative,
    .tile-prevention,
    .tile-single {
        grid-column: auto;
    }
}

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

.ticks li {
    position: relative;
    padding: 5px 0 5px 22px;
}

.ticks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .95em;
    width: 10px;
    height: 10px;
    border-radius: 50% 50% 45% 45%;
    background: var(--tulip);
}

.tick-link a {
    font-weight: 700;
}

.tick-link a::after {
    content: ' →';
}

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

.pills li {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--paper);
    border: 1px solid var(--line);
    font-weight: 600;
    font-size: .95rem;
    color: var(--aub-800);
}

.band-soft .tile-single .pills li {
    background: var(--linen);
}

.pills-light li {
    background: var(--paper);
}

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

.strip {
    list-style: none;
    margin: 0;
    padding: 4px max(16px, (100% - var(--wrap)) / 2) 18px;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--walnut) transparent;
}

.strip li {
    flex: 0 0 auto;
    scroll-snap-align: center;
    position: relative;
}

.strip a {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
}

.strip img {
    height: clamp(240px, 34vw, 380px);
    width: auto;
    transition: transform .5s;
}

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

/* ---- the doctor and the trail ---- */

.doc-grid {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.doc-photo img {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 320 / 336;
    object-fit: cover;
    border-radius: 50% 50% var(--radius) var(--radius) / 47.6% 47.6% var(--radius) var(--radius);
    box-shadow: 0 30px 60px -32px rgb(42 11 58 / .6);
}

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

    .doc-photo img {
        max-width: 240px;
    }
}

.trail {
    list-style: none;
    margin: 28px 0;
    padding: 0;
    border-left: 2px solid var(--line);
}

.trail li {
    position: relative;
    display: grid;
    grid-template-columns: 4.6em minmax(0, 1fr);
    gap: 14px;
    align-items: baseline;
    padding: 10px 0 10px 22px;
}

.trail li::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 1.35em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--porcelain);
    border: 2px solid var(--tulip);
}

.trail-year {
    font-size: 1.9rem;
    line-height: 1;
    color: var(--tulip);
}

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

/* ---- quote ---- */

.band-quote {
    background:
        linear-gradient(115deg, rgb(220 161 103 / .25), transparent 60%),
        var(--linen);
}

.quote {
    margin: 0;
    max-width: 30ch;
    font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.1rem);
    line-height: 1.15;
    color: var(--aub-800);
}

.quote p {
    margin: 0;
}

.quote p::before {
    content: '„';
    font-family: var(--text);
    color: var(--tulip);
}

.quote p::after {
    content: '“';
    font-family: var(--text);
    color: var(--tulip);
}

[lang='en'] .quote p::before {
    content: '“';
}

[lang='en'] .quote p::after {
    content: '”';
}

/* ---- EU notice ---- */

.band-eu {
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.eu-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}

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

.eu-scan {
    margin: 0;
}

.eu-scan a {
    display: block;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    overflow: hidden;
}

.eu-scan figcaption {
    margin-top: 10px;
    font-size: .9rem;
    color: var(--muted);
}

.eu-text h2 {
    font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem);
    color: var(--aub-800);
    font-family: var(--text);
    font-weight: 700;
    letter-spacing: -.01em;
}

.eu-facts {
    margin: 0;
}

.eu-facts div {
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.eu-facts dt {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--walnut);
}

.eu-facts dd {
    margin: 2px 0 0;
}

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

.callband {
    padding: clamp(48px, 7vw, 88px) 0;
    background:
        radial-gradient(60% 120% at 0% 100%, rgb(220 161 103 / .25), transparent 70%),
        linear-gradient(140deg, var(--aub-700), var(--aub-950));
    color: var(--on-dark);
}

.callband-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 24px 56px;
    align-items: center;
}

.callband h2 {
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3.3rem);
    color: #fff;
}

.callband p {
    color: var(--on-dark-muted);
    max-width: 52ch;
}

.callband a:not(.btn) {
    color: var(--honey-light);
}

.callband a:not(.btn):hover {
    color: #fff;
}

.callband-phones {
    container-type: inline-size;
}

.callband-phones .btn {
    font-size: clamp(1.1rem, 7cqi, 1.6rem);
    margin-bottom: 16px;
}

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

/* ---- page hero (inner pages) ---- */

.page-hero {
    padding: clamp(36px, 6vw, 76px) 0 clamp(32px, 5vw, 56px);
    background:
        radial-gradient(50% 90% at 100% 0%, rgb(142 60 134 / .14), transparent 70%),
        var(--porcelain);
}

.page-hero h1 {
    font-size: clamp(2.6rem, 1.6rem + 4vw, 4.8rem);
    color: var(--aub-800);
    line-height: 1.02;
}

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

    .page-hero .wrap > :nth-child(2) { animation-delay: .07s; }
    .page-hero .wrap > :nth-child(3) { animation-delay: .14s; }
}

.crumbs ol {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: .92rem;
    color: var(--muted);
}

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

/* ---- prose and panels ---- */

.prose {
    max-width: 68ch;
}

.prose p {
    margin-bottom: 1.1em;
}

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

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

.panel {
    padding: clamp(22px, 3.4vw, 40px);
    border-radius: var(--radius-lg);
    background: var(--paper);
    border: 1px solid var(--line);
}

.panel h2 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
    color: var(--aub-800);
}

.panel-aub {
    background: linear-gradient(160deg, var(--aub-700), var(--aub-900));
    border-color: transparent;
    color: var(--on-dark);
}

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

.panel-num {
    display: block;
    font-family: var(--display);
    font-size: 3rem;
    line-height: 1;
    color: var(--honey);
    margin-bottom: 10px;
}

.panel:not(.panel-aub) .panel-num {
    color: var(--tulip);
}

/* ---- practice gallery ---- */

.gallery {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(200px, 22vw, 300px);
    gap: 14px;
}

.gallery .wide {
    grid-column: span 2;
}

.gallery li {
    position: relative;
}

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

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

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

@media (max-width: 700px) {
    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 210px;
        gap: 10px;
    }
}

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

.person {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
    padding: clamp(28px, 4vw, 48px) 0;
    border-top: 1px solid var(--line);
}

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

.person-photo img {
    border-radius: 50% 50% var(--radius) var(--radius) / 160px 160px var(--radius) var(--radius);
    box-shadow: 0 30px 60px -34px rgb(42 11 58 / .6);
}

.person h2 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(2rem, 1.5rem + 1.8vw, 2.8rem);
    color: var(--aub-800);
    margin-bottom: .1em;
}

.role {
    color: var(--walnut);
    font-weight: 700;
    letter-spacing: .02em;
}

.person-mono {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    width: 140px;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--aub-700), var(--aub-900));
    color: var(--honey-light);
    font-family: var(--display);
    font-size: 3rem;
}

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

    .person-photo img {
        max-width: 240px;
        border-radius: 50% 50% var(--radius) var(--radius) / 120px 120px var(--radius) var(--radius);
    }

    .person-mono {
        width: 110px;
        font-size: 2.4rem;
    }
}

details.more {
    margin-top: 18px;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
}

details.more summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    font-weight: 700;
    color: var(--aub-800);
}

details.more summary::-webkit-details-marker {
    display: none;
}

details.more summary::after {
    content: '+';
    font-size: 1.5rem;
    line-height: 1;
    color: var(--tulip);
}

details.more[open] summary::after {
    content: '−';
}

.courses {
    margin: 0;
    padding: 0 20px 18px 40px;
}

.courses li {
    padding: 5px 0;
    overflow-wrap: anywhere;
}

.courses .lecturer {
    display: block;
    color: var(--muted);
    font-size: .92rem;
}

.partners {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

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

.partners figure,
.awards figure {
    margin: 0;
}

.partners a {
    display: block;
    width: fit-content;
    border-radius: var(--radius);
    overflow: hidden;
}

.partners figcaption,
.awards figcaption {
    margin-top: 10px;
    font-weight: 600;
}

.awards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.awards figure {
    flex: 1 1 260px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
}

.awards a {
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
}

.awards figcaption small {
    display: block;
    font-weight: 400;
    color: var(--muted);
}

/* ---- zirconia ---- */

.advantages {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    counter-reset: adv;
}

.advantages li {
    counter-increment: adv;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
    font-weight: 600;
    color: var(--aub-800);
}

.advantages li::before {
    content: counter(adv, decimal-leading-zero);
    display: block;
    font-family: var(--display);
    font-size: 2.2rem;
    line-height: 1;
    color: var(--tulip);
    margin-bottom: 10px;
}

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

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

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

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: start;
}

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

.phones-big {
    container-type: inline-size;
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.phones-big li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.phones-big a {
    font-family: var(--display);
    font-size: clamp(1.6rem, 9cqi, 2.6rem);
    line-height: 1.1;
    color: var(--aub-800);
    text-decoration: none;
}

.phones-big a:hover {
    color: var(--tulip);
}

.phones-big small {
    display: block;
    color: var(--muted);
    font-size: .88rem;
}

.contact-list {
    margin: 0;
}

.contact-list div {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.contact-list dt {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--walnut);
}

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

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

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

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

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

.contact-form .btn {
    justify-self: start;
    background: var(--aub-800);
    color: var(--on-dark);
    border: 0;
    cursor: pointer;
}

.contact-form .btn:hover {
    background: var(--aub-600);
}

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

.contact-sent {
    padding: 16px 20px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: #e3f2e6;
    color: #1d4a28;
}

.contact-sent strong {
    display: block;
}

.contact-form ul {
    margin: 4px 0 0;
    padding-left: 18px;
    color: #9b1c2c;
}

.note-box {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: var(--radius);
    background: var(--tulip-soft);
}

.payments {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

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

.foot {
    background: var(--aub-950);
    color: var(--on-dark-muted);
    padding: clamp(48px, 6vw, 72px) 0 calc(28px + env(safe-area-inset-bottom));
    font-size: .96rem;
}

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

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

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

.foot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.foot-logo {
    width: min(100%, 340px);
    margin-bottom: 18px;
}

.foot address {
    font-style: normal;
}

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

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

.foot-nav li {
    padding: 3px 0;
}

.foot-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgb(255 255 255 / .12);
    font-size: .88rem;
}

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

    .foot-brand {
        grid-column: span 2;
    }
}

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

    .foot-brand {
        grid-column: auto;
    }
}

/* ---- call bar on a phone ---- */

.callbar {
    display: none;
}

@media (max-width: 760px) {
    .callbar {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 40;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-height: 54px;
        padding: 12px 18px;
        border-radius: 999px;
        background: var(--honey);
        color: var(--aub-950);
        font-weight: 800;
        text-decoration: none;
        box-shadow: 0 16px 34px -12px rgb(26 6 36 / .6);
    }

    .callbar:hover {
        color: var(--aub-950);
        background: var(--honey-light);
    }

    .foot {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }
}

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

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 16px;
    background:
        radial-gradient(70% 90% at 100% 0%, rgb(142 60 134 / .35), transparent 70%),
        linear-gradient(160deg, var(--aub-800), var(--aub-950));
    color: var(--on-dark);
    text-align: center;
}

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

.not-found img {
    margin: 0 auto 32px;
    width: min(100%, 360px);
}

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

.not-found h2 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.8rem;
    color: #fff;
    margin-top: 40px;
}

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

.not-found [lang='en'] {
    margin-top: 28px;
    padding-top: 8px;
    border-top: 1px solid rgb(255 255 255 / .15);
}

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

/* ---- additions ---- */

.h-panel {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
    color: inherit;
}

.panel-aub .h-panel {
    color: #fff;
}

.panel-aub p {
    color: var(--on-dark-muted);
}

/* ---- before/after gallery ---- */

.ba-groups {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: clamp(36px, 5vw, 56px) 48px;
}

.ba-group {
    flex: 0 1 auto;
    max-width: 100%;
}

.ba-group .h-sec {
    margin-bottom: 18px;
}

.ba-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 18px;
}

.ba {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    max-width: 100%;
    padding: 8px;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px -30px rgb(42 11 58 / .45);
}

.ba-pic {
    position: relative;
    display: block;
    flex: 0 1 175px;
    min-width: 0;
}

.ba-pic img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.ba-tag {
    position: absolute;
    left: 6px;
    bottom: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--aub-800);
    color: var(--on-dark);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ba-tag-after {
    background: var(--honey);
    color: var(--aub-900);
}

/* ---- card logos, map ---- */

.cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cards li {
    display: grid;
    place-items: center;
    padding: 6px 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
}

.cards img {
    display: block;
    height: 40px;
    width: auto;
}

.map-grid {
    align-items: center;
}

.map-figure {
    margin: 0;
}

.map-figure a {
    display: block;
    width: fit-content;
    max-width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 50px -32px rgb(42 11 58 / .55);
}

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