/* Mobile first: readable controls, short discovery path, persistent order summary. */
:root { --top-height: 64px; --focus: #7d350f; }
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a, input, select, textarea, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; }
button:disabled { cursor: wait; }
input, textarea, select { min-width: 0; max-width: 100%; }
textarea { font: inherit; resize: vertical; }
fieldset { min-width: 0; }
.top-row { min-height: 64px; }
.logo { max-width: 32%; }
.messengers { display: flex; align-items: center; gap: 4px; }
.messengers a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px; margin: 0; border-radius: 8px; font-size: 14px; }
.catalog-intro { margin-bottom: 18px; }
.catalog-intro h1 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }
.catalog-intro p { margin: 0; color: var(--muted); max-width: 690px; font-size: 15px; }
.catalog-toolbar { position: sticky; top: var(--top-height); z-index: 6; display: grid; grid-template-columns: minmax(220px, 420px) minmax(0, 1fr); gap: 10px 16px; margin: 0 -4px 16px; padding: 10px 4px; background: var(--bg); border-bottom: 1px solid var(--line); }
.search { max-width: none; margin: 0; min-height: 46px; font-size: 16px; padding: 10px 16px; }
.category-filters { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: thin; overscroll-behavior-x: contain; padding: 3px 0 6px; }
.category-filters button { flex: none; border: 1px solid #cfc1ae; border-radius: 999px; padding: 9px 16px; min-height: 44px; background: var(--card); color: var(--ink); white-space: nowrap; cursor: pointer; font-size: 14px; font-weight: 650; }
.category-filters button.active { background: var(--accent-dark); color: white; border-color: var(--accent-dark); }
.category-discovery { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
.category-discovery-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin: 0 2px 4px; font-size: 12px; color: var(--muted); }
.category-discovery-head b { color: var(--ink); font-size: 13px; }
.category-rail { display: flex; gap: 6px; align-items: center; min-width: 0; }
.category-rail .category-filters { flex: 1; min-width: 0; scrollbar-width: none; padding-bottom: 3px; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y pinch-zoom; }
.category-rail .category-filters::-webkit-scrollbar { display: none; }
.category-scroll { flex: none; display: grid; place-items: center; width: 40px; height: 44px; border: 1px solid #cfc1ae; border-radius: 12px; background: var(--card); color: var(--accent-dark); font-size: 25px; line-height: 1; cursor: pointer; }
.category-scroll:disabled { opacity: .35; cursor: default; }
.category-rail.can-scroll-right .category-filters { mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 20px), transparent 100%); }
.category-rail.can-scroll-left .category-filters { mask-image: linear-gradient(to right, transparent 0%, #000 20px, #000 100%); }
.category-rail.can-scroll-left.can-scroll-right .category-filters { mask-image: linear-gradient(to right, transparent 0%, #000 20px, #000 calc(100% - 20px), transparent 100%); }
.catalog-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; grid-column: 2; grid-row: 1; }
#catalog-count { margin: 0; font-size: 13px; color: var(--muted); }
.sort-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
#catalog-sort { min-height: 44px; max-width: 220px; padding: 8px 10px; font-size: 14px; }
.catalog-empty { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 24px; margin-bottom: 16px; }
.catalog-empty h2 { margin: 0 0 8px; font-size: 22px; }
.catalog-empty p { margin: 0 0 16px; color: var(--muted); }
.catalog-empty #empty-query + p { display: none; }
.catalog-empty button, .catalog-empty a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; margin: 0 8px 8px 0; font-weight: 650; text-decoration: none; }
.catalog-empty button { background: var(--accent-dark); color: #fff; cursor: pointer; }
.card-body { gap: 9px; }
.card-media img { height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-rate { color: #805600; height: auto; min-height: 18px; }
.card-kind { width: auto; min-width: 36px; padding: 0 8px; }
.price { line-height: 1.25; }
.sheet { width: min(980px, 100%); height: 100dvh; }
.sheet-bar { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 12px 6px 16px; flex: none; border-bottom: 1px solid var(--line); background: var(--card); z-index: 2; }
.sheet-bar > span { font-size: 14px; font-weight: 650; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-bar .close { position: static; margin-left: auto; flex: none; width: 44px; height: 44px; font-size: 26px; background: #f3eee4; }
.sheet-scroll { flex: 1 1 0; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; scroll-padding: 12px 0 24px; scrollbar-gutter: stable; }
.sheet-body { padding: 20px 20px 28px; }
.sheet-body > *, .section { min-width: 0; }
.sheet-head { padding-right: 0; }
.sheet-head :is(h1,h2) { font-size: clamp(23px, 2.5vw, 30px); overflow-wrap: anywhere; }
.detail-nav { display: flex; gap: 6px; margin-top: 4px; }
.detail-nav button { min-height: 44px; padding: 8px 14px; color: var(--accent-dark); background: #fff6e8; border: 1px solid #e6d2b7; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 650; }
.detail-nav button.active { background: var(--accent-dark); color: #fff; }
.section { margin-top: 20px; overflow-wrap: break-word; scroll-margin-top: 12px; }
.section h3 { font-size: 14px; }
#sec-about .about { line-height: 1.5; }
#sec-about .about p:last-child { margin-bottom: 0; }
.order-caption { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
#order { border: 0; border-radius: 0; padding: 0; background: transparent; }
#order > h3 { color: var(--ink); font-size: 18px; letter-spacing: 0; text-transform: none; }
#order:has(.format-options) > h3 { margin-bottom: 4px; }
.format-options, .axis, .service-fields, #child-ages { border: 0; padding: 0; margin: 12px 0 0; }
.format-options { display: flex; flex-direction: column; gap: 8px; margin-top: 0; }
.format-options legend, .axis legend, .service-fields legend, #child-ages legend { margin: 0 0 8px; padding: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.format-options legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.format { padding: 12px; min-height: 52px; }
.format > span { min-width: 0; flex: 1; }
.format input[type="radio"] { flex: none; width: 18px; height: 18px; accent-color: var(--accent-dark); }
.format:has(input:checked) { border-color: var(--accent-dark); box-shadow: inset 0 0 0 1px var(--accent-dark); }
.format:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.format small { font-size: 13px; line-height: 1.35; margin-top: 2px; }
.format .format-note { font-size: 12px; margin-top: 5px; }
.axis-row > .format { padding: 12px 8px; min-height: 56px; }
.axis-row .ui-icon { width: 32px; height: 32px; }
.axis .format > .opt-price { max-width: 45%; font-size: 12px; }
.fields, .service-field-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.fields > *, .service-field-grid > * { min-width: 0; }
label.field { font-size: 14px; gap: 6px; color: var(--ink); }
input[type="text"], input[type="tel"], input[type="number"], input[type="time"], input[type="date"], input[type="file"], select, textarea, .date-btn { min-height: 46px; font-size: 16px; width: 100%; border-color: #cec2b1; }
input[type="time"], input[type="date"] { border: 1px solid #cec2b1; border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--ink); }
input[type="checkbox"] { accent-color: var(--accent-dark); width: 18px; height: 18px; flex: none; }
.date-btn.empty { color: #756a5c; }
.pax { gap: 10px; margin: 4px 0; }
.pax-row { gap: 8px; }
.pax-row .stepper { width: 146px; }
.pax-row > span:first-child { font-size: 14px; }
.stepper input[type="number"] { min-height: 44px; }
.stepper button:disabled { cursor: default; opacity: .5; }
.child-age-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.age-confirm { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; margin-top: 10px; }
.age-confirm input { margin-top: 2px; }
.order-error, .file-error { color: #a02613 !important; font-size: 13px; }
.order-error { border-left: 3px solid #a02613; padding-left: 10px; margin: 10px 0 0; }
.fields > .order-error, .fields > #child-ages { grid-column: 1 / -1; }
.service-cols { grid-template-columns: 1fr; }
.summary { border: 1px solid #eadcc5; line-height: 1.4; font-size: 14px; }
.summary .total { font-size: 22px; margin-top: 8px; line-height: 1.2; }
.hint { line-height: 1.4; }
.send a, .send button { min-height: 46px; font-size: 14px; display: flex; align-items: center; justify-content: center; padding: 10px 5px; }
.send .is-disabled { opacity: .55; }
.consult-order { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 12px; margin-top: 8px; border: 1px solid #d4b494; border-radius: 10px; background: #fff; color: var(--accent-dark); font-weight: 650; text-decoration: none; }
.chat-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chat-links a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 650; }
#transfer-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.message-preview { margin-top: 12px; }
.message-preview summary { cursor: pointer; color: var(--accent-dark); font-weight: 650; min-height: 44px; display: flex; align-items: center; }
#message-text, #message-preview textarea { width: 100%; min-height: 180px; font-size: 14px; line-height: 1.45; }
#copy-message, #consult-order { min-height: 44px; width: 100%; border: 1px solid #d4b494; border-radius: 10px; padding: 10px 12px; background: white; color: var(--accent-dark); font-weight: 650; cursor: pointer; margin-top: 8px; }
#copy-status { margin: 6px 0; color: var(--muted); font-size: 13px; }
.sticky-order { display: flex; align-items: center; gap: 12px; border-top: 1px solid #d6c6b1; background: var(--card); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 18px rgba(28,25,21,.07); flex: none; z-index: 2; }
.sticky-order > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sticky-caption { font-size: 11px; color: var(--muted); }
#sticky-price { font-size: 18px; line-height: 1.25; overflow-wrap: break-word; }
#sticky-cta { min-height: 46px; max-width: 50%; border: 0; background: var(--accent-dark); color: #fff; border-radius: 12px; padding: 10px 16px; font-size: 15px; font-weight: 700; cursor: pointer; }
.gallery { aspect-ratio: auto; }
.gallery-track { position: relative; width: 100%; aspect-ratio: 1.65; height: auto; max-height: min(480px, 55svh); min-height: 0; align-items: stretch; overflow: hidden; touch-action: pan-y pinch-zoom; }
.gallery-track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.gal-slide { min-width: 0; min-height: 0; height: auto; align-self: stretch; overflow: hidden; border: 0; padding: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: zoom-in; }
.gal-slide { scroll-snap-stop: always; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.gal-slide img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; touch-action: pan-y pinch-zoom; }
.gal-count { position: absolute; right: 10px; bottom: 10px; margin: 0; width: max-content; min-height: 24px; background: rgba(255,253,249,.88); color: var(--ink); border-radius: 12px; padding: 3px 8px; font-size: 12px; pointer-events: none; }
.gal-review { bottom: 10px; max-width: calc(100% - 24px); }
.gal-prev, .gal-next { width: 44px; height: 44px; top: 50%; }
.gal-prev, .gal-next, .photo-close, .photo-nav, .sheet-bar .close { color: var(--ink); appearance: none; -webkit-appearance: none; }
.review-sum { font-size: 15px; }
.review-stars, .star-pick button { color: #805600; }
.review-sum .review-stars { color: #805600; }
.review-card { padding: 14px; margin-bottom: 12px; }
.review-top { flex-wrap: wrap; gap: 2px 8px; }
.review-text { font-size: 14px; line-height: 1.5; white-space: pre-line; }
.review-text.is-short { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.text-action { min-height: 44px; border: 0; background: none; padding: 8px 0; color: var(--accent-dark); font-size: 14px; font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.review-meta, .review-progress { font-size: 13px; }
.review-progress { margin: 10px 0; color: var(--muted); }
.review-photo { padding: 0; border: 0; border-radius: 8px; cursor: zoom-in; background: transparent; }
.review-photos img { display: block; }
.review-reply summary { cursor: pointer; min-height: 30px; padding: 4px 0; }
.review-reply p { line-height: 1.45; }
.star-pick { gap: 2px; }
.star-pick button { width: 44px; height: 44px; padding: 4px; font-size: 30px; border-radius: 8px; }
.star-pick button[aria-pressed="true"] { background: #fff0ce; box-shadow: inset 0 0 0 1px #c49732; }
.review-form .field { display: flex; flex-direction: column; gap: 6px; }
.prog-toggle { min-height: 46px; }
.cmp > summary { padding: 12px 0; min-height: 44px; color: var(--accent-dark); cursor: pointer; font-size: 14px; font-weight: 650; }
.cmp-lead { margin-top: 4px; }
.cmp-head { flex-wrap: wrap; margin-bottom: 6px; }
.photo-modal { padding-top: max(60px, env(safe-area-inset-top)); padding-bottom: max(44px, env(safe-area-inset-bottom)); }
.photo-modal { touch-action: pan-y pinch-zoom; }
.photo-modal img { touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.photo-close { width: 44px; height: 44px; top: max(12px, env(safe-area-inset-top)); }
.photo-count { bottom: max(12px, env(safe-area-inset-bottom)); }
.prog-modal-head { min-height: 62px; }
.prog-modal-head :is(h1,h3) { min-width: 0; overflow-wrap: anywhere; }
.prog-modal-head button { width: 44px; height: 44px; flex: none; }
.prog-modal-card { max-height: min(90dvh, 860px); }
.prog-modal-body { overscroll-behavior: contain; }
.prog-modal-body table, .section table { table-layout: auto; overflow-wrap: anywhere; }
.prog-modal-body .slot { grid-template-columns: minmax(0, 36%) minmax(0, 1fr); }
.prog-modal-body .slot.clock { grid-template-columns: auto minmax(0, 1fr); }
.calendar-modal { position: fixed; inset: 0; z-index: 35; background: rgba(28,25,21,.2); }
.cal-head button, .cal-quick button { min-height: 44px; }
.cal-head button { width: 44px; flex: none; }
.cal-grid button { height: 44px; }
.cal-help { margin: 10px 0 2px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.p27-load-state { padding: 16px; margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff8e8; color: var(--muted); }
.p27-load-state button { min-height: 44px; padding: 10px 14px; border: 1px solid #d4b494; border-radius: 10px; background: #fff; color: var(--accent-dark); cursor: pointer; }
@media (max-width: 640px) {
  .top-row { min-height: 56px; padding: 6px 8px; }
  .logo { height: 30px; max-width: 25%; }
  .messengers { gap: 0; }
  .messengers a { padding: 4px 5px; font-size: 12px; }
  .wrap { padding-top: 16px; }
  .catalog-intro { margin-bottom: 12px; }
  .catalog-intro p { font-size: 14px; }
  .catalog-toolbar { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .category-discovery { grid-column: 1; grid-row: 2; }
  .catalog-controls { grid-column: 1; grid-row: 3; gap: 8px; }
  #catalog-count { flex: 1; min-width: 0; font-size: 12px; line-height: 1.2; }
  .sort-label { display: block; font-size: 0; width: 178px; flex: none; }
  #catalog-sort { width: 100%; max-width: none; min-height: 40px; font-size: 13px; padding: 7px 6px; }
  .catalog-empty { padding: 18px; }
  .catalog-empty button, .catalog-empty a { width: 100%; margin-right: 0; }
  .sheet-body { padding: 16px 12px 24px; }
  .sheet-scroll { scrollbar-gutter: auto; }
  .sticky-order { padding-left: 12px; padding-right: 12px; gap: 8px; }
  #sticky-cta { padding-left: 12px; padding-right: 12px; font-size: 14px; }
  #sticky-price { font-size: 17px; }
  .photo-nav { top: auto; bottom: max(6px, env(safe-area-inset-bottom)); transform: none; }
  .photo-modal { padding-left: 10px; padding-right: 10px; }
  .prog-modal { padding: 8px; }
  .prog-modal-card { max-height: calc(100dvh - 16px); border-radius: 12px; }
  .prog-modal-head { padding: 8px 12px; }
  .prog-modal-body { padding-left: 12px; padding-right: 12px; }
}
@media (min-width: 641px) and (max-width: 899px) {
  .sheet { width: min(680px, 100%); }
  .catalog-toolbar { grid-template-columns: minmax(0, 1fr); }
  .catalog-controls { grid-column: 1; grid-row: 3; }
  .service-cols { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .sheet-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 410px); gap: 0 22px; align-items: start; }
  .sheet-body > * { grid-column: 1; }
  .sheet-body #order { grid-column: 2; grid-row: 1 / span 9; position: static; margin-top: 0; max-height: none; overflow: visible; }
  .sheet-body > .sheet-head { padding-top: 4px; }
  .detail-nav { flex-wrap: wrap; }
  .service-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Live APL dates, scoped to the public tour form and calendar. */
.apl-availability[hidden]{display:none!important}
.apl-availability{margin-top:10px;padding:0;border:0;border-radius:0;background:transparent;font-size:14px;line-height:1.35}
.apl-availability>strong{display:block;font-size:15px}.apl-availability p{margin:5px 0}.apl-availability small{display:inline;color:#6c6b60;font-size:11px;margin-left:10px}
.apl-help{color:#64635c;font-size:12px}.apl-notice{color:#8e3c14}.apl-selected{font-weight:600}
.apl-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:3px 0 5px}
.apl-availability .apl-date{width:100%;min-width:0;display:flex;flex-direction:column;gap:2px;min-height:50px;padding:7px 8px;text-align:left;border:0;border-radius:8px;background:#edf4ed;color:#243b28;cursor:pointer;font:inherit}
.apl-date span{font-size:12px}.apl-date[aria-pressed=true]{outline:2px solid #9c4313;outline-offset:1px}
.apl-date.apl-few{background:#fff2de;color:#775013}.apl-date.apl-scheduled{background:#edf2f7;color:#355576}
.cal-grid button{position:relative}.cal-grid button.cal-apl-available{background:#eef6ed;color:#234f2a}.cal-grid button.cal-apl-few{background:#fff1d5;color:#795117}.cal-grid button.cal-apl-scheduled{background:#edf3f9;color:#365f83}.cal-grid button.cal-apl-sold_out{text-decoration:line-through;color:#98938c;background:#eeece6}
.cal-apl-dot{position:absolute;bottom:3px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:currentColor}.cal-grid button.on{box-shadow:inset 0 0 0 2px #9c4313}
@media(max-width:600px){.cal-help{font-size:12px;line-height:1.4}}

.apl-more{font:inherit;font-size:12px;padding:6px 0;background:none;border:0;color:#8c3f18;text-decoration:underline;cursor:pointer}.cal-apl-legend[hidden]{display:none!important}.cal-apl-legend{display:flex;flex-wrap:wrap;gap:5px 10px;padding:7px 0;font-size:11px}.cal-apl-legend span:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:4px;background:currentColor}.legend-available{color:#2c6537}.legend-few{color:#9b6819}.legend-scheduled{color:#426d93}.legend-sold_out{color:#929087}

.cal-quick button:disabled{opacity:.45;cursor:default}

/* Canonical hotel search and explicit manual fallback. */
.hotel-field{min-width:0}.hotel-field>label{font:inherit}.hotel-field>small{font-size:12px;color:var(--muted);line-height:1.35}.hotel-manual{align-self:start;border:0;background:none;color:var(--accent-dark);font-size:12px;padding:5px 0;text-decoration:underline;cursor:pointer;min-height:44px}
.hotel-results{max-height:240px;overflow-y:auto;border:1px solid var(--line);border-radius:10px;background:#fff;margin-top:4px;overscroll-behavior:contain}
.hotel-option{padding:9px 10px;cursor:pointer;border-bottom:1px solid #eee8de;line-height:1.35}.hotel-option:last-child{border:0}.hotel-option b{display:block;font-size:14px;overflow-wrap:anywhere}.hotel-option small{display:block;font-size:12px;color:var(--muted)}.hotel-option:hover,.hotel-option[aria-selected=true]{background:#fff2df}.hotel-area{display:flex;flex-direction:column;gap:6px;margin-top:5px}.hotel-area select,.hotel-area input{width:100%;min-height:44px}.hotel-area>label{font-size:13px}.hotel-area-other-wrap{margin-top:5px}

/* Distinct actions: select an option, inspect its itinerary, fill the request. */
.route-entry{margin:12px 0 16px}.route-open{display:flex!important;gap:10px;align-items:center;width:100%;text-align:left;padding:12px!important;border:1px solid #d5ac8b!important;background:#fff4e7!important;color:var(--accent-dark);border-radius:10px;cursor:pointer}.route-open>span{display:flex;flex-direction:column;gap:3px;min-width:0}.route-open b{font-size:14px}.route-open small{font-size:12px;font-weight:400;color:var(--muted)}.route-open:after{content:"›";margin-left:auto;font-size:24px}.booking-step-title{font-size:15px!important;margin:14px 0 9px!important}.format:has(input:checked)>span>b:after{content:" · Выбрано";color:var(--accent-dark);font-size:12px;font-weight:600}

.variant-card{display:block;padding:0;overflow:hidden}.format-choice{display:flex;gap:12px;padding:12px;cursor:pointer;align-items:flex-start}.format-choice>span{min-width:0;flex:1}.variant-card:has(input:checked) .format-choice>span>b:after{content:" · Выбрано";color:var(--accent-dark);font-size:12px;font-weight:600}.variant-route{display:block;width:calc(100% - 24px);margin:0 12px 8px;padding:10px 12px;min-height:44px;border:0;border-top:1px solid #e6d9c8;border-radius:0;background:transparent;color:var(--accent-dark);font-size:14px;font-weight:700;text-align:left;cursor:pointer}.variant-route:after{content:" ›"}.variant-route:hover{background:#fff4e7}.variant-route:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}

#transfer{appearance:none;-webkit-appearance:none;display:block;height:50px;min-height:50px;padding:12px 42px 12px 14px;border:1px solid #cec2b1;border-radius:12px;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='m5 7 5 5 5-5' fill='none' stroke='%23756a5c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;color:var(--ink);font-size:16px;line-height:24px;cursor:pointer}#transfer:focus{border-color:var(--accent-dark)}#transfer-price-note{font-size:13px;line-height:1.4;color:var(--muted)}#transfer-note:empty{display:none}

/* Compact catalog, independent photo and save controls. */
.catalog-toolbar{grid-template-rows:auto auto auto}.catalog-views{grid-column:1/-1;grid-row:1;display:flex;gap:6px}.catalog-views button{min-height:44px;border:1px solid var(--line);border-radius:999px;padding:10px 15px;background:var(--card);color:var(--ink);font-size:14px;font-weight:650;cursor:pointer}.catalog-views button[aria-pressed=true]{background:var(--accent-dark);border-color:var(--accent-dark);color:white}#saved-count{display:inline-block;font-size:12px;margin-left:4px}.catalog-toolbar>.search{grid-row:2;grid-column:1}.catalog-controls{grid-row:2}.category-discovery{grid-row:3}.saved-notice{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.card{cursor:default}.card-media{position:relative;overflow:hidden}.card-photo-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x pan-y;aspect-ratio:16/9}.card-photo-track::-webkit-scrollbar{display:none}.card-photo{flex:0 0 100%;min-width:0;border:0;padding:0;background:#efe6d6;scroll-snap-align:start;scroll-snap-stop:always;cursor:pointer}.card-photo img{width:100%;height:100%;object-fit:cover;aspect-ratio:auto;user-select:none;-webkit-user-drag:none}.card-save{position:absolute;right:10px;top:10px;width:44px;height:44px;display:grid;place-items:center;border:1px solid #ffffff90;background:#fffffff2;border-radius:50%;color:var(--accent-dark);cursor:pointer;box-shadow:0 2px 10px #0002;z-index:2}.card-save svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8}.card-save[aria-pressed=true] svg{fill:currentColor}.card-photo-nav{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);display:flex;padding:0 4px;background:transparent;border-radius:99px}.card-photo-nav button{width:24px;height:30px;min-height:30px;border:0;background:transparent;position:relative;padding:0;cursor:pointer}.card-photo-nav button:after{content:"";width:6px;height:6px;background:#fff8;border-radius:50%;position:absolute;left:9px;top:12px}.card-photo-nav button[aria-pressed=true]:after{background:white;width:8px;height:8px;left:8px;top:11px}.card-body{border:0;background:transparent;text-align:left;color:inherit;width:100%;cursor:pointer;font:inherit}.card .card-short{display:block;font-size:14px;line-height:1.4}.card-meta{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12px;color:var(--muted)}.card-meta:empty{display:none}.card-cta{display:flex;align-items:center;justify-content:space-between;color:var(--accent-dark);font-weight:650;font-size:14px;padding-top:8px;border-top:1px solid #e9dfd0;margin-top:auto}.card-body:focus-visible{outline-offset:-4px}.card-save:focus-visible{outline-offset:2px}
@media(max-width:560px){.catalog{gap:14px}.card{border-radius:18px;box-shadow:0 4px 16px #43331b0b}.card-photo-track{aspect-ratio:2.2}.card-body{padding:12px 14px;gap:7px}.card h3{font-size:18px;line-height:1.3}.card .price{font-size:20px}.card .price span{font-size:13px}.catalog-toolbar{gap:6px}.catalog-toolbar>.search{grid-row:2;grid-column:1/-1}.catalog-controls{grid-row:4;grid-column:1/-1}.category-discovery{grid-row:3}.category-discovery-head{display:none}.catalog-views button{flex:1;padding:10px 8px}.catalog-intro{margin-bottom:12px}.catalog-intro p{font-size:13px}.catalog-intro h1{font-size:24px}}

/* One mobile discovery row; full filtering controls live in a bottom dialog. */
.compact-filter,.compact-saved,.compact-results,.compact-contacts{display:none}
.catalog-filter-dialog{width:min(560px,100%);max-height:85dvh;padding:0;border:0;border-radius:20px 20px 0 0;background:var(--card);color:var(--ink);margin:auto auto 0;box-shadow:0 -4px 30px #0002;overflow:hidden}
.catalog-filter-dialog::backdrop{background:#201c1766}.compact-dialog-head{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line)}.compact-dialog-head h2{font-size:18px;margin:0;flex:1}.compact-close{width:44px;height:44px;border:0;border-radius:50%;background:#f3eee4;font-size:26px;cursor:pointer}.compact-dialog-body{padding:16px 18px;overflow-y:auto;max-height:calc(85dvh - 170px);overscroll-behavior:contain}.compact-dialog-body h3{font-size:14px;margin:0 0 10px}.compact-dialog-body h3:not(:first-child){margin-top:22px}.in-filter-dialog .category-discovery-head,.in-filter-dialog .category-scroll{display:none!important}.in-filter-dialog .category-rail{display:block}.in-filter-dialog .category-filters{display:flex;flex-wrap:wrap;overflow:visible;mask-image:none!important;padding:0;gap:8px}.in-filter-dialog .category-filters button{white-space:normal;text-align:left}.compact-sort-slot .sort-label{display:block;font-size:0}.compact-sort-slot #catalog-sort{width:100%;max-width:none;font-size:16px;min-height:48px}.compact-dialog-foot{display:flex;gap:10px;padding:12px 18px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--card)}.compact-dialog-foot button{min-height:46px;border-radius:12px;padding:10px 14px;font:inherit;font-weight:650;cursor:pointer}.compact-reset{border:1px solid var(--line);background:white;color:var(--ink)}.compact-apply{flex:1;border:0;background:var(--accent-dark);color:white}
@media(max-width:640px){
.top{position:static}.catalog-toolbar{position:sticky;top:0;grid-template-columns:minmax(0,1fr) 44px 44px;grid-template-rows:auto;gap:7px;padding:6px 4px;margin-bottom:8px;min-height:56px;align-items:center}.catalog-toolbar>.search{grid-column:1;grid-row:1;min-height:44px;height:44px;padding:10px 12px;font-size:16px}.catalog-toolbar>.catalog-views,.catalog-toolbar>.catalog-controls{display:none}.compact-filter,.compact-saved{display:grid;place-items:center;position:relative;grid-row:1;width:44px;height:44px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--accent-dark);cursor:pointer}.compact-filter{grid-column:2}.compact-saved{grid-column:3}.compact-filter svg,.compact-saved svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.compact-saved[aria-pressed=true]{background:#fff0df}.compact-saved[aria-pressed=true] svg{fill:currentColor}.compact-badge{position:absolute;top:-4px;right:-3px;min-width:18px;height:18px;padding:0 4px;border-radius:99px;background:var(--accent-dark);color:white;font-size:10px;line-height:18px;text-align:center}.compact-badge[hidden]{display:none}.compact-results{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}.compact-results #catalog-count{font-size:12px}.compact-back{border:0;background:transparent;color:var(--accent-dark);font-size:13px;padding:6px 0;min-height:36px;font-weight:650;cursor:pointer}.compact-back[hidden]{display:none}.messengers>a{display:none}.compact-contacts{display:block;position:relative}.compact-contacts summary{padding:10px 12px;min-height:44px;display:flex;align-items:center;color:var(--accent-dark);font-size:13px;font-weight:650;cursor:pointer;list-style:none}.compact-contacts summary::-webkit-details-marker{display:none}.compact-contacts>div{position:absolute;right:0;top:100%;z-index:8;min-width:150px;padding:6px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 6px 24px #0002}.compact-contacts a{font-size:14px}.logo{max-width:none;width:120px;height:auto}.top-row{justify-content:space-between}.catalog-intro p{display:none}.catalog-intro{margin-bottom:8px}.catalog-intro h1{font-size:22px}.wrap{padding-top:10px}
}
@media(max-width:640px){.catalog-filter-dialog{width:100%;max-width:100%;inset:auto 0 0;margin:0;border-radius:20px 20px 0 0}.compact-sort-slot,.compact-sort-slot .sort-label{width:100%;max-width:none}.compact-sort-slot #catalog-sort{display:block;width:100%!important;max-width:none!important}.compact-dialog-foot .compact-apply{white-space:nowrap}.catalog-filter-dialog .compact-dialog-body{max-height:calc(85dvh - 160px)}body:has(.catalog-filter-dialog[open]){overflow:hidden}}

/* Heart floats on the photo without a badge; its invisible touch target stays 44px. */
.card-save{border:0;background:transparent;border-radius:0;box-shadow:none;color:#fff;right:6px;top:6px}.card-save svg{width:30px;height:30px;stroke:#fff;stroke-width:2.1;stroke-linejoin:round;filter:drop-shadow(0 1px 2px #000b) drop-shadow(0 0 1px #0008)}.card-save[aria-pressed=true] svg{fill:var(--accent-dark);stroke:#fff}.card-category{flex-basis:100%;font-size:12px;color:var(--muted)}

/* Four compact text rows: title, price, one-line gist, type and rating. */
.card-body{gap:6px;padding:11px 14px 12px}.card-title-row{display:flex;align-items:flex-start;gap:8px;width:100%}.card-title-row h3{flex:1;min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-title-arrow{flex:none;color:var(--accent-dark);font-size:19px;line-height:1.3}.card .card-short{display:block;white-space:normal;overflow:visible;text-overflow:clip;-webkit-line-clamp:unset;font-size:13px;line-height:1.35}.card-meta{flex-wrap:nowrap;gap:8px;align-items:baseline;width:100%;margin-top:1px}.card-category{flex-basis:auto;flex:none;font-size:12px}.card-meta .card-rate{font-size:12px;white-space:nowrap;min-height:0;height:auto;line-height:1.35}.card-meta .card-rate:before{content:"· ";color:var(--muted);font-weight:400}@media(max-width:560px){.card-body{gap:6px;padding:11px 14px 12px}}

/* Detail starts with the photo; compact context appears only after its title scrolls up. */
.sheet-bar{position:absolute;inset:0 0 auto;min-height:56px;height:56px;padding:6px 10px;gap:10px;background:transparent;border:0;pointer-events:none;z-index:4}.sheet-bar .detail-back{margin:0;width:44px;height:44px;border:0;border-radius:50%;background:#fffdf9eb;display:grid;place-items:center;pointer-events:auto;cursor:pointer;box-shadow:0 1px 5px #0001}.detail-back svg{width:24px;height:24px;fill:none;stroke:var(--ink);stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}.sheet-bar #sheet-context,.sheet-preview{visibility:hidden;opacity:0;pointer-events:none}.sheet-preview{width:36px;height:36px;object-fit:cover;border-radius:6px;flex:none}.sheet.is-scrolled .sheet-bar{background:var(--card);border-bottom:1px solid var(--line);box-shadow:0 2px 8px #00008;pointer-events:auto}.sheet.is-scrolled #sheet-context,.sheet.is-scrolled .sheet-preview{visibility:visible;opacity:1}.sheet.is-scrolled .detail-back{background:transparent;box-shadow:none}.sheet-bar #sheet-context{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:1.3;min-width:0;flex:1}.sheet-scroll{scroll-padding-top:68px}.gallery-thumbs{display:flex;position:relative;gap:4px;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x pan-y;padding:5px 6px;background:#252a2c}.gallery-thumbs::-webkit-scrollbar{display:none}.gallery-thumb{width:52px;height:52px;flex:0 0 52px;position:relative;border:0;border-radius:4px;padding:0;background:transparent;cursor:pointer;overflow:hidden}.gallery-thumb img{width:100%;height:100%;object-fit:cover;border-radius:0;display:block;user-select:none;-webkit-user-drag:none}.gallery-thumb[aria-pressed=true]::after{content:"";position:absolute;inset:0;border-radius:4px;box-shadow:inset 0 0 0 2px #e4a76d;pointer-events:none}.gallery-thumb:focus-visible{outline-offset:-2px}.sheet.is-loading .gallery-thumbs,.sheet.is-error .gallery-thumbs{display:none}.sheet.no-gallery .sheet-body,.sheet.is-loading .sheet-body,.sheet.is-error .sheet-body{padding-top:68px}.sheet-head{scroll-margin-top:68px}.sheet-body{padding-top:12px}

/* Controls never get an outer focus stroke, including Safari's automatic focus. */
button:focus,button:focus-visible,a:focus,a:focus-visible,input:focus,input:focus-visible,select:focus,select:focus-visible,textarea:focus,textarea:focus-visible,summary:focus,summary:focus-visible,[tabindex]:focus,[tabindex]:focus-visible,.format:has(input:focus-visible){outline:none!important}
button:focus-visible,a:focus-visible,summary:focus-visible{filter:brightness(.92)}

/* Detail openings never inherit the previous tour's scroll anchor. */
.sheet-scroll{overflow-anchor:none}

/* An explicit clear control works consistently in mobile browsers. */
.search-clear-wrap{position:relative;min-width:0;grid-column:1;grid-row:2}.search-clear-wrap .search{display:block;width:100%;max-width:none;margin:0;padding-right:44px}.search-clear{position:absolute;right:3px;top:50%;transform:translateY(-50%);width:40px;height:40px;padding:0;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}.search-clear[hidden]{display:none}.search-clear svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.search-clear:hover{background:#f3eee4}.search-clear-wrap .search::-webkit-search-cancel-button{display:none}.search-clear-wrap .search::-ms-clear{display:none}@media(max-width:640px){.search-clear-wrap{grid-column:1;grid-row:1}.search-clear-wrap .search{min-height:44px;height:44px;padding:10px 44px 10px 12px;font-size:16px}}

.detail-actions{margin-left:auto;display:flex;gap:2px;flex:none;pointer-events:auto}.detail-action{width:44px;height:44px;display:grid;place-items:center;border:0;padding:9px;background:transparent;color:white;cursor:pointer}.detail-action svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 2px #000b)}#detail-save[aria-pressed=true] svg{fill:var(--accent-dark);stroke:#fff}.sheet.is-scrolled .detail-action{color:var(--ink)}.sheet.is-scrolled .detail-action svg{filter:none}.sheet.is-scrolled #detail-save[aria-pressed=true] svg{stroke:var(--accent-dark)}.sheet.is-loading .detail-action,.sheet.is-error .detail-action{color:var(--ink)}.detail-action:disabled{opacity:.4;cursor:default}.detail-share-modal .prog-modal-card{width:min(420px,calc(100% - 24px));height:auto;max-height:calc(100dvh - 32px)}.detail-share-modal .prog-modal-body{display:flex;flex-direction:column;gap:12px}.detail-share-modal p{margin:0}.share-link-label{display:flex;flex-direction:column;gap:6px;font-size:13px}.share-link-label input{font-size:14px}.detail-share-modal .prog-modal-body>button,.detail-share-links a{min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:#fff6e8;color:var(--accent-dark);font-weight:650;text-align:center;cursor:pointer;text-decoration:none}.detail-share-links{display:flex;gap:8px}.detail-share-links a{flex:1}#detail-share-status{font-size:13px;color:var(--muted)}#detail-action-status{position:absolute;bottom:90px;left:12px;right:12px;z-index:6;border-radius:10px;padding:10px 12px;font-size:13px;background:#27221ef2;color:white;pointer-events:none}

@media(max-width:640px){.top-row{height:56px;min-height:56px;padding:3px 8px;gap:8px;align-items:center}.top-row .logo{width:clamp(140px,46vw,190px);max-width:calc(100% - 146px);height:44px;object-fit:contain;flex-shrink:1}.header-contacts.compact-contacts{display:flex;flex-direction:column;align-items:flex-end;gap:0;width:138px;flex:none}.header-contacts.compact-contacts>.header-phone{display:block;min-height:20px;padding:0;font-size:14px;line-height:20px;color:var(--accent-dark);font-weight:700;white-space:nowrap;text-decoration:none}.header-contacts.compact-contacts>.header-chat-icons{position:static;display:flex;align-items:center;justify-content:flex-end;gap:3px;width:auto;min-width:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}.header-chat-icons>a{display:grid;place-items:center;width:36px;height:30px;min-height:30px;padding:3px;border-radius:6px}.header-chat-icons svg{display:block;width:23px;height:23px}.header-chat-icons>a:focus-visible{outline-offset:0}}

#order.awaiting-variant #summary,#order.awaiting-variant #hint,#order.awaiting-variant #consult-order,#order.awaiting-variant>.send,#order.awaiting-variant #message-preview,#order.awaiting-variant #apl-availability,#order.awaiting-variant #combo-price,#order.awaiting-variant #combo-note{display:none!important}

/* A single quiet surface for mobile branding and discovery. */
.catalog-search-icon{position:absolute;left:13px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:20px;height:20px;color:#827b71;pointer-events:none}.catalog-search-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.search-clear-wrap .search{padding-left:40px}
@media(max-width:640px){.top{background:var(--bg);border-bottom:0}.catalog-intro{margin-bottom:6px}.catalog-intro h1{font-size:22px;line-height:1.25;font-weight:650;letter-spacing:-.3px}.catalog-toolbar{border-bottom:0;background:var(--bg);margin-bottom:4px}.search-clear-wrap .search{padding-left:39px;border:1px solid #ded8cd;border-radius:14px;background:#fffdf9}.compact-filter,.compact-saved{border-color:#ded8cd;border-radius:14px;background:#fffdf9}.compact-filter svg,.compact-saved svg{stroke-width:1.65}.compact-results{margin:1px 0 10px}.compact-results #catalog-count{font-size:12px;color:#81786d;line-height:18px}.header-contacts.compact-contacts>.header-phone{font-weight:600;font-size:13px;color:#755039}.header-chat-icons>a{width:34px}.header-chat-icons svg{width:22px;height:22px}.header-contacts.compact-contacts>.header-chat-icons{gap:4px}}

/* Desktop: one discovery row and wider, readable cards. */
.desktop-control-text,.desktop-sort,.card-photo-arrow{display:none}
@media(min-width:641px){
.top{position:static;background:var(--bg);border:0}.top-row,.wrap{max-width:1240px}.top-row{min-height:64px;padding:8px 20px;justify-content:space-between}.top-row .logo{height:46px;width:220px;max-width:40%}.messengers>a{display:none}.header-contacts.compact-contacts{display:flex;align-items:center;gap:16px}.header-phone{font-size:15px;font-weight:600;color:#755039;text-decoration:none;white-space:nowrap}.header-chat-icons{display:flex;gap:4px}.header-chat-icons a{display:grid;place-items:center;width:40px;height:40px;padding:7px}.header-chat-icons svg{width:25px;height:25px}.wrap{padding-top:12px}.catalog-intro{margin-bottom:14px}.catalog-intro h1{font-size:30px;font-weight:650;letter-spacing:-.5px}.catalog-intro p{display:none}.catalog-toolbar{grid-template-columns:minmax(200px,1fr) auto auto 210px;grid-template-rows:auto;gap:10px;top:0;padding:8px 4px;margin-bottom:6px;border:0;background:var(--bg);align-items:center}.catalog-toolbar .catalog-views,.catalog-toolbar .catalog-controls{display:none}.search-clear-wrap{grid-column:1;grid-row:1}.search-clear-wrap .search{height:48px;min-height:48px;border-radius:14px;background:var(--card);border:1px solid #ded8cd}.compact-filter,.compact-saved{display:flex;align-items:center;justify-content:center;gap:8px;position:relative;min-height:48px;border:1px solid #ded8cd;border-radius:14px;padding:10px 16px;background:var(--card);color:var(--accent-dark);cursor:pointer;font:inherit;font-size:14px;font-weight:650;grid-row:1}.compact-filter{grid-column:2}.compact-saved{grid-column:3}.compact-filter svg,.compact-saved svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.compact-saved[aria-pressed=true]{background:#fff0df}.compact-saved[aria-pressed=true] svg{fill:currentColor}.desktop-control-text{display:inline}.compact-badge{position:absolute;top:-5px;right:-4px;min-width:19px;padding:0 4px;height:19px;line-height:19px;border-radius:99px;background:var(--accent-dark);color:white;font-size:11px;text-align:center}.compact-badge[hidden]{display:none}.desktop-sort{display:block;grid-column:4;grid-row:1}.desktop-sort select{display:block;width:100%;height:48px;padding:10px 12px;border:1px solid #ded8cd;border-radius:14px;background:var(--card);font-size:14px}.compact-results{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:0 4px}.compact-results #catalog-count{font-size:13px;color:var(--muted)}.compact-back{border:0;background:transparent;color:var(--accent-dark);font-weight:650;cursor:pointer;min-height:36px}.compact-back[hidden]{display:none}.catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.card-body{padding:15px 17px;gap:8px}.card-title-row h3{display:block;overflow:visible;-webkit-line-clamp:unset;font-size:18px;line-height:1.35}.card-title-row{min-height:49px}.card .card-short{white-space:normal;display:block;overflow:visible;line-height:1.4}.card .price{font-size:21px}.card-meta{margin-top:auto;flex-wrap:wrap}.catalog-filter-dialog{width:540px;max-width:calc(100% - 40px);max-height:85dvh;margin:auto;border-radius:20px}.catalog-filter-dialog .compact-dialog-body{max-height:calc(85dvh - 160px)}body:has(.catalog-filter-dialog[open]){overflow:hidden}.card-photo-arrow{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;padding:0;border:0;border-radius:50%;background:#fffffff0;color:var(--ink);font-size:28px;line-height:1;cursor:pointer;box-shadow:0 2px 8px #0002;opacity:0;transition:opacity .15s}.photo-prev{left:10px}.photo-next{right:10px}.card-media:hover .card-photo-arrow,.card-media:focus-within .card-photo-arrow{opacity:1}.card-photo-arrow:disabled{opacity:0!important;pointer-events:none}
}
@media(min-width:1050px){.catalog{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1600px){.top-row,.wrap{max-width:1480px}.catalog{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:641px) and (max-width:850px){.catalog-toolbar{grid-template-columns:minmax(150px,1fr) auto auto 170px;gap:6px}.compact-filter,.compact-saved{padding:10px}.desktop-control-text{font-size:12px}.desktop-sort select{font-size:12px}}

/* Keep catalog titles on one line at every screen width. */
.catalog .card-title-row{min-height:0;align-items:center}
.catalog .card-title-row h3{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:unset;line-height:1.35}

.hotel-actions{display:flex;flex-wrap:wrap;align-items:center;gap:0 16px}.hotel-actions .hotel-manual,.hotel-transfer-toggle{border:0;background:none;color:var(--accent-dark);font:inherit;font-size:12px;text-decoration:underline;padding:5px 0;min-height:44px;cursor:pointer}.hotel-field #hotel-status{line-height:1.45}.hotel-actions:has(.hotel-manual[hidden]):has(.hotel-transfer-toggle[hidden]){display:none}

.sheet.is-swipe-dragging{will-change:transform}.sheet.is-swipe-settling{pointer-events:none;will-change:transform}

/* Reserve the detail layout while data and images arrive. */
.sheet.is-loading .gallery-thumbs{display:flex}.sheet.is-loading .sheet-body{padding-top:16px}.sheet.is-loading.no-gallery .sheet-body{padding-top:68px}.sheet.is-loading #gallery,.sheet.is-loading #gallery-thumbs{pointer-events:none}.loading-gallery-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.loading-thumb{display:block;width:52px;height:52px;flex:0 0 52px;border-radius:8px;background:#eee7dc}.sheet.is-loading #p27-load-state{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;margin:0;border:0}.order-skeleton{margin-top:20px;border:1px solid #e9d2bd;border-radius:16px;padding:14px;background:#fffaf4;display:flex;flex-direction:column;gap:12px}.order-skeleton[hidden]{display:none!important}.loading-block{background:#e9e2d7;border-radius:8px;animation:detail-loading-pulse 1.3s ease-in-out infinite alternate}.loading-heading{height:22px;width:65%}.loading-caption{height:36px;width:94%}.loading-option{height:158px;border-radius:14px}.loading-field{height:48px;width:100%}@keyframes detail-loading-pulse{from{opacity:.55}to{opacity:.95}}@media(min-width:900px){.sheet-body #p27-order-skeleton{grid-column:2;grid-row:1 / span 9;margin-top:0}.loading-option{height:142px}}@media(prefers-reduced-motion:reduce){.loading-block{animation:none}}
.sheet.is-loading #sticky-order{display:flex!important;visibility:hidden}
.sheet.is-loading .detail-nav{display:flex!important;min-height:44px;visibility:hidden}

/* One category count, one transfer decision, one submit action. */
.pickup-modes{border:0;padding:0;margin:0;min-width:0;grid-column:1/-1}.pickup-modes legend{font-size:14px;margin-bottom:7px}.pickup-modes>div{display:flex;gap:6px;flex-wrap:wrap}.pickup-modes button{min-height:44px;border:1px solid var(--line);border-radius:12px;padding:9px 12px;background:var(--card);color:var(--ink);font-size:13px;font-weight:600;cursor:pointer}.pickup-modes button[aria-pressed=true]{border-color:var(--accent-dark);background:#fff3e6;color:var(--accent-dark)}#order>.send{display:none}#order>#hint:empty{display:none}#summary>.total{margin:0 0 8px}#summary>p{margin:0 0 5px}#summary>p:last-child{margin:8px 0 0;color:var(--muted);font-size:12px;line-height:1.4}

/* Put a parameter option's fare under its full label. */
.axis .formats>.format{display:grid;grid-template-columns:18px minmax(0,1fr);gap:3px 12px;align-items:start}
.axis .formats>.format>input{grid-column:1;grid-row:1 / span 2}
.axis .formats>.format>span{grid-column:2;grid-row:1}
.axis .formats>.format>.opt-price{grid-column:2;grid-row:2;margin-left:0;max-width:none;text-align:left;font-size:13px;line-height:1.4}
.axis .formats>.format>.opt-price:empty{display:none}

.variant-differences{display:block;margin-top:7px;color:var(--muted);font-size:12px;font-weight:500;line-height:1.4}.variant-differences>[role=listitem]{display:block;position:relative;padding-left:12px;margin-top:4px}.variant-differences>[role=listitem]:before{content:"•";position:absolute;left:0;color:#b08a69}

.detail-nav{gap:6px 18px;flex-wrap:wrap}.detail-nav button{border:0;border-radius:4px;background:transparent;min-height:44px;padding:7px 0;color:var(--accent-dark);font-size:14px;font-weight:600;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}.detail-nav button:hover{color:#6e2a0d;text-decoration-thickness:2px}.detail-nav button.active{color:var(--accent-dark);background:transparent;text-decoration-thickness:2px}.detail-nav button:focus-visible{outline-offset:3px}#sec-about{margin-top:4px}

/* A consistent reading rhythm in the route dialog. */
#prog-modal .prog-modal-head{padding:12px 18px;gap:12px}#prog-modal .prog-modal-body{padding:18px 18px 24px;line-height:1.5}#prog-modal-body .route-overview{margin:0 0 18px}#prog-modal-body .route-overview h4{margin:0 0 10px;font-size:16px;line-height:1.35}#prog-modal-body p{margin:0 0 12px}#prog-modal-body .route-overview>:last-child{margin-bottom:0}#prog-modal-body .tour-notes{margin:16px 0 20px;padding:12px 14px;gap:10px}#prog-modal-body .tour-notes li{line-height:1.45}#prog-modal-body .day{margin:20px 0 8px;font-size:17px;line-height:1.35}#prog-modal-body .day:first-child{margin-top:0}#prog-modal-body .slot{padding:10px 0;column-gap:14px}#prog-modal-body .slot-body p:last-child{margin-bottom:0}#prog-modal-body .xfer-title{margin:22px 0 10px}#prog-modal-body>:first-child{margin-top:0}@media(max-width:640px){#prog-modal .prog-modal-head{padding:10px 14px}#prog-modal .prog-modal-body{padding:16px 14px 22px}#prog-modal-body .slot{padding:10px 0;column-gap:12px}}

#sec-reviews>h3{font-size:16px;text-transform:none;letter-spacing:0;color:var(--ink);margin-bottom:12px}#sec-reviews.is-review-empty{padding:16px;background:#f8f4ed;border-radius:14px}.reviews-empty{display:flex;align-items:flex-start;gap:12px;margin:0;font-weight:400}.reviews-empty-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:10px;background:#efe6d9;color:#9c7959}.reviews-empty-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.reviews-empty b{display:block;font-size:15px;line-height:1.4;font-weight:600}.reviews-empty small{display:block;margin-top:4px;color:var(--muted);font-size:13px;line-height:1.45}#sec-reviews #leave-review{display:inline-flex;align-items:center;justify-content:center;width:auto;min-height:44px;padding:10px 16px;margin-top:12px;font-size:14px;font-weight:650;border-radius:10px;color:var(--accent-dark);border:1px solid #dfc4a9;background:var(--card);cursor:pointer}#sec-reviews.is-review-empty #leave-review{border-color:var(--accent-dark);background:var(--accent-dark);color:white}

.price-editor-entry:empty{display:none}.price-editor-entry{padding:30px 0 8px;text-align:center}.price-editor-entry a{font-size:12px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}.axis-option-copy{margin-top:5px;color:var(--muted);font-size:12px;line-height:1.4}
.axis .formats>.format>span .axis-option-copy{max-width:none;text-align:left}

/* Compact filters with the same field sizing as the catalog toolbar. */
.catalog-filter-dialog[open]{display:flex;flex-direction:column;max-height:85dvh}
.catalog-filter-dialog .compact-dialog-head{padding:12px 16px;gap:10px;flex-shrink:0}
.catalog-filter-dialog .compact-dialog-head h2{font-size:17px;line-height:1.3}
.catalog-filter-dialog .compact-close{flex:0 0 40px;width:40px;height:40px;font-size:25px}
.catalog-filter-dialog .compact-dialog-body{padding:14px 16px;min-height:0;max-height:none;flex:1 1 auto}
.catalog-filter-dialog .compact-dialog-body h3{font-size:13px;line-height:1.4;margin:0 0 8px;color:var(--muted);font-weight:600}
.catalog-filter-dialog .compact-dialog-body h3:not(:first-child){margin-top:16px}
.catalog-filter-dialog .category-filters{gap:6px}
.catalog-filter-dialog .category-filters button{min-height:44px;padding:8px 12px;border-radius:12px;font-size:13px;line-height:1.35;font-weight:600;white-space:normal;text-align:left}
.catalog-filter-dialog .compact-sort-slot #catalog-sort,.catalog-filter-dialog .p27-currency-filters select{appearance:none;-webkit-appearance:none;box-sizing:border-box;display:block;width:100%;height:48px;min-height:48px;padding:10px 40px 10px 12px;border:1px solid #ded8cd;border-radius:12px;background-color:var(--card);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='m5 7 5 5 5-5' fill='none' stroke='%23756a5c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;color:var(--ink);font-size:16px;line-height:24px}
.catalog-filter-dialog .compact-dialog-foot{padding:10px 16px calc(10px + env(safe-area-inset-bottom));gap:8px;flex-shrink:0}
.catalog-filter-dialog .compact-dialog-foot button{min-height:44px;padding:9px 12px;border-radius:12px;font-size:14px;line-height:1.4}

.catalog-filter-dialog .p27-currency-filters{display:block;margin:0}.catalog-filter-dialog .p27-currency-filters .p27-currency-label{display:block;width:100%}

/* Render the compact toolbar before deferred scripts attach its behaviour. */
.catalog-toolbar>#category-filters,.catalog-toolbar>.category-discovery{display:none}
.catalog-heading-mobile{display:none}
@media(max-width:640px){.catalog-heading-desktop{display:none}.catalog-heading-mobile{display:inline}}

/* Keep long route titles within the modal header. */
#prog-modal .prog-modal-head :is(h1,h3){flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}

/* Compact itinerary, with a tariff summary and no row rules. */
#prog-modal .prog-modal-body{padding:14px 18px 20px;font-size:14px;line-height:1.5}
#prog-modal-body .slot{grid-template-columns:96px minmax(0,1fr);gap:4px 12px;padding:6px 0;border:0}
#prog-modal-body .slot>.clock,#prog-modal-body .slot.clock>b{font-size:13px;line-height:1.6;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;color:#755039}
#prog-modal-body .slot-body p{margin:0 0 5px}
#prog-modal-body .day{margin:18px 0 8px;font-size:15px}
#prog-modal-body ul,#prog-modal-body ol{padding-left:19px;margin:8px 0 14px}
#prog-modal-body li{margin:0 0 4px;line-height:1.45}
#prog-modal-body .route-overview{margin-bottom:14px}
#prog-modal-body .route-overview h4,#prog-modal-body .xfer-title{font-size:14px}
#prog-modal-body .route-price{padding:12px 14px;margin:0 0 16px;border-radius:12px;background:#f4ebdf}
#prog-modal-body .route-price h4{font-size:13px;line-height:1.4;margin:0 0 5px;color:#755039}
#prog-modal-body .route-price-value{font-size:17px;line-height:1.4;font-weight:700;margin:0 0 5px}
#prog-modal-body .route-price-note{display:block;font-size:12px;line-height:1.4;color:var(--muted)}
@media(max-width:640px){#prog-modal .prog-modal-body{padding:12px 14px 18px}#prog-modal-body .slot{grid-template-columns:84px minmax(0,1fr);gap:4px 10px}#prog-modal-body .slot>.clock,#prog-modal-body .slot.clock>b{font-size:12px}#prog-modal-body .route-price-value{font-size:16px}}

#prog-modal-body .tour-notes,#prog-modal-body .tour-notes li,#prog-modal-body .tour-notes b,#prog-modal-body .tour-notes strong{font-weight:400}

#prog-modal-body .route-price-ages{margin:0 0 6px;font-size:13px;line-height:1.45;color:var(--muted)}

#prog-modal-body .route-price-variant{margin:0 0 10px;font-size:14px;line-height:1.4;font-weight:600;color:var(--ink)}
#prog-modal-body .route-price-value{display:grid;gap:8px;margin:0 0 12px;padding:0;font-size:14px;font-weight:400}
#prog-modal-body .route-price-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}
#prog-modal-body .route-price-row dt{margin:0;font-size:14px;line-height:1.4}
#prog-modal-body .route-price-row dt small{display:block;font-size:12px;color:var(--muted);margin-top:1px}
#prog-modal-body .route-price-row dd{margin:0;font-size:16px;line-height:1.4;font-weight:700;text-align:right}

/* Compact tariff summary: one header, three rows, ages beside categories. */
#prog-modal-body .route-price{padding:10px 12px;margin-bottom:12px;max-width:480px;box-sizing:border-box}
#prog-modal-body .route-price-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin-bottom:7px}
#prog-modal-body .route-price-heading h4,#prog-modal-body .route-price-heading p{margin:0;line-height:1.35}
#prog-modal-body .route-price-value{gap:4px;margin:0;font-size:13px}
#prog-modal-body .route-price-row{gap:12px}
#prog-modal-body .route-price-row dt{font-size:13px;line-height:1.4}
#prog-modal-body .route-price-row dt small{display:inline;margin:0;font-size:12px;line-height:inherit}
#prog-modal-body .route-price-row dd{font-size:15px;line-height:1.4}

#prog-modal-body .route-price{max-width:none;width:100%}
#prog-modal-body .slot>b:first-child{font-size:13px;line-height:1.6;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;color:#755039}
@media(min-width:641px){#prog-modal-body .route-price-value{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 20px}#prog-modal-body .route-price-row{display:flex;flex-direction:column;align-items:flex-start;gap:2px}#prog-modal-body .route-price-row dd{text-align:left;font-size:16px}}
@media(max-width:640px){#prog-modal-body .slot>b:first-child{font-size:12px}}

/* Plain numbered warnings with only key phrases emphasised. */
#prog-modal-body .tour-notes{background:none;border:0;border-radius:0;padding:0;margin:14px 0 18px;gap:8px;list-style:none;counter-reset:route-warning}
#prog-modal-body .tour-notes li{display:flex;align-items:flex-start;gap:9px;margin:0;counter-increment:route-warning;font-weight:400}
#prog-modal-body .tour-notes li::before{content:counter(route-warning) ".";flex:0 0 20px;color:#755039;font-size:13px;line-height:1.55;font-variant-numeric:tabular-nums}
#prog-modal-body .route-warning-text{min-width:0;flex:1}
#prog-modal-body .tour-notes .route-warning-key{font-weight:700;text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px}

/* Standard 11-island route: one scoped layout to review before rolling out. */
#prog-modal-body.route-layout-preview .slot{grid-template-columns:80px minmax(0,1fr);gap:2px 12px;padding:3px 0}
#prog-modal-body.route-layout-preview .slot-body>p:first-child{margin:0;font-size:14px;line-height:1.4;color:var(--ink)}
#prog-modal-body.route-layout-preview .slot-body>p:first-child strong{font-weight:650}
#prog-modal-body.route-layout-preview .slot-body>p:not(:first-child){margin:1px 0 0;font-size:13px;line-height:1.4;color:var(--muted)}
#prog-modal-body.route-layout-preview .p27-edit-copy[data-p27-text-label="Что включено"]>ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 20px;list-style:none;padding:0;margin:7px 0 12px}
#prog-modal-body.route-layout-preview .p27-edit-copy[data-p27-text-label="Что включено"]>ul>li{position:relative;padding-left:19px;margin:0;font-size:13px;line-height:1.4}
#prog-modal-body.route-layout-preview .xfer-title{margin:18px 0 7px;font-size:15px}
#prog-modal-body.route-layout-preview .xfer-lead{margin:0 0 7px;font-size:13px;line-height:1.45;color:var(--muted)}
#prog-modal-body.route-layout-preview .xfer-more summary{font-size:13px;font-weight:600}
@media(max-width:640px){#prog-modal-body.route-layout-preview .slot{grid-template-columns:76px minmax(0,1fr);gap:4px 10px}#prog-modal-body.route-layout-preview .p27-edit-copy[data-p27-text-label="Что включено"]>ul{grid-template-columns:1fr;gap:5px}}

#prog-modal-body.route-layout-preview .p27-edit-copy[data-p27-text-label="Что включено"]>ul>li::before{content:"✓";position:absolute;left:0;top:0;color:#417749;font-weight:600}
#prog-modal-body.route-layout-preview .xfer-summary{list-style:none;padding:0;margin:0 0 7px;display:grid;gap:5px;font-size:13px;line-height:1.4}
#prog-modal-body.route-layout-preview .xfer-summary li{display:grid;grid-template-columns:minmax(0,190px) minmax(0,1fr);gap:4px 12px;margin:0}
#prog-modal-body.route-layout-preview .xfer-summary strong{font-weight:600}
#prog-modal-body.route-layout-preview .xfer-summary span{color:var(--muted)}
@media(max-width:640px){#prog-modal-body.route-layout-preview .xfer-summary li{grid-template-columns:1fr;gap:0}#prog-modal-body.route-layout-preview .xfer-summary{gap:6px}}

/* Reversible route page trial: 11 islands / Standard only. */
#prog-modal.route-page{padding:0;background:var(--paper,#fffdf9);display:block;inset:0}
#prog-modal.route-page[hidden]{display:none}
#prog-modal.route-page .prog-modal-card{width:100%;height:100dvh;max-height:none;max-width:none;margin:0;border:0;border-radius:0;box-shadow:none;display:flex;flex-direction:column;background:var(--paper,#fffdf9)}
#prog-modal.route-page .prog-modal-head{flex:none;display:flex;flex-direction:row-reverse;justify-content:flex-end;padding:12px max(20px,calc((100vw - 820px)/2));gap:14px;background:var(--paper,#fffdf9);border-bottom:1px solid var(--line)}
#prog-modal.route-page .prog-modal-head :is(h1,h3){white-space:normal;font-size:20px;line-height:1.3;overflow:visible;text-overflow:clip;margin:0}
#prog-modal.route-page #prog-modal-close{flex:none;width:44px;height:44px;background:transparent;border-radius:8px;font-size:25px}
#prog-modal.route-page .prog-modal-body{flex:1;min-height:0;overflow-y:auto;padding:20px max(20px,calc((100vw - 820px)/2)) 24px;scrollbar-gutter:stable}
#prog-modal.route-page .route-page-footer{flex:none;border-top:1px solid var(--line);background:var(--paper,#fffdf9);padding:10px 20px calc(10px + env(safe-area-inset-bottom))}
#prog-modal.route-page .route-page-footer-inner{max-width:820px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px;font-weight:600}
#prog-modal.route-page .route-page-footer button{border:0;border-radius:12px;background:var(--accent-dark);color:white;min-height:44px;padding:12px 20px;font:inherit;font-weight:650;cursor:pointer}
@media(max-width:640px){#prog-modal.route-page .prog-modal-head{padding:8px 12px;gap:8px}#prog-modal.route-page .prog-modal-head :is(h1,h3){font-size:16px}#prog-modal.route-page .prog-modal-body{padding:12px 16px 20px}#prog-modal.route-page .route-page-footer{padding-left:16px;padding-right:16px}#prog-modal.route-page .route-page-footer-inner{gap:8px;font-size:13px}#prog-modal.route-page .route-page-footer button{padding:11px 14px}}

/* Desktop excursion page: full canvas with a centred reading/booking area. */
@media(min-width:900px){
 #sheet{width:100%;max-width:none;border-radius:0;box-shadow:none;transition:none}
 #backdrop.open{display:none}
 #sheet .sheet-body{width:100%;max-width:1168px;box-sizing:border-box;margin:0 auto;padding:20px 24px 28px;grid-template-columns:minmax(0,1fr) minmax(380px,460px);gap:0 36px}
 #sheet .gallery,#sheet .gallery-thumbs{max-width:1120px;width:100%;margin-left:auto;margin-right:auto;box-sizing:border-box}
 #sheet .gallery-track{aspect-ratio:auto;height:360px;max-height:45svh}
 #sheet .sheet-bar{padding-left:max(24px,calc((100vw - 1120px)/2 + 10px));padding-right:max(24px,calc((100vw - 1120px)/2 + 10px))}
 #sheet .sticky-order{padding-left:max(24px,calc((100vw - 1120px)/2));padding-right:max(24px,calc((100vw - 1120px)/2));box-shadow:none}
}

/* Excursion pages occupy the full viewport at every breakpoint. */
#sheet{width:100%;max-width:none;border-radius:0;box-shadow:none;transition:none}
#backdrop.open{display:none}

/* Shared page width and softly contrasting outer gutters. */
:root{--p27-page-width:1120px;--p27-page-gutter:#eee9e2}
@media(min-width:900px){
 #sheet .sheet-body{max-width:var(--p27-page-width);background:#fffdf9}
 #sheet .gallery,#sheet .gallery-thumbs{max-width:var(--p27-page-width)}
 #sheet .sheet-bar{padding-left:max(24px,calc((100vw - var(--p27-page-width))/2 + 12px));padding-right:max(24px,calc((100vw - var(--p27-page-width))/2 + 12px))}
 #sheet .sticky-order{padding-left:max(24px,calc((100vw - var(--p27-page-width))/2 + 24px));padding-right:max(24px,calc((100vw - var(--p27-page-width))/2 + 24px))}
 #prog-modal.route-page .prog-modal-card{max-width:var(--p27-page-width);margin:0 auto}
 #prog-modal.route-page .prog-modal-head{padding:12px 24px}
 #prog-modal.route-page .prog-modal-body{padding:20px 24px 24px}
 #prog-modal.route-page .route-page-footer{padding-left:24px;padding-right:24px}
 #prog-modal.route-page .route-page-footer-inner{max-width:none}
}
@media(min-width:1121px){
 #sheet,#sheet.is-scrolled .sheet-bar,#sheet .sticky-order{background:linear-gradient(to right,var(--p27-page-gutter) 0,var(--p27-page-gutter) calc((100% - var(--p27-page-width))/2),#fffdf9 calc((100% - var(--p27-page-width))/2),#fffdf9 calc((100% + var(--p27-page-width))/2),var(--p27-page-gutter) calc((100% + var(--p27-page-width))/2),var(--p27-page-gutter) 100%)}
 #prog-modal.route-page{background:var(--p27-page-gutter)}
}

/* Mobile timeline: time beside the heading, details across the full row. */
@media(max-width:640px){
 #prog-modal-body.route-layout-preview .slot.clock{grid-template-columns:auto minmax(0,1fr);gap:2px 8px;padding:5px 0;align-items:baseline}
 #prog-modal-body.route-layout-preview .slot.clock>.slot-body{display:contents}
 #prog-modal-body.route-layout-preview .slot.clock>.slot-body>:first-child{grid-column:2;min-width:0}
 #prog-modal-body.route-layout-preview .slot.clock>.slot-body>:not(:first-child){grid-column:1 / -1;margin-top:0}
}

#prog-modal-body .route-transport-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:720px;margin:8px 0 14px}
#prog-modal-body .route-transport-photos figure{margin:0;min-width:0}
#prog-modal-body .route-transport-photos img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;background:#fff;border-radius:10px}
#prog-modal-body .route-transport-photos figcaption{margin-top:5px;font-size:13px;color:var(--muted)}
@media(max-width:640px){#prog-modal-body .route-transport-photos{gap:10px}#prog-modal-body .route-transport-photos figcaption{font-size:12px}}

/* Plain prices followed by general and variant introductions. */
#prog-modal-body .route-price{background:none;border:0;border-radius:0;padding:0;margin:0 0 18px}
#prog-modal-body .route-price-row dt{color:var(--muted)}
#prog-modal-body .route-overview{margin:0 0 16px;font-size:14px;line-height:1.5}
#prog-modal-body .route-overview h4{margin:0 0 6px;font-size:15px}
#prog-modal-body .route-variant-facts{padding-left:18px;margin:0;display:grid;gap:3px}
#prog-modal-body .route-variant-facts li{margin:0}

#prog-modal-body .route-cover{display:block;width:100%;max-width:720px;height:auto;border-radius:10px;margin:0 0 18px}

#prog-modal-body .route-cover-frame{position:relative;max-width:720px;margin:0 0 18px}
#prog-modal-body .route-cover-frame .route-cover{margin:0}
#prog-modal-body .route-cover-frame .route-price{position:absolute;left:12px;right:12px;bottom:12px;width:auto;margin:0;padding:2px 16px;background-color:rgba(255,255,255,.50);background-image:radial-gradient(ellipse 24% 150% at 14% 50%,rgba(255,255,255,.78) 0%,rgba(255,255,255,.45) 45%,rgba(255,255,255,0) 100%),radial-gradient(ellipse 24% 150% at 50% 50%,rgba(255,255,255,.78) 0%,rgba(255,255,255,.45) 45%,rgba(255,255,255,0) 100%),radial-gradient(ellipse 24% 150% at 86% 50%,rgba(255,255,255,.78) 0%,rgba(255,255,255,.45) 45%,rgba(255,255,255,0) 100%);border-radius:16px;color:#07192d}
#prog-modal-body .route-cover-frame .route-price-value{grid-template-columns:repeat(3,max-content);justify-content:space-between;gap:8px}
#prog-modal-body .route-cover-frame .route-price-row{display:grid;grid-template-columns:34px minmax(0,1fr);gap:2px 10px;align-items:center;padding:6px 0;background:transparent;border-radius:12px}
#prog-modal-body .route-cover-frame .route-price-icon{grid-row:1 / 3;display:flex;align-items:center}
#prog-modal-body .route-cover-frame .route-price-icon svg{display:block;width:34px;height:38px}
#prog-modal-body .route-cover-frame .route-price-row dt{font-size:12px;color:inherit;line-height:1.25}
#prog-modal-body .route-cover-frame .route-price-row dt small{font-size:inherit;color:inherit}
#prog-modal-body .route-cover-frame .route-price-row dd{grid-column:2;font-size:21px;text-align:left;line-height:1.2;white-space:nowrap}
@media(max-width:640px){
 #prog-modal-body .route-cover-frame .route-price{left:7px;right:7px;bottom:7px;padding:1px 10px;border-radius:12px}
 #prog-modal-body .route-cover-frame .route-price-value{gap:6px}
 #prog-modal-body .route-cover-frame .route-price-row{grid-template-columns:18px minmax(0,1fr);gap:1px 4px;padding:4px 0;border-radius:10px}
 #prog-modal-body .route-cover-frame .route-price-icon svg{width:18px;height:24px}
 #prog-modal-body .route-cover-frame .route-price-row dt{font-size:8px}
 #prog-modal-body .route-cover-frame .route-price-row dd{font-size:12px}
}

/* Keep the mobile catalog header close to search, with full-sized controls. */
@media(max-width:640px){
 .wrap{padding-top:4px}
 .catalog-intro{margin-bottom:4px}
 .catalog-intro h1{margin-bottom:0}
 .catalog-toolbar{padding-top:4px;padding-bottom:4px}
 .compact-results{margin-bottom:8px}
}

#prog-modal .route-share-button{display:grid;place-items:center;width:44px;height:44px;min-height:44px;flex:none;padding:9px;border:0;border-radius:8px;background:transparent;color:var(--ink);cursor:pointer}
#prog-modal .route-share-button svg{display:block;width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#prog-modal.route-page .prog-modal-head :is(h1,h3){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}

#prog-modal.route-page #prog-modal-close{display:grid;place-items:center;padding:0}
#prog-modal.route-page #prog-modal-close svg{width:24px;height:24px;fill:none;stroke:var(--ink);stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
#prog-modal.is-swipe-dragging{will-change:transform}
#prog-modal.is-swipe-settling{pointer-events:none;will-change:transform}

@media(max-width:360px){#prog-modal-body .route-cover-frame .route-price-value{gap:3px}}

#prog-modal-body .route-variant-menu{position:absolute;right:10px;top:10px;z-index:3}
#prog-modal-body .route-variant-menu>summary{display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:7px;list-style:none;border:0;border-radius:50%;background:rgba(255,253,249,.95);color:var(--ink);box-shadow:0 1px 7px #0002;cursor:pointer}
#prog-modal-body .route-variant-menu>summary::-webkit-details-marker{display:none}
#prog-modal-body .route-variant-menu>summary svg{width:18px;height:18px;fill:currentColor}
#prog-modal-body .route-variant-options{position:absolute;right:0;top:calc(100% + 4px);width:max-content;max-width:min(280px,calc(100vw - 64px));max-height:min(360px,50dvh);overflow-y:auto;overscroll-behavior:contain;padding:5px;border:1px solid var(--line);border-radius:11px;background:#fffdf9;box-shadow:0 8px 28px #0003}
#prog-modal-body .route-variant-options button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:34px;margin:0;position:relative;padding:7px 26px 7px 8px;border:0;border-radius:7px;background:transparent;color:var(--ink);font:inherit;font-size:13px;line-height:1.35;text-align:left;cursor:pointer}
#prog-modal-body .route-variant-options button:hover,#prog-modal-body .route-variant-options button[aria-current=page]{background:#f7eadc;color:var(--accent-dark)}
#prog-modal-body .route-variant-current{position:absolute;right:8px;font-weight:700}

#prog-modal-body .route-variant-options button>span:first-child{min-width:0}

#prog-modal-body .route-variant-menu>summary{position:relative}
#prog-modal-body .route-variant-menu>summary::before{content:"";position:absolute;inset:-12px;border-radius:50%;cursor:pointer}

#prog-modal-body .route-cover-words{position:absolute;top:28px;left:28px;right:64px;color:white;text-shadow:0 2px 10px #001b32aa;pointer-events:none}
#prog-modal-body .route-cover-tour-name{font-size:34px;line-height:1.15;font-weight:800;overflow-wrap:anywhere}
#prog-modal-body .route-cover-variant-name{margin-top:10px;color:#ffe48b;font-size:24px;line-height:1.25;font-weight:650;overflow-wrap:anywhere}
#prog-modal-body .route-cover-words.is-long .route-cover-tour-name{font-size:28px}
#prog-modal-body .route-cover-words.is-long .route-cover-variant-name{font-size:20px}
#prog-modal-body .route-cover-words.is-very-long .route-cover-tour-name{font-size:22px}
#prog-modal-body .route-cover-words.is-very-long .route-cover-variant-name{font-size:17px}
#prog-modal-body :is(.route-cover-generic,.route-cover-service) .route-price-value{grid-template-columns:repeat(3,minmax(0,1fr))}
#prog-modal-body :is(.route-cover-generic,.route-cover-service) .route-price-row dd{white-space:normal;overflow-wrap:anywhere}
#prog-modal-body :is(.route-cover-generic,.route-cover-service) .route-price-row[data-price-category="Стоимость"]{grid-column:1 / -1;grid-template-columns:1fr}
#prog-modal-body :is(.route-cover-generic,.route-cover-service) .route-price-row[data-price-category="Стоимость"] .route-price-icon{display:none}
#prog-modal-body :is(.route-cover-generic,.route-cover-service) .route-price-row[data-price-category="Стоимость"] dd{grid-column:1}
#prog-modal-body :is(.route-cover-generic,.route-cover-service) .route-price-row[data-price-category="Доплата за машину"]{grid-column:1 / -1;grid-row:2}
@media(max-width:640px){
 #prog-modal-body .route-cover-words{top:18px;left:16px;right:52px}
 #prog-modal-body .route-cover-tour-name{font-size:22px}
 #prog-modal-body .route-cover-variant-name{margin-top:8px;font-size:16px}
 #prog-modal-body .route-cover-words.is-long .route-cover-tour-name{font-size:16px}
 #prog-modal-body .route-cover-words.is-long .route-cover-variant-name{font-size:13px}
 #prog-modal-body .route-cover-words.is-very-long .route-cover-tour-name{font-size:13px}
 #prog-modal-body .route-cover-words.is-very-long .route-cover-variant-name{font-size:11px}
}

#prog-modal-body .route-variant-options button:disabled{background:transparent;color:var(--muted);opacity:.55;cursor:default}

/* Keep each room category and its conditions visually together. */
.route-subvariant-price-list>div+div{margin-top:18px}
.route-subvariant-price-list>div>p{margin:0 0 8px}
.route-subvariant-price-list>div>p strong{display:inline-block;margin-bottom:3px}

#prog-modal-body .route-variant-options button>span:first-child{display:flex;align-items:baseline;gap:8px;white-space:nowrap}
#prog-modal-body .route-variant-menu-name{min-width:0;overflow:hidden;text-overflow:ellipsis}
#prog-modal-body .route-variant-menu-price{flex:none;font-size:12px;line-height:1.3;color:var(--muted);font-weight:400}

/* Narrative stages use a full-width heading; only clock rows have a time column. */
#prog-modal-body .slot:not(.clock),
#prog-modal-body.route-layout-preview .slot:not(.clock){grid-template-columns:minmax(0,1fr);gap:4px;padding:10px 0;align-items:start}
#prog-modal-body .slot:not(.clock)>b:first-child{display:block;min-width:0;font-size:inherit;line-height:1.4;font-weight:700;font-variant-numeric:normal;white-space:normal;overflow-wrap:anywhere;color:var(--ink)}
#prog-modal-body .slot:not(.clock)>.slot-body{min-width:0}
#prog-modal-body .slot.clock,
#prog-modal-body.route-layout-preview .slot.clock{grid-template-columns:max-content minmax(0,1fr)}

/* Desktop excursion navigation, centered in the outer page gutters. */
.p27-tour-nav{display:none}
@media(min-width:1240px) and (hover:hover) and (pointer:fine){
 .p27-tour-nav:not([hidden]){display:block}
 .p27-tour-neighbor{position:fixed;top:50%;transform:translateY(-50%);width:48px;height:64px;padding:0;display:grid;place-items:center;z-index:25;border:1px solid #b6a69322;border-radius:24px;background:#ffffff24;color:#86776670;cursor:pointer;transition:background .18s,color .18s,box-shadow .18s,border-color .18s}
 .p27-tour-neighbor.previous{left:calc((100vw - var(--p27-page-width))/4 - 24px)}
 .p27-tour-neighbor.next{right:calc((100vw - var(--p27-page-width))/4 - 24px)}
 .p27-tour-neighbor svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 .p27-tour-neighbor:hover:not(:disabled),.p27-tour-neighbor:focus-visible{color:var(--accent-dark);background:#fffdf9e8;border-color:#ccb9a688;box-shadow:0 4px 18px #77604716}
 .p27-tour-neighbor:disabled{opacity:.25;cursor:default}
}
@media(prefers-reduced-motion:reduce){.p27-tour-neighbor{transition:none}}

/* Transport examples shared by every route and standalone service. */
.route-transport .route-transport-photos, #prog-modal-body .route-transport-photos { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:720px;margin:10px 0; }
.route-transport .route-transport-photos figure { margin:0;min-width:0; }
.route-transport .route-transport-photos img, #prog-modal-body .route-transport-photos img { display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;object-position:center;background:#f5f1ea;border-radius:10px; }
.route-transport .route-transport-photos figcaption { margin-top:6px;font-size:13px;color:var(--muted); }
.route-transport .route-transport-note { margin:8px 0 18px;font-size:13px;line-height:1.5;color:var(--muted);max-width:720px; }
#route-transport-fallback { margin-top:20px; }
@media(max-width:480px){.route-transport .route-transport-photos,#prog-modal-body .route-transport-photos{grid-template-columns:minmax(0,1fr);gap:14px}.route-transport .route-transport-photos img,#prog-modal-body .route-transport-photos img{max-height:240px}}

/* Shared presentation for inclusions, CRM checklist and additional conditions. */
#prog-modal-body .route-facts{margin:18px 0}
#prog-modal-body .route-facts>.xfer-title{margin:0 0 9px;font-size:15px}
#prog-modal-body .route-facts .route-facts-list,#prog-modal-body.route-layout-preview .route-facts .p27-edit-copy>ul{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;margin:0;padding:0;list-style:none}
#prog-modal-body .route-facts .route-facts-list>li,#prog-modal-body.route-layout-preview .route-facts .p27-edit-copy>ul>li{position:relative;margin:0;padding-left:21px;font-size:14px;line-height:1.5}
#prog-modal-body .route-facts .route-facts-list>li::before{content:"•";position:absolute;left:3px;top:0;color:var(--muted)}
#prog-modal-body .route-included .route-facts-list>li::before,#prog-modal-body .route-take .route-facts-list>li::before{content:"✓";left:0;color:#417749;font-weight:600}
#prog-modal-body .route-facts h4:not(.xfer-title){font-size:14px;margin:14px 0 7px}

#route-transport-fallback .route-facts{margin:18px 0;font-size:14px;line-height:1.5}
#route-transport-fallback .route-facts .xfer-title{margin:0 0 9px;font-size:15px}
#route-transport-fallback .route-facts-list{display:grid;gap:7px;list-style:none;padding:0;margin:0}
#route-transport-fallback .route-facts-list>li{position:relative;padding-left:21px}
#route-transport-fallback .route-facts-list>li::before{content:"•";position:absolute;left:0;color:var(--muted)}
#route-transport-fallback :is(.route-included,.route-take) .route-facts-list>li::before{content:"✓";color:#417749}

/* Time above each stage lets descriptions use the full reading width. */
#prog-modal-body .slot.clock,
#prog-modal-body.route-layout-preview .slot.clock{grid-template-columns:minmax(0,1fr);gap:5px;padding:12px 0;align-items:start}
#prog-modal-body .slot.clock>.slot-body,
#prog-modal-body.route-layout-preview .slot.clock>.slot-body{display:block;grid-column:1;min-width:0}
#prog-modal-body .slot.clock>.slot-body>:first-child,
#prog-modal-body.route-layout-preview .slot.clock>.slot-body>:first-child{grid-column:auto}
#prog-modal-body .slot.clock>b:first-child{justify-self:start;display:inline-block;padding:2px 8px;border-radius:6px;background:#f2e8dc;color:#755039;font-size:12px;line-height:1.5;white-space:normal}
#prog-modal-body .slot.clock+.slot.clock{border-top:1px solid #e7ded266}

/* Transport photos fill the desktop reading area, up to three per row. */
@media(min-width:900px){
 .route-transport .route-transport-photos,#prog-modal-body .route-transport-photos{width:100%;max-width:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
 .route-transport .route-transport-photos:not(:has(figure:nth-child(3))),#prog-modal-body .route-transport-photos:not(:has(figure:nth-child(3))){grid-template-columns:repeat(2,minmax(0,1fr))}
 .route-transport .route-transport-photos:has(figure:only-child),#prog-modal-body .route-transport-photos:has(figure:only-child){grid-template-columns:minmax(0,1fr)}
 .route-transport .route-transport-note{max-width:none}
}

/* Desktop route banners are centered inside a full-width dark surround. */
@media(min-width:900px){
 #prog-modal-body .route-cover-stage{width:100%;margin:0 0 20px;background:linear-gradient(135deg,#e8eeea 0%,#c4dadb 35%,#d7e6e3 68%,#f0eae0 100%);border-radius:12px}
 #prog-modal-body .route-cover-stage .route-cover-frame{width:100%;max-width:720px;margin:0 auto}
 #prog-modal-body .route-cover-stage .route-cover{border-radius:0}
}

.diving-roles{display:grid;gap:12px;width:100%}.diving-roles .pax-category-hint{font-size:12px;color:var(--muted)}

/* Diving direction cards follow the shared option-card structure. */
.diving-directions{min-width:0;margin:0;padding:0;border:0}
.diving-directions .format-choice{padding:16px;gap:12px}
.diving-direction-card .format-choice>span>b{font-size:16px;line-height:1.35}
.diving-direction-card .diving-card-range{margin-top:5px;font-size:13px;line-height:1.4}
.diving-card-prices{display:grid;gap:7px;list-style:none;margin:12px 0 0;padding:0;font-size:13px;line-height:1.4;color:var(--ink)}
.diving-card-prices>li{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:start;gap:12px;margin:0}
.diving-card-prices>li>span:last-child{white-space:nowrap;font-weight:600}
.diving-card-included{display:grid;gap:5px;list-style:none;padding:12px 0 0;margin:12px 0 0;border-top:1px solid var(--line);font-size:13px;line-height:1.45;color:var(--muted)}
.diving-card-included>li{position:relative;margin:0;padding-left:15px}
.diving-card-included>li::before{content:"•";position:absolute;left:0;color:var(--accent-dark)}
.diving-order-note{font-size:13px;line-height:1.5;color:var(--muted);margin:8px 0 16px}
@media(max-width:480px){.diving-directions .format-choice{padding:12px;gap:9px}.diving-card-prices>li{gap:8px}}

/* Price amounts stay inline: stronger contrast without extra panels or padding. */
#order .p27-price-line{line-height:1.4;color:var(--muted);font-weight:500}
#order .p27-price-line .p27-price-value{font-size:16px;font-weight:800;color:var(--accent-dark);font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:480px){#order .p27-price-line .p27-price-value{font-size:15px}}

/* Compact branching facts, preserving the existing text inset and row spacing. */
.variant-differences{--branch-gap:4px}
.diving-card-included{--branch-gap:5px}
.variant-differences>[role=listitem]::before,.diving-card-included>li::before{content:"";position:absolute;left:2px;top:calc(-1 * var(--branch-gap));bottom:0;width:1px;background:#dfd0c1;border-radius:1px}
.variant-differences>[role=listitem]::after,.diving-card-included>li::after{content:"";position:absolute;left:2px;top:.7em;width:6px;height:1px;background:#bfa286;border-radius:1px}
.variant-differences>[role=listitem]:first-child::before,.diving-card-included>li:first-child::before{top:.7em}
.variant-differences>[role=listitem]:last-child::before,.diving-card-included>li:last-child::before{bottom:auto;height:calc(.7em + var(--branch-gap))}
.variant-differences>[role=listitem]:only-child::before,.diving-card-included>li:only-child::before{height:0}

.booking-mode{display:flex;gap:3px;width:fit-content;max-width:100%;padding:3px;border:1px solid var(--line);border-radius:10px;margin:0 0 12px;background:#f3eee6}.booking-mode[hidden]{display:none}.booking-mode button{font:inherit;font-size:13px;font-weight:600;border:0;border-radius:7px;background:transparent;padding:7px 12px;color:var(--muted);cursor:pointer}.booking-mode button[aria-pressed=true]{background:var(--accent-dark);color:#fff}.booking-mode button:focus-visible{outline:3px solid var(--focus);outline-offset:2px}

/* Compact hotel previews stay with the selected accommodation tariff. */
.accommodation-preview{display:flex;align-items:center;gap:12px;width:100%;padding:10px 14px;border:0;border-top:1px solid var(--line);background:transparent;color:var(--accent-dark);font:inherit;font-size:14px;font-weight:600;text-align:left;cursor:pointer}
.accommodation-preview-images{display:flex;gap:5px;flex:none}.accommodation-preview-images img{display:block;width:58px;height:42px;object-fit:cover;border-radius:7px}
.route-accommodation{margin:20px 0}.route-accommodation h4{margin-bottom:6px}.route-accommodation>p{margin:0 0 12px;color:var(--muted)}
.accommodation-thumbnails{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.accommodation-thumbnails button{border:0;background:none;padding:0;cursor:zoom-in;overflow:hidden;border-radius:12px}.accommodation-thumbnails img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover}
.accommodation-all{margin-top:10px;padding:8px 0;background:none;border:0;color:var(--accent-dark);font:inherit;font-weight:600;cursor:pointer}
@media(max-width:520px){.accommodation-thumbnails{gap:6px}.accommodation-thumbnails button{border-radius:8px}}

.transfer-price-link{margin:14px 0 0}.transfer-price-link a{color:var(--accent-dark);font-weight:650;text-underline-offset:3px}

/* Show calendars do not depend on the selected ticket package. */
#order.awaiting-variant #apl-availability[data-schedule="true"]:not([hidden]){display:block!important}

.p27-schedule-sync{display:inline-block;font-size:.85em;line-height:1;vertical-align:baseline;white-space:nowrap;cursor:help}
