/* Шаблон «Гид»: маршрут поездки — карта, шаги, варианты внутри истории; меню и менеджер слева */
body.t-guide { --gd-bg: #F6F4EF; --gd-ink: #16181D; --gd-mute: #6b6e78; --gd-line: #E4E0D6; --gd-acc: #0F7B6C; --gd-soft: #ECE8DF;
  background: var(--gd-bg); color: var(--gd-ink); font-family: "Manrope", "Inter", system-ui, sans-serif; font-size: 15.5px; }
.t-guide .top, .t-guide .hero { display: none; }
.t-guide .items { padding: 0; }
.t-guide .items > .wrap { max-width: 1320px; padding: 0; }
.t-guide h1, .t-guide h2, .t-guide h3, .t-guide h4 { color: inherit; }

.gd-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.gd-side { position: sticky; top: 0; height: 100vh; padding: 30px 26px; display: flex; flex-direction: column; border-right: 1px solid var(--gd-line); }
.gd-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; min-width: 0; }
.gd-brand img { max-height: 44px; max-width: 200px; }
.gd-brand i { width: 36px; height: 36px; border-radius: 12px; background: var(--gd-ink); color: #fff; display: grid; place-items: center; font: 600 12px Unbounded, sans-serif; font-style: normal; flex: none; }
.gd-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-nav { margin-top: 44px; display: flex; flex-direction: column; gap: 4px; }
.gd-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; font-weight: 600; font-size: 14px; color: var(--gd-mute); transition: background .15s, color .15s; }
.gd-nav a:hover { color: var(--gd-ink); }
.gd-nav a.on { background: #fff; color: var(--gd-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.gd-nav a span { width: 24px; height: 24px; border-radius: 8px; background: var(--gd-soft); display: grid; place-items: center; font-weight: 700; font-size: 11px; }
.gd-nav a.on span { background: var(--gd-acc); color: #fff; }
.gd-mgr { margin-top: auto; padding: 16px; border-radius: 20px; background: #fff; }
.gd-mgr em { width: 44px; height: 44px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #63c7b2, var(--gd-acc)); display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 800; margin-bottom: 10px; }
.gd-mgr em img { width: 100%; height: 100%; object-fit: cover; }
.gd-mgr b { display: block; font-size: 14.5px; }
.gd-mgr span { font-size: 12.5px; color: var(--gd-mute); }
.gd-mgr .gd-btn { width: 100%; margin-top: 12px; height: 44px; }

.gd-btn { height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 14.5px Manrope, sans-serif; background: var(--gd-ink); color: #fff !important; cursor: pointer; white-space: nowrap; }
.gd-btn.t { background: var(--gd-acc); }
.gd-btn.l { background: #fff; color: var(--gd-ink) !important; border-color: var(--gd-line); }
.gd-btn .ic { width: 16px; height: 16px; }

.gd-main { padding: 34px 48px 60px; min-width: 0; }
.gd-k { font-weight: 700; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gd-acc); }
.gd-head h1 { font: 600 clamp(40px, 5.4vw, 72px) / .98 Unbounded, sans-serif; letter-spacing: -.05em; margin: 14px 0 14px; overflow-wrap: anywhere; }
.gd-head p { font-size: 17.5px; max-width: 720px; color: #3a3d45; margin: 0; white-space: pre-line; }
.dl.gd-dl { margin-top: 18px; border-radius: 99px; background: #FFF1DE; border-color: #F6D9A3; color: #7a4a05; font-size: 13px; }
.dl.gd-dl .dl-ic, .dl.gd-dl .dl-left { color: #9A5B00; }
.dl.gd-dl .dl-left { border-left-color: #F0CB8A; }

.gd-map { margin-top: 30px; border-radius: 28px; position: relative; overflow: hidden; background: linear-gradient(180deg, #CFE8EA, #A9D4DA); }
.gd-svg { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 360; }
.gd-lbl text { font: 700 17px Manrope, sans-serif; fill: var(--gd-ink); paint-order: stroke; stroke: rgba(255, 255, 255, .7); stroke-width: 4px; }
.gd-leg { position: absolute; left: 20px; bottom: 20px; right: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.gd-leg span { height: 36px; padding: 0 14px; border-radius: 99px; background: rgba(255, 255, 255, .92); display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12.5px; }
.gd-leg .ic { color: var(--gd-acc); }

.gd-steps { margin-top: 56px; position: relative; padding-left: 46px; }
.gd-steps::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(var(--gd-acc) 0 6px, transparent 6px 12px); }
.gd-st { position: relative; margin-bottom: 48px; scroll-margin-top: 20px; }
.gd-dot { position: absolute; left: -46px; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--gd-acc); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--gd-bg); }
.gd-dot .ic { width: 16px; height: 16px; }
.gd-st h3 { font-weight: 700; font-size: 22px; margin: 4px 0 4px; letter-spacing: -.01em; }
.gd-sub { color: var(--gd-mute); }
.gd-flight { margin-top: 14px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 22px; border-radius: 20px; background: #fff; max-width: 640px; }
.gd-flight b { display: block; font: 600 26px Unbounded, sans-serif; letter-spacing: -.04em; }
.gd-flight small { display: block; color: var(--gd-mute); font-size: 12.5px; }
.gd-flight .r { text-align: right; }
.gd-line { height: 2px; background: repeating-linear-gradient(90deg, var(--gd-acc) 0 6px, transparent 6px 12px); position: relative; }
.gd-line .ic { position: absolute; left: 50%; top: -8px; transform: translateX(-50%); color: var(--gd-acc); background: #fff; padding: 0 4px; box-sizing: content-box; }

.gd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-top: 18px; }
.gd-h { background: #fff; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; border: 2px solid transparent; min-width: 0; scroll-margin-top: 16px; }
.gd-h[hidden] { display: none; }
.gd-h.rec { border-color: var(--gd-acc); }
.gd-ph { position: relative; height: 210px; }
.gd-ph .gallery { position: absolute; inset: 0; }
.gd-ph .gallery .count { display: none; }
.gd-badges { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; gap: 6px; pointer-events: none; }
.gd-badges span { height: 28px; padding: 0 10px; border-radius: 99px; background: #fff; font-weight: 700; font-size: 11.5px; display: flex; align-items: center; gap: 5px; }
.gd-badges span.n { width: 28px; padding: 0; justify-content: center; }
.gd-badges span.rec { background: var(--gd-acc); color: #fff; }
.gd-badges .ic { width: 13px; height: 13px; }
.gd-b { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.gd-h h4 { font-weight: 700; font-size: 19px; line-height: 1.22; margin: 0; }
.gd-stars { font-style: normal; color: #E8A33D; font-size: 13px; letter-spacing: 1px; white-space: nowrap; }
.gd-pl { color: var(--gd-mute); font-size: 13px; }
.gd-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.gd-tags span { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; color: var(--tag); background: color-mix(in srgb, var(--tag) 12%, #fff); }
.gd-b ul { list-style: none; padding: 0; margin: 12px 0 0; font-size: 13.5px; color: #3a3d45; }
.gd-b li { display: flex; gap: 8px; padding: 4px 0; line-height: 1.4; }
.gd-b li .ic { color: var(--gd-acc); flex: none; width: 16px; height: 16px; margin-top: 1px; }
.gd-note { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: #EEF7F5; font-size: 13.5px; white-space: pre-line; }
.gd-note b { color: var(--gd-acc); }
.gd-more { margin-top: 10px; font-size: 13.5px; }
.gd-more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--gd-acc); }
.gd-more summary::-webkit-details-marker { display: none; }
.gd-more[open] summary .ic { transform: rotate(90deg); }
.gd-more .desc, .gd-fi { font-size: 13.5px; margin-top: 8px; color: #3a3d45; white-space: pre-line; }
.gd-pr { margin-top: auto; padding-top: 14px; }
.gd-pr .pflag { margin-bottom: 8px; }
.gd-pr s { display: block; color: #9a9ca5; font-size: 13px; }
.gd-pr b { display: block; font: 600 24px Unbounded, sans-serif; letter-spacing: -.04em; white-space: nowrap; }
.gd-pr small { display: block; color: var(--gd-mute); font-size: 12px; }
.gd-acts { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.gd-b .gd-acts .gd-btn { flex: 1 1 auto; min-width: min(100%, max-content); height: 44px; padding: 0 14px; }
.gd-acts.end { margin-top: 16px; }
.react.gd-react button { border-color: var(--gd-line); background: #fff; }
.gd-b .links { font-size: 13px; margin-top: 10px; }
.gd-b .links a { color: var(--gd-acc); }
.t-guide .vars-box { margin: 10px 0 0; }
.t-guide .var { min-width: 80px; }
.gd-foot { color: var(--gd-mute); font-size: 13px; margin: 0; }

.t-guide .foot { background: var(--gd-ink); }
.t-guide .mbar .call { background: var(--gd-acc); }

@media (max-width: 1100px) {
  .gd-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .gd-main { padding: 30px 28px 60px; }
}
@media (max-width: 900px) {
  .gd-layout { grid-template-columns: 1fr; }
  .gd-side { position: static; height: auto; flex-direction: row; align-items: center; justify-content: space-between; padding: 16px 16px 4px; border: 0; }
  .gd-nav, .gd-mgr { display: none; }
  .gd-main { padding: 14px 16px 40px; }
  .gd-head h1 { font-size: clamp(32px, 10vw, 48px); }
  .gd-head p { font-size: 16px; }
  .gd-map { border-radius: 22px; }
  .gd-lbl text { font-size: 34px; stroke-width: 6px; }
  .gd-leg { position: static; padding: 12px; background: rgba(255, 255, 255, .55); }
  .gd-leg span { height: 32px; font-size: 12px; padding: 0 12px; }
  .gd-steps { padding-left: 40px; margin-top: 40px; }
  .gd-dot { left: -40px; }
  .gd-steps::before { left: 15px; }
  .gd-flight { padding: 14px 16px; gap: 12px; }
  .gd-flight b { font-size: 20px; }
  .gd-cards { grid-template-columns: 1fr; }
  .gd-acts.end .gd-btn { flex: 1 1 100%; }
}
@media print {
  .gd-layout { grid-template-columns: 1fr; }
  .gd-side { position: static; height: auto; border: 0; padding: 0 0 10px; }
  .gd-nav, .gd-mgr .gd-btn, .gd-acts { display: none !important; }
  .gd-main { padding: 0; }
  .gd-h { break-inside: avoid; page-break-inside: avoid; border-color: var(--gd-line); }
  .gd-cards { grid-template-columns: 1fr 1fr; }
  body.t-guide { background: #fff; }
}
