/* TravelMix — лёгкий CSS для шорткодов tm_tours / tm_tours_block.
   Только правила блока, все сеплекторы scoped под .tm-section-block —
   не затрагивает стили остальной страницы (херо и т.п.). */

.tm-section-block {--bg:#FFFFFF;
  --text:#333333;
  --muted:#5A6A6A;
  --accent:#008B8B;      
  --seg2:#20B2AA;
  --seg3:#48D1CC;
  --line:#E2EEEE;
  --surface-soft:#F4FBFB;
  --shadow:0 2px 12px rgba(0,0,0,.06);
  --shadow-lift:0 8px 24px rgba(0,0,0,.10);
  --r-pill:9999px;
  --r-card:24px;
  --r-sm:14px;
  --wide:1400px;         
  --container:1280px;    
  --pad:1.5rem;
  --gap-section:clamp(4rem,8vw,8rem);
  --z-nav:100; --z-overlay:200; --z-modal:300; --z-toast:500;}
.tm-section-block *, .tm-section-block *::before, .tm-section-block *::after {box-sizing:border-box}
.tm-section-block img {max-width:100%;display:block}
.tm-section-block a {color:inherit;text-decoration:none}
.tm-section-block h1, .tm-section-block h2, .tm-section-block h3, .tm-section-block h4 {margin:0;font-weight:700;letter-spacing:-.01em;line-height:1.18}
.tm-section-block h2 {font-size:clamp(1.6rem,3.2vw,2.25rem)}
.tm-section-block h3 {font-size:1.25rem;font-weight:600}
.tm-section-block p {margin:0}
.tm-section-block .eyebrow {font-size:.875rem;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}
.tm-section-block .lead {color:var(--muted);max-width:72ch}
.tm-section-block .btn {display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  padding:12px 26px;border-radius:var(--r-pill);font-weight:600;font-size:.95rem;
  border:1.5px solid transparent;cursor:pointer;
  transition:background-color .2s ease-out,color .2s ease-out,box-shadow .2s ease-out,transform .2s ease-out;
  will-change:transform;}
.tm-section-block .btn--primary {background:var(--accent);color:#fff}
.tm-section-block .btn--primary:hover {background:#007373;box-shadow:var(--shadow-lift)}
.tm-section-block .btn--primary:active {transform:translateY(-1px)}
.tm-section-block .btn--ghost {border-color:#B9DEDE;color:var(--accent);background:transparent}
.tm-section-block .btn--ghost:hover {background:#EAF7F7}
.tm-section-block .btn--white {background:#fff;color:var(--accent)}
.tm-section-block .btn--white:hover {background:#F0FAFA;box-shadow:var(--shadow-lift)}
.tm-section-block .btn--lg {padding:15px 32px;font-size:1rem}
.tm-section-block .pills {display:inline-flex;gap:.35rem;padding:.3rem;background:#EEF8F8;border-radius:var(--r-pill);border:1px solid var(--line)}
.tm-section-block .pill {border:0;background:transparent;font:600 .95rem/1 "Open Sans",sans-serif;color:var(--muted);
  padding:11px 24px;border-radius:var(--r-pill);cursor:pointer;transition:background-color .2s ease-out,color .2s ease-out}
.tm-section-block .pill.is-active {background:var(--accent);color:#fff;box-shadow:var(--shadow)}
.tm-section-block .tours {display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.tm-section-block .tour {display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--r-card);overflow:hidden;box-shadow:var(--shadow);
  transition:box-shadow .2s ease-out,transform .2s ease-out}
.tm-section-block .tour__ph {position:relative;aspect-ratio:3/2;overflow:hidden;background:#EAF3F3}
.tm-section-block .tour__ph img {width:100%;height:100%;object-fit:cover;transition:transform .3s ease-out}
.tm-section-block .tour__tag {position:absolute;left:14px;top:14px;padding:6px 14px;border-radius:var(--r-pill);background:rgba(255,255,255,.94);
  font-size:.78rem;font-weight:600;color:var(--accent);letter-spacing:.04em}
.tm-section-block .tour__hit {position:absolute;right:14px;top:14px;padding:6px 14px;border-radius:var(--r-pill);
  background:var(--accent);color:#fff;font-size:.8rem;font-weight:700;letter-spacing:.02em;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.tm-section-block .tour__rate {position:absolute;right:14px;bottom:14px;display:inline-flex;align-items:center;gap:5px;
  padding:6px 13px;border-radius:var(--r-pill);background:rgba(255,255,255,.95);font-size:.88rem;font-weight:700;color:var(--text);
  box-shadow:0 2px 8px rgba(0,0,0,.18)}
.tm-section-block .tour__rate svg {width:15px;height:15px}
.tm-section-block .tour__next {display:flex;align-items:center;gap:.45rem;margin:0;font-size:.88rem;color:var(--muted)}
.tm-section-block .tour__next svg {width:15px;height:15px;color:var(--accent);flex:0 0 15px}
.tm-section-block .tour__next b {color:var(--text);font-weight:600}
.tm-section-block .tour__body {padding:1.35rem 1.4rem 1.5rem;display:flex;flex-direction:column;gap:.55rem;flex:1}
.tm-section-block .tour__body h3 {font-size:1.2rem;font-weight:700}
.tm-section-block .tour__meta {font-size:.9rem;color:var(--muted)}
.tm-section-block .tour__meta b {color:var(--text);font-weight:600}
.tm-section-block .tour__price {font-family:"JetBrains Mono",monospace;font-size:1.35rem;font-weight:500;color:var(--accent);margin-top:.15rem}
.tm-section-block .tour__body .btn {margin-top:auto;align-self:flex-start}
@media (max-width:768px) {.tm-section-block {--pad:1.125rem}
.tm-section-block .tours {grid-template-columns:1fr}}
@media (max-width:420px) {.tm-section-block .pills {width:100%}
.tm-section-block .pill {flex:1;padding:11px 8px}}
.tm-section-block [hidden] {display:none!important}
.tm-section-block .pill {gap:.5rem}
.tm-section-block .pill__flag {width:22px;height:15px;border-radius:2.5px;display:inline-block;vertical-align:-2px;margin-left:.45rem;
  box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.tm-section-block .pill {-webkit-appearance:none;appearance:none;
  background-image:none;text-shadow:none;text-transform:none;letter-spacing:normal;
  font-family:inherit;min-height:0;}
.tm-section-block .pill {border-radius:var(--r-pill)!important;box-shadow:none!important;text-decoration:none!important}
.tm-section-block .pill:focus {outline:none;box-shadow:none}
.tm-section-block .pill:focus-visible {outline:2px solid var(--accent);outline-offset:3px;border-radius:6px}
.tm-section-block .tm-tour-page body, .tm-section-block .tm-tour-page {--tm-side-w:370px}
.tm-section-block .tm-tour {--tm-strip-overlap:56px}
.tm-section-block .tm-crumbs {padding:14px 0;font-size:.85rem;color:var(--muted);background:#fff;border-bottom:1px solid var(--line)}
.tm-section-block .tm-crumbs--page {border-bottom:0;background:transparent;padding:26px 0 4px}
.tm-section-block .tm-crumbs a {color:var(--muted);text-decoration:none}
.tm-section-block .tm-crumbs a:hover {color:var(--accent)}
.tm-section-block .tm-crumbs__sep {margin:0 .55rem;opacity:.5}
.tm-section-block .tm-crumbs__cur {color:var(--text);font-weight:600}
/* ВЫСОТА ФИКСИРОВАНА (height, а НЕ min-height) — одинаковая на всех страницах туров.
   Раньше стоял min-height, и длинный заголовок растягивал блок. */
.tm-section-block .tm-hero {position:relative;overflow:hidden;color:#fff;
  height:min(72vh,640px);min-height:380px;display:flex;align-items:flex-end;
  background:#0E2A2A var(--tm-bg) center/cover no-repeat;}
/* Мобильная обложка (шорткод-блок) */
@media (max-width:768px){.tm-section-block .tm-hero{background-image:var(--tm-bg-m,var(--tm-bg))}}
/* Компактный режим (включается из tour.js, если текст не влезает) */
.tm-section-block .tm-hero.is-tight .tm-hero__badge {font-size:.68rem;padding:.34rem .72rem;margin-bottom:.55rem}
.tm-section-block .tm-hero.is-tight .tm-hero__sub {margin-top:.5rem;font-size:.9rem;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.tm-section-block .tm-hero.is-tight .tm-hero__chips {gap:.35rem;margin-top:.75rem}
.tm-section-block .tm-hero.is-tight .tm-hero__chips .chip {padding:.34rem .66rem;font-size:.74rem}
.tm-section-block .tm-hero.is-tight .tm-hero .btn {margin-top:.9rem}
.tm-section-block .tm-hero.is-tight .tm-hero .btn--lg {padding:11px 22px;font-size:.92rem}
.tm-section-block .tm-hero::before {content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(8,26,28,.78) 0%,rgba(8,26,28,.42) 45%,rgba(8,26,28,.12) 75%,rgba(8,26,28,0) 100%),
             linear-gradient(180deg,rgba(8,26,28,.55) 0%,rgba(8,26,28,.08) 30%,rgba(8,26,28,.05) 60%,rgba(8,26,28,.55) 100%)}
/* Для широких заголовков усиливаем затемнение слева */
.tm-section-block .tm-hero--title-long::before,.tm-section-block .tm-hero--title-xlong::before {
  background:linear-gradient(90deg,rgba(8,26,28,.88) 0%,rgba(8,26,28,.74) 35%,rgba(8,26,28,.50) 55%,rgba(8,26,28,.24) 76%,rgba(8,26,28,0) 100%),
             linear-gradient(180deg,rgba(8,26,28,.55) 0%,rgba(8,26,28,.08) 30%,rgba(8,26,28,.05) 60%,rgba(8,26,28,.55) 100%)}
.tm-section-block .tm-hero__in {position:relative;z-index:1;padding-bottom:calc(clamp(2.5rem,6vh,4.5rem) + var(--tm-strip-overlap,56px));width:100%}
.tm-section-block .tm-hero__badge {display:inline-block;font:600 .8rem/1 "Open Sans",sans-serif;letter-spacing:.12em;text-transform:uppercase;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.35);backdrop-filter:blur(4px);
  padding:.55rem 1rem;border-radius:var(--r-pill);margin-bottom:1.1rem}
.tm-section-block .tm-hero h1 {font-size:clamp(2.2rem,4.6vw,3.6rem);line-height:1.06;letter-spacing:-.02em;text-shadow:0 2px 24px rgba(0,0,0,.35);max-width:16ch}
/* Длинный заголовок — шире колонка (класс ставит шаблон по длине заголовка) */
.tm-section-block .tm-hero--title-long h1 {max-width:26ch}
.tm-section-block .tm-hero--title-xlong h1 {max-width:28ch}
.tm-section-block .tm-hero__sub {margin-top:.9rem;font-size:clamp(1rem,1.6vw,1.2rem);color:#DFF3F2;max-width:64ch}
.tm-section-block .tm-hero__chips {display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1.3rem}
.tm-section-block .tm-hero__chips .chip {display:inline-flex;align-items:center;gap:.4rem;padding:.5rem 1rem;border-radius:var(--r-pill);
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.28);backdrop-filter:blur(4px);
  font:600 .9rem/1 "Open Sans",sans-serif}
.tm-section-block .tm-hero__chips .chip--price {background:var(--accent);border-color:transparent;font-weight:700}
.tm-section-block .tm-hero .btn {margin-top:1.6rem;position:relative;z-index:1}
.tm-section-block .tm-photostrip {margin-top:calc(var(--tm-strip-overlap,56px) * -1);position:relative;z-index:2;padding-bottom:2.2rem}
.tm-section-block .tm-photostrip__in {display:grid;grid-template-columns:repeat(4,1fr);gap:.8rem}
.tm-section-block .tm-photostrip img {width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:var(--r-sm);
  box-shadow:0 14px 34px rgba(10,35,38,.28);border:3px solid #fff;background:#DCEDED}
.tm-section-block .tm-tour {overflow-x:clip}
.tm-section-block .tm-layout {display:grid;grid-template-columns:minmax(0,1fr) var(--tm-side-w);gap:clamp(1.8rem,3.5vw,3rem);align-items:start;padding-block:clamp(1.8rem,4vw,3rem) clamp(3rem,6vw,4.5rem)}
.tm-section-block .tm-main {min-width:0;display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(2.6rem,5vw,3.8rem)}
.tm-section-block .tm-main > * {min-width:0}
.tm-section-block .tm-block h2 {font-size:clamp(1.5rem,2.6vw,2.1rem);letter-spacing:-.01em;line-height:1.15;margin:0 0 1.3rem}
.tm-section-block .tm-block h2::after {content:"";display:block;width:52px;height:4px;border-radius:2px;background:linear-gradient(90deg,var(--accent),var(--seg3));margin-top:.7rem}
.tm-section-block .tm-intro p {color:var(--text);max-width:75ch}
.tm-section-block .tm-intro p+p {margin-top:.9rem}
.tm-section-block .tm-msgs {display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.4rem}
.tm-section-block .tm-msgs .msg__l {font-weight:600;color:#fff}
.tm-section-block .tm-msgs--tight {margin-top:1rem}
.tm-section-block .tm-msgs--col {flex-direction:column;align-items:stretch}
.tm-section-block .tm-msgs--col .msg {width:100%}
.tm-section-block .tm-msgs--center {justify-content:center}
.tm-section-block .tm-msgs__lead {flex-basis:100%;font-weight:700}
.tm-section-block .tm-price-line {display:flex;flex-wrap:wrap;align-items:baseline;gap:.8rem;margin-bottom:.6rem}
.tm-section-block .tm-price-line__old {font-size:1.25rem;color:#9DB8B8}
.tm-section-block .tm-price-line__cur {font-size:2.3rem;font-weight:800;color:var(--accent);letter-spacing:-.02em}
.tm-section-block .tm-price-line__note {font-weight:600;color:var(--text)}
.tm-section-block .tm-price-line__per {color:var(--muted);font-size:.95rem}
.tm-section-block .tm-terms {color:var(--muted);max-width:80ch;margin:0 0 1.4rem}
.tm-section-block .tm-dates {display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.7rem;margin-bottom:1.4rem}
.tm-section-block .tm-date {display:flex;flex-direction:column;gap:.15rem;padding:.95rem 1.05rem;border:1px solid var(--line);border-radius:var(--r-sm);background:#fff;box-shadow:var(--shadow)}
.tm-section-block .tm-date__m {font-size:.8rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.tm-section-block .tm-date__d {font-size:1.15rem;font-weight:700}
.tm-section-block .tm-date__s {font-size:.8rem;color:var(--seg2);font-weight:600}
.tm-section-block .tm-indiv {display:flex;align-items:center;gap:.75rem;
  background:var(--surface-soft);border:1px solid var(--line);border-left:4px solid var(--seg3);border-radius:var(--r-sm);padding:1rem 1.2rem}
.tm-section-block .tm-indiv__t {color:var(--muted)}
.tm-section-block .tm-cta-date {display:inline-flex;margin:1.5rem 0 1rem}
.tm-section-block .tm-days {display:grid;grid-template-columns:minmax(0,1fr);gap:1.1rem}
.tm-section-block .tm-day {min-width:0;border:1px solid var(--line);border-radius:var(--r-card);background:#fff;box-shadow:var(--shadow);padding:1.4rem 1.5rem 1.5rem}
.tm-section-block .tm-day__head {display:flex;align-items:center;gap:.9rem;margin-bottom:.9rem}
.tm-section-block .tm-day__num {flex:0 0 auto;font:600 .85rem/1 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.08em;
  color:var(--accent);background:var(--surface-soft);border:1px solid var(--line);
  padding:.5rem .8rem;border-radius:var(--r-pill)}
.tm-section-block .tm-day__title {font-size:1.15rem;font-weight:700}
.tm-section-block .tm-day__text {color:var(--text);max-width:75ch}
.tm-section-block .tm-day__text p+p {margin-top:.7rem}
.tm-section-block .tm-day__meta {display:flex;flex-wrap:wrap;gap:.45rem .9rem;margin-top:1rem;padding-top:1rem;border-top:1px dashed var(--line)}
.tm-section-block .tm-day__meta span {font-size:.875rem;color:var(--muted)}
.tm-section-block .tm-carousel {position:relative}
.tm-section-block .tm-carousel__track {display:flex;gap:.6rem;overflow-x:auto;scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;padding:2px}
.tm-section-block .tm-carousel__track::-webkit-scrollbar {display:none}
.tm-section-block .tm-carousel__track>* {scroll-snap-align:start;flex:0 0 auto}
.tm-section-block .tm-carousel__btn {position:absolute;top:50%;transform:translateY(-50%);width:32px;height:32px;border-radius:50%;
  border:0;background:rgba(8,26,28,.34);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);color:#fff;
  cursor:pointer;display:grid;place-items:center;z-index:3;padding:0;opacity:0;
  transition:opacity .25s ease,background .2s ease}
.tm-section-block .tm-carousel__btn svg {width:16px;height:16px;display:block}
.tm-section-block .tm-carousel__btn:hover {background:rgba(8,26,28,.58)}
.tm-section-block .tm-carousel__btn:focus-visible {opacity:1;outline:2px solid #fff;outline-offset:2px}
.tm-section-block .tm-carousel:hover .tm-carousel__btn {opacity:1}
@media (hover:none) {.tm-section-block .tm-carousel__btn {opacity:.9}}
.tm-section-block .tm-carousel__btn--prev {left:10px}
.tm-section-block .tm-carousel__btn--next {right:10px}
.tm-section-block .tm-carousel__track--days {margin-top:1.1rem;gap:1.75rem}
.tm-section-block .tm-carousel__track--days img {width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:var(--r-sm);background:#DCEDED}
.tm-section-block .tm-carousel__track--days>img{width:100%!important;max-width:100%!important;height:auto!important;
  aspect-ratio:16/9!important;object-fit:cover!important;flex:0 0 auto!important}
.tm-section-block .tm-cta-mid {display:flex;justify-content:center;margin-top:1.6rem}
/* Десктоп (>900px): форма заявки прилипает справа и видна всегда — CTA-кнопки внутри контента скрыты. */
@media (min-width:901px) {.tm-section-block .tm-cta-date, .tm-section-block .tm-cta-mid {display:none}}
.tm-section-block .tm-cols2 {display:grid;grid-template-columns:1fr 1fr;gap:1.6rem}
.tm-section-block .tm-col__h {font-size:1.05rem;font-weight:700;margin:0 0 .8rem}
.tm-section-block .tm-col__h--yes {color:var(--accent)}
.tm-section-block .tm-col__h--no {color:#C26060}
.tm-section-block .tm-checks--no .checklist svg, .tm-section-block .tm-checks--no li svg {stroke:#C26060}
.tm-section-block .tm-checks--dots li {gap:0}
.tm-section-block .tm-checks--dots li::before {content:"•";color:var(--accent);margin-right:.7rem;font-weight:700}
.tm-section-block .tm-details {border:1px solid var(--line);border-radius:var(--r-sm);background:#fff;box-shadow:var(--shadow)}
.tm-section-block .tm-details summary {list-style:none;cursor:pointer;padding:1.1rem 1.35rem;font-weight:600;display:flex;align-items:center}
.tm-section-block .tm-details summary::-webkit-details-marker {display:none}
.tm-section-block .tm-details summary::after {content:"";width:11px;height:11px;margin-left:auto;border-right:2px solid var(--accent);border-bottom:2px solid var(--accent);transform:rotate(45deg);transition:transform .2s}
.tm-section-block .tm-details[open] summary::after {transform:rotate(-135deg) translateY(-2px)}
.tm-section-block .tm-details .checklist {padding:0 1.35rem 1.3rem;margin:0}
.tm-section-block .tm-guide {display:flex;gap:1.6rem;align-items:flex-start}
.tm-section-block .tm-guide__photo {flex:0 0 190px;width:190px;aspect-ratio:1/1;object-fit:cover;border-radius:var(--r-card);box-shadow:var(--shadow-lift)}
.tm-section-block .tm-guide__body {min-width:0}
.tm-section-block .tm-guide__body h3 {margin:0 0 .7rem;font-size:1.4rem}
.tm-section-block .tm-guide__bio {color:var(--muted)}
.tm-section-block .tm-guide__bio p+p {margin-top:.7rem}
.tm-section-block .tm-guide__cert {margin-top:.9rem;font-size:.9rem}
.tm-section-block .tm-guide__cert a {color:var(--accent)}
.tm-section-block .tm-grid {display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem}
.tm-section-block .tm-grid img {width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:var(--r-sm);background:#DCEDED;box-shadow:var(--shadow)}
.tm-section-block .tm-grid--rev {grid-template-columns:repeat(3,1fr);max-width:820px}
.tm-section-block .tm-grid--rev img {aspect-ratio:3/4}
.tm-section-block .tm-stays {display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem;margin-top:.4rem}
.tm-section-block .tm-stay {display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--r-card);overflow:hidden;box-shadow:var(--shadow)}
.tm-section-block .tm-stay__ph {width:100%;aspect-ratio:16/10;object-fit:cover;background:#DCEDED}
.tm-section-block .tm-stay__ph-empty {display:grid;place-items:center;background:linear-gradient(135deg,#0E4F4F,var(--seg2));color:#fff;font-weight:800;letter-spacing:.06em}
.tm-section-block .tm-stay__body {display:grid;gap:.5rem;padding:1rem 1.15rem 1.2rem}
.tm-section-block .tm-stay__body h3 {margin:0;font-size:1.08rem}
.tm-section-block .tm-stay__chip {justify-self:start;font:600 .75rem/1 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.04em;
  color:var(--accent);background:var(--surface-soft);border:1px solid var(--line);padding:.4rem .65rem;border-radius:var(--r-pill)}
.tm-section-block .tm-stay__body p {margin:0;color:var(--muted);font-size:.92rem}
.tm-section-block .tm-promo {color:#fff;text-align:center;border-radius:var(--r-card);padding:clamp(2rem,4vw,3rem);
  background:linear-gradient(135deg,#00695F 0%,var(--accent) 55%,var(--seg2) 100%);
  box-shadow:var(--shadow-lift)}
.tm-section-block .tm-promo .eyebrow {color:#BFEDEA}
.tm-section-block .tm-promo h3 {font-size:clamp(1.4rem,2.4vw,1.9rem);margin:.4rem 0 .8rem}
.tm-section-block .tm-promo p {color:#DFF3F2;max-width:60ch;margin:0 auto}
.tm-section-block .tm-promo__code {display:inline-block;font:700 1.35rem/1 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.14em;color:#fff;
  background:rgba(255,255,255,.16);border:1px dashed rgba(255,255,255,.6);padding:.65rem 1.2rem;border-radius:var(--r-sm);margin-top:.5rem}
.tm-section-block .tm-promo__amt {margin-top:1rem;font-size:1.05rem}
.tm-section-block .tm-promo__amt b {color:#fff}
.tm-section-block .tm-promo__note {font-size:.85rem;margin-top:.5rem}
.tm-section-block .tm-promo .msg {margin-top:0}
.tm-section-block .tm-side {position:sticky;top:112px;min-width:0}
.tm-section-block .tm-card {display:grid;gap:1.1rem;background:#fff;border:1px solid var(--line);border-radius:var(--r-card);box-shadow:var(--shadow-lift);padding:1.5rem 1.5rem 1.4rem}
.tm-section-block .tm-card__price {display:flex;flex-wrap:wrap;align-items:baseline;gap:.6rem}
.tm-section-block .tm-card__price-old {color:#9DB8B8;font-size:1rem}
.tm-section-block .tm-card__price-now {font-size:1.9rem;font-weight:800;color:var(--accent);letter-spacing:-.02em}
.tm-section-block .tm-card__price-note {flex-basis:100%;font-size:.9rem;font-weight:600}
.tm-section-block .tm-card__price-sub {flex-basis:100%;font-size:.82rem;color:var(--muted)}
.tm-section-block .tm-form {display:grid;gap:1rem}
.tm-section-block .tm-form select {font:400 1rem/1.5 "Open Sans",sans-serif;color:var(--text);background:#fff;border:1px solid #CBE3E3;border-radius:var(--r-sm);padding:.8rem .9rem;min-width:0;width:100%;appearance:auto}
.tm-section-block .tm-form select:focus {outline:2px solid var(--accent);outline-offset:2px;border-color:transparent}
.tm-section-block .btn--block {width:100%}
.tm-section-block .tm-form__hp {position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}
.tm-section-block .tm-notice {border-radius:var(--r-sm);padding:.9rem 1rem;font-size:.9rem}
.tm-section-block .tm-notice--ok {background:#E7F6EF;border:1px solid #BFE4D0;color:#1E6B45}
.tm-section-block .tm-notice--warn {background:#FFF4E5;border:1px solid #F5DDB8;color:#8A5B12}
.tm-section-block .tm-stickybar {position:fixed;left:0;right:0;bottom:0;z-index:60;display:none;align-items:center;justify-content:space-between;gap:1rem;
  padding:.8rem 1rem calc(.8rem + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-top:1px solid var(--line);
  transform:translateY(105%);transition:transform .3s ease;box-shadow:0 -8px 24px rgba(10,35,38,.12)}
.tm-section-block .tm-stickybar.is-on {transform:none}
.tm-section-block .tm-stickybar__price {font-size:.85rem;color:var(--muted);display:flex;flex-direction:column;line-height:1.25}
.tm-section-block .tm-stickybar__price b {font-size:1.15rem;color:var(--text)}
.tm-section-block .tm-stickybar__price s {color:#9DB8B8;font-size:.8rem}
.tm-section-block .tm-archive {padding-block:clamp(1.6rem,4vw,2.8rem) clamp(3rem,6vw,4.5rem)}
.tm-section-block .tm-archive__head h1 {font-size:clamp(1.9rem,3.6vw,2.6rem);letter-spacing:-.01em}
.tm-section-block .tm-archive__grid {display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem}
/* Карточки-карусель (шорткод [tm_tours ... carousel="1"]): на десктопе — обычная
   сетка, на телефоне — один ряд с перелистыванием. */
.tm-section-block .tours--carousel>.tour {scroll-snap-align:start;scroll-snap-stop:always}
.tm-section-block .tm-tours__hint {display:none;margin:.7rem 0 0;color:var(--muted);font-size:.85rem}
.tm-section-block .tour__desc {color:var(--muted);font-size:.92rem;margin:0 0 1rem;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tm-section-block .tm-tour-foot {display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin-top:auto}
.tm-section-block .tm-tour-foot .tour__price {margin:0 0 .7rem}
.tm-section-block .tour__ph-empty {display:grid;place-items:center;aspect-ratio:16/10;background:linear-gradient(135deg,#0E4F4F,var(--seg2));color:#fff;font-weight:800;letter-spacing:.06em}
.tm-section-block .tm-pagi {display:flex;gap:.4rem;justify-content:center;margin-top:2rem}
.tm-section-block .tm-pagi a, .tm-section-block .tm-pagi span {display:inline-grid;place-items:center;min-width:42px;height:42px;padding:0 .7rem;border:1px solid var(--line);border-radius:var(--r-sm);font-weight:600;color:var(--text);text-decoration:none;background:#fff}
.tm-section-block .tm-pagi .current {background:var(--accent);border-color:var(--accent);color:#fff}
.tm-section-block .tm-pagi a:hover {border-color:var(--accent);color:var(--accent)}
.tm-section-block .tm-empty {padding:3rem 0;text-align:center}
@media (max-width:1100px) {.tm-section-block .tm-grid, .tm-section-block .tm-grid--rev {grid-template-columns:repeat(2,1fr)}}
@media (max-width:900px) {.tm-section-block .tm-layout {grid-template-columns:1fr}
.tm-section-block .tm-side {position:static;order:5}
.tm-section-block .tm-card {box-shadow:var(--shadow)}
.tm-section-block .tm-cols2 {grid-template-columns:1fr}
.tm-section-block .tm-guide {flex-direction:column}
.tm-section-block .tm-guide__photo {flex:none;width:170px}
.tm-section-block .tm-stickybar {display:flex}
.tm-section-block .tm-archive__grid {grid-template-columns:repeat(2,1fr)}
.tm-section-block .tm-carousel__btn {width:30px;height:30px}
.tm-section-block .tm-carousel__btn svg {width:14px;height:14px}
.tm-section-block .tm-carousel__btn--prev {left:8px}
.tm-section-block .tm-carousel__btn--next {right:8px}}
@media (max-width:600px) {.tm-section-block .tm-tour {--tm-strip-overlap:36px}
.tm-section-block .tm-photostrip__in {grid-template-columns:repeat(2,1fr);gap:.55rem}
.tm-section-block .tm-hero {height:min(70vh,560px);min-height:380px}
/* Компактнее вертикальный ритм херо на телефоне */
.tm-section-block .tm-hero__badge {font-size:.72rem;padding:.42rem .85rem;margin-bottom:.7rem}
.tm-section-block .tm-hero h1 {font-size:clamp(1.5rem,8.4vw,2.1rem);line-height:1.08}
.tm-section-block .tm-hero__sub {margin-top:.65rem;font-size:.95rem;max-width:none}
.tm-section-block .tm-hero__chips {gap:.45rem;margin-top:.9rem}
.tm-section-block .tm-hero__chips .chip {padding:.42rem .8rem;font-size:.8rem}
.tm-section-block .tm-hero .btn {margin-top:1.1rem}
.tm-section-block .tm-archive__grid {grid-template-columns:1fr}
  /* Карусель карточек на телефоне: карточка занимает почти весь экран, соседний
     видно краем — понятно, что блок листается. */
  .tm-section-block .tours--carousel{display:flex;gap:.65rem;overflow-x:auto;
    overscroll-behavior-x:contain;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
    scrollbar-width:none;padding-bottom:.2rem}
  .tm-section-block .tours--carousel::-webkit-scrollbar{display:none}
  .tm-section-block .tours--carousel>.tour{flex:0 0 88%;min-width:0}
  .tm-section-block .tours--carousel+.tm-tours__hint{display:block}
.tm-section-block .tm-day {padding:1.1rem 1.1rem 1.2rem}
.tm-section-block .tm-price-line__cur {font-size:1.9rem}
.tm-section-block .tm-cta-date {width:100%;justify-content:center}
.tm-section-block .tm-carousel__track--days img {aspect-ratio:4/3}
  .tm-section-block .tm-carousel__track--days>img {aspect-ratio:4/3!important}}
.tm-section-block .tm-msgs-dots {display:flex;justify-content:center;gap:.7rem;margin-top:1.1rem}
.tm-section-block .tm-hero__chips .chip--rate {background:rgba(255,255,255,.94);color:var(--text);border-color:transparent;gap:.45rem}
.tm-section-block .tm-hero__chips .chip--rate svg {width:15px;height:15px;fill:var(--seg2)}
.tm-section-block .tm-rev-rate {display:flex;align-items:center;gap:.45rem;margin:-.2rem 0 1.2rem;font-size:.95rem;color:var(--muted)}
.tm-section-block .tm-rev-rate svg {width:16px;height:16px;fill:var(--seg2)}
.tm-section-block .tm-rev-rate b {color:var(--text);font-size:1.05rem}
.tm-section-block .tm-grid-more {display:flex;justify-content:center;margin-top:2rem}
.tm-section-block .head {display:flex;flex-direction:column;gap:.75rem;margin:0 0 clamp(2rem,4vw,3.25rem)}
.tm-section-block .head .pills {margin-top:.75rem;align-self:flex-start}
.tm-section-block .tm-related {display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.tm-section-block .tour__price {white-space:nowrap}
.tm-section-block .tm-related .tour__price {display:flex;flex-direction:column;align-items:flex-start;gap:.15rem}
.tm-section-block .tm-related .tour__price s {font-size:.68em;font-weight:400;opacity:.6}
.tm-section-block .tm-related .tour__price b {font-weight:500}
.tm-section-block .tm-related .tm-tour-foot {flex-direction:column;align-items:stretch;gap:.9rem}
.tm-section-block .tm-related .tm-tour-foot .tour__price {margin:0}
.tm-section-block .tm-related .tm-tour-foot .btn {margin-top:0;justify-content:center}
@media (max-width:1024px) {.tm-section-block .tm-related {grid-template-columns:repeat(2,1fr)}}
@media (max-width:720px) {.tm-section-block .tm-related {grid-template-columns:1fr}}
.tm-section-block .tm-stay__ph {position:relative}
.tm-section-block .tm-stay__ph .tm-carousel__track {gap:0}
.tm-section-block .tm-stay__ph img {width:100%;height:100%;aspect-ratio:16/10;object-fit:cover;background:#DCEDED}
.tm-section-block .tm-stay__ph .tm-carousel__btn--prev {left:8px}
.tm-section-block .tm-stay__ph .tm-carousel__btn--next {right:8px}
.tm-section-block .tm-pdf {padding-block:0}
.tm-section-block .tm-pdf__in {display:grid;grid-template-columns:1.15fr 1fr;gap:2rem;align-items:start;background:var(--soft);border:1px solid var(--line);border-radius:var(--r-card);padding:1.7rem 1.8rem}
.tm-section-block .tm-pdf__text h2 {margin-bottom:.6rem}
.tm-section-block .tm-pdf__text .lead {color:var(--muted);margin:0 0 1rem}
.tm-section-block .tm-pdf__form {background:#fff;border:1px solid var(--line);border-radius:var(--r-sm);padding:1.15rem 1.2rem 1.3rem}
.tm-section-block .tm-pdf__visual {width:110px;border-radius:var(--r-sm);margin-bottom:1rem;box-shadow:0 8px 20px rgba(10,35,38,.14);background:#fff}
.tm-section-block .tm-form .consent {flex-wrap:nowrap;align-items:flex-start;row-gap:0}
.tm-section-block .tm-form .consent input {flex:0 0 18px;margin-top:.15rem}
.tm-section-block .tm-form .consent span {flex:1 1 auto;min-width:0}
@media (max-width:720px) {.tm-section-block .tm-pdf__in {grid-template-columns:1fr;padding:1.2rem}}

/* ---------- Рабочая форма заявки (шорткод tm_tour_form) ---------- */
.tm-section-block .tm-lead-form{display:grid;gap:1.1rem;background:#fff;border:1px solid var(--line);border-radius:var(--r-card);padding:clamp(1.5rem,3vw,2.25rem);box-shadow:var(--shadow)}
.tm-section-block .tm-lead-form .field{display:grid;gap:.4rem}
.tm-section-block .tm-lead-form .field label{font-size:.875rem;font-weight:500;letter-spacing:.02em}
.tm-section-block .tm-lead-form .field input,.tm-section-block .tm-lead-form .field select{font:400 1rem/1.5 "Open Sans",sans-serif;color:var(--text);
  border:1px solid #D5E6E6;border-radius:var(--r-sm);padding:12px 16px;background:#fff;width:100%;min-width:0}
.tm-section-block .tm-lead-form .field select{appearance:none;-webkit-appearance:none;padding-right:2.5rem;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A6A6A' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center}
.tm-section-block .tm-lead-form .field input:focus,.tm-section-block .tm-lead-form .field select:focus{outline:2px solid var(--accent);outline-offset:2px;border-color:transparent}
.tm-section-block .tm-lead-form .consent{display:flex;gap:.65rem;align-items:flex-start;flex-wrap:nowrap;font-size:.8125rem;color:var(--muted)}
.tm-section-block .tm-lead-form .consent input{flex:0 0 18px;margin-top:.2rem;accent-color:var(--accent);width:18px;height:18px}
.tm-section-block .tm-lead-form .consent span{min-width:0;overflow-wrap:anywhere}
.tm-section-block .tm-lead-form .consent a{color:var(--accent);text-decoration:underline}
.tm-section-block .tm-lead-form__submit{width:100%;display:flex;align-items:center;justify-content:center}
.tm-section-block .tm-lead-form__hp{position:absolute;left:-9999px}
.tm-section-block .tm-lead-form__notice{padding:20px 22px;border-radius:var(--r-sm);font-size:1rem;line-height:1.5;margin-bottom:1rem}
.tm-section-block .tm-lead-form__notice--ok{background:#EAF7F2;border:1px solid #BFE5D8;color:#1E6B54}
.tm-section-block .tm-lead-form__notice--err{background:#FDEEEE;border:1px solid #F2C1C1;color:#8C2B2B}

/* ---------- Секция «Заявка + Контакты» (шорткод tm_zayavka) ---------- */
.tm-section-block .tm-zayavka{padding-block:clamp(4rem,8vw,8rem)}
.tm-section-block .tm-formwrap{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,4rem);align-items:start;max-width:var(--container);margin:0 auto;padding:0 var(--pad)}
.tm-section-block .tm-zayavka .head{margin-bottom:1.5rem}
.tm-section-block .tm-contacts{display:grid;gap:1rem}
.tm-section-block .tm-ccard{display:flex;gap:1rem;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:var(--r-card);padding:1.25rem 1.35rem;box-shadow:var(--shadow)}
.tm-section-block .tm-ccard__ic{width:44px;height:44px;flex:0 0 44px;border-radius:var(--r-pill);background:#EAF7F7;display:grid;place-items:center}
.tm-section-block .tm-ccard__ic svg{width:20px;height:20px;stroke:var(--accent)}
.tm-section-block .tm-ccard b{display:block;font-size:.875rem;color:var(--muted);font-weight:500}
.tm-section-block .tm-ccard a,.tm-section-block .tm-ccard span{font-weight:600}
.tm-section-block .tm-msgs-col{display:grid;gap:.5rem;justify-items:start;margin-top:.35rem}
.tm-section-block .msg{display:inline-flex;align-items:center;gap:.5rem;padding:9px 18px 9px 12px;border-radius:var(--r-pill);color:#fff;font-weight:600;font-size:.875rem;text-decoration:none;
  transition:filter .2s ease-out,box-shadow .2s ease-out,transform .2s ease-out}
.tm-section-block .msg:hover{filter:brightness(.94);box-shadow:0 8px 22px rgba(0,0,0,.28)}
.tm-section-block .msg svg,.tm-section-block .msg span.ic,.tm-section-block .msg img.ic{width:22px;height:22px;flex:0 0 22px}
.tm-section-block .msg--max{background:linear-gradient(135deg,#8B5CF6 0%,#5E6BE8 100%)}
.tm-section-block .msg--max .ic{background:transparent;border-radius:0}
.tm-section-block .msg--tg{background:#229ED9}
.tm-section-block .msg--wa{background:#25D366}
@media (max-width:768px){.tm-section-block .tm-formwrap{grid-template-columns:1fr}}

/* ---------- Отзывы: шорткоды tm_otzyvy / tm_otzyv_form (самодостаточный блок) ---------- */
.tm-section-block .rev{display:flex;gap:1.25rem;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:.75rem;scrollbar-width:thin}
.tm-section-block .rev::-webkit-scrollbar{height:6px}
.tm-section-block .rev::-webkit-scrollbar-thumb{background:#CFE7E7;border-radius:var(--r-pill)}
.tm-section-block .rcell{scroll-snap-align:start;flex:0 0 min(380px,84vw);background:#fff;border:1px solid var(--line);border-radius:var(--r-card);padding:1.6rem;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:.9rem}
.tm-section-block .stars{display:flex;gap:3px}
.tm-section-block .stars svg{width:16px;height:16px;fill:var(--seg2);stroke:none}
.tm-section-block .rcell p{color:var(--muted)}
.tm-section-block .rcell footer{display:flex;align-items:center;gap:.7rem;margin-top:auto}
.tm-section-block .avatar{width:40px;height:40px;border-radius:var(--r-pill);background:var(--seg3);display:grid;place-items:center;color:#fff;font-weight:700}
.tm-section-block .rev-empty{color:var(--muted);align-self:center;padding:1rem}
#revform-open{width:auto!important;height:44px;padding:0 24px!important;font-size:.9rem;display:inline-flex!important;align-items:center;justify-content:center}
.tm-section-block .revform{position:fixed;inset:0;z-index:var(--z-modal,300);display:grid;place-items:center;padding:1.25rem;background:rgba(10,26,28,.55)}
.tm-section-block .revform[hidden]{display:none}
.tm-section-block .revform__box{position:relative;width:min(520px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:18px;padding:2rem;box-shadow:0 30px 80px rgba(0,0,0,.3)}
.tm-section-block .revform__x{position:absolute;top:14px;right:14px;width:40px;height:40px;border:0;border-radius:50%;background:#F2F7F6;color:#333;font-size:1.4rem;line-height:1;cursor:pointer}
.tm-section-block .revform__x:hover{background:#E4F0EF}
.tm-section-block .revform__box h3{margin-bottom:1.25rem}
.tm-section-block .rvstars{display:flex;gap:6px;margin-bottom:1.1rem}
.tm-section-block .rvstars label{cursor:pointer}
.tm-section-block .rvstars input{position:absolute;opacity:0;pointer-events:none}
.tm-section-block .rvstars svg{width:34px;height:34px;fill:#D7E5E4;transition:transform .15s,fill .15s}
.tm-section-block .rvstars label.on svg{fill:var(--seg2)}
.tm-section-block .rvstars label:hover svg{transform:scale(1.1)}
.tm-section-block .revform .field{display:grid;gap:.4rem;margin-bottom:1rem}
.tm-section-block .revform .field span{font-size:.85rem;font-weight:600;color:var(--muted)}
.tm-section-block .revform input[type=text],.tm-section-block .revform textarea,.tm-section-block .revform select{border:1.5px solid var(--line);border-radius:12px;padding:.8rem .9rem;font:inherit;background:#fff}
.tm-section-block .revform select{appearance:auto;cursor:pointer}
.tm-section-block .revform input[type=text]:focus,.tm-section-block .revform textarea:focus,.tm-section-block .revform select:focus{outline:none;border-color:var(--accent)}
.tm-section-block .revform textarea{resize:vertical;min-height:110px}
.tm-section-block .revform__tour{font-size:.9rem;color:var(--muted);margin-bottom:1.1rem}
.tm-section-block .revform__note{font-size:.8rem;color:var(--muted);margin-top:.9rem}
.tm-section-block .revform__hp{position:absolute;left:-9999px;width:1px;height:1px}
.tm-section-block .rvtoast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#0B1F1E;color:#fff;padding:.9rem 1.3rem;border-radius:14px;z-index:var(--z-toast,500);box-shadow:0 16px 40px rgba(0,0,0,.35);max-width:min(480px,90vw);text-align:center}
.tm-section-block .rvtoast[hidden]{display:none}

.tm-section-block .tm-map__box {height:420px;border-radius:var(--r-card);overflow:hidden;border:1px solid #E2EEEE;box-shadow:0 2px 12px rgba(0,0,0,.06);background:#DCEDED}
.tm-section-block .tm-map__note {margin-top:.6rem;font-size:.8rem;color:#5A6A6A}
.tm-section-block .tm-map__pop {position:relative;background:#fff;border:1px solid #E2EEEE;border-radius:10px;box-shadow:0 2px 12px rgba(0,0,0,.06);padding:.5rem 1.9rem .5rem .8rem;font-size:.85rem;color:#22383B;max-width:240px}
.tm-section-block .tm-map__pop button {position:absolute;top:2px;right:4px;border:none;background:none;font-size:1.05rem;line-height:1;cursor:pointer;color:#5A6A6A}
.tm-section-block .tm-map__popdesc {display:block;margin-top:.4rem;line-height:1.45;max-height:34vh;overflow:auto}
.tm-section-block .tm-map__box--places .tm-map__pop {max-width:min(340px,84vw)}
.tm-section-block .tm-map .ol-control button {background:#008B8B}
.tm-section-block .tm-map .ol-attribution {font-size:.72rem}
@media (max-width:768px){.tm-section-block .tm-map__box{height:320px}}
