/* Базовые стили и переменные */
/* Шрифты Caveat/Work Sans подключаются в HTML (preload + link), не дублировать через @import */

/* Глобальные стили и сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Единый layout: header + скроллируемый контент + футер на всех страницах (главная и внутренние гайды) */
html {
    height: 100%;
}

:root {
    /* Цветовая палитра */
    --primary-color: #0C73FE;
    --primary-hover: #0A63DB;
    --secondary-color: #64748b;
    --accent-color: #0b84fe;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    /* Нейтральные цвета */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;

    /* Хлебные крошки - общий компонент (чуть приглушённее серый) */
    --breadcrumb-color: #8b95a1;
    --breadcrumb-color-hover: #6b7380;
    --breadcrumb-separator-color: #b8c0c9;
    --breadcrumb-current-color: #5c6370;
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.1), 0 2px 4px -2px rgb(15 23 42 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.1), 0 4px 6px -4px rgb(15 23 42 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(15 23 42 / 0.1), 0 8px 10px -6px rgb(15 23 42 / 0.1);
    
    /* Размеры и отступы */
    --sidebar-width: 320px;
    --header-height: 80px;
    --site-header-height: 88px;
    /* Под первой строкой шапки (лого/кнопки): блок «Гайды | Сервисы». Только на экранах <1280px, где табы не скрыты. */
    --site-header-tabs-height: 68px;
    --site-header-blue: #0C73FE;
    --site-header-blue-badge: #0C73FE;
    --site-cta: #FA742D;
    --site-cta-hover: #E86824;
    /* Единый нейтральный scrollbar (Chrome/Safari/Firefox) */
    --scrollbar-thumb: rgba(113, 113, 122, 0.42);
    --scrollbar-thumb-hover: rgba(82, 82, 91, 0.68);
    --site-header-border: #CCCCCC;
    --site-header-text: #1A1A1A;
    --content-gutter: 2rem; /* отступ сетки контента по горизонтали */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    /* Скругление фото в карточках новостей, сетке статей и главном изображении */
    --news-img-radius: 24px;
    --news-card-img-height: 220px; /* единая высота картинок в карточках слева и справа */
    
    /* Типографика */
    --font-family: 'Onest Variable', 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Source Serif 4 - редакционный magazine-serif для H1/H2 (кириллица + латиница) */
    --font-serif: var(--font-heading), 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;    /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;     /* 20px */
    --font-size-2xl: 1.5rem;     /* 24px */
    --font-size-3xl: 1.875rem;   /* 30px */
    --font-size-display: 2.125rem; /* 34px - крупные заголовки */
    --line-height-tight: 1.25;
    --line-height-snug: 1.35;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.01em;
    
    /* Переходы */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    /* Кнопки: плавный переход без подъёма */
    --btn-transition: filter var(--transition-fast);
    /* Блок поддержки: единая высота полей */
    --support-field-height: 48px;
}

/* Временное скрытие элемента (например карточки статьи) - убрать класс, чтобы показать */
.is-hidden {
    display: none !important;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    letter-spacing: var(--letter-spacing-normal);
    color: var(--text-primary);
    background-color: #F1F1F2;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}
/* Гипотеза 6: при открытой модалке калькулятора - body фиксирован, прокрутка документа заблокирована */
body.site-calc-body-lock {
    overflow: hidden;
}

/*
 * Не задаём scrollbar-* глобально на * - иначе Chrome рисует системный трек
 * на .content-area до/поверх overlay. Скролл .content-area - только overlay-пилюля.
 */

/* Фокус у инпутов - синий, как у кнопки */
input:focus,
input:focus-visible,
textarea:focus,
textarea:focus-visible {
    outline: 2px solid var(--site-header-blue);
    outline-offset: 2px;
}

/* Шапка: прижата к верху, без тени и линии - тень только у scroll-header при скролле */
.site-header,
.site-header.is-scrolled,
.site-header-inner {
    box-shadow: none !important;
    border: none !important;
    border-bottom: none !important;
}
.site-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    flex: none;
    height: var(--site-header-height);
    margin: 0;
    width: min(1016px, calc(100vw - 24px));
    max-width: 1016px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 calc(var(--content-gutter) - 4px);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.site-header.is-scrolled {
    background-color: #F1F1F2;
}

/* Когда виден скролл-хедер - основной хедер скрыт, чтобы не было двух полос */
.site-header.is-hidden-by-scroll {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Скролл-хедер: тень только когда виден, иначе линия/тень не просачивается */
.scroll-header {
    position: fixed;
    top: env(safe-area-inset-top, 0px);
    left: 50%;
    transform: translate(-50%, -100%);
    z-index: 1001;
    width: min(1016px, calc(100vw - 48px));
    max-width: 1016px;
    margin: 0;
    padding: 0 calc(var(--content-gutter) - 4px);
    height: var(--site-header-height);
    background-color: #F1F1F2;
    box-shadow: none;
    border-radius: 0 0 24px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.scroll-header.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Когда меню открыто - в скролл-хедере показывать иконку «закрыть» */
.site-header.is-nav-open ~ .scroll-header .site-nav-toggle .site-nav-toggle-close {
    display: block;
}
.site-header.is-nav-open ~ .scroll-header .site-nav-toggle .site-nav-toggle-open {
    display: none;
}

.scroll-header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: none;
    height: var(--site-header-height);
    padding: 0;
}

.site-header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: none;
    height: var(--site-header-height);
    padding: 0;
}

/* Блок «Язык» внутри мобильного меню - на десктопе скрыт */
.site-header-mobile-lang {
    display: none;
}

/* Блок «Выбрать страну» внутри мобильного меню - на десктопе скрыт */
.site-header-mobile-cta {
    display: none;
}

/* Табы навигации: mobile-first - видны по умолчанию, скрыты на десктопе (min-width) */
.site-header-tabs-wrap {
    width: 100%;
    margin-top: 12px;
    padding: 0 max(12px, env(safe-area-inset-left)) 16px max(12px, env(safe-area-inset-right));
    box-sizing: border-box;
}

/* Фон табов только в scroll-header (при скролле) + паддинг снизу как слева/справа */
.scroll-header .site-header-tabs-wrap {
    background-color: #F1F1F2;
    padding-bottom: calc(var(--content-gutter) - 4px);
}
.site-header-tabs-line {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
}
.site-header-tabs {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: stretch;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}
.site-header-tabs-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    height: 44px;
    border: none;
    border-radius: 9999px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--site-header-text);
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.site-header-tabs-item:hover {
    background: var(--bg-secondary);
    color: var(--site-header-text);
    text-decoration: none;
}
.site-header-tabs-item.is-active {
    background: var(--bg-secondary);
}
.site-header[data-current="services"] .site-header-tabs-item:first-child,
.scroll-header[data-current="services"] .site-header-tabs-item:first-child {
    background: transparent;
}

/* Десктоп: табы скрыты, навигация в header (граница с «планшетной» вёрсткой - 1280px) */
@media (min-width: 1280px) {
    .site-header-tabs-wrap,
    .scroll-header .site-header-tabs-wrap {
        display: none !important;
    }
}

/* Левая колонка: лого прижат к левому краю, колонка равной ширины с правой - для центрирования навигации */
/* Логотип скрыт до загрузки Caveat/SN Pro/Onest, чтобы не было дергания при смене шрифта */
/* Лого в шапке: базовая высота «Travel» 41px → 33px (-8px), остальное × 33/41 */
.site-logo {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    height: 33px;
    order: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    padding: 0;
    text-decoration: none;
    visibility: hidden;
    overflow: visible;
}
body.fonts-loaded .site-logo {
    visibility: visible;
}
.site-logo-trevel,
.site-logo-guide {
    padding: 0;
    text-decoration: none;
}

.site-logo-guide {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
}

.site-logo:hover {
    text-decoration: none;
}

/* Единый wordmark: весь бренд набран тем же Caveat, что раньше использовался для guide. */
.site-logo-word {
    display: block;
    flex: 0 0 auto;
    max-width: 100%;
    overflow: visible;
    color: #1A1A1A;
    font-family: "Caveat", "Kalam", cursive;
    font-size: 42px;
    font-size-adjust: from-font;
    font-style: normal;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 0.82;
    white-space: nowrap;
    transition: color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.site-logo:hover .site-logo-word {
    color: var(--site-header-blue);
}

.site-logo:hover .site-logo-trevel,
.site-logo:hover .site-logo-t,
.site-logo:hover .site-logo-ravel,
.site-logo:hover .site-logo-guide {
    color: #1A1A1A;
    color: color(display-p3 0.102 0.102 0.102);
}

.site-logo:hover .site-logo-guide {
    color: var(--site-header-blue);
}

/*
 * Логотип: Travel - SN Pro; guide - Caveat SemiBold 600.
 */
.site-logo-trevel {
    position: relative;
    width: auto;
    min-width: 0;
    height: auto;
    flex: 0 0 auto;
    order: 0;
    overflow: visible;
    display: flex;
    align-items: center;
    margin: 0 2px 0 0;
    padding: 0;
    font-family: "SN Pro Variable", "SN Pro", var(--font-family), system-ui, sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: calc((1.75rem + 26px) * 33 / 41 - 18px);
    line-height: 1;
    letter-spacing: -0.07em;
    color: #1A1A1A;
    white-space: nowrap;
}

.site-logo-t,
.site-logo-ravel {
    display: none;
}

/* guide - Caveat: CSS px ≠ оптический размер (маленькая x-height) → ~1.35× Travel */
.site-logo-guide {
    width: auto;
    min-width: 0;
    height: auto;
    flex: 0 0 auto;
    order: 1;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    transform: translate(-0.06px, -0.08em);
    font-family: "Caveat", "Kalam", cursive;
    font-style: normal;
    font-weight: 700;
    font-size: calc(((1.75rem + 26px) * 33 / 41 - 18px) * 1.35 + 8px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--site-header-blue);
}

/* Загрузчик: белый фон, чёрный логотип по центру, плавная «пропись» букв (stagger write-in) */
.site-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    /* blend только внутри лоадера, не с контентом страницы */
    isolation: isolate;
    transition: opacity 0.45s ease-out, visibility 0.45s ease-out;
}
.site-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.site-loader-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}
/*
 * Видео-маска: ролик под fullscreen white + mix-blend:lighten.
 * Маска на весь экран → нет прямоугольной рамки вокруг лого.
 */
.site-loader-video {
    position: absolute;
    left: 50%;
    top: 50%;
    /* Шире лого+вынос Caveat «e», иначе mix-blend обрезает последнюю букву на мобилке */
    width: min(94vw, 28rem);
    height: min(42vw, 7.5rem);
    min-height: 5.25rem;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center 40%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    border: 0;
    outline: none;
}
.site-loader.has-video .site-loader-video {
    opacity: 1;
}
.site-loader-knockout {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}
.site-loader.has-video .site-loader-knockout {
    mix-blend-mode: lighten;
}
.site-loader-logo {
    display: inline-flex;
    align-items: center;
    overflow: visible;
    padding: 0.2em 0.35em 0.28em 0.12em;
}
@media (prefers-reduced-motion: reduce) {
    .site-loader-video {
        display: none !important;
    }
    .site-loader.has-video .site-loader-knockout {
        mix-blend-mode: normal;
    }
}
.site-loader-wordmark {
    display: inline-block;
    overflow: visible;
    color: #000000;
    font-family: "Caveat", "Kalam", cursive;
    font-size: clamp(3.5rem, 12vw, 5.75rem);
    font-size-adjust: from-font;
    font-style: normal;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 0.9;
    white-space: nowrap;
    opacity: 0;
}

.site-loader.is-ready .site-loader-wordmark {
    animation: site-loader-write 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes site-loader-write {
    from {
        opacity: 0;
        transform: translateY(0.28em);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .site-loader-wordmark {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}

/* «Travelguide» в тексте - Travel SN Pro, guide Caveat Medium */
.logo-text-trevel {
    font-family: "SN Pro Variable", "SN Pro", var(--font-family), system-ui, sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: calc(1em + 8px);
    letter-spacing: -0.04em;
    margin-right: 0.2em; /* отступ перед «guide» в заголовках */
    color: inherit;
}

.logo-text-guide {
    font-family: 'Caveat', 'Kalam', cursive;
    font-style: normal;
    font-weight: 700;
    font-size: calc(1em * 1.35);
    letter-spacing: -0.02em;
    color: inherit;
}

/* Кнопка гамбургера: скрыта на десктопе */
.site-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 9999px;
    background: transparent;
    cursor: pointer;
    color: var(--site-header-text);
    outline: none;
}
.site-nav-toggle .site-nav-toggle-close {
    display: none;
}
.site-nav-toggle .site-nav-toggle-open {
    display: block;
}
.site-header.is-nav-open .site-nav-toggle .site-nav-toggle-close,
body.site-mobile-nav-open .site-nav-toggle .site-nav-toggle-close {
    display: block;
}
.site-header.is-nav-open .site-nav-toggle .site-nav-toggle-open,
body.site-mobile-nav-open .site-nav-toggle .site-nav-toggle-open {
    display: none;
}
.site-nav-toggle-icon {
    width: 24px;
    height: 24px;
}

/* Навигация по центру header: ширина по контенту */
.site-nav {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 8px;
    width: auto;
    max-width: 100%;
    height: 48px;
    border-radius: 290px;
    justify-content: center;
}

.site-nav-item {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 16px;
    gap: 4px;
    height: 44px;
    border: none;
    border-radius: 9999px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    letter-spacing: var(--letter-spacing-normal);
    color: var(--site-header-text);
    text-decoration: none;
    transition: var(--btn-transition), background var(--transition-fast), color var(--transition-fast);
    outline: none;
}
.site-nav-item:focus {
    outline: none;
}
.site-nav-item:hover {
    text-decoration: none;
    color: var(--site-header-text);
    background: var(--bg-secondary);
}

.site-nav-item.is-active {
    background: var(--bg-secondary);
}

/* На /services/ - только «Гайды» без выделения */
.site-header[data-current="services"] .site-nav-item-dropdown:first-of-type,
.scroll-header[data-current="services"] .site-nav-item-dropdown:first-of-type {
    background: transparent !important;
}

.site-nav-text {
    display: flex;
    align-items: center;
}

.site-nav-chevron {
    flex-shrink: 0;
}

/* Модалка «Гайды по странам» - анимация как у панели языков (выезд справа) */
.site-nav-dropdown-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.site-nav-dropdown-overlay.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.site-nav-dropdown-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.site-nav-dropdown-panel {
    position: absolute;
    right: 16px;
    top: 16px;
    bottom: 16px;
    z-index: 1;
    width: 90vw;
    max-width: 720px;
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    background: #F1F1F2;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
    transform: translateX(calc(100% + 16px));
    transition: transform 0.3s ease;
}

.site-nav-dropdown-overlay.is-open .site-nav-dropdown-panel {
    transform: translateX(0);
}

/* Калькулятор подбора страны - overlay на всю вьюпорт, панель absolute с фиксированными отступами (без flex) */
.site-calc-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
}
.site-calc-overlay.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}
@supports (height: 100dvh) {
    .site-calc-overlay {
        height: 100dvh;
        max-height: 100dvh;
    }
}
.site-calc-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}
/* Гипотеза 3: обёртка fixed inset:0 без transform - панель absolute, containing block = viewport */
.site-calc-panel-wrap {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
    visibility: hidden;
    height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
}
.site-calc-panel-wrap.is-open {
    visibility: visible;
}
@supports (height: 100dvh) {
    .site-calc-panel-wrap {
        height: 100dvh;
    }
}
.site-calc-panel {
    position: absolute;
    top: 16px;
    right: -100vw;
    bottom: auto;
    left: auto;
    width: min(90vw, 960px);
    height: calc(100% - 32px);
    max-height: calc(100% - 32px);
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #F1F1F2;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
    transition: right 0.3s ease;
    box-sizing: border-box;
    pointer-events: none;
}
.site-calc-panel.is-open {
    right: 16px;
    pointer-events: auto;
}
.site-calc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 20px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.site-calc-title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.25;
    color: #1A1A1A;
    margin: 0;
}
.site-calc-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: #1A1A1A;
    cursor: pointer;
    transition: background 0.2s ease;
}
.site-calc-close:hover {
    background: rgba(0, 0, 0, 0.06);
}
.site-calc-close-icon {
    display: block;
    font-size: 20px;
    line-height: 1;
}
/* Контент под хедером: flex и скролл */
.site-calc-body {
    flex: 1 1 auto;
    min-height: 0;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
}
.site-calc-inner {
    display: flex;
    flex-direction: row;
    min-height: 100%;
    box-sizing: border-box;
}
.site-calc-filters {
    flex: 0 0 38%;
    min-width: 0;
    height: auto;
    align-self: flex-start;
    margin: 24px;
    padding: 24px;
    border-radius: 24px;
    background: #FAFAFA;
    overflow: visible;
    display: flex;
    flex-direction: column;
}
.site-calc-results-col {
    flex: 1 1 0;
    min-width: 0;
    overflow: visible;
    padding: 24px 24px 24px 0;
    min-height: 0;
}
.site-calc-results {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top: none;
    min-height: 0;
}
.site-calc-results-list {
    min-height: 0;
}
/* margin по бокам и сверху; снизу только у блока визы (nth-child(5)), без дублирования */
.site-calc-form {
    margin: 0;
    padding-bottom: 4px;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.site-calc-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* Блок «Требования по визе» - единственный нижний отступ, чтобы доскроллить и не прижимать к краю */
.site-calc-form > .site-calc-field:nth-child(5) {
    margin-bottom: 40px;
}
.site-calc-label {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.35;
    color: #1A1A1A;
}
/* Кастомный select гражданства - как в блоке поддержки */
.site-calc-citizenship-select {
    position: relative;
    width: 100%;
}
.site-calc-citizenship-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: var(--support-field-height);
    padding: 0 16px;
    gap: 8px;
    background: #F1F1F2;
    border: none;
    border-radius: 9999px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    color: #1A1A1A;
    cursor: pointer;
    transition: filter var(--transition-fast);
    box-sizing: border-box;
}
.site-calc-citizenship-trigger:hover {
    filter: brightness(0.97);
}
.site-calc-citizenship-trigger:focus-visible {
    outline: 2px solid var(--site-header-blue);
    outline-offset: 2px;
}
.site-calc-citizenship-text {
    flex: 1;
    text-align: left;
}
.site-calc-citizenship-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}
.site-calc-citizenship-select.is-open .site-calc-citizenship-chevron {
    transform: rotate(180deg);
}
/* Выпадающий список гражданства: ограничение высоты и скролл при большом числе пунктов */
.site-calc-citizenship-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
}
.site-calc-citizenship-select.is-open .site-calc-citizenship-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.site-calc-citizenship-dropdown li {
    padding: 10px 12px;
    border-radius: 12px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    color: #1A1A1A;
    cursor: pointer;
    transition: background var(--transition-fast);
}
.site-calc-citizenship-dropdown li:hover {
    background: #F1F1F2;
}
.site-calc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.site-calc-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 9999px;
    background: #E8E8E8;
    color: #1A1A1A;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}
.site-calc-chip:hover {
    background: #DEDEDE;
}
.site-calc-chip-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.site-calc-chip:has(.site-calc-chip-input:checked) {
    background: var(--site-header-blue);
    color: #FFFFFF;
}
.site-calc-chip span {
    pointer-events: none;
}

/* Блок бюджета: диапазон, ползунки, подсказка, пресеты */
.site-calc-budget-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.site-calc-budget-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-calc-budget-label {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    color: #1A1A1A;
}
.site-calc-budget-val {
    font-weight: 600;
    color: var(--site-header-blue);
}
.site-calc-budget-sliders {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Один трек с двумя бегунками: левый «От», правый «До», между ними синяя заливка */
.site-calc-dual-range {
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
}
.site-calc-range-track {
    position: absolute;
    left: 0;
    right: 0;
    height: 8px;
    top: 50%;
    margin-top: -4px;
    background: #E8E8E8;
    border-radius: 4px;
    pointer-events: none;
}
.site-calc-range-fill {
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -4px;
    width: 40%;
    height: 8px;
    background: var(--site-header-blue);
    border-radius: 4px;
    pointer-events: none;
    transition: left 0.05s ease, width 0.05s ease;
}
.site-calc-dual-range .site-calc-range {
    position: absolute;
    left: 0;
    width: 100%;
    height: 24px;
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    top: 0;
}
.site-calc-dual-range .site-calc-range-min {
    z-index: 2;
    pointer-events: auto;
}
.site-calc-dual-range .site-calc-range-max {
    z-index: 3;
    pointer-events: auto;
}
.site-calc-dual-range .site-calc-range::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    height: 8px;
    background: transparent;
}
/* Центрируем бегунок по 8px треку: thumb 20px, трек 8px → margin-top (8-20)/2 = -6px */
.site-calc-dual-range .site-calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin-top: -6px;
    border-radius: 50%;
    background: var(--site-header-blue);
    cursor: pointer;
    border: none;
    pointer-events: auto;
}
.site-calc-dual-range .site-calc-range::-moz-range-track {
    height: 8px;
    background: transparent;
}
.site-calc-dual-range .site-calc-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--site-header-blue);
    cursor: pointer;
    border: none;
    pointer-events: auto;
}

.site-calc-range {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #E8E8E8;
    border-radius: 4px;
}
.site-calc-range:focus,
.site-calc-range:focus-visible {
    outline: none;
}
.site-calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--site-header-blue);
    cursor: pointer;
    border: none;
}
.site-calc-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--site-header-blue);
    cursor: pointer;
    border: none;
}
.site-calc-budget-hint {
    font-family: var(--font-family);
    font-size: 12px;
    line-height: 1.4;
    color: #6B6B6B;
    margin: 0;
}
.site-calc-budget-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.site-calc-preset-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 9999px;
    background: #E8E8E8;
    color: #1A1A1A;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}
.site-calc-preset-btn:hover {
    background: #DEDEDE;
}

.site-calc-results-heading {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    color: #1A1A1A;
    margin: 0 0 12px;
}
.site-calc-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* Карточки стран в результатах калькулятора: белый фон, контраст с панелью */
.site-calc-results-list .country-card,
.site-calc-results-list .site-calc-country-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    background: #ffffff;
    border-radius: 24px;
    padding: 16px;
    min-height: 72px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}
.site-calc-results-list .country-card:hover,
.site-calc-results-list .site-calc-country-card:hover {
    background: #F5F5F5;
}
.site-calc-results-list .country-card-flag {
    width: 41px;
    height: 40px;
    flex: none;
    object-fit: contain;
}
.site-calc-results-list .country-card-name {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 16px;
    line-height: 132%;
    color: #1A1A1A;
}
/* Пустые карточки (без названия) не показывать - убирает «серые слоты» в модалке */
.site-calc-results-list .country-card:has(.country-card-name:empty),
.site-calc-results-list .site-calc-country-card:has(.country-card-name:empty) {
    display: none !important;
}

.site-nav-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 32px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    background: rgba(241, 241, 242, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.site-nav-dropdown-logo {
    flex: 0 0 auto;
    min-width: calc(172px * 33 / 41);
    text-decoration: none;
}

.site-nav-dropdown-title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #1A1A1A;
    margin: 0;
    flex-shrink: 0;
}

/* Поиск в стиле Refero - растягивается на всю ширину шапки */
.site-nav-dropdown-search-wrap {
    flex: 1;
    min-width: 0;
    margin: 0 0 0 24px;
    position: relative;
}

.site-nav-dropdown-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #4D4D4D;
    pointer-events: none;
}

.site-nav-dropdown-search {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 44px;
    border: none;
    border-radius: 9999px;
    background: #E8E8E8;
    color: #1A1A1A;
    font-family: var(--font-family);
    font-size: 15px;
    line-height: 1.4;
    transition: background 0.2s ease;
}

.site-nav-dropdown-search::placeholder {
    color: #4D4D4D;
}

.site-nav-dropdown-search:hover,
.site-nav-dropdown-search:focus {
    outline: none;
    background: #E0E0E0;
}

.site-nav-dropdown-title .countries-title-accent {
    color: #1A1A1A;
}

/* Сетка: сайдбар регионов + контент */
.site-nav-dropdown-layout {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.site-nav-dropdown-sidebar {
    width: 220px;
    flex-shrink: 0;
    padding: 20px 12px;
    overflow: hidden;
    background: transparent;
    display: flex;
    flex-direction: column;
}

.site-nav-dropdown-sidebar-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.site-nav-dropdown-sidebar-nav::-webkit-scrollbar {
    display: none;
}

.site-nav-dropdown-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: auto;
    padding: 10px 20px;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: #4D4D4D;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-nav-dropdown-sidebar-item:hover {
    background: #fff;
    color: #1A1A1A;
}

.site-nav-dropdown-sidebar-item.is-active {
    background: #fff;
    color: #1A1A1A;
}

.site-nav-dropdown-sidebar-item svg {
    flex-shrink: 0;
    color: #4D4D4D;
}

.site-nav-dropdown-sidebar-item.is-active svg {
    color: var(--site-header-blue);
}

.site-nav-dropdown-footer {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 32px;
    flex-shrink: 0;
    background: #fff;
    font-size: 12px;
    color: #4D4D4D;
}

.site-nav-dropdown-footer-in-sidebar {
    flex-shrink: 0;
    padding: 16px 12px 12px;
    margin-top: auto;
    background: transparent;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.site-nav-dropdown-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.site-nav-dropdown-shortcut kbd {
    padding: 2px 6px;
    border-radius: 4px;
    background: #E8E8E8;
    font-family: var(--font-family);
    font-size: 11px;
    font-weight: 600;
    color: #1A1A1A;
}

.site-nav-dropdown-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
    min-height: 0;
    margin-top: -92px;
    padding-top: calc(92px + 24px);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.site-nav-dropdown-body::-webkit-scrollbar {
    display: none;
}

/* Контент гайдов внутри оверлея: светлая тема как основной сайт */
.site-nav-dropdown-body .countries-content {
    gap: 16px;
    padding: 0;
}

.site-nav-dropdown-body .country-list {
    background: #fff;
    border-radius: 32px;
    flex-direction: column-reverse;
    margin-bottom: 20px;
}
.site-nav-dropdown-body .country-list:last-child {
    margin-bottom: 0;
}

.site-nav-dropdown-body .country-list-title {
    color: #1A1A1A;
}

/* В модалке гайдов счётчик виден только в свёрнутом блоке (общее правило выше) */
.site-nav-dropdown-body .country-list .country-list-grid,
.site-nav-dropdown-body .country-list.is-collapsed .country-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px 0;
}

.site-nav-dropdown-body .country-card {
    background: #F8F8F8;
    border-radius: 24px;
    color: #1A1A1A;
    transition: background 0.2s ease;
}

.site-nav-dropdown-body .country-card:hover {
    background: #EEEEEE;
}

.site-nav-dropdown-body .country-card:focus,
.site-nav-dropdown-body .country-card:focus-visible {
    outline: none;
}

.site-nav-dropdown-body .country-card-name {
    color: #1A1A1A;
}

/* Бейдж VIP: лёгкая тень в стиле SaaS */
.site-badge-vip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    background: var(--site-header-blue-badge);
    color: #FFFFFF;
    border-radius: 9999px;
    font-family: var(--font-family);
    font-style: italic;
    font-weight: 900;
    font-size: var(--font-size-base);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-normal);
    transition: var(--btn-transition);
}

/* Бейдж New: тот же шрифт, что у site-badge-vip */
/* Бейдж New: Onest italic bold */
.site-badge-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    background: var(--site-header-blue);
    color: #FFFFFF;
    border-radius: 9999px;
    font-family: var(--font-family);
    font-style: italic;
    font-weight: 700;
    font-size: var(--font-size-base);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-normal);
    transition: var(--btn-transition);
}

/* Блок кнопок справа: gap 16px */
/* Правая колонка: кнопки прижаты к правому краю, колонка равной ширины с левой */
.site-header-actions {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    gap: 16px;
    height: 44px;
}

/* Кнопка языка: элегантная тень и hover как у SaaS */
.site-lang-btn {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 16px;
    gap: 4px;
    min-width: 77px;
    height: 44px;
    border: none;
    border-radius: 9999px;
    flex: none;
    order: 0;
    flex-grow: 0;
    background: #E8E8E8;
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    letter-spacing: var(--letter-spacing-normal);
    color: #1A1A1A;
    transition: var(--btn-transition), background var(--transition-fast);
    outline: none;
}
.site-lang-btn:hover {
    background: #DEDEDE;
}
.site-lang-btn:focus {
    outline: none;
}

/* Кнопка «Подобрать страну» в шапке - в одном стиле с кнопкой языка */
.site-calc-btn {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    height: 44px;
    border: none;
    border-radius: 9999px;
    background: #E8E8E8;
    color: #1A1A1A;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    cursor: pointer;
    transition: background 0.2s ease;
}
.site-calc-btn:hover {
    background: #DEDEDE;
}

/* Флаг языка: круглый, 20×20px */
.site-lang-flag {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    flex: none;
    order: 0;
    flex-grow: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    border-radius: 50%;
    overflow: hidden;
}

.site-lang-flag svg {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: cover;
}

.site-lang-code {
    min-width: 28px;
    height: 24px;
    flex: none;
    order: 1;
    flex-grow: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    letter-spacing: var(--letter-spacing-normal);
    color: #1A1A1A;
}

/* Панель выбора языка: выезжает справа */
/* EN UI + RU body: предупреждение над HTML-контентом */
.locale-fallback-notice {
    margin: 0 0 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(0, 80, 180, 0.08);
    border: 1px solid rgba(0, 80, 180, 0.2);
}
.locale-fallback-notice__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--text-primary, #1a1a1a);
}

.site-lang-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.site-lang-overlay.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.site-lang-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.site-lang-panel {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 280px;
    max-width: 85vw;
    max-height: calc(100vh - 32px);
    background: #F1F1F2;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transform: translateX(calc(100% + 16px));
    transition: transform 0.3s ease;
    border-radius: 24px;
    overflow-y: auto;
    overflow-x: hidden;
}

.site-lang-overlay.is-open .site-lang-panel {
    transform: translateX(0);
}

.site-lang-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px;
}

.site-lang-panel-title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.25;
    color: #1A1A1A;
    margin: 0;
}

.site-lang-panel-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: #1A1A1A;
    cursor: pointer;
    transition: background 0.2s ease;
}

.site-lang-panel-close:hover {
    background: rgba(0, 0, 0, 0.06);
}

.site-lang-list {
    list-style: none;
    margin: 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* English первым в списке (в т.ч. при старом порядке в кэшированном HTML) */
.site-lang-list > .site-lang-option {
    order: 10;
}
.site-lang-list > .site-lang-option[data-lang="en"] {
    order: 1;
}
.site-lang-list > .site-lang-option[data-lang="ru"] {
    order: 2;
}
.site-lang-list > .site-lang-option[data-lang="es"] {
    order: 3;
}
.site-lang-list > .site-lang-option[data-lang="zh"] {
    order: 4;
}
.site-lang-list > .site-lang-option[data-lang="fr"] {
    order: 5;
}
.site-lang-list > .site-lang-option[data-lang="de"] {
    order: 6;
}

.site-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 9999px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.35;
    color: #1A1A1A;
    cursor: pointer;
    transition: background 0.2s ease;
}

/* Флаг страны слева от названия языка */
.site-lang-option-flag {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.site-lang-option-flag svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-lang-option:hover {
    background: rgba(0, 0, 0, 0.06);
}

.site-lang-option.is-selected {
    background: rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

/* Язык ещё не готов: ЧБ, тег «в разработке» справа, не кликается */
.site-lang-option--in-dev {
    filter: grayscale(1);
    opacity: 0.75;
    pointer-events: none;
    cursor: default;
}
.site-lang-option--in-dev:hover {
    background: transparent;
}
.site-lang-option-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 500;
    color: #737373;
    background: #e5e5e5;
    padding: 4px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Модалка мобильного меню: плавное появление без дёргания, всегда на весь экран */
.site-nav-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    min-height: 100vh;
    height: 100dvh;
    height: 100vh;
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s cubic-bezier(0.33, 1, 0.68, 1), visibility 0.28s step-end;
}
.site-nav-menu-overlay.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.28s cubic-bezier(0.33, 1, 0.68, 1), visibility 0s step-start;
}
.site-nav-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    min-height: 100vh;
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}
/* Модалка меню: панель, раскрытие пучком от центра (scale от середины) */
.site-nav-menu-panel {
    position: absolute;
    right: 16px;
    top: 16px;
    bottom: 16px;
    left: 16px;
    margin: 0 auto;
    max-width: 480px;
    background: #F1F1F2;
    background: color(display-p3 0.945 0.945 0.949);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 20px 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    transform-origin: center center;
    transform: scale(0.85);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.28s cubic-bezier(0.33, 1, 0.68, 1);
    overflow: hidden;
}
.site-nav-menu-overlay.is-open .site-nav-menu-panel {
    transform: scale(1);
    opacity: 1;
}
.site-nav-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
    flex-shrink: 0;
}
.site-nav-menu-header .site-logo {
    flex: 1 1 auto;
}
.site-nav-menu-close {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #1A1A1A;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease;
}
.site-nav-menu-close:hover {
    background: rgba(0, 0, 0, 0.06);
}
.site-nav-menu-close-icon {
    display: block;
    font-size: 20px;
    line-height: 1;
}
/* Пункты меню: скруглённые кнопки, без лишней тени */
.site-nav-menu-nav {
    margin-top: 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}
.site-nav-menu-nav .site-nav-item {
    background: transparent !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    justify-content: flex-start;
    padding: 12px 16px;
    min-height: 44px;
    height: auto;
    font-size: var(--font-size-base);
}
.site-nav-menu-nav .site-nav-item:hover {
    background: rgba(0, 0, 0, 0.06) !important;
    border-radius: 14px !important;
}
/* CTA внизу модалки */
.site-nav-menu-cta {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    justify-content: flex-start;
    flex-shrink: 0;
}
.site-nav-menu-cta .site-cta-btn {
    border-radius: 9999px;
    width: 100%;
    min-width: 0;
    justify-content: center;
}
.site-nav-menu-cta {
    width: 100%;
}
/* Язык в модалке меню - гармошка (раскрывающийся список), модалка языка не видна */
.site-nav-menu-lang {
    margin-top: 16px;
    display: flex;
    justify-content: flex-start;
    flex-shrink: 0;
}
.site-nav-menu-lang-accordion {
    width: 100%;
}
.site-nav-menu-lang-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.04);
    font-family: var(--font-family);
    font-weight: 500;
    font-size: var(--font-size-base);
    color: #1A1A1A;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}
.site-nav-menu-lang-trigger:hover {
    background: rgba(0, 0, 0, 0.06);
}
.site-nav-menu-lang-trigger-label {
    flex: 0 0 auto;
}
.site-nav-menu-lang-current {
    flex: 1 1 auto;
    text-align: right;
    font-weight: 500;
}
.site-nav-menu-lang-chevron {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center;
    background-size: 20px;
    transition: transform 0.2s ease;
}
.site-nav-menu-lang-trigger[aria-expanded="true"] .site-nav-menu-lang-chevron {
    transform: rotate(180deg);
}
/* Список языков в модалке - как на главной: те же стили .site-lang-list, .site-lang-option, .site-lang-option--in-dev, .site-lang-option-badge */
.site-nav-menu-lang-list {
    margin-top: 6px;
    overflow: visible;
}
.site-nav-menu-lang-list .site-lang-list {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 4px;
}
.site-nav-menu-lang .site-lang-btn {
    box-shadow: none;
}

/* CTA-кнопка: курсор «рука», hover через brightness (без тени) */
.site-cta-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 16px;
    height: 44px;
    min-width: 162px;
    background: var(--site-cta, #FA742D);
    border: none;
    border-radius: 16px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    letter-spacing: var(--letter-spacing-normal);
    color: #FFFFFF;
    text-decoration: none;
    cursor: pointer;
    transition: filter var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
    outline: none;
    box-shadow: none;
}
.site-cta-btn:focus {
    outline: none;
}
.site-cta-btn:hover {
    text-decoration: none;
    color: #FFFFFF;
    background: var(--site-cta-hover, #E86824);
    filter: none;
    box-shadow: none;
}
.site-cta-btn:active {
    filter: brightness(0.96);
    box-shadow: none;
    transform: translateY(1px);
}

/* iPad и mobile: табы под header, hamburger убран, CTA и Lang в строке (до 1279px - iPad Pro landscape) */
@media (max-width: 1279px) {
    .site-header-inner {
        flex-wrap: nowrap;
        gap: 8px;
    }
    .site-nav-toggle {
        display: none;
    }
    .site-nav {
        display: none;
    }
    .site-header-actions {
        display: flex;
        flex: 0 0 auto;
        margin-left: auto;
        gap: 12px;
    }
    /* site-header и scroll-header: колонка (inner + tabs), высота auto */
    .site-header,
    .site-header.is-scrolled {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        height: auto;
        min-height: auto;
    }
    .site-header-inner {
        height: auto;
        min-height: calc(var(--site-header-height) - 24px);
    }
    .scroll-header {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        min-height: auto;
    }
    .scroll-header-inner {
        height: auto;
        min-height: calc(var(--site-header-height) - 24px);
    }
    /*
     * Ширина шапки: на экранах ≤1279px убираем потолок 1016px - иначе на ~1100px остаются толстые поля по бокам.
     * С min-width: 1280px остаётся базовое правило .site-header { width: min(1016px, …) }.
     */
    /* Ширина без потолка 1016px; горизонталь меньше десктопного (там 2rem-4px у шапки, у колонки 0) */
    .site-header,
    .scroll-header {
        width: calc(100vw - 24px);
        max-width: none;
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
    /* Табы: без второго «слоя» 12px - внешний padding уже у .site-header */
    .site-header-tabs-wrap {
        padding-top: 0;
        padding-bottom: 16px;
        padding-left: 0;
        padding-right: 0;
    }
    /*
     * Вертикальный отступ до контента: position:fixed шапка + строка табов (на ≥1280px табы скрыты - см. базовый .content-area, там только --site-header-height).
     * Раньше был лишний «+8px» - из‑за него казалось, что до hero «пустота» больше, чем на десктопе.
     */
    .handbook-container .content-area {
        padding-top: calc(var(--site-header-height) + var(--site-header-tabs-height));
    }
}

/* Мобильное меню: хедер прижат к верху без закруглений; при открытии - на весь экран */
@media (max-width: 768px) {
    .site-header {
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: min(100%, calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right)));
        max-width: none;
        height: auto;
        min-height: calc(var(--site-header-height) - 16px);
        padding: 12px max(12px, env(safe-area-inset-left)) 12px max(12px, env(safe-area-inset-right));
        border-radius: 0;
        transition: top 0.3s cubic-bezier(0.33, 1, 0.68, 1),
                    left 0.3s cubic-bezier(0.33, 1, 0.68, 1),
                    transform 0.3s cubic-bezier(0.33, 1, 0.68, 1),
                    width 0.3s cubic-bezier(0.33, 1, 0.68, 1),
                    height 0.3s cubic-bezier(0.33, 1, 0.68, 1),
                    min-height 0.3s cubic-bezier(0.33, 1, 0.68, 1),
                    padding 0.3s cubic-bezier(0.33, 1, 0.68, 1),
                    background 0.3s ease;
    }
    .site-header-inner {
        flex-wrap: nowrap;
        height: auto;
        gap: 8px;
    }
    /* hamburger скрыт - навигация в табах под header */
    .site-nav-toggle {
        display: none;
    }
    .site-header-actions {
        display: flex;
        margin-left: auto;
    }
    .site-header-mobile-cta {
        display: none;
    }
    .site-header-mobile-lang {
        display: none;
    }
    /* Поверх max-width:1279px: в «приложенческом» хедере свой padding - табы снова 12px внутри */
    .site-header-tabs-wrap {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
    .site-nav {
        display: none;
    }
    .site-nav-item {
        padding: 10px 14px;
        font-size: var(--font-size-base);
        height: auto;
        min-height: 44px;
        justify-content: flex-start;
        border-radius: 24px;
    }
    .site-logo {
        order: 0;
        width: auto;
        min-width: 0;
        flex: 0 1 auto;
        overflow: visible;
    }
    .site-logo-trevel {
        width: auto;
    }
    .site-logo-guide {
        white-space: nowrap;
        width: auto;
    }
    .site-cta-btn {
        min-width: 140px;
        padding: 0 12px;
        height: 40px;
        font-size: var(--font-size-sm);
    }
    .site-lang-btn {
        width: 56px;
        height: 40px;
        padding: 0 10px;
    }
    /* Scroll-хедер на мобилке: height auto для inner + tabs (как site-header) */
    .scroll-header {
        height: auto;
        min-height: auto;
    }
    .scroll-header-inner {
        height: auto;
        min-height: calc(var(--site-header-height) - 24px);
    }
    .scroll-header .site-header-actions {
        display: flex;
        margin-left: auto;
    }

    /* Мобилка: высота картинок в карточках, как у главной (та же пропорция 608/320) */
    .news-article-featured-img {
        border-radius: var(--news-img-radius);
    }
    .news-article-card-img,
    .news-aside-card-img {
        border-radius: 24px;
        height: auto;
        min-height: 0;
        aspect-ratio: 608 / 320;
    }
    .news-subscription {
        border-radius: 24px;
    }
    .articles-card-img {
        border-radius: var(--news-img-radius);
    }
    .support-section {
        border-radius: 24px;
    }
    .guide-hero__content {
        border-radius: 24px;
    }
    .handbook-header {
        border-radius: 24px;
    }
    .podcast-section {
        border-radius: 24px;
    }
    .country-card {
        border-radius: 24px;
    }
}
@media (max-width: 480px) {
    .site-header {
        padding: 10px 12px;
    }
    .site-header-tabs-item {
        padding: 8px 12px;
        font-size: var(--font-size-sm);
        height: 40px;
    }
    .site-nav-item {
        padding: 8px 12px;
        font-size: var(--font-size-sm);
        min-height: 40px;
    }
    /* В модалке меню - один размер шрифта у пунктов и селекта языка */
    .site-nav-menu-overlay .site-nav-menu-nav .site-nav-item,
    .site-nav-menu-overlay .site-nav-menu-lang-trigger {
        font-size: var(--font-size-base);
    }
}

/* Заголовок справочника */
.handbook-header {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: var(--text-primary);
    padding: 2rem 0 24px 0;
    margin-bottom: 32px;
    text-align: left;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

/* Гайд Колумбии: герой по Figma - bg 616px от верха браузера (424 + 104 + 88) */
.guide-hero {
    position: relative;
    width: 100%;
    min-height: 616px;
}

/* Гайд Колумбии: градиент fixed от top:0 - только вверху, хедер поверх */
/* right: 12px - не перекрывать область скроллбара */
/* Скрытие фона при скролле до середины страницы - класс .is-faded добавляется скриптом */
.guide-hero__bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 12px;
    width: auto;
    height: 616px;
    z-index: 0;
    background: linear-gradient(180deg, #9CA3AF 0%, #D1D5DB 40%, #F1F1F2 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.5s ease;
}
.guide-hero__bg.is-faded {
    opacity: 0;
}

/* Гайд Колумбии: фон - верхняя часть Colombia-main.jpg */
.guide-hero--colombia .guide-hero__bg {
    background-image: url("countries/colombia/img/Colombia-main.jpg");
    background-position: center top;
    background-size: cover;
}

/* Плавное затухание краёв: сверху и снизу - градиент в цвет страницы */
.guide-hero--colombia .guide-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        #F1F1F2 0%,
        rgba(241, 241, 242, 0.6) 18%,
        transparent 35%,
        transparent 55%,
        rgba(241, 241, 242, 0.6) 75%,
        #F1F1F2 100%
    );
    pointer-events: none;
}

/* Скролл-хедер на гайде и внутренних страницах: такой же эффект стекла, как на главной */
.guide-colombia-page .scroll-header,
.guide-inner-page .scroll-header {
    background-color: #F1F1F2;
}

.guide-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 959px;
    margin: 112px auto 0;
    padding: 48px 48px 24px;
    background: #FFFFFF;
    border-radius: 48px;
    box-sizing: border-box;
    height: auto;
}

.guide-colombia-page .guide-hero__content .content-wrapper,
.guide-inner-page .guide-hero__content .content-wrapper {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-top: 0;
    padding-bottom: 0;
    height: auto;
}

/* Контент гайда слегка заходит на блок перед футером */
.guide-colombia-page .guide-hero__content,
.guide-inner-page .guide-hero__content {
    margin-bottom: -80px;
}

@media (max-width: 1020px) {
    .guide-hero__content {
        max-width: calc(100% - 32px);
        margin-left: 16px;
        margin-right: 16px;
    }
}

@media (max-width: 768px) {
    .guide-hero__content {
        margin-top: 112px;
        max-width: calc(100% - 24px);
        margin-left: 12px;
        margin-right: 12px;
        border-radius: 24px;
    }
}

@media (max-width: 480px) {
    .guide-hero__content {
        margin-top: 112px;
        max-width: calc(100% - 16px);
        margin-left: 8px;
        margin-right: 8px;
        padding: 32px 32px 24px;
        border-radius: 20px;
    }
}

.header-content {
    padding-left: 2rem;
}

.header-content h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.header-content p {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    font-weight: 400;
}

/* Основной контейнер: контент скроллится под фиксированным header */
.handbook-container {
    display: flex;
    flex: 1;
    min-height: 0;
    width: 100%;
    background: var(--bg-primary);
    position: relative;
}

/* Скролл-область под фиксированной шапкой. Только высота одной строки - на ≥1280px табы скрыты (см. медиазапрос). */
.content-area {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    overflow-x: clip;
    width: 100%;
    background: #F1F1F2;
    padding-top: var(--site-header-height);
    -webkit-overflow-scrolling: touch; /* плавный touch-скролл на iOS в гайдах */
    touch-action: pan-y; /* предотвращает зависание скролла на мобилке */
    /* Native hidden - трек macOS Always иначе всегда виден */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.content-area::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Гайд: контент с самого верха, блок героя сразу под хедером */
.guide-colombia-page .content-area {
    padding-top: 0;
}

.content-wrapper {
    max-width: min(800px, 100%);
    margin: 0 auto;
    margin-bottom: 0;
    padding: var(--content-gutter);
}

/* Контент новостей на всю ширину (без боковых отступов - как блок поддержки) */
.news-page {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 32px 0 0;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .news-page {
        padding: 0;
    }
}
@media (max-width: 480px) {
    .news-page {
        padding: 0;
    }
}

/* Вертикальный flow: главная → статьи 2col → подписка → статьи 2col → список 2col */
.news-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 48px;
    width: 100%;
}

.news-featured-top {
    width: 100%;
    margin-bottom: 24px;
}

/* Блоки статей (с картинками) в 2 колонки */
.news-grid-flow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
}

/* Список статей (без картинок) в 2 колонки */
.news-list-flow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 40px;
    align-items: start;
    width: 100%;
}

/* Карточки статей в списке: закругление только у маски, чтобы текст не обрезался */
.news-list-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    width: 100%;
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

.news-list-card:hover {
    text-decoration: none;
    color: inherit;
}

.news-list-card:hover .news-list-card-title {
    color: var(--site-header-blue);
}

.news-list-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 140px;
    background: #e5e7eb;
    border-radius: var(--news-img-radius);
    flex: none;
    overflow: hidden;
}

.news-list-card-img img {
    border-radius: var(--news-img-radius);
}

/* Картинки в списке статей должны вписываться в контейнер 16:9 */
.news-list-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-list-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0 0;
    gap: 8px;
    width: 100%;
}

.news-list-card-title {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 22px;
    line-height: 1;
    letter-spacing: var(--letter-spacing-normal);
    color: #1A1A1A;
    margin: 0;
    transition: color var(--transition-fast);
}
.news-list-card-title .countries-title-accent {
    font-family: 'Caveat', cursive;
    font-weight: 600;
    line-height: 1;
}

.news-list-card-desc {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 20px;
    line-height: var(--line-height-relaxed);
    letter-spacing: var(--letter-spacing-normal);
    color: #4D4D4D;
    margin: 0;
}

/* Главная статья: картинка + заголовок H2 и описание */
.news-article-featured {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    gap: 24px;
    width: 100%;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}
.news-article-featured-link {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    text-decoration: none;
    color: inherit;
}
.news-article-featured:hover {
    opacity: 0.92;
}
.news-article-featured:hover .news-article-title-h2 {
    color: var(--site-header-blue);
}

/* Высота масок картинок масштабируется по ширине (aspect-ratio), без ограничения max-height */
.news-article-featured-img {
    position: relative;
    width: 100%;
    aspect-ratio: 608 / 320;
    background: #e5e7eb;
    border-radius: var(--news-img-radius);
    flex: none;
    overflow: hidden;
}
.news-article-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--news-img-radius);
    transition: transform var(--transition-normal);
}
.news-article-featured:hover .news-article-featured-img img {
    transform: scale(1.05);
}

/* Внутри статьи: блок с главным изображением - корректные пропорции */
.content-main .news-article-featured-img--article,
.content-main .news-article-featured-img.news-article-featured-img--article {
    margin-bottom: 1.5rem;
    border-radius: var(--news-img-radius);
    aspect-ratio: 16 / 9;
    min-width: 0;
    overflow: hidden;
}
.content-main .news-article-featured-img--article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--news-img-radius);
    max-width: 100%;
}

.news-article-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 16px;
    width: 100%;
}

/* Главный блок: заголовок h1 - крупнее и выделяется */
.news-article-title-h2 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 2.75rem;  /* 44px - главный заголовок страницы */
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #1A1A1A;
    transition: color var(--transition-fast);
}

.news-article-desc {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    letter-spacing: var(--letter-spacing-normal);
    color: #4D4D4D;
}

/* В главном блоке (featured) контент под заголовком - 24px */
.news-article-featured .news-article-desc {
    font-size: 24px;
}


.news-article-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 20px;
    min-width: 0;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}
.news-article-card-link {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.news-article-card:hover {
    opacity: 0.92;
}
.news-article-card:hover .news-article-title {
    color: var(--site-header-blue);
}

/* На десктопе та же высота, что у картинок в .news-list-flow (16:9) */
.news-article-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
    background: #e5e7eb;
    border-radius: var(--news-img-radius);
    flex: none;
    overflow: hidden;
}
.news-article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-normal);
}
.news-article-card:hover .news-article-card-img img {
    transform: scale(1.05);
}

.news-article-title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: var(--font-size-base);
    line-height: var(--line-height-snug);
    letter-spacing: -0.01em;
    color: #1A1A1A;
    transition: color var(--transition-fast);
}

/* Главный блок: h1 переопределяет размер (иначе .news-article-title даёт 16px) */
.news-article-featured .news-article-title.news-article-title-h2 {
    font-size: 2.75rem;
    line-height: 1.1;
    letter-spacing: var(--letter-spacing-tight);
}

/* В карточках статей: Onest + акцент Caveat через .countries-title-accent */
.news-article-card .news-article-title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.15;
}
.news-article-card .news-article-title .countries-title-accent {
    font-family: 'Caveat', cursive;
    font-weight: 600;
    line-height: 1;
}
.news-article-card .news-article-desc {
    font-size: 20px;
    font-weight: 500;
}

/* Блок подписки: белый фон, border-radius 40px, padding 40px */
.news-subscription {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 56px;
    padding: 40px;
    gap: 24px;
    width: 100%;
    min-width: 0;
    background: #FFFFFF;
    background: color(display-p3 1.000 1.000 1.000);
    border-radius: 24px;
}

/* Как у podcast-title: 34px, line-height 41px, 700 */
.news-subscription-title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 34px;
    line-height: 41px;
    letter-spacing: var(--letter-spacing-normal);
    color: #1A1A1A;
    margin: 0;
}

.news-subscription-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 0;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

/* Инпут подписки растянут по ширине на всю доступную область строки (flex забирает остаток) */
.news-subscription-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    padding: 8px 8px 8px 20px;
    background: #F1F1F2;
    border: none;
    border-radius: 9999px;
    box-sizing: border-box;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    letter-spacing: var(--letter-spacing-normal);
    color: #1A1A1A;
}

.news-subscription-input::placeholder {
    color: #A9A9A9;
    color: color(display-p3 0.663 0.663 0.663);
}

.news-subscription-input:focus,
.news-subscription-input:focus-visible {
    outline: 2px solid var(--site-header-blue);
    outline-offset: 2px;
}

.news-subscription-btn {
    flex: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 24px;
    height: 48px;
    min-width: 154px;
    background: #0074FF;
    border: none;
    border-radius: 9999px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    letter-spacing: var(--letter-spacing-normal);
    color: #FFFFFF;
    cursor: pointer;
    transition: var(--btn-transition);
    outline: none;
}
.news-subscription-btn:hover {
    filter: brightness(1.05);
}
.news-subscription-btn:focus {
    outline: none;
}

.news-subscription-note {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-snug);
    letter-spacing: var(--letter-spacing-normal);
    color: #4D4D4D;
    margin: 0;
}

.news-subscription-note a {
    color: inherit;
    text-decoration: underline;
}

/* Блок подписки в разработке: ЧБ, заблокирован, тег как у подкаста */
.news-subscription--in-dev {
    position: relative;
    filter: grayscale(1);
    opacity: 0.88;
    pointer-events: none;
    user-select: none;
}
.news-subscription--in-dev .news-subscription-btn {
    cursor: default;
}
/* Бейдж учитывает внутренний padding блока */
.news-subscription-badge {
    position: absolute;
    top: 40px;
    right: 40px;
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: #737373;
    background: #e5e5e5;
    padding: 6px 12px;
    border-radius: 8px;
    z-index: 1;
}

/* Правая часть: одна колонка - карточки и список получают полную ширину, меньше плотности */
.news-right {
    display: flex;
    flex-direction: column;
    gap: 56px;
    min-width: 0;
}

.news-aside-col {
    min-width: 0;
}

.news-aside-col-cards {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 48px;
}

.news-aside-col-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 48px;
}

.news-aside-col .news-aside-cards {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 24px;
    width: 100%;
}

.news-aside-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 20px;
    min-width: 0;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}
.news-aside-card-link {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.news-aside-card:hover {
    opacity: 0.92;
}
.news-aside-card:hover .news-aside-card-title {
    color: var(--site-header-blue);
}

/* Картинки справа - та же высота, что и у маленьких карточек слева (1-я и 2-я сетки) */
/* На десктопе та же высота, что у картинок в .news-list-flow (16:9) */
.news-aside-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
    background: #e5e7eb;
    border-radius: var(--news-img-radius);
    flex: none;
    overflow: hidden;
}

.news-aside-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-normal);
}
.news-aside-card:hover .news-aside-card-img img {
    transform: scale(1.05);
}

/* Мобилка: высота картинок в карточках как у главного блока (та же пропорция 608/320) */
@media (max-width: 768px) {
    .news-article-card-img,
    .news-aside-card-img {
        height: auto;
        min-height: 0;
        aspect-ratio: 608 / 320;
    }
}

.news-aside-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 8px;
    width: 100%;
}

/* Как в news-article-card: 22px/20px, 600/500 */
.news-aside-card-title {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 22px;
    line-height: 1;
    letter-spacing: var(--letter-spacing-normal);
    color: #1A1A1A;
    margin: 0;
    transition: color var(--transition-fast);
}
.news-aside-card-title .countries-title-accent {
    font-family: 'Caveat', cursive;
    font-weight: 600;
    line-height: 1;
}

.news-aside-card-desc {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 20px;
    line-height: var(--line-height-relaxed);
    letter-spacing: var(--letter-spacing-normal);
    color: #4D4D4D;
    margin: 0;
}

/* Список статей в 2 колонки */
.news-aside-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 40px;
    align-items: start;
    width: 100%;
}

.news-aside-list-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 8px;
    width: 100%;
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

.news-aside-list-item:hover {
    text-decoration: none;
    color: var(--site-header-blue);
}

.news-aside-list-item:hover .news-aside-list-title {
    color: var(--site-header-blue);
}

/* Как в news-article-card / articles-card: 22px/20px, 600/500 */
.news-aside-list-title {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 22px;
    line-height: var(--line-height-snug);
    letter-spacing: var(--letter-spacing-normal);
    color: #1A1A1A;
    margin: 0;
}

.news-aside-list-desc {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 20px;
    line-height: var(--line-height-relaxed);
    letter-spacing: var(--letter-spacing-normal);
    color: #4D4D4D;
    margin: 0;
}

/* На главной с новостями: 960px с min-width 1280px (одна граница с скрытием табов) */
@media (min-width: 1280px) {
    .content-wrapper:has(.news-page) {
        max-width: 960px;
        width: 100%;
        margin: 0 auto;
        padding-top: 0;
        padding-right: 0;
        padding-bottom: 3rem;
        padding-left: 0;
        box-sizing: border-box;
    }
    /* Страницы с контентом (статьи, сервисы): шапка → крошки → заголовок */
    .content-wrapper:has(.breadcrumbs), .content-wrapper:has(.article-content-html) {
        max-width: min(960px, 100%);
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-top: 2rem;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 3rem;
        box-sizing: border-box;
    }
}

/*
 * До 1280px (max-width: 1279px): без узкой max-width коробки; горизонталь 12px + safe-area.
 * С min-width 1280 - колонка 960 и padding 0 у обёртки статей/главной.
 */
@media (max-width: 1279px) {
    /* Как у шапки в этом же брейкпоинте: 12px + safe-area, без лишнего 2rem-4px */
    .content-wrapper:has(.news-page) {
        max-width: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-top: 0;
        padding-bottom: 3rem;
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
        box-sizing: border-box;
    }
    .content-wrapper:has(.breadcrumbs), .content-wrapper:has(.article-content-html) {
        max-width: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-top: 1.25rem;
        padding-bottom: 3rem;
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
        box-sizing: border-box;
    }
    /* Убираем верхний padding у блока новостей (32px), иначе двойной зазор вместе с .content-area */
    .news-page {
        padding-top: 0;
    }
    /* Next.js: разметка статьи не уже обёртки - сетка не вылезает вправо */
    .article-content-html {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
}
/* Планшеты и мобилка: только padding (без margin), иначе при width:100% правый margin уходит за экран */
@media (max-width: 1024px) {
    .content-wrapper:has(.breadcrumbs), .content-wrapper:has(.article-content-html) {
        margin-left: 0;
        margin-right: 0;
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
}
@media (max-width: 768px) {
    .content-wrapper:has(.breadcrumbs), .content-wrapper:has(.article-content-html) {
        margin-left: 0;
        margin-right: 0;
        min-width: 0;
    }
}
@media (max-width: 360px) {
    .content-wrapper:has(.breadcrumbs), .content-wrapper:has(.article-content-html) {
        margin-left: 0;
        margin-right: 0;
        padding-left: max(0.5rem, env(safe-area-inset-left));
        padding-right: max(0.5rem, env(safe-area-inset-right));
    }
}
@media (max-width: 320px) {
    .content-wrapper:has(.breadcrumbs), .content-wrapper:has(.article-content-html) {
        margin-left: 0;
        margin-right: 0;
        padding-left: max(0.5rem, env(safe-area-inset-left));
        padding-right: max(0.5rem, env(safe-area-inset-right));
    }
}
/* Главная: горизонталь как у .site-header на мобилке (0.75rem), без суммирования с общими правилами .content-wrapper */
@media (max-width: 768px) {
    .content-wrapper:has(.news-page) {
        padding-top: 0;
        padding-bottom: 2rem;
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
    }
}
@media (max-width: 480px) {
    .content-wrapper:has(.news-page) {
        padding-bottom: 1.5rem;
    }
}
/* Страницы статей (.news-page): без верхнего отступа контейнера */
.content-wrapper:has(.news-page) {
    padding-top: 0;
}

/* Блок Podcast - на всю ширину контейнера (как блок поддержки) */
.podcast-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 48px;
    gap: 24px;
    isolation: isolate;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 319px;
    margin: 104px 0 104px;
    box-sizing: border-box;
    background: #FFFFFF;
    border-radius: 48px;
    flex: none;
    align-self: stretch;
}

/* Подкаст ещё не готов: ЧБ, заблокирован, тег «в разработке» */
.podcast-section--in-dev {
    filter: grayscale(1);
    opacity: 0.88;
    pointer-events: none;
    user-select: none;
}
.podcast-section--in-dev .podcast-btn {
    cursor: default;
}
/* Бейдж учитывает внутренний padding блока */
.podcast-badge {
    position: absolute;
    top: 48px;
    right: 48px;
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: #737373;
    background: #e5e5e5;
    padding: 6px 12px;
    border-radius: 8px;
    z-index: 1;
}

/* Контент слева, картинка справа - отступ справа резервирует место под картинку, текст не залазит */
.podcast-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    width: 100%;
    min-width: 0;
    padding-right: 440px;
    box-sizing: border-box;
}

/* Контент блока подкаста растянут по ширине (остаётся слева от картинки) */
.podcast-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 32px;
    flex: 1 1 0;
    min-width: 0;
    z-index: 0;
}

/* Текстовый блок на всю ширину контента */
.podcast-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 24px;
    width: 100%;
    flex: none;
    align-self: stretch;
}

/* Title: H2 34px, line-height 41px, на всю ширину */
.podcast-title {
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 700;
    font-size: 34px;
    line-height: 41px;
    color: #1A1A1A;
    margin: 0;
    width: 100%;
    max-width: 100%;
}

/* Description: на всю ширину */
.podcast-desc {
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 132%;
    letter-spacing: -0.002em;
    color: #1A1A1A;
    margin: 0;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
}

/* Button row: 391×48, gap 24px */
.podcast-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 24px;
    width: 391px;
    height: 48px;
    flex: none;
    order: 1;
}

/* Слушать выпуск: элегантная тень и подъём как у SaaS */
.podcast-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 16px 12px 24px;
    gap: 8px;
    width: auto;
    height: 48px;
    background: #0074FF;
    border-radius: 32px;
    border: none;
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
    text-decoration: none;
    cursor: pointer;
    flex: none;
    transition: var(--btn-transition);
    outline: none;
}
.podcast-btn:focus {
    outline: none;
}
.podcast-btn:hover {
    filter: brightness(1.05);
    color: #FFFFFF;
    text-decoration: none;
}

/* Иконка play в кнопке: fill вместо line */
.podcast-btn-icon,
.podcast-btn .podcast-btn-icon svg {
    width: 24px;
    height: 24px;
    flex: none;
}
.podcast-btn .podcast-btn-icon {
    color: #FFFFFF;
}
.podcast-btn .podcast-btn-icon svg {
    color: #FFFFFF;
    fill: currentColor;
}

/* Duration: Body Medium 16px, line-height 132%, #707070 */
.podcast-duration {
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 132%;
    color: #707070;
    flex: none;
}

/* mirco.png: 380×295, прижата к низу и справа блока */
/* Картинка: на всю высоту контейнера, прижата к правому краю */
.podcast-img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    flex: none;
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Картинка: на 24px меньше контейнера, пропорционально, по центру */
.podcast-img img {
    max-width: calc(100% - 24px);
    max-height: calc(100% - 24px);
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Подкаст: на узких экранах картинка скрыта, только текст и кнопка */
@media (max-width: 960px) {
    .podcast-section {
        min-height: auto;
        margin: 80px 0 80px;
        width: 100%;
        padding: 24px 24px 32px;
        border-radius: 24px;
    }
    .podcast-badge {
        top: 24px;
        right: 24px;
    }
    .podcast-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding-right: 0;
    }
    .podcast-content {
        min-width: 0;
    }
    .podcast-img {
        display: none;
    }
    .podcast-title,
    .podcast-desc {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}
@media (max-width: 640px) {
    .podcast-section {
        padding: 20px 20px 28px;
        margin: 48px 0 48px;
        width: 100%;
        border-radius: 20px;
    }
    .podcast-badge {
        top: 20px;
        right: 20px;
    }
    .podcast-inner {
        gap: 20px;
    }
    .podcast-title {
        font-size: var(--font-size-3xl);
        line-height: 1.25;
    }
    .podcast-desc {
        font-size: var(--font-size-base);
    }
}

/* Секция «Гайды по странам» - без боковых отступов (как блок поддержки) */
.countries-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 104px;
    gap: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.countries-title {
    font-family: 'Caveat', cursive;
    font-style: italic;
    font-weight: 700;
    font-size: calc(2.75rem + 16px);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    color: #1A1A1A;
    margin: 0;
    align-self: stretch;
}

/* Выделение ключевого слова в заголовках: Caveat */
/* Акцент в заголовке (напр. «рай») - Caveat, шрифт +16px к базовому */
.countries-title-accent {
    font-family: 'Caveat', cursive;
    font-style: italic;
    font-weight: 600;
    font-size: calc(1em + 16px);
}

/* В заголовках «Гайды по странам» и «Интересные статьи» - акцент без отличий, одна строка одним шрифтом */
.countries-title .countries-title-accent,
.articles-title .countries-title-accent {
    font-weight: inherit;
    font-size: inherit;
}

/* Декоративное подчёркивание под словами «странам» и «статьи» */
.title-word-underline {
    position: relative;
}

.title-word-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 4px;
    background: #1A1A1A;
    border-radius: 50% 50% 0 0;
}

.title-nowrap {
    white-space: nowrap;
}

.countries-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.country-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 48px;
    gap: 32px;
    width: 100%;
    min-width: 0;
    background: #FFFFFF;
    border-radius: 48px;
    box-sizing: border-box;
}
.country-list .country-card {
    cursor: pointer;
}
.country-list.is-collapsed {
    padding-top: 32px;
    padding-bottom: 32px;
    gap: 0;
}

/* Кнопка сворачивания: сброс стилей кнопки, курсор */
.country-list-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    gap: 16px;
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
}

.country-list-header:focus-visible {
    outline: 2px solid var(--site-header-blue);
    outline-offset: 2px;
}

/* Свёрнутый блок: wrapper плавно схлопывается по высоте */
.country-list-grid-wrapper {
    display: grid;
    grid-template-rows: 1fr;
    overflow: hidden;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.country-list.is-collapsed .country-list-grid-wrapper {
    grid-template-rows: 0fr;
}
.country-list-grid {
    min-height: 0;
}

.country-list-title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 20px;
    line-height: 132%;
    letter-spacing: -0.002em;
    color: #1A1A1A;
    margin: 0;
    flex: 1;
}

.country-list-count {
    flex: none;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: #E8E8E8;
    color: #4D4D4D;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
}
.country-list.is-collapsed .country-list-count {
    display: inline-flex;
}

/* Сетка: 3 колонки */
.country-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 24px;
    width: 100%;
}

.country-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 16px;
    gap: 24px;
    width: 100%;
    min-width: 0;
    height: 88px;
    background: #F7F7F7;
    border-radius: 28px;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    transition: background var(--transition-fast);
}

.country-card:hover {
    background: #EEEEEE;
    text-decoration: none;
    color: inherit;
}

/* Флаг: уменьшены на 16px (было 57×56 → 41×40) */
.country-card-flag {
    width: 41px;
    height: 40px;
    flex: none;
    display: block;
    object-fit: contain;
}

.country-card-name {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 16px;
    line-height: 132%;
    color: #1A1A1A;
    flex: 1;
}

/* Карточки «в разработке»: флаг слева, справа колонка название + тег (флаг | название \n | тег) */
.country-card--in-dev {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 16px;
}
.country-card--in-dev .country-card-flag {
    filter: grayscale(1);
    flex: none;
}
.country-card--in-dev .country-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.country-card--in-dev .country-card-name {
    flex: none;
    text-align: left;
}
.country-card-badge {
    display: block;
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: #737373;
    flex: none;
}

@media (max-width: 768px) {
    .countries-title {
        font-size: 2rem;
        line-height: 1.25;
    }
    .country-list {
        padding: 28px 24px;
        border-radius: 24px;
    }
}

@media (max-width: 768px) {
    .countries-section {
        padding: 0 0 80px;
    }
}
@media (max-width: 480px) {
    .countries-section {
        padding: 0 0 48px;
        gap: 24px;
    }
    .countries-title {
        font-size: 1.75rem;
    }
    .country-list {
        padding: 24px 20px;
        border-radius: 20px;
        gap: 24px;
    }
    .country-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .country-list-grid {
        grid-template-columns: 1fr;
    }
}

/* Секция «Интересные статьи» - 12 карточек с картинками */
/* Без боковых отступов - как блок поддержки */
.articles-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 104px;
    gap: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Один размер и формат с .countries-title (h1), как у главного заголовка статьи */
.articles-title {
    font-family: 'Caveat', cursive;
    font-style: italic;
    font-weight: 700;
    font-size: calc(2.75rem + 16px);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    color: #1A1A1A;
    margin: 0;
    align-self: stretch;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
}

/* Карточка: скругление только у картинки, текст без рамки */
.articles-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition-fast);
}

.articles-card:hover {
    opacity: 0.92;
    text-decoration: none;
    color: inherit;
}

.articles-card:hover .articles-card-title {
    color: var(--site-header-blue);
}

.articles-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e5e7eb;
    flex: none;
    overflow: hidden;
    position: relative;
    border-radius: var(--news-img-radius);
}

.articles-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-normal);
}

.articles-card:hover .articles-card-img img {
    transform: scale(1.05);
}

.articles-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 8px;
    width: 100%;
}

/* Карточки статей: Onest + акцент Caveat через .countries-title-accent (22px / 20px) */
.articles-card-title {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 22px;
    line-height: 1;
    letter-spacing: var(--letter-spacing-normal);
    color: #1A1A1A;
    margin: 0;
    transition: color var(--transition-fast);
}
.articles-card-title .countries-title-accent {
    font-family: 'Caveat', cursive;
    font-weight: 600;
    line-height: 1;
}

.articles-card-desc {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 20px;
    line-height: var(--line-height-relaxed);
    letter-spacing: var(--letter-spacing-normal);
    color: #4D4D4D;
    margin: 0;
}

@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .articles-section {
        padding: 0 0 80px;
        gap: 32px;
    }
    .articles-title {
        font-size: 2rem;
        line-height: 1.25;
    }
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
@media (max-width: 480px) {
    .articles-section {
        padding: 0 0 48px;
        gap: 24px;
    }
    .articles-title {
        font-size: 1.75rem;
    }
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Блок «Поддержи Travelguide» - картинка слева, контент справа */
.support-section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    margin: 0 0 104px;
    padding: 0;
    background: #FFFFFF;
    border-radius: 48px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 36px 48px -12px rgba(0, 0, 0, 0.08);
}

.support-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    min-height: 400px;
}

/* Обёртка картинки кота */
.support-img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 42%;
    min-width: 0;
    overflow: hidden;
}

/* Кот по центру кадра (cover): раньше был right - для нового PNG сдвигал влево */
.support-cat-img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Правый блок с контентом */
.support-block {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 56px;
    gap: 40px;
    flex: 1 1 58%;
    background: #FFFFFF;
    border-radius: 40px;
    min-width: 0;
}

.support-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.support-title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 44px;
    line-height: 53px;
    color: #1A1A1A;
    margin: 0;
}

.support-desc {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    line-height: 132%;
    letter-spacing: -0.002em;
    color: #4D4D4D;
    margin: 0;
}

/* Фиксированная высота формы - при переключении табов блок не скачет, одинаковая высота для фиата и крипты */
.support-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 460px;
}

/* Табы Обычные деньги / Криптовалюта */
.support-tabs {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 4px;
    background: #F1F1F2;
    border-radius: 9999px;
    width: 100%;
}

.support-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 9999px;
    border: none;
    background: transparent;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 16px;
    line-height: 132%;
    color: #1A1A1A;
    cursor: pointer;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.support-tab:focus-visible {
    outline: 2px solid var(--site-header-blue);
    outline-offset: 2px;
}

.support-tab-active {
    background: #FFFFFF;
    border: 0.5px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04);
}

/* Серый тег «в разработке» справа от «Обычные деньги» */
.support-tab-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    color: #6B6B6B;
    background: #E5E5E6;
    border-radius: 9999px;
}

/* Заблокированная вкладка «Обычные деньги» - донаты в валюте пока недоступны; ширина по содержимому, чтобы тег «в разработке» не обрезался */
.support-tab-disabled,
.support-tab:disabled {
    flex: 0 0 auto;
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.support-form-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 4px 0 0;
    flex: 1;
    min-height: 0;
}

/* Скрытие неактивной панели - display:flex переопределяет hidden */
.support-form-panel[hidden] {
    display: none !important;
}

/* Заблокированная панель фиата: визуально неактивна, взаимодействие отключено */
.support-form-panel-disabled {
    pointer-events: none;
    opacity: 0.6;
}

/* Сеть скрыта, если у монеты одна сеть (например, BTC) */
.support-crypto-network-row[hidden] {
    display: none !important;
}

.support-panel-desc {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: var(--font-size-sm);
    line-height: 132%;
    color: #4D4D4D;
    margin: 0;
}

.support-form-crypto {
    gap: 20px;
}

/* Крипто: ряд с лейблом (монета, сеть, адрес) */
.support-crypto-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.support-crypto-label {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    line-height: 132%;
    color: #1A1A1A;
    margin: 0;
}

.support-crypto-row .support-currency-select {
    width: 100%;
}

/* Сеть коина - выпадающий список */
.support-network-select {
    position: relative;
    width: 100%;
}

.support-network-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: var(--support-field-height);
    padding: 0 16px;
    gap: 8px;
    background: #F1F1F2;
    border: none;
    border-radius: 9999px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    color: #1A1A1A;
    cursor: pointer;
    transition: filter var(--transition-fast);
    box-sizing: border-box;
}

.support-network-trigger:hover {
    filter: brightness(0.97);
}

.support-network-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.support-network-select.is-open .support-network-chevron {
    transform: rotate(180deg);
}

.support-network-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
}

.support-network-select.is-open .support-network-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.support-network-dropdown li {
    padding: 10px 12px;
    border-radius: 12px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    color: #1A1A1A;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.support-network-dropdown li:hover {
    background: #F1F1F2;
}

/* Адрес кошелька + кнопка копирования */
.support-wallet-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    height: var(--support-field-height);
    background: #F1F1F2;
    border-radius: 9999px;
    padding: 0 4px 0 16px;
    box-sizing: border-box;
}

.support-wallet-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: none;
    background: transparent;
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 132%;
    color: #1A1A1A;
}

.support-wallet-input:focus {
    outline: none;
}

.support-wallet-copy {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 9999px;
    background: #FFFFFF;
    color: #1A1A1A;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.support-wallet-copy:hover {
    background: #E5E5E5;
}

.support-wallet-copy.support-wallet-copied {
    background: #0074FF;
    color: #FFFFFF;
}

/* Тост после копирования адреса кошелька - не блокирует UI */
.support-copy-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 12px 20px;
    background: var(--site-header-blue);
    color: #fff;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 9999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}
.support-copy-toast.support-copy-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Краткая подсказка под адресом кошелька - без блока, не дергает высоту */
.support-crypto-rules {
    margin: 8px 0 0;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 12px;
    line-height: 1.4;
    color: #707070;
}

.support-currency-icon.support-currency-btc {
    font-size: 24px;
    color: #F7931A;
    line-height: 1;
}

.support-currency-row {
    display: flex;
    gap: 16px;
}

/* Контейнер выпадающего списка валют - на всю ширину строки */
.support-currency-select {
    position: relative;
    width: 100%;
    min-width: 120px;
}

.support-currency-trigger {
    display: flex;
    align-items: center;
    height: var(--support-field-height);
    padding: 0 16px;
    gap: 8px;
    width: 100%;
    min-width: 116px;
    background: #F1F1F2;
    border: none;
    border-radius: 9999px;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 16px;
    color: #1A1A1A;
    cursor: pointer;
    transition: filter var(--transition-fast);
    box-sizing: border-box;
}

.support-currency-trigger:hover {
    filter: brightness(0.97);
}

.support-currency-trigger:focus-visible {
    outline: 2px solid var(--site-header-blue);
    outline-offset: 2px;
}

.support-currency-icon-img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.support-currency-code {
    flex: 1;
    text-align: left;
}

.support-currency-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.support-currency-select.is-open .support-currency-chevron {
    transform: rotate(180deg);
}

/* Выпадающий список */
.support-currency-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: max(100%, 140px);
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
}

.support-currency-select.is-open .support-currency-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.support-currency-dropdown li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    color: #1A1A1A;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.support-currency-dropdown li:hover {
    background: #F1F1F2;
}

.support-currency-dropdown li img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.support-currency-flag {
    display: flex;
}

.support-currency-flag svg {
    display: block;
}

/* Кнопки сумм - ряды на всю ширину, кнопки равномерно растянуты */
.support-amounts-row {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
}

.support-amount-btn {
    flex: 1;
    min-width: 0;
    padding: 0 24px;
    height: 48px;
    background: #FFFFFF;
    border: 1px solid #DADADA;
    border-radius: 9999px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    color: #0074FF;
    cursor: pointer;
    transition: filter var(--transition-fast);
}

.support-amount-btn:hover {
    filter: brightness(0.97);
}

.support-amount-btn.is-selected {
    background: #0074FF;
    border-color: #0074FF;
    color: #FFFFFF;
}

.support-once-amount.is-selected,
.support-once-amount.support-once-amount-selected {
    background: #0074FF;
    border-color: #0074FF;
    color: #FFFFFF;
}

/* 1 раз - навсегда */
.support-once-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Прижать блок «1 раз - навсегда» к низу панели обычных денег */
.support-form-fiat .support-once-row {
    margin-top: auto;
}

.support-once-title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 20px;
    line-height: 132%;
    letter-spacing: -0.002em;
    color: #1A1A1A;
    margin: 0;
}

.support-once-btns {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
}

.support-once-amount {
    padding: 0 24px;
    height: 48px;
    background: #FFFFFF;
    border: 2px solid #0074FF;
    border-radius: 9999px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    color: #0074FF;
    cursor: pointer;
}

.support-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    height: 48px;
    flex: 1;
    max-width: 372px;
    background: #0074FF;
    border: none;
    border-radius: 9999px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    color: #FFFFFF;
    cursor: pointer;
    transition: filter var(--transition-fast);
}

.support-cta-btn:hover {
    filter: brightness(1.05);
}

.support-cta-btn.support-cta-showing-amount {
    animation: supportCtaPulse 0.3s ease;
}

@keyframes supportCtaPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.support-cta-icon {
    width: 24px;
    height: 24px;
}
/* Иконка сердца: fill вместо line */
.support-cta-btn .support-cta-icon svg,
.support-cta-btn .support-cta-icon svg path {
    stroke: none;
    fill: currentColor;
}

@media (max-width: 960px) {
    .support-section {
        flex-direction: column;
        padding: 0 var(--content-gutter) 80px;
    }
    .support-inner {
        flex-direction: column;
    }
    .support-img-wrap {
        flex: none;
        min-height: 300px;
    }
    .support-block {
        padding: 40px 32px;
    }
    .support-title {
        font-size: 2rem;
        line-height: 1.25;
    }
    .support-desc {
        font-size: var(--font-size-base);
    }
}

@media (max-width: 640px) {
    .support-section {
        padding: 0 var(--content-gutter) 48px;
    }
    .support-img-wrap {
        display: none;
    }
    .support-block {
        padding: 32px 20px;
    }
    /* На мобилке табы вертикально: одна под другой, тег «в разработке» влезает в строку */
    .support-tabs {
        flex-direction: column;
        gap: 8px;
        padding: 0;
        background: transparent;
        border-radius: 0;
    }
    .support-tab {
        width: 100%;
        flex: none;
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 12px;
        background: #F1F1F2;
    }
    .support-tab-active {
        background: #FFFFFF;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04);
    }
    .support-tab-disabled {
        flex: none;
    }
    .support-title {
        font-size: 1.75rem;
    }
    .support-amounts-row {
        flex-direction: column;
    }
    .support-amount-btn {
        flex: 1;
    }
    .support-once-btns {
        flex-direction: column;
    }
    .support-cta-btn {
        max-width: none;
    }
}

/* Градиентный блок перед футером: плавный переход в цвет футера (как на главной) */
/* Градиентный переход в футер: в потоке после контента, не плавающий */
.footer-fade {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 280px;
    flex-shrink: 0;
    box-sizing: border-box;
    background: linear-gradient(
        to bottom,
        #F1F1F2 0%,
        #E8E8E8 12%,
        #D0D0D0 25%,
        #A8A8A8 42%,
        #707070 62%,
        #404040 80%,
        #1A1A1A 100%
    );
}

/* Футер: тёмный блок после поддержки по макету Figma, в потоке после контента */
.site-footer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 104px 84px 0;
    gap: 32px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 693px;
    background: #1A1A1A;
    background: color(display-p3 0.102 0.102 0.102);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 56px;
    width: 100%;
    max-width: 1056px;
}

/* Обёртка фонового лого: внизу футера, внутри границ, та же ширина что footer-content */
.footer-bg-logo-wrap {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 80px);
    width: min(1056px, 100%);
    pointer-events: none;
    display: flex;
    justify-content: center;
    text-align: center;
    container-type: inline-size;
    overflow: visible;
}

/* Навигация футера: несколько колонок ссылок */
.footer-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 1;
    max-width: 192px;
}

.footer-link {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 26px;
    letter-spacing: -0.32px;
    color: #9CA1A6;
    color: color(display-p3 0.616 0.631 0.651);
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Тег «в разработке» у недоступных ссылок футера */
.footer-link-badge {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    color: #737373;
    color: color(display-p3 0.451 0.451 0.451);
    white-space: nowrap;
}

/* Ссылки «в разработке»: некликабельны, не в фокусе, визуально приглушены */
.footer-link--in-dev {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.5;
}
.site-footer a.footer-link--in-dev:hover {
    color: #6B7280 !important;
    color: color(display-p3 0.42 0.45 0.5) !important;
}
.footer-link--in-dev .footer-link-badge {
    opacity: 0.85;
    color: #6B7280;
    color: color(display-p3 0.42 0.45 0.5);
}

/* Hover футера - белый (переопределяет .content-area a:hover) */
.site-footer a:hover {
    color: #fff !important;
}

/* Блок лого + соцсети, разделитель, ссылки, копирайт */
.footer-rules {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
}

.footer-logo-social {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-logo {
    font-family: 'SN Pro Variable', 'SN Pro', var(--font-family);
    font-size: 36px;
    line-height: 1.2;
    color: #9CA1A6;
    text-decoration: none;
    cursor: default;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

/* Старое: <a class="footer-logo"> - без клика и без белого hover от .site-footer a:hover */
.site-footer a.footer-logo {
    pointer-events: none;
    cursor: default;
    color: #9CA1A6 !important;
}
.site-footer a.footer-logo:hover,
.site-footer a.footer-logo:focus,
.site-footer a.footer-logo:focus-visible {
    color: #9CA1A6 !important;
}

.footer-logo .logo-text-trevel,
.footer-logo .logo-text-guide {
    color: inherit;
}
.footer-logo .logo-text-trevel {
    position: relative;
    display: inline-block;
    width: auto;
    height: 1.15em;
    overflow: visible;
    vertical-align: baseline;
    font-family: "SN Pro Variable", "SN Pro", var(--font-family), system-ui, sans-serif;
    font-style: normal;
    font-weight: 700;
    letter-spacing: -0.07em;
    margin-right: 0.12em;
    white-space: nowrap;
}
.footer-logo .logo-text-trevel .site-logo-t,
.footer-logo .logo-text-trevel .site-logo-ravel {
    display: none;
}
.footer-logo .logo-text-guide {
    font-family: "Caveat", "Kalam", cursive;
    font-style: normal;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer-social {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.footer-social-link {
    color: #686B6E;
    color: color(display-p3 0.412 0.420 0.427);
    transition: color var(--transition-fast);
}

.footer-social-link:hover {
    color: #fff;
}

.footer-social-link svg {
    display: block;
}

/* Соцсети в футере пока заблокированы (ещё не готовы) */
.footer-social--in-dev {
    filter: grayscale(1);
    opacity: 0.65;
    pointer-events: none;
    cursor: default;
}
.footer-social--in-dev .footer-social-link:hover {
    color: inherit;
}

/* Линия 1px - только верхняя граница */
.footer-divider {
    width: 100%;
    height: 0;
    border: none;
    border-top: 1px solid rgba(88, 92, 96, 0.2);
}

.footer-links-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-lang {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.footer-lang-flag {
    width: 23px;
    height: 16px;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.footer-lang-name {
    font-size: 12px;
    line-height: 24px;
    letter-spacing: -0.32px;
    color: #9CA1A6;
}

.footer-legal {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

.footer-legal-link {
    font-size: 14px;
    line-height: 24px;
    letter-spacing: -0.32px;
    color: #9CA1A6;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-legal-link:hover {
    color: #fff;
}

.footer-copyright {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.32px;
    color: #9CA1A6;
}

/* Декоративный логотип: очень крупный, по центру */
.footer-bg-logo {
    font-size: 24cqw;
    margin: 0 auto;
    line-height: 1.2;
    color: #fff;
    opacity: 0.03;
    white-space: nowrap;
}
.footer-bg-logo .logo-text-trevel {
    font-family: 'SN Pro Variable', 'SN Pro', var(--font-family);
    font-style: normal;
    font-weight: 800;
}
.footer-bg-logo .logo-text-guide {
    font-family: 'Caveat', 'Kalam', cursive;
    font-weight: 700;
    font-style: normal;
}

@media (max-width: 960px) {
    .site-footer {
        padding: 64px var(--content-gutter) 0;
    }
    .footer-nav {
        flex-wrap: wrap;
    }
    .footer-nav-col {
        flex: 1 1 160px;
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding: 48px max(var(--content-gutter), env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(var(--content-gutter), env(safe-area-inset-left));
    }
    /* Фоновый лого: как на десктопе, но шрифт не больше контейнера */
    .footer-bg-logo-wrap {
        width: 100%;
        padding: 0 var(--content-gutter);
        box-sizing: border-box;
        transform: translate(-50%, 60px);
        overflow: hidden;
    }
    .footer-bg-logo {
        font-size: 14cqw;
    }
    .footer-logo-social {
        flex-direction: column;
        gap: 24px;
    }
    .footer-links-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .footer-legal {
        flex-wrap: wrap;
    }
}

@media (max-width: 960px) {
    .news-layout {
        gap: 40px;
    }
    .news-grid-flow,
    .news-list-flow {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
@media (max-width: 768px) {
    .news-article-title-h2,
    .news-article-featured .news-article-title.news-article-title-h2 {
        font-size: var(--font-size-3xl);
        line-height: 1.1;
    }
}
@media (max-width: 480px) {
    .news-layout {
        gap: 32px;
    }
    .news-grid-flow {
        gap: 24px;
    }
    .news-list-flow {
        gap: 24px;
    }
    .news-article-title-h2,
    .news-article-featured .news-article-title.news-article-title-h2 {
        font-size: var(--font-size-2xl);
        line-height: 1.1;
    }
    .news-article-featured-img {
        min-height: 200px;
    }
    :root {
        --news-card-img-height: 180px;
    }
}

@media (max-width: 768px) {
    .news-subscription {
        padding: 28px 24px;
    }
    .news-subscription-badge {
        top: 28px;
        right: 24px;
    }
}
@media (max-width: 768px) {
    .news-subscription-row {
        flex-direction: column;
        align-items: stretch;
    }
    .news-subscription-btn {
        width: 100%;
    }
    .news-subscription {
        padding: 24px 20px;
        border-radius: 24px;
    }
    .news-subscription-badge {
        top: 24px;
        right: 20px;
    }
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Стили для ссылок */
a {
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    text-decoration: underline;
}

/* Блоки статей на главной: без подчёркивания при ховере */
.news-page a:hover,
.articles-section a:hover {
    text-decoration: none;
}

/* В контенте (не в header) ссылки при hover - синий. Кнопки-ссылки (shadcn Button asChild) не трогаем */
.content-area a:hover:not([data-slot="button"]) {
    color: var(--site-header-blue);
}
/* Хлебные крошки в статьях: не синий hover родительского правила */
.content-area .breadcrumbs a.breadcrumb-link:hover {
    color: var(--breadcrumb-color-hover);
}
.content-area a.podcast-btn,
.content-area a.podcast-btn:hover,
.content-area .news-subscription-btn,
.content-area .news-subscription-btn:hover,
.content-area .site-cta-btn,
.content-area .site-cta-btn:hover {
    color: #FFFFFF !important;
}

/* Блоки-иллюстрации в статье: отступы, подпись и закругление картинок */
.article-body .article-figure {
    margin: 1.75rem 0;
}
.article-body .article-figure-img {
    margin-bottom: 0.5rem;
    border-radius: 0;
    overflow: hidden;
}
.article-body .article-figure-img img {
    border-radius: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-body .article-figure-caption {
    font-size: var(--font-size-sm);
    color: var(--text-secondary, #6b7280);
    line-height: 1.4;
    margin: 0;
}

/* CTA «Выбрать страну» внутри статьи - всегда как кнопка, не как текстовая ссылка */
.article-body .site-cta-btn,
.content-body .site-cta-btn {
    display: inline-flex;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* ========== Газетная вёрстка страниц статей (как в популярных изданиях) ========== */
.content-main:has(.article-body) {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
    display: grid;
    grid-template-columns: minmax(0, 42rem) 200px;
    gap: 0 2.5rem;
    align-items: start;
}

.content-main:has(.article-body) .content-header {
    grid-column: 1 / -1;
}

.content-main:has(.article-body) .news-article-featured-img--article {
    grid-column: 1 / -1;
}

/* Обёртка оглавления: reserve space in grid, toc uses fixed for reliable float */
.content-main:has(.article-body) .article-toc-wrap {
    grid-column: 2;
    grid-row: 3;
    align-self: stretch;
}

.content-main:has(.article-body) .article-toc {
    grid-column: unset;
    grid-row: unset;
}

.content-main:has(.article-body) .content-body.article-body {
    grid-column: 1;
    grid-row: 3;
}

.content-main:has(.article-body) .article-related {
    grid-column: 1 / -1;
    grid-row: 4;
}

/* Оглавление статьи: sticky, в правой колонке рядом с article-body (не fixed - не наезжать на заголовок) */
.article-content-html .article-toc {
    position: sticky;
    top: calc(var(--site-header-height) + 2rem);
    padding: 1.25rem 0;
}

/* Родители TOC: overflow:visible - иначе sticky не срабатывает */
.article-content-html {
    overflow: visible;
}

.article-toc {
    position: sticky;
    top: 2rem;
    padding: 1.25rem 0;
}

/* Как у «Читайте также»: Caveat, курсив, цвет заголовка; только первая буква заглавная */
.article-toc-title {
    font-family: 'Caveat', cursive;
    font-style: italic;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
}

.article-toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.article-toc-nav a {
    font-family: var(--font-family);
    font-size: 0.875rem;
    line-height: 1.35;
    color: var(--text-primary);
    overflow-wrap: break-word;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.article-toc-nav a:hover {
    color: var(--site-header-blue);
}

.content-main:has(.article-body) .content-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

/* Заголовок статьи как на главной: размер и акцент другим шрифтом (Caveat), «воздух» для читаемости */
.content-main:has(.article-body) .content-header .countries-title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 2.75rem;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.05;
    letter-spacing: 0.01em;
    color: #1A1A1A;
    margin-bottom: 0.75rem;
}

.content-main:has(.article-body) .content-header .countries-title .countries-title-accent {
    font-family: 'Caveat', cursive;
    font-style: italic;
    font-weight: 600;
    font-size: calc(1em + 16px);
    letter-spacing: 0.02em;
    line-height: 1;
}

.content-main:has(.article-body) .content-subtitle {
    font-family: var(--font-family);
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--text-secondary);
    overflow-wrap: break-word;
    word-break: break-word;
    font-weight: 400;
}

.content-main:has(.article-body) .news-article-featured-img--article {
    margin-bottom: 2.5rem;
    border-radius: var(--news-img-radius);
}

.content-main:has(.article-body) .article-body {
    font-family: var(--font-family);
    font-size: 1.125rem;
    line-height: 1.75;
    overflow-wrap: break-word;
    word-break: break-word;
    color: #1c1c1c;
    text-align: left;
}

.content-main:has(.article-body) .article-body p {
    margin-bottom: 1.25em;
}

.content-main:has(.article-body) .article-body > p:first-of-type {
    font-size: 1.1875rem;
    line-height: 1.7;
}

/* Буквица в первом абзаце - шрифт как у H1 (Caveat), больше «воздуха» */
.content-main:has(.article-body) .article-body > p:first-of-type::first-letter {
    float: left;
    font-family: 'Caveat', cursive;
    font-style: italic;
    font-weight: 700;
    font-size: 4rem;
    line-height: 0.85;
    margin-right: 0.9rem;
    margin-top: 0.12em;
    padding-right: 0.2em;
    color: #1a1a1a;
}

.content-main:has(.article-body) .article-body h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: #1a1a1a;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.content-main:has(.article-body) .article-body h2:first-of-type {
    margin-top: 0;
}

.content-main:has(.article-body) .article-body strong {
    font-weight: 600;
}

/* Блоки «название - текст» с отступом между ними */
.content-main:has(.article-body) .article-body .article-body-block {
    margin-bottom: 2rem;
}
.content-main:has(.article-body) .article-body .article-body-block:last-child {
    margin-bottom: 0;
}
.content-main:has(.article-body) .article-body .article-body-block__title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35em;
}
.content-main:has(.article-body) .article-body .article-body-block p {
    margin-bottom: 0;
}

.content-main:has(.article-body) .article-figure {
    margin: 2.25rem 0;
}

.content-main:has(.article-body) .article-figure-img {
    border-radius: 0;
    overflow: hidden;
}
.content-main:has(.article-body) .article-figure-img img {
    max-width: 100%;
    height: auto;
}

.content-main:has(.article-body) .article-figure-caption {
    font-family: var(--font-family);
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #6b7280;
    margin-top: 0.5rem;
    padding-left: 2px;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Вертикальный ритм статей на мобилке - компактнее, меньше «воздуха» */
@media (max-width: 768px) {
    .content-wrapper:has(.content-main) .breadcrumbs {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        font-size: var(--font-size-xs);
        line-height: 1.4;
    }
    .content-main:has(.article-body) .content-header {
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
    }
    .content-main:has(.article-body) .content-header .countries-title {
        font-size: var(--font-size-3xl);
        line-height: 1.05;
        margin-bottom: 0.5rem;
    }
    .content-main:has(.article-body) .content-subtitle {
        margin-top: 0;
        font-size: 1.0625rem;
        line-height: 1.45;
    }
    .content-main:has(.article-body) .article-body {
        font-size: 1rem;
        line-height: 1.6;
    }
    .content-main:has(.article-body) .article-body > p:first-of-type {
        font-size: 1.0625rem;
        line-height: 1.55;
    }
    .content-main:has(.article-body) .article-body h2 {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    .content-main:has(.article-body) .article-figure-caption {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    .content-main:has(.article-body) .news-article-featured-img--article {
        margin-bottom: 1rem;
        border-radius: var(--news-img-radius);
    }
    .content-main:has(.article-body) .article-toc {
        margin-bottom: 1rem;
        padding: 0.75rem 0;
    }
    .content-main:has(.article-body) .article-body p {
        margin-bottom: 1em;
    }
    .content-main:has(.article-body) .article-body h2 {
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }
    .content-main:has(.article-body) .article-figure {
        margin: 1.25rem 0;
    }
    .content-main:has(.article-body) .article-related {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    .content-main:has(.article-body) .article-related-title {
        font-size: var(--font-size-3xl);
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    .content-main:has(.article-body) .article-toc-nav a {
        font-size: 0.8125rem;
        line-height: 1.4;
    }
    .content-main:has(.article-body) .article-body > p:first-of-type::first-letter {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .content-wrapper:has(.content-main) .breadcrumbs {
        margin-bottom: 0.75rem;
        padding-bottom: 0.375rem;
        font-size: var(--font-size-xs);
    }
    .content-main:has(.article-body) .content-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    .content-main:has(.article-body) .content-header .countries-title {
        font-size: var(--font-size-2xl);
        line-height: 1.05;
        margin-bottom: 0.375rem;
    }
    .content-main:has(.article-body) .content-subtitle {
        font-size: 1rem;
        line-height: 1.45;
    }
    .content-main:has(.article-body) .article-body {
        font-size: 0.9375rem;
        line-height: 1.55;
    }
    .content-main:has(.article-body) .article-body > p:first-of-type {
        font-size: 1rem;
        line-height: 1.5;
    }
    .content-main:has(.article-body) .article-body h2 {
        font-size: 1.125rem;
        line-height: 1.3;
    }
    .content-main:has(.article-body) .news-article-featured-img--article {
        margin-bottom: 0.75rem;
    }
    .content-main:has(.article-body) .article-toc {
        margin-bottom: 0.75rem;
        padding: 0.5rem 0;
    }
    .content-main:has(.article-body) .article-body h2 {
        margin-top: 1.25rem;
        margin-bottom: 0.5rem;
    }
    .content-main:has(.article-body) .article-figure {
        margin: 1rem 0;
    }
    .content-main:has(.article-body) .article-related {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }
    .content-main:has(.article-body) .article-related-title {
        font-size: var(--font-size-2xl);
        line-height: 1.25;
        margin-bottom: 0.75rem;
    }
    .content-main:has(.article-body) .article-toc-nav a {
        font-size: 0.8125rem;
        line-height: 1.4;
    }
}
@media (max-width: 360px) {
    .content-main:has(.article-body) .content-header .countries-title {
        font-size: var(--font-size-xl);
        line-height: 1.02;
    }
    .content-main:has(.article-body) .article-body > p:first-of-type::first-letter {
        font-size: 2rem;
        margin-right: 0.5rem;
    }
}

/* Таблицы в статьях/гайдах: на мобилке - горизонтальный скролл, не ломать layout */
@media (max-width: 768px) {
    .content-main .guide-table {
        min-width: 0;
        display: block;
        overflow-x: auto;
    }
}
/* ad-header может тянуть min-width: 300px - сбрасываем на мобилке */
@media (max-width: 768px) {
    .ad-header {
        min-width: 0;
    }
}

/* На узких экранах - оглавление над статьёй, одна колонка */
@media (max-width: 900px) {
    .content-main:has(.article-body) {
        grid-template-columns: 1fr;
        min-width: 0;
        max-width: 100%;
        width: 100%;
        overflow-wrap: break-word;
    }
    .content-main:has(.article-body) .content-body.article-body,
    .content-main:has(.article-body) .article-toc-wrap,
    .content-main:has(.article-body) .content-header {
        min-width: 0;
    }
    .content-main:has(.article-body) .article-toc-wrap {
        grid-column: 1;
        grid-row: 3;
        max-height: none;
    }
    .article-content-html .article-toc {
        position: static;
        top: unset;
        margin-bottom: 1.5rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    .content-main:has(.article-body) .content-body.article-body {
        grid-column: 1;
        grid-row: 4;
    }
    .content-main:has(.article-body) .article-related {
        grid-row: 5;
    }
}

/* Блок «Читайте также» - карточки-ссылки на другие статьи */
.article-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Как у акцента в H1: Caveat, курсив, цвет заголовка */
.article-related-title {
    font-family: 'Caveat', cursive;
    font-style: italic;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    color: #1a1a1a;
    margin-bottom: 1.25rem;
}

.content-main:has(.article-body) .article-related-title {
    font-size: 2.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #1a1a1a;
    line-height: 1.2;
}

.article-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.article-related-list li {
    margin: 0;
    padding: 0;
    align-self: flex-start;
}

.article-related-list a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: auto;
    max-width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    color: #1a1a1a;
    text-decoration: none;
    background: var(--bg-secondary);
    border-radius: 9999px;
    border: none;
    transition: color var(--transition-fast);
}

.article-related-list a:hover {
    color: var(--site-header-blue);
}


/* Стили для выделения текста */
::selection {
    background: rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
}

/* Анимация загрузки */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Улучшенные стили для кода */
code {
    background: var(--bg-tertiary);
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}

pre {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 1rem 0;
}

pre code {
    background: none;
    padding: 0;
}

/* Стили для таблиц */
/* Обёртка для горизонтального скролла: использовать для широких таблиц в контенте */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
}
.table-responsive table {
    margin: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

tr:hover {
    background: var(--bg-secondary);
}

/* Дополнительные стили для улучшения UX */
.nav-link:focus {
    outline: none;
}

.search-box input:focus,
.back-to-top:focus {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 280px;
    }
}

@media (min-width: 769px) {
    .content-area {
        flex: 1;
        width: 100%;
    }
}

/* Увеличенная ширина контента на десктопе - не перетирать главную/статьи (:has задаёт 960px) */
@media (min-width: 1224px) {
    .content-wrapper:not(:has(.news-page)):not(:has(.breadcrumbs)):not(:has(.article-content-html)) {
        max-width: 1440px;
    }
}

@media (max-width: 768px) {
    .content-area {
        width: 100%;
    }
    
    body {
        padding-bottom: 70px;
    }
    
    /* Не трогать главную/статьи/marketing - у них свои отступы (:has), иначе «двойной» padding */
    .content-wrapper:not(:has(.news-page)):not(:has(.breadcrumbs)):not(:has(.article-content-html)):not(:has(.marketing-page)) {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .content-wrapper:not(:has(.marketing-page)) {
        padding: 1rem;
    }
    
    .header-content h1 {
        font-size: var(--font-size-2xl);
    }
    
    .header-content p {
        font-size: var(--font-size-base);
    }
}

/* Стили для навигационного меню */

/* Левая навигация */
.navigation-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    flex-shrink: 0;
    overflow: hidden;
}

.nav-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-primary);
}

.nav-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.nav-header a {
    display: flex;
    align-items: center;
}

.nav-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-content::-webkit-scrollbar {
    display: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: var(--font-size-xl);
    cursor: pointer;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.nav-toggle:hover {
    color: var(--primary-color);
}

/* Поиск */
.search-box {
    position: relative;
    margin: 1rem;
    margin-bottom: 0;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    background: transparent;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
}

.search-icon-img {
    width: 16px;
    height: 16px;
}

/* Навигационное меню */
.nav-menu {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-item {
    margin: 0.125rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    text-decoration: none !important;
    color: var(--text-secondary) !important;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    background: var(--bg-secondary);
    color: var(--text-primary) !important;
    text-decoration: none !important;
}

.nav-link.active {
    color: var(--text-primary) !important;
    font-weight: 500;
    text-decoration: none !important;
}

.nav-icon {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

.nav-text {
    flex: 1;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.badge-vip {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    margin-left: 0.25rem;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.nav-arrow {
    transition: transform var(--transition-fast);
}

.nav-arrow .arrow-icon {
    width: 12px;
    height: 12px;
    transition: transform var(--transition-fast);
    display: block;
}

/* Подменю */
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.nav-item.has-submenu.open .submenu {
    max-height: 400px;
}

.nav-item.has-submenu.open .nav-arrow .arrow-icon {
    transform: rotate(90deg);
}

.submenu-link {
    display: block;
    padding: 0.5rem 1.5rem 0.5rem 3.5rem;
    text-decoration: none !important;
    color: var(--text-secondary) !important;
    font-size: var(--font-size-xs);
    transition: color var(--transition-fast);
}

.submenu-link:hover {
    color: var(--text-primary) !important;
    background: var(--bg-secondary);
    text-decoration: none !important;
}

.submenu-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
    background: #eff6ff !important;
}

/* Под-подменю (третий уровень) */
.submenu-item.has-subsubmenu .submenu-link {
    position: relative;
}

.submenu-arrow {
    transition: transform var(--transition-fast);
    margin-left: auto;
}

.submenu-arrow .arrow-icon {
    width: 10px;
    height: 10px;
    transition: transform var(--transition-fast);
}

.submenu-item.has-subsubmenu.open .submenu-arrow .arrow-icon {
    transform: rotate(90deg);
}

.subsubmenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--bg-primary);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    border-left: 2px solid var(--border-color);
}

.submenu-item.has-subsubmenu.open .subsubmenu {
    max-height: 400px;
}

.subsubmenu-link {
    display: block;
    padding: 0.5rem 1.5rem 0.5rem 3.5rem;
    text-decoration: none !important;
    color: var(--text-muted) !important;
    font-size: var(--font-size-xs);
    transition: all var(--transition-fast);
    position: relative;
}

.subsubmenu-link:hover {
    color: var(--text-primary) !important;
    background: var(--bg-secondary);
    text-decoration: none !important;
}

.subsubmenu-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
    background: #eff6ff !important;
}

/* Переключение языка */
.language-switcher {
    position: fixed;
    bottom: 0;
    left: 0;
    width: var(--sidebar-width);
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    z-index: 1000;
}

.language-select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-normal);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e40af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.language-select:hover {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
}

.language-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.language-select option {
    padding: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Анимации для уведомлений о языке */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Адаптивные стили для трехуровневой навигации */
@media (max-width: 768px) {
    .subsubmenu {
        border-left: none;
        background: var(--bg-primary);
    }
    
    .subsubmenu-link {
        padding-left: 5rem;
    }
    
    .subsubmenu-link::before {
        left: 4rem;
    }
    
    .subsubmenu-link:hover {
        padding-left: 5.5rem;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-content {
        display: none;
    }
    
    .nav-content.open {
        display: block;
    }
    
    /* Адаптивные стили для переключателя языка */
    .language-switcher {
        padding: 0.75rem;
        width: 100%;
    }
    
    .language-select {
        font-size: var(--font-size-xs);
        padding: 0.5rem;
        padding-right: 2rem;
    }
}

/* Стили для рекламных блоков */

/* Рекламные блоки */
.ads-container {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: none;
}

.ad-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-primary);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    margin: 1rem auto;
    transition: all var(--transition-normal);
}

.ad-banner:hover {
    border-color: var(--primary-color);
    background: var(--bg-secondary);
}

.ad-header {
    flex: 1;
    height: 150px;
    margin: 0;
    min-width: 300px;
    max-width: none;
    width: 100%;
}

.ad-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border-radius: var(--border-radius);
}

.ad-content {
    text-align: center;
    color: var(--text-secondary);
}

.ad-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-text {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.ad-description {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* Адаптивные рекламные блоки */
@media (max-width: 768px) {
    .ads-container {
        gap: 0.5rem;
        padding: 0.5rem;
        flex-direction: column;
    }
    
    .ad-header {
        width: 100%;
        height: 120px;
        min-width: auto;
        max-width: none;
        flex: 1 1 100%;
    }
    
    .ad-text {
        font-size: var(--font-size-xs);
    }
    
    .ad-description {
        display: none;
    }
}

/* Стили для основного контента */

/* ========== Хлебные крошки (статьи/HTML: .breadcrumb-link + .breadcrumb-current) ========== */
.breadcrumbs {
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: none;
    font-size: var(--font-size-sm);
    color: var(--breadcrumb-color);
    overflow-wrap: break-word;
    word-break: break-word;
}

.guide-hero .breadcrumbs {
    border-bottom: none;
    padding-bottom: 0;
}

.breadcrumb-link {
    color: var(--breadcrumb-color);
    text-decoration: none;
    font-size: inherit;
    transition: color var(--transition-fast);
}

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

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--breadcrumb-separator-color);
    font-size: inherit;
    user-select: none;
}

.breadcrumb-current {
    color: var(--breadcrumb-current-color);
    font-size: inherit;
    font-weight: 600;
}

/* Основной контент */
.content-main {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-header {
    margin-bottom: 2rem;
}

.content-header h1 {
    font-family: var(--font-serif);
    font-size: 2.75rem;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #1A1A1A;
    margin-bottom: 0.5rem;
}

/* Заголовок в стиле «Гайды по странам»: Caveat + подчёркивание (напр. Полезные Сервисы) */
.content-header h1.countries-title {
    font-family: 'Caveat', cursive;
    font-style: italic;
    font-size: calc(2.75rem + 16px);
    display: block;
}

.countries-title-flag {
    vertical-align: middle;
    margin-right: 4px;
    height: 1em;
    width: auto;
}

.content-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    font-weight: 400;
}

.content-body {
    line-height: 1.7;
}

/* Группы секций на странице еды: визуальное разделение блоков (кафе, доставка, рестораны, продукты, фрукты) */
.content-body__group {
    padding-top: 1.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.content-body__group:first-child {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

.content-section {
    margin-bottom: 3rem;
}

/* Маленькие прямоугольные картинки под текстом секции (например, еда) */
.content-section-images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.content-section-images img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

/* Ссылка-увеличение: клик открывает картинку в полном размере в новой вкладке */
.content-section-images__link {
    display: block;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
}

.content-section-images__link:hover img {
    opacity: 0.9;
}

.content-section-images__link img {
    transition: opacity 0.2s ease;
}

/* Гайд-страницы: заголовки секций в стиле главной (как country-list-title) */
.content-main.guide-page {
    padding-left: 0;
    padding-right: 0;
}

.content-main.guide-page .content-header {
    margin-bottom: 1.5rem;
}

.content-main.guide-page .content-section h2 {
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: none;
}

.content-main.guide-page .content-section {
    margin-bottom: 2.5rem;
}
/* Визуальное разделение между секциями: граница сверху (кроме первой) */
.content-main.guide-page .content-section + .content-section {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Определения без маркеров: жирный заголовок + отступ для описания */
.content-def-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.content-def-item {
    margin-bottom: 1rem;
}
.content-def-item:last-child {
    margin-bottom: 0;
}
.content-def-item > p:first-child {
    margin: 0 0 0.25rem;
    font-weight: 600;
}
.content-def-item > p:last-child {
    margin: 0;
}
.content-def-list > p {
    margin-bottom: 0.75rem;
}
.content-def-list > p:last-child {
    margin-bottom: 0;
}

/* Красота и здоровье (wellness): визуальное разделение блоков по услугам, заголовки услуга/город */
.content-body--wellness .content-section--intro {
    margin-bottom: 2rem;
}
.content-body--wellness .content-section--intro .content-section__lead {
    font-size: 1.0625rem;
    color: var(--text-primary, #1A1A1A);
    margin-bottom: 0.75rem;
}
.content-body--wellness .content-section--block {
    padding-top: 1.75rem;
    margin-top: 0;
    margin-bottom: 1.75rem;
    border-top: 1px solid var(--border-color);
}
.content-body--wellness .content-section--block:first-of-type {
    padding-top: 0;
    border-top: none;
}
.content-body--wellness .content-section--block:last-child {
    margin-bottom: 0;
}
.content-body--wellness .content-section__title {
    font-family: var(--font-family);
    font-size: 1.25rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}
.content-body--wellness .content-section__city {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-secondary);
    margin: 1rem 0 0.5rem;
    letter-spacing: 0.02em;
}
.content-body--wellness .content-section--block p {
    margin-bottom: 0.75rem;
}
.content-body--wellness .content-section--block p:last-child {
    margin-bottom: 0;
}

/* Лента личных историй 18+: газетная колонка (feature story), не карточки разделов */
.guide-stories {
    max-width: 38rem;
    margin: 0 auto 0 0;
}
.guide-stories__masthead {
    margin: 0 0 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid currentColor;
}
.guide-stories__kicker {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.7;
}
.guide-stories__deck {
    margin: 0 0 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid currentColor;
    font-size: 1.05rem;
    line-height: 1.55;
    text-wrap: pretty;
}
.guide-story {
    margin: 0 0 3rem;
    padding: 0 0 2.5rem;
    border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}
.guide-story:last-of-type {
    border-bottom: none;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
}
.guide-story__meta {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.65;
}
.guide-story__number {
    font-weight: 700;
    opacity: 1;
}
.guide-story__headline {
    margin: 0 0 0.75rem !important;
    font-family: "IBM Plex Serif", "Times New Roman", Times, serif !important;
    font-size: clamp(1.45rem, 2.4vw, 1.85rem) !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.guide-story__byline {
    margin: 0 0 1.35rem;
    font-size: 0.875rem;
    opacity: 0.75;
}
.guide-story__body {
    font-size: 1.0625rem;
    line-height: 1.7;
}
.guide-story__body > p {
    margin: 0 0 1.05rem;
    text-wrap: pretty;
}
.guide-story__body > p:last-child {
    margin-bottom: 0;
}
.guide-story__body > p:first-of-type::first-letter {
    float: left;
    margin: 0.08em 0.12em 0 0;
    font-family: "IBM Plex Serif", "Times New Roman", Times, serif;
    font-size: 3.25rem;
    font-weight: 600;
    line-height: 0.85;
}
.guide-story__pull {
    margin: 1.5rem 0;
    padding: 0.35rem 0 0.35rem 1rem;
    border-left: 3px solid currentColor;
    font-family: "IBM Plex Serif", "Times New Roman", Times, serif;
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.45;
}
.guide-story__footnote {
    margin: 1.5rem 0 0;
    padding-top: 1rem;
    border-top: 1px dotted color-mix(in srgb, currentColor 28%, transparent);
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.85;
}
.guide-stories__further {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid currentColor;
}
.guide-stories__further-title {
    margin: 0 0 0.75rem !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}
.guide-stories__further ul {
    margin: 0;
    padding-left: 1.15rem;
}
.guide-stories__further li {
    margin-bottom: 0.45rem;
}
.guide-stories__submit {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Одна гармошка: один блок с несколькими пунктами, открыт только один */
.guide-accordion {
    margin-bottom: 2rem;
    border: none;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.content-body > .guide-accordion:last-child {
    margin-bottom: 0;
}

.guide-accordion__item {
    border: none;
    border-radius: 32px;
    margin: 0;
    padding: 16px;
    background: #F7F7F7;
}

.guide-accordion__item:first-child {
    border-top: none;
}

.guide-accordion__title {
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 700;
    padding: 16px 48px 16px 16px;
    cursor: pointer;
    list-style: none;
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #F7F7F7;
    transition: background 0.2s ease;
    position: relative;
}

.guide-accordion__title::-webkit-details-marker {
    display: none;
}

.guide-accordion__arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 20px;
    height: 20px;
    color: currentColor;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.guide-accordion__item[open] .guide-accordion__arrow {
    transform: translateY(-50%) rotate(180deg);
}

.guide-accordion__arrow svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.guide-accordion__title:hover {
    background: #F7F7F7;
}

.guide-accordion__body {
    padding: 0 20px 16px;
    border-top: none;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.guide-accordion__item:not([open]) .guide-accordion__body {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.guide-accordion__item[open] .guide-accordion__body {
    max-height: 5000px;
}

.guide-accordion__body p {
    margin: 16px 0 0;
    font-size: var(--font-size-sm);
    line-height: 1.5;
    color: var(--text-primary);
}

.guide-accordion__body p:first-child {
    margin-top: 16px;
}

.guide-accordion__body ol {
    margin: 16px 0 0;
    padding-left: 1.5em;
    font-size: var(--font-size-sm);
    line-height: 1.5;
    color: var(--text-primary);
}

.guide-accordion__body ol li {
    margin-top: 0.5em;
}

.guide-accordion__body h2 {
    margin: 1.25em 0 0;
    font-size: 1em;
    font-weight: 700;
    color: var(--text-primary);
}

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

.guide-accordion__body h3 {
    margin: 1em 0 0;
    font-size: 0.95em;
    font-weight: 700;
    color: var(--text-primary);
}

.guide-accordion__body ul {
    margin: 12px 0 0;
    padding-left: 1.5em;
    font-size: var(--font-size-sm);
    line-height: 1.5;
    color: var(--text-primary);
}

.guide-accordion__body ul li {
    margin-top: 0.35em;
}

.guide-accordion__body .guide-accordion__media {
    margin: 1rem 0 0;
}

.guide-accordion__body .guide-accordion__media img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Лайтбокс: клик по картинке - увеличение, закрытие по кнопке/фону/Escape */
.guide-img-lightbox {
    /* Legacy-гайды тоже должны сжимать media до ширины текстовой колонки. */
    display: block;
    max-width: 100%;
    height: auto;
    cursor: pointer;
}

.guide-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.guide-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.guide-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.guide-lightbox__inner {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-lightbox__img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.guide-lightbox__close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    z-index: 10001;
}

.guide-lightbox__close:hover {
    opacity: 0.8;
}

.guide-lightbox__close svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

/* Блок «Важно»: полное закругление, овальная линия слева внутри (без border-left) */
.guide-notice {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px 20px 28px;
    margin: 0 0 2rem;
    background: #F7F7F7;
    border: none;
    border-radius: 24px;
    box-sizing: border-box;
}

.guide-notice::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 16px;
    bottom: 16px;
    width: 4px;
    background: #1A1A1A;
    border-radius: 999px;
}

.guide-notice__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EBEBEB;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1;
}

.guide-notice__icon svg {
    width: 18px;
    height: 18px;
    color: #1A1A1A;
}

.guide-notice__body {
    flex: 1;
    min-width: 0;
}

.guide-notice__label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #525252;
    margin-bottom: 6px;
}

.guide-notice__text {
    font-size: 15px;
    line-height: 1.6;
    color: #1A1A1A;
    margin: 0;
}

.guide-notice__text + .guide-notice__text {
    margin-top: 0.85rem;
}

.guide-notice__text strong {
    font-weight: 600;
    color: #0A0A0A;
}

.guide-notice a {
    color: #1A1A1A;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

.guide-notice a:hover {
    color: #0A0A0A;
}

/* В гайде сетка карточек - как на странице сервисов */
.content-main.guide-page .concept-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
    margin: 1rem 0 0;
}

.content-main.guide-page .concept-grid .concept-card-link:only-child {
    grid-column: 1 / -1;
}

/* Компоновка: иконка слева по центру, справа столбец заголовок + описание */
.content-main.guide-page .concept-card-link {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 24px;
    padding: 16px;
    min-height: 88px;
    box-sizing: border-box;
    background: #F7F7F7;
    border-radius: 28px;
    border: none;
    text-align: left;
    text-decoration: none;
    color: inherit;
    transition: background var(--transition-fast);
}

.content-main.guide-page .concept-card-link:hover {
    background: #EEEEEE;
    transform: none;
}

.content-main.guide-page .concept-card-link .concept-icon {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: center;
    font-size: 1.5rem;
    margin-bottom: 0;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.content-main.guide-page .concept-card-link h3 {
    grid-column: 2;
    grid-row: 1;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 16px;
    line-height: 132%;
    color: #1A1A1A;
    margin: 0 0 2px;
}

.content-main.guide-page .concept-card-link p {
    grid-column: 2;
    grid-row: 2;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .content-main.guide-page .concept-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .content-main.guide-page .concept-grid {
        grid-template-columns: 1fr;
    }
}

.content-section h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem;
}

/* Подзаголовки городов в блоке «Рестораны» - меньший шрифт */
.content-section--restaurants h3 {
    font-size: var(--font-size-lg);
}

.content-section p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.content-section ol,
.content-section ul {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.content-section li {
    margin-bottom: 0.5rem;
}

.content-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.content-section a:hover {
    color: var(--site-header-blue);
    text-decoration: underline;
}

.content-section a:visited {
    color: #6366f1;
}

/* Таблица гидов на странице туризма: обёртка с горизонтальным скроллом на мобильных */
.guide-table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
    -webkit-overflow-scrolling: touch;
}

.guide-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.guide-table th,
.guide-table td {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
}

.guide-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.guide-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.guide-table a {
    color: var(--primary-color);
}

.guide-table a:hover {
    text-decoration: underline;
}

/* Фильтры и карточки гидов (блоки как страны) */
.guide-filters {
    margin: 1.5rem 0 1.75rem;
}
/* Плоский ряд чипов как CalcChipGroup на главной */
.guide-filters--city {
    margin: 0.25rem 0 1.25rem;
}
.guide-filters--city .guide-filters-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.guide-filters--city .guide-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 9999px;
    border: 2px solid transparent;
    background: #f4f4f5; /* zinc-100 */
    color: var(--text-primary, #0c131d);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.guide-filters--city .guide-chip:hover {
    background: #e4e4e7; /* zinc-200 */
}
.guide-filters--city .guide-chip:has(.guide-chip-input:checked) {
    background: #fff;
    border-color: var(--brand, var(--site-header-blue));
    color: var(--text-primary, #0c131d);
}
.guide-filters--city .guide-chip:has(.guide-chip-input:checked):hover {
    background: #fff;
    border-color: var(--brand-hover, var(--brand, var(--site-header-blue)));
}
.guide-filters--city .guide-chip-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    pointer-events: auto;
    cursor: pointer;
}
/* [hidden] из @layer base проигрывает unlayered display — нужен !important */
.guide-page [data-city][hidden],
.country-guide-html [data-city][hidden] {
    display: none !important;
}
.guide-filters-inner {
    background: #F5F5F5;
    border-radius: 32px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.guide-filters-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}
.guide-filters-label {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    flex: 0 0 72px;
    min-width: 72px;
}
.guide-filters-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.guide-chip {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 9999px;
    background: #fff;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.guide-chip:hover {
    background: #FAFAFA;
}
.guide-chip-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.guide-chip:has(.guide-chip-input:checked) {
    background: var(--site-header-blue);
    color: #fff;
}
.guide-chip span {
    pointer-events: none;
}
.guide-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 0 0 1.5rem;
}
.guide-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    background: #F7F7F7;
    border-radius: 28px;
    padding: 24px;
    box-sizing: border-box;
    transition: background var(--transition-fast);
}
.guide-card:hover {
    background: #EEEEEE;
}
.guide-card__avatar {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #EBEBEB;
}
.guide-card__avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #EBEBEB;
}
.guide-card__avatar-placeholder svg {
    width: 24px;
    height: 24px;
    stroke: #9CA3AF;
}
.guide-card__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.guide-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.guide-card__header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.guide-card__row {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-secondary);
}
.guide-card__row--name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.0625rem;
    line-height: 1.35;
}
.guide-card__row--contacts {
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-secondary);
}
.guide-card__meta {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.9;
}
.guide-card__row--price {
    font-size: 0.875rem;
    color: var(--text-primary);
}
.guide-card__row--comment {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-secondary);
}
.guide-card__row--reviews {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--text-secondary);
}
.guide-card__label {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 0.35em;
}
.guide-card a {
    color: var(--primary-color);
}
.guide-card a:hover {
    text-decoration: underline;
}
.guide-cards-empty {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0 0 1rem;
}

@media (max-width: 520px) {
    .guide-filters-inner {
        padding: 16px 18px;
        gap: 16px;
    }
    .guide-filters-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .guide-filters-label {
        flex: none;
        min-width: 0;
    }
    .guide-card {
        padding: 20px;
        gap: 18px;
    }
    .guide-card__avatar {
        width: 64px;
        height: 64px;
    }
}

/* Адаптив страницы «Впечатления, гид, туризм» (guide-cards, фильтры, контент) */
@media (max-width: 480px) {
    .guide-page#tourism .content-header .countries-title,
    .guide-page#tourism .content-header h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    .guide-page#tourism .content-subtitle {
        font-size: 0.9375rem;
    }
    .guide-page#tourism .guide-filters-inner {
        padding: 14px 12px;
        gap: 14px;
        border-radius: 20px;
    }
    .guide-page#tourism .guide-filters-label {
        font-size: 12px;
    }
    .guide-page#tourism .guide-chip {
        padding: 8px 14px;
        font-size: 13px;
    }
    .guide-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 18px 16px;
        gap: 14px;
        border-radius: 20px;
        min-height: unset;
    }
    .guide-card__body {
        align-items: center;
        text-align: center;
    }
    .guide-card__header {
        align-items: center;
    }
    .guide-card__row--contacts,
    .guide-card__row--price,
    .guide-card__row--comment {
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .guide-card__meta {
        font-size: 12px;
    }
}
@media (max-width: 380px) {
    .guide-page#tourism .content-header .countries-title,
    .guide-page#tourism .content-header h1 {
        font-size: 1.35rem;
    }
    .guide-card {
        padding: 14px 12px;
    }
}
.guide-hero .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0;
}
.guide-hero .breadcrumb-link,
.guide-hero .breadcrumb-current {
    word-break: break-word;
}
@media (max-width: 480px) {
    .guide-hero .breadcrumbs {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
    }
}
.content-section .link-list {
    overflow-wrap: break-word;
    word-break: break-word;
}
.content-section .link-list a {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Карточки сервисов - как блоки со странами: сетка + иконка в каждом блоке */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 24px;
    width: 100%;
    margin: 0 0 1.5rem;
}

.service-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 16px;
    gap: 24px;
    width: 100%;
    min-width: 0;
    min-height: 88px;
    box-sizing: border-box;
    background: #F7F7F7;
    border-radius: 28px;
    text-decoration: none;
    color: inherit;
    transition: background var(--transition-fast);
}

.service-card:hover {
    background: #EEEEEE;
    text-decoration: none;
    color: inherit;
}

.service-card-icon {
    width: 41px;
    height: 40px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--site-header-blue);
}

.service-card-icon svg {
    width: 24px;
    height: 24px;
}

.service-card-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.service-card-name {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 16px;
    line-height: 132%;
    color: #1A1A1A;
}

.service-card-desc {
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Карточка только с названием (без .service-card-text) */
.service-card:not(:has(.service-card-text)) .service-card-name {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}
.content-section-desc {
    margin: -0.5rem 0 0.75rem;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* Информационные блоки */
.info-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
}

.info-icon {
    font-size: var(--font-size-xl);
    margin-right: 1rem;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.info-content p {
    color: var(--text-secondary);
    margin: 0;
}

.info-content p + p {
    margin-top: 0.75rem;
}

.info-box-warning {
    border-left: 4px solid #e6a800;
    background: rgba(230, 168, 0, 0.06);
}
.step-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--font-size-sm);
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-secondary);
    margin: 0;
}

/* Сетка концепций */
.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.concept-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-fast);
}

.concept-card:hover {
    transform: translateY(-2px);
    border-color: var(--text-primary);
}

.concept-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Иконки Lucide внутри .concept-icon - размер по контексту */
.concept-icon svg {
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

.concept-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.concept-card p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin: 0;
}

/* Карточка как ссылка: вся область кликабельна, без подчёркивания */
a.concept-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

a.concept-card-link:hover {
    text-decoration: none;
}

.content-section .link-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.content-section .link-list li {
    margin-bottom: 0.5rem;
}

.content-section .link-list a:hover {
    text-decoration: underline;
}

/* Следующие шаги */
.next-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.next-step-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}

.next-step-card:hover {
    transform: translateY(-2px);
    border-color: var(--text-primary);
}

.next-step-icon {
    font-size: var(--font-size-xl);
    margin-right: 1rem;
    flex-shrink: 0;
}

.next-step-content {
    flex: 1;
}

.next-step-content h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.next-step-content p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin: 0;
}

.next-step-arrow {
    color: var(--text-primary);
}

.next-step-arrow .arrow-icon {
    width: 20px;
    height: 20px;
    filter: none;
}

/* Кнопка возврата наверх */
.back-to-top {
    position: fixed;
    bottom: max(2rem, env(safe-area-inset-bottom));
    right: max(2rem, env(safe-area-inset-right));
    width: 48px;
    height: 48px;
    background: #fff;
    color: #1a1a1a;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top .arrow-icon {
    width: 20px;
    height: 20px;
    filter: none; /* стрелка тёмная на белом фоне */
    transform: rotate(180deg); /* chevron вниз → стрелка вверх */
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #f1f1f2;
    transform: translateY(-2px);
}

/* Адаптивные стили для контента */
@media (max-width: 1024px) {
    .concept-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .content-header h1 {
        font-size: var(--font-size-3xl);
        line-height: 1.25;
    }
    .content-header h1.countries-title {
        font-size: 2rem;
    }
    
    .concept-grid {
        grid-template-columns: 1fr;
    }
    
    .next-steps {
        grid-template-columns: 1fr;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 0 1rem 0;
    }
}

@media (max-width: 480px) {
    .content-header h1 {
        font-size: var(--font-size-2xl);
        line-height: 1.3;
    }
    .content-header h1.countries-title {
        font-size: 1.75rem;
    }
    
    .step-item,
    .concept-card,
    .next-step-card {
        padding: 1rem;
    }
    
    .back-to-top {
        bottom: max(1rem, env(safe-area-inset-bottom));
        right: max(1rem, env(safe-area-inset-right));
        width: 40px;
        height: 40px;
    }
    
    .back-to-top .arrow-icon {
        width: 16px;
        height: 16px;
    }
}

/* Стили для страницы новостей (доп. классы для других шаблонов) */

.news-content-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 64px;
    flex: 1;
    min-width: 0;
    max-width: 608px;
    order: 0;
}

/* Правые столбцы: сетка статей + сайдбар */
.news-right-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    min-width: 0;
}

.news-sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 24px;
    width: 100%;
    flex-shrink: 0;
}

/* Главная статья */
.news-article-featured {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0;
    gap: 24px;
    width: 100%;
    flex: none;
    order: 0;
}

.news-article-featured .news-article-bg {
    width: 100%;
    height: 320px;
    background: #e5e7eb;
    border-radius: 48px;
    flex: none;
    order: 0;
}

.news-article-featured .news-article-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 16px;
    width: 100%;
    flex: none;
    order: 1;
}

.news-article-featured h2 {
    width: 100%;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: var(--font-size-display);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    color: #1a1a1a;
    margin: 0;
    flex: none;
    order: 0;
}

.news-article-featured p {
    width: 100%;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    letter-spacing: var(--letter-spacing-normal);
    color: #4d4d4d;
    margin: 0;
    flex: none;
    order: 1;
}

/* Сетка статей */
.news-articles-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 24px;
    width: 100%;
    flex: none;
    order: 1;
}

.news-article {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 20px;
    width: 100%;
    flex: none;
    order: 0;
}

.news-article .news-article-bg {
    width: 100%;
    height: 136px;
    background: #e5e7eb;
    border-radius: 28px;
    flex: none;
    order: 0;
}

.news-article .news-article-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 8px;
    width: 100%;
    flex: none;
    order: 1;
}

.news-article h3 {
    width: 100%;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: var(--font-size-base);
    line-height: var(--line-height-snug);
    letter-spacing: var(--letter-spacing-normal);
    color: #1a1a1a;
    margin: 0;
    flex: none;
    order: 0;
}

.news-article p {
    width: 100%;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    letter-spacing: var(--letter-spacing-normal);
    color: #4d4d4d;
    margin: 0;
    flex: none;
    order: 1;
}

/* Подписка */
.news-subscription {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    gap: 24px;
    width: 100%;
    background: #ffffff;
    border-radius: 40px;
    flex: none;
    order: 2;
}

.news-subscription h3 {
    width: 100%;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 34px;
    line-height: 41px;
    letter-spacing: var(--letter-spacing-normal);
    color: #1a1a1a;
    margin: 0;
    flex: none;
    order: 0;
}

.news-subscription-form {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 8px;
    width: 100%;
    flex: none;
    order: 1;
}

.news-subscription-input {
    display: block;
    padding: 8px 8px 8px 20px;
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    background: #f1f1f2;
    border-radius: 9999px;
    border: none;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    letter-spacing: var(--letter-spacing-normal);
    color: #4d4d4d;
    box-sizing: border-box;
    order: 0;
}

.news-subscription-input::placeholder {
    color: #a9a9a9;
}

.news-subscription-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    flex-shrink: 0;
    height: 48px;
    background: #0074ff;
    border-radius: 9999px;
    border: none;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    letter-spacing: var(--letter-spacing-normal);
    color: #ffffff;
    cursor: pointer;
    flex: none;
    order: 1;
    transition: var(--btn-transition);
    outline: none;
}
.news-subscription-btn:hover {
    filter: brightness(1.05);
}
.news-subscription-btn:focus {
    outline: none;
}

.news-subscription-privacy {
    width: 100%;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-snug);
    letter-spacing: var(--letter-spacing-normal);
    color: #4d4d4d;
    margin: 0;
    flex: none;
    order: 2;
}

/* Элементы сайдбара */
.news-sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 20px;
    width: 100%;
    flex: none;
    align-self: stretch;
}

.news-sidebar-item .news-article-bg {
    width: 100%;
    height: 136px;
    background: #e5e7eb;
    border-radius: 28px;
    flex: none;
    order: 0;
}

.news-sidebar-item .news-article-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 8px;
    width: 100%;
    flex: none;
    order: 1;
    align-self: stretch;
}

.news-sidebar-item h4 {
    width: 100%;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: var(--font-size-base);
    line-height: var(--line-height-snug);
    letter-spacing: var(--letter-spacing-normal);
    color: #1a1a1a;
    margin: 0;
    flex: none;
    order: 0;
    align-self: stretch;
}

.news-sidebar-item p {
    width: 100%;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    letter-spacing: var(--letter-spacing-normal);
    color: #4d4d4d;
    margin: 0;
    flex: none;
    order: 1;
    align-self: stretch;
}

/* Адаптивность */
@media (max-width: 1223px) {
    .news-right-columns {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .news-content-main {
        width: 100%;
        max-width: 608px;
    }

    .news-right-columns {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .news-sidebar {
        width: 100%;
        max-width: 608px;
    }

    .news-articles-grid {
        width: 100%;
    }

    .news-article-featured,
    .news-article-featured .news-article-bg,
    .news-article-featured .news-article-content {
        width: 100%;
    }

    .news-article-featured h2,
    .news-article-featured p {
        width: 100%;
    }

    .news-subscription {
        width: 100%;
    }

    .news-subscription-form,
    .news-subscription-privacy {
        width: 100%;
    }

    .news-subscription-input {
        width: 100%;
    }

    .news-subscription-btn {
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .news-right-columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .news-articles-grid {
        flex-direction: column;
        gap: 24px;
    }

    .news-article,
    .news-sidebar-item {
        width: 100%;
    }

    .news-article .news-article-bg,
    .news-sidebar-item .news-article-bg {
        width: 100%;
    }

    .news-article .news-article-content,
    .news-sidebar-item .news-article-content,
    .news-article h3,
    .news-article p,
    .news-sidebar-item h4,
    .news-sidebar-item p {
        width: 100%;
    }

    .news-subscription {
        padding: 24px;
    }

    .news-subscription-form {
        flex-direction: column;
        gap: 16px;
    }

    .news-subscription-input,
    .news-subscription-btn {
        width: 100%;
    }
}

/* ========== Мобильный дизайн «как приложение»: safe area, отступы, тап ========== */
@media (max-width: 768px) {
    html {
        overflow-x: hidden;
        max-width: 100%;
    }
    body {
        overflow-x: hidden;
        max-width: 100%;
        min-width: 0;
    }
    .handbook-container {
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }
    .content-area {
        max-width: 100%;
        min-width: 0;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }
    /* safe-area под «чёлку» + та же высота шапки+табов, что и на планшете; без лишнего +8px */
    .handbook-container .content-area {
        padding-top: calc(env(safe-area-inset-top, 0px) + var(--site-header-height) + var(--site-header-tabs-height));
    }
    body {
        min-height: 100dvh;
        min-height: 100vh;
        padding-bottom: env(safe-area-inset-bottom);
        /* горизонтальные safe-area - в header, content-wrapper, модалках (избегаем двойного padding) */
    }

    .site-header {
        top: calc(12px + env(safe-area-inset-top));
        left: calc(50% + env(safe-area-inset-left) / 2 - env(safe-area-inset-right) / 2);
        width: min(100%, calc(100vw - 8px - env(safe-area-inset-left) - env(safe-area-inset-right)));
        max-width: calc(100vw - 8px - env(safe-area-inset-left) - env(safe-area-inset-right));
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
    }
    .scroll-header {
        top: 0;
        left: 50%;
        width: min(100%, calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right)));
        max-width: calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right));
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
    }

    .content-area {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .content-wrapper:not(:has(.news-page)):not(:has(.marketing-page)) {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    /* Главная: снова выравниваем с шапкой (после любых общих правил выше) */
    .content-wrapper:has(.news-page) {
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
    }
    /* Страницы статей и гайдов с breadcrumbs: восстанавливаем отступы, запрещаем overflow */
    .content-wrapper:has(.breadcrumbs), .content-wrapper:has(.article-content-html) {
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
        /* Базовые 2rem + крупный padding-top у .content-area давали «воздух»; на мобилке достаточно меньше */
        padding-top: 1rem;
        overflow-x: hidden;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Убираем подсветку тапа по умолчанию, оставляем контраст для фокуса */
    a,
    button {
        -webkit-tap-highlight-color: rgba(0, 116, 255, 0.12);
        tap-highlight-color: rgba(0, 116, 255, 0.12);
    }

    /* Модалки с отступами по safe area */
    .site-lang-overlay .site-lang-panel,
    .site-nav-dropdown-overlay .site-nav-dropdown-panel {
        right: env(safe-area-inset-right);
        top: 0;
        bottom: 0;
        left: env(safe-area-inset-left);
        width: auto;
        max-width: none;
        min-height: 100%;
        min-height: 100dvh;
        transform: translateX(100%);
    }
    .site-nav-menu-overlay .site-nav-menu-panel {
        right: 0;
        top: 0;
        bottom: 0;
        left: 0;
        width: auto;
        max-width: none;
        min-height: 100%;
        min-height: 100dvh;
        transform: scale(0.85);
        opacity: 0;
        padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    }
    /* Калькулятор на мобилке: на весь экран по высоте и ширине, хедер с крестиком */
    .site-calc-panel-wrap {
        padding: 0;
        min-height: 100dvh;
        min-height: 100vh;
    }
    .site-calc-panel {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: none;
        height: 100%;
        min-height: 100dvh;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
    .site-calc-panel.is-open {
        right: 0;
    }
    .site-calc-header {
        padding: max(12px, env(safe-area-inset-top)) 16px 14px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        flex-shrink: 0;
    }
    .site-calc-title {
        font-size: 18px;
    }
    .site-calc-close {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

    .site-lang-overlay.is-open .site-lang-panel,
    .site-nav-dropdown-overlay.is-open .site-nav-dropdown-panel {
        transform: translateX(0);
    }
    .site-nav-menu-overlay.is-open .site-nav-menu-panel {
        transform: scale(1);
        opacity: 1;
    }

    .site-nav-dropdown-panel {
        border-radius: 20px;
    }
    .site-nav-menu-overlay .site-nav-menu-panel {
        border-radius: 0;
    }

    /* Калькулятор на мобилке: фулскрин, safe-area, без паддингов */
    .site-calc-overlay {
        padding: 0;
    }
    .site-calc-panel-wrap.is-open {
        pointer-events: auto;
    }
    .site-calc-inner {
        flex-direction: column;
        min-height: min-content;
    }
    .site-calc-filters {
        flex: 0 0 auto;
        min-height: 0;
        max-height: none;
        padding: 20px 20px 24px;
        margin: 0;
        border-radius: 0;
    }
    .site-calc-form {
        gap: 24px;
    }
    .site-calc-field {
        gap: 10px;
    }
    .site-calc-label {
        font-size: 15px;
        font-weight: 600;
    }
    .site-calc-citizenship-trigger {
        min-height: 48px;
        border-radius: 14px;
        padding: 0 18px;
    }
    .site-calc-citizenship-dropdown {
        border-radius: 14px;
        padding: 6px;
    }
    .site-calc-citizenship-dropdown li {
        min-height: 44px;
        padding: 12px 14px;
        border-radius: 12px;
    }
    .site-calc-filters .site-calc-range-track,
    .site-calc-filters .site-calc-range-fill {
        border-radius: 6px;
    }
    .site-calc-budget-block {
        gap: 12px;
    }
    .site-calc-budget-hint {
        font-size: 12px;
        line-height: 1.45;
        color: #6B6B6B;
    }
    .site-calc-budget-presets {
        flex-direction: column;
        gap: 8px;
    }
    .site-calc-preset-btn {
        width: 100%;
        min-height: 44px;
        border-radius: 14px;
        padding: 12px 16px;
        font-size: 15px;
    }
    .site-calc-chips {
        flex-direction: column;
        gap: 8px;
    }
    .site-calc-chip {
        width: 100%;
        min-height: 44px;
        border-radius: 14px;
        padding: 12px 16px;
        font-size: 15px;
        justify-content: center;
    }
    .site-calc-form > .site-calc-field:nth-child(5) {
        margin-bottom: 32px;
    }
    .site-calc-results-col {
        flex: 0 0 auto;
        min-height: 0;
        padding: 16px 20px 24px;
    }
    .site-calc-results-list {
        gap: 10px;
    }
    .site-calc-results-list .country-card,
    .site-calc-results-list .site-calc-country-card {
        gap: 16px;
        padding: 12px 14px;
        min-height: 56px;
        touch-action: manipulation; /* убирает 300ms задержку тапа на iOS */
    }
    .site-calc-results-list .country-card-flag {
        width: 36px;
        height: 36px;
    }
    .site-calc-results-list .country-card-name {
        min-width: 0;
        font-size: 15px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .site-header {
        top: calc(10px + env(safe-area-inset-top));
    }

    /* Не дублировать горизонталь у главной / marketing */
    .content-wrapper:not(:has(.news-page)):not(:has(.marketing-page)) {
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
    }
    .content-wrapper:has(.breadcrumbs), .content-wrapper:has(.article-content-html) {
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
    }
}
@media (max-width: 360px) {
    .content-wrapper:has(.breadcrumbs), .content-wrapper:has(.article-content-html) {
        padding-left: max(0.5rem, env(safe-area-inset-left));
        padding-right: max(0.5rem, env(safe-area-inset-right));
    }
}

/* Список статей: те же отступы, что в открытой статье (шапка → крошки → заголовок → контент) */
.articles-index-page .content-header {
    margin-bottom: 2.5rem;
}
.articles-index-page .news-list-flow {
    margin-top: 0;
}
@media (max-width: 768px) {
    .articles-index-page .content-header { margin-bottom: 1.25rem; }
}
@media (max-width: 480px) {
    .articles-index-page .content-header { margin-bottom: 1rem; }
}

/* =========================
   Breadcrumbs (хлебные крошки)
   ========================= */
.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.4;
    color: var(--breadcrumb-color);
}
.breadcrumbs-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.breadcrumbs-item:not(:last-child)::after {
    content: "/";
    color: var(--breadcrumb-separator-color);
}
.breadcrumbs-link {
    color: var(--breadcrumb-color);
    text-decoration: none;
    transition: color 0.2s ease;
}
.breadcrumbs-link:hover {
    color: var(--breadcrumb-color-hover);
    text-decoration: underline;
}
.breadcrumbs-current {
    color: var(--breadcrumb-current-color);
    font-weight: 600;
}
