/*
Theme Name:   RussiaTravel Child
Theme URI:    https://example.com
Description:  Дочерняя тема GeneratePress для туристического портала об отдыхе в России
Author:       RussiaTravel
Author URI:   https://example.com
Template:     generatepress
Version:      1.1.0
Text Domain:  russiatravel
*/

/* ===================================================
   ПЕРЕМЕННЫЕ
=================================================== */
:root {
    --accent:          #1a7fc1;
    --accent-dark:     #155f91;
    --accent-light:    #e8f2fa;
    --bg-page:         #f4f6f8;
    --bg-white:        #ffffff;
    --bg-hero:         #f0f7ff;
    --text-primary:    #1a1a2e;
    --text-secondary:  #5a6474;
    --text-muted:      #8c97a6;
    --border:          rgba(0,0,0,.08);
    --border-solid:    #dde3eb;
    --success:         #2e9e6b;
    --warning:         #e0a020;
    --radius-sm:       4px;
    --radius-md:       8px;
    --radius-card:     10px;
    --shadow-card:     0 1px 4px rgba(0,0,0,.06);
    --shadow-hover:    0 4px 16px rgba(0,0,0,.10);
    --font:            'Inter', 'Segoe UI', -apple-system, sans-serif;
    --ease:            .18s ease;
    --container:       1200px;
}

/* ===================================================
   СБРОС И БАЗА
=================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent-dark); }

/* ===================================================
   ТИПОГРАФИКА
=================================================== */
h1, h2, h3, h4, h5 {
    font-family: var(--font);
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
}

h1 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); font-weight: 500; }
h2 { font-size: 1.25rem; font-weight: 500; }
h3 { font-size: 1rem; font-weight: 500; }
h4 { font-size: .9rem; font-weight: 500; }

p { margin-bottom: 1em; color: var(--text-primary); }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.4em; }
li { margin-bottom: .3em; }

strong { font-weight: 600; }

blockquote {
    border-left: 3px solid var(--accent);
    padding: .75rem 1.25rem;
    margin: 1.25rem 0;
    background: var(--accent-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
    font-size: .9rem;
}

table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th { padding: .6rem .75rem; text-align: left; font-weight: 600; border-bottom: 1px solid var(--border-solid); color: var(--text-secondary); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
td { padding: .6rem .75rem; border-bottom: 1px solid var(--border-solid); }
tr:hover td { background: #fafbfc; }

/* ===================================================
   КОНТЕЙНЕР
=================================================== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================================
   ВСПОМОГАТЕЛЬНЫЕ
=================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    background: var(--accent-light);
    color: #1a5a8a;
    font-weight: 500;
}

.badge--success { background: #e6f7ef; color: var(--success); }
.badge--gray    { background: #f0f3f7; color: var(--text-secondary); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .55rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--ease);
    font-family: var(--font);
}

.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--sm { padding: .35rem .85rem; font-size: .8rem; }

/* ===================================================
   ШАПКА
=================================================== */
.rt-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-white);
    border-bottom: 0.5px solid var(--border);
    height: 56px;
}

.rt-header__inner {
    display: flex;
    align-items: center;
    height: 56px;
    gap: 32px;
}

/* Логотип */
.rt-logo {
    display: flex;
    align-items: center;
    gap: .3rem;
    text-decoration: none;
    flex-shrink: 0;
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

.rt-logo__dot {
    color: var(--accent);
    font-size: 22px;
    line-height: 1;
    margin-right: 1px;
}

.rt-logo:hover { color: var(--text-primary); }

/* Навигация */
.rt-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.rt-nav__menu {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.rt-nav__menu > li {
    position: relative;
    margin: 0;
}

.rt-nav__menu > li > a {
    display: block;
    padding: .4rem .7rem;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color var(--ease);
    white-space: nowrap;
}

.rt-nav__menu > li > a:hover { color: var(--text-primary); }

.rt-nav__menu > li.current-menu-item > a,
.rt-nav__menu > li.current-menu-ancestor > a {
    color: var(--accent);
    font-weight: 500;
}

/* Дропдаун */
.rt-nav__menu .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-white);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: 0 8px 24px rgba(0,0,0,.09);
    min-width: 200px;
    padding: .35rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all var(--ease);
    z-index: 100;
}

.rt-nav__menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rt-nav__menu .sub-menu li a {
    display: block;
    padding: .5rem .9rem;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--ease);
}

.rt-nav__menu .sub-menu li a:hover {
    color: var(--accent);
    background: var(--accent-light);
}


/* Мобильная кнопка */
.rt-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 0;
}

.rt-nav-toggle:hover { background: var(--bg-page); }

.rt-nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
    transition: all var(--ease);
}

.rt-nav-toggle span::before,
.rt-nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transition: all var(--ease);
}

.rt-nav-toggle span::before { top: -5px; }
.rt-nav-toggle span::after  { top:  5px; }

.rt-nav-toggle.is-active span      { background: transparent; }
.rt-nav-toggle.is-active span::before { transform: rotate(45deg) translate(3px, 3px); }
.rt-nav-toggle.is-active span::after  { transform: rotate(-45deg) translate(3px, -3px); }

/* ===================================================
   ХЛЕБНЫЕ КРОШКИ
=================================================== */
.rt-breadcrumbs {
    background: var(--bg-white);
    border-bottom: 0.5px solid var(--border);
    padding: .45rem 0;
}

.rt-breadcrumbs__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .2rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
}

.rt-breadcrumbs__list li {
    display: flex;
    align-items: center;
    gap: .2rem;
    margin: 0;
    color: var(--text-muted);
}

.rt-breadcrumbs__list li a { color: var(--text-secondary); }
.rt-breadcrumbs__list li a:hover { color: var(--accent); }

.rt-breadcrumbs__list li:not(:last-child)::after {
    content: '›';
    color: var(--border-solid);
    margin-left: .1rem;
}

/* ===================================================
   СЕКЦИИ ГЛАВНОЙ СТРАНИЦЫ
=================================================== */

/* Герой */
.rt-hero {
    background: var(--bg-hero);
    border-bottom: 0.5px solid var(--border);
    padding: 40px 24px;
    text-align: center;
}

.rt-hero h1 {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.rt-hero__sub {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.rt-hero__search {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
}

.rt-hero__search input {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    border: 0.5px solid var(--border-solid);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    background: var(--bg-white);
    color: var(--text-primary);
    font-family: var(--font);
    outline: none;
    transition: border-color var(--ease);
}

.rt-hero__search input:focus { border-color: var(--accent); }
.rt-hero__search input::placeholder { color: var(--text-muted); }

.rt-hero__search button {
    padding: 10px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 14px;
    font-family: var(--font);
    cursor: pointer;
    font-weight: 500;
    transition: background var(--ease);
    white-space: nowrap;
}

.rt-hero__search button:hover { background: var(--accent-dark); }

/* Секция */
.rt-section {
    padding: 28px 0;
    background: var(--bg-page);
}

.rt-section--white { background: var(--bg-white); }

.rt-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.rt-section__title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.rt-section__link {
    font-size: 13px;
    color: var(--accent);
    font-weight: 400;
}

.rt-section__link:hover { color: var(--accent-dark); text-decoration: underline; }

.rt-divider {
    height: 0.5px;
    background: var(--border);
    margin: 0;
}

/* ===================================================
   КАРТОЧКИ НАПРАВЛЕНИЙ (4 в ряд)
=================================================== */
.rt-dir-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.rt-dir-card {
    background: var(--bg-white);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: all var(--ease);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.rt-dir-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: transparent;
    transform: translateY(-2px);
}

.rt-dir-card__img {
    height: 100px;
    overflow: hidden;
    background: #d4e8f5;
    position: relative;
}

.rt-dir-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.rt-dir-card:hover .rt-dir-card__img img { transform: scale(1.05); }

.rt-dir-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.rt-dir-card__body {
    padding: 10px 12px;
    flex: 1;
}

.rt-dir-card__body h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.rt-dir-card__body p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rt-dir-card__tag {
    display: inline-block;
    font-size: 11px;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    background: var(--accent-light);
    color: #1a5a8a;
}

/* ===================================================
   ДВУХКОЛОНОЧНЫЙ LAYOUT (70/30)
=================================================== */
.rt-two-col {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 20px;
    align-items: start;
}

/* ===================================================
   ГОРИЗОНТАЛЬНЫЕ КАРТОЧКИ ОБЪЕКТОВ
=================================================== */
.rt-item-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rt-item-card {
    background: var(--bg-white);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-card);
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: all var(--ease);
    text-decoration: none;
}

.rt-item-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.rt-item-card__img {
    width: 72px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #d4e8f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.rt-item-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rt-item-card__info { flex: 1; min-width: 0; }

.rt-item-card__info h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rt-item-card__info h3 a {
    color: inherit;
    text-decoration: none;
}

.rt-item-card__info h3 a:hover { color: var(--accent); }

.rt-item-card__sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 1px;
}

.rt-item-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.rt-stars { font-size: 11px; color: var(--warning); }

.rt-price {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
}

.rt-item-card__excerpt {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================================================
   САЙДБАР ВИДЖЕТЫ
=================================================== */
.rt-sidebar-widget {
    background: var(--bg-white);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-card);
    padding: 14px;
    margin-bottom: 10px;
}

.rt-sidebar-widget h4 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 0.5px solid var(--border);
}

.rt-city-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rt-city-list li { margin: 0; display: flex; align-items: center; justify-content: space-between; }

.rt-city-list a {
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
}

.rt-city-list a:hover { text-decoration: underline; }

.rt-city-list .count {
    font-size: 11px;
    color: var(--text-muted);
}

.rt-blog-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rt-blog-list li { margin: 0; }

.rt-blog-list a {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    display: block;
}

.rt-blog-list a:hover { color: var(--accent); }

/* ===================================================
   АРХИВ — КАТАЛОГ (полноразмерные карточки)
=================================================== */
.rt-archive-header {
    background: var(--bg-white);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-card);
    padding: 20px;
    margin-bottom: 16px;
}

.rt-archive-header__title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
}

.rt-archive-header__desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.rt-archive-header__meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: .6rem;
    font-size: 12px;
    color: var(--text-muted);
}

/* Фильтры */
.rt-filters {
    background: var(--bg-white);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-card);
    padding: 12px 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.rt-filters__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.rt-filters__group { display: flex; flex-wrap: wrap; gap: 6px; }

.rt-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: .25rem .7rem;
    border: 0.5px solid var(--border-solid);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: #fff;
    cursor: pointer;
    transition: all var(--ease);
    text-decoration: none;
    font-family: var(--font);
}

.rt-filter-btn:hover,
.rt-filter-btn.is-active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.rt-sort { margin-left: auto; display: flex; align-items: center; gap: .4rem; font-size: 12px; }

.rt-sort select {
    padding: .25rem .6rem;
    border: 0.5px solid var(--border-solid);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-primary);
    background: #fff;
    font-family: var(--font);
    cursor: pointer;
}

/* Сетка карточек каталога */
.rt-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.rt-card {
    background: var(--bg-white);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: all var(--ease);
    display: flex;
    flex-direction: column;
}

.rt-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: transparent;
    transform: translateY(-2px);
}

.rt-card__img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-page);
    position: relative;
}

.rt-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.rt-card:hover .rt-card__img img { transform: scale(1.04); }

.rt-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
}

.rt-card__body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rt-card__cat {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}

.rt-card__title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.rt-card__title a { color: inherit; }
.rt-card__title a:hover { color: var(--accent); }

.rt-card__excerpt {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rt-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem .75rem;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 0.5px solid var(--border);
    font-size: 11px;
    color: var(--text-muted);
}

.rt-card__meta-item { display: flex; align-items: center; gap: .2rem; }

.rt-card__rating {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: auto;
    padding-top: 8px;
}

.rt-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: .8rem;
    font-weight: 700;
}

.rt-score--good { background: var(--success); }
.rt-score--avg  { background: var(--warning); }

.rt-card__price { margin-left: auto; text-align: right; }
.rt-card__price-from { font-size: 10px; color: var(--text-muted); display: block; }
.rt-card__price-val  { font-size: 13px; font-weight: 600; color: var(--text-primary); }

/* Пагинация */
.rt-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: 8px 0;
}

.rt-pagination a,
.rt-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 .4rem;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    border: 0.5px solid var(--border-solid);
    background: #fff;
    color: var(--text-secondary);
    transition: all var(--ease);
}

.rt-pagination a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.rt-pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===================================================
   ОДИНОЧНАЯ ЗАПИСЬ (ЛОНГРИД)
=================================================== */
.rt-single {
    background: var(--bg-white);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.rt-single__hero {
    position: relative;
    aspect-ratio: 21/8;
    overflow: hidden;
    background: var(--bg-page);
}

.rt-single__hero img { width: 100%; height: 100%; object-fit: cover; }

.rt-single__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 35%, rgba(10,15,30,.68) 100%);
}

.rt-single__hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.75rem 2rem;
}

.rt-single__hero-content .rt-single__title {
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,.35);
    margin-bottom: .35rem;
}

.rt-single__header {
    padding: 1.75rem 2rem 0;
}

.rt-single__cat-link {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .5rem;
}

.rt-single__title {
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: .4rem;
}

.rt-single__subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 400;
}

.rt-single__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem 1rem;
    font-size: 12px;
    color: var(--text-muted);
    padding: .75rem 2rem;
    border-bottom: 0.5px solid var(--border);
}

.rt-single__meta a { color: var(--text-secondary); }
.rt-single__meta a:hover { color: var(--accent); }
.rt-single__meta-item { display: flex; align-items: center; gap: .25rem; }

.rt-single__body { padding: 2rem; }

/* Оглавление */
.rt-toc {
    background: var(--bg-page);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-card);
    padding: 14px 16px;
    margin-bottom: 1.75rem;
}

.rt-toc__title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .6rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.rt-toc__list { list-style: none; padding: 0; margin: 0; counter-reset: toc; }

.rt-toc__list > li { counter-increment: toc; margin-bottom: 0; }

.rt-toc__list > li > a {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    padding: .3rem 0;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 0.5px dotted var(--border-solid);
    transition: color var(--ease);
}

.rt-toc__list > li > a::before {
    content: counter(toc) ".";
    color: var(--accent);
    font-weight: 700;
    min-width: 1.2rem;
    font-size: 11px;
}

.rt-toc__list > li > a:hover { color: var(--accent); }
.rt-toc__list > li:last-child > a { border-bottom: none; }

/* Контент */
.rt-entry-content { font-size: 15px; line-height: 1.75; }

.rt-entry-content h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: .6rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--border-solid);
    scroll-margin-top: 72px;
}

.rt-entry-content h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: .5rem;
    scroll-margin-top: 72px;
}

.rt-entry-content img { border-radius: var(--radius-md); margin: 1.25rem 0; }
.rt-entry-content p { line-height: 1.75; }

/* Теги */
.rt-single__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: 1rem 2rem;
    border-top: 0.5px solid var(--border);
}

.rt-tag {
    display: inline-block;
    padding: .25rem .65rem;
    border: 0.5px solid var(--border-solid);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all var(--ease);
}

.rt-tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* Навигация по записям */
.rt-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5px;
    background: var(--border);
    border-top: 0.5px solid var(--border);
    overflow: hidden;
    border-radius: 0 0 var(--radius-card) var(--radius-card);
}

.rt-post-nav__item {
    background: #fff;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    transition: background var(--ease);
    text-decoration: none;
}

.rt-post-nav__item:hover { background: var(--accent-light); }

.rt-post-nav__label { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.rt-post-nav__title { font-size: 13px; font-weight: 500; color: var(--text-primary); line-height: 1.3; }
.rt-post-nav__item--next { text-align: right; align-items: flex-end; }

/* ===================================================
   ВИДЖЕТЫ САЙДБАРА
=================================================== */
.rt-widget {
    background: var(--bg-white);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-card);
    padding: 14px;
    margin-bottom: 10px;
}

.rt-widget__title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 0.5px solid var(--border);
}

.rt-widget-posts { list-style: none; padding: 0; margin: 0; }

.rt-widget-posts li {
    display: flex;
    gap: .6rem;
    padding: .5rem 0;
    border-bottom: 0.5px solid var(--border);
    margin: 0;
}

.rt-widget-posts li:last-child { border-bottom: none; padding-bottom: 0; }

.rt-widget-posts__img {
    width: 52px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.rt-widget-posts__info { flex: 1; min-width: 0; }

.rt-widget-posts__info a {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rt-widget-posts__info a:hover { color: var(--accent); }
.rt-widget-posts__meta { font-size: 11px; color: var(--text-muted); margin-top: .15rem; }

/* ===================================================
   ОСНОВНОЙ LAYOUT
=================================================== */
.rt-main {
    padding: 24px 0 48px;
}

/* Главная страница без отступа */
.home .rt-main { padding: 0 0 40px; }

.rt-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 20px;
    align-items: start;
}

.rt-layout--full { grid-template-columns: 1fr; }

.rt-content { min-width: 0; }
.rt-sidebar  { min-width: 0; }

/* Пустое состояние */
.rt-empty { text-align: center; padding: 3rem 2rem; color: var(--text-muted); }
.rt-empty__icon { font-size: 2.5rem; margin-bottom: .75rem; opacity: .4; }
.rt-empty__title { font-size: 15px; font-weight: 600; margin-bottom: .4rem; }
.rt-empty__desc  { font-size: 13px; }

/* ===================================================
   ФУТЕР — БЕЛЫЙ
=================================================== */
.rt-footer {
    background: var(--bg-white);
    border-top: 0.5px solid var(--border);
    margin-top: 20px;
}

.rt-footer__cols {
    padding: 28px 0 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.rt-footer__col-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.rt-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rt-footer__links li { margin-bottom: 5px; }

.rt-footer__links a {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--ease);
}

.rt-footer__links a:hover { color: var(--accent); }

.rt-footer__bottom {
    border-top: 0.5px solid var(--border);
    padding: 12px 0;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* ===================================================
   АДАПТИВНОСТЬ
=================================================== */
@media (max-width: 1024px) {
    .rt-layout {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    }
    .rt-dir-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    body { font-size: 14px; }

    .rt-main { padding: 16px 0 32px; }

    .rt-nav {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-bottom: 0.5px solid var(--border);
        padding: .75rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        box-shadow: 0 8px 20px rgba(0,0,0,.08);
    }

    .rt-nav.is-open { display: flex; }

    .rt-nav__menu {
        flex-direction: column;
        gap: .1rem;
    }

    .rt-nav__menu > li > a { padding: .6rem .75rem; }

    .rt-nav__menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 .75rem;
        display: none;
    }

    .rt-nav__menu li.is-open > .sub-menu { display: block; }

    .rt-nav-toggle { display: flex; }
    .rt-header__inner { position: relative; }

    .rt-layout {
        grid-template-columns: 1fr;
    }

    .rt-two-col {
        grid-template-columns: 1fr;
    }

    .rt-dir-grid { grid-template-columns: repeat(2, 1fr); }
    .rt-cards-grid { grid-template-columns: 1fr 1fr; }

    .rt-single__hero { aspect-ratio: 16/9; }
    .rt-single__hero-content { padding: 1rem 1.25rem; }
    .rt-single__header { padding: 1.25rem 1.25rem 0; }
    .rt-single__meta { padding: .6rem 1.25rem; }
    .rt-single__body { padding: 1.25rem; }
    .rt-single__tags { padding: .75rem 1.25rem; }

    .rt-post-nav { grid-template-columns: 1fr; }

    .rt-footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .rt-dir-grid { grid-template-columns: 1fr 1fr; }
    .rt-cards-grid { grid-template-columns: 1fr; }
    .rt-footer__cols { grid-template-columns: 1fr 1fr; }
    .rt-hero h1 { font-size: 20px; }
    .rt-hero__search { flex-direction: column; }
    .rt-hero__search input { border-right: 0.5px solid var(--border-solid); border-radius: var(--radius-md); border-bottom: none; border-radius: var(--radius-md) var(--radius-md) 0 0; }
    .rt-hero__search button { border-radius: 0 0 var(--radius-md) var(--radius-md); }
}

/* ===================================================
   БЛОК ОБЪЕКТА В SINGLE (отель/санаторий)
=================================================== */
.rt-object-card {
    background: var(--bg-white);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    margin-bottom: 20px;
}

.rt-object-card__header {
    padding: 16px 20px;
    border-bottom: 0.5px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.rt-object-card__name { font-size: 1.2rem; margin-bottom: .2rem; }

.rt-object-card__address {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: .25rem;
}

.rt-object-card__score { flex-shrink: 0; text-align: center; }

.rt-object-card__score-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: var(--radius-md);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 auto .2rem;
}

.rt-object-card__score-num.rt-score--good { background: var(--success); }
.rt-object-card__score-num.rt-score--avg  { background: var(--warning); }

.rt-object-card__score-label { font-size: 11px; font-weight: 600; color: var(--text-secondary); }

.rt-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.rt-spec-item {
    padding: .75rem 1.25rem;
    border-right: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
}

.rt-spec-item__label { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .2rem; }
.rt-spec-item__value { font-size: 13px; font-weight: 600; color: var(--text-primary); }

.rt-amenities { padding: 14px 20px; border-top: 0.5px solid var(--border); }
.rt-amenities__title { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .75rem; }
.rt-amenities__list { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.rt-amenities__list li { display: flex; align-items: center; gap: .3rem; font-size: 12px; color: var(--text-secondary); padding: .25rem .6rem; background: var(--bg-page); border-radius: 20px; margin: 0; }
.rt-amenities__list li.is-available { color: var(--success); }
.rt-amenities__list li.is-unavailable { opacity: .45; text-decoration: line-through; }

/* ===================================================
   ПЕРЕОПРЕДЕЛЕНИЕ GENERATEPRESS
=================================================== */
.site-main { max-width: none; padding: 0; }
.inside-article { padding: 0; }
.entry-header { display: none; }
.site-content { padding: 0; display:block;}
.generate-columns-container { max-width: none; }
.entry-content { padding: 0; }
