/* Путеводитель.рф — дизайн-система (input/PUTEVODITEL_BRAND_UI_STYLE.md, редизайн по input/PUTEVODITEL_DESIGN_REWORK.md).
   Формула: сильная фотография + графитовая типографика + воздух + зелёно-бирюзовый акцент + мотив маршрута.
   Разные типы контента — разные карточки: .city-card (фото во всю карточку), .route-card (линия остановок),
   .place-card (фото 4:3 и время), .offer-card (фото 3:2, рейтинг и цена), .dest-card (название поверх фото, дорога). */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Цвет: графит для текста, нейтрали с лёгким зелёным сдвигом, один акцент */
  --text: #15202B; --text-2: #5F6E75; --text-3: #8E9BA1;
  --brand: #078C7D; --brand-dark: #056C68; --brand-light: #69C69D; --brand-bg: #ECF5F0; --chip-active: #E3F2EA;
  --bg: #FFFFFF; --bg-soft: #F4F6F4; --bg-photo: #E6EDE8; --dark: #14262A; --border: #E3E8E5; --border-strong: #CBD5CF;
  --star: #F2A33A; --error: #B3261E; --error-bg: #FCEEEE;
  --overlay: rgba(10, 22, 24, .72);
  /* Форма */
  --r-control: 10px; --r-chip: 8px; --r-card: 16px; --r-large: 20px; --r-hero: 24px;
  --container: 1280px; --gutter: 24px;
  --shadow: 0 6px 24px rgba(20, 40, 35, .06); --shadow-pop: 0 12px 40px rgba(20, 40, 35, .14);
  --t: 180ms ease;
  /* Масштаб текста */
  --fs-h1: clamp(34px, 4.4vw, 56px); --fs-h2: clamp(26px, 3vw, 36px); --fs-h3: clamp(19px, 1.8vw, 22px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh; font-variant-numeric: tabular-nums; }
main { flex: 1; min-width: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i--sm { width: 15px; height: 15px; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.022em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); overflow-wrap: anywhere; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.012em; }
h4 { font-size: 17px; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.lead { font-size: 18px; color: var(--text-2); max-width: 680px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section--brand { background: var(--brand-bg); }
.section--tight { padding: 32px 0; }
.section--first { padding-top: 48px; }
.section--last { padding-bottom: 0; }
/* Две секции одного фона подряд: один отступ, а не нижний плюс верхний */
.section:not(.section--soft):not(.section--brand):not(.section--last) + .section:not(.section--soft):not(.section--brand) { padding-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; max-width: 640px; }
.section-head--sm { margin-bottom: 14px; align-items: baseline; }
.section-head--sm h3 { margin: 0; }
.section-head__link { font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.section-head__link .i { transition: transform var(--t); }
.section-head__link:hover .i--sm { transform: translateX(2px); }
.section-foot { margin: 24px 0 0; }
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin-top: 1.6em; }
.prose h3 { font-size: 19px; margin-top: 1.4em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose .article-figure { margin: 18px 0 26px; }
.prose .article-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); background: var(--bg-soft); }
.prose .article-figure figcaption { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.prose .article-figure figcaption a { color: var(--text-2); }
.prose .tp-widget { margin: 18px 0 26px; min-height: 120px; }
.prose .dish-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 16px 0 26px; }
.prose .dish { margin: 0; }
.prose .dish img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-card); background: var(--bg-soft); }
.prose .dish figcaption { font-size: 14px; font-weight: 600; margin-top: 8px; color: var(--text); }
/* Тизер статьи о еде на /food/: лид и лента блюд, ведущих на якоря статьи */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px; align-items: center; padding: 26px 28px; border-radius: var(--r-large); background: var(--brand-bg); margin: 20px 0 8px; }
.teaser__kicker { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-dark); display: block; margin-bottom: 6px; }
.teaser h2 { font-size: 24px; margin-bottom: 8px; }
.teaser p { color: var(--text-2); margin: 0 0 14px; }
.teaser__dishes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.teaser__dish { display: grid; gap: 6px; color: var(--text); font-size: 13.5px; font-weight: 500; line-height: 1.25; min-width: 0; }
.teaser__dish img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--bg-photo); transition: transform .35s ease; }
.teaser__dish:hover img { transform: scale(1.04); }
.teaser__dish:hover { color: var(--brand-dark); }
.teaser--offers { margin-top: 12px; }
.prose .prose__note { padding: 12px 16px; border-radius: 12px; background: var(--brand-bg); }
.teaser--offers .teaser__dish span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.teaser__ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 12px; background: var(--bg-photo); color: var(--text-3); }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sr { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.header__row { height: 68px; display: flex; align-items: center; gap: 6px; }
.logo { display: inline-flex; align-items: center; gap: 3px; color: var(--text); font-weight: 800; font-size: 22px; letter-spacing: -0.035em; white-space: nowrap; flex: none; }
.logo:hover { color: var(--text); }
.logo__pin { width: 22px; height: 28px; margin: -8px 0 0 2px; }
.header .logo { margin-right: 6px; padding-right: 12px; border-right: 1px solid var(--border); }
.header .city-select { flex: none; }
.nav { display: flex; gap: 0; margin-left: 6px; min-width: 0; flex: 0 1 auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--text); font-weight: 500; font-size: 14px; padding: 8px 8px; border-radius: var(--r-control); white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-soft); color: var(--brand-dark); }
.nav__ext { color: var(--text-2); }
.nav__ext .i { color: var(--text-3); }
.header--main .nav { margin-left: auto; }
.header__search { margin-left: auto; display: flex; align-items: center; min-width: 0; flex: 0 1 200px; }
.header__search .search { width: 100%; }
.header__search .search input[type=search] { width: 100%; min-width: 120px; }
.header__search .search input[type=search]:focus { width: 100%; }
.search { position: relative; display: flex; align-items: center; }
.search input[type=search] { width: 240px; min-height: 42px; padding: 8px 14px 8px 40px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-soft); font: inherit; font-size: 15px; color: var(--text); transition: border-color var(--t), background var(--t), width var(--t); }
.search input[type=search]::placeholder { color: var(--text-3); }
.search input[type=search]:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(7,140,125,.12); width: 300px; }
.search .i { position: absolute; left: 14px; color: var(--text-2); pointer-events: none; }
.search__btn { position: absolute; right: 4px; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: 600 14px/1 inherit; cursor: pointer; display: none; }
.search input[type=search]:not(:placeholder-shown) ~ .search__btn { display: inline-flex; align-items: center; }
.search--inline input[type=search] { width: 260px; }
.search--inline input[type=search]:focus { width: 260px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--bg-soft); }
.header__search-toggle { display: none; }
.nav-mobile { display: none; }

/* Селект города: без постоянной рамки, лёгкий фон при hover; работает без JS через <details> */
.city-select { position: relative; }
.city-select > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px 0 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid transparent; font-weight: 600; font-size: 15px; transition: background var(--t), border-color var(--t); max-width: 40vw; color: var(--text); }
.city-select > summary::-webkit-details-marker { display: none; }
.city-select > summary:hover, .city-select[open] > summary { background: var(--chip-active); border-color: rgba(7,140,125,.25); color: var(--brand-dark); }
.city-select > summary .i { color: var(--brand); }
.city-select__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { width: 16px; height: 16px; flex: none; transition: transform var(--t); }
.city-select[open] .chev { transform: rotate(180deg); }
.city-select__menu { position: absolute; top: calc(100% + 8px); left: 0; width: 300px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-pop); padding: 14px; animation: drop .18s ease; z-index: 60; }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.city-select__menu--wide { width: min(620px, calc(100vw - 2 * var(--gutter))); }
.city-select__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.city-select__title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); white-space: nowrap; }
.city-select__head input { min-height: 40px; padding: 6px 12px; font-size: 14px; max-width: 260px; }
.city-select__list { display: grid; gap: 2px; max-height: 52vh; overflow-y: auto; }
.city-select__menu--wide .city-select__list { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.city-select__list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: var(--r-control); color: var(--text); font-weight: 500; font-size: 15px; }
.city-select__list a:hover { background: var(--bg-soft); color: var(--brand-dark); }
.city-select__list a[aria-current="true"] { background: var(--chip-active); color: var(--brand-dark); font-weight: 600; }
.city-select__list a .i { color: var(--brand); }
.city-select__empty { margin: 0; padding: 8px 10px; }
.city-select__all { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); width: 100%; font-weight: 600; font-size: 14px; }

/* ---------- Кнопки, формы, чипы ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: var(--r-control); font: 600 16px/1 inherit; font-family: inherit; cursor: pointer; border: 1px solid transparent; transition: background var(--t), border-color var(--t), color var(--t), transform var(--t); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--secondary { background: #fff; color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--bg-soft); }
.btn--white { background: #fff; color: var(--text); }
.btn--white:hover { background: var(--brand-bg); color: var(--brand-dark); }
.btn--sm { height: 40px; padding: 0 14px; font-size: 14px; }
.btn--lg { height: 54px; padding: 0 26px; font-size: 17px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=search], input[type=password], input[type=number], input[type=date], textarea, select {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-control); background: #fff; color: var(--text); font: inherit; font-size: 16px; transition: border-color var(--t), box-shadow var(--t); }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(7,140,125,.14); }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2368757C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--r-control); margin-bottom: 20px; }
.notice--ok { background: var(--brand-bg); color: var(--brand-dark); }
.notice--error { background: var(--error-bg); color: var(--error); }
.notice--error::before { content: '!'; font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll { flex-wrap: wrap; }   /* на десктопе переносятся; прокрутка в одну строку — только на мобильном (см. @media) */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--bg-soft); color: var(--text); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background var(--t), color var(--t); border: 1px solid transparent; }
a.chip:hover { background: var(--chip-active); color: var(--brand-dark); }
.chip--active { background: var(--chip-active); color: var(--brand-dark); border-color: rgba(7,140,125,.25); }
.chip--outline { background: #fff; border-color: var(--border-strong); }
.chip--sm { height: 28px; padding: 0 10px; font-size: 13px; }
.chip--icon { gap: 5px; padding-left: 8px; color: var(--brand-dark); background: var(--brand-bg); }
.chip--icon .i { width: 15px; height: 15px; color: var(--brand); }
.chip--photo { padding-left: 12px; }
.chip__n { color: var(--text-3); font-weight: 400; }
.chip--active .chip__n { color: var(--brand); }

/* ---------- Карточки: общая база (.card) и типовые варианты ---------- */
.grid { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--compact { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px 16px; }
.card { display: flex; flex-direction: column; gap: 10px; color: var(--text); position: relative; min-width: 0; }
.card:hover { color: var(--text); }
.card__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.card__img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; background: var(--bg-photo); display: block; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__img img { transform: scale(1.03); }
.card__img--empty { background: var(--bg-photo) repeating-linear-gradient(135deg, transparent 0 14px, rgba(7,140,125,.05) 14px 15px); display: flex; align-items: center; justify-content: center; }
.card__ph { width: 30px; height: 30px; color: var(--text-3); stroke-width: 1.4; }
.card__badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 6px; align-items: flex-start; pointer-events: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 8px; background: rgba(255,255,255,.94); color: var(--text); font-size: 12.5px; font-weight: 600; backdrop-filter: blur(4px); }
.badge--rating { color: var(--text); }
.badge--rating .i { color: var(--star); fill: var(--star); stroke: none; width: 13px; height: 13px; }
.badge--rating .muted { font-weight: 500; }
.badge--brand { background: var(--brand); color: #fff; min-width: 26px; justify-content: center; }
.card__title { font-size: 17px; font-weight: 600; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: -0.008em; }
.card:hover .card__title { color: var(--brand-dark); }
.card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--text-2); align-items: center; }
.card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.card__meta .i { width: 15px; height: 15px; color: var(--text-3); }
.card__text { font-size: 14px; color: var(--text-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.card__price { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.card__price small { font-weight: 400; color: var(--text-2); font-size: 13px; }
.card__go { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); flex: none; transition: background var(--t), color var(--t), border-color var(--t); }
.card:hover .card__go { background: var(--brand); border-color: var(--brand); color: #fff; }
.card__provider { font-size: 12.5px; color: var(--text-3); }
.card .chips { gap: 6px; }
.card .chips:empty { display: none; }
/* Экскурсия: фото 3:2 — коммерческая карточка выше и «кинематографичнее» */
.offer-card__img { aspect-ratio: 3 / 2; }
.offer-card .card__title { -webkit-line-clamp: 2; min-height: 2.6em; }
/* Место: компактная карточка, фото 4:3, подпись типа и времени */
.grid--places .place-card .card__title { font-size: 16.5px; }
.grid--places .place-card .chips:empty { display: none; }

/* Маршрут: обложка слева, цепочка остановок как линия (фирменный мотив дороги) */
.routes-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.route-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--r-large); overflow: hidden; background: #fff; color: var(--text); transition: border-color var(--t), box-shadow var(--t); min-width: 0; }
.route-card:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--text); }
.route-card__img { position: relative; background: var(--bg-photo); display: block; min-height: 100%; }
.route-card__img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .4s ease; }
.route-card:hover .route-card__img img { transform: scale(1.03); }
.route-card__days { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 10px; border-radius: 10px; background: var(--dark); color: #fff; font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: -0.02em; }
.route-card__days small { font-size: 12px; font-weight: 600; opacity: .85; }
.route-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 16px; min-width: 0; }
.route-card__kicker { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-dark); }
.route-card__title { font-size: 18px; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.route-card:hover .route-card__title { color: var(--brand-dark); }
.route-line { list-style: none; margin: 4px 0 0; padding: 0 0 0 18px; position: relative; font-size: 14px; color: var(--text-2); display: grid; gap: 5px; }
.route-line::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--brand-light); border-radius: 2px; }
.route-line li { position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route-line li::before { content: ''; position: absolute; left: -18px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-sizing: border-box; }
.route-line li:first-child::before { background: var(--brand); }
.route-line__more { color: var(--text-3); }
.route-line__more::before { border-style: dashed !important; }
.route-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; padding-top: 10px; font-size: 13.5px; color: var(--text-2); }
.route-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.route-card__meta .i { color: var(--text-3); }

/* Направление за город: название поверх фото, факты о дороге под ним */
.dest-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dest-card { display: flex; flex-direction: column; gap: 10px; color: var(--text); min-width: 0; }
.dest-card:hover { color: var(--text); }
.dest-card__img { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-large); overflow: hidden; background: var(--dark); display: block; }
.dest-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.dest-card:hover .dest-card__img img { transform: scale(1.04); }
.dest-card__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,24,0) 40%, rgba(10,22,24,.78) 100%); }
.dest-card__img--empty { background: var(--dark) repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.04) 14px 15px); }
.dest-card__body { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; color: #fff; display: grid; gap: 2px; pointer-events: none; }
.dest-card__name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.dest-card__type { font-size: 13.5px; opacity: .9; }
.dest-card__facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--text-2); }
.dest-card__facts span { display: inline-flex; align-items: center; gap: 5px; }
.dest-card__facts .i { color: var(--brand); }
.dest-card__facts:empty { display: none; }

/* Город на главной: фото 4:5, название поверх; сетка масштабируется до 20–30 городов */
.city-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.city-card { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-large); overflow: hidden; color: #fff; background: var(--dark); min-width: 0; }
.city-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.city-card:hover img { transform: scale(1.04); }
.city-card:hover { color: #fff; }
.city-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,24,0) 45%, rgba(10,22,24,.8) 100%); }
.city-card__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.35); }
.city-card__ph .i { width: 40px; height: 40px; }
.city-card__body { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; display: grid; gap: 2px; }
.city-card__name { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.city-card__meta { font-size: 13.5px; opacity: .9; }
.city-grid--single { grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); }

/* Плитки категорий и списки ссылок */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-card); color: var(--text); background: #fff; transition: border-color var(--t), box-shadow var(--t); font-weight: 500; }
.tile:hover { border-color: var(--brand); color: var(--brand-dark); box-shadow: var(--shadow); }
.tile__n { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.tile-groups { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tile-groups h3 { margin-bottom: 10px; font-size: 17px; }
.tile-groups ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tile-groups li a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; color: var(--text); }
.tile-groups li a:hover { background: var(--bg-soft); color: var(--brand-dark); }
.tile-groups li a span { color: var(--text-3); font-size: 13px; }
.themes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.themes__label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin-right: 6px; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; }
.link-list li { border-top: 1px solid var(--border); }
.link-list li:last-child { border-bottom: 1px solid var(--border); }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 2px; color: var(--text); font-weight: 500; line-height: 1.35; }
.link-list a:hover { color: var(--brand-dark); }
.link-list a > span:first-child { display: grid; min-width: 0; }
.link-list small { font-weight: 400; color: var(--text-2); font-size: 13px; }
.link-list .i { color: var(--text-3); flex: none; }
.rating--sm { font-size: 14px; }
.more-grid { display: grid; gap: 40px; grid-template-columns: 1.1fr 1fr 0.9fr; align-items: start; }
.more-col { min-width: 0; }
.afisha { display: flex; flex-direction: column; gap: 8px; padding: 26px 26px 22px; border-radius: var(--r-large); background: var(--brand-bg); color: var(--text); border: 1px solid transparent; transition: border-color var(--t), background var(--t); min-height: 100%; }
.afisha:hover { border-color: var(--brand); color: var(--text); }
.afisha__icon { width: 28px; height: 28px; color: var(--brand); margin-bottom: 6px; }
.afisha__kicker { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-dark); }
.afisha__title { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.afisha__link { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--brand); }
.afisha:hover .afisha__link { color: var(--brand-dark); }

/* «Что внутри» на главной */
.features { display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature { padding: 0 20px 0 0; }
.feature .i { width: 30px; height: 30px; color: var(--brand); margin-bottom: 14px; stroke-width: 1.6; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--text-2); font-size: 15px; }

/* ---------- Первый экран ---------- */
/* Головной домен: текст и поиск слева, карта городов справа. Компактно: не баннер на весь экран */
.intro { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding: 48px 0 16px; }
.intro__text { min-width: 0; }
.intro h1 { margin-bottom: 16px; max-width: 12ch; }
.intro__lead { font-size: 18px; color: var(--text-2); max-width: 520px; margin-bottom: 26px; }
.intro__search { display: flex; gap: 8px; max-width: 560px; }
.intro__search .search { flex: 1; }
.intro__search .search input[type=search] { width: 100%; min-height: 54px; background: #fff; border-color: var(--border-strong); font-size: 16px; padding-left: 44px; }
.intro__search .search input[type=search]:focus { width: 100%; }
.intro__search .search .i { left: 16px; }
.intro__search .btn { height: 54px; }
.intro__now { margin: 18px 0 0; font-size: 15px; color: var(--text-2); }
.intro__now a { font-weight: 600; }
.intro__map .map { height: auto; aspect-ratio: 9 / 7; border-radius: var(--r-hero); }
.intro__photo { position: relative; display: block; aspect-ratio: 9 / 7; border-radius: var(--r-hero); overflow: hidden; background: var(--dark); color: #fff; }
.intro__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.intro__photo:hover img { transform: scale(1.03); }
.intro__photo:hover { color: #fff; }
.intro__caption { position: absolute; left: 20px; bottom: 18px; display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px; background: rgba(10,22,24,.62); backdrop-filter: blur(8px); font-size: 13.5px; }
.intro__caption-city { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }

/* Город: сильная фотография, крупный заголовок, два действия. Статистика и чипы вынесены в .scenarios */
.hero-city { position: relative; margin: 20px auto 0; border-radius: var(--r-hero); overflow: hidden; background: var(--dark); color: #fff; min-height: clamp(420px, 54vh, 600px); display: flex; align-items: flex-end; }
.hero-city__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-city::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,22,24,.72) 0%, rgba(10,22,24,.42) 50%, rgba(10,22,24,.1) 100%), linear-gradient(180deg, rgba(10,22,24,0) 45%, rgba(10,22,24,.6) 100%); }
.hero-city__body { position: relative; z-index: 1; padding: 56px 56px 52px; max-width: 820px; width: 100%; }
.hero-city h1 { color: #fff; margin-bottom: 14px; max-width: 14ch; }
.hero-city__lead { font-size: 18px; color: rgba(255,255,255,.88); max-width: 520px; margin-bottom: 28px; text-wrap: pretty; }
.hero-city__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-city__credit { position: absolute; right: 16px; bottom: 12px; z-index: 1; font-size: 11.5px; color: rgba(255,255,255,.6); max-width: 50%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-city--plain { background: var(--brand-bg); color: var(--text); min-height: 0; }
.hero-city--plain::after { display: none; }
.hero-city--plain h1 { color: var(--text); }
.hero-city--plain .hero-city__lead { color: var(--text-2); }
/* Быстрый выбор сценария под первым экраном */
.scenarios { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 14px; }
.scenario { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-card); color: var(--text); background: #fff; transition: border-color var(--t), background var(--t); min-width: 0; }
.scenario:hover { border-color: var(--brand); color: var(--brand-dark); }
.scenario__label { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scenario__sub { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scenario--accent { background: var(--brand-bg); border-color: transparent; }
.scenario--accent .scenario__label { color: var(--brand-dark); }

/* Совместимость: старый hero на поиске и других страницах */
.hero { position: relative; margin: 20px auto 0; border-radius: var(--r-hero); overflow: hidden; background: var(--dark); color: #fff; min-height: 460px; display: flex; align-items: flex-end; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,22,24,.78) 0%, rgba(10,22,24,.55) 45%, rgba(10,22,24,.15) 100%), linear-gradient(180deg, rgba(10,22,24,0) 50%, rgba(10,22,24,.5) 100%); }
.hero__body { position: relative; z-index: 1; padding: 56px 56px 48px; max-width: 760px; width: 100%; }
.hero h1 { color: #fff; margin-bottom: 12px; max-width: 620px; }
.hero__lead { font-size: 17px; color: rgba(255,255,255,.86); max-width: 540px; margin-bottom: 24px; }
.hero__search { display: flex; gap: 8px; max-width: 620px; margin-bottom: 18px; }
.hero__search .search { flex: 1; }
.hero__search .search input[type=search] { width: 100%; min-height: 54px; background: #fff; border-color: transparent; font-size: 16px; padding-left: 44px; }
.hero__search .search input[type=search]:focus { width: 100%; }
.hero__search .search .i { left: 16px; }
.hero__search .btn { height: 54px; }
.hero--plain { min-height: 0; background: var(--brand-bg); color: var(--text); }
.hero--plain::after { display: none; }
.hero--plain h1 { color: var(--text); }
.hero--plain .hero__lead { color: var(--text-2); }
.hero--plain .hero__search .search input[type=search] { border-color: var(--border); }
.hero__stats { display: flex; gap: 28px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,.75); margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.hero__stats strong { color: #fff; font-size: 20px; display: block; line-height: 1.2; }

/* Карта с подписями: карта слева, нумерованный список справа */
.map-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: stretch; }
.map-split .map { height: 460px; }
.map-list { list-style: none; margin: 0; padding: 4px 0; display: grid; align-content: start; gap: 2px; max-height: 460px; overflow-y: auto; }
.map-list a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-control); color: var(--text); line-height: 1.25; }
.map-list a:hover { background: var(--bg-soft); color: var(--brand-dark); }
.map-list a > span:last-child { display: grid; min-width: 0; }
.map-list__n { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.map-list__name { font-weight: 500; font-size: 15px; }
.map-list small { color: var(--text-2); font-size: 12.5px; }
.map-toggle > summary { list-style: none; cursor: pointer; display: inline-block; }
.map-toggle > summary::-webkit-details-marker { display: none; }
.map-toggle[open] > summary { margin-bottom: 18px; }
.map-toggle[open] .chev { transform: rotate(180deg); }
.map-toggle .map { height: 520px; }

/* Отзывы на главной города: две карточки и призыв в одном ряду */
.reviews-row { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.reviews-row .review-cta { margin: 0; flex-direction: column; align-items: flex-start; justify-content: center; }

/* Старые плитки городов (поиск) */
.cities-map .map { height: 520px; }
.city-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 16px; }
.city-list a { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid var(--border); border-radius: var(--r-card); color: var(--text); background: #fff; transition: border-color var(--t), box-shadow var(--t); }
.city-list a:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--text); }
.city-list img, .city-list .city-list__ph { width: 56px; height: 42px; border-radius: 8px; object-fit: cover; flex: none; background: var(--bg-photo); }
.city-list__name { font-weight: 600; display: block; line-height: 1.25; }
.city-list__meta { font-size: 13px; color: var(--text-2); }

/* ---------- Страницы разделов ---------- */
.page-head { padding: 24px 0 8px; }
.page-head h1 { margin-bottom: 8px; }
.page-head .lead { margin-bottom: 0; }
.breadcrumbs { font-size: 13.5px; color: var(--text-2); margin: 20px 0 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs a:hover { color: var(--brand-dark); }
.breadcrumbs .sep { color: var(--text-3); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 20px 0 24px; }
.toolbar__count { color: var(--text-2); font-size: 15px; }
.toolbar__sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); white-space: nowrap; }
.toolbar__sort select { width: auto; min-height: 40px; padding: 6px 34px 6px 12px; font-size: 14px; }
.segmented { display: inline-flex; background: var(--bg-soft); padding: 3px; border-radius: 999px; }
.segmented a, .segmented button { height: 34px; padding: 0 14px; border-radius: 999px; font: 500 14px/34px inherit; color: var(--text); border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.segmented [aria-current], .segmented .is-on { background: #fff; box-shadow: var(--shadow); color: var(--brand-dark); }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 40px 0 0; }
.empty { padding: 28px; border-radius: var(--r-card); background: var(--bg-soft); color: var(--text-2); }

/* Статистика «как выбрать» */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { padding: 18px 20px; border-radius: var(--r-card); background: var(--bg-soft); }
.stat__label { font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.stat__value { font-size: 22px; font-weight: 700; }
.stat__value small { font-size: 14px; font-weight: 400; color: var(--text-2); }
.stat ul { list-style: none; padding: 0; margin: 6px 0 0; font-size: 14px; color: var(--text-2); }
.stat li { display: flex; justify-content: space-between; }

/* Фильтры мест */
.filters { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: center; }
.filters select { min-height: 44px; font-size: 15px; }
.filters-box { margin: 16px 0 24px; }
.filters-box > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14px; color: var(--brand); }
.filters-box > summary::-webkit-details-marker { display: none; }
.filters-box[open] > summary { margin-bottom: 12px; }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq-block { margin-top: 40px; }
.section--faq { padding-top: 48px; }
.section--faq .faq-block, .section > .faq-block:first-child { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { color: var(--text-3); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p { margin: 0 0 16px; color: var(--text-2); max-width: 760px; }

/* ---------- Детальные страницы ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; margin-top: 8px; }
.detail__aside { position: sticky; top: 88px; display: grid; gap: 16px; }
.box { border: 1px solid var(--border); border-radius: var(--r-large); padding: 22px 24px; background: #fff; }
.box--soft { background: var(--bg-soft); border-color: transparent; }
.box h3 { font-size: 16px; margin-bottom: 12px; }
.price { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.price small { font-size: 15px; font-weight: 400; color: var(--text-2); letter-spacing: 0; }
.price--na { font-size: 20px; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.rating .i { color: var(--star); fill: var(--star); stroke: none; }
.rating small { font-weight: 400; color: var(--text-2); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 12px; font-size: 14.5px; }
.facts dt { color: var(--text-2); }
.facts dd { margin: 0; }
.facts-strip { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 8px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 15px; }
.facts-strip span { display: inline-flex; align-items: center; gap: 7px; }
.facts-strip .i { color: var(--brand); }
.tariffs { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 4px 0 14px; }
.tariffs td { padding: 7px 0; border-bottom: 1px solid var(--border); }
.tariffs td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.tariffs tr:last-child td { border-bottom: 0; }
.tariffs small { color: var(--text-2); font-weight: 400; }
.detail__title h1 { margin-bottom: 8px; }
.detail__sub { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--text-2); font-size: 15px; margin-bottom: 18px; }
.detail__sub > span { display: inline-flex; align-items: center; gap: 5px; }
.detail__sub .i { color: var(--text-3); }
.detail__sub .rating { color: var(--text); }
.detail .section { padding: 36px 0 0; }
.detail ~ .section { padding: 48px 0; }                 /* блоки во всю ширину под карточкой: ритм как у левой колонки */
.section + .sources { margin-top: 0; }
.prose--offer p { margin-bottom: .9em; }
.prose--offer h3 { font-size: 18px; margin: 1.3em 0 .5em; }
.prose--offer ul { margin: 0 0 1em; }
.detail .section h2 { font-size: 24px; margin-bottom: 14px; }
.detail .grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* Галерея: раскладка зависит от числа фото (gallery--N), с шестого — в лайтбокс. Не загрузившиеся фото убирает site.js */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; border-radius: var(--r-large); overflow: hidden; height: 440px; position: relative; margin-bottom: 28px; }
.gallery a, .gallery > img { display: block; height: 100%; min-height: 0; overflow: hidden; background: var(--bg-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery a:first-child { grid-row: span 2; }
.gallery a:nth-child(n+6) { display: none; }
.gallery--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery--1 a:first-child { grid-row: auto; }
.gallery--2, .gallery--3 { grid-template-columns: 2fr 1fr; }
.gallery--2 a:nth-child(2) { grid-row: span 2; }
.gallery--4 a:nth-child(2) { grid-row: span 2; }
.gallery__more { position: absolute; right: 14px; bottom: 14px; z-index: 2; }
.credits { margin: 0 0 24px; font-size: 13px; color: var(--text-3); }
.credits > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.credits > summary::-webkit-details-marker { display: none; }
.credits > summary:hover { color: var(--text-2); }
.credits ul { margin: 8px 0 0; padding-left: 1.3em; }
.credits a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(10,22,24,.9); }
.lightbox__inner { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lightbox__nav:hover { background: rgba(255,255,255,.3); }
.lightbox__nav--prev { left: 16px; } .lightbox__nav--next { right: 16px; }
.lightbox__close { position: absolute; top: 16px; right: 16px; }
.lightbox__bar { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; max-width: 92vw; padding: 6px 14px; border-radius: 999px; background: rgba(10,22,24,.6); color: rgba(255,255,255,.85); font-size: 13.5px; white-space: nowrap; }
.lightbox__count { font-weight: 600; flex: none; }
.lightbox__credit { overflow: hidden; text-overflow: ellipsis; color: inherit; }
.lightbox__credit[href]:hover { color: #fff; text-decoration: underline; }
.lightbox__credit:empty { display: none; }

/* Гид, условия, отзывы */
.guide { display: flex; gap: 14px; align-items: center; }
.guide__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: var(--bg-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); }
.guide__label { font-size: 12.5px; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.guide__name { font-weight: 600; font-size: 17px; }
.guide__meta { font-size: 13.5px; color: var(--text-2); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.guide__meta .i { color: var(--star); fill: var(--star); stroke: none; }
.guide__meta b { color: var(--text); }
.terms { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.terms h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 6px; }
.terms h3 .i { color: var(--brand); }
.terms .prose ul { margin: 0; padding-left: 1.2em; }
.reviews { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-bottom: 20px; }
.review { padding: 18px 20px; border-radius: var(--r-card); background: var(--bg-soft); font-size: 15px; }
.review p { margin: 0; }
.review__head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.review__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-bg); color: var(--brand-dark); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.review__author { font-weight: 600; }
.review__meta { font-size: 13px; color: var(--text-2); }
.review__reply { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-2); }

/* Где поесть */
.food-card { padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--r-card); background: #fff; transition: border-color var(--t), box-shadow var(--t); gap: 8px; }
.food-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.food-card__head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.food-card .rating { flex: none; font-size: 14px; }
.food-card .rating small { font-weight: 400; color: var(--text-3); margin-left: 2px; }

/* Отзывы читателей о поездках */
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.review-card { padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--r-card); background: #fff; transition: border-color var(--t), box-shadow var(--t); }
.review-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.review-card .review__head { margin-bottom: 4px; }
.card__text--4 { -webkit-line-clamp: 4; }
.review-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 28px; padding: 24px 28px; border-radius: var(--r-large); background: var(--brand-bg); }
.review-cta h3 { margin: 0 0 4px; }
.review-cta p { margin: 0; color: var(--text-2); max-width: 620px; }
.form-grid { display: grid; gap: 4px 20px; grid-template-columns: 1fr 1fr; }
.form-grid .field--full { grid-column: 1 / -1; }
.field__error { font-size: 13.5px; color: var(--error); margin-top: 6px; }
.review-consent { margin: 8px 0 18px; }
.review-consent label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.review-consent input { flex: none; margin-top: 4px; }
.review-consent p { margin: 8px 0 0 26px; }
.req { color: var(--error); }
.plain-list li { margin-bottom: 6px; }

/* Места в программе */
.place-row { display: grid; gap: 14px; }
.place-item { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 10px; border-radius: var(--r-card); border: 1px solid var(--border); color: var(--text); transition: border-color var(--t); }
.place-item:hover { border-color: var(--brand); color: var(--text); }
.place-item__img { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.place-item__img img { width: 100%; height: 100%; object-fit: cover; }
.place-item__title { font-weight: 600; margin-bottom: 2px; }
.place-item__meta { font-size: 13.5px; color: var(--text-2); }
.place-item__n { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; align-items: center; justify-content: center; margin-right: 6px; }

/* Карта */
.map { position: relative; height: 420px; border-radius: var(--r-card); overflow: hidden; background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23E4E9E6'/%3E%3C/svg%3E"); border: 1px solid var(--border); }
.map--tall { height: 560px; }
.map--aside { height: 240px; }
.map__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.map .maplibregl-popup-content { border-radius: 12px; padding: 0; overflow: hidden; box-shadow: var(--shadow-pop); font-family: inherit; }
.map .maplibregl-popup-close-button { font-size: 20px; padding: 2px 8px; color: #fff; text-shadow: 0 0 4px rgba(0,0,0,.5); }
.map .maplibregl-ctrl-attrib { font-size: 11px; }
.pop { display: block; width: 220px; color: var(--text); }
.pop img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.pop__body { padding: 10px 12px 12px; }
.pop__title { font-weight: 600; font-size: 14px; line-height: 1.3; }
.pop__meta { font-size: 12.5px; color: var(--text-2); }
.marker { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--brand); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.marker span { transform: rotate(45deg); color: #fff; font-size: 12px; font-weight: 700; }
.marker--active { background: var(--text); }
.marker--muted { background: var(--text-2); }
.marker--label { width: auto; height: auto; padding: 5px 10px; border-radius: 999px; transform: none; white-space: nowrap; }
.marker--label span { transform: none; font-size: 13px; }

/* План по дням */
.day { margin-bottom: 36px; }
.day__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.day__head h2 { margin: 0; font-size: 22px; }
.day__meta { display: flex; gap: 14px; font-size: 14px; color: var(--text-2); }
.day__meta span { display: inline-flex; align-items: center; gap: 5px; }
.stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stop__walk { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 5px; padding: 0 0 8px 46px; }
.stop__row { display: grid; grid-template-columns: 32px 96px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: var(--r-card); background: #fff; }
.stop__n { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.stop__n--soft { background: var(--bg-soft); color: var(--text-2); }
.stop__img { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--bg-soft); display: block; }
.stop__img img { width: 100%; height: 100%; object-fit: cover; }
.stop__title { font-weight: 600; color: var(--text); }
.stop__title:hover { color: var(--brand-dark); }
.stop__meta { font-size: 13.5px; color: var(--text-2); }
.stop__text { font-size: 14px; color: var(--text-2); margin: 4px 0 0; }
.stop__actions { display: flex; gap: 2px; }
.stop--lunch .stop__row { grid-template-columns: 32px 1fr; background: var(--bg-soft); border-color: transparent; }
.day__offer { margin-top: 14px; padding: 16px; border-radius: var(--r-card); background: var(--brand-bg); }
.day__offer-label { font-weight: 600; font-size: 14px; color: var(--brand-dark); margin-bottom: 10px; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.planner__grid { display: grid; gap: 16px 20px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.planner__row { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.planner__row .field--narrow { width: 140px; flex: none; }
.planner fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.planner legend { font-weight: 500; margin-bottom: 8px; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices .choice, .field .choice { display: inline-flex; position: relative; padding-left: 12px; margin: 0; font-weight: 500; }
.choice::before { content: ''; display: block; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--border-strong); background: #fff; flex: none; }
.choice:has(input:checked)::before { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--brand); }
.choice:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.choice:has(input:checked) { background: var(--chip-active); color: var(--brand-dark); border-color: rgba(7,140,125,.3); }
@media (max-width: 860px) { .stop__row { grid-template-columns: 28px 72px 1fr; } .stop__actions { grid-column: 1 / -1; justify-content: flex-end; } .stop__walk { padding-left: 0; } }

/* Шаги «как это работает» */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.step { padding: 24px; border-radius: var(--r-large); background: #fff; border: 1px solid var(--border); }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-bg); color: var(--brand-dark); font-weight: 700; align-items: center; justify-content: center; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--text-2); font-size: 15px; }

/* Тёмный акцентный блок (один на страницу) */
.cta-dark { background: var(--dark); color: #fff; border-radius: var(--r-hero); padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-dark h2 { color: #fff; margin: 0 0 6px; }
.cta-dark p { margin: 0; color: rgba(255,255,255,.8); max-width: 560px; }

/* Источники */
.sources { border-top: 1px solid var(--border); padding-top: 24px; margin-top: 48px; font-size: 14px; color: var(--text-2); }
.sources h2 { font-size: 18px; }
.sources .ad-label { font-size: 12px; color: var(--text-3); }
.sources ul { padding-left: 1.2em; margin: 0 0 10px; }

/* Партнёры на странице «О проекте» */
.partners { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin: 20px 0 28px; }
.partners div { padding: 22px 22px 18px; border: 1px solid var(--border); border-radius: var(--r-card); background: #fff; }
.partners img { height: 34px; width: auto; max-width: 100%; margin-bottom: 14px; }
.partners p { margin: 0; font-size: 14.5px; color: var(--text-2); }
@media (max-width: 860px) { .partners { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,.72); padding: 56px 0 32px; font-size: 14.5px; margin-top: 80px; }
main:has(> .section--soft:last-child) + .footer { margin-top: 0; }   /* серая секция последней — без белой полосы перед подвалом */
.footer a { color: rgba(255,255,255,.88); display: inline-flex; align-items: center; gap: 4px; }
.footer a:hover { color: #fff; }
.footer a .i { color: rgba(255,255,255,.45); }
.footer__cols { display: grid; gap: 32px 40px; grid-template-columns: 1.5fr 1fr 1fr 1fr; margin-bottom: 36px; }
.footer__about p { max-width: 360px; }
.footer__contact a { font-weight: 600; }
.footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer__brand { color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.footer__brand:hover { color: #fff; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: 13px; color: rgba(255,255,255,.5); }
.footer__legal p { margin: 0 0 6px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1599px) {
  .header__search { display: none; position: absolute; left: 0; right: 0; top: 68px; padding: 10px var(--gutter) 12px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .header__search.is-open { display: block; }
  .header__search .search, .header__search .search input[type=search], .header__search .search input[type=search]:focus { width: 100%; }
  .header__search-toggle { display: inline-flex; margin-left: auto; }
}
@media (max-width: 1024px) {
  .nav { display: none; }
  .nav-mobile { display: flex; gap: 6px; overflow-x: auto; padding: 0 var(--gutter) 10px; scrollbar-width: none; }
  .nav-mobile a { flex: none; height: 32px; }
}
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .more-grid { grid-template-columns: 1fr 1fr; }
  .more-grid .afisha { grid-column: 1 / -1; min-height: 0; }
  .dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-row .review-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .map-split { grid-template-columns: 1fr; }
  .map-list { max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro { gap: 32px; }
  .route-card { grid-template-columns: 150px minmax(0, 1fr); }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .section { padding: 40px 0; }
  .header__row { height: 60px; gap: 2px; }
  .logo { font-size: 18px; }
  .logo__pin { width: 18px; height: 23px; }
  .nav { display: none; }
  .nav-mobile { display: flex; gap: 6px; overflow-x: auto; padding: 0 var(--gutter) 10px; scrollbar-width: none; }
  .nav-mobile::-webkit-scrollbar { display: none; }
  .nav-mobile a { flex: none; height: 32px; }
  .chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
  .chips--scroll::-webkit-scrollbar { display: none; }
  .chips--scroll .chip { flex: none; }
  .hero .chips { max-width: none; }
  .header__search { display: none; position: absolute; left: 0; right: 0; top: 60px; padding: 8px var(--gutter) 12px; background: #fff; border-bottom: 1px solid var(--border); }
  .header__search.is-open { display: block; }
  .header__search .search, .header__search .search input[type=search], .header__search .search input[type=search]:focus { width: 100%; }
  .header__search-toggle { display: inline-flex; margin-left: auto; }
  .city-select > summary { max-width: 44vw; padding: 0 6px 0 8px; height: 36px; font-size: 14px; }
  .city-select__menu, .city-select__menu--wide { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; }
  .city-select__head input { max-width: none; }
  .hero { margin: 8px auto 0; min-height: 420px; border-radius: var(--r-large); }
  .hero__body { padding: 24px 18px; }
  .hero__search { flex-direction: column; }
  .hero__search .btn { height: 48px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .card__title { font-size: 15.5px; }
  /* Мобильный: горизонтальная лента карточек со снапом вместо длинной колонки */
  .rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none; grid-template-columns: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { flex: 0 0 78%; scroll-snap-align: start; max-width: 320px; }
  .rail.routes-grid > * { flex-basis: 86%; max-width: 360px; }
  .intro { grid-template-columns: 1fr; gap: 20px; padding: 24px 0 8px; }
  .intro h1 { max-width: none; }
  .intro__search { flex-direction: column; }
  .intro__photo { aspect-ratio: 16 / 10; order: -1; border-radius: var(--r-large); }
  .intro__map .map { aspect-ratio: 4 / 3; border-radius: var(--r-large); }
  .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .city-grid--single { grid-template-columns: 1fr; }
  .city-card__name { font-size: 20px; }
  .city-card__body { left: 14px; right: 14px; bottom: 12px; }
  .features { grid-template-columns: 1fr; gap: 22px; }
  .hero-city { margin: 10px auto 0; min-height: 0; border-radius: var(--r-large); }
  .hero-city__body { padding: 150px 18px 22px; }
  .hero-city h1 { max-width: none; }
  .hero-city__lead { font-size: 16px; margin-bottom: 18px; }
  .hero-city__actions .btn { height: 48px; font-size: 16px; padding: 0 18px; }
  .hero-city__credit { display: none; }
  .scenarios { display: flex; overflow-x: auto; scrollbar-width: none; margin: 10px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 4px; }
  .scenarios::-webkit-scrollbar { display: none; }
  .scenario { flex: 0 0 auto; min-width: 150px; padding: 10px 14px; }
  .route-card { grid-template-columns: 1fr; }
  .route-card__img { aspect-ratio: 16 / 9; min-height: 0; }
  .route-card__body { padding: 14px 16px; }
  .dest-grid { grid-template-columns: 1fr; }
  .dest-card__name { font-size: 19px; }
  .more-grid { grid-template-columns: 1fr; gap: 28px; }
  .teaser { grid-template-columns: 1fr; padding: 20px 18px; gap: 18px; }
  .teaser__dishes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .teaser__dish { font-size: 12.5px; }
  .prose .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .reviews-row { grid-template-columns: 1fr; }
  .reviews-row .review-cta { flex-direction: column; align-items: flex-start; }
  .map-split .map { height: 320px; }
  .map-list { grid-template-columns: 1fr; }
  .map-toggle .map { height: 320px; }
  .section--first { padding-top: 32px; }
  .section-head { margin-bottom: 18px; }
  .themes { margin-top: 20px; }
  .search--inline { width: 100%; }
  .search--inline input[type=search], .search--inline input[type=search]:focus { width: 100%; }
  .detail { grid-template-columns: 1fr; gap: 24px; }
  .detail__aside { position: static; }
  .detail__aside--first { order: -1; }
  .gallery { height: 260px; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
  .gallery--4 a:nth-child(2) { grid-row: auto; }
  .gallery a:nth-child(n+4) { display: none; }
  .gallery--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .map, .cities-map .map { height: 320px; }
  .cta-dark { padding: 28px 22px; }
  .footer__cols { grid-template-columns: 1fr; gap: 24px; }
  .toolbar { margin: 14px 0 18px; }
  .place-item { grid-template-columns: 88px 1fr; }
}
@media (max-width: 480px) {
  :root { --fs-h1: 30px; --fs-h2: 25px; }
  .grid, .grid--3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .grid--compact { grid-template-columns: repeat(2, 1fr); }
  .gallery { height: 220px; grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .gallery a:first-child, .gallery--2 a:nth-child(2), .gallery--4 a:nth-child(2) { grid-row: auto; }
  .gallery a:nth-child(n+2) { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
