/* Tourism layout patch — compact cards, 12 Oct 2026. */
main[data-tourism-page] .tourism-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:16px}
main[data-tourism-page] .tour-card--interactive{position:relative;min-width:0;width:100%;height:100%;min-height:0;overflow:hidden;display:flex;flex-direction:column;padding:0;box-sizing:border-box}
main[data-tourism-page] .tour-card__image{position:relative;flex:0 0 auto;height:154px;min-height:154px;max-height:154px;overflow:hidden}
main[data-tourism-page] .tour-card__image::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(15,23,42,.10),transparent 58%);pointer-events:none}
main[data-tourism-page] .tour-card__image img{position:relative;z-index:0;display:block;width:100%;height:154px;min-height:154px;max-height:154px;object-fit:cover}
main[data-tourism-page] .tour-card__badge-overlay{position:absolute!important;z-index:2;top:9px;left:9px;display:inline-flex;align-items:center;max-width:calc(100% - 18px);min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:5px 8px!important;border:1px solid rgba(255,255,255,.7);border-radius:7px;background:rgba(255,255,255,.94)!important;color:var(--brand-2,#c81e2b)!important;font-size:10px!important;line-height:1.15;font-weight:800;box-shadow:0 2px 9px rgba(15,23,42,.12)}
main[data-tourism-page] .tour-card__badge-inline{display:inline-flex;align-self:flex-start;max-width:100%;margin:0 0 7px;padding:5px 8px;border-radius:7px;background:#fff4f4;color:var(--brand-2,#c81e2b);font-size:10px;line-height:1.15;font-weight:800;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
main[data-tourism-page] .tour-card__body{min-width:0;min-height:0;height:auto;flex:1 1 auto;display:flex;flex-direction:column;padding:12px 14px 12px;box-sizing:border-box}
main[data-tourism-page] .tour-card__top{display:none!important}
main[data-tourism-page] .tour-card h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-width:0;min-height:0;height:auto;max-height:2.26em;margin:0 0 2px;font-size:clamp(18px,1.45vw,21px);line-height:1.13;overflow-wrap:anywhere}
main[data-tourism-page] .tour-card .rich-fragment{min-width:0;height:2.65em;min-height:2.65em;max-height:2.65em;margin:0;overflow:hidden;color:var(--muted,#667085);font-size:12.5px;line-height:1.325;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
main[data-tourism-page] .tour-card .rich-fragment p,main[data-tourism-page] .tour-card .rich-fragment>*{margin:0;padding:0}
main[data-tourism-page] .tour-card dl{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;min-width:0;min-height:0;margin:8px 0 0;padding:0}
main[data-tourism-page] .tour-card dl>div{display:grid;grid-template-columns:52px minmax(0,1fr);gap:6px;align-items:baseline;min-width:0;min-height:0;padding:4px 0 0;border-top:1px solid var(--line,#e5e7eb)}
main[data-tourism-page] .tour-card dt{min-width:0;font-size:10px;line-height:1.2;overflow-wrap:anywhere;color:var(--muted,#667085)}
main[data-tourism-page] .tour-card dd{min-width:0;margin:0;max-width:100%;overflow:hidden;display:block;white-space:nowrap;text-overflow:ellipsis;font-size:11.5px;line-height:1.25;font-weight:700}
main[data-tourism-page] .tour-card__actions{display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0;margin-top:auto;padding-top:9px}
main[data-tourism-page] .tour-card__actions .tour-card__open{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;max-width:100%;min-height:38px;padding:8px 12px;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
main[data-tourism-page] .tour-card__actions .tour-card__link,main[data-tourism-page] .tour-card__actions a[href*="schedule"],main[data-tourism-page] .tour-card__actions a[href*="timetable"]{display:none!important}
main[data-tourism-page].tourism-layout-enhanced [data-tourism-block="group_request"]{display:none}
main[data-tourism-page].tourism-layout-enhanced [data-tourism-block="group_request"].tourism-request-is-open{display:block}
main[data-tourism-page] .tourism-group-cta{padding:8px 0 24px}
main[data-tourism-page] .tourism-group-cta .container{display:flex;justify-content:center}
main[data-tourism-page] .tourism-group-cta button{min-width:min(100%,340px);max-width:100%}
main[data-tourism-page] .tourism-group-cta button:focus-visible,main[data-tourism-page] .hero__actions a[href="#group-request"]:focus-visible{outline:3px solid #1d4ed8;outline-offset:3px}
main[data-tourism-page] [data-tourism-block="info_tiles"]{display:none!important}

/* Sheregesh standalone landing page */
.sheregesh-landing .sheregesh-hero{padding:clamp(28px,5vw,62px) 0;background:linear-gradient(135deg,#fff,#f5f6f8);border-bottom:1px solid var(--line,#e5e7eb)}
.sheregesh-landing .sheregesh-hero__grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(22px,4vw,48px);align-items:center}
.sheregesh-landing .sheregesh-hero h1{margin:10px 0 16px;font-size:clamp(34px,5vw,58px);line-height:1.03;letter-spacing:-.04em;overflow-wrap:anywhere}
.sheregesh-landing .sheregesh-lead{color:var(--muted,#667085);font-size:clamp(17px,2vw,21px);line-height:1.5;max-width:60ch}
.sheregesh-landing .sheregesh-hero__image{margin:0;min-width:0;overflow:hidden;border-radius:24px;background:#e8edf4;box-shadow:0 18px 45px rgba(15,23,42,.12)}
.sheregesh-landing .sheregesh-hero__image img{display:block;width:100%;height:clamp(240px,30vw,390px);object-fit:cover}
.sheregesh-landing .sheregesh-route-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:28px 0 0}
.sheregesh-landing .sheregesh-route-fact{min-width:0;padding:16px;border:1px solid var(--line,#e5e7eb);border-radius:14px;background:var(--surface,#fff)}
.sheregesh-landing .sheregesh-route-fact dt{margin-bottom:6px;color:var(--muted,#667085);font-size:13px}
.sheregesh-landing .sheregesh-route-fact dd{margin:0;font-weight:750;line-height:1.45;overflow-wrap:anywhere}
.sheregesh-landing .sheregesh-copy{max-width:860px;line-height:1.75}
.sheregesh-landing .sheregesh-copy p{margin:0 0 16px}
.sheregesh-landing .sheregesh-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.sheregesh-landing .sheregesh-back{margin-top:10px}
@media(max-width:980px){main[data-tourism-page] .tourism-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.sheregesh-landing .sheregesh-hero__grid{grid-template-columns:minmax(0,1fr)}.sheregesh-landing .sheregesh-hero__image{order:-1}.sheregesh-landing .sheregesh-hero__image img{height:clamp(230px,42vw,360px)}}
@media(max-width:640px){main[data-tourism-page] .tourism-grid{grid-template-columns:minmax(0,1fr);gap:12px}main[data-tourism-page] .tour-card__image,main[data-tourism-page] .tour-card__image img{height:148px;min-height:148px;max-height:148px}main[data-tourism-page] .tour-card__body{padding:11px 12px 11px}main[data-tourism-page] .tour-card h3{font-size:19px}main[data-tourism-page] .tour-card dl>div{grid-template-columns:52px minmax(0,1fr)}main[data-tourism-page] .tour-card__actions{padding-top:7px}.sheregesh-landing .sheregesh-route-facts{grid-template-columns:minmax(0,1fr)}.sheregesh-landing .sheregesh-actions{flex-direction:column}.sheregesh-landing .sheregesh-actions .btn{width:100%;justify-content:center}}

/* Group tourist request: compact control below the existing "Обратиться" CTA. */
body.tourism-request-modal-page .header__inner{height:auto;min-height:78px;padding-top:6px;padding-bottom:6px;box-sizing:border-box}
body.tourism-request-modal-page .tourism-header-actions{display:flex;flex:0 0 auto;flex-direction:column;align-items:stretch;justify-content:center;gap:4px;max-width:184px;min-width:0}
body.tourism-request-modal-page .tourism-header-actions .header__cta{display:inline-flex;align-self:stretch;justify-content:center;white-space:nowrap;box-sizing:border-box;padding:9px 12px;min-height:36px;border-radius:10px;font-size:13px;line-height:1.1}
body.tourism-request-modal-page .tourism-header-request-button{display:flex;align-items:center;justify-content:center;width:100%;max-width:184px;min-width:0;min-height:30px;padding:5px 8px;border:1px solid rgba(227,6,19,.32);border-radius:9px;background:#fff;color:var(--brand-2,#c90012);font-size:11px;font-weight:700;line-height:1.15;font-family:inherit;cursor:pointer;white-space:normal;text-align:center;box-sizing:border-box;box-shadow:none}
body.tourism-request-modal-page .tourism-header-request-button:hover{background:#fff4f4;border-color:var(--brand-2,#c90012)}
body.tourism-request-modal-page .tourism-header-request-button__short{display:none}
body.tourism-request-modal-page .tourism-header-request-button:focus-visible{outline:3px solid #1d4ed8;outline-offset:3px}

/* Modal keeps the real, server-validated form and its existing submission handler. */
body.tourism-request-modal-page .tourism-request-dialog{width:min(760px,calc(100vw - 28px));max-width:760px;max-height:calc(100dvh - 24px);margin:auto;padding:0;border:0;border-radius:22px;background:transparent;color:var(--text,#1f2937);overflow:visible;box-shadow:none}
body.tourism-request-modal-page .tourism-request-dialog::backdrop{background:rgba(15,23,42,.62);backdrop-filter:blur(3px)}
body.tourism-request-modal-page .tourism-request-dialog__surface{position:relative;max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;padding:24px;background:#fff;border:1px solid rgba(15,23,42,.12);border-radius:22px;box-shadow:0 24px 90px rgba(15,23,42,.28);box-sizing:border-box}
body.tourism-request-modal-page .tourism-request-dialog__close{position:sticky;top:0;z-index:4;float:right;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;margin:-8px -8px 0 12px;padding:0;border:1px solid var(--line,#e5e7eb);border-radius:50%;background:#fff;color:var(--text,#1f2937);font-size:25px;line-height:1;cursor:pointer}
body.tourism-request-modal-page .tourism-request-dialog__close:hover{background:#f3f4f6}
body.tourism-request-modal-page .tourism-request-dialog .tourism-request-form--modal{width:100%;max-width:none;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;box-sizing:border-box}
body.tourism-request-modal-page .tourism-request-dialog .tourism-request-form--modal h2{margin:2px 44px 8px 0;font-size:clamp(23px,3vw,30px);line-height:1.15;letter-spacing:-.02em}
body.tourism-request-modal-page .tourism-request-dialog .tourism-request-form--modal .form-intro{margin:0 0 16px;color:var(--muted,#667085);font-size:14px;line-height:1.5}
body.tourism-request-modal-page .tourism-request-dialog .tourism-request-form--modal .field{margin-bottom:12px}
body.tourism-request-modal-page .tourism-request-dialog .tourism-request-form--modal .field label{margin-bottom:5px}
body.tourism-request-modal-page .tourism-request-dialog .tourism-request-form--modal .captcha-card{gap:14px;margin:12px 0;padding:12px}
body.tourism-request-modal-page .tourism-request-dialog .tourism-request-form--modal .consent-row{margin:12px 0}
body.tourism-request-modal-page .tourism-request-dialog .tourism-request-form--modal [data-submit-button]{width:100%;max-width:100%}
body.tourism-request-modal-fallback-open{overflow:hidden}
body.tourism-request-modal-page .tourism-group-cta{display:none!important}

@media (max-width:1120px){
  body.tourism-request-modal-page .header__inner{height:auto;min-height:78px;gap:12px}
  body.tourism-request-modal-page .site-header .header__cta{display:none}
  body.tourism-request-modal-page .burger{display:block;flex:0 0 auto}
  body.tourism-request-modal-page .nav{position:fixed;inset:110px 16px auto 16px;display:none;flex-direction:column;align-items:stretch;padding:16px;background:#fff;border:1px solid var(--line,#e5e7eb);border-radius:22px;box-shadow:var(--shadow,0 20px 60px rgba(15,23,42,.15));z-index:110;max-height:calc(100dvh - 118px);overflow-y:auto;-webkit-overflow-scrolling:touch}
  body.tourism-request-modal-page .nav.open{display:flex}
  body.tourism-request-modal-page .nav a{padding:14px}
  body.tourism-request-modal-page .tourism-header-actions{margin-left:auto}
  body.tourism-request-modal-page .tourism-header-request-button{min-height:36px;font-size:11px}
}
@media (max-width:520px){
  body.tourism-request-modal-page .header__inner{gap:7px}
  body.tourism-request-modal-page .tourism-header-actions{max-width:78px}
  body.tourism-request-modal-page .tourism-header-request-button{min-height:34px;padding:6px 8px}
  body.tourism-request-modal-page .tourism-header-request-button__full{display:none}
  body.tourism-request-modal-page .tourism-header-request-button__short{display:inline}
  body.tourism-request-modal-page .logo span,body.tourism-request-modal-page .logo small{max-width:132px}
  body.tourism-request-modal-page .logo span{font-size:14px}
  body.tourism-request-modal-page .logo small{font-size:10px}
  body.tourism-request-modal-page .tourism-request-dialog__surface{padding:18px 14px}
  body.tourism-request-modal-page .tourism-request-dialog .tourism-request-form--modal .form-grid{grid-template-columns:1fr}
  body.tourism-request-modal-page .tourism-request-dialog .tourism-request-form--modal .captcha-card{grid-template-columns:1fr}
}

main[data-tourism-page] .tour-card__badge-overlay { left:auto; right:9px; border-radius:999px; background:#fff0f2!important; }

/* Request button alongside breadcrumbs */
main[data-tourism-page] .tourism-breadcrumb-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:10px; padding-bottom:10px; }
main[data-tourism-page] .tourism-breadcrumb-actions .breadcrumbs { margin:0; }
main[data-tourism-page] .tourism-breadcrumb-request { min-height:40px; padding:9px 14px; font-size:13px; line-height:1.3; text-align:center; }
body:has(.tourism-request-dialog[open]) { overflow:hidden; }
@media(max-width:600px) { main[data-tourism-page] .tourism-breadcrumb-actions { gap:8px; } main[data-tourism-page] .tourism-breadcrumb-request { max-width:190px; font-size:12px; padding:8px 10px; } }

/* Equal compact gaps around the tourism map and route cards. */
main[data-tourism-page] .page-hero--breadcrumbs-only { padding:0; }
main[data-tourism-page] .tourism-breadcrumb-actions { padding-top:10px; padding-bottom:10px; }
main[data-tourism-page] .tourism-map-hero { padding:16px 0 0; border-bottom:0; }
main[data-tourism-page] [data-tourism-block="routes"] { padding:16px 0 24px; }
main[data-tourism-page] [data-tourism-block="routes"] .section__head:not(:has(*)) { display:none; margin:0; padding:0; }

/* Align the map, breadcrumbs and cards on one centered container. */
main[data-tourism-page] { width:100%; min-width:0; margin-inline:0; }
main[data-tourism-page] > section { width:100%; min-width:0; align-self:stretch; box-sizing:border-box; }
main[data-tourism-page] > section > .container { width:min(1180px,calc(100% - 32px)); max-width:1180px; margin-inline:auto!important; box-sizing:border-box; }
main[data-tourism-page] .tourism-map-banner { width:100%; margin:0; }
main[data-tourism-page] .tourism-map-banner img { width:100%; height:auto; }
main[data-tourism-page] .tourism-grid { width:100%; margin:0; }
