/* ============================================================
   TRIPBEST REDESIGN — design system
   Fonts: Spectral (headings) + Manrope (body)
   Palette: ink #2A2420 · accent #C1613B · green #5F6E4E · cream
   Loaded AFTER the legacy bundle: also re-skins legacy classes.
   ============================================================ */

:root {
    --tb-ink: #2A2420;
    --tb-text: #3a332d;
    --tb-body: #4a423b;
    --tb-muted: #7A7066;
    --tb-faint: #9a9086;
    --tb-label: #8a8075;
    --tb-accent: #C1613B;
    --tb-accent-dark: #a94f2d;
    --tb-accent-soft: #E0A57E;
    --tb-green: #5F6E4E;
    --tb-green-text: #3d4a30;
    --tb-green-bg: #E8EDE0;
    --tb-amber: #B08442;
    --tb-cream: #FAF6EF;
    --tb-cream-2: #FBF7EF;
    --tb-sand: #F4EADB;
    --tb-sand-2: #F5EEE2;
    --tb-line: rgba(42,36,32,0.1);
    --tb-line-soft: rgba(42,36,32,0.08);
    --tb-serif: 'Spectral', Georgia, serif;
    --tb-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
/* Легаси ставит body,html{height:100%} — из-за этого sticky-шапка (.tbh, ребёнок body)
   «живёт» только внутри первого экрана и уезжает при прокрутке. */
html, body { height: auto; min-height: 100%; }
body {
    font-family: var(--tb-sans) !important;
    background: #fff;
    color: var(--tb-ink);
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--tb-accent); color: #fff; }

h1, h2, h3, h4, h5, h6,
.underlined-title h4, .section-price-title, .content-title h2,
.blog-post-title, .best-transport-name, .airport-name {
    font-family: var(--tb-serif) !important;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--tb-ink);
}
a { color: var(--tb-accent); }
a:hover { color: var(--tb-accent-dark); }

/* ============================================================
   TOPBAR (new site header)
   ============================================================ */
.tbh {
    position: sticky;
    top: 0;
    z-index: 900;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(255,255,255,0.88);
    border-bottom: 1px solid rgba(42,36,32,0.08);
    transition: background .25s ease, border-color .25s ease;
}
.tbh-in {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 28px;
    transition: height .25s ease;
}
.tbh-logo {
    display: flex;
    align-items: baseline;
    cursor: pointer;
    user-select: none;
    text-decoration: none !important;
    flex-shrink: 0;
}
.tbh-logo span {
    font-family: var(--tb-serif);
    font-weight: 700;
    font-size: 23px;
    letter-spacing: -0.02em;
    color: var(--tb-ink);
    transition: font-size .25s ease;
}
.tbh-logo span + span { color: var(--tb-accent); }
.tbh-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    margin-left: 6px;
}
.tbh-nav a {
    color: var(--tb-body) !important;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none !important;
    white-space: nowrap;
}
.tbh-nav a:hover { color: var(--tb-accent) !important; }
.tbh-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.tbh-save {
    color: var(--tb-green) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}
.tbh-save:hover { color: var(--tb-green-text) !important; }
.tbh-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--tb-ink);
    color: var(--tb-cream) !important;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: padding .25s ease;
}
.tbh-cta:hover { background: #3a332d; }
.tbh-burger {
    display: none;
    flex-shrink: 0;
    min-width: 40px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    margin-left: auto;
    border-radius: 999px;
    transition: background .25s ease, box-shadow .25s ease;
}
.tbh-burger span {
    display: block;
    height: 2px;
    background: var(--tb-ink);
    border-radius: 2px;
    margin: 5px 0;
    transition: transform .2s, opacity .2s;
}
.tbh-mobile {
    display: none;
    border-top: 1px solid var(--tb-line-soft);
    background: #fff;
    padding: 10px 20px 18px;
}
.tbh-mobile a {
    display: block;
    padding: 11px 4px;
    color: var(--tb-body) !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    border-bottom: 1px solid var(--tb-line-soft);
}
.tbh-mobile a:last-child { border-bottom: 0; }
.tbh.tbh-open .tbh-mobile { display: block; }
.tbh.tbh-open .tbh-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tbh.tbh-open .tbh-burger span:nth-child(2) { opacity: 0; }
.tbh.tbh-open .tbh-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 7 пунктов меню: на средних экранах ужимаем отступы, чтобы nav не переносился */
@media (min-width: 901px) and (max-width: 1180px) {
    .tbh-nav { flex-wrap: nowrap; gap: 16px; }
    .tbh-nav a { font-size: 14px; }
    .tbh-in { gap: 18px; padding: 0 20px; }
}
@media (min-width: 901px) and (max-width: 1020px) {
    .tbh-save { display: none; }
}

@media (max-width: 900px) {
    .tbh-nav, .tbh-save { display: none; }
    .tbh-burger { display: block; }
    .tbh-in { height: 60px; padding: 0 16px; gap: 14px; }
    .tbh-right { margin-left: 0; }
    .tbh-cta { padding: 8px 14px; font-size: 13px; }
}

/* ---------- compact-on-scroll (класс tb-scrolled вешает JS в header.php) ---------- */
@media (min-width: 901px) {
    .tb-scrolled .tbh-in { height: 52px; }
    .tb-scrolled .tbh-logo span { font-size: 19px; }
    .tb-scrolled .tbh-cta { padding: 7px 14px; }
}
/* Мобильная версия: при прокрутке шапка сворачивается в плавающий бургер-кружок */
@media (max-width: 900px) {
    .tbh-logo, .tbh-right { transition: opacity .2s ease; }
    .tb-scrolled .tbh:not(.tbh-open) {
        background: transparent;
        border-bottom-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        pointer-events: none;
    }
    .tb-scrolled .tbh:not(.tbh-open) .tbh-logo,
    .tb-scrolled .tbh:not(.tbh-open) .tbh-right { opacity: 0; }
    .tbh-burger { pointer-events: auto; }
    .tb-scrolled .tbh .tbh-burger {
        background: var(--tb-cream);
        box-shadow: 0 6px 20px -8px rgba(42,36,32,0.55), inset 0 0 0 1px var(--tb-line);
    }
}

/* ============================================================
   SECTIONS / layout primitives
   ============================================================ */
.tb-section {
    max-width: 1240px;
    margin: 72px auto 0;
    padding: 0 32px;
    position: relative;
}
.tb-section--tight { margin-top: 40px; }
.tb-section--first { margin-top: 22px; }
.tb-eyebrow {
    color: var(--tb-accent);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.tb-eyebrow--soft { color: var(--tb-accent-soft); }
.tb-h2 {
    font-family: var(--tb-serif);
    font-weight: 600;
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 8px;
}
.tb-sub {
    color: var(--tb-muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 640px;
}
.tb-sechead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}
.tb-section, .tb-section h1, .tb-section h2, .tb-section h3, .tb-section h4,
.tb-section p, .tb-section div, .tb-prose-body, .tb-revfig blockquote {
    text-align: left;
}
.tb-grid { display: grid; gap: 18px; }
.tb-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.tb-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tb-grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tb-grid--cards { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }

/* ---------- buttons / pills ---------- */
.tb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--tb-accent);
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 26px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    font-family: var(--tb-sans);
}
.tb-btn:hover { background: var(--tb-accent-dark); }
.tb-btn--dark {
    background: var(--tb-ink);
    color: var(--tb-cream) !important;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 999px;
}
.tb-btn--dark:hover { background: #3a332d; }
.tb-btn--ghost {
    background: transparent;
    border: 1px solid rgba(193,97,59,0.4);
    color: var(--tb-accent) !important;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 20px;
    border-radius: 999px;
}
.tb-btn--ghost:hover { background: var(--tb-accent); color: #fff !important; border-color: var(--tb-accent); }
.tb-morelink {
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tb-accent) !important;
    text-decoration: none !important;
}
.tb-morelink:hover { color: var(--tb-accent-dark) !important; }
.tb-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--tb-sand);
    color: #5a5147;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    text-decoration: none !important;
}
.tb-pill--hot { background: #F6EAE3; color: #a3502f; font-weight: 700; }

/* ============================================================
   HERO (city / detail / home)
   ============================================================ */
.tb-hero-wrap {
    position: relative;
    max-width: 1240px;
    margin: 22px auto 0;
    padding: 0 32px;
}
.tb-hero {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    height: min(66vh, 580px);
    min-height: 420px;
}
.tb-hero--detail { height: auto; min-height: clamp(340px, 46vh, 460px); }
.tb-hero--home { height: min(74vh, 620px); min-height: 440px; }
.tb-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: 50% 50%;
    animation: tbSlowZoom 9s ease-out both;
}
.tb-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30,22,16,0.15) 0%, rgba(30,22,16,0.7) 100%);
    pointer-events: none;
}
.tb-hero--detail .tb-hero-shade {
    background: linear-gradient(180deg, rgba(24,18,13,0.52) 0%, rgba(24,18,13,0.34) 42%, rgba(24,18,13,0.88) 100%);
}
.tb-hero-inner {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 40px;
}
.tb-hero--detail .tb-hero-inner { position: relative; padding: clamp(180px,26vh,260px) clamp(24px,4vw,44px) clamp(24px,4vw,44px); }
.tb-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    margin-bottom: 14px;
}
.tb-crumb a { color: rgba(255,255,255,0.8) !important; text-decoration: none !important; }
.tb-crumb a:hover { color: #fff !important; }
.tb-crumb .cur { color: #fff; }
.tb-hero-h1 {
    font-family: var(--tb-serif) !important;
    font-weight: 600;
    color: #fff !important;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.02em;
    margin: 0;
    padding: 0;
    text-shadow: none;
}
.tb-hero--detail .tb-hero-h1 { font-size: clamp(32px, 5.2vw, 58px); margin-bottom: 14px; }
.tb-hero-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 12px;
}
.tb-hero-titlerow {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}
.tb-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(250,246,239,0.07);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.16);
    color: rgba(255,255,255,0.92);
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.tb-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(250,246,239,0.16);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.tb-hero-sub {
    color: rgba(255,255,255,0.9);
    font-size: clamp(15px, 2vw, 18px);
    margin-top: 8px;
    max-width: 620px;
    line-height: 1.6;
}
.tb-hero-links {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 20px;
}
/* ссылки в герое: именно ссылки, а не кнопки — подчёркнутый текст с лёгкой подложкой,
   чтобы читались, даже если под ними светлый участок фотографии */
.tb-hero-links {
    align-items: baseline;
    row-gap: 4px;
}
.tb-hero-links a {
    cursor: pointer;
    display: inline-block;
    background: rgba(28,22,18,0.34);
    backdrop-filter: blur(4px);
    border: 0;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 7px;
    text-decoration: underline !important;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    text-decoration-color: rgba(255,255,255,0.55);
    white-space: nowrap;
}
.tb-hero-links a:hover {
    background: rgba(28,22,18,0.6);
    text-decoration-color: #fff;
}
.tb-hero-links > span {
    background: rgba(28,22,18,0.34);
    backdrop-filter: blur(4px);
    border-radius: 7px;
    padding: 3px 8px;
    opacity: 1 !important;
    color: rgba(255,255,255,0.8);
}
/* floating motifs on detail hero */
.tb-hero-floats { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.tb-hero-floats > span {
    position: absolute;
    display: block;
    line-height: 1;
    opacity: 0.85;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.4));
    animation: tbFloatBob 8s ease-in-out infinite;
    will-change: transform;
}
.tb-hero-floats > span.glyph {
    font-family: var(--tb-serif);
    font-weight: 700;
    color: rgba(255,255,255,0.2);
    opacity: 1;
    filter: none;
    text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

@keyframes tbSlowZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes tbFloatBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes tbFloatUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- home search bar ---------- */
.tb-search-wrap {
    position: relative;
    margin: -38px auto 0;
    max-width: 820px;
    padding: 0 12px;
    z-index: 5;
}
.tb-search {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 22px 50px -18px rgba(42,36,32,0.35);
    border: 1px solid rgba(42,36,32,0.06);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}
.tb-search .fld {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 220px;
    padding: 8px 14px;
}
.tb-search input {
    border: none !important;
    outline: none;
    font-family: var(--tb-sans);
    font-size: 16px;
    width: 100%;
    background: transparent !important;
    color: var(--tb-ink);
    box-shadow: none !important;
    padding: 0;
    margin: 0;
}
.tb-search-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 14px;
}
.tb-search-chips > span { color: var(--tb-muted); font-size: 13px; }

/* ---------- home: tip rows in dark card ---------- */
.tb-tiprow {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 16px;
    transition: background .2s;
    text-decoration: none !important;
}
.tb-tiprow:hover { background: rgba(255,255,255,0.06); }
.tb-tiprow .im {
    width: 84px; height: 84px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
}
.tb-tiprow .im img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.tb-tiprow .cat {
    color: var(--tb-accent-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.tb-tiprow h3 {
    font-size: 19px;
    line-height: 1.18;
    color: var(--tb-cream) !important;
    margin: 0 0 4px;
    font-weight: 600;
}
.tb-tiprow p { color: rgba(250,246,239,0.55); font-size: 13px; line-height: 1.45; margin: 0; }
.tb-tiprow .arr { color: var(--tb-accent-soft); font-size: 18px; flex-shrink: 0; }

/* ---------- airline / airport cards ---------- */
.tb-aircard {
    cursor: pointer;
    display: block;
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 6px 20px -12px rgba(42,36,32,0.22);
    transition: box-shadow .2s, transform .2s;
    text-decoration: none !important;
}
.tb-aircard:hover { box-shadow: 0 16px 34px -14px rgba(42,36,32,0.3); transform: translateY(-3px); }
.tb-aircard .lg {
    height: 56px;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}
.tb-aircard .lg img { max-height: 56px; max-width: 100%; object-fit: contain; border-radius: 0; }
.tb-aircard .nm { font-weight: 700; font-size: 16px; color: var(--tb-ink); }
.tb-aircard .sb { color: var(--tb-muted); font-size: 13px; margin-top: 2px; }
.tb-airportcard {
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 5/4;
    padding: 20px;
    text-decoration: none !important;
}
.tb-airportcard .code {
    font-family: var(--tb-serif);
    font-weight: 700;
    font-size: clamp(54px, 7vw, 78px);
    line-height: 1;
    color: #fff;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.tb-airportcard .nm { font-weight: 700; font-size: 16px; color: #fff; }
.tb-airportcard .ct { color: rgba(255,255,255,0.82); font-size: 13px; }
.tb-airportcard .arr {
    position: absolute;
    right: 16px; top: 18px;
    color: rgba(255,255,255,0.9);
    font-size: 15px;
}

/* ============================================================
   CITY SUBMENU (sticky under hero)
   ============================================================ */
.tb-submenu-wrap {
    position: sticky;
    top: 80px;
    z-index: 45;
    max-width: 1240px;
    margin: 18px auto 0;
    padding: 0 32px;
    transition: top .25s ease;
}
.tb-submenu {
    background: var(--tb-ink);
    border-radius: 16px;
    box-shadow: 0 18px 44px -24px rgba(0,0,0,0.7);
    height: 60px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 14px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    transition: height .25s ease;
}
.tb-submenu-toggle { display: none; }
@media (min-width: 901px) {
    .tb-scrolled .tb-submenu-wrap { top: 58px; }
    .tb-scrolled .tb-submenu { height: 48px; }
}
.tb-submenu::-webkit-scrollbar { display: none; }
.tb-submenu-city {
    position: sticky;
    left: 0;
    background: var(--tb-ink);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    z-index: 1;
    padding-right: 2px;
}
.tb-submenu-city a {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}
.tb-submenu-city .nm {
    font-family: var(--tb-serif);
    font-weight: 600;
    font-size: 18px;
    color: var(--tb-cream);
    white-space: nowrap;
}
.tb-submenu-city .sep {
    width: 1px;
    height: 24px;
    background: rgba(250,246,239,0.16);
    display: inline-block;
}
.tb-submenu-items {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.tb-submenu-items a, .tb-submenu-items span.cur {
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 15px;
    border-radius: 999px;
    color: rgba(250,246,239,0.72) !important;
    background: transparent;
    text-decoration: none !important;
    scroll-snap-align: start;
}
.tb-submenu-items a:hover { box-shadow: inset 0 0 0 1px rgba(250,246,239,0.28); }
.tb-submenu-items span.cur { color: #fff !important; background: var(--tb-accent); }

/* Мобильное меню города: полоска «📍 Город + бургер», пункты — выпадашкой.
   Брейкпоинт 900px — синхронно с мобильной шапкой. */
@media (max-width: 900px) {
    .tb-submenu-wrap { padding: 0 12px; top: 66px; margin-top: 14px; }
    .tb-submenu {
        display: block;
        height: auto;
        padding: 0;
        overflow: visible;
        position: relative;
    }
    .tb-submenu-city {
        position: static;
        display: flex;
        align-items: center;
        height: 48px;
        padding: 0 6px 0 14px;
        gap: 10px;
    }
    .tb-submenu-city .nm { font-size: 16px; }
    .tb-submenu-city .sep { display: none; }
    .tb-submenu-toggle {
        display: block;
        margin-left: auto;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        padding: 12px;
        border: none;
        background: transparent;
        cursor: pointer;
        transition: margin .25s ease;
    }
    .tb-submenu-toggle span {
        display: block;
        height: 2px;
        border-radius: 2px;
        background: rgba(250,246,239,0.85);
        margin: 4px 0;
        transition: transform .2s, opacity .2s;
    }
    /* при прокрутке справа наезжает плавающий бургер шапки — оставляем ему место */
    .tb-scrolled .tb-submenu-toggle { margin-right: 48px; }
    .tb-submenu-items {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 5;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: var(--tb-ink);
        border-radius: 0 0 16px 16px;
        box-shadow: 0 18px 44px -24px rgba(0,0,0,0.7);
        padding: 2px 10px 12px;
    }
    .tb-submenu-items a, .tb-submenu-items span.cur {
        border-radius: 10px;
        padding: 11px 12px;
        justify-content: flex-start;
        font-size: 15px;
    }
    .tb-submenu-open .tb-submenu { border-radius: 16px 16px 0 0; }
    .tb-submenu-open .tb-submenu-items { display: flex; }
    .tb-submenu-open .tb-submenu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .tb-submenu-open .tb-submenu-toggle span:nth-child(2) { opacity: 0; }
    .tb-submenu-open .tb-submenu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    /* при прокрутке полоска города подтягивается под самый верх */
    .tb-scrolled .tb-submenu-wrap { top: 6px; }
}

/* ============================================================
   CARDS
   ============================================================ */
.tb-card {
    background: #fff;
    border: 1px solid var(--tb-line-soft);
    border-radius: 20px;
    box-shadow: 0 10px 28px -20px rgba(42,36,32,0.35);
}
.tb-card--flat { box-shadow: none; background: var(--tb-cream-2); }
.tb-card--sand { background: var(--tb-sand); border: 1px solid rgba(42,36,32,0.05); box-shadow: none; }
.tb-darkcard {
    background: var(--tb-ink);
    border-radius: 28px;
    padding: clamp(28px, 4vw, 48px);
    color: var(--tb-cream);
}
.tb-darkcard .tb-h2, .tb-darkcard h2, .tb-darkcard h3 { color: var(--tb-cream); }
.tb-greencard {
    background: var(--tb-green-bg);
    border-radius: 28px;
    overflow: hidden;
}
.tb-feature {
    background: var(--tb-sand);
    border-radius: 20px;
    padding: 28px;
}
.tb-feature .ic {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.tb-feature h3 { font-size: 22px; margin: 0; }
.tb-feature .hd { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tb-feature p { color: var(--tb-muted); font-size: 15px; line-height: 1.55; margin: 0; }

/* photo card (city/place tiles) */
.tb-photocard {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: block;
    aspect-ratio: 3/4;
    text-decoration: none !important;
    transition: transform .2s;
}
.tb-photocard:hover { transform: translateY(-3px); }
.tb-photocard img, .tb-photocard .bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: 50% 50%;
}
.tb-photocard .shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30,22,16,0) 45%, rgba(30,22,16,0.78) 100%);
    pointer-events: none;
}
.tb-photocard .cap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 18px;
    pointer-events: none;
}
.tb-photocard .cap .rg {
    color: rgba(255,255,255,0.82);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 3px;
}
.tb-photocard .cap .nm {
    font-family: var(--tb-serif);
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}
.tb-photocard .cap .nt { color: rgba(255,255,255,0.82); font-size: 14px; margin-top: 2px; }
.tb-photocard .rank {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--tb-accent);
    color: #fff;
    font-family: var(--tb-serif);
    font-weight: 700;
    font-size: 15px;
    width: 34px; height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.tb-photocard .tag {
    position: absolute;
    top: 14px; right: 14px;
    background: rgba(250,246,239,0.92);
    color: #5a5147;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 999px;
    pointer-events: none;
}

/* top places on city pages: compact landscape previews keep small photos natural */
.tb-top-places {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.tb-top-place {
    display: grid;
    grid-template-columns: minmax(112px, 38%) 1fr;
    min-height: 126px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--tb-line-soft);
    border-radius: 18px;
    color: var(--tb-ink) !important;
    text-decoration: none !important;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tb-top-place:hover {
    transform: translateY(-2px);
    border-color: rgba(193,97,59,.35);
    box-shadow: 0 10px 24px -18px rgba(42,36,32,.45);
}
.tb-top-place__photo {
    min-height: 126px;
    background: var(--tb-sand);
}
.tb-top-place__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tb-top-place__body {
    display: flex;
    min-width: 0;
    padding: 14px 15px;
    flex-direction: column;
    align-items: flex-start;
}
.tb-top-place__meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
}
.tb-top-place__rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border-radius: 999px;
    background: var(--tb-accent);
    color: #fff;
    font-family: var(--tb-serif);
    font-size: 13px;
    font-weight: 700;
}
.tb-top-place__rating {
    color: #5a5147;
    font-size: 12px;
    font-weight: 700;
}
.tb-top-place__name {
    color: var(--tb-ink);
    font-family: var(--tb-serif);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.18;
}
.tb-top-place__more {
    margin-top: auto;
    padding-top: 7px;
    color: var(--tb-accent);
    font-size: 12px;
    font-weight: 700;
}
@media (max-width: 980px) {
    .tb-top-places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .tb-top-places { grid-template-columns: 1fr; }
    .tb-top-place { grid-template-columns: 128px 1fr; }
}

/* compact travel-story previews on city pages */
.tb-city-stories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.tb-city-story { min-width: 0; }
.tb-city-story__link {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    min-height: 108px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--tb-line-soft);
    border-radius: 16px;
    color: var(--tb-ink);
    text-decoration: none !important;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.tb-city-story__link:hover {
    border-color: rgba(193,97,59,.35);
    box-shadow: 0 10px 24px -18px rgba(42,36,32,.45);
    transform: translateY(-2px);
}
.tb-city-story__photo { background: var(--tb-sand); }
.tb-city-story__photo img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}
.tb-city-story__title {
    align-self: center;
    margin: 0;
    padding: 14px 16px;
    color: inherit;
    font-family: var(--tb-serif);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.22;
}
@media (max-width: 700px) {
    .tb-city-stories { grid-template-columns: 1fr; }
    .tb-city-story__link { grid-template-columns: 124px minmax(0, 1fr); min-height: 94px; }
    .tb-city-story__title { padding: 12px 14px; font-size: 17px; }
}

/* stat blocks (prices & facts band) */
.tb-statgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    border-top: 1px solid rgba(42,36,32,0.12);
}
.tb-stat { padding: 26px 26px 26px 0; border-bottom: 1px solid var(--tb-line-soft); }
.tb-stat .lb {
    color: var(--tb-label);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.tb-stat .v {
    font-family: var(--tb-serif);
    font-weight: 700;
    font-size: clamp(34px, 4.6vw, 46px);
    color: var(--tb-ink);
    line-height: 0.9;
}
.tb-stat .s { color: var(--tb-accent); font-size: 14px; font-weight: 600; margin-top: 9px; }
.tb-facts {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid rgba(42,36,32,0.12);
    display: flex;
    flex-wrap: wrap;
    gap: 14px 44px;
}
.tb-fact { display: flex; align-items: baseline; gap: 12px; }
.tb-fact .k {
    color: var(--tb-label);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.tb-fact .v { font-family: var(--tb-serif); font-weight: 600; font-size: 19px; color: var(--tb-ink); }
.tb-fact .s { color: var(--tb-faint); font-size: 13px; }

/* score (dark band with bars) */
.tb-scoregrid {
    display: grid;
    grid-template-columns: minmax(240px, 300px) 1fr;
    gap: clamp(30px, 5vw, 64px);
    align-items: center;
}
.tb-scorering-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tb-scorering {
    position: relative;
    width: 206px; height: 206px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px -18px rgba(143,160,110,0.55);
}
.tb-scorering .in {
    width: 162px; height: 162px;
    border-radius: 999px;
    background: var(--tb-ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.tb-scorering .val {
    font-family: var(--tb-serif);
    font-weight: 700;
    font-size: 60px;
    color: var(--tb-cream);
    line-height: 0.9;
}
.tb-scorering .of { color: rgba(250,246,239,0.45); font-size: 13px; font-weight: 600; }
.tb-scoreverdict { margin-top: 20px; color: #8FA06E; font-weight: 700; font-size: 16px; }
.tb-scorenote { color: rgba(250,246,239,0.45); font-size: 13px; margin-top: 5px; }
.tb-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px 44px;
}
.tb-metric .row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 9px;
}
.tb-metric .nm {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--tb-cream);
    font-weight: 600;
    font-size: 15px;
    min-width: 0;
}
.tb-metric .sc { display: flex; align-items: baseline; gap: 8px; flex-shrink: 0; }
.tb-metric .word { font-weight: 700; font-size: 13px; }
.tb-metric .num { font-family: var(--tb-serif); font-weight: 700; font-size: 16px; color: var(--tb-cream); }
.tb-metric .bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.09);
    overflow: hidden;
}
.tb-metric .bar > div { height: 100%; border-radius: 999px; }
.tb-good { color: #8FA06E; } .tb-good-bg { background: #8FA06E; }
.tb-mid { color: var(--tb-accent-soft); } .tb-mid-bg { background: var(--tb-accent-soft); }
@media (max-width: 760px) {
    .tb-scoregrid { grid-template-columns: 1fr; gap: 28px; }
}

/* list card (F4EADB rows: icon + name + value) */
.tb-listcard {
    background: var(--tb-sand);
    border: 1px solid rgba(42,36,32,0.05);
    border-radius: 20px;
    overflow: hidden;
    max-width: 760px;
}
.tb-listcard .rowi {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    border-bottom: 1px solid rgba(42,36,32,0.06);
}
.tb-listcard .rowi:last-child { border-bottom: 0; }
.tb-listcard .rowi .ic { font-size: 22px; flex-shrink: 0; }
.tb-listcard .rowi .nm { font-size: 15px; font-weight: 600; color: var(--tb-ink); }
.tb-listcard .rowi .sb { color: var(--tb-muted); font-size: 13px; }
.tb-listcard .rowi .vl {
    margin-left: auto;
    font-family: var(--tb-serif);
    font-weight: 600;
    font-size: 17px;
    color: var(--tb-ink);
    white-space: nowrap;
    padding-left: 12px;
}

/* price column card (white, sand header, rows) */
.tb-pricecol {
    background: #fff;
    border: 1px solid var(--tb-line-soft);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 28px -20px rgba(42,36,32,0.35);
}
.tb-pricecol .hd {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 17px 22px;
    background: var(--tb-sand);
}
.tb-pricecol .hd h3 { font-size: 18px; margin: 0; }
.tb-pricecol .hd .ic { font-size: 18px; }
.tb-pricecol .rowp {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 22px;
    border-top: 1px solid rgba(42,36,32,0.06);
}
.tb-pricecol .rowp .nm { color: #5a5147; font-size: 14px; }
.tb-pricecol .rowp .vl {
    font-family: var(--tb-serif);
    font-weight: 600;
    font-size: 15px;
    color: var(--tb-ink);
    white-space: nowrap;
}
.tb-pricecol .rowp .vl small { color: var(--tb-faint); font-size: 12px; font-family: var(--tb-sans); margin-left: 8px; }

/* big price cards (cafe / hotel types) */
.tb-bigprice {
    background: #fff;
    border: 1px solid var(--tb-line-soft);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 12px 30px -22px rgba(42,36,32,0.4);
    position: relative;
}
.tb-bigprice .v {
    font-family: var(--tb-serif);
    font-weight: 700;
    font-size: clamp(34px, 4.5vw, 46px);
    color: var(--tb-ink);
    line-height: 0.85;
}
.tb-bigprice .r { color: var(--tb-accent); font-size: 16px; font-weight: 700; }
.tb-bigprice .l { color: var(--tb-text); font-size: 16px; font-weight: 600; line-height: 1.4; margin: 14px 0 16px; }
.tb-bigprice .hotpick {
    position: absolute;
    top: 14px; right: 14px;
    background: var(--tb-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 999px;
}
.tb-bigprice--hot { background: #FBF3EC; border-color: rgba(193,97,59,0.4); }

/* rate boxes (dark band) */
.tb-ratebox {
    background: rgba(250,246,239,0.07);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 14px;
    padding: 9px 16px;
}
.tb-ratebox .k { color: rgba(250,246,239,0.5); font-size: 12px; font-weight: 600; }
.tb-ratebox .v { font-family: var(--tb-serif); font-weight: 700; font-size: 18px; margin-top: 2px; color: var(--tb-cream); }

/* summary band (green) */
.tb-summaryband {
    background: var(--tb-green-bg);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.tb-summaryband .ic { font-size: 20px; flex-shrink: 0; }
.tb-summaryband .tx { color: var(--tb-green-text); font-size: 15px; font-weight: 600; line-height: 1.5; }
.tb-hintband {
    background: #F6EAE3;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.tb-hintband .tx { color: #a3502f; font-size: 15px; font-weight: 600; line-height: 1.5; }

/* dish cards */
.tb-dishgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tb-dish {
    background: var(--tb-cream-2);
    border: 1px solid rgba(42,36,32,0.07);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    gap: 16px;
}
.tb-dish .ic {
    width: 46px; height: 46px;
    border-radius: 13px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px -8px rgba(42,36,32,0.3);
}
.tb-dish h4 { font-size: 19px; font-weight: 700; margin: 0 0 6px; }
.tb-dish p { color: var(--tb-muted); font-size: 14.5px; line-height: 1.6; margin: 0; }
.tb-h3line {
    font-family: var(--tb-serif);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.01em;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--tb-sand);
}
@media (max-width: 760px) { .tb-dishgrid { grid-template-columns: 1fr; } }

/* photo gallery grid */
.tb-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    text-align: initial;
}
.tb-gallery-grid a {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: var(--tb-sand);
}
.tb-gallery-grid img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    float: none !important;
    margin: 0 !important;
    border-radius: 0;
    display: block;
}

/* prose (article text) */
.tb-prose-body { color: #3a332d; font-size: clamp(16px, 1.9vw, 18px); line-height: 1.68; }
.tb-prose-body p { margin-bottom: 18px; }
.tb-anchor:hover { color: var(--tb-accent) !important; }

/* Self-travel article */
.tb-selftravel-article-hero .tb-hero-bg { background-position: 50% 58%; }
.tb-selftravel-article { max-width: 1120px; margin-top: 70px; }
.tb-selftravel-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 276px;
    gap: clamp(24px, 4vw, 52px);
    align-items: start;
}
.tb-selftravel-article-body { padding: clamp(24px, 4vw, 54px); }
.tb-selftravel-article-intro {
    max-width: 670px;
    margin-bottom: 38px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--tb-line);
}
.tb-selftravel-article-intro p {
    color: var(--tb-ink);
    font-family: var(--tb-serif);
    font-size: clamp(22px, 3.1vw, 30px);
    font-weight: 500;
    letter-spacing: -0.018em;
    line-height: 1.25;
    margin: 0;
}
.tb-selftravel-article-prose {
    max-width: 700px;
    font-size: clamp(17px, 1.95vw, 19px);
    line-height: 1.76;
    letter-spacing: 0.002em;
}
.tb-selftravel-article-prose h2,
.tb-selftravel-article-prose h3,
.tb-selftravel-article-prose h4 {
    color: var(--tb-ink);
    font-family: var(--tb-serif);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin: 42px 0 16px;
    scroll-margin-top: 96px;
}
.tb-selftravel-article-prose h2 { font-size: clamp(30px, 4vw, 40px); }
.tb-selftravel-article-prose h3 { font-size: clamp(24px, 3.1vw, 30px); }
.tb-selftravel-article-prose h4 { font-size: clamp(20px, 2.6vw, 24px); }
.tb-selftravel-article-prose h2:first-child,
.tb-selftravel-article-prose h3:first-child,
.tb-selftravel-article-prose h4:first-child { margin-top: 0; }
.tb-selftravel-article-prose p { margin: 0 0 22px; }
.tb-selftravel-article-prose ul,
.tb-selftravel-article-prose ol { margin: 0 0 26px; padding-left: 1.35em; }
.tb-selftravel-article-prose li { margin: 0 0 9px; padding-left: 5px; }
.tb-selftravel-article-prose blockquote {
    color: var(--tb-ink);
    font-family: var(--tb-serif);
    font-size: 1.15em;
    font-weight: 500;
    line-height: 1.42;
    margin: 32px 0;
    padding: 4px 0 4px 24px;
    border-left: 3px solid var(--tb-accent-soft);
}
.tb-selftravel-article-prose hr { border: 0; border-top: 1px solid var(--tb-line); margin: 38px 0; }
.tb-selftravel-article-prose table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 0.9em; line-height: 1.45; }
.tb-selftravel-article-prose th,
.tb-selftravel-article-prose td { padding: 12px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--tb-line); }
.tb-selftravel-article-prose th { color: var(--tb-ink); font-weight: 700; }
.tb-selftravel-article-prose a {
    color: var(--tb-accent);
    font-weight: 600;
    text-decoration-color: rgba(193,97,59,0.38);
    text-underline-offset: 3px;
}
.tb-selftravel-article-prose img {
    display: block;
    width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 16px;
    box-shadow: 0 16px 34px -22px rgba(42,36,32,0.58);
}
.tb-selftravel-article-aside { position: sticky; top: 92px; }
.tb-selftravel-article-note { padding: 24px 22px; }
.tb-selftravel-article-note p {
    color: var(--tb-body);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 16px;
}
.tb-selftravel-article-note p:last-child { margin-bottom: 0; }
.tb-selftravel-article-toc { display: flex; flex-direction: column; gap: 10px; }
.tb-selftravel-article-toc a {
    color: var(--tb-body) !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
}
.tb-selftravel-article-toc a.level-3,
.tb-selftravel-article-toc a.level-4 { color: var(--tb-muted) !important; font-weight: 500; padding-left: 12px; }
.tb-selftravel-article-toc a:hover { color: var(--tb-accent) !important; }
.tb-selftravel-article-back {
    display: block;
    color: var(--tb-muted) !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    margin: 18px 4px 0;
    text-decoration: none !important;
}
.tb-selftravel-article-back:hover { color: var(--tb-accent) !important; }
.tb-selftravel-article-more { max-width: 1120px; margin-top: 52px; }
.tb-selftravel-article-more .tb-card { padding: clamp(24px, 4vw, 40px); }
.tb-selftravel-article-more .tb-h2 { margin-bottom: 10px; }
.tb-selftravel-article-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.tb-selftravel-article-related a {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    color: var(--tb-ink) !important;
    font-family: var(--tb-serif);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.16;
    text-decoration: none !important;
}
.tb-selftravel-article-related .ph { display: block; height: 64px; overflow: hidden; border-radius: 10px; background: var(--tb-cream); }
.tb-selftravel-article-related img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.tb-selftravel-article-related a:hover { color: var(--tb-accent) !important; }
.tb-selftravel-article-related a:hover img { transform: scale(1.05); }
@media (max-width: 820px) {
    .tb-selftravel-article-layout { grid-template-columns: 1fr; }
    .tb-selftravel-article-aside { position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
    .tb-selftravel-article-back { margin: 0; }
    .tb-selftravel-article-related { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .tb-selftravel-article { margin-top: 54px; }
    .tb-selftravel-article-body { padding: 24px 20px; }
    .tb-selftravel-article-intro { margin-bottom: 30px; padding-bottom: 24px; }
    .tb-selftravel-article-prose img { border-radius: 12px; margin: 24px 0; }
    .tb-selftravel-article-aside { display: block; }
    .tb-selftravel-article-back { margin: 16px 4px 0; }
}

/* breadcrumbs inside hero crumb */
.tb-crumb #crumbs { color: rgba(255,255,255,0.8); }
.tb-crumb #crumbs img { display: none; }
.tb-crumb #crumbs a { color: rgba(255,255,255,0.8) !important; margin: 0 4px; }
.tb-crumb #crumbs a:first-child { margin-left: 0; }
.tb-crumb #crumbs a:hover { color: #fff !important; }
.tb-crumb #crumbs .current { color: #fff; margin-left: 4px; }

/* breadcrumbs bar: standalone strip between hero/city menu and the first section */
.tb-crumbbar {
    max-width: 1240px;
    margin: 26px auto -22px;
    padding: 0 32px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}
.tb-crumbbar #crumbs { color: #8a8075; }
.tb-crumbbar #crumbs img { display: none; }
.tb-crumbbar #crumbs > span { white-space: nowrap; }
.tb-crumbbar #crumbs > span:not(:first-child)::before { content: "\203A\00a0"; color: #b5aa9d; font-weight: 400; }
.tb-crumbbar #crumbs a { color: #6b6157 !important; text-decoration: none !important; line-height: inherit; }
.tb-crumbbar #crumbs a:hover { color: var(--tb-accent) !important; }
.tb-crumbbar #crumbs .current { color: #2A2420; }

/* ============================================================
   REVIEWS (social)
   ============================================================ */
.tb-revwrap { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.tb-revrow {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: center;
    padding: 28px 0;
    border-top: 1px solid var(--tb-line);
}
.tb-revrow .ph {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3/2;
    background: var(--tb-sand);
}
.tb-revrow .ph > a, .tb-revfig .ph > a { display: block; width: 100%; height: 100%; }
.tb-revrow .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-revrow .tx p { color: var(--tb-text); font-size: 16px; line-height: 1.65; margin: 0; }
.tb-revrow .who {
    margin-top: 12px;
    color: #b8b0a6;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.tb-revrow .who a, .tb-review-author { color: #b8b0a6 !important; text-decoration: none !important; }
.tb-revrow .who a:hover { color: var(--tb-accent) !important; }
.tb-revfig {
    max-width: 920px;
    margin: 8px auto 44px;
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 36px);
    align-items: center;
}
.tb-revfig .ph {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 16px 30px -24px rgba(42,36,32,0.5);
}
.tb-revfig .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-revfig blockquote {
    font-family: var(--tb-serif);
    font-weight: 500;
    font-style: italic;
    color: var(--tb-ink);
    font-size: clamp(20px, 2.4vw, 27px);
    line-height: 1.44;
    letter-spacing: -0.01em;
    margin: 0;
    border: 0;
    padding: 0;
    background: transparent;
}
.tb-revfig .star {
    color: var(--tb-accent);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.tb-revfig figcaption { margin-top: 22px; color: #b8b0a6; font-size: 12px; font-weight: 500; letter-spacing: 0.02em; }
.tb-revrow.noimg { grid-template-columns: 1fr; }
.tb-revfig.noimg { grid-template-columns: 1fr; }
.tb-trip-note .ph { aspect-ratio: 4/3; }
.tb-trip-note__label {
    margin-bottom: 10px;
    color: var(--tb-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.tb-review-expand { margin: 0; }
.tb-review-expand summary { cursor: pointer; list-style: none; }
.tb-review-expand summary::-webkit-details-marker { display: none; }
.tb-review-expand__preview { display: block; color: var(--tb-text); font-size: 16px; line-height: 1.65; }
.tb-review-expand__action {
    display: inline-flex;
    margin-top: 10px;
    color: var(--tb-accent);
    font-size: 13px;
    font-weight: 700;
}
.tb-review-expand__action::after { content: "▾"; margin-left: 7px; font-size: 11px; transition: transform .2s ease; }
.tb-review-expand__close { display: none; }
.tb-review-expand[open] .tb-review-expand__preview { display: none; }
.tb-review-expand[open] .tb-review-expand__open { display: none; }
.tb-review-expand[open] .tb-review-expand__close { display: inline; }
.tb-review-expand[open] .tb-review-expand__action::after { transform: rotate(180deg); }
.tb-review-expand__full { margin-top: 2px; }
.tb-review-expand--featured .tb-review-expand__preview {
    font-family: var(--tb-serif);
    font-size: clamp(20px, 2.4vw, 27px);
    font-weight: 500;
    font-style: italic;
    line-height: 1.44;
    letter-spacing: -0.01em;
}
.tb-review-expand--featured blockquote { margin-top: 2px; }
@media (max-width: 760px) {
    .tb-revrow { grid-template-columns: 1fr; gap: 14px; }
    .tb-revfig { grid-template-columns: 1fr; gap: 22px; }
    .tb-revfig .ph { max-width: 220px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.tbf {
    margin-top: 96px;
    border-top: 1px solid var(--tb-line);
    background: var(--tb-sand-2);
}
.tbf-in {
    max-width: 1240px;
    margin: 0 auto;
    padding: 52px 32px 40px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
}
.tbf-logo { display: flex; align-items: baseline; margin-bottom: 14px; }
.tbf-logo span { font-family: var(--tb-serif); font-weight: 700; font-size: 22px; color: var(--tb-ink); }
.tbf-logo span + span { color: var(--tb-accent); }
.tbf-desc { color: var(--tb-muted); font-size: 14px; line-height: 1.6; max-width: 320px; }
.tbf-title { font-weight: 700; font-size: 14px; margin-bottom: 14px; color: var(--tb-ink); }
.tbf-links { display: flex; flex-direction: column; gap: 9px; }
.tbf-links a {
    cursor: pointer;
    color: #5a5147 !important;
    font-size: 14px;
    text-decoration: none !important;
}
.tbf-links a:hover { color: var(--tb-accent) !important; }
.tbf-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding: 22px 32px 40px;
    color: var(--tb-faint);
    font-size: 13px;
    border-top: 1px solid var(--tb-line-soft);
}
.tbf-bottom a { color: var(--tb-faint) !important; }
@media (max-width: 760px) {
    .tbf-in { grid-template-columns: 1fr; gap: 28px; padding: 40px 20px 28px; }
    .tbf-bottom { padding: 18px 20px 30px; }
}

/* ============================================================
   LEGACY RE-SKIN — pulls old markup toward the new design
   ============================================================ */

/* hide legacy chrome remnants if any template still prints them */
.vacation-finder, .main-menu-new, #top-fixed { display: none !important; }

/* legacy content container pages */
.wrapper { background: #fff; }

/* breadcrumbs */
.breadcrumbs, .breadcrumbs-mobile {
    background: transparent;
    color: var(--tb-faint);
    font-size: 13px;
    font-weight: 600;
}
.breadcrumbs a, .breadcrumbs-mobile a { color: var(--tb-muted) !important; }
.breadcrumbs a:hover, .breadcrumbs-mobile a:hover { color: var(--tb-accent) !important; }

/* old crimson → terracotta */
.counter { color: var(--tb-accent) !important; font-family: var(--tb-serif); font-weight: 700; }
.underlined-title h4, h4 { font-family: var(--tb-serif) !important; }
.underlined-title hr, .content-title hr { border-color: var(--tb-line); }

/* legacy buttons */
.btn-action, .allLink a, .show-all span, .weatherLink a {
    background: var(--tb-accent) !important;
    color: #fff !important;
    border-radius: 12px !important;
    border: none !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .2s;
}
.btn-action:hover, .allLink a:hover, .weatherLink a:hover { background: var(--tb-accent-dark) !important; }
.allLink a, .weatherLink a { display: inline-block; padding: 12px 24px; }
.allLink, .weatherLink { text-align: center; margin: 1.5em 0; }

/* legacy panels */
#city-pattern, .bg-pattern {
    background: var(--tb-cream-2) !important;
    border: 1px solid var(--tb-line-soft);
    border-radius: 20px !important;
}
.review-text {
    background: var(--tb-cream-2);
    border: 1px solid var(--tb-line-soft);
    border-radius: 16px;
}
.review-text span { color: var(--tb-accent-soft) !important; }

/* progress bars (city parameters, airport ratings) */
.safeness-level-line-full { background: rgba(42,36,32,0.08) !important; border-radius: 999px; overflow: hidden; }
.safeness-level-line { background: var(--tb-green) !important; border-radius: 999px; }
.w-1.safeness-level-line, .w-2.safeness-level-line { background: var(--tb-accent-soft) !important; }

/* tables */
.airRoutes, #transp, table.pricesTable {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--tb-line-soft);
    border-radius: 16px;
    overflow: hidden;
}
.airRoutes td, #transp td { border-color: var(--tb-line-soft) !important; }
.airRoutesHead { background: var(--tb-sand); font-weight: 700; }

/* section headers on legacy price pages */
.section-price-title { font-size: clamp(26px, 4vw, 36px) !important; }
.section-price-title span { color: var(--tb-accent); }
.section-price-info { color: var(--tb-muted) !important; }

/* legacy blog posts */
.blog-post img { border-radius: 18px; }
.blog-post-title { font-weight: 600; }

/* footer old id (in case any template prints its own) */
#footer { background: var(--tb-sand-2) !important; color: var(--tb-ink) !important; }
#footer a { color: var(--tb-body) !important; }
#footer .footer-links-title, #footer .footer-share-title { color: var(--tb-ink) !important; }

/* legacy ad / partner blocks */
.hrad { display: none !important; }
.useful-links {
    border: 1px solid rgba(42,36,32,0.08) !important;
    background: var(--tb-cream-2) !important;
    border-radius: 24px !important;
    padding: 26px 18px !important;
    margin: 2.5em 0 !important;
}
.gold-bg {
    border: 1px solid var(--tb-line-soft) !important;
    background: #fff;
    border-radius: 14px !important;
}
.gold-bg:hover { background: var(--tb-sand) !important; }
.btn-go, .btn.btn-go {
    background: var(--tb-accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 22px !important;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-block;
}
.btn-go:hover, .btn.btn-go:hover { background: var(--tb-accent-dark) !important; }
.use-link, .use-link a { color: var(--tb-accent) !important; }
.email-form { background: var(--tb-sand) !important; border-radius: 18px; }
#bottomMenu {
    margin: 2em 0;
}
#bottomMenu ul { padding: 0; display: flex; gap: 8px; flex-wrap: wrap; list-style: none; justify-content: center; }
#bottomMenu li { list-style: none; }
#bottomMenu a {
    display: inline-flex;
    background: var(--tb-sand);
    color: #5a5147 !important;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 999px;
    text-decoration: none !important;
}
#bottomMenu a:hover { background: var(--tb-accent); color: #fff !important; }

/* legacy hero text must stay light on photo */
.topbg h1, .top-bg-text h1, .top-bg-text, .topbgInner h1, #topbgText {
    color: #fff !important;
}

/* generic images */
.img-responsive { border-radius: 14px; }

/* readmore link */
.readmore { border-top: 2px solid var(--tb-line) !important; color: var(--tb-accent) !important; }

@media (max-width: 760px) {
    .tb-section, .tb-hero-wrap, .tb-crumbbar { padding-left: 16px; padding-right: 16px; }
    .tb-crumbbar { margin-top: 18px; margin-bottom: -18px; font-size: 12px; }
    .tb-hero-inner { padding: 20px; }
    .tb-hero--city { height: 300px; min-height: 300px; }
    .tb-hero--city .tb-hero-bg { animation: none; }
    .tb-hero-bg--mobile {
        background-image: var(--tb-mobile-hero) !important;
        background-position: 50% 55%;
    }
    .tb-hero .tb-crumb { display: none; }
    /* ссылки-города переносим по строкам: в скрытую горизонтальную прокрутку их не замечали */
    .tb-hero-links { flex-wrap: wrap; overflow: visible; padding: 2px 2px 2px 0; gap: 8px; }
    .tb-hero-links > a { flex: 0 1 auto; white-space: normal; }
}

/* legacy share strip (dark bar) — not part of the new design */
#social-new { display: none !important; }

/* ============================================================
   PARTNER PROMO (template/banner-970-90.php)
   ============================================================ */
.tb-promo-wrap {
    max-width: 1240px;
    margin: 56px auto 0;
    padding: 0 32px;
}
.tb-section .tb-promo-wrap, .container .tb-promo-wrap {
    max-width: none;
    margin: 36px 0 0;
    padding: 0;
}
.tb-promo {
    background: var(--tb-sand);
    border-radius: 24px;
    padding: clamp(22px, 3vw, 32px);
    text-align: left;
}
.tb-promo-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}
.tb-promo-head h2 {
    font-size: clamp(20px, 2.4vw, 24px);
    margin: 0;
}
.tb-promo-head .ad {
    color: var(--tb-faint);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.tb-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.tb-promo-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--tb-line-soft);
    border-radius: 16px;
    padding: 18px 20px;
    text-decoration: none !important;
    transition: transform .15s, box-shadow .15s;
}
.tb-promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -18px rgba(42,36,32,0.45);
}
.tb-promo-card .ic { font-size: 22px; line-height: 1; margin-bottom: 2px; }
.tb-promo-card .tt { font-weight: 700; font-size: 15.5px; color: var(--tb-ink); line-height: 1.35; }
.tb-promo-card .tt span { color: var(--tb-accent); }
.tb-promo-card p { margin: 0; color: var(--tb-muted); font-size: 13.5px; line-height: 1.5; flex: 1; }
.tb-promo-card .go {
    display: block;
    text-align: center;
    background: var(--tb-accent);
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    padding: 13px 18px;
    border-radius: 12px;
    margin-top: 12px;
    transition: background .15s;
}
.tb-promo-card:hover .go { background: var(--tb-accent-dark); }
.tb-promo-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.tb-promo-foot p { margin: 0; color: #5a5147; font-size: 14px; line-height: 1.5; max-width: 680px; }
@media (max-width: 900px) {
    .tb-promo-grid { grid-template-columns: 1fr; }
    .tb-promo-wrap { padding: 0 16px; }
}

/* ============================================================
   USEFUL page (category-useful.php)
   ============================================================ */
.tb-svcgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.tb-svc {
    background: #fff;
    border: 1px solid var(--tb-line-soft);
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 8px 22px -18px rgba(42,36,32,0.3);
}
.tb-svc h3 {
    font-size: 19px;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.tb-svc h3 a { color: var(--tb-ink); text-decoration: none; }
.tb-svc h3 a:hover { color: var(--tb-accent); }
.tb-svc p { margin: 0; color: var(--tb-muted); font-size: 14.5px; line-height: 1.55; }
.tb-svc--minor { background: var(--tb-cream-2); box-shadow: none; }
.tb-svc--minor h3 { font-size: 16.5px; }
.tb-svc--minor p { font-size: 13.5px; }
.tb-svc .bdg {
    display: inline-block;
    background: var(--tb-green-bg);
    color: var(--tb-green-text);
    font-family: var(--tb-sans);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

/* ============================================================
   CATEGORY / REGION PAGES (2026-07-18)
   ============================================================ */

/* --- country card (continent pages) --- */
.tb-countrycard {
    background: #fff;
    border: 1px solid var(--tb-line-soft);
    border-radius: 20px;
    padding: 20px 22px 18px;
    box-shadow: 0 10px 28px -22px rgba(42,36,32,0.35);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tb-countrycard .hd {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tb-countrycard .hd img.flag {
    width: 36px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(42,36,32,0.25);
    flex: none;
    margin: 0;
}
.tb-countrycard .hd .noflag {
    width: 36px;
    height: 26px;
    border-radius: 5px;
    background: var(--tb-sand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex: none;
}
.tb-countrycard .hd a.cname {
    font-family: var(--tb-serif);
    font-weight: 600;
    font-size: 20px;
    color: var(--tb-ink) !important;
    text-decoration: none !important;
    line-height: 1.2;
}
.tb-countrycard .hd a.cname:hover { color: var(--tb-accent) !important; }
.tb-countrycard .cities {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.tb-countrycard .cities .tb-pill { font-size: 12.5px; padding: 6px 12px; }
.tb-countrycard .cities .tb-pill:hover { background: #EFE2CE; color: var(--tb-accent-dark); }

/* --- world index: city columns per region --- */
.tb-georegion { margin-top: 34px; }
.tb-georegion .rg-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--tb-line);
    padding-bottom: 10px;
    margin-bottom: 16px;
}
.tb-georegion .rg-head a.rg-title {
    font-family: var(--tb-serif);
    font-weight: 600;
    font-size: clamp(22px, 3vw, 28px);
    color: var(--tb-ink) !important;
    text-decoration: none !important;
}
.tb-georegion .rg-head a.rg-title:hover { color: var(--tb-accent) !important; }
.tb-georegion .rg-head .rg-cnt { color: var(--tb-faint); font-size: 13px; font-weight: 600; }
.tb-georegion .rg-head .rg-link {
    margin-left: auto;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--tb-accent) !important;
    text-decoration: none !important;
    white-space: nowrap;
}
.tb-citycols {
    columns: 4 210px;
    column-gap: 28px;
}
.tb-cityitem {
    display: block;
    break-inside: avoid;
    padding: 4.5px 0;
    text-decoration: none !important;
    line-height: 1.3;
}
.tb-cityitem .nm {
    color: var(--tb-text);
    font-weight: 500;
    font-size: 14.5px;
}
.tb-cityitem:hover .nm { color: var(--tb-accent); }
.tb-cityitem .cc {
    color: var(--tb-faint);
    font-size: 12px;
    margin-left: 6px;
    white-space: nowrap;
}
.tb-cityitem--top .nm { font-weight: 800; }
.tb-worldnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

/* --- story cards (blogs: travel-stories, how-to, latam) --- */
.tb-storygrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px 22px;
}
.tb-storycard {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none !important;
    min-width: 0;
}
.tb-storycard .ph {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--tb-sand);
}
.tb-storycard .ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform .5s ease;
    margin: 0;
}
.tb-storycard:hover .ph img { transform: scale(1.045); }
.tb-storycard .tt {
    font-family: var(--tb-serif);
    font-weight: 600;
    font-size: 19px;
    line-height: 1.28;
    color: var(--tb-ink);
}
.tb-storycard:hover .tt { color: var(--tb-accent); }
.tb-storycard .dsc {
    color: var(--tb-muted);
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Latin America special project */
.tb-latam-project {
    max-width: 940px;
    padding: clamp(24px, 4vw, 40px);
    background: linear-gradient(135deg, #fff8ed 0%, #f7ebdc 100%);
    border: 1px solid rgba(137, 77, 42, .14);
    border-radius: 22px;
    box-shadow: 0 16px 34px -30px rgba(72, 39, 23, .55);
}
.tb-section--latam-project { padding-bottom: 28px; }
.tb-latam-project__title {
    max-width: 650px;
    margin: 7px 0 15px;
    color: var(--tb-ink);
    font-family: var(--tb-serif);
    font-size: clamp(25px, 3.2vw, 36px);
    font-weight: 600;
    line-height: 1.14;
}
.tb-latam-project__lead,
.tb-latam-project__copy {
    max-width: 760px;
    margin: 0;
    color: var(--tb-body);
    font-size: 16px;
    line-height: 1.65;
}
.tb-latam-project__copy { margin-top: 12px; }
.tb-latam-project__topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}
.tb-latam-project__topics span {
    padding: 6px 10px;
    border: 1px solid rgba(137, 77, 42, .16);
    border-radius: 999px;
    background: rgba(255,255,255,.55);
    color: #7d472c;
    font-size: 12px;
    font-weight: 700;
}
.tb-latam-context {
    display: flex;
    max-width: 860px;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    border-left: 3px solid var(--tb-accent);
    border-radius: 0 14px 14px 0;
    background: var(--tb-sand-2);
}
.tb-latam-context__icon { flex: 0 0 auto; font-size: 22px; line-height: 1.2; }
.tb-latam-context__title {
    margin-bottom: 5px;
    color: var(--tb-ink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}
.tb-latam-context p {
    margin: 0;
    color: var(--tb-body);
    font-size: 15px;
    line-height: 1.58;
}
@media (max-width: 600px) {
    .tb-latam-project { border-radius: 16px; }
    .tb-latam-context { padding: 15px 16px; gap: 11px; }
}
.tb-storyfeature {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 28px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--tb-line-soft);
    border-radius: 24px;
    box-shadow: 0 14px 34px -24px rgba(42,36,32,0.4);
    overflow: hidden;
    margin-bottom: 40px;
}
.tb-storyfeature .ph { min-height: 320px; height: 100%; }
.tb-storyfeature .ph img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.tb-storyfeature .bd { padding: 30px 34px 30px 6px; }
.tb-storyfeature .bd .tt {
    font-family: var(--tb-serif);
    font-weight: 600;
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.2;
    color: var(--tb-ink);
    display: block;
    text-decoration: none !important;
    margin-bottom: 12px;
}
.tb-storyfeature .bd .tt:hover { color: var(--tb-accent); }
.tb-storyfeature .bd .dsc { color: var(--tb-body); font-size: 15px; line-height: 1.6; }
@media (max-width: 860px) {
    .tb-storyfeature { grid-template-columns: 1fr; }
    .tb-storyfeature .ph { min-height: 220px; }
    .tb-storyfeature .bd { padding: 4px 22px 24px; }
}

/* --- travel stories index --- */
.tb-stories-hero .tb-hero-bg { background-position: 50% 55%; }
.tb-stories-page { max-width: 1180px; }
.tb-stories-page .tb-sechead { margin-bottom: 22px; }
.tb-stories-page .tb-sub { max-width: 590px; margin: 0; }
.tb-stories-citynav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 34px;
    padding: 15px 18px;
    background: var(--tb-sand-2);
    border: 1px solid rgba(42,36,32,0.05);
    border-radius: 16px;
}
.tb-stories-citynav-label {
    flex: 0 0 auto;
    color: var(--tb-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .065em;
    text-transform: uppercase;
}
.tb-stories-citynav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.tb-stories-citynav .tb-pill { background: #fff; border: 1px solid var(--tb-line-soft); }
.tb-storyfeature--report { margin-bottom: 48px; }
.tb-storyfeature--report .bd { padding: 36px 42px 36px 4px; }
.tb-storyfeature--report .bd .dsc { max-width: 420px; font-size: 16px; line-height: 1.68; }
.tb-storygrid--reports { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 38px 22px; }
.tb-storygrid--reports .tb-storycard { gap: 9px; }
.tb-storycard-kicker {
    color: var(--tb-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1;
    text-transform: uppercase;
}
.tb-storygrid--reports .tb-storycard .tt { font-size: 20px; line-height: 1.23; }
.tb-storygrid--reports .tb-storycard .dsc { font-size: 14px; line-height: 1.6; }
.tb-stories-manifesto { max-width: 980px; }
.tb-stories-manifesto .tb-card { padding: clamp(28px, 4vw, 48px); }
.tb-stories-manifesto #page-description { max-width: 760px !important; }
.tb-stories-manifesto #page-description p { font-size: clamp(17px, 2vw, 19px); line-height: 1.72; }
@media (max-width: 700px) {
    .tb-stories-citynav { display: block; padding: 14px; }
    .tb-stories-citynav-label { display: block; margin: 0 0 10px 3px; }
    .tb-stories-citynav-links { flex-wrap: nowrap; overflow-x: auto; padding: 0 2px 3px; }
    .tb-stories-citynav .tb-pill { flex: 0 0 auto; }
    .tb-storyfeature--report { margin-bottom: 34px; }
    .tb-storyfeature--report .bd { padding: 5px 22px 26px; }
    .tb-storygrid--reports { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
    .tb-storygrid--reports .tb-storycard .tt { font-size: 18px; }
}
@media (max-width: 430px) {
    .tb-storygrid--reports { grid-template-columns: 1fr; }
}

/* --- price ranking (prices index) --- */
.tb-rankgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.tb-rankcard {
    background: #fff;
    border: 1px solid var(--tb-line-soft);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 10px 26px -22px rgba(42,36,32,0.35);
}
.tb-rankcard .city { font-weight: 700; font-size: 15px; }
.tb-rankcard .city a { color: var(--tb-ink) !important; text-decoration: none !important; border-bottom: 1px dashed var(--tb-line); }
.tb-rankcard .city a:hover { color: var(--tb-accent) !important; border-color: var(--tb-accent-soft); }
.tb-rankcard .val {
    font-family: var(--tb-serif);
    font-weight: 700;
    font-size: 26px;
    color: var(--tb-accent-dark);
    margin: 6px 0 2px;
}
.tb-rankcard .val small { font-size: 14px; color: var(--tb-muted); font-weight: 600; font-family: var(--tb-sans); }
.tb-rankcard .min { color: var(--tb-faint); font-size: 12.5px; }
.tb-rankmore { margin-top: 14px; }
.tb-rankmore summary {
    cursor: pointer;
    color: var(--tb-accent);
    font-weight: 700;
    font-size: 14px;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tb-rankmore summary::-webkit-details-marker { display: none; }
.tb-rankmore summary::after { content: "↓"; transition: transform .25s; }
.tb-rankmore[open] summary::after { transform: rotate(180deg); }
.tb-rankmore .tb-rankgrid { margin-top: 14px; }
.tb-rankmore .tb-rankcard { box-shadow: none; background: var(--tb-cream-2); }

/* --- pagination --- */
.tb-pager { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 6px; }
.tb-pager a {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--tb-line);
    color: var(--tb-text) !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
}
.tb-pager a:hover { border-color: var(--tb-accent-soft); color: var(--tb-accent) !important; }
.tb-pager a.on { background: var(--tb-ink); border-color: var(--tb-ink); color: #fff !important; }

/* --- filter chips (vacation finder) --- */
.tb-filters .grp { margin-bottom: 22px; }
.tb-filters .grp-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--tb-label);
    margin-bottom: 10px;
}
.tb-filters .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-filters label.chip {
    cursor: pointer;
    user-select: none;
    background: #fff;
    border: 1px solid var(--tb-line);
    color: var(--tb-text);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 999px;
    margin: 0;
    transition: all .15s ease;
}
.tb-filters label.chip:hover { border-color: var(--tb-accent-soft); color: var(--tb-accent-dark); }
.tb-filters label.chip input { display: none; }
.tb-filters label.chip.active {
    background: var(--tb-ink);
    border-color: var(--tb-ink);
    color: #fff;
}
#results .index-popular-item { min-height: 0; }

/* --- legacy result cards reskin (finder / russia city grid) --- */
.tb-mutecard {
    background: var(--tb-cream-2);
    border-radius: 18px;
    padding: 20px;
}

/* --- finder results (API injects legacy bootstrap markup) --- */
#results .container { width: 100%; padding: 0; }
#results .row { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px 16px; margin: 0; }
#results .row::before, #results .row::after { content: none; }
#results [class*="col-"] { width: 100%; float: none; padding: 0; min-height: 0; }
#results .index-popular-item { min-height: 0; }
#results .index-popular-name {
    display: block;
    border: none !important;
    text-decoration: none !important;
    color: var(--tb-ink) !important;
}
#results .index-popular-name img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}
#results .index-popular-name div {
    font-family: var(--tb-serif);
    font-weight: 600;
    font-size: 17px;
    padding: 10px 2px 0;
    text-align: left;
}
#results .index-popular-name:hover div { color: var(--tb-accent); }
#no-results { color: var(--tb-muted); font-size: 16px; margin: 1.5em 0; }

/* --- prices index --- */
.tb-rankhead span { color: var(--tb-accent); }

/* --- useful: CTA buttons in service cards --- */
.tb-svc { display: flex; flex-direction: column; }
.tb-svc p { flex: 1; }
.tb-svc .tb-btn {
    margin-top: 14px;
    align-self: flex-start;
    padding: 10px 18px;
    font-size: 14px;
}
.tb-svc--minor .tb-btn {
    background: transparent;
    color: var(--tb-accent) !important;
    border: 1.5px solid var(--tb-accent-soft);
}
.tb-svc--minor .tb-btn:hover { background: var(--tb-accent); color: #fff !important; }

/* --- russia regions (russia -> region -> city) --- */
.tb-sightlist { display: flex; flex-direction: column; gap: 14px; max-width: 900px; }
.tb-sight {
    display: flex;
    gap: 18px;
    background: #fff;
    border: 1px solid var(--tb-line-soft);
    border-radius: 20px;
    padding: 22px 24px;
    box-shadow: 0 10px 26px -22px rgba(42,36,32,0.35);
}
.tb-sight .num {
    font-family: var(--tb-serif);
    font-weight: 700;
    font-size: 26px;
    color: var(--tb-accent);
    line-height: 1;
    min-width: 40px;
    padding-top: 3px;
}
.tb-sight h3 { font-size: 19px; font-weight: 700; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tb-sight .where {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--tb-green, #5F6E4E);
    background: rgba(95,110,78,0.1);
    border-radius: 999px;
    padding: 4px 10px;
    white-space: nowrap;
}
.tb-sight p { color: var(--tb-muted); font-size: 14.5px; line-height: 1.62; margin: 0; }
.tb-sight .how { margin-top: 8px; font-size: 13.5px; color: var(--tb-ink); background: var(--tb-cream-2); border-radius: 12px; padding: 8px 12px; display: inline-block; }
.tb-sight .how b { font-weight: 700; }

.tb-dish .pr {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--tb-accent);
    background: rgba(193,97,59,0.09);
    border-radius: 999px;
    padding: 4px 10px;
}

.tb-routegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; align-items: start; }
.tb-routecard {
    background: var(--tb-sand);
    border: 1px solid rgba(42,36,32,0.05);
    border-radius: 22px;
    padding: 26px;
}
.tb-routecard .days {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tb-accent);
    margin-bottom: 8px;
}
.tb-routecard h3 { font-family: var(--tb-serif); font-size: 21px; font-weight: 600; margin: 0 0 8px; }
.tb-routecard > p { color: var(--tb-muted); font-size: 14px; line-height: 1.6; margin: 0 0 14px; }
.tb-routecard .stop {
    display: flex;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px dashed rgba(42,36,32,0.14);
    font-size: 14px;
    line-height: 1.5;
}
.tb-routecard .stop .d {
    font-weight: 700;
    color: var(--tb-ink);
    white-space: nowrap;
    min-width: 74px;
}
.tb-routecard .stop .t { color: var(--tb-muted); }

.tb-seasongrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.tb-season {
    background: #fff;
    border: 1px solid var(--tb-line-soft);
    border-radius: 20px;
    padding: 22px;
}
.tb-season.best { background: var(--tb-green, #5F6E4E); border-color: transparent; }
.tb-season.best h4, .tb-season.best .mo { color: #FAF6EF; }
.tb-season.best p { color: rgba(250,246,239,0.75); }
.tb-season .mo {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tb-accent);
    margin-bottom: 6px;
}
.tb-season h4 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.tb-season p { color: var(--tb-muted); font-size: 13.5px; line-height: 1.55; margin: 0; }
.tb-season .best-badge { float: right; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; background: rgba(250,246,239,0.18); color: #FAF6EF; border-radius: 999px; padding: 3px 9px; }

/* карточка города без фото — градиент с эмодзи */
.tb-photocard.noimg { background: linear-gradient(140deg, #5F6E4E 0%, #3E4A33 100%); display: block; position: relative; }
.tb-photocard.noimg .bigemoji {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 42px;
    opacity: 0.9;
}
.tb-photocard .guide-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(250,246,239,0.92);
    color: var(--tb-ink);
    border-radius: 999px;
    padding: 5px 11px;
}
@media (max-width: 760px) {
    .tb-sight { flex-direction: column; gap: 8px; padding: 20px; }
    .tb-sight .num { min-width: 0; }
}

/* ---------- карточки регионов России (/russia/) ---------- */
.tb-reggrid { display: grid; gap: 16px; }
.tb-regcard {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    background: var(--tb-cream);
    border: 1px solid rgba(42,36,32,0.08);
    border-radius: 22px;
    overflow: hidden;
}
.tb-regcard .ph { display: block; position: relative; min-height: 190px; }
.tb-regcard .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-regcard .bd { padding: 22px 24px; display: flex; flex-direction: column; align-items: flex-start; }
.tb-regcard h3 { font-family: var(--tb-serif); font-size: 23px; font-weight: 700; margin: 0 0 6px; line-height: 1.2; }
.tb-regcard h3 a { color: var(--tb-ink) !important; text-decoration: none !important; }
.tb-regcard h3 a:hover { color: var(--tb-accent) !important; }
.tb-regcard .ds { color: var(--tb-muted); font-size: 14.5px; line-height: 1.55; margin: 0 0 10px; }
.tb-regcard .mt { font-size: 12.5px; font-weight: 600; color: var(--tb-green-text); margin-bottom: 14px; }
.tb-regcard .go {
    margin-top: auto;
    padding-top: 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--tb-accent) !important;
    text-decoration: none !important;
}
.tb-regcities { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-regcities a {
    flex: 1 1 0;
    min-width: 120px;
    text-align: center;
    padding: 10px 12px;
    border: 1px solid rgba(42,36,32,0.12);
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--tb-ink) !important;
    text-decoration: none !important;
    transition: border-color .15s ease, color .15s ease;
}
.tb-regcities a:hover { border-color: var(--tb-accent); color: var(--tb-accent) !important; }

/* раскрывающийся блок «показать ещё» */
details.tb-more { margin-top: 12px; width: 100%; }
details.tb-more > summary {
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid rgba(42,36,32,0.2);
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--tb-green-text);
    transition: border-color .15s ease, color .15s ease;
}
details.tb-more > summary:hover { border-color: var(--tb-accent); color: var(--tb-accent); }
details.tb-more > summary::-webkit-details-marker { display: none; }
details.tb-more > summary::after { content: "▾"; font-size: 11px; transition: transform .2s ease; }
details.tb-more[open] > summary::after { transform: rotate(180deg); }

@media (max-width: 760px) {
    .tb-regcard { grid-template-columns: 1fr; }
    .tb-regcard .ph { min-height: 160px; aspect-ratio: 16/9; }
    .tb-regcard .bd { padding: 18px; }
    .tb-regcities { flex-direction: column; }
    .tb-regcities a { text-align: left; }
}

/* города региона: 3 в ряд на десктопе, друг под другом на мобильном */
.tb-citycards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tb-lede { font-size: clamp(17px,2vw,20px); line-height: 1.5; color: var(--tb-ink); max-width: 760px; margin: 10px 0 0; }
@media (max-width: 900px) { .tb-citycards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tb-citycards { grid-template-columns: 1fr; } }

/* топ-9 городов: две линии (5+4) на десктопе, слайдер на мобильном */
.tb-citygrid9 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1080px) { .tb-citygrid9 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px)  { .tb-citygrid9 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) {
    .tb-citygrid9 {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* вытягиваем слайдер на всю ширину экрана, за поля секции */
        margin: 0 -16px;
        padding: 2px 16px 6px;
        /* без scroll-padding снап подтягивает первую карточку под левое поле */
        scroll-padding-left: 16px;
    }
    .tb-citygrid9::-webkit-scrollbar { display: none; }
    .tb-citygrid9 > .tb-photocard {
        flex: 0 0 74%;
        scroll-snap-align: start;
    }
}

/* ---------- блок цен на российских страницах ---------- */
.tb-pricewrap {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    align-items: start;
}
/* без блока «сколько закладывать» меню цен занимает всю ширину */
.tb-pricewrap--solo { grid-template-columns: 1fr; }
/* «сколько закладывать» — тёмная карточка-акцент */
.tb-budget {
    background: var(--tb-ink);
    color: #FAF6EF;
    border-radius: 22px;
    padding: 26px 24px 22px;
    position: sticky;
    top: 96px;
}
.tb-budget .hd {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(250,246,239,0.62);
    margin-bottom: 18px;
}
.tb-budget .hd span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 0.03em;
    text-transform: none;
    font-weight: 600;
    color: rgba(250,246,239,0.42);
}
.tb-budget .tier + .tier {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(250,246,239,0.14);
}
.tb-budget .t {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #E0A183;
}
.tb-budget .v {
    font-family: var(--tb-serif);
    font-size: clamp(27px,3vw,33px);
    font-weight: 700;
    line-height: 1.1;
    margin: 3px 0 5px;
    letter-spacing: -0.01em;
}
.tb-budget .d { font-size: 12.5px; line-height: 1.5; color: rgba(250,246,239,0.66); }

/* «меню» цен с выносными точками */
.tb-pricemenu {
    background: var(--tb-cream);
    border: 1px solid rgba(42,36,32,0.08);
    border-radius: 22px;
    padding: clamp(22px,3vw,34px) clamp(20px,3vw,34px);
}
.tb-pricemenu .grp + .grp { margin-top: 26px; }
.tb-pricemenu .grp h3 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tb-accent);
    margin: 0 0 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(42,36,32,0.12);
}
.tb-pricemenu .row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 0;
}
.tb-pricemenu .row + .row { border-top: 1px solid rgba(42,36,32,0.06); }
.tb-pricemenu .nm {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--tb-ink);
    flex: 0 1 auto;
}
.tb-pricemenu .nm i { font-style: normal; margin-right: 7px; }
.tb-pricemenu .nm em {
    display: block;
    font-style: normal;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--tb-muted);
    margin-top: 2px;
}
.tb-pricemenu .dots {
    flex: 1 1 auto;
    min-width: 18px;
    align-self: flex-start;
    margin-top: 11px;
    border-bottom: 1.5px dotted rgba(42,36,32,0.28);
}
.tb-pricemenu .vl {
    font-family: var(--tb-serif);
    font-size: clamp(18px,2vw,21px);
    font-weight: 700;
    color: var(--tb-ink);
    white-space: nowrap;
    letter-spacing: -0.01em;
    flex: 0 0 auto;
}
.tb-pricemenu .note {
    margin: 22px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(42,36,32,0.1);
    font-size: 13px;
    line-height: 1.6;
    color: var(--tb-muted);
}

@media (max-width: 980px) {
    .tb-pricewrap { grid-template-columns: 1fr; gap: 18px; }
    .tb-budget { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .tb-budget .hd { grid-column: 1 / -1; margin-bottom: 2px; }
    .tb-budget .tier + .tier { margin-top: 0; padding-top: 0; border-top: 0; border-left: 1px solid rgba(250,246,239,0.14); padding-left: 18px; }
}
@media (max-width: 620px) {
    .tb-budget { grid-template-columns: 1fr; gap: 14px; }
    .tb-budget .tier + .tier { padding-left: 0; border-left: 0; padding-top: 14px; border-top: 1px solid rgba(250,246,239,0.14); }
    /* на узком экране выносные точки только мешают — цена уходит вправо отдельной колонкой */
    .tb-pricemenu .row { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline; }
    .tb-pricemenu .dots { display: none; }
    /* колонки задаём явно: в легаси-бандле у .vl свой order, и авторазмещение переворачивает пару */
    .tb-pricemenu .nm { grid-column: 1; grid-row: 1; font-size: 14.5px; }
    .tb-pricemenu .vl { grid-column: 2; grid-row: 1; font-size: 17px; text-align: right; }
}

/* «Подробнее» под лидом — заметная акцентная кнопка */
details.tb-more--accent { margin-top: 14px; }
details.tb-more--accent > summary {
    background: var(--tb-accent);
    border-color: var(--tb-accent);
    color: #FFF6F0 !important;
}
details.tb-more--accent > summary:hover {
    background: #a94f2d;
    border-color: #a94f2d;
    color: #FFF6F0 !important;
}

/* ---------- регионы и направления без фотографии ---------- */
/* фото есть далеко не у всех регионов: вместо пустого героя — фирменный градиент с эмодзи */
.tb-hero-bg--grad {
    background: linear-gradient(140deg, #3E4A33 0%, #5F6E4E 45%, #7A5138 100%);
    animation: none;
}
.tb-hero-bg--grad .wm {
    position: absolute;
    right: clamp(-10px, 2vw, 40px);
    bottom: -18px;
    font-size: clamp(150px, 26vw, 300px);
    line-height: 1;
    opacity: 0.16;
    pointer-events: none;
    user-select: none;
}
.tb-regcard .ph.noimg {
    background: linear-gradient(140deg, #5F6E4E 0%, #3E4A33 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tb-regcard .ph.noimg .bigemoji { font-size: 62px; opacity: 0.92; }

/* ---------- сквозные направления на /russia/ ---------- */
.tb-dirgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.tb-dircard {
    display: flex;
    flex-direction: column;
    padding: 24px 24px 22px;
    border-radius: 22px;
    background: linear-gradient(150deg, #2F3A28 0%, #46503A 100%);
    color: #FAF6EF;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
}
.tb-dircard:hover { transform: translateY(-3px); }
.tb-dircard { transition: transform .25s ease; }
.tb-dircard .ic { font-size: 34px; line-height: 1; margin-bottom: 12px; }
.tb-dircard h3 {
    font-family: var(--tb-serif);
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.2;
    color: #FAF6EF !important;
}
.tb-dircard p { font-size: 14px; line-height: 1.55; margin: 0 0 14px; color: rgba(250,246,239,0.82); }
.tb-dircard .rg {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(250,246,239,0.62);
    margin-bottom: 14px;
}
.tb-dircard .go {
    margin-top: auto;
    font-size: 14px;
    font-weight: 700;
    color: #F0B48C !important;
    text-decoration: none !important;
}

/* на узком экране шесть регионов в шапке разъезжаются в столбик — оставляем три и ссылку «Все» */
@media (max-width: 680px) {
    .tb-hero-links--regions a:nth-of-type(n+4):not(:last-child) { display: none; }
}

/* ---------- подписи к фото из Wikimedia Commons ---------- */
/* в геро — поверх затемнения, мелко и ненавязчиво */
.tb-hero-credit {
    position: absolute;
    right: 14px;
    bottom: 10px;
    z-index: 3;
    font-size: 11px;
    line-height: 1.3;
    color: rgba(255,255,255,0.55);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    max-width: 60%;
    text-align: right;
    pointer-events: none;
}
@media (max-width: 680px) { .tb-hero-credit { max-width: 90%; font-size: 10px; } }
/* под сетками карточек — одной строкой на всех авторов сразу */
.tb-photocredits {
    margin-top: 14px;
    font-size: 11.5px;
    line-height: 1.5;
    color: rgba(42,36,32,0.42);
}
