/*
 * ZT Puppet v3 — новый хедер и hero внутренних страниц.
 *
 * Все цвета — только через --zt-*. Палитра задана на :root и продублирована на
 * [data-theme="kalyna"]: чтобы переключать палитры на лету, достаточно будет
 * поставить data-theme на <html> и описать такой же блок для каждой палитры
 * (набор токенов тот же — см. макет new-design-color-palettes.html).
 * Палитры не переключаются: сейчас действует одна — «Сніг і калина».
 */
:root {
  --zt-bg: #f6f5ee;
  --zt-paper: #ffffff;
  --zt-ink: #061d33;
  --zt-muted: #5f7787;
  --zt-accent: #8f101b;
  --zt-accent-contrast: #ffffff;
  --zt-line: #c8d3d7;
  --zt-footer: #093552;
  --zt-footer-ink: #fbfaf5;
  --background:53 31% 95%;
  --foreground:209 79% 11%;
  --card:0 0% 100%;
  --card-foreground:209 79% 11%;
  --popover:0 0% 100%;
  --popover-foreground:209 79% 11%;
  --primary:355 80% 31%;
  --primary-foreground:0 0% 100%;
  --secondary:204 80% 18%;
  --secondary-foreground:50 43% 97%;
  --muted:168 8% 88%;
  --muted-foreground:204 17% 45%;
  --accent:355 80% 31%;
  --accent-foreground:0 0% 100%;
  --border:196 16% 81%;
  --input:196 16% 81%;
  --ring:204 80% 18%;
  --burgundy:355 80% 31%;
  --burgundy-dark:204 80% 18%;
  --burgundy-light:355 80% 31%;
  --brown:204 80% 18%;
  --gold:355 80% 31%;
  --gold-light:355 80% 31%;
  --gold-dark:355 80% 31%;
  --zt-focus: #093552;
  --zt-strip: linear-gradient(90deg, #061d33 0 38%, #093552 38% 62%, #8f101b 62% 82%, #f6f5ee 82% 100%);

  --zt-strip-h: 0px;
  --zt-bar-h: 82px;
  --zt-header-h: calc(var(--zt-strip-h) + var(--zt-bar-h));
}

@media (max-width: 880px) {
  :root { --zt-bar-h: 66px; }
}

/* Запас под фиксированную шапку: на всех страницах один — высота новой шапки.
   Селектор тяжелее tailwind'овских pt-24 / md:pt-28 и мобильного правила из
   style.css. */
body main[class*="pt-24"],
body main[class*="pt-20"] {
  padding-top: var(--zt-header-h);
}

/* Плавная смена палитры */
.zt3-header, .zt3-hero, .zt3-topstrip, .zt3-brand__mark, .zt3-brand__name, .zt3-brand__top,
.zt3-hero__title, .zt3-hero__title em, .zt3-hero__eyebrow, .zt3-hero__lede, .zt3-menu .nav-link {
  transition-property: background-color, color, border-color;
  transition-duration: .25s;
}

/* ── Хедер ───────────────────────────────────────
   Селекторы с запасом специфичности и !important: у старой шапки есть
   тёмные состояния (над сценой, page-dark), которые тоже на !important.
   В v3 шапка одна и та же везде. */
html body #site-header.zt3-header.zt3-header {
  background: var(--zt-paper) !important;
  border-bottom: 1px solid var(--zt-line) !important;
  color: var(--zt-ink);
  backdrop-filter: none;
}

.zt3-topstrip {
  height: var(--zt-strip-h);
  background: var(--zt-strip);
}

.zt3-header__bar {
  min-height: var(--zt-bar-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.zt3-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 255px;
  color: var(--zt-ink);
  text-decoration: none;
}

.zt3-brand__mark {
  display: block;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  color: var(--zt-ink);
}
.zt3-logo { display: block; width: 100%; height: 100%; }
.zt3-logo--dark { display: none; }
.zt3-brand__mark svg { display: block; width: 100%; height: 100%; }

.zt3-brand__name {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: "Manrope", "Source Sans 3", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zt-ink);
}
.zt3-brand__top,
.zt3-brand__main { display: block; }

/* «Житомирський» — как «афіша» в hero: курсив засечным, цветом акцента */
.zt3-brand__top {
  font-family: Georgia, "Playfair Display", serif;
  font-size: 32px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--zt-accent);
}

/* Навигация */
.zt3-menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.7vw, 28px);
  margin-left: auto;
}

html body #site-header.zt3-header .zt3-menu .nav-link {
  font-family: "Manrope", "Source Sans 3", Arial, sans-serif;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 8px 0;
  color: var(--zt-muted) !important;
  transition: color 0.2s;
}
html body #site-header.zt3-header .zt3-menu .nav-link:hover,
html body #site-header.zt3-header .zt3-menu .nav-link.current-menu-item {
  color: var(--zt-accent) !important;
}
html body #site-header.zt3-header .zt3-menu .nav-link::after {
  background-color: var(--zt-accent) !important;
  height: 2px;
}

/* Выпадающее подменю: светлая карточка в цвет палитры */
html body #site-header.zt3-header .nav-item--parent > .nav-link {
  display: inline-flex; align-items: center; gap: 7px;
}
html body #site-header.zt3-header .nav-item--parent > .nav-link::before {
  content: ""; order: 2; width: 5px; height: 5px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .2s, margin .2s;
}
html body #site-header.zt3-header .nav-item--parent:hover > .nav-link::before,
html body #site-header.zt3-header .nav-item--parent:focus-within > .nav-link::before {
  transform: rotate(-135deg); margin-top: 3px;
}
html body #site-header.zt3-header .nav-dropdown { padding-top: 14px; }
html body #site-header.zt3-header .nav-dropdown__inner {
  position: relative; min-width: 15rem; padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--zt-paper); border: 1px solid var(--zt-line); border-radius: 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 14px 32px -8px rgba(0,0,0,.22);
}
html body #site-header.zt3-header .nav-dropdown__inner::before {
  content: ""; position: absolute; top: -6px; left: 50%; width: 10px; height: 10px; margin-left: -5px;
  background: var(--zt-paper); border-left: 1px solid var(--zt-line); border-top: 1px solid var(--zt-line);
  transform: rotate(45deg);
}
html body #site-header.zt3-header .nav-item--parent:nth-last-child(-n + 2) .nav-dropdown__inner::before { left: auto; right: 24px; margin-left: 0; }
html body #site-header.zt3-header .nav-dropdown__inner .nav-item { display: block; }
html body #site-header.zt3-header .nav-dropdown__link {
  position: relative; display: block; width: 100%; padding: 10px 14px 10px 16px;
  font-family: "Manrope", "Source Sans 3", Arial, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .01em;
  color: var(--zt-ink); border-radius: 3px; white-space: nowrap;
  transition: background-color .15s, color .15s, padding .15s;
}
html body #site-header.zt3-header .nav-dropdown__link::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px;
  background: var(--zt-accent); opacity: 0; transition: opacity .15s;
}
html body #site-header.zt3-header .nav-dropdown__link:hover,
html body #site-header.zt3-header .nav-dropdown__link:focus-visible {
  color: var(--zt-accent); background: var(--zt-bg); padding-left: 20px;
}
html body #site-header.zt3-header .nav-dropdown__link:hover::before,
html body #site-header.zt3-header .nav-dropdown__link:focus-visible::before,
html body #site-header.zt3-header .nav-dropdown__link.current-menu-item::before { opacity: 1; }
html body #site-header.zt3-header .nav-dropdown__link.current-menu-item { color: var(--zt-accent); text-decoration: none; }

.zt3-header__side { display: flex; align-items: center; gap: 16px; }

html body #site-header.zt3-header .zt3-phone {
  font-family: "Manrope", "Source Sans 3", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  padding-left: 24px;
  border-left: 1px solid var(--zt-line);
  color: var(--zt-ink) !important;
}

.zt3-burger {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  border: 1px solid var(--zt-line);
  border-radius: 5px;
  background: none;
  color: var(--zt-ink);
}
.zt3-burger:focus-visible,
.zt3-brand:focus-visible,
.zt3-menu a:focus-visible,
.zt3-mobile a:focus-visible,
.zt3-phone:focus-visible { outline: 3px solid var(--zt-focus); outline-offset: 3px; }

/* Мобильная панель */
html body #site-header.zt3-header #mobile-menu.zt3-mobile {
  background: var(--zt-paper);
  border-top: 1px solid var(--zt-line) !important;
  position: absolute;
  left: 0;
  width: 100%;
  box-shadow: 0 12px 28px rgba(6, 29, 51, 0.12);
}
html body #site-header.zt3-header #mobile-menu.zt3-mobile a { color: var(--zt-ink) !important; }
html body #site-header.zt3-header #mobile-menu.zt3-mobile .mobile-nav__link--sub { color: var(--zt-muted) !important; }
html body #site-header.zt3-header #mobile-menu.zt3-mobile [class*="border"] { border-color: var(--zt-line) !important; }
html body #site-header.zt3-header #mobile-menu.zt3-mobile a:hover { color: var(--zt-accent) !important; }

html body #site-header.zt3-header #mobile-menu.zt3-mobile a { min-height: 44px; display: flex; align-items: center; font-weight: 700; font-size: 13px; }

@media (max-width: 1240px) {
  .zt3-brand { min-width: 205px; }
  .zt3-phone { display: none !important; }
  .zt3-header__bar { gap: 16px; }
  .zt3-menu { gap: 16px; }
}

@media (max-width: 1023px) {
  .zt3-menu { display: none; }
  .zt3-burger { display: inline-flex; margin-left: auto; }
}

@media (max-width: 560px) {
  .zt3-brand { min-width: 0; }
  .zt3-brand__mark { width: 44px; height: 44px; }
  .zt3-brand__name { font-size: 10px; }
  .zt3-brand__top { font-size: 24px; }
}

/* ── Hero внутренних страниц ─────────────────── */
.zt3-hero {
  background: var(--zt-bg);
  color: var(--zt-ink);
  border-bottom: 1px solid var(--zt-line);
}

.zt3-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 385px);
  align-items: end;
  column-gap: clamp(24px, 4vw, 70px);
  min-height: 206px;
  padding-top: 34px;
  padding-bottom: 44px;
}

.zt3-hero__eyebrow {
  margin: 0 0 15px;
  color: var(--zt-accent);
  font-family: "Manrope", "Source Sans 3", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.zt3-hero__title {
  margin: 0;
  font-family: "Manrope", "Source Sans 3", Arial, sans-serif;
  font-size: clamp(40px, 4.3vw, 72px);
  font-weight: 600;
  letter-spacing: -0.072em;
  line-height: 1.09;
  word-spacing: 0.1em;
  color: var(--zt-ink);
}
.zt3-hero__title em {
  font-family: Georgia, "Playfair Display", serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.05em;
  margin-left: 0.08em;
  color: var(--zt-accent);
}

.zt3-hero__lede {
  margin: 0 0 3px;
  max-width: 385px;
  font-family: Georgia, "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.6;
  color: var(--zt-muted);
}

@media (max-width: 780px) {
  .zt3-hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 14px;
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .zt3-hero__title { font-size: clamp(37px, 9vw, 54px); }
}

/* ── Футер в цветах палитры ──────────────────── */
html body footer.zt3-footer { background: var(--zt-footer); color: var(--zt-footer-ink); transition: background-color .25s, color .25s; }
.zt3-footer .zt3f-100 { color: var(--zt-footer-ink); }
.zt3-footer .zt3f-80 { color: color-mix(in srgb, var(--zt-footer-ink) 80%, transparent); }
.zt3-footer .zt3f-60 { color: color-mix(in srgb, var(--zt-footer-ink) 60%, transparent); }
.zt3-footer a.zt3f-80:hover, .zt3-footer a.zt3f-60:hover, .zt3-footer .zt3f-hover:hover { color: var(--zt-footer-ink); }
.zt3-footer .zt3f-border { border-color: color-mix(in srgb, var(--zt-footer-ink) 20%, transparent); }

/* Поля форм в цветах палитры */
html body main input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
html body main select,
html body main textarea { background-color: var(--zt-field, hsl(var(--background))); color: hsl(var(--foreground)); border-color: hsl(var(--border)); }
/* select/textarea формы контактов несут Tailwind-класс bg-[hsl(var(--background))] — [class] поднимает специфичность над ним */
html body main select[class],
html body main textarea[class] { background-color: var(--zt-field, hsl(var(--background))); }
html body main input::placeholder, html body main textarea::placeholder { color: hsl(var(--muted-foreground)); opacity: .8; }

/* Виджет бронювання (плагін events-and-places) */
html body .evpl-date-filter { background: hsl(var(--card)); color: hsl(var(--foreground)); border-color: hsl(var(--border)); }
html body .evpl-date-filter .evpl-notice, html body .evpl-date-filter p, html body .evpl-date-filter label { color: hsl(var(--foreground)); }

/* ── Панели фильтров: Афіша и Колектив (макет) ───── */
.zt3-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px; padding: 18px 0 22px;
}
.zt3-tools-wrap { border-bottom: 1px solid var(--zt-line); background: var(--zt-bg); }
.zt3-month, .zt3-seg { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.zt3-month__current {
  min-width: 180px; margin: 0; text-align: center; font-size: 20px; font-weight: 700;
  text-transform: capitalize; color: var(--zt-ink);
}
.zt3-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 39px;
  padding: 7px 13px; border: 1px solid var(--zt-line); border-radius: 5px; background: var(--zt-paper);
  color: var(--zt-ink); font: 700 13px/1.2 "Manrope", "Source Sans 3", Arial, sans-serif;
  cursor: pointer; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s;
}
.zt3-btn--icon { min-width: 39px; padding: 7px 10px; font-size: 16px; }
.zt3-btn:hover { border-color: var(--zt-accent); color: var(--zt-accent); }
.zt3-btn.is-active, .zt3-btn.is-active:hover {
  background: var(--zt-accent); border-color: var(--zt-accent); color: var(--zt-accent-contrast);
}
.zt3-btn.is-disabled { opacity: .4; pointer-events: none; }
.zt3-btn:focus-visible, .zt3-search:focus-within { outline: 3px solid var(--zt-focus); outline-offset: 2px; }
.zt3-search {
  display: flex; align-items: center; gap: 8px; width: 260px; max-width: 100%; height: 40px; padding: 0 13px;
  border: 1px solid var(--zt-line); border-radius: 5px; background: var(--zt-paper); color: var(--zt-muted);
}
.zt3-search input {
  flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important;
  font: 500 13px/1 "Manrope", "Source Sans 3", Arial, sans-serif; color: var(--zt-ink) !important; box-shadow: none !important;
}
.zt3-empty { padding: 40px 0; text-align: center; color: var(--zt-muted); }
.team-item[hidden] { display: none !important; }
@media (max-width: 600px) {
  .zt3-toolbar { align-items: stretch; }
  .zt3-month__current { min-width: 0; flex: 1; font-size: 17px; }
  .zt3-search { width: 100%; }
}
html body main .zt3-search input { padding: 0 !important; height: auto; }
.zt3-tools-wrap .zt-spec-bar { justify-content: flex-start; margin: 0 0 16px; }

/* ── Новини: навігація за датою ── */
.nw-tools { margin-bottom: 2rem; }
.nw-row { flex-wrap: wrap; margin-top: 0.6rem; }
.nw-days { gap: 7px; }
.nw-days .zt3-btn { min-width: 40px; justify-content: center; padding-left: 0; padding-right: 0; }
.nw-tools .zt3-btn { text-decoration: none; }

/* Теги новин: список під фільтром дат і на картках */
.nw-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 1rem; }
.nw-tags__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--zt-muted); margin-right: 4px; }
.nw-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 0.2rem 0.65rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; line-height: 1.35; text-decoration: none;
  color: var(--zt-muted); background: color-mix(in srgb, var(--zt-ink) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--zt-ink) 10%, transparent);
  transition: border-color .15s, background .15s;
}
.nw-tag:hover { border-color: var(--zt-accent); color: var(--zt-ink); }
.nw-tag:focus-visible { outline: 3px solid var(--zt-focus); outline-offset: 2px; }
.nw-tag.is-active, .nw-tag.is-active:hover {
  background: color-mix(in srgb, var(--zt-accent) 21%, transparent);
  border-color: color-mix(in srgb, var(--zt-accent) 50%, transparent);
  color: color-mix(in srgb, var(--zt-ink) 88%, transparent);
}
.nw-tag__n { font-size: 0.72rem; font-weight: 500; opacity: .8; }
.nw-card-tags { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1rem; }
.nw-card-tags .nw-tag { font-size: 0.72rem; padding: 0.12rem 0.55rem; }
/* Вся картка новини — одне посилання (через заголовок), теги лишаються окремими */
.news-archive-card-wrap { position: relative; }
.news-archive-card__link { color: inherit; text-decoration: none; }
.news-archive-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.news-archive-card__link:focus-visible { outline: none; }
.news-archive-card__link:focus-visible::after { outline: 3px solid hsl(var(--primary)); outline-offset: -3px; border-radius: inherit; }

/* ── Текстова сторінка (page.php) ── */
.zt3-prose { max-width: 48rem; color: var(--zt-ink); font-size: 1.02rem; line-height: 1.75; }
.zt3-prose .zt-doc-lead { font-size: 1.15rem; color: var(--zt-muted); margin-bottom: 1.6rem; }
.zt3-prose h2 { font-family: var(--font-serif, Georgia, serif); font-size: 1.45rem; margin: 2.2rem 0 0.8rem; color: var(--zt-ink); }
.zt3-prose p { margin: 0 0 0.9rem; }
.zt3-prose ul, .zt3-prose ol { margin: 0 0 1rem 1.3rem; list-style: revert; }
.zt3-prose a { color: var(--zt-accent); text-decoration: underline; }

/* Футер общий для всех страниц: вертикальные отступы те же, что у секций
   главной (5rem / 7rem на десктопе). */
.zt3-footer .zt3-footer__in { padding-block: 5rem; }
@media (min-width: 768px) { .zt3-footer .zt3-footer__in { padding-block: 7rem; } }

/* Футер на 1px заходит на предыдущую секцию: на дробных высотах (и при отдельных
   композитных слоях секций) между ними просвечивал фон body — белая полоска 1px. */
html body footer.zt3-footer { position: relative; z-index: 2; margin-top: -1px; }

/* ── Футер: колонки с золотыми заголовками ───────────────────────────── */
.zt3-footer { --zt3-gold: var(--home-hd-accent, #e2b96f); }
.zt3-footer .zt3-fh {
  display: flex; align-items: center; gap: 1rem; margin: 0 0 1.4rem;
  font: 600 .8rem/1 var(--font-serif, "Lora", Georgia, serif);
  letter-spacing: .22em; text-transform: uppercase; color: var(--zt3-gold);
}
.zt3-footer .zt3-fl-list { display: flex; flex-direction: column; gap: .8rem; }
.zt3-footer .zt3-fl { color: var(--zt-footer-ink); font-size: 1.05rem; line-height: 1.3; text-decoration: none; transition: color .2s; }
.zt3-footer a.zt3-fl:hover { color: var(--zt3-gold); }
.zt3-footer .zt3-fh--next { margin-top: 2rem; }
.zt3-footer .zt3-fc { display: flex; flex-direction: column; gap: 1.1rem; }
.zt3-footer .zt3-fc__row { display: flex; align-items: flex-start; gap: .9rem; font-size: 1.05rem; line-height: 1.5; }
.zt3-footer .zt3-fc__ico { width: 1.2rem; height: 1.2rem; margin-top: .22rem; flex: none; color: var(--zt3-gold); }
.zt3-footer .zt3-fc p { margin: 0; }
.zt3-footer .zt3-fmap { display: inline-block; margin-top: .35rem; font-size: .85rem; color: color-mix(in srgb, var(--zt-footer-ink) 70%, transparent); text-decoration: none; transition: color .2s; }
.zt3-footer .zt3-fmap:hover { color: var(--zt3-gold); }
.zt3-footer .footer-column { width: auto; max-width: 100%; }
.zt3-footer .footer-column--contact { max-width: 22rem; }

/* xl: лого и три колонки — соседи в одном ряду, промежутки между ними равны */
@media (min-width: 1280px) {
  .zt3-footer .zt3-footer__row { justify-content: space-between; gap: 3rem; }
  .zt3-footer .zt3-footer__cols,
  .zt3-footer .footer-columns { display: contents; }
}

/* ── Мобильная шапка и меню (≤1023px) ───────────── */
@media (max-width: 1023px) {
  /* бургер — к правому краю */
  .zt3-header__bar { gap: 12px; }
  .zt3-header__side { margin-left: auto; flex: 0 0 auto; }
  /* меню не выше экрана: длинный список прокручивается, а не обрезается */
  html body #site-header.zt3-header #mobile-menu.zt3-mobile {
    max-height: calc(100dvh - var(--zt-header-h, 66px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  /* заголовок группы («Театр»): раньше был светло-серым и не читался */
  html body #site-header.zt3-header #mobile-menu.zt3-mobile .mobile-nav__label {
    display: flex; align-items: center; min-height: 44px;
    font-weight: 800; font-size: 13px; color: var(--zt-accent) !important;
  }
}

/* Футер на телефоне: «Глядачам» и «Театр» рядом, «Контакти» ниже на всю ширину */
@media (max-width: 767px) {
  .zt3-footer .footer-columns { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; row-gap: 2rem; }
  .zt3-footer .footer-column--contact { grid-column: 1 / -1; max-width: none; }
  .zt3-footer .zt3-fh { letter-spacing: .16em; margin-bottom: 1rem; }
  .zt3-footer .zt3-fl { font-size: 1rem; }
}

/* Мобильное меню компактнее: все пункты и телефон помещаются без прокрутки */
@media (max-width: 1023px) {
  html body #site-header.zt3-header #mobile-menu.zt3-mobile nav { gap: 0; padding-top: .5rem; padding-bottom: .75rem; }
  html body #site-header.zt3-header #mobile-menu.zt3-mobile a,
  html body #site-header.zt3-header #mobile-menu.zt3-mobile .mobile-nav__label { min-height: 40px; padding-top: 0; padding-bottom: 0; }
  html body #site-header.zt3-header #mobile-menu.zt3-mobile .mobile-nav__link--sub { min-height: 36px; }
  html body #site-header.zt3-header #mobile-menu.zt3-mobile nav > div { padding-top: .5rem; margin-top: .25rem; }
}

/* Телефон: шапка заходит на 1px выше экрана (убирает светлую полоску сверху от дробной высоты панели браузера);
   рамка бургера — цвета «Житомирський» */
@media (max-width: 1023px) {
  html body #site-header.zt3-header.zt3-header { top: -1px; padding-top: 1px; }
  .zt3-burger { border-color: var(--zt-accent); }
}

/* Доступність: фокус не ховається під фіксованою шапкою; межі полів форм ≥3:1 */
html { scroll-padding-top: calc(var(--zt-header-h, 66px) + 12px); }
main form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),
main form select, main form textarea,
#ts-order-modal input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]), #ts-order-modal select, #ts-order-modal textarea { border-color: #7d8a90; }
