/* Auto Ecole des Arcades: asphalt and signal green, Space Grotesk + Be Vietnam Pro.
   Signature: "La route du permis", the instalments of a course as French kilometre stones along a road. */

@font-face {
    font-family: "Space Grotesk";
    src: url("../fonts/space-grotesk.woff2") format("woff2");
    font-weight: 300 700;
    font-display: swap;
}
@font-face {
    font-family: "Be Vietnam Pro";
    src: url("../fonts/be-vietnam-pro-regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Be Vietnam Pro";
    src: url("../fonts/be-vietnam-pro-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Be Vietnam Pro";
    src: url("../fonts/be-vietnam-pro-semibold.woff2") format("woff2");
    font-weight: 600 700;
    font-display: swap;
}

:root {
    --asphalt: #15181c;
    --asphalt-2: #22272e;
    --asphalt-3: #2e343c;
    --lane: #f3f1e9;
    --paper: #f6f7f2;
    --tint: #e9efe3;
    --card: #ffffff;
    --ink: #15181c;
    --muted: #4a525b;
    --green: #00b72e;
    --green-ink: #00701f;
    --green-deep: #0a4f1d;
    --green-soft: #d8f2dc;
    --red: #c8102e;
    --blue: #1c45b0;
    --line: rgba(21, 24, 28, 0.12);
    --radius: 22px;
    --radius-s: 12px;
    --display: "Space Grotesk", "Arial Narrow", system-ui, sans-serif;
    --text: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
    color-scheme: light;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1.0625rem/1.65 var(--text);
    overflow-wrap: break-word;
}

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

a {
    color: var(--green-ink);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 0.08em;
}

a:hover {
    color: var(--green-deep);
}

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

h1,
h2,
h3,
h4,
.h3 {
    font-family: var(--display);
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin: 0 0 0.6em;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.4rem, 7vw, 4.9rem);
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3,
.h3 {
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    letter-spacing: -0.015em;
}

h4 {
    font-size: 1.05rem;
    letter-spacing: 0;
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

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

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

.skip:focus {
    top: 12px;
}

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

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(21, 24, 28, 0.92);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    color: var(--lane);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    min-height: 72px;
    padding-top: 8px;
    padding-bottom: 8px;
}

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

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

.brand-name {
    display: flex;
    flex-direction: column;
    font: italic 700 0.98rem/1.02 Verdana, "DejaVu Sans", sans-serif;
    color: var(--green);
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.brand-name span + span {
    font-family: Arial, "Liberation Sans", sans-serif;
    font-size: 1.12rem;
}

.call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: var(--asphalt);
    font: 700 1rem/1 var(--display);
    padding: 11px 16px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s, background 0.2s;
}

.call:hover {
    background: #3fd062;
    color: var(--asphalt);
    transform: translateY(-1px);
}

.lang {
    display: flex;
    gap: 2px;
    font: 600 0.82rem/1 var(--display);
    letter-spacing: 0.06em;
}

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

.lang span {
    background: rgba(255, 255, 255, 0.12);
}

.lang a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

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

.nav a {
    color: var(--lane);
    text-decoration: none;
    font: 500 1rem/1 var(--display);
    padding: 10px 12px;
    border-radius: 999px;
    transition: background 0.2s;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

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

.menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--lane);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 9px 14px;
    font: 600 0.95rem/1 var(--display);
    cursor: pointer;
}

.menu-btn[hidden] {
    display: none;
}

.burger,
.burger::before,
.burger::after {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
    transition: transform 0.2s;
}

.burger::before,
.burger::after {
    content: "";
    position: absolute;
}

.burger::before {
    top: -5px;
}

.burger::after {
    top: 5px;
}

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

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

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

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

.js-menu .nav.is-open {
    display: flex;
}

.js-menu .nav a {
    padding: 14px 16px;
    border-radius: 12px;
}

@media (max-width: 759px) {
    .brand img {
        width: 58px;
    }

    .brand-name {
        font-size: 0.8rem;
    }

    .brand-name span + span {
        font-size: 0.92rem;
    }

    .call {
        padding: 10px 13px;
        font-size: 0.95rem;
    }

    .lang {
        order: 4;
    }

    .menu-btn {
        order: 4;
        margin-left: auto;
    }
}

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

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

    .nav {
        width: auto;
        order: 2;
        flex-wrap: nowrap;
    }

    .brand {
        margin-right: 0;
    }

    .nav {
        margin-left: auto;
    }
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    font: 700 1rem/1.1 var(--display);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, color 0.2s;
}

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

.btn-go {
    background: var(--green);
    color: var(--asphalt);
}

.btn-go:hover {
    background: #3fd062;
    color: var(--asphalt);
}

.btn-big {
    font-size: 1.2rem;
    padding: 17px 26px;
}

.btn-ghost {
    color: var(--lane);
    box-shadow: inset 0 0 0 2px rgba(243, 241, 233, 0.5);
}

.btn-ghost:hover {
    color: var(--asphalt);
    background: var(--lane);
}

.btn-line {
    color: var(--lane);
    box-shadow: inset 0 0 0 2px var(--lane);
}

.btn-line:hover {
    background: var(--lane);
    color: var(--asphalt);
}

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

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 85% 10%, rgba(0, 183, 46, 0.18), transparent 55%),
        linear-gradient(180deg, var(--asphalt) 0%, #1b1f24 100%);
    color: var(--lane);
    padding: clamp(36px, 7vw, 96px) 0 clamp(48px, 8vw, 110px);
}

.hero-road {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-road path {
    fill: none;
    stroke-linecap: round;
}

.hero-road .kerb {
    stroke: rgba(243, 241, 233, 0.13);
    stroke-width: 10;
}

.hero-road .centre {
    stroke: rgba(243, 241, 233, 0.32);
    stroke-width: 7;
    stroke-dasharray: 46 34;
    animation: lane 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes lane {
    from {
        stroke-dashoffset: 640;
        opacity: 0;
    }
    to {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

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

@media (min-width: 960px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.eyebrow {
    display: inline-block;
    font: 600 0.85rem/1 var(--display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
    border: 1px solid rgba(0, 183, 46, 0.45);
    padding: 8px 12px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.hero h1 {
    color: #fff;
    max-width: 12ch;
    animation: up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

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

.hero .lead {
    font-size: clamp(1.08rem, 1.6vw, 1.25rem);
    max-width: 40ch;
    color: #d9ddd5;
    animation: up 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
    animation: up 0.9s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

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

.hero-photo {
    margin: 0;
    position: relative;
    animation: up 1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-photo img {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 3 / 2;
    object-fit: cover;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

/* the caption as a French number plate */
.plate {
    position: absolute;
    left: 50%;
    bottom: -22px;
    transform: translateX(-50%);
    display: flex;
    align-items: stretch;
    background: #fff;
    color: #111;
    border: 2px solid #111;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
}

.plate-eu,
.plate-dep {
    background: var(--blue);
    color: #fff;
    font: 700 0.85rem/1 var(--display);
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.plate-text {
    font: 700 clamp(1rem, 2.6vw, 1.35rem)/1 var(--display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 9px 14px;
}

.plate-text small {
    display: block;
    font: 600 0.62rem/1 var(--text);
    letter-spacing: 0.14em;
    color: #3a3f45;
    margin-bottom: 4px;
}

/* ---- bands and section heads ---- */

.band {
    padding: clamp(48px, 7vw, 96px) 0;
}

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

.band-dark {
    background: var(--asphalt);
    color: var(--lane);
}

.band-dark a {
    color: #fff;
}

.band-chips {
    padding: 40px 0;
    border-top: 1px solid var(--line);
}

.sec-head {
    display: grid;
    gap: 6px 32px;
    margin-bottom: clamp(24px, 4vw, 44px);
    align-items: end;
}

.sec-head h2 {
    margin: 0;
}

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

.band-dark .sec-head p,
.band-road .sec-head p {
    color: #c9cec6;
}

.more {
    font: 700 1rem/1.2 var(--display);
    text-decoration: none;
    white-space: nowrap;
}

.more span {
    display: inline-block;
    transition: transform 0.2s;
}

.more:hover span {
    transform: translateX(4px);
}

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

    .sec-head p {
        grid-column: 1;
    }

    .sec-head .more {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}

/* ---- the road: instalments as kilometre stones ---- */

.band-road {
    background: var(--asphalt-2);
    color: var(--lane);
}

.band-road a.more {
    color: var(--green);
}

.band-road strong {
    color: #fff;
}

.road-wrap {
    position: relative;
}

.road {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    display: grid;
    gap: 14px;
}

/* the road surface with its dashed centre line, vertical on a phone */
.road::before {
    content: "";
    position: absolute;
    left: 0;
    top: -8px;
    bottom: -8px;
    width: 58px;
    border-radius: 10px;
    background:
        repeating-linear-gradient(180deg, var(--lane) 0 26px, transparent 26px 46px) center / 4px 100% no-repeat,
        linear-gradient(90deg, #f3f1e9 0 3px, #3a4048 3px calc(100% - 3px), #f3f1e9 calc(100% - 3px));
}

.stone {
    position: relative;
    display: grid;
    grid-template-columns: 124px 1fr;
    grid-template-rows: auto auto;
    column-gap: 18px;
    padding-left: 76px;
    align-items: center;
}

.stone-cap {
    grid-column: 1;
    grid-row: 1;
    background: var(--red);
    color: #fff;
    font: 700 0.86rem/1 var(--display);
    text-align: center;
    padding: 11px 6px 9px;
    border-radius: 60px 60px 0 0;
    letter-spacing: 0.02em;
}

.stone-amount {
    grid-column: 1;
    grid-row: 2;
    background: #fff;
    color: var(--asphalt);
    font: 700 1.55rem/1 var(--display);
    text-align: center;
    padding: 12px 6px 14px;
    border-radius: 0 0 8px 8px;
    box-shadow: inset 0 -6px 0 rgba(21, 24, 28, 0.08), 0 10px 20px -8px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.02em;
}

.stone-when {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: #d6dbd2;
    font-size: 0.98rem;
    line-height: 1.35;
}

.stone-end .stone-cap {
    background: var(--green);
    color: var(--asphalt);
}

.stone-end .stone-amount {
    background: var(--lane);
    font-size: 1.75rem;
}

@media (min-width: 860px) {
    .road {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 18px;
        padding-bottom: 92px;
    }

    .road::before {
        top: auto;
        left: -12px;
        right: -12px;
        bottom: 18px;
        width: auto;
        height: 58px;
        background:
            repeating-linear-gradient(90deg, var(--lane) 0 34px, transparent 34px 60px) center / 100% 4px no-repeat,
            linear-gradient(180deg, #f3f1e9 0 3px, #3a4048 3px calc(100% - 3px), #f3f1e9 calc(100% - 3px));
    }

    .stone {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 0;
        text-align: center;
    }

    .stone-cap,
    .stone-amount {
        width: min(100%, 150px);
    }

    .stone-when {
        margin-top: 14px;
        font-size: 0.92rem;
        max-width: 16ch;
    }
}

@supports (animation-timeline: view()) {
    .stone {
        animation: rise linear both;
        animation-timeline: view();
        animation-range: entry calc(var(--i) * 4%) entry calc(40% + var(--i) * 6%);
    }

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

.pay-head {
    display: grid;
    gap: 10px;
    margin-bottom: 34px;
}

.pay-head h2 {
    margin: 0;
}

.pay-means {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #d6dbd2;
}

.pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 999px;
    padding: 6px 13px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ---- course cards ---- */

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

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

@media (min-width: 1000px) {
    .course-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.course-card {
    position: relative;
    background: var(--card);
    border-radius: var(--radius);
    padding: 26px 26px 22px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(21, 24, 28, 0.35);
    transition: transform 0.25s, box-shadow 0.25s;
}

.course-card:hover,
.course-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 1px 0 var(--line), 0 26px 50px -26px rgba(21, 24, 28, 0.45);
}

.course-card h2,
.course-card h3 {
    margin-bottom: 10px;
}

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

.course-card h2 a::after,
.course-card h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
}

.course-card p {
    color: var(--muted);
    margin-bottom: 18px;
}

.course-card .course-price {
    margin: auto 0 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.92rem;
}

.course-price strong {
    font: 700 2rem/1 var(--display);
    color: var(--green-ink);
    letter-spacing: -0.03em;
}

.course-go {
    position: absolute;
    right: 22px;
    top: 22px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green-deep);
    font-weight: 700;
    transition: transform 0.25s, background 0.25s;
}

.course-card:hover .course-go {
    transform: translateX(3px);
    background: var(--green);
}

.course-card-main {
    background: var(--green-deep);
    color: #fff;
}

.course-card-main h2 a,
.course-card-main h3 a,
.course-card-main .course-price strong {
    color: #fff;
}

.course-card-main p,
.course-card-main .course-price {
    color: #d5ead9;
}

.course-card-main .course-go {
    background: var(--green);
    color: var(--asphalt);
}

/* ---- driving-test cards: road signs ---- */

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

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

@media (min-width: 1000px) {
    .exam-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.exam-card {
    position: relative;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 4px 18px;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--asphalt-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.25s, transform 0.25s;
}

.exam-card:hover,
.exam-card:focus-within {
    background: var(--asphalt-3);
    transform: translateY(-3px);
}

.exam-sign {
    grid-row: 1 / span 2;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    border: 3px solid #fff;
    display: grid;
    place-items: center;
    font: 700 1.4rem/1 var(--display);
}

.exam-card h2,
.exam-card h3 {
    margin: 4px 0 6px;
}

.exam-card h2 a,
.exam-card h3 a {
    color: #fff;
    text-decoration: none;
}

.exam-card h2 a::after,
.exam-card h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
}

.exam-card p {
    margin: 0;
    color: #c9cec6;
    font-size: 0.97rem;
}

/* ---- home: the office ---- */

.school {
    display: grid;
    gap: 16px;
}

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

    .school-photo {
        grid-column: 1 / span 5;
        grid-row: span 2;
    }

    .school-contact {
        grid-column: 6 / span 4;
    }

    .school-team {
        grid-column: 10 / span 3;
    }

    .school .hours {
        grid-column: 6 / span 7;
    }
}

.school-photo,
.contact-grid .school-photo {
    margin: 0;
}

.school-photo img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.tile {
    background: var(--card);
    border-radius: var(--radius);
    padding: clamp(22px, 3vw, 32px);
    box-shadow: 0 1px 0 var(--line);
}

.tile > :last-child {
    margin-bottom: 0;
}

.tile-dark {
    background: var(--asphalt);
    color: var(--lane);
}

.tile-dark a {
    color: #fff;
}

.tile-dark h2,
.tile-dark h3 {
    color: var(--green);
}

.tile-green {
    background: var(--green-deep);
    color: #fff;
}

.tile-green a {
    color: #fff;
}

.tile-big {
    font: 700 clamp(2.4rem, 6vw, 3.6rem)/1 var(--display);
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

.school-addr {
    font: 600 1.15rem/1.4 var(--display);
}

.big-phone {
    font: 700 clamp(1.7rem, 4vw, 2.3rem)/1.1 var(--display);
    letter-spacing: -0.02em;
    text-decoration: none;
    white-space: nowrap;
}

.tile-dark .big-phone {
    color: var(--green);
}

.social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.social a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.social a:hover {
    background: var(--green);
    color: var(--asphalt);
}

.social-light span {
    width: 100%;
    color: #c9cec6;
    font-size: 0.92rem;
}

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

.team li {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 12px;
    align-items: center;
    color: var(--muted);
    line-height: 1.3;
}

.team strong {
    display: block;
    color: var(--ink);
    font: 700 1.2rem/1.1 var(--display);
}

.team-initial {
    grid-row: span 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green-deep);
    display: grid;
    place-items: center;
    font: 700 1.3rem/1 var(--display);
}

.hours h3 {
    color: #fff;
}

.hours-cols {
    display: grid;
    gap: 18px;
}

@media (min-width: 560px) {
    .hours-cols {
        grid-template-columns: 1fr 1fr;
    }
}

.hours h4 {
    color: #bfeec9;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.hours dl {
    margin: 0;
    display: grid;
    gap: 8px;
}

.hours dt {
    font-weight: 600;
}

.hours dd {
    margin: 0;
    color: #d5ead9;
}

.hours-closed {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

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

.call-band {
    background: var(--green-deep);
    color: #fff;
    padding: clamp(40px, 6vw, 72px) 0;
    position: relative;
    overflow: hidden;
}

.call-band::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 40px, transparent 40px 70px);
}

.call-band-grid {
    position: relative;
    display: grid;
    gap: 22px;
    align-items: center;
}

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

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

.call-band-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (min-width: 860px) {
    .call-band-grid {
        grid-template-columns: 1fr auto;
    }
}

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

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

.page-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: repeating-linear-gradient(90deg, var(--lane) 0 46px, transparent 46px 80px);
    opacity: 0.4;
}

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

.page-hero .lead {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: #d9ddd5;
    max-width: 62ch;
    margin: 0;
}

.page-hero-exam {
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(28, 69, 176, 0.35), transparent 60%),
        var(--asphalt);
}

.page-hero-grid {
    display: grid;
    gap: 28px;
    align-items: end;
}

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

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 0.92rem;
    margin-bottom: 18px;
    color: #c9cec6;
}

.crumbs a {
    color: #fff;
}

.price-plate {
    margin: 0;
    background: #fff;
    color: var(--asphalt);
    border-radius: 16px;
    padding: 18px 24px 16px;
    display: grid;
    gap: 4px;
    border: 3px solid var(--green);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
    justify-self: start;
}

.price-plate-label {
    font: 600 0.85rem/1.2 var(--display);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green-ink);
}

.price-plate-value {
    font: 700 clamp(2.6rem, 6vw, 3.6rem)/1 var(--display);
    letter-spacing: -0.04em;
}

.price-plate-note {
    font-size: 0.85rem;
    color: var(--muted);
}

.bento {
    display: grid;
    gap: 16px;
}

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

    .tile-wide {
        grid-column: 1 / -1;
    }
}

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

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

.ticks > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.25em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2315181c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.ticks ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

@media (min-width: 760px) {
    .ticks-cols {
        display: block;
        columns: 2;
        column-gap: 40px;
    }

    .ticks-cols > li {
        break-inside: avoid;
        margin-bottom: 10px;
    }
}

.price-rows {
    margin: 0;
    display: grid;
}

.price-rows > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(21, 24, 28, 0.2);
}

.price-rows > div:last-child {
    border-bottom: 0;
}

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

.price-rows dd {
    margin: 0;
    font: 700 1.3rem/1 var(--display);
    color: var(--green-ink);
    white-space: nowrap;
}

.price-rows-big {
    background: var(--card);
    border-radius: var(--radius);
    padding: 8px 24px;
}

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

.chips a {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--card);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px var(--line);
    transition: background 0.2s;
}

.chips a:hover {
    background: var(--green-soft);
}

.chips a small {
    color: var(--green-ink);
    font-weight: 600;
}

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

.chips a[aria-current] small {
    color: #8ce0a0;
}

.chips-num {
    counter-reset: c;
}

.chips-num a::before {
    counter-increment: c;
    content: counter(c);
    font: 700 0.8rem/1 var(--display);
    background: var(--blue);
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    align-self: center;
}

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

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

.prose {
    max-width: 66ch;
}

.big-figure {
    font: 600 1.05rem/1.2 var(--display);
    color: var(--muted);
}

.big-figure span {
    display: block;
    font-size: clamp(4rem, 12vw, 7rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
    color: var(--green-ink);
}

.figures {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 40px;
}

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

.blocks > li {
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px 22px 18px 76px;
    position: relative;
    box-shadow: 0 1px 0 var(--line);
}

.blocks > li::before {
    counter-increment: b;
    content: counter(b);
    position: absolute;
    left: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--asphalt);
    color: var(--green);
    display: grid;
    place-items: center;
    font: 700 1.2rem/1 var(--display);
}

.blocks h2 {
    margin-bottom: 8px;
}

.blocks ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.scores {
    display: grid;
    gap: 16px;
}

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

.score {
    background: var(--card);
    border-radius: var(--radius);
    padding: 26px;
}

.score ul {
    padding-left: 18px;
}

.score-range {
    font: 700 2.6rem/1 var(--display);
    color: var(--green-ink);
    letter-spacing: -0.04em;
}

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

.stop-list li {
    position: relative;
    padding-left: 34px;
}

.stop-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 4px solid var(--red);
    background: #fff;
}

.docs {
    display: grid;
    gap: 18px;
}

.doc {
    margin: 0;
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 1px 0 var(--line);
}

.doc img {
    border-radius: 8px;
    margin: 0 auto;
}

.doc figcaption {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.93rem;
}

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

.trail::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: repeating-linear-gradient(180deg, var(--asphalt) 0 12px, transparent 12px 20px);
    opacity: 0.35;
}

.trail li {
    position: relative;
    padding: 8px 0 18px 58px;
}

.trail li::before {
    counter-increment: t;
    content: counter(t);
    position: absolute;
    left: 0;
    top: 2px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--green);
    color: var(--asphalt);
    display: grid;
    place-items: center;
    font: 700 1.1rem/1 var(--display);
}

.delays {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
}

.delays caption {
    text-align: left;
    font: 700 1.2rem/1.2 var(--display);
    padding-bottom: 12px;
}

.delays th,
.delays td {
    text-align: left;
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
}

.delays thead th {
    background: var(--asphalt);
    color: #fff;
    font-family: var(--display);
}

.delays td:last-child {
    font: 700 1.1rem/1 var(--display);
    color: var(--green-ink);
    white-space: nowrap;
}

/* ---- check cards ---- */

.card-index {
    margin-bottom: 28px;
}

.card-index ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-index a {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--card);
    color: var(--ink);
    text-decoration: none;
    font: 700 0.95rem/1 var(--display);
    box-shadow: inset 0 0 0 1px var(--line);
}

.card-index a:hover {
    background: var(--green-soft);
}

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

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

.check {
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 1px 0 var(--line), 0 18px 40px -32px rgba(21, 24, 28, 0.4);
    scroll-margin-top: 96px;
}

.check-n {
    margin: 0;
    font: 700 1.35rem/1 var(--display);
    letter-spacing: -0.02em;
}

.check-n span {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--asphalt);
    color: var(--green);
    padding: 5px 8px;
    border-radius: 6px;
    margin-right: 6px;
    vertical-align: 3px;
}

.check-task {
    font-weight: 600;
    margin-bottom: 8px;
}

.check-tip {
    margin: 0;
    color: var(--muted);
    border-left: 4px solid var(--green);
    padding-left: 12px;
}

.check-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.check-photos figure {
    margin: 0;
}

.check-photos img {
    border-radius: 12px;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    background: var(--tint);
}

.check-qa {
    margin-top: auto;
    border-radius: 14px;
    background: var(--tint);
}

.check-qa summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 48px 14px 16px;
    position: relative;
    font-weight: 600;
}

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

.check-qa summary::after {
    content: "+";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--asphalt);
    color: #fff;
    display: grid;
    place-items: center;
    font: 700 1.1rem/1 var(--display);
    transition: transform 0.2s;
}

.check-qa[open] summary::after {
    content: "–";
}

.qa-label {
    display: block;
    font: 700 0.75rem/1 var(--display);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green-ink);
    margin-bottom: 6px;
}

.qa-answer {
    padding: 0 16px 16px;
}

.qa-answer > :last-child,
.qa-answer ul {
    margin-bottom: 0;
}

.qa-answer ul {
    padding-left: 18px;
}

.qa-num {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--asphalt);
    color: var(--green);
    font: 700 0.9rem/1 var(--display);
    margin-right: 8px;
}

.aid {
    display: grid;
    gap: 40px;
}

.aid-group h2 {
    display: flex;
    align-items: center;
    gap: 14px;
}

.aid-step {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    flex: none;
}

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

@media (min-width: 860px) {
    .aid-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

.aid-list .check-qa {
    background: var(--card);
    box-shadow: 0 1px 0 var(--line);
}

/* ---- prices ---- */

.plates {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: grid;
    gap: 14px;
}

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

@media (min-width: 1000px) {
    .plates {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.plates a {
    display: grid;
    gap: 4px;
    padding: 20px 22px;
    border-radius: 16px;
    background: #fff;
    border: 3px solid var(--asphalt);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s;
}

.plates a:hover {
    transform: translateY(-3px);
    border-color: var(--green);
}

.plates-name {
    font: 700 1.15rem/1.2 var(--display);
}

.plates-price {
    font: 700 2.3rem/1 var(--display);
    letter-spacing: -0.04em;
    color: var(--green-ink);
}

.plates-unit {
    color: var(--muted);
    font-size: 0.92rem;
}

.note {
    color: var(--muted);
}

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

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

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 5fr 7fr;
    }
}

.contact-grid address {
    font-style: normal;
    margin-bottom: 1em;
}

.contact-form > div {
    margin-bottom: 16px;
}

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

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

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--green-ink);
    outline: 3px solid rgba(0, 183, 46, 0.35);
    outline-offset: 1px;
}

.contact-form ul {
    color: var(--red);
    padding-left: 18px;
}

.form-hint {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 12px;
}

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

.contact-sent strong {
    display: block;
}

/* ---- legal ---- */

.legal {
    max-width: 820px;
}

.legal h2 {
    font-size: clamp(1.35rem, 2.6vw, 1.75rem);
    margin-top: 1.6em;
}

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

.legal-list {
    display: grid;
    gap: 0;
    margin: 0 0 1em;
    background: var(--card);
    border-radius: var(--radius-s);
    padding: 6px 18px;
}

.legal-list > div {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.legal-list > div:last-child {
    border-bottom: 0;
}

.legal-list dt {
    font-weight: 600;
    min-width: 160px;
}

.legal-list dd {
    margin: 0;
}

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

.foot {
    background: var(--asphalt);
    color: #c9cec6;
    padding: 0 0 28px;
    font-size: 0.97rem;
}

.foot-road {
    height: 14px;
    background:
        repeating-linear-gradient(90deg, var(--lane) 0 46px, transparent 46px 80px) center / 100% 4px no-repeat,
        var(--asphalt-2);
    margin-bottom: 56px;
}

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

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

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

@media (min-width: 1080px) {
    .foot-grid {
        grid-template-columns: 1.5fr 1fr 1.1fr 0.8fr;
    }

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

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

.foot a {
    color: #fff;
}

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

.foot-name {
    font: italic 700 1.2rem/1.2 Verdana, "DejaVu Sans", sans-serif;
    color: var(--green);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.foot address {
    font-style: normal;
}

.foot-phone {
    font: 700 1.5rem/1.1 var(--display);
    text-decoration: none;
    white-space: nowrap;
}

.foot-hours {
    margin-bottom: 12px;
}

.foot-hours strong {
    color: #fff;
}

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

.foot-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    font-size: 0.9rem;
}

.foot-bottom p {
    margin: 0;
}

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

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px var(--gutter);
    background: var(--asphalt);
    color: var(--lane);
    text-align: center;
}

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

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

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

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

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

/* ---- motion ---- */

@supports (animation-timeline: view()) {
    .course-card,
    .exam-card,
    .check,
    .tile,
    .blocks > li,
    .score {
        animation: reveal linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 35%;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .top,
    .call-band,
    .foot-road,
    .hero-road {
        display: none;
    }
}

/* ---- lightbox: /js/lightbox.js opens a linked image enlarged over the page, in a <dialog> ----
   Paste this block into the site's css/site.css. The overlay is dark in every theme and brings its own
   colours and box sizing, so it does not depend on the rest of the stylesheet. To recolour it to the
   site, set these on .lightbox (or on :root): --lb-bg, --lb-text, --lb-accent (focus ring),
   --lb-accent-soft (hover). */

[data-lightbox] {
    cursor: zoom-in;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 68px 12px 14px;
    border: 0;
    background: var(--lb-bg, rgba(12, 14, 16, 0.95));
    color: var(--lb-text, #f2f2f2);
    color-scheme: dark;
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox::backdrop {
    background: none;
}

.lightbox-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
}

.lightbox-caption {
    display: grid;
    place-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 56px;
    color: var(--lb-text, #f2f2f2);
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.lightbox-button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-button:hover {
    border-color: #ffffff;
    background-color: var(--lb-accent-soft, rgba(255, 255, 255, 0.16));
}

.lightbox-button:focus-visible {
    outline: 3px solid var(--lb-accent, #ffffff);
    outline-offset: 3px;
    border-radius: 50%;
}

.lightbox-button[hidden] {
    display: none;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.lightbox-prev,
.lightbox-next {
    bottom: 14px;
}

.lightbox-prev {
    left: 12px;
    rotate: 180deg;
}

.lightbox-next {
    right: 12px;
}

@media (min-width: 760px) {
    .lightbox {
        padding: 24px 84px 18px;
    }

    .lightbox-caption {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next,
    .lightbox-close {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] {
        animation: lightbox-in 0.2s ease;
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}

.lightbox {
    --lb-bg: rgba(12, 14, 17, 0.94);
    --lb-text: #f3f1e9;
    --lb-accent: #00b72e;
    --lb-accent-soft: rgba(0, 183, 46, 0.25);
}
