/*
 * Шаманка.online — стили сайта.
 * Все цвета берутся из токенов темы (--t-*). Значения ниже — запасные (осень),
 * на сайте их перекрывает активная тема из админки: шаблон выводит её токены в <style>.
 */
:root {
  --t-page-bg: #fbf4e8;
  --t-header-bg: #513827;
  --t-footer-bg: #513827;
  --t-logo: #ffe3ac;
  --t-heading: #513827;
  --t-text: #44382f;
  --t-text-muted: #756454;
  --t-primary: #98451e;
  --t-on-primary: #ffffff;
  --t-primary-hover: #7d3617;
  --t-surface: #fffcf6;
  --t-border: #e8d8bf;
  --t-link: #98451e;
  --t-icon: #513827;
  --t-warning-bg: #fff1d6;
  --t-warning-text: #654319;
  --secondary: var(--t-secondary-button, var(--t-primary));
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
  --radius: 14px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--t-page-bg); color: var(--t-text); font: 17px/1.55 'Manrope', Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--t-link); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--t-primary-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--t-link); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--t-heading); }
.icon { width: 1.1em; height: 1.1em; flex: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 20px 20px 40px; display: flex; flex-direction: column; gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.muted { color: var(--t-text-muted); }
.small { font-size: 14px; }
.lead { font-size: 19px; color: var(--t-text); max-width: 760px; }
.more { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; }

h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h3 { font-size: 22px; font-weight: 700; }
.section { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }

/* Шапка и подвал — сплошные полосы цвета темы */
.site-header, .site-footer { color: var(--t-logo); }
.site-header { background: var(--t-header-bg); }
.site-footer { background: var(--t-footer-bg); margin-top: 24px; }
.site-header a, .site-footer a { color: var(--t-logo); text-decoration: none; }
.header, .footer { max-width: 1180px; margin: 0 auto; padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.footer { padding: 24px 20px; font-size: 14px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.brand-logo { height: 44px; width: auto; }
.brand--big .brand-logo { height: clamp(48px, 9vw, 72px); }
.brand-icon, .brand-word { display: none; }
.brand-tagline { display: block; font-size: 17px; opacity: 0.9; }
.brand:not(.brand--big) .brand-tagline { display: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15px; font-weight: 600; }
.nav a { padding: 12px 0; }
.nav a[aria-current] { border-bottom: 2px solid currentColor; }
.footer strong { display: block; font-size: 19px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-weight: 600; }
.footer nav a { padding: 12px 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--t-text-muted); }
.crumbs > * { padding: 6px 0; }
/* Новогодняя гирлянда-полоска под шапкой, только если в теме задан festive-red */
.site-header::after { content: ''; display: block; height: 4px; background: var(--t-festive-red, transparent); background-image: radial-gradient(circle, var(--t-primary) 2px, transparent 3px); background-size: 18px 4px; opacity: var(--festive-on, 0); }

/* Кнопки и метки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 600; padding: 13px 20px; border-radius: 10px; border: 0; cursor: pointer; background: var(--t-primary); color: var(--t-on-primary); text-decoration: none; }
.btn:hover { color: var(--t-on-primary); background: var(--t-primary-hover); }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; padding: 11px 18px; border: 2px solid var(--secondary); border-radius: 10px; color: var(--secondary); background: transparent; text-decoration: none; }
.btn-outline:hover { color: var(--t-primary-hover); border-color: var(--t-primary-hover); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; font-weight: 600; background: var(--t-warning-bg); color: var(--t-warning-text); padding: 4px 10px; border-radius: 999px; }
.chip--draft { background: var(--t-border); color: var(--t-heading); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { font-size: 15px; font-weight: 600; padding: 9px 18px; border-radius: 999px; border: 2px solid var(--t-border); background: var(--t-surface); color: var(--t-text); text-decoration: none; }
.filter[aria-current] { border-color: var(--t-primary); background: var(--t-primary); color: var(--t-on-primary); }

/* Карточки */
.card { background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--t-text); text-decoration: none; }
.card:hover { color: var(--t-text); }
.card b { color: var(--t-heading); }
.card-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.tile { flex: 1 1 240px; }
.tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tile--wide img { aspect-ratio: 4 / 3; }
.quick { flex: 1 1 230px; display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.quick .round { width: 48px; height: 48px; border-radius: 50%; background: var(--t-warning-bg); color: var(--t-icon); display: flex; align-items: center; justify-content: center; flex: none; font-size: 24px; }
.quick span.grow { flex: 1; }
.quick b { display: block; }
.quick > .icon { color: var(--t-icon); }
.photo-empty { background: var(--t-page-bg); border: 2px dashed var(--t-border); color: var(--t-text-muted); font-size: 14px; display: flex; align-items: center; justify-content: center; min-height: 160px; }

/* Главная */
.notice { flex: 999 1 520px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; background: var(--t-warning-bg); color: var(--t-warning-text); border-radius: 12px; padding: 12px 18px; }
.notice > div { flex: 1 1 260px; }
.notice-icon { color: var(--t-warning-text); }
.gallery img { flex: 1 1 280px; min-width: 0; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 12px; }
.contact { display: flex; flex-wrap: wrap; gap: 28px 48px; background: var(--t-surface); border: 1px solid var(--t-border); border-radius: 16px; padding: 36px; }
.contact > * { flex: 1 1 320px; }
.mail { font-size: 21px; font-weight: 600; }

/* Список объектов */
.place { display: flex; flex-wrap: wrap; }
.place-photo { flex: 1 1 280px; min-width: 0; height: 220px; object-fit: cover; }
.place-info { flex: 2 1 340px; padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; }
.place-info h2 { font-size: 24px; font-weight: 700; letter-spacing: 0; }
.place-info h2 a { color: var(--t-heading); text-decoration: none; }
.place-info .chips { margin-top: auto; }
.place-side { flex: 1 1 200px; padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; gap: 10px; border-left: 1px solid var(--t-border); }
.price { font-size: 24px; font-weight: 700; color: var(--t-heading); }
.price--big { font-size: 34px; letter-spacing: -0.01em; }
.promo { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; background: var(--t-warning-bg); color: var(--t-warning-text); border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.promo:hover { color: var(--t-warning-text); }
.promo img { flex: 0 1 220px; min-width: 0; height: 120px; object-fit: cover; }
.promo > span { flex: 1 1 300px; padding: 14px 4px; }
.promo b { display: block; font-size: 22px; }
.promo-kicker { font-size: 14px; font-weight: 600; }
.promo .more { padding: 14px 24px; flex: none; }

/* Страница объекта */
.shots { display: flex; flex-wrap: wrap; gap: 10px; }
.shots > img { flex: 2 1 420px; min-width: 0; height: 420px; object-fit: cover; border-radius: var(--radius); }
.shots-grid { flex: 1 1 300px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shots-grid img { width: 100%; height: 205px; object-fit: cover; border-radius: 12px; }
.columns { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px 40px; }
.main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.main h2 { font-size: 28px; font-weight: 700; letter-spacing: 0; }
.prose { font-size: 17px; color: var(--t-text); }
.prose > * + * { margin-top: 0.8em; }
.facts { display: flex; flex-wrap: wrap; gap: 12px; }
.fact { flex: 1 1 150px; padding: 14px 16px; }
.fact b { display: block; font-size: 18px; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 24px; font-size: 17px; }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks .icon { color: var(--t-icon); }
.variant { flex: 1 1 260px; }
.variant img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.book { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 16px; position: sticky; top: 16px; }
.book .btn, .book .btn-outline { font-size: 17px; width: 100%; }
.book-note { font-size: 14px; color: var(--t-text-muted); border-top: 1px solid var(--t-border); padding-top: 12px; }

@media (max-width: 640px) {
  .place-side { border-left: 0; border-top: 1px solid var(--t-border); }
  .contact { padding: 24px 20px; }
  .book { position: static; }
  .shots > img { height: 260px; }
  .shots-grid img { height: 130px; }
}

/* Интерактивная карта */
.imap { position: relative; background: var(--t-surface); border: 1px solid var(--t-border); border-radius: 16px; overflow: clip; box-shadow: var(--shadow); }
.imap-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.imap-canvas { position: relative; min-width: 720px; }
.imap-canvas > img { width: 100%; height: 100%; }
.imap-zones { position: absolute; inset: 0; width: 100%; height: 100%; }
.imap-zone { fill: transparent; stroke: transparent; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; cursor: pointer; outline: none; transition: fill 0.15s, stroke 0.15s; }
.imap-zone--line { fill: none; stroke-width: 30; }
.imap-zone:hover, .imap-zone:focus-visible, .imap-zone.is-active { fill: rgba(255, 255, 255, 0.3); stroke: #fff; }
.imap-zone--line:hover, .imap-zone--line:focus-visible, .imap-zone--line.is-active { fill: none; stroke: rgba(255, 255, 255, 0.65); }
.imap-pin { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; padding: 0; border-radius: 50%; border: 3px solid #fff; background: var(--t-primary); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); cursor: pointer; }
.imap-pin::after { content: ''; position: absolute; inset: -12px; }
.imap-pin:hover, .imap-pin.is-active { transform: scale(1.25); }
.imap-pin--bath { background: #8a2f6b; }
.imap-pin--food { background: #286447; }
.imap-pin--river { background: #1d5fa8; }
.imap-tip { position: absolute; z-index: 2; width: max-content; max-width: min(260px, 70%); display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: 12px; background: var(--t-surface); color: var(--t-text); border: 1px solid var(--t-border); font-size: 14px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); pointer-events: none; }
.imap-tip[hidden] { display: none; }
.imap-tip b { font-size: 16px; color: var(--t-heading); }
.imap-tip .more { display: none; padding: 6px 0 2px; }
.imap-tip.is-pinned { pointer-events: auto; }
.imap-tip.is-pinned .more:not([hidden]) { display: inline-flex; }
.imap-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 10px 16px; color: var(--t-text); }
.imap-legend span { display: inline-flex; align-items: center; gap: 8px; }
.imap-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--t-primary); display: inline-block; }

/* Свёрнутая карта: видна полоса из середины картинки и кнопка «Развернуть» */
.imap.is-collapsed .imap-scroll { max-height: 190px; overflow: hidden; }
.imap.is-collapsed .imap-canvas { margin-top: -22%; }
.imap.is-collapsed .imap-zones, .imap.is-collapsed .imap-pin { pointer-events: none; }
.imap.is-collapsed .imap-legend:not(:has([data-locate])) { display: none; }
.imap.is-collapsed .imap-legend > span:not([data-geo-status]) { display: none; }
.imap.is-collapsed .imap-legend { position: relative; z-index: 4; background: var(--t-surface); }
.imap-expand { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; border: 0; padding: 0; font: inherit; cursor: pointer; background: linear-gradient(rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.3)); }
.imap-expand[hidden] { display: none; }
.imap-expand .btn { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
/* «Свернуть» прилипает к верху окна, пока раскрытая карта на экране */
.imap-bar { position: sticky; top: 12px; z-index: 4; height: 0; display: flex; justify-content: flex-end; padding-right: 12px; }
.imap-collapse { transform: translateY(12px); padding: 10px 16px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.imap-collapse[hidden] { display: none; }

/* Кнопка мобильного меню и карусель: на компьютере не видны */
.nav-toggle { display: none; }
.carousel { position: relative; }
.carousel-btn { display: none; }
.notice-icon { font-size: 30px; }
.only-mobile { display: none; }

/* Телефон: компактная шапка с меню-бургером, короткая плашка ООПТ, маршруты каруселью */
@media (max-width: 720px) {
  .site-header { position: relative; }
  .header { flex-wrap: nowrap; padding: 10px 16px; gap: 12px; }
  /* Знак слева на высоту двух строк, справа надпись и подпись — пропорции из макета */
  .brand { flex-direction: row; align-items: center; gap: 10px; min-width: 0; }
  .brand-logo { display: none; }
  .brand-icon { display: block; height: 52px; width: auto; flex: none; }
  .brand-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
  .brand-word { display: block; width: min(222px, 100%); height: auto; }
  /* подпись по ширине надписи: колонка текста = ширина экрана минус отступы, знак и кнопка меню (150px) */
  .brand-tagline, .brand:not(.brand--big) .brand-tagline { display: block; font-size: min(11.5px, calc((100vw - 150px) * 0.054)); line-height: 1.2; white-space: nowrap; }

  .nav-toggle { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid currentColor; border-radius: 10px; background: transparent; color: var(--t-logo); cursor: pointer; -webkit-appearance: none; appearance: none; }
  .nav-toggle svg { display: block; width: 24px; height: 24px; }
  .nav-toggle .nav-toggle-close, .site-header.is-open .nav-toggle .nav-toggle-open { display: none; }
  .site-header.is-open .nav-toggle .nav-toggle-close { display: block; }

  .js .nav { display: none; position: absolute; z-index: 20; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 16px 16px; background: var(--t-header-bg); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25); font-size: 17px; }
  .js .site-header.is-open .nav { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
  .nav a[aria-current] { border-bottom-width: 1px; text-decoration: underline; text-underline-offset: 5px; }

  .wrap { padding: 12px 16px 32px; gap: 16px; }

  .notice { flex-wrap: nowrap; gap: 10px; padding: 10px 12px; }
  .notice-icon { display: none; }
  .notice-text { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.3; }
  .notice-text .small { font-size: 12px; margin-top: 2px; }
  .notice .btn { flex: none; padding: 10px 12px; font-size: 14px; gap: 6px; }
  .notice-aside, .only-desktop { display: none; }
  .only-mobile { display: inline; }

  .map-title { font-size: 26px; }
  .quick-list { gap: 10px; }
  .quick { padding: 10px 14px; }

  .carousel-track { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; padding: 2px 2px 8px; }
  .carousel-track::-webkit-scrollbar { display: none; }
  .carousel-track > * { flex: 0 0 86%; scroll-snap-align: center; }
  .carousel-btn { display: flex; align-items: center; justify-content: center; position: absolute; z-index: 2; top: 30%; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--t-surface); color: var(--t-heading); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); cursor: pointer; font-size: 18px; }
  .carousel-btn--prev { left: -6px; }
  .carousel-btn--next { right: -6px; }
  .carousel-btn:disabled { opacity: 0; pointer-events: none; }
}

/* Статья: колонка текста 720px, фото и видео бывают шире текста или во всю ширину */
.article { --col: 720px; --wide: 980px; display: flex; flex-direction: column; gap: 20px; }
.article .crumbs, .article-head, .article .b { width: 100%; max-width: var(--col); margin-inline: auto; }
.article .b--wide { max-width: var(--wide); }
.article .b--full { max-width: none; }
.article-head { display: flex; flex-direction: column; gap: 12px; }
.article-head h1 { font-size: clamp(32px, 5vw, 48px); }
.article-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; }
.article-facts div { background: var(--t-surface); border: 1px solid var(--t-border); border-radius: 12px; padding: 8px 14px; }
.article-facts dt { font-size: 13px; color: var(--t-text-muted); }
.article-facts dd { margin: 0; font-weight: 700; color: var(--t-heading); }
.article figure { margin: 0; }
.article figure img, .article video { width: 100%; height: auto; border-radius: var(--radius); }
.article-cover img { aspect-ratio: 16 / 9; object-fit: cover; }
.article figcaption { font-size: 14px; color: var(--t-text-muted); margin-top: 8px; }
.article-body { display: block; }
.article-body > .b { margin-bottom: 24px; }
.article-body > .b:not(.b--text):not(.b--float-left):not(.b--float-right) { clear: both; }
.article-body .prose { font-size: 18px; line-height: 1.65; }
.article-body .prose h2 { font-size: 28px; margin: 1.2em 0 0.4em; }
.article-body .prose h3 { font-size: 22px; margin: 1em 0 0.3em; }
.article-body .prose ul, .article-body .prose ol { padding-left: 1.3em; }
.article-body .prose blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--t-primary); color: var(--t-text-muted); }
/* Обтекание: фото уходит в край колонки текста, следующий текст обтекает его */
.article-body > .b--float-left, .article-body > .b--float-right { width: min(45%, 330px); }
.article-body > .b--float-left { float: left; margin: 6px 24px 16px calc((100% - min(100%, var(--col))) / 2); }
.article-body > .b--float-right { float: right; margin: 6px calc((100% - min(100%, var(--col))) / 2) 16px 24px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery-grid img { aspect-ratio: 4 / 3; object-fit: cover; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.callout { background: var(--t-warning-bg); color: var(--t-warning-text); border-radius: var(--radius); padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.callout .prose { font-size: 17px; color: inherit; }
.callout--warning { border-left: 4px solid var(--t-primary); }
.callout--info { background: var(--t-surface); color: var(--t-text); border: 1px solid var(--t-border); }
.steps h2 { font-size: 28px; margin-bottom: 12px; }
.steps-list { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps-list li { counter-increment: step; position: relative; padding-left: 52px; display: flex; flex-direction: column; gap: 8px; }
.steps-list li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--t-primary); color: var(--t-on-primary); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps-list li:not(:last-child)::after { content: ''; position: absolute; left: 17px; top: 38px; bottom: -16px; width: 2px; background: var(--t-border); }
.steps-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 19px; color: var(--t-heading); }
.steps-list p { font-size: 17px; }
.steps-list img { border-radius: 12px; }
.places-block h2, .article-related h2 { font-size: 28px; margin-bottom: 12px; }
.place-card { flex: 1 1 220px; }
.place-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Карусель, которая листается на любом экране (галерея в статье) */
.carousel--always .carousel-track { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; }
.carousel--always .carousel-track::-webkit-scrollbar { display: none; }
.carousel--always .carousel-track > img { flex: 0 0 auto; width: min(80%, 640px); aspect-ratio: 3 / 2; object-fit: cover; scroll-snap-align: center; }
.carousel--always .carousel-btn { display: flex; align-items: center; justify-content: center; position: absolute; z-index: 2; top: calc(50% - 20px); width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--t-surface); color: var(--t-heading); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); cursor: pointer; }
.carousel--always .carousel-btn--prev { left: 8px; }
.carousel--always .carousel-btn--next { right: 8px; }
.carousel--always .carousel-btn:disabled { opacity: 0; pointer-events: none; }

@media (max-width: 720px) {
  .article { gap: 16px; }
  .article-body .prose { font-size: 17px; }
  /* На телефоне без обтекания; «во всю ширину» — от края до края экрана */
  .article-body > .b--float-left, .article-body > .b--float-right { float: none; width: 100%; margin: 0 0 24px; }
  .article .b--full { width: auto; margin-inline: -16px; }
  .article .b--full img, .article .b--full video, .article .b--full .video-frame { border-radius: 0; }
  .article .b--full figcaption { padding-inline: 16px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .carousel--always .carousel-track > img { width: 86%; }
  .steps-list li { padding-left: 46px; }
}

/* Карусель предложений на главной и «Шаманка в фото» */
.carousel--tiles .carousel-track > .tile { flex: 0 0 280px; scroll-snap-align: start; }
.carousel--tiles .carousel-btn { top: 25%; }
.photo-slide { position: relative; flex: 0 0 auto; margin: 0; scroll-snap-align: center; }
.photo-slide img { display: block; height: 340px; width: auto; max-width: 86vw; object-fit: cover; border-radius: 12px; background: var(--t-border); }
.photo-credit { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 13px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 720px) {
  .carousel--tiles .carousel-track > .tile { flex: 0 0 86%; scroll-snap-align: center; }
  .carousel--always .carousel-track > .photo-slide { flex: 0 0 auto; }
  .photo-slide img { height: 280px; }
}

/* Первый экран на компьютере: карта выше, плашка ООПТ компактнее */
@media (min-width: 721px) {
  .imap.is-collapsed .imap-scroll { max-height: clamp(220px, 40vh, 440px); }
  .imap.is-collapsed .imap-canvas { margin-top: -14%; }
  .notice { padding: 8px 14px; gap: 8px 14px; }
  .notice .btn { padding: 10px 16px; }
  .notice-icon { font-size: 24px; }
}

/* Промо-блок в каталоге на телефоне: картинка во всю ширину сверху */
@media (max-width: 720px) {
  .promo { flex-direction: column; align-items: stretch; gap: 0; }
  .promo img { flex: none; width: 100%; height: 150px; }
  .promo > span { flex: none; padding: 14px 20px 4px; }
  .promo .more { padding: 8px 20px 16px; }
}

/* Просмотр фото на весь экран */
.photo-slide img { cursor: zoom-in; }
.lightbox:focus { outline: none; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0c0a08; color: #fff; overflow: hidden; }
.lightbox-btn:focus:not(:focus-visible) { outline: none; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.6); }
.lightbox-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.lightbox-track::-webkit-scrollbar { display: none; }
.lightbox-slide { flex: 0 0 100%; height: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 56px 16px 20px; scroll-snap-align: center; scroll-snap-stop: always; }
.lightbox-slide img { max-width: 100%; max-height: calc(100% - 64px); object-fit: contain; border-radius: 8px; }
.lightbox-slide figcaption { max-width: 720px; text-align: center; font-size: 15px; line-height: 1.45; opacity: 0.9; }
.lightbox-slide figcaption a { color: inherit; }
.lightbox-btn { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 20px; cursor: pointer; }
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox-close { top: 10px; right: 10px; }
.lightbox-prev { left: 12px; top: calc(50% - 22px); }
.lightbox-next { right: 12px; top: calc(50% - 22px); }
.lightbox-btn:disabled { opacity: 0; pointer-events: none; }
.lightbox-count { position: absolute; top: 20px; left: 20px; font-size: 14px; opacity: 0.7; }
@media (max-width: 720px) { .lightbox-prev, .lightbox-next { display: none; } }

/* Телефоны хозяина после «Показать телефон»: номер и подпись, чей он */
.phone-list { display: flex; flex-direction: column; gap: 8px; }
.phone-link { flex-direction: column; gap: 2px; line-height: 1.2; }
.phone-link b { color: inherit; }
.phone-link span { font-size: 13px; font-weight: 400; opacity: 0.85; }

/* «Где я?» на карте: пульсирующая точка гостя и круг точности */
.imap-canvas { container-type: inline-size; }
.imap-me { position: absolute; z-index: 2; width: 0; height: 0; pointer-events: none; }
.imap-me[hidden] { display: none; }
.imap-me-dot { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.imap-me-dot::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid #1a73e8; animation: imap-me-pulse 2s ease-out infinite; }
.imap-me-accuracy { position: absolute; left: 0; top: 0; translate: -50% -50%; min-width: 18px; min-height: 18px; border-radius: 50%; background: rgba(26, 115, 232, 0.16); border: 1px solid rgba(26, 115, 232, 0.4); }
@keyframes imap-me-pulse { from { transform: scale(1); opacity: 0.8; } to { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .imap-me-dot::after { animation: none; } }
.imap-locate { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 14px; }
.imap-locate.is-on { background: #1a73e8; border-color: #1a73e8; color: #fff; }
.imap-geo-status { flex-basis: 100%; }

/* Подписи на карте: белые плашки, надписи по воде, выноски и пунктир парома */
.imap-decor { pointer-events: none; }
.imap-outline { fill: none; stroke: rgba(255, 255, 255, 0.95); stroke-width: 3; stroke-dasharray: 10 8; stroke-linecap: round; }
.imap-leader { stroke: rgba(30, 41, 59, 0.85); stroke-width: 2; }
.imap-leader-dot { fill: #fff; stroke: rgba(30, 41, 59, 0.85); stroke-width: 2; }
.imap-label { position: absolute; z-index: 1; pointer-events: none; white-space: nowrap; transform: translate(-50%, -50%) rotate(var(--angle, 0deg)); line-height: 1.15; }
.imap-label--pill { padding: 0.35em 0.75em; border-radius: 0.5em; background: rgba(255, 255, 255, 0.94); color: #1f2933; font-weight: 700; font-size: clamp(11px, 1.15cqw, 17px); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }
.imap-label--water { color: rgba(225, 242, 255, 0.95); font-style: italic; font-weight: 700; font-size: clamp(14px, 2cqw, 30px); letter-spacing: 0.04em; text-shadow: 0 1px 3px rgba(9, 45, 90, 0.7); }
