:root {
    --bg: #faf7f2;
    --card: #ffffff;
    --ink: #1f2328;
    --muted: #5b6470;
    --line: #ece8e1;
    --accent: #e65100;
    --accent-ink: #b83e00;
    --accent-soft: #fff1e6;
    --aegean: #1d4f91;
    --aegean-soft: #e9f0fa;
    --ok: #2e7d32;
    --ok-soft: #eaf6ea;
    --warn-soft: #fff6dd;
    --radius: 18px;
    --shadow: 0 1px 2px rgba(31, 35, 40, .04), 0 8px 24px rgba(31, 35, 40, .06);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--accent-ink);
}

a:hover {
    color: var(--accent);
}

.wrap {
    width: min(1120px, 100% - 32px);
    margin-inline: auto;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
    color: var(--ink);
}

/* ---------- Шапка ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 12px;
}

.brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.brand span {
    color: var(--accent);
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: block;
    padding: 6px 2px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: var(--accent-ink);
}

.has-sub {
    position: relative;
}

.sub {
    position: absolute;
    top: 100%;
    left: -12px;
    min-width: 170px;
    padding: 8px;
    margin: 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.has-sub:hover .sub,
.has-sub:focus-within .sub {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.sub a {
    padding: 8px 12px;
    border-radius: 8px;
}

.sub a:hover {
    background: var(--accent-soft);
}

/* ---------- Hero ---------- */
.hero {
    padding: 28px 0 8px;
}

.crumbs {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 14px;
}

.crumbs a {
    color: var(--muted);
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--accent-ink);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 36px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(32px, 4.6vw, 52px);
    margin: 0 0 16px;
    letter-spacing: -.01em;
}

#avenue-cafes h2 {
    text-align: center;
    width: 100%;
}

.lead {
    font-size: 19px;
    color: var(--muted);
    margin: 0 0 22px;
}

.updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ok);
    background: var(--ok-soft);
    border-radius: 999px;
}

.hero-photo {
    aspect-ratio: 4 / 3;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #0e7c9b 0%, #6fd0d8 60%, #fdf0cf 100%);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-photo .big {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: clamp(80px, 14vw, 140px);
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .2));
}

.toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.toc a {
    display: inline-block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: background .2s, border-color .2s, color .2s;
}

.toc a:hover {
    background: var(--accent-soft);
    border-color: #f3d3b8;
    color: var(--accent-ink);
}

/* ---------- Секції ---------- */
section {
    padding: 44px 0 4px;
}

.sec-head {
    margin-bottom: 24px;
}

.sec-head h2 {
    font-size: clamp(26px, 3.2vw, 36px);
    margin: 0 0 8px;
}

.sec-head p {
    margin: 0;
    color: var(--muted);
    max-width: 70ch;
}

.eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--accent-ink);
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 14px;
}

.fact {
    padding: 18px 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.fact b {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--accent-ink);
}

.fact span {
    font-size: 15.5px;
    line-height: 1.45;
    display: block;
}

/* репортаж з Ніцци */
.mr-report {
    --mr-accent: var(--accent, #b08850);
    --mr-accent-soft: rgba(176, 136, 80, .14);
    --mr-ink: var(--text, #1c1a17);
    --mr-muted: #6b665f;
    --mr-card: #fff;
    --mr-line: rgba(0, 0, 0, .08);
    margin: 56px 0;
    color: var(--mr-ink);
    font-family: 'Inter', system-ui, sans-serif;
}

.mr-report * {
    box-sizing: border-box;
}

/* Шапка */
.mr-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--mr-accent);
}

.mr-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d64545;
    animation: mr-pulse 1.8s ease-out infinite;
}

@keyframes mr-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(214, 69, 69, .5);
    }

    100% {
        box-shadow: 0 0 0 10px rgba(214, 69, 69, 0);
    }
}

.mr-head h2 {
    margin: 0 0 14px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.2;
    font-weight: 700;
}

.mr-lead {
    margin: 0 0 28px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--mr-muted);
    max-width: 720px;
}

/* Стаття + бейдж-таймер */
.mr-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.mr-article p {
    margin: 0 0 18px;
    font-size: 17px;
    line-height: 1.75;
}

.mr-article p:first-child::first-letter {
    float: left;
    margin: 4px 10px 0 0;
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    line-height: .9;
    color: var(--mr-accent);
}

.mr-note {
    padding: 14px 18px;
    border-left: 3px solid var(--mr-accent);
    background: var(--mr-accent-soft);
    border-radius: 0 10px 10px 0;
    font-size: 15px !important;
}

.mr-note a {
    color: var(--mr-accent);
    font-weight: 600;
}

/* Стартовий номер */
.mr-side {
    position: sticky;
    top: 24px;
}

.mr-bib {
    position: relative;
    padding: 34px 22px 22px;
    text-align: center;
    background: var(--mr-card);
    border-radius: 14px;
    border-top: 10px solid var(--mr-accent);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
    transform: rotate(-1.6deg);
    transition: transform .3s ease;
}

.mr-bib:hover {
    transform: rotate(0deg) translateY(-3px);
}

.mr-pin {
    position: absolute;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #e8e4de;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25);
}

.mr-pin--tl {
    top: 8px;
    left: 10px;
}

.mr-pin--tr {
    top: 8px;
    right: 10px;
}

.mr-pin--bl {
    bottom: 8px;
    left: 10px;
}

.mr-pin--br {
    bottom: 8px;
    right: 10px;
}

.mr-bib-top {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    color: var(--mr-muted);
}

.mr-bib-title {
    margin: 0 0 14px;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
}

.mr-count {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.mr-count b {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.mr-count span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--mr-muted);
}

.mr-bib-foot {
    margin: 16px 0 0;
    padding-top: 12px;
    border-top: 1px dashed var(--mr-line);
    font-size: 12px;
    color: var(--mr-muted);
}

.mr-bib.is-live .mr-count {
    display: none;
}

.mr-bib.is-live .mr-bib-title {
    font-size: 26px;
    color: #d64545;
    margin-bottom: 6px;
}

/* Таймлайн */
.mr-timeline {
    list-style: none;
    margin: 44px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
}

.mr-timeline::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: linear-gradient(90deg, var(--mr-accent) 0 50%, var(--mr-line) 50% 100%);
}

.mr-timeline li {
    position: relative;
    text-align: center;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mr-timeline strong {
    font-size: 15px;
}

.mr-timeline li span:last-child {
    font-size: 14px;
    color: var(--mr-muted);
    line-height: 1.4;
}

.mr-step-dot {
    width: 20px;
    height: 20px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: var(--mr-card);
    border: 2px solid var(--mr-line);
    position: relative;
    z-index: 1;
}

.mr-timeline .is-done .mr-step-dot {
    background: var(--mr-accent);
    border-color: var(--mr-accent);
}

.mr-timeline .is-now .mr-step-dot {
    border-color: var(--mr-accent);
    box-shadow: 0 0 0 5px var(--mr-accent-soft);
}

/* Галерея */
.mr-gallery-wrap {
    margin-top: 56px;
}

.mr-gallery-title {
    margin: 0 0 6px;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
}

.mr-gallery-sub {
    margin: 0 0 22px;
    font-size: 14px;
    color: var(--mr-muted);
}

.mr-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    grid-auto-flow: dense;
    gap: 14px;
}

.mr-item {
    position: relative;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #ddd;
}

.mr-wide {
    grid-column: span 2;
}

.mr-tall {
    grid-row: span 2;
}

.mr-photo {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.mr-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

.mr-item:hover img {
    transform: scale(1.06);
}

.mr-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, .94);
    border-radius: 6px;
    border-bottom: 3px solid var(--mr-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--mr-ink);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.mr-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 36px 16px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .72));
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
    transform: translateY(100%);
    transition: transform .35s ease;
    pointer-events: none;
}

.mr-item:hover figcaption,
.mr-photo:focus-visible+figcaption {
    transform: translateY(0);
}

.mr-photo:focus-visible {
    outline: 3px solid var(--mr-accent);
    outline-offset: -3px;
}

/* Lightbox */
.mr-lightbox {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(12, 11, 10, .94);
    color: #fff;
}

.mr-lightbox[open] {
    display: grid;
    grid-template-columns: 70px 1fr 70px;
    align-items: center;
}

.mr-lightbox::backdrop {
    background: rgba(12, 11, 10, .94);
}

.mr-lightbox figure {
    margin: 0;
    text-align: center;
    grid-column: 2;
}

.mr-lightbox img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.mr-lightbox figcaption {
    margin-top: 14px;
    font-size: 15px;
    color: #ddd;
}

.mr-lb-btn {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    justify-self: center;
    transition: background .2s;
}

.mr-lb-btn:hover {
    background: rgba(255, 255, 255, .28);
}

.mr-lb-prev {
    grid-column: 1;
}

.mr-lb-next {
    grid-column: 3;
}

.mr-lb-close {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 18px;
}

/* Адаптив */
@media (max-width: 860px) {
    .mr-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .mr-side {
        position: static;
        max-width: 340px;
        margin: 0 auto;
        width: 100%;
    }

    .mr-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 170px;
    }
}

@media (max-width: 560px) {
    .mr-timeline {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: left;
    }

    .mr-timeline::before {
        display: none;
    }

    .mr-timeline li {
        text-align: left;
        padding-left: 34px;
    }

    .mr-step-dot {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
    }

    .mr-lightbox[open] {
        grid-template-columns: 1fr;
    }

    .mr-lightbox figure {
        grid-column: 1;
        padding: 0 12px;
    }

    .mr-lb-prev,
    .mr-lb-next {
        position: absolute;
        bottom: 20px;
        grid-column: auto;
    }

    .mr-lb-prev {
        left: 20px;
    }

    .mr-lb-next {
        right: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .mr-dot,
    .mr-bib,
    .mr-photo img,
    .mr-item figcaption {
        animation: none;
        transition: none;
    }
}

/* ---------- Рейтинг ---------- */
.rank {
    list-style: none;
    margin: 0;
    padding: 8px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.rank li {
    display: grid;
    grid-template-columns: 40px minmax(150px, 1.1fr) 1.4fr 56px minmax(120px, auto);
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
}

.rank li+li {
    border-top: 1px solid var(--line);
}

.rank li:hover {
    background: #fffaf5;
}

.rank-n {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-ink);
    background: var(--accent-soft);
    border-radius: 50%;
}

.rank li:nth-child(-n+3) .rank-n {
    color: #fff;
    background: var(--accent);
}

.rank-name {
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    line-height: 1.3;
}

.rank-name:hover {
    color: var(--accent-ink);
}

.rank-name small {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
}

.rank-bar {
    height: 10px;
    background: #f1ece4;
    border-radius: 999px;
    overflow: hidden;
}

.rank-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ff9800, var(--accent));
    border-radius: 999px;
}

.rank-score {
    font-size: 18px;
    font-weight: 700;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.rank-src {
    font-size: 13px;
    color: var(--muted);
    text-align: right;
    line-height: 1.3;
}

.method {
    margin: 16px 0 0;
    padding: 16px 18px;
    font-size: 14.5px;
    color: var(--muted);
    background: var(--aegean-soft);
    border-radius: 14px;
}

.method b {
    color: var(--aegean);
}

/* ---------- Картки локацій ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 20px;
}

.place {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.place::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #ff9800);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.place:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(31, 35, 40, .04), 0 16px 36px rgba(230, 81, 0, .12);
}

.place:hover::before {
    transform: scaleX(1);
}

.place h3 {
    margin: 0 0 10px;
    font-size: 23px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.place h3 .ico {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    font-size: 22px;
    background: var(--accent-soft);
    border-radius: 12px;
}

.place p {
    margin: 0 0 12px;
    font-size: 15.5px;
    color: var(--muted);
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 14px;
    padding: 0;
    list-style: none;
}

.meta li {
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    background: #f6f2eb;
    border-radius: 999px;
}

.meta li.star {
    color: var(--accent-ink);
    background: var(--accent-soft);
}

.tip {
    margin-top: auto;
    padding: 12px 14px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--warn-soft);
    border-radius: 12px;
}

.tip b {
    color: var(--accent-ink);
}

/* ---------- Маршрути ---------- */
.days {
    display: grid;
    gap: 20px;
}

.day {
    padding: 26px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.day-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    margin-bottom: 18px;
}

.day-top h3 {
    margin: 0;
    font-size: 26px;
}

.day-pill {
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    border-radius: 999px;
}

.day-top p {
    flex-basis: 100%;
    margin: 0;
    color: var(--muted);
    font-size: 15.5px;
}

.tl {
    list-style: none;
    margin: 0;
    padding: 0 0 0 4px;
}

.tl li {
    position: relative;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    padding: 0 0 18px 22px;
    border-left: 2px solid #f0d9c6;
}

.tl li:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.tl li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 3px solid var(--accent);
    border-radius: 50%;
}

.tl time {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-ink);
    padding-top: 2px;
    font-variant-numeric: tabular-nums;
}

.tl b {
    display: block;
    font-size: 16.5px;
}

.tl span {
    display: block;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.5;
}

.alt {
    margin-top: 18px;
    padding: 14px 16px;
    font-size: 15px;
    background: var(--aegean-soft);
    border-radius: 12px;
}

.alt b {
    color: var(--aegean);
}

/* ---------- Таблиці ---------- */
.table-wrap {
    overflow-x: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

th,
td {
    padding: 13px 18px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

th {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
    background: #fbf8f3;
    white-space: nowrap;
}

tr:last-child td {
    border-bottom: 0;
}

td.price {
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.note {
    margin: 14px 0 0;
    font-size: 14.5px;
    color: var(--muted);
}

.two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 20px;
}

.box {
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.box h3 {
    margin: 0 0 12px;
    font-size: 21px;
}

.box ul {
    margin: 0;
    padding-left: 20px;
}

.box li {
    margin-bottom: 8px;
    font-size: 15.5px;
}

.box li:last-child {
    margin-bottom: 0;
}

.box.good {
    border-top: 4px solid var(--ok);
}

.box.bad {
    border-top: 4px solid var(--accent);
}

.box.blue {
    border-top: 4px solid var(--aegean);
}

.gap-top {
    margin-top: 20px;
}

/* ---------- FAQ ---------- */
.faq {
    display: grid;
    gap: 10px;
}

.faq details {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.faq summary {
    position: relative;
    padding: 16px 52px 16px 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 400;
    color: var(--accent);
}

.faq details[open] summary::after {
    content: "–";
}

.faq details p {
    margin: 0;
    padding: 0 20px 18px;
    font-size: 15.5px;
    color: var(--muted);
}

.sources {
    columns: 2 300px;
    column-gap: 32px;
    margin: 0;
    padding-left: 20px;
    font-size: 14.5px;
}

.sources li {
    margin-bottom: 8px;
    break-inside: avoid;
}

.mar {
    position: relative;
    overflow: hidden;
    padding: 32px;
    background: linear-gradient(135deg, #fff7ee 0%, #eaf4fb 100%);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.mar-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    border-radius: 999px;
}

.mar h2 {
    margin: 14px 0 10px;
    font-size: clamp(26px, 3.4vw, 38px);
}

.mar-lead {
    max-width: 72ch;
    margin: 0 0 24px;
    font-size: 18px;
    color: var(--muted);
}

/* фото */
.mar-photos {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    margin-bottom: 26px;
}

.mar-ph {
    position: relative;
    margin: 0;
    min-height: 170px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #0e7c9b 0%, #6fd0d8 60%, #fdf0cf 100%);
}

.mar-ph:first-child {
    grid-row: span 2;
    min-height: 360px;
}

.mar-ph img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mar-ph.no-img::before {
    content: "🏃";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 64px;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .2));
}

.mar-ph figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 16px 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(0deg, rgba(0, 0, 0, .6), transparent);
}

/* дві зупинки */
.mar-route {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 26px;
}

.mar-stop {
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.mar-stop.next {
    border-color: #f3d3b8;
    box-shadow: 0 8px 24px rgba(230, 81, 0, .12);
}

.mar-stop small {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent-ink);
}

.mar-stop h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.mar-stop p {
    margin: 0;
    font-size: 15.5px;
    color: var(--muted);
}

.mar-arrow {
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 700;
    color: var(--accent);
}

.mar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 16px;
}

.mar-box {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.mar-box h3 {
    margin: 0 0 12px;
    font-size: 20px;
}

.mar-box ul {
    margin: 0;
    padding-left: 20px;
}

.mar-box li {
    margin-bottom: 8px;
    font-size: 15.5px;
}

.mar-box li:last-child {
    margin-bottom: 0;
}

.mar-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-top: 22px;
}

.mar-btn {
    display: inline-block;
    padding: 12px 22px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: var(--accent);
    border-radius: 999px;
    transition: background .2s, transform .2s;
}

.mar-btn:hover {
    color: #fff;
    background: var(--accent-ink);
    transform: translateY(-1px);
}

.mar-note {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

@media (max-width: 720px) {
    .mar {
        padding: 20px;
        border-radius: 22px;
    }

    .mar-photos {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .mar-ph:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 220px;
    }

    .mar-ph {
        min-height: 140px;
    }

    .mar-route {
        grid-template-columns: 1fr;
    }

    .mar-arrow {
        transform: rotate(90deg);
        height: 28px;
    }
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-photo {
        order: -1;
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 16px;
    }

    .rank li {
        grid-template-columns: 34px 1fr auto;
        grid-template-areas: "n name score"". bar bar"". src src";
        gap: 6px 12px;
    }

    .rank-n {
        grid-area: n;
    }

    .rank-name {
        grid-area: name;
    }

    .rank-bar {
        grid-area: bar;
    }

    .rank-score {
        grid-area: score;
    }

    .rank-src {
        grid-area: src;
        text-align: left;
    }

    .tl li {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .day,
    .place,
    .box {
        padding: 20px;
    }
}

/* ========== марафон ===========*/
/* ---------- Марафон (тимчасовий блок) ---------- */
.mar {
    position: relative;
    overflow: hidden;
    padding: 32px;
    background: linear-gradient(135deg, #fff7ee 0%, #eaf4fb 100%);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.mar-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    border-radius: 999px;
}

.mar h2 {
    margin: 14px 0 10px;
    font-size: clamp(26px, 3.4vw, 38px);
}

.mar-lead {
    max-width: 72ch;
    margin: 0 0 24px;
    font-size: 18px;
    color: var(--muted);
}

/* фото */
.mar-photos {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    margin-bottom: 26px;
}

.mar-ph {
    position: relative;
    cursor: zoom-in;
    transition: transform .35s ease, box-shadow .35s ease;
    margin: 0;
    min-height: 170px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #0e7c9b 0%, #6fd0d8 60%, #fdf0cf 100%);
}

.mar-ph:first-child {
    grid-row: span 2;
    min-height: 360px;
}

.mar-ph img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease, filter .35s ease;
}

.mar-ph.no-img::before {
    content: "🏃";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 64px;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .2));
}

.mar-ph figcaption {
    transition: padding .35s ease, background .35s ease;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 16px 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(0deg, rgba(0, 0, 0, .6), transparent);
}

/* дві зупинки */
.mar-route {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 26px;
}

.mar-stop {
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.mar-stop.next {
    border-color: #f3d3b8;
    box-shadow: 0 8px 24px rgba(230, 81, 0, .12);
}

.mar-stop small {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent-ink);
}

.mar-stop h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.mar-stop p {
    margin: 0;
    font-size: 15.5px;
    color: var(--muted);
}

.mar-arrow {
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 700;
    color: var(--accent);
}

.mar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 16px;
}

.mar-box {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.mar-box h3 {
    margin: 0 0 12px;
    font-size: 20px;
}

.mar-box ul {
    margin: 0;
    padding-left: 20px;
}

.mar-box li {
    margin-bottom: 8px;
    font-size: 15.5px;
}

.mar-box li:last-child {
    margin-bottom: 0;
}

.mar-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-top: 22px;
}

.mar-btn {
    display: inline-block;
    padding: 12px 22px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: var(--accent);
    border-radius: 999px;
    transition: background .2s, transform .2s;
}

.mar-btn:hover {
    color: #fff;
    background: var(--accent-ink);
    transform: translateY(-1px);
}

.mar-note {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

@media (max-width: 720px) {
    .mar {
        padding: 20px;
        border-radius: 22px;
    }

    .mar-photos {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .mar-ph:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 220px;
    }

    .mar-ph {
        min-height: 140px;
    }

    .mar-route {
        grid-template-columns: 1fr;
    }

    .mar-arrow {
        transform: rotate(90deg);
        height: 28px;
    }
}

@media (hover: hover) {
    .mar-ph:hover {
        transform: translateY(-4px);
        box-shadow: 0 2px 4px rgba(31, 35, 40, .06), 0 18px 38px rgba(230, 81, 0, .22);
    }

    .mar-ph:hover img {
        transform: scale(1.07);
        filter: saturate(1.12) contrast(1.03);
    }

    .mar-ph:hover figcaption {
        padding-bottom: 16px;
        background: linear-gradient(0deg, rgba(184, 62, 0, .8), transparent);
    }

    .mar-ph.no-img:hover::before {
        transform: scale(1.1);
    }
}

.mar-ph.no-img::before {
    transition: transform .4s ease;
}

.mar-ph:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Підзаголовок і список порад */
.mr-tips-title {
    margin: 30px 0 12px;
    font-family: 'Playfair Display', serif;
    font-size: 21px;
    font-weight: 700;
}

.mr-tips {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.mr-tips li {
    position: relative;
    padding: 12px 16px 12px 44px;
    background: var(--mr-card);
    border: 1px solid var(--mr-line);
    border-radius: 10px;
    font-size: 16px;
    line-height: 1.55;
}

.mr-tips li::before {
    content: "✓";
    position: absolute;
    left: 14px;
    top: 11px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--mr-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

/* Маршрут вболівальника (усередині картки-номера) */
.mr-stops {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    text-align: left;
}

.mr-stop {
    position: relative;
    padding: 0 0 0 34px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mr-stop strong {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    line-height: 1.2;
}

.mr-stop span:last-child {
    font-size: 13px;
    line-height: 1.4;
    color: var(--mr-muted);
}

.mr-node {
    position: absolute;
    left: 4px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--mr-card);
    border: 3px solid var(--mr-accent);
    z-index: 1;
}

.mr-stop--finish .mr-node {
    background: var(--mr-accent);
    box-shadow: 0 0 0 5px var(--mr-accent-soft);
}

.mr-leg {
    position: relative;
    margin: 6px 0;
    padding: 14px 0 14px 34px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mr-ink);
}

.mr-leg::before {
    content: "";
    position: absolute;
    left: 10px;
    top: -6px;
    bottom: -6px;
    width: 0;
    border-left: 3px dashed var(--mr-accent);
    animation: mr-march 1.2s linear infinite;
    background: none;
}

@keyframes mr-march {
    to {
        transform: translateY(6px);
    }
}

.mr-leg span {
    display: inline-block;
    padding: 5px 10px;
    background: var(--mr-accent-soft);
    border-radius: 999px;
}

.mr-bib-foot {
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .mr-leg::before {
        animation: none;
    }
}

/*==================блок 'рейтинг кафе головної вулиці Ніцци'==================*/
.av-block {
    --av-accent: var(--accent, #b08850);
    --av-accent-soft: rgba(176, 136, 80, .14);
    --av-ink: var(--text, #1c1a17);
    --av-muted: #6b665f;
    --av-card: #fff;
    --av-line: rgba(0, 0, 0, .09);
    margin: 56px 0;
    color: var(--av-ink);
    font-family: 'Inter', system-ui, sans-serif;
}

.av-block * {
    box-sizing: border-box;
}

.av-kicker {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--av-accent);
}

.av-head h2 {
    margin: 0 0 14px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.2;
}

.av-lead {
    margin: 0 0 30px;
    max-width: 740px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--av-muted);
}

/* Схема авеню */
.av-map {
    padding: 22px 24px 20px;
    background: var(--av-card);
    border: 1px solid var(--av-line);
    border-radius: 16px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .06);
}

.av-map-ends {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: var(--av-muted);
}

.av-line {
    position: relative;
    height: 130px;
    margin: 12px 14px 0;
}

.av-geo-map {
    height: 440px;
}

.av-geo,
.av-geo * {
    box-sizing: border-box;
}

.av-geo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    margin-top: 26px;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .08);
}

.av-geo>* {
    min-width: 0;
}

.av-geo-map {
    width: 100%;
    height: 440px;
    background: #e8e4dc;
    position: relative;
    z-index: 0;
}

.av-geo-panel {
    display: flex;
    flex-direction: column;
    height: 440px;
    border-left: 1px solid rgba(0, 0, 0, .1);
    background: #fff;
}

.av-geo-panel h3 {
    margin: 0;
    padding: 16px 18px 12px;
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    line-height: 1.25;
    color: #1c1a17;
}

.av-geo-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.av-geo-list li {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 18px;
    border-top: 1px solid rgba(0, 0, 0, .08);
    cursor: pointer;
    transition: background .2s, opacity .2s;
}

.av-geo-list li:hover,
.av-geo-list li.is-active {
    background: rgba(176, 136, 80, .14);
}

.av-geo-list li.is-dim {
    opacity: .35;
}

.av-geo-n {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #b08850;
    color: #fff;
    font: 700 13px/30px 'Inter', sans-serif;
    text-align: center;
}

.av-geo-list b {
    display: block;
    font-size: 14px;
    line-height: 1.3;
    color: #1c1a17;
}

.av-geo-list span:not(.av-geo-n) {
    font-size: 12px;
    color: #6b665f;
}

.av-geo-note {
    margin: 6px 2px 0;
    font-size: 12px;
    color: #6b665f;
}

/* захист від глобальних правил сайту для img */
.av-geo .leaflet-container img {
    max-width: none !important;
    max-height: none !important;
}

/* маркери */
.av-mk {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: #b08850;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
    transition: transform .2s, background .2s, opacity .2s;
}

.av-mk span {
    transform: rotate(45deg);
    color: #fff;
    font: 700 14px 'Inter', sans-serif;
}

.av-mk.is-active {
    background: #d64545;
    transform: rotate(-45deg) scale(1.2);
}

.av-mk.is-dim {
    opacity: .3;
}

.av-mk-landmark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border-radius: 50%;
    background: #1c1a17;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
    font-size: 18px;
}

.av-pop {
    font: 14px/1.45 'Inter', sans-serif;
    min-width: 170px;
}

.av-pop b {
    display: block;
    margin-bottom: 2px;
    font-size: 15px;
}

.av-pop small {
    color: #6b665f;
}

.av-pop a {
    display: inline-block;
    margin-top: 6px;
    color: #b08850;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 820px) {
    .av-geo {
        grid-template-columns: 1fr;
    }

    .av-geo-map {
        height: 340px;
    }

    .av-geo-panel {
        height: auto;
        max-height: 300px;
        border-left: 0;
        border-top: 1px solid rgba(0, 0, 0, .1);
    }
}

.av-line::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 70px;
    height: 6px;
    border-radius: 3px;
    background: repeating-linear-gradient(90deg, var(--av-accent) 0 14px, transparent 14px 22px);
    opacity: .55;
}

.av-tram {
    position: absolute;
    top: 84px;
    left: calc(var(--p) * 1%);
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-style: normal;
}

.av-tram i {
    font-style: normal;
    font-size: 16px;
}

.av-tram em {
    font-style: normal;
    font-size: 11px;
    color: var(--av-muted);
    white-space: nowrap;
}

.av-tram:first-child {
    transform: translateX(-30%);
}

.av-tram:nth-of-type(3) {
    transform: translateX(-70%);
}

.av-pin {
    position: absolute;
    left: calc(var(--p) * 1%);
    top: calc(34px - var(--l) * 34px);
    width: 30px;
    height: 30px;
    margin-left: -15px;
    padding: 0;
    border: 0;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--av-accent);
    color: #fff;
    font: 700 13px/30px 'Inter', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
    transition: transform .2s, background .2s;
}

.av-pin::first-line {
    transform: rotate(45deg);
}

.av-pin {
    display: grid;
    place-items: center;
}

.av-pin:hover,
.av-pin.is-active {
    transform: rotate(-45deg) scale(1.25);
    background: #d64545;
    z-index: 3;
}

.av-pin.is-dim {
    opacity: .25;
}

.av-pin:focus-visible {
    outline: 3px solid var(--av-ink);
    outline-offset: 2px;
}

.av-you {
    position: absolute;
    left: calc(var(--p) * 1%);
    top: 38px;
    transform: translateX(-50%);
    font-size: 22px;
    transition: left .15s;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3));
}

.av-map-note {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--av-muted);
}

.av-where {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--av-line);
}

.av-where label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.av-where input[type=range] {
    width: 100%;
    accent-color: var(--av-accent);
}

.av-where-out {
    margin: 8px 0 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--av-accent-soft);
    font-size: 15px;
}

/* Керування */
.av-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    justify-content: space-between;
    margin: 26px 0 16px;
}

.av-chips,
.av-sort {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.av-chip,
.av-sort-btn {
    padding: 8px 14px;
    border: 1px solid var(--av-line);
    border-radius: 999px;
    background: var(--av-card);
    color: var(--av-ink);
    font: 500 14px 'Inter', sans-serif;
    cursor: pointer;
    transition: all .2s;
}

.av-chip:hover,
.av-sort-btn:hover {
    border-color: var(--av-accent);
}

.av-chip.is-on,
.av-sort-btn.is-on {
    background: var(--av-accent);
    border-color: var(--av-accent);
    color: #fff;
}

/* Картки */
.av-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    counter-reset: none;
}

.av-card {
    position: relative;
    padding: 22px 22px 18px;
    background: var(--av-card);
    border: 1px solid var(--av-line);
    border-radius: 14px;
    transition: box-shadow .25s, transform .25s, opacity .25s;
}

.av-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}

.av-card.is-hidden {
    display: none;
}

.av-card.is-active {
    box-shadow: 0 0 0 3px var(--av-accent), 0 12px 28px rgba(0, 0, 0, .12);
    animation: av-pop .5s ease;
}

@keyframes av-pop {
    50% {
        transform: scale(1.02);
    }
}

.av-card:first-child {
    border-top: 6px solid var(--av-accent);
}

.av-badge {
    position: absolute;
    top: -12px;
    right: 16px;
    padding: 4px 12px;
    background: var(--av-ink);
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    transform: rotate(2deg);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .2);
}

.av-card h3 {
    margin: 0 0 10px;
    font-family: 'Playfair Display', serif;
    font-size: 21px;
    line-height: 1.25;
}

.av-card h3 small {
    font: 500 13px 'Inter', sans-serif;
    color: var(--av-muted);
}

.av-card p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.6;
}

.av-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.av-tags li {
    padding: 3px 10px;
    background: var(--av-accent-soft);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--av-accent);
}

.av-near {
    margin-top: 22px;
    padding: 16px 20px;
    border-left: 3px solid var(--av-accent);
    background: var(--av-accent-soft);
    border-radius: 0 12px 12px 0;
}

.av-near h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.av-near ul {
    margin: 0;
    padding-left: 18px;
    font-size: 15px;
    line-height: 1.6;
}

.av-method {
    margin: 18px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--av-muted);
}

/* Площа */
.av-plaza {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    align-items: center;
    margin-top: 56px;
    padding-top: 44px;
    border-top: 1px solid var(--av-line);
}

.av-plaza h3 {
    margin: 0 0 12px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.25;
}

.av-plaza-text>p {
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 14px;
}

.av-facts {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.av-facts li {
    position: relative;
    padding-left: 22px;
    font-size: 15px;
    line-height: 1.6;
}

.av-facts li::before {
    content: "◆";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--av-accent);
    font-size: 12px;
    line-height: 24px;
}

.av-plaza-viz {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #cfe6f6;
    aspect-ratio: 4 / 3.3;
    transition: background .8s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
}

.av-sky {
    position: absolute;
    inset: 0 0 38% 0;
    background: linear-gradient(#8cc4ee, #f6e7c8);
    transition: background .8s;
}

.av-sun {
    position: absolute;
    top: 14%;
    right: 14%;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #ffd24a;
    box-shadow: 0 0 40px 12px rgba(255, 210, 74, .6);
    transition: all .8s;
}

.av-poles {
    position: absolute;
    left: 6%;
    right: 6%;
    top: 18%;
    height: 44%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.av-poles i {
    position: relative;
    display: block;
    width: 4px;
    height: calc(55% + var(--i) * 5%);
    background: #7d7568;
    border-radius: 2px;
}

.av-poles i:nth-child(even) {
    height: calc(80% - var(--i) * 3%);
}

.av-poles i::before {
    content: "";
    position: absolute;
    top: -18px;
    left: -9px;
    width: 22px;
    height: 22px;
    border-radius: 50% 50% 8px 8px;
    background: #b9b2a5;
    transition: background .6s, box-shadow .6s;
}

.av-checker {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 38%;
    background: repeating-conic-gradient(#2b2a28 0 25%, #f1ede6 0 50%) 0 0 / 44px 44px;
    transform: perspective(300px) rotateX(38deg);
    transform-origin: bottom;
}

.av-toggle {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    font: 600 13px 'Inter', sans-serif;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
    z-index: 4;
}

.av-viz-cap {
    position: absolute;
    left: 12px;
    bottom: 8px;
    margin: 0;
    font-size: 11px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
    z-index: 4;
}

.av-plaza.is-night .av-plaza-viz {
    background: #0f1424;
}

.av-plaza.is-night .av-sky {
    background: linear-gradient(#070b18, #26234a);
}

.av-plaza.is-night .av-sun {
    background: #f4f1da;
    box-shadow: 0 0 30px 6px rgba(244, 241, 218, .45);
    width: 38px;
    height: 38px;
}

.av-plaza.is-night .av-poles i::before {
    animation: av-glow 6s linear infinite;
    animation-delay: calc(var(--i) * -.85s);
}

@keyframes av-glow {
    0% {
        background: #ff4d6d;
        box-shadow: 0 0 18px 6px #ff4d6d;
    }

    20% {
        background: #ffb347;
        box-shadow: 0 0 18px 6px #ffb347;
    }

    40% {
        background: #4dff9a;
        box-shadow: 0 0 18px 6px #4dff9a;
    }

    60% {
        background: #4dc3ff;
        box-shadow: 0 0 18px 6px #4dc3ff;
    }

    80% {
        background: #b44dff;
        box-shadow: 0 0 18px 6px #b44dff;
    }

    100% {
        background: #ff4d6d;
        box-shadow: 0 0 18px 6px #ff4d6d;
    }
}

.av-plaza.is-night .av-checker {
    filter: brightness(.55);
}

@media (max-width: 820px) {
    .av-list {
        grid-template-columns: 1fr;
    }

    .av-plaza {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 560px) {
    .av-map {
        padding: 16px 12px;
    }

    .av-line {
        margin: 12px 8px 0;
    }

    .av-tram em {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .av-card,
    .av-pin,
    .av-sky,
    .av-sun,
    .av-plaza-viz {
        transition: none;
    }

    .av-card.is-active,
    .av-plaza.is-night .av-poles i::before {
        animation: none;
    }
}