/* Styles of our own widgets (search, callback modal, cookie banner, to-top) and JS-free replacements. */
/* <picture> around the pictures (WebP) must not become a flex/grid item of its own: the theme lays out the <img>. */
picture { display: contents; }
:root {
  --site-accent: #2787f5;
  --site-action: #fb2056;
  --site-dark: #1c1c1c;
}

/* Sidebar with the price and the order button stays in view (was a jQuery "sticky" plugin). */
@media (min-width: 768px) {
  #sidebarstickycss { position: sticky; top: 20px; align-self: flex-start; }
}

/* Catalog search */
.site-search { position: relative; width: 100%; }
.site-search__input {
  width: 100%; box-sizing: border-box; padding: 12px 18px; border: 1px solid #d5dbe3; border-radius: 30px;
  font: inherit; font-size: 16px; color: #222; background: #fff; outline: none;
}
.site-search__input:focus { border-color: var(--site-accent); box-shadow: 0 0 0 3px rgba(39, 135, 245, .15); }
.site-search__results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px 0; list-style: none; background: #fff; border: 1px solid #d5dbe3; border-radius: 10px; box-shadow: 0 12px 30px rgba(20, 40, 70, .14); max-height: 420px; overflow-y: auto; text-align: left; }
.site-search__item { margin: 0; padding: 0; }
.site-search__link { display: flex; align-items: center; gap: 12px; padding: 8px 14px; color: #1c1c1c; text-decoration: none; font-family: 'Ubuntu Condensed', sans-serif; }
.site-search__link:hover, .site-search__link:focus { background: #eaf1f8; outline: none; }
.site-search__thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; flex: 0 0 56px; }
.site-search__text { display: flex; flex-direction: column; min-width: 0; }
.site-search__name { font-size: 18px; line-height: 1.2; text-transform: uppercase; }
.site-search__price { font-size: 15px; color: #6078a6; }
.site-search__empty { margin: 0; padding: 10px 14px; font-size: 15px; color: #666; }

/* Callback modal */
.callback-modal[hidden], .cookie-banner[hidden], .to-top[hidden] { display: none !important; }
.callback-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.callback-modal__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.callback-modal__box {
  position: relative; width: 100%; max-width: 400px; box-sizing: border-box; padding: 32px 28px 28px;
  background: #fff; border-radius: 8px; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); text-align: center;
}
.callback-modal__title { margin-bottom: 18px; font-family: 'Ubuntu Condensed', 'Bebas Neue', sans-serif; font-size: 26px; line-height: 1.2; color: #222; }
.callback-modal__form { display: flex; flex-direction: column; gap: 12px; }
.callback-modal__label { font-size: 15px; color: #444; text-align: left; }
.callback-modal__input { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #ccd3dc; border-radius: 4px; font: inherit; font-size: 17px; }
.callback-modal__submit {
  padding: 16px 20px; border: 0; border-radius: 30px; background: var(--site-action); color: #fff;
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer;
}
.callback-modal__close {
  position: absolute; top: 6px; right: 8px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #555; font-size: 28px; line-height: 1; cursor: pointer;
}
.callback-modal__close:hover, .callback-modal__close:focus { background: #f0f2f5; color: #000; }
html.callback-modal-open { overflow: hidden; }
a.elementor-button:not([href]) { cursor: pointer; }
[data-ha-element-link] { cursor: pointer; }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99998; background: var(--site-dark); color: #fff;
  box-shadow: 0 -4px 32px rgba(0, 0, 0, .35); font-family: Arial, sans-serif; font-size: 14px; line-height: 1.5;
}
.cookie-banner__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1100px; margin: 0 auto; padding: 10px 20px;
}
.cookie-banner__text { flex: 1; min-width: 220px; margin: 0; font-size: 13px; opacity: .85; }
.cookie-banner__text a { color: #4d9fff; text-decoration: underline; }
.cookie-banner .cookie-banner__accept, .cookie-banner .cookie-banner__accept:hover, .cookie-banner .cookie-banner__accept:focus {
  display: inline-block; width: auto; min-width: 0; height: auto; margin: 0; padding: 6px 18px; border: 0; border-radius: 4px;
  background: #2979ff; color: #fff; box-shadow: none; font-family: Arial, sans-serif; font-size: 12px; font-weight: 700;
  line-height: 1.5; letter-spacing: 0; text-transform: none; white-space: nowrap; cursor: pointer;
}
.cookie-banner .cookie-banner__accept:hover, .cookie-banner .cookie-banner__accept:focus { background: #1f63d6; }

/* To top */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 9990; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 5px;
  background: var(--site-accent); opacity: .5; cursor: pointer; transition: opacity .2s;
}
.to-top:hover, .to-top:focus { opacity: 1; background: var(--site-accent); }
.to-top::before {
  content: ''; position: absolute; top: 18px; left: 15px; width: 12px; height: 12px;
  border-top: 3px solid #fff; border-left: 3px solid #fff; transform: rotate(45deg);
}

/* 404 / 410 */
.not-found { max-width: 720px; margin: 0 auto; padding: 80px 20px; text-align: center; }

/* Anti-spam trap field: present for bots, invisible and unreachable for people. */
.form-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Booking: month calendar, start times, order form — one step at a time. Own markup, so the old Booked stylesheet does not apply. */
#booking-widget, #booking-screen {
  --bk-ink: #222;
  --bk-muted: #555e6b;
  --bk-faint: #9aa3b0;
  --bk-panel: #e6e9f0;
  --bk-surface: #fff;
  --bk-line: #dfe4ec;
  --bk-line-strong: #c5ccd6;
  --bk-action: #06c86b;
  --bk-action-hover: #05ad5c;
  --bk-action-ink: #05693a;
  --bk-danger: #c9303c;
  --bk-danger-ink: #8f1d27;
  --bk-danger-bg: #fdeef0;
  --bk-success-bg: #e6f8ee;
  --bk-focus: #1668d6;
  --bk-display: 'Ubuntu Condensed', 'Arial Narrow', sans-serif;
  --bk-text: 'PT Serif', Georgia, serif;
  --bk-tap: 44px;
  --bk-gap: 4px;
  --bk-radius-day: 10px;
  --bk-radius-box: 14px;
  --bk-radius-pill: 100px;
  --bk-width: 480px;
  color: var(--bk-ink); font-family: var(--bk-text); font-size: 16px; line-height: 1.4; text-align: left;
}
#booking-widget { position: relative; max-width: var(--bk-width); margin: 0 auto; }
#booking-screen, #booking-screen *, #booking-screen *::before, #booking-screen *::after, #booking-widget *, #booking-widget *::before, #booking-widget *::after { box-sizing: border-box; }
#booking-widget p { margin: 0; }
#booking-widget a { text-decoration: none; }
#booking-widget :focus, #booking-screen:focus, #booking-screen .booking-screen__close:focus { outline: none; }
#booking-widget :focus-visible, #booking-screen .booking-screen__close:focus-visible { outline: 3px solid var(--bk-focus); outline-offset: 2px; }
#booking-widget.booking-loading { cursor: progress; }
#booking-widget.booking-loading .booking-calendar, #booking-widget.booking-loading .booking-step { pointer-events: none; }
#booking-widget.booking-loading .booking-day:not([data-booking-pending]), #booking-widget.booking-loading .booking-step > * { opacity: .5; transition: opacity .15s .12s; }

/* Booking: calendar */
#booking-widget .booking-calendar { position: relative; overflow: hidden; padding: 20px; border-radius: var(--bk-radius-box); background: var(--bk-panel); }
#booking-widget .booking-calendar__head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
#booking-widget .booking-calendar__title { flex: 1; font-family: var(--bk-display); font-size: 28px; line-height: 1.1; letter-spacing: .01em; text-transform: uppercase; }
#booking-widget .booking-calendar__nav {
  display: flex; flex: none; align-items: center; justify-content: center; width: var(--bk-tap); height: var(--bk-tap);
  border-radius: 50%; background: var(--bk-surface); color: var(--bk-ink); transition: background-color .12s, color .12s;
}
#booking-widget .booking-calendar__nav--prev svg { transform: rotate(180deg); }
#booking-widget .booking-calendar__nav--off { background: transparent; color: var(--bk-faint); opacity: .6; }
#booking-widget .booking-calendar__grid {
  width: calc(100% + 2 * var(--bk-gap)); max-width: none; margin: 0 calc(-1 * var(--bk-gap)); border: 0;
  border-collapse: separate; border-spacing: var(--bk-gap); table-layout: fixed; background: none;
}
#booking-widget .booking-calendar__grid th, #booking-widget .booking-calendar__grid td { padding: 0; border: 0; background: none; text-align: center; }
#booking-widget .booking-calendar__grid th { padding-bottom: 4px; color: var(--bk-muted); font-family: var(--bk-text); font-size: 14px; font-weight: 400; line-height: 1.6; }
#booking-widget .booking-day {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; min-height: var(--bk-tap);
  border-radius: var(--bk-radius-day); font-family: var(--bk-display); font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums;
}
#booking-widget .booking-day--off { color: var(--bk-faint); }
#booking-widget .booking-day--free {
  background: var(--bk-surface); color: var(--bk-ink); box-shadow: 0 1px 0 rgba(30, 44, 66, .1);
  transition: background-color .12s, color .12s;
}
#booking-widget .booking-day[data-booking-pending] { background: var(--bk-action); color: #fff; box-shadow: none; }
#booking-widget .booking-day--today::after {
  content: ''; position: absolute; left: 50%; bottom: max(5px, 9%); width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--bk-action);
}
#booking-widget .booking-day--today[data-booking-pending]::after { background: #fff; }

/* Booking: a thin running line while the next step is loading */
#booking-widget.booking-loading .booking-calendar::before, #booking-widget.booking-loading .booking-step::before {
  content: ''; position: absolute; top: 0; left: 0; z-index: 1; width: 40%; height: 3px; background: var(--bk-action);
  animation: booking-progress .9s ease-in-out infinite;
}
@keyframes booking-progress { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes booking-fade { from { opacity: 0; } }

/* Booking on an excursion page: the screen stands in place of the page content while the address carries ?booking=1 */
body.booking-open #content { display: none; }
#booking-screen { min-height: 70vh; padding: 28px 16px 72px; animation: booking-fade .2s ease-out both; }
#booking-screen .booking-screen__head { display: flex; align-items: flex-start; gap: 12px; max-width: var(--bk-width); margin: 0 auto 16px; }
#booking-screen .booking-screen__title {
  flex: 1; min-width: 0; margin: 0; padding: 5px 0 0; overflow-wrap: anywhere; color: var(--bk-ink);
  font-family: var(--bk-display); font-size: 34px; font-weight: 400; line-height: 1.1; letter-spacing: .01em; text-transform: uppercase;
}
#booking-screen .booking-screen__close {
  display: flex; flex: none; align-items: center; justify-content: center; width: var(--bk-tap); height: var(--bk-tap);
  border-radius: 50%; background: var(--bk-panel); color: var(--bk-ink); text-decoration: none; transition: background-color .12s, color .12s;
}
a[data-booking-pending] { cursor: progress; opacity: .7; }

/* Booking: a step that stands in place of the calendar (start times, order form) */
#booking-widget .booking-step { position: relative; overflow: hidden; padding: 8px 20px 20px; border-radius: var(--bk-radius-box); background: var(--bk-panel); }
#booking-widget .booking-step__back a { display: inline-flex; align-items: center; min-height: var(--bk-tap); color: var(--bk-action-ink); font-size: 15px; }
#booking-widget .booking-step__name { font-size: 17px; line-height: 1.3; }
#booking-widget .booking-step__title { margin-bottom: 14px; font-family: var(--bk-display); font-size: 28px; line-height: 1.1; letter-spacing: .01em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
#booking-widget .booking-step[data-booking-step="form"] .booking-step__title { text-transform: none; }

/* Booking: start times */
#booking-widget .booking-slots__date { margin-top: -8px; color: var(--bk-muted); font-size: 17px; }
#booking-widget .booking-slots__list { margin: 12px 0 0; padding: 0; list-style: none; }
#booking-widget .booking-slot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 0; padding: 8px 8px 8px 18px;
  border-radius: var(--bk-radius-day); background: var(--bk-surface); box-shadow: 0 1px 0 rgba(30, 44, 66, .1);
}
#booking-widget .booking-slot__time { font-family: var(--bk-display); font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
#booking-widget .booking-slot__form { margin: 0; }
#booking-widget .booking-button, #booking-widget .booking-button:hover, #booking-widget .booking-button:focus {
  display: inline-flex; align-items: center; justify-content: center; width: auto; height: auto; min-height: 48px; margin: 0; padding: 0 28px;
  border: 0; border-radius: var(--bk-radius-pill); background: var(--bk-action); color: #fff; box-shadow: none; -webkit-appearance: none; appearance: none;
  font-family: var(--bk-display); font-size: 20px; font-weight: 400; line-height: 1; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
  cursor: pointer; transition: background-color .12s;
}
#booking-widget .booking-button[data-booking-pending] { background: var(--bk-action-hover); }
#booking-widget .booking-button:disabled { opacity: .6; cursor: progress; }
#booking-widget .booking-button--wide, #booking-widget .booking-button--wide:hover, #booking-widget .booking-button--wide:focus { width: 100%; min-height: 56px; font-size: 24px; }

/* Booking: order form */
#booking-widget .booking-form { margin: 0; }
#booking-widget .booking-field { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
#booking-widget .booking-field__label { display: block; width: auto; margin: 0 0 6px; padding: 0; color: var(--bk-ink); font-family: var(--bk-text); font-size: 16px; font-weight: 700; line-height: 1.3; }
#booking-widget .booking-field__required { margin-left: 4px; color: var(--bk-danger); font-family: Arial, sans-serif; font-size: 18px; line-height: 1; }
#booking-widget .booking-field__control {
  display: block; width: 100%; height: 52px; margin: 0; padding: 0 14px; border: 1px solid var(--bk-line-strong); border-radius: var(--bk-radius-day);
  background-color: var(--bk-surface); color: var(--bk-ink); box-shadow: none; font-family: var(--bk-text); font-size: 17px; line-height: 1.2;
  transition: border-color .12s, box-shadow .12s;
}
#booking-widget select.booking-field__control {
  padding-right: 42px; -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
}
#booking-widget .booking-field__control::placeholder { color: var(--bk-faint); opacity: 1; }
#booking-widget .booking-field__control[aria-invalid="true"] { border-color: var(--bk-danger); box-shadow: inset 0 0 0 1px var(--bk-danger); }
#booking-widget .booking-choices { display: grid; gap: 8px; }
#booking-widget .booking-choice { position: relative; }
#booking-widget .booking-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
#booking-widget .booking-choice label {
  display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 0; padding: 8px 14px; border: 1px solid var(--bk-line-strong);
  border-radius: var(--bk-radius-day); background: var(--bk-surface); font-size: 16px; line-height: 1.25; transition: border-color .12s, background-color .12s;
}
#booking-widget .booking-choice label::before {
  content: ''; flex: none; width: 20px; height: 20px; border: 1px solid var(--bk-line-strong); border-radius: 50%; background: var(--bk-surface);
}
#booking-widget .booking-choice input:checked + label { border-color: var(--bk-action); background: var(--bk-success-bg); box-shadow: inset 0 0 0 1px var(--bk-action); }
#booking-widget .booking-choice input:checked + label::before { border: 6px solid var(--bk-action); }
#booking-widget .booking-choice input[aria-invalid="true"] + label { border-color: var(--bk-danger); box-shadow: inset 0 0 0 1px var(--bk-danger); }
#booking-widget .booking-choice input:focus-visible + label { outline: 3px solid var(--bk-focus); outline-offset: 2px; }
#booking-widget .status[hidden] { display: none; }
#booking-widget .booking-errors, #booking-widget .form-success { margin: 0 0 16px; padding: 12px 14px; border: 0; border-radius: var(--bk-radius-day); font-size: 15px; line-height: 1.4; white-space: pre-line; }
#booking-widget .booking-errors { background: var(--bk-danger-bg); color: var(--bk-danger-ink); }
#booking-widget .form-success { background: var(--bk-success-bg); color: var(--bk-action-ink); }
#booking-widget > .booking-errors { margin: 12px 0 0; }

/* Booking: phone */
@media (max-width: 520px) {
  #booking-screen { padding: 20px 10px 56px; }
  #booking-screen .booking-screen__head { padding: 0 4px; }
  #booking-screen .booking-screen__title { font-size: 28px; }
  #booking-widget .booking-calendar { padding: 16px 12px; }
  #booking-widget .booking-calendar__title { padding-left: 4px; font-size: 26px; }
  #booking-widget .booking-step { padding: 6px 14px 16px; }
  #booking-widget .booking-step__title { font-size: 26px; }
  #booking-widget .booking-slot { padding-left: 14px; }
  #booking-widget .booking-button { padding: 0 22px; }
}
/* Booking: hover only where there is a pointer that hovers, so nothing stays highlighted after a tap */
@media (hover: hover) {
  #booking-widget a.booking-calendar__nav:hover, #booking-widget a.booking-day--free:hover { background: var(--bk-action); color: #fff; box-shadow: none; }
  #booking-widget a.booking-day--today:hover::after { background: #fff; }
  #booking-screen a.booking-screen__close:hover { background: var(--bk-action); color: #fff; }
  #booking-widget .booking-button:hover { background: var(--bk-action-hover); }
  #booking-widget .booking-step__back a:hover { text-decoration: underline; }
  #booking-widget .booking-field__control:hover, #booking-widget .booking-choice input:hover + label { border-color: var(--bk-muted); }
}
@media (prefers-reduced-motion: reduce) {
  #booking-screen, #booking-widget *, #booking-widget *::before, #booking-widget *::after { animation: none !important; transition: none !important; }
}
.booking-errors { margin: 12px 0; padding: 10px 14px; border: 1px solid #f1a9a0; border-radius: 4px; background: #fdecea; color: #a12a1f; }
.form-success { margin: 12px 0; padding: 10px 14px; border: 1px solid #9ad0a2; border-radius: 4px; background: #e7f6e9; color: #1d6b2a; }
.booking-unavailable { max-width: 560px; margin: 30px auto; padding: 18px 20px; border: 1px solid #d5dbe3; border-radius: 6px; text-align: center; font-size: 18px; }
.callback-modal__status { margin: 0; font-size: 14px; text-align: left; }

/* Хлебные крошки: над заголовком страницы (см. views/breadcrumbs.ts). */
.crumbs { font-size: 14px; line-height: 1.4; color: #6b7280; margin: 0 0 12px; }
.crumbs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs__item + .crumbs__item::before { content: "›"; margin-right: 8px; color: #9ca3af; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover, .crumbs a:focus { text-decoration: underline; }

/* Частые вопросы на страницах экскурсий (см. views/faq.ts): нативный <details>, без скриптов.
   Блок лежит во flex-контейнере темы (.elementor-widget-wrap), поэтому ширина задана явно; заголовок — как у «КАК ПРОХОДИТ
   ЭКСКУРСИЯ» (шрифт темы, слева, зелёная черта), !important перебивает правило темы для h2. */
.faq { width: 100%; flex: 0 0 100%; margin: 28px 0 8px; }
.faq h2.faq__title { margin: 0 0 24px; font-family: "Ubuntu Condensed", sans-serif !important; font-size: 33px !important; font-weight: 900 !important; line-height: 1.4; text-transform: uppercase; text-align: left !important; color: #222; }
.faq h2.faq__title::after { content: ""; display: block; width: 90px; margin-top: 10px; border-top: 3px solid #06c86b; }
.faq__item { border-bottom: 1px solid #e5e7eb; }
.faq__item:first-of-type { border-top: 1px solid #e5e7eb; }
.faq__question { position: relative; padding: 14px 36px 14px 0; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 26px; line-height: 1; color: #5bc46f; }
.faq__item[open] .faq__question::after { content: "−"; }
.faq__answer { padding: 0 0 16px; font-size: 16px; line-height: 1.65; }
.faq__answer p { margin: 0; }
.faq__answer a { color: inherit; text-decoration: underline; }
@media (max-width: 600px) { .faq h2.faq__title { font-size: 26px !important; } .faq__question { font-size: 16px; } }

/* Фильтры каталога (см. views/catalogFilters.ts): день, тип, время, скидка. Сетка «подпись | чипы | скидка», строки заданы явно (data-row). */
.cfilters { display: grid; grid-template-columns: max-content 1fr auto; gap: 14px 16px; align-items: center; margin-top: 28px; }
.cfilters__label { grid-column: 1; font-family: 'Ubuntu Condensed', sans-serif; font-size: 20px; color: #222; }
.cfilters__chips { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.cfilters__discount { grid-column: 3; display: flex; align-items: center; gap: 8px 10px; justify-self: end; }
.cfilters__discount .cfilters__label { grid-column: auto; }
[data-row="1"] { grid-row: 1; } [data-row="2"] { grid-row: 2; } [data-row="3"] { grid-row: 3; }
.chip { height: 44px; padding: 0 18px; border: 0; border-radius: 22px; font-family: 'Ubuntu Condensed', sans-serif; font-size: 20px; line-height: 44px; background: #eaf1f8; color: #6078a6; cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.chip.active { background: #2aa3f2; color: #fff; }
@media (hover: hover) { .chip:hover { background: #2aa3f2; color: #fff; } }
.chip:focus-visible { outline: 3px solid rgba(42, 163, 242, .35); outline-offset: 2px; }
.catalog__empty { margin: 0 0 18px; padding: 14px 18px; border: 1px solid #d5dbe3; border-radius: 6px; text-align: center; font-size: 18px; }
@media (max-width: 1023px) { .chip { height: 40px; line-height: 40px; font-size: 17px; padding: 0 14px; } .cfilters__label { font-size: 18px; } }
@media (max-width: 600px) {
  /* Phones: a label on its own line, chips under it; the discount toggle shares the line of «По времени:». */
  .cfilters { grid-template-columns: 1fr auto; gap: 8px 10px; margin-top: 13px; }
  .cfilters__label[data-row="1"] { grid-row: 1; } .cfilters__chips[data-row="1"] { grid-row: 2; }
  .cfilters__label[data-row="2"] { grid-row: 3; } .cfilters__chips[data-row="2"] { grid-row: 4; }
  .cfilters__label[data-row="3"] { grid-row: 5; } .cfilters__chips[data-row="3"] { grid-row: 6; }
  .cfilters__chips { grid-column: 1 / -1; margin-bottom: 6px; }
  /* Phones: «Со скидкой?» shares the line of «По времени:», its «Да» chip the line of the length chips (owner, 15.10.2026). */
  .cfilters__discount { display: contents; }
  .cfilters__discount .cfilters__label { grid-column: 2; grid-row: 5; justify-self: end; }
  .cfilters__discount .chip { grid-column: 2; grid-row: 6; justify-self: end; align-self: start; }
  .cfilters__chips[data-row="3"] { grid-column: 1; }
  .cfilters__chips[data-row="3"] .chip { padding: 0 11px; }
  /* Owner (15.10.2026): no «Фильтры» caption on phones (it stays in the sticky bar), the three day chips span the width. */
  .filter__content:not(.fixedFilter) .filter__title { display: none !important; }
  .cfilters__chips[data-row="1"] { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .chip { font-size: 15px; }
  .cfilters__chips[data-row="1"] .chip { width: 100%; padding: 0 4px; text-align: center; }
  .fixedFilter.openedFilter .catalog__nav.cfilters { display: grid; }
  .fixedFilter .cfilters { padding: 16px 0 30px; max-height: calc(100vh - 60px); overflow-y: auto; }
}

/* Реквизиты в подвале и на контактах, подпись под заголовком статьи (миграция 013, views/articleMeta.ts). */
.footer__requisites { max-width: 760px; margin: 26px auto 22px; padding: 0 16px; font-size: 15px; line-height: 1.6; color: #e3e7ec; text-align: center; white-space: normal; }
@media (max-width: 600px) { .footer__requisites { font-size: 14px; } }
.contact__requisites { font-size: 15px; }
.article__meta { margin: -6px 0 18px; font-size: 14px; color: #6b7280; }

/* Phones: the old theme drops the side padding, so headings touch the screen edge; the owner wants the gap on headings only (15.10.2026). */
@media (max-width: 600px) {
  .elementor-widget-heading, .faq { padding-left: 16px !important; padding-right: 16px !important; box-sizing: border-box; }
}
