/* pokazani.ru — design system 2026-09-15 (green + terracotta) */
:root {
    --brand-900: #0E5A4A;
    --brand-700: #12705B;
    --brand-950: #0A4436;
    --bg: #FFFFFF;
    --bg-mint: #EAF4F0;
    --ink: #12241E;
    --muted: #5C6B66;
    --border: #DCE7E2;
    --cta: #C2410C;
    --cta-hover: #9A3412;
    --cta-press: #7C2D12;
    --accent: #FF6B4A;
    --star: #F2A33C;
    --radius-card: 16px;
    --radius-ctrl: 12px;
    --radius-chip: 999px;
    --shadow-mint: 0 4px 16px rgba(14, 90, 74, .08);
    --shadow-lift: 0 8px 24px rgba(14, 90, 74, .12);
    --container: 1200px;
    --pad-x: 16px;
    --header-h: 56px;
    --font-display: "Manrope", system-ui, sans-serif;
    --font-body: "Golos Text", system-ui, sans-serif;
    /* aliases for leftover class hooks */
    --c-bg: var(--bg);
    --c-text: var(--ink);
    --c-muted: var(--muted);
    --c-brand: var(--brand-700);
    --c-brand-dark: var(--brand-900);
    --c-accent: var(--cta);
    --c-accent-dark: var(--cta-hover);
    --c-line: var(--border);
    --c-soft: var(--bg-mint);
    --radius: var(--radius-ctrl);
    --shadow: var(--shadow-mint);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
body.layout-home,
body.layout-hub {
    background: var(--bg-mint);
}
body.layout-home main,
body.layout-hub main {
    background: transparent;
}
.wrap, main {
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
}
main { padding-bottom: 48px; padding-top: 8px; }
body.has-sticky-cta main { padding-bottom: 96px; }

h1, h2, h3, .logo {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.25;
    color: var(--ink);
}
h1 { font-size: 1.65rem; margin: 16px 0 12px; letter-spacing: -.02em; }
h2 { font-size: 1.3rem; margin: 32px 0 12px; font-weight: 700; }
h3 { font-size: 1.1rem; margin: 24px 0 8px; font-weight: 700; }

/* —— Header sticky —— */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: var(--header-h);
    background: var(--brand-950);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header .wrap {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    min-height: var(--header-h);
    padding-top: 10px;
    padding-bottom: 10px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -.02em;
    flex: 0 1 auto;
    min-width: 0;
}
.logo-mark {
    display: block;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.logo-lockup {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}
.logo-text {
    white-space: nowrap;
    line-height: 1.1;
}
.logo-text span { color: var(--accent); font-weight: 700; }
.logo-tagline {
    display: block;
    max-width: 100%;
    font-family: var(--font-body);
    font-size: .68rem;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: .01em;
    color: rgba(255, 255, 255, .58);
}

/* Burger — mobile only */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: 8px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    position: relative;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.site-nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
}
.site-nav__group--hubs {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}
.site-nav__group--meta { display: none; }
.site-nav__label { display: none; }
.site-nav__primary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 2px 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-nav__drawer,
.site-nav__meta { display: none; }
.site-nav__primary > li > a,
.nav-more__btn {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 10px;
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}
.site-nav__primary > li > a[aria-current="page"],
.nav-more__btn[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .1); }
@media (hover: hover) {
    .site-nav__primary > li > a:hover,
    .nav-more__btn:hover { color: #fff; background: rgba(255, 255, 255, .08); }
}

.nav-more { position: relative; }
.nav-more__btn::after {
    content: "";
    margin-left: 6px;
    border: 4px solid transparent;
    border-top-color: currentColor;
    transform: translateY(2px);
}
.nav-more__list {
    position: absolute;
    /* Без зазора: иначе курсор между кнопкой и панелью
       выходит из .nav-more → mouseleave → меню закрывается */
    top: 100%;
    right: 0;
    min-width: 220px;
    margin: 0;
    padding: 10px 8px 8px;
    list-style: none;
    background: #fff;
    color: var(--ink);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lift);
    z-index: 50;
}
/* Невидимый «мост» над панелью на случай субпиксельного зазора */
.nav-more__list::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}
.nav-more__list a {
    display: block;
    padding: 10px 12px;
    min-height: 44px;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 500;
}
.nav-more__list a[aria-current="page"] {
    background: var(--bg-mint);
    color: var(--brand-900);
    font-weight: 700;
}
@media (hover: hover) {
    .nav-more__list a:hover { background: var(--bg-mint); }
}
@media (hover: hover) {
    .nav-more:hover .nav-more__list,
    .nav-more:focus-within .nav-more__list { /* keep JS as source of truth */ }
}

.nav-backdrop {
    display: none;
}

@media (max-width: 899px) {
    .nav-toggle { display: inline-flex; }
    .logo { flex: 1 1 auto; }
    .site-nav__primary { display: none; }
    .site-nav__group--hubs {
        display: block;
        justify-content: flex-start;
        width: 100%;
    }
    .site-nav__group--meta { display: block; width: 100%; }
    .site-nav__label {
        display: block;
        margin: 0 0 10px;
        padding: 0 4px;
        font-size: .78rem;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, .55);
    }
    .site-nav__group--meta .site-nav__label {
        margin-top: 8px;
        padding-top: 18px;
        border-top: 1px solid rgba(255, 255, 255, .12);
    }
    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 45;
        display: none;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 8px;
        padding: 16px var(--pad-x) 28px;
        background: var(--brand-950);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-open .site-nav { display: flex; }
    .site-nav__drawer,
    .site-nav__meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .site-nav__drawer a,
    .site-nav__meta a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 12px 14px;
        border-radius: 12px;
        background: rgba(255, 255, 255, .08);
        color: #fff;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.25;
    }
    .site-nav__meta a {
        background: rgba(255, 255, 255, .05);
        font-weight: 500;
        font-size: .95rem;
    }
    .site-nav__drawer a[aria-current="page"],
    .site-nav__meta a[aria-current="page"] {
        background: var(--cta);
        font-weight: 700;
    }
    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 35;
        background: rgba(10, 20, 16, .45);
    }
    .nav-backdrop[hidden] { display: none !important; }
    body.nav-open { overflow: hidden; }
}
@media (min-width: 900px) {
    .site-nav__drawer,
    .site-nav__meta,
    .site-nav__group--meta { display: none !important; }
    .nav-toggle { display: none !important; }
}
@media (max-width: 380px) {
    .logo-mark { width: 44px; height: 44px; }
    .logo { font-size: 1.05rem; gap: 8px; }
    .logo-tagline { font-size: .62rem; }
    .site-nav__drawer,
    .site-nav__meta { grid-template-columns: 1fr; }
}


/* —— Breadcrumbs —— */
.breadcrumbs { font-size: .85rem; margin: 12px 0 0; }
.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
}
.breadcrumbs li + li::before {
    content: "›";
    margin-right: 4px;
    color: var(--muted);
}
.breadcrumbs a { color: var(--brand-700); text-decoration: none; font-weight: 500; }
@media (hover: hover) {
    .breadcrumbs a:hover { text-decoration: underline; }
}

/* —— Prose —— */
.prose h1 { margin-top: 12px; }
.prose a { color: var(--brand-700); }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-ctrl); }
.prose blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    background: var(--bg-mint);
    border-left: 4px solid var(--brand-700);
    border-radius: 0 var(--radius-ctrl) var(--radius-ctrl) 0;
    box-shadow: var(--shadow-mint);
    border: none;
    border-left: 4px solid var(--brand-700);
}
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 1.25em; }
.prose li { margin: 4px 0; }
/* Компонентные списки (карточки) — не текстовые ul: иначе padding-left
   сдвигает сетку вправо на мобилке (.prose ul сильнее по specificity). */
.prose ul.dest-grid,
.prose ul.exc-cards,
.prose ul.exc-results,
.prose ul.stats-strip {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}
.prose ul.dest-grid > li,
.prose ul.exc-cards > li,
.prose ul.exc-results > li,
.prose ul.stats-strip > li {
    margin: 0;
}

/* —— Stats —— */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin: 16px 0 8px;
    padding: 0;
    list-style: none;
}
.stats-strip li {
    background: var(--bg);
    border-radius: var(--radius-card);
    padding: 14px 12px;
    text-align: center;
    box-shadow: var(--shadow-mint);
}
.stats-strip strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand-900);
}
.stats-strip span { font-size: .8rem; color: var(--muted); font-weight: 500; }

/* —— Home hero —— */
.page-hero {
    display: grid;
    gap: 20px;
    margin: 12px 0 4px;
    padding: 4px 0 0;
    align-items: start;
}
.page-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-top: 4px;
}
.page-hero__copy h1 {
    margin: 0 0 12px;
    max-width: 18ch;
}
.page-hero__lead {
    margin: 0 0 20px;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--ink);
    max-width: 42ch;
}
.page-hero__cta { margin: 0; }
/* Коллаж: 1 крупное слева + 2 мелких справа, единая высота ряда */
.page-hero__collage {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 360px;
}
.page-hero__collage img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-mint);
    background: var(--bg);
}
.page-hero__collage img:nth-child(1) {
    grid-row: 1 / -1;
    object-position: center 28%;
}
.page-hero__collage img:nth-child(2) {
    object-position: center 42%;
}
.page-hero__collage img:nth-child(3) {
    object-position: center 55%;
}
@media (max-width: 719px) {
    .page-hero__collage {
        aspect-ratio: 16 / 11;
        max-height: 280px;
        gap: 8px;
    }
}
@media (min-width: 720px) {
    .page-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        align-items: center;
        gap: 32px;
        margin: 20px 0 8px;
    }
    .page-hero__copy { padding-top: 8px; }
    .page-hero__copy h1 { font-size: 1.85rem; margin-bottom: 14px; }
    .page-hero__lead { margin-bottom: 24px; }
    .page-hero__collage {
        aspect-ratio: 5 / 4;
        max-height: 400px;
        gap: 12px;
    }
}
@media (min-width: 960px) {
    .page-hero__collage { max-height: 420px; }
}

/* —— Destination cards —— */
.dest-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 12px 0 20px;
    padding: 0;
    list-style: none;
}
.dest-card {
    background: var(--bg);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-mint);
}
.dest-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}
.dest-card__img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--bg-mint);
}
.dest-card__img--empty { min-height: 120px; }
.dest-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px 16px;
}
.dest-card__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--ink);
}
.dest-card__blurb { font-size: .9rem; color: var(--muted); }
.dest-card__meta {
    margin-top: 4px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--brand-900);
}
@media (hover: hover) {
    .dest-card:hover { box-shadow: var(--shadow-lift); }
    .dest-card:hover .dest-card__title { color: var(--brand-700); }
}
@media (min-width: 560px) {
    .dest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .dest-grid { grid-template-columns: repeat(3, 1fr); }
}

/* —— Hub cover —— */
.hub-cover {
    margin: 8px 0 16px;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-mint);
    background: var(--bg);
}
.hub-cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    border-radius: 0;
}
@media (max-width: 719px) {
    .hub-cover img { aspect-ratio: 16 / 9; }
}

/* —— Tables .exc (desktop) —— */
.exc-listing { margin: 16px 0; }
.table-scroll {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--bg);
}
/* build.py оборачивает <table> в .table-wrapper — внутри .table-scroll
   это даёт двойную рамку и margin → белые полосы сверху/снизу */
.table-scroll .table-wrapper {
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}
table.exc {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
    min-width: 640px;
}
table.exc th,
table.exc td {
    padding: 12px 12px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    min-height: 48px;
}
table.exc th {
    background: var(--bg-mint);
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--muted);
    position: sticky;
    top: 0;
    z-index: 2;
}
table.exc thead th:first-child {
    border-top-left-radius: calc(var(--radius-card) - 1px);
}
table.exc thead th:last-child {
    border-top-right-radius: calc(var(--radius-card) - 1px);
}
table.exc tbody tr:last-child td:first-child {
    border-bottom-left-radius: calc(var(--radius-card) - 1px);
}
table.exc tbody tr:last-child td:last-child {
    border-bottom-right-radius: calc(var(--radius-card) - 1px);
}
table.exc tr:last-child td { border-bottom: none; }
table.exc td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.exc tr:nth-child(even) td { background: #F7FBF9; }
.exc-name { font-weight: 600; }
.exc-thumb {
    width: 80px;
    height: 60px;
    flex: 0 0 80px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: var(--bg-mint);
}
.exc-thumb-empty {
    display: block;
    width: 80px;
    height: 60px;
    flex: 0 0 80px;
    background: var(--bg-mint);
    border-radius: 8px;
}
.exc-cell { display: flex; align-items: center; gap: 12px; }
.exc-cell .exc-name { min-width: 200px; }
.exc-kind { display: inline-block; font-size: .78rem; color: var(--muted); }
.rating {
    white-space: nowrap;
    color: var(--brand-900);
    font-weight: 600;
}
.rating small { color: var(--muted); font-weight: 400; }

/* Mobile: card-stack instead of sticky-column table (overlap fix) */
.exc-cards {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
    flex-direction: column;
}
.exc-card {
    background: var(--bg);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-mint);
    overflow: hidden;
}
.exc-card__link {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 10px 12px;
    align-items: center;
    padding: 12px;
    color: inherit;
    text-decoration: none;
    min-height: 48px;
}
.exc-card__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.exc-card__title {
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.35;
    color: var(--ink);
}
.exc-card__meta {
    font-size: .85rem;
    color: var(--brand-900);
}
.exc-card__price { font-weight: 700; }
.exc-card__kind {
    font-size: .78rem;
    color: var(--muted);
}
.exc-card__go {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-chip);
    background: var(--cta);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}
@media (max-width: 719px) {
    .exc-listing__table { display: none; }
    .exc-cards { display: flex; }
}
@media (min-width: 720px) {
    .exc-cards { display: none !important; }
    .exc-listing__table { display: block; }
}

/* —— CTA buttons (terracotta only) —— */
.btn-tp {
    display: inline-block;
    padding: 10px 16px;
    border-radius: var(--radius-ctrl);
    background: var(--cta);
    color: #fff !important;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .9rem;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    line-height: 1.3;
    transition: background .15s ease, transform .15s ease;
}
@media (hover: hover) {
    .btn-tp:hover { background: var(--cta-hover); }
}
.btn-tp:active { background: var(--cta-press); }
.btn-tp-lg {
    padding: 14px 24px;
    font-size: 1.05rem;
    white-space: normal;
    max-width: 100%;
    border-radius: var(--radius-ctrl);
}

/* —— Card facts —— */
.table-wrapper {
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--bg);
}
table.exc-facts {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}
table.exc-facts th,
table.exc-facts td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
    min-height: 48px;
}
table.exc-facts th {
    width: 132px;
    background: var(--bg-mint);
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--muted);
    white-space: nowrap;
}
table.exc-facts tr:last-child th,
table.exc-facts tr:last-child td { border-bottom: none; }

/* —— Card top: mosaic + facts side-by-side on desktop —— */
.card-top {
    display: grid;
    gap: 16px;
    margin: 8px 0 20px;
    width: 100%;
}
.card-top__aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.card-top__aside .table-wrapper,
.card-top__aside table.exc-facts {
    margin: 0;
}
.card-top__aside .btn-tp-lg { align-self: stretch; text-align: center; }
@media (min-width: 900px) {
    .card-top {
        grid-template-columns: 1.35fr 1fr;
        align-items: start;
        gap: 24px;
    }
}

/* —— Gallery mosaic —— */
.exc-gallery { margin: 0; width: 100%; }
.exc-gallery__mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 88px;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.exc-gallery__tile {
    margin: 0;
    border-radius: var(--radius-ctrl);
    overflow: hidden;
    background: var(--bg-mint);
}
.exc-gallery__tile--lg {
    grid-column: span 2;
    grid-row: span 2;
}
.exc-gallery__tile--md {
    grid-column: span 2;
    grid-row: span 1;
}
.exc-gallery__tile button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    overflow: hidden;
    background: transparent;
    cursor: zoom-in;
}
.exc-gallery__tile button[aria-current="true"] {
    border-color: var(--brand-700);
}
.exc-gallery__tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (hover: hover) {
    .exc-gallery__tile button:hover {
        border-color: var(--brand-700);
        box-shadow: var(--shadow-lift);
    }
}
@media (min-width: 720px) {
    .exc-gallery__mosaic { grid-auto-rows: 110px; gap: 10px; }
}
@media (min-width: 900px) {
    .exc-gallery__mosaic { grid-auto-rows: 120px; }
}
/* одна фотография — на всю ширину */
.exc-gallery__mosaic:has(.exc-gallery__tile:only-child) {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(200px, 40vw);
}
.exc-gallery__mosaic:has(.exc-gallery__tile:only-child) .exc-gallery__tile {
    grid-column: 1;
    grid-row: 1;
}

/* —— Lightbox —— */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 68, 54, .88);
    padding: 16px;
}
.lightbox.is-open { display: flex; }
.lightbox__inner {
    position: relative;
    max-width: min(960px, 100%);
    max-height: 90vh;
    outline: none;
}
.lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: var(--radius-ctrl);
    background: #000;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    border: none;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-chip);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
}
.lightbox__close { top: -8px; right: -8px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
@media (hover: hover) {
    .lightbox__close:hover,
    .lightbox__prev:hover,
    .lightbox__next:hover { background: #fff; }
}
body.lightbox-open { overflow: hidden; }

/* —— Sticky mobile CTA on cards —— */
.card-sticky-cta {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0));
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(14, 90, 74, .08);
}
.card-sticky-cta .btn-tp {
    display: block;
    width: 100%;
    text-align: center;
    white-space: normal;
}
@media (max-width: 719px) {
    body.has-sticky-cta .card-sticky-cta { display: block; }
}

/* —— Pros/cons + hub digest —— */
.pros-cons { display: grid; gap: 12px; margin: 16px 0; }
.pros, .cons {
    border-radius: var(--radius-card);
    padding: 14px 16px;
    box-shadow: var(--shadow-mint);
}
.pros { background: var(--bg-mint); }
.pros h3 { margin: 2px 0 8px; color: var(--brand-900); }
.cons {
    background: #FFF7F2;
    box-shadow: none;
    border: 1px solid #F0D9C8;
}
.cons h3 { margin: 2px 0 8px; color: var(--cta-hover); }
.pros ul, .cons ul { margin: 0; padding-left: 20px; }
blockquote.neg { border-left-color: var(--cta); }
@media (min-width: 720px) {
    .pros-cons { grid-template-columns: 1fr 1fr; }
}

.hub-digest {
    margin: 20px 0;
    padding: 20px 18px;
    background: var(--bg-mint);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-mint);
}
.hub-digest h3 { margin: 16px 0 8px; }
.hub-digest h3:first-of-type { margin-top: 0; }
.hub-digest ul { margin: 0; padding-left: 20px; }
.hub-digest li { margin: 6px 0; }

/* —— FAQ —— */
.faq-section { margin-top: 36px; }
.faq-section .section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0 0 14px;
}
.faq-accordion { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--bg);
    overflow: hidden;
}
.faq-question {
    padding: 14px 16px;
    font-weight: 600;
    cursor: pointer;
    list-style-position: inside;
    font-family: var(--font-body);
}
.faq-item[open] .faq-question {
    border-bottom: 1px solid var(--border);
    background: var(--bg-mint);
}
.faq-answer { padding: 4px 16px 12px; }
.section-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 28px 0;
}

/* —— Catalog search (destination panel) —— */
.catalog-search {
    scroll-margin-top: calc(var(--header-h) + 24px);
    margin: 8px 0 8px;
}
@media (max-width: 719px) {
    .catalog-search { scroll-margin-top: 108px; }
}
.catalog-search__panel {
    margin: 0;
    padding: 20px 16px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lift);
    border-top: 3px solid var(--brand-700);
    position: relative;
}
@media (min-width: 720px) {
    .catalog-search__panel { padding: 24px 22px 20px; }
}
.catalog-search__title {
    margin: 0 0 6px;
    font-size: 1.45rem;
    letter-spacing: -.02em;
    color: var(--brand-950);
}
.catalog-search__lead {
    margin: 0 0 16px;
    font-size: .98rem;
    color: var(--muted);
    max-width: 42em;
}
.catalog-search.is-landing .catalog-search__panel,
.catalog-search:target .catalog-search__panel {
    animation: catalog-search-pulse 1.6s ease-out 1;
}
@keyframes catalog-search-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(18, 112, 91, .35), var(--shadow-lift);
        border-top-color: var(--cta);
    }
    55% {
        box-shadow: 0 0 0 10px rgba(18, 112, 91, 0), var(--shadow-lift);
        border-top-color: var(--brand-700);
    }
    100% {
        box-shadow: var(--shadow-lift);
        border-top-color: var(--brand-700);
    }
}
.exc-search { margin: 0; padding: 0; background: transparent; box-shadow: none; }
.exc-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.exc-search input[type="search"] {
    width: 100%;
    padding: 16px 18px;
    font-size: 1.0625rem;
    font-family: var(--font-body);
    border: 2px solid var(--brand-700);
    border-radius: var(--radius-ctrl);
    outline-offset: 2px;
    background: var(--bg);
    color: var(--ink);
    box-shadow: inset 0 1px 2px rgba(14, 90, 74, .04);
}
.exc-search input[type="search"]:focus {
    border-color: var(--brand-900);
    box-shadow: 0 0 0 3px rgba(18, 112, 91, .18);
}
.exc-search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.exc-chip {
    appearance: none;
    margin: 0;
    padding: 8px 14px;
    font-family: var(--font-body);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--brand-900);
    background: var(--bg-mint);
    border: 1px solid var(--border);
    border-radius: var(--radius-chip);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
@media (hover: hover) {
    .exc-chip:hover {
        background: #fff;
        border-color: var(--brand-700);
        color: var(--brand-700);
    }
}
.exc-chip:focus-visible {
    outline: 2px solid var(--brand-700);
    outline-offset: 2px;
}
.exc-search-filters {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.exc-search-filters select {
    flex: 1 1 140px;
    min-width: 0;
    padding: 10px 12px;
    font-size: .9rem;
    font-family: var(--font-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-ctrl);
    background: var(--bg);
    color: var(--ink);
}
.exc-search-hint { margin: 12px 0 0; }
.exc-results {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    min-height: 4px;
}
.exc-results:not(:empty) {
    border-top: 1px solid var(--border);
    padding-top: 14px;
}
.exc-results li {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 4px 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    margin-bottom: 10px;
    background: var(--bg-mint);
    align-items: center;
}
.exc-results .exc-thumb { grid-row: 1; }
.exc-results .exc-thumb-empty {
    display: block;
    width: 80px;
    height: 60px;
    background: var(--border);
    border-radius: 8px;
}
.exc-results .exc-main { grid-column: 2; min-width: 0; }
.exc-results .exc-name {
    display: block;
    font-weight: 600;
    line-height: 1.35;
}
.exc-results a.exc-name { color: var(--ink); text-decoration: none; }
@media (hover: hover) {
    .exc-results a.exc-name:hover { color: var(--brand-700); text-decoration: underline; }
}
.exc-results .exc-side {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: center;
}
.exc-results .exc-price { font-weight: 700; white-space: nowrap; }
.exc-results .btn-tp { margin-left: auto; }
@media (min-width: 720px) {
    .exc-results li { grid-template-columns: 80px 1fr auto; gap: 4px 16px; background: var(--bg); }
    .exc-results .exc-side {
        grid-column: 3;
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
        text-align: right;
        min-width: 150px;
    }
    .exc-results .btn-tp { margin-left: 0; }
}

/* Хабы после поиска — отдельная зона, не сливаются с панелью */
.catalog-search + h2 {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
body.layout-home .catalog-search + h2 {
    color: var(--brand-950);
}
body.layout-home .catalog-search + h2 + .dest-grid {
    margin-top: 16px;
}

/* —— Mint: home/hub breathe on mint; card pages stay white —— */
.prose > p:first-of-type {
    font-size: 1.05rem;
    color: var(--ink);
}

/* —— Meta / footer —— */
.updated { font-size: .85rem; color: var(--muted); margin-top: 28px; }
.note { font-size: .88rem; color: var(--muted); }

.site-footer {
    margin-top: 48px;
    padding: 32px 0 40px;
    background: var(--brand-950);
    box-shadow: none;
    font-size: .85rem;
    color: rgba(255, 255, 255, .72);
}
.site-footer .wrap { max-width: var(--container); }
.site-footer p { margin: 8px 0; }
.site-footer strong {
    color: #fff;
    font-family: var(--font-display);
}
.site-footer a {
    color: rgba(255, 255, 255, .88);
    text-decoration: underline;
    text-underline-offset: 2px;
}
@media (hover: hover) {
    .site-footer a:hover { color: #fff; }
}
.ad-label { font-size: .78rem; opacity: .85; }

@media (min-width: 720px) {
    :root {
        --pad-x: 24px;
        --header-h: 64px;
    }
    h1, .prose h1 { font-size: 2.1rem; }
    body { font-size: 17px; }
}
@media (min-width: 1024px) {
    :root { --header-h: 72px; }
}
