/* Спільні стилі Alboom — галерея, хаб, бокове меню (узгоджено з головною) */

:root {
  --ab-bg: #f7f7f7;
  --ab-surface: #ffffff;
  --ab-surface-2: #f9fafb;
  --ab-surface-3: #f3f4f6;
  --ab-text: #111111;
  --ab-text-soft: #333333;
  --ab-text-muted: #6b7280;
  --ab-text-faint: #9ca3af;
  --ab-border: #e5e7eb;
  --ab-border-soft: #eeeeee;
  --ab-border-mid: #d1d5db;
  --ab-border-strong: #111111;
  --ab-accent: #000000;
  --ab-accent-text: #ffffff;
  --ab-cta: #000000;
  --ab-cta-text: #ffffff;
  --ab-outline-bg: #ffffff;
  --ab-outline-hover: #f2f2f2;
  --ab-footer-bg: #111111;
  --ab-footer-text: #ffffff;
  --ab-danger: #e63946;
  --ab-danger-soft: #ffe4e6;
  --ab-warn-bg: #fef9c3;
  --ab-warn-border: #fde047;
  --ab-warn-text: #713f12;
  --ab-ok-bg: #ecfdf5;
  --ab-ok-border: #a7f3d0;
  --ab-ok-text: #047857;
  --ab-err-bg: #fef2f2;
  --ab-err-border: #fecaca;
  --ab-err-text: #b91c1c;
  --ab-shortlist: #fbbf24;
  --ab-shortlist-bg: #fef3c7;
  --ab-photo-bg: #eeeeee;
  --ab-overlay: rgba(0, 0, 0, 0.45);
  --ab-drawer-fab-bg: rgba(0, 0, 0, 0.28);
  --ab-drawer-fab-hover: rgba(0, 0, 0, 0.45);
  /* Shared page rhythm — prefer trimming empty space over shrinking type */
  --ab-space-xs: 8px;
  --ab-space-sm: 12px;
  --ab-space-md: 20px;
  --ab-space-lg: 32px;
  --ab-space-xl: 48px;
  --ab-page-hero-pad: 32px 20px 16px;
  --ab-page-container-pad: 8px 20px 48px;
  --ab-page-footer-pad: 28px 20px;
  --ab-hub-main-pad: 20px 16px 32px;
  --ab-faq-q-pad: 12px 4px;
  --ab-instr-section-gap: 24px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ab-bg: #121212;
  --ab-surface: #1a1a1a;
  --ab-surface-2: #222222;
  --ab-surface-3: #2a2a2a;
  --ab-text: #eceae7;
  --ab-text-soft: #d4d0cb;
  --ab-text-muted: #b0aaa4;
  /* Keep faint readable on near-black surfaces (was #6f6a65 — too dark) */
  --ab-text-faint: #a09a94;
  --ab-border: #2e2e2e;
  --ab-border-soft: #252525;
  --ab-border-mid: #3a3a3a;
  --ab-border-strong: #eceae7;
  --ab-accent: #d4cfc7;
  --ab-accent-text: #121212;
  --ab-cta: #d4cfc7;
  --ab-cta-text: #121212;
  --ab-outline-bg: #1a1a1a;
  --ab-outline-hover: #2a2a2a;
  --ab-footer-bg: #0a0a0a;
  --ab-footer-text: #eceae7;
  --ab-danger: #c45c5c;
  --ab-danger-soft: #2a1a1a;
  --ab-warn-bg: #2a2418;
  --ab-warn-border: #5c4a2e;
  --ab-warn-text: #d4b896;
  --ab-ok-bg: #14241c;
  --ab-ok-border: #2d5a45;
  --ab-ok-text: #7dba9a;
  --ab-err-bg: #2a1818;
  --ab-err-border: #5c3030;
  --ab-err-text: #c45c5c;
  --ab-shortlist: #d4cfc7;
  --ab-shortlist-bg: #2a2824;
  --ab-photo-bg: #222222;
  --ab-overlay: rgba(0, 0, 0, 0.65);
  --ab-drawer-fab-bg: rgba(255, 255, 255, 0.14);
  --ab-drawer-fab-hover: rgba(255, 255, 255, 0.28);
}

body.alboom-app {
  font-family: "Roboto", system-ui, sans-serif;
  color: var(--ab-text);
  background: var(--ab-bg);
}

.alboom-app .gv-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  background: var(--ab-cta);
  color: var(--ab-cta-text);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.alboom-app .gv-btn-dark:hover { opacity: 0.85; }
.alboom-app .gv-btn-dark:disabled { opacity: 0.45; cursor: default; }

.alboom-app .gv-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--ab-outline-bg);
  color: var(--ab-text);
  border: 1px solid var(--ab-border-mid);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.alboom-app .gv-btn-outline:hover { background: var(--ab-outline-hover); }
.alboom-app .gv-btn-outline.is-active {
  background: var(--ab-accent);
  color: var(--ab-accent-text);
  border-color: var(--ab-accent);
}

.alboom-app .gv-card {
  background: var(--ab-surface);
  border: 1px solid var(--ab-border);
  border-radius: 16px;
  padding: 24px 28px;
}

.alboom-app .gv-heading {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.alboom-app .gv-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ab-surface);
  border-bottom: 1px solid var(--ab-border);
}
.alboom-app .gv-header__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}
.alboom-app .gv-header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ab-text);
  text-decoration: none;
}
.alboom-app .gv-header__home {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ab-text);
  padding: 5px 10px;
  border: 1px solid var(--ab-border-strong);
  border-radius: 100px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.alboom-app .gv-header__home:hover {
  background: var(--ab-accent);
  color: var(--ab-accent-text);
  border-color: var(--ab-accent);
}
@media screen and (max-width: 480px) {
  .alboom-app .gv-header__home,
  .page-header__back {
    padding: 4px 8px;
    font-size: 9px;
  }
  .alboom-app .gv-header__meta {
    max-width: 28%;
    font-size: 11px;
  }
}
.site-logo-icon {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.site-logo-icon--lg {
  width: 28px;
  height: 28px;
}
.site-logo-icon--drawer {
  width: 40px;
  height: 40px;
}
html[data-theme="dark"] .site-drawer__brand .site-logo-icon,
html[data-theme="dark"] .gv-header__logo .site-logo-icon,
html[data-theme="dark"] .page-header__logo .site-logo-icon {
  filter: invert(1);
}
html[data-theme="dark"] .site-drawer-fab {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
}
.alboom-app .gv-header__meta {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--ab-text-muted);
  text-align: left;
  max-width: 36%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.alboom-app .gv-header__right {
  display: contents;
}

.alboom-app .gv-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.alboom-app .gv-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ab-text-faint);
}
.alboom-app .gv-step__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  background: var(--ab-border);
  color: var(--ab-text-muted);
}
.alboom-app .gv-step.is-active .gv-step__dot { background: var(--ab-accent); color: var(--ab-accent-text); }
.alboom-app .gv-step.is-active { color: var(--ab-text); font-weight: 500; }
.alboom-app .gv-step.is-done .gv-step__dot { background: var(--ab-border-mid); color: var(--ab-text-soft); }
.alboom-app .gv-step__line { width: 24px; height: 1px; background: var(--ab-border-mid); }

.alboom-app .gv-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) {
  .alboom-app .gv-photo-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

.alboom-app .gv-photo-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ab-photo-bg);
  border: 3px solid transparent;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.alboom-app .gv-photo-card.is-shortlisted { border-color: var(--ab-shortlist); }
.alboom-app .gv-photo-card.is-final { border-color: var(--ab-danger); box-shadow: 0 0 0 2px var(--ab-danger); }
.alboom-app .gv-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.alboom-app .gv-photo-card__shortlist,
.alboom-app .gv-photo-card__heart {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.alboom-app .gv-photo-card__shortlist.is-on { background: var(--ab-shortlist-bg); }
.alboom-app .gv-photo-card__heart { left: auto; right: 8px; }
.alboom-app .gv-photo-card__heart.is-on {
  background: var(--ab-danger-soft);
  box-shadow: 0 0 0 2px var(--ab-danger);
}
.alboom-app .gv-photo-card__pick {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  padding: 10px 8px;
  border: none;
  border-radius: 100px;
  background: rgba(0,0,0,0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 2;
}
.alboom-app .gv-photo-card:hover .gv-photo-card__pick,
.alboom-app .gv-photo-card.is-final .gv-photo-card__pick { opacity: 1; }
.alboom-app .gv-photo-card__pick:hover { background: #111; }

.alboom-app .gv-final-confirm {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  padding-top: 4px;
}
.alboom-app .gv-final-confirm .gv-btn-dark {
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 14px;
  font-weight: 600;
}
.alboom-app .gv-photo-card__zoom {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  font-size: 14px;
  cursor: pointer;
  z-index: 2;
}

.alboom-app .gv-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}
.alboom-app .gv-toolbar__hint {
  flex: 1;
  min-width: 180px;
  font-size: 13px;
  color: var(--ab-text-muted);
}

.alboom-app .gv-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ab-text-muted);
  margin-bottom: 6px;
}
.alboom-app .gv-field input,
.alboom-app .gv-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ab-border-mid);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ab-text);
  background: var(--ab-surface);
}
.alboom-app .gv-field--error input,
.alboom-app .gv-field--error textarea,
.alboom-app .gv-field textarea.is-invalid {
  border-color: var(--ab-danger);
  background: var(--ab-err-bg);
}
.alboom-app .gv-field__error {
  display: none;
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ab-err-text);
  background: var(--ab-err-bg);
  border: 1px solid var(--ab-err-border);
  border-radius: 10px;
}
.alboom-app .gv-field__error.is-visible {
  display: block;
}
.alboom-app .gv-field input:focus,
.alboom-app .gv-field textarea:focus {
  outline: none;
  border-color: var(--ab-accent);
}

.alboom-app .gv-banner {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--ab-warn-bg);
  border: 1px solid var(--ab-warn-border);
  font-size: 14px;
  color: var(--ab-warn-text);
}
.alboom-app .gv-banner button {
  margin-top: 8px;
}

.alboom-app .gv-msg {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
}
.alboom-app .gv-msg--error { background: var(--ab-err-bg); color: var(--ab-err-text); border: 1px solid var(--ab-err-border); }
.alboom-app .gv-msg--ok { background: var(--ab-ok-bg); color: var(--ab-ok-text); border: 1px solid var(--ab-ok-border); }

/* Бокове меню */
.site-drawer-fab {
  position: fixed;
  left: 14px;
  top: 14px;
  bottom: auto;
  z-index: 9000;
  width: 40px;
  height: 40px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.12);
  background: var(--ab-drawer-fab-bg);
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  opacity: 0.72;
}
.site-drawer-fab:hover {
  transform: scale(1.04);
  opacity: 1;
  background: var(--ab-drawer-fab-hover);
}
@media screen and (max-width: 640px) {
  .site-drawer-fab {
    left: 10px;
    top: 10px;
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
}

.site-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: var(--ab-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.site-drawer-overlay.is-open { opacity: 1; visibility: visible; }

.site-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 9200;
  width: min(320px, 88vw);
  background: var(--ab-surface);
  box-shadow: 8px 0 32px rgba(0,0,0,0.12);
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  font-family: "Roboto", sans-serif;
  color: var(--ab-text);
}
.site-drawer.is-open { transform: translateX(0); }

.site-drawer__head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--ab-border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-drawer__brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.site-drawer__close {
  border: none;
  background: none;
  font-size: 24px;
  color: var(--ab-text-faint);
  cursor: pointer;
  line-height: 1;
}
.site-drawer__close:hover { color: var(--ab-text); }

.site-drawer__nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.site-drawer__section {
  margin-bottom: 20px;
}
.site-drawer__section-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ab-text-faint);
  margin-bottom: 8px;
  padding-left: 4px;
}
.site-drawer__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--ab-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease;
}
.site-drawer__link:hover { background: var(--ab-surface-3); }
.site-drawer__link-icon { font-size: 18px; width: 24px; text-align: center; }

/* Тема — тихо внизу меню */
.site-drawer__foot {
  flex-shrink: 0;
  padding: 10px 14px 16px;
  border-top: 1px solid var(--ab-border-soft);
}
.site-theme {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 0;
}
.site-theme__btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ab-text-faint);
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  padding: 4px 8px;
  margin: 0;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s ease;
}
.site-theme__btn + .site-theme__btn::before {
  content: "·";
  margin-right: 8px;
  color: var(--ab-border-mid);
  pointer-events: none;
}
.site-theme__btn:hover {
  color: var(--ab-text-muted);
}
.site-theme__btn:focus-visible {
  outline: 1px solid var(--ab-border-mid);
  outline-offset: 1px;
}
.site-theme__btn.is-active {
  color: var(--ab-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* FAQ / інструкція — спільний каркас сторінок */
.page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ab-surface);
  border-bottom: 1px solid var(--ab-border-soft);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.page-header__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ab-text);
}
.page-header__back {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ab-text);
  padding: 5px 10px;
  border: 1px solid var(--ab-border-strong);
  border-radius: 100px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.page-header__back:hover {
  background: var(--ab-accent);
  color: var(--ab-accent-text);
  border-color: var(--ab-accent);
}
.page-hero {
  padding: var(--ab-page-hero-pad);
  text-align: center;
  color: var(--ab-text);
}
.page-hero h1 {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 10px;
}
.page-hero p {
  font-weight: 300;
  font-size: 15px;
  color: var(--ab-text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}
.page-container {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--ab-page-container-pad);
  color: var(--ab-text);
}
.page-footer {
  background: var(--ab-footer-bg);
  color: var(--ab-footer-text);
  padding: var(--ab-page-footer-pad);
  text-align: center;
}
.page-footer__cta {
  margin-bottom: 28px;
}
.page-footer__contacts h2,
.page-footer h2 {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 22px;
  margin: 0 0 14px;
}
.page-footer .links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.page-footer .links a {
  display: inline-block;
  padding: 11px 26px;
  border: 1px solid var(--ab-footer-text);
  border-radius: 100px;
  text-decoration: none;
  color: var(--ab-footer-text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s ease, color 0.2s ease;
}
.page-footer .links a:hover {
  background: var(--ab-footer-text);
  color: var(--ab-footer-bg);
}

.faq-item { border-bottom: 1px solid var(--ab-border-soft); }
.faq-item:first-child { border-top: 1px solid var(--ab-border-soft); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--ab-faq-q-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--ab-text);
}
.faq-question:hover { color: var(--ab-text-muted); }
.faq-question__icon {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
}
.faq-question__icon::before,
.faq-question__icon::after {
  content: "";
  position: absolute;
  background: var(--ab-text);
  transition: transform 0.2s ease;
}
.faq-question__icon::before { top: 10px; left: 2px; right: 2px; height: 2px; }
.faq-question__icon::after { top: 2px; bottom: 2px; left: 10px; width: 2px; }
.faq-item.is-open .faq-question__icon::after { transform: rotate(90deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-answer__inner {
  padding: 0 4px 14px;
  font-weight: 300;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ab-text-soft);
}
.faq-answer__inner ol,
.faq-answer__inner ul { padding-left: 20px; margin: 8px 0; }
.faq-answer__inner li { margin-bottom: 4px; }

.instr-section { margin-bottom: var(--ab-instr-section-gap); }
.instr-section__num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ab-text-faint);
  margin-bottom: 6px;
}
.instr-section h2 {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 21px;
  margin: 0 0 10px;
  color: var(--ab-text);
}
.instr-section h3 {
  font-weight: 700;
  font-size: 15px;
  margin: 16px 0 6px;
  text-transform: uppercase;
  color: var(--ab-text-soft);
}
.instr-section p,
.instr-section ul,
.instr-section ol {
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ab-text-soft);
  margin: 0 0 10px;
}
.instr-section ul,
.instr-section ol { padding-left: 22px; }
.instr-section li { margin-bottom: 6px; }
.instr-section strong { font-weight: 500; color: var(--ab-text); }
.instr-section--highlight {
  padding: 18px 16px;
  border: 1px solid var(--ab-border);
  background: var(--ab-surface-2);
}
.instr-cta {
  display: inline-block;
  margin-top: 6px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ab-text);
}
.instr-cta:hover { color: var(--ab-text-muted); }
.instr-qr-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
}
.instr-qr-link {
  display: inline-flex;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--ab-border);
}
.instr-qr-img {
  display: block;
  width: 140px;
  height: 140px;
}
.instr-qr-meta {
  flex: 1 1 180px;
  font-weight: 300;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ab-text-soft);
}
.instr-qr-meta p { margin: 0 0 8px; }

/* Галерея «Фото в парах» */
.pairs-page {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.pairs-status {
  text-align: center;
  font-weight: 300;
  font-size: 15px;
  color: var(--ab-text-muted);
  padding: 28px 12px;
}
.pairs-status--error { color: var(--ab-err-text); }
.pairs-page .pairs-status { padding-left: 12px; padding-right: 12px; }
/* Меми / фото в парах — свій формат, стик у стик, без обрізання */
.pairs-grid {
  column-count: 2;
  column-gap: 0;
  line-height: 0;
  display: block;
}
.pairs-card {
  margin: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
  border: 0;
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  display: block;
  width: 100%;
}
.pairs-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  vertical-align: top;
}
@media (prefers-reduced-motion: no-preference) {
  .pairs-card:hover img { transform: none; }
}
@media screen and (min-width: 700px) {
  .pairs-grid { column-count: 3; column-gap: 0; }
}
@media screen and (min-width: 1024px) {
  .pairs-grid { column-count: 4; column-gap: 0; }
}

/* Анкета кольорового — спокійний теплий фон + повільні смайлики */
.anketa-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 18% 12%, rgba(255, 228, 200, 0.35), transparent 52%),
    radial-gradient(ellipse at 88% 18%, rgba(255, 214, 190, 0.28), transparent 48%),
    linear-gradient(165deg, #fffaf4 0%, #fff3e8 45%, #ffecd9 100%);
  color: #1a1a1a;
  position: relative;
  overflow-x: hidden;
}
.anketa-body::before { display: none; }
.anketa-meme-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.anketa-meme,
.anketa-emoji {
  position: absolute;
  top: -18vh;
  pointer-events: none;
  user-select: none;
  animation-name: anketa-meme-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}
.anketa-emoji {
  font-size: clamp(22px, 4.2vw, 40px);
  line-height: 1;
  opacity: 0.42;
  filter: saturate(0.9);
}
@keyframes anketa-meme-fall {
  0% { transform: translate3d(0, -20vh, 0) rotate(-10deg); }
  100% { transform: translate3d(18px, 125vh, 0) rotate(22deg); }
}
@media (prefers-reduced-motion: reduce) {
  .anketa-meme,
  .anketa-emoji { animation: none; top: 12%; opacity: 0.22; }
}
.anketa-body > *:not(.anketa-meme-layer) { position: relative; z-index: 1; }
.anketa-kicker {
  color: rgba(0,0,0,.55);
}
.anketa-page { max-width: 640px; padding-bottom: 100px; flex: 1; }
.anketa-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.anketa-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 16px;
  padding: 14px 16px;
  backdrop-filter: blur(6px);
}
.anketa-num {
  font-weight: 700;
  color: rgba(0,0,0,.35);
}
.anketa-q {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: #111;
}
.anketa-note {
  margin: 36px 0 0;
  padding: 18px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  border: 1px dashed rgba(0,0,0,.14);
  color: #222;
  line-height: 1.55;
  font-size: 15px;
  text-align: center;
}
.anketa-note-sep {
  margin: 28px 0 0;
  border: none;
  border-top: 1px solid rgba(0,0,0,.08);
}
.anketa-body .page-hero {
  background: transparent;
  color: #111;
}
.anketa-body .page-hero h1 { color: #111; }
.anketa-body .page-hero p { color: rgba(0,0,0,.72); }
.anketa-body .page-header {
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(8px);
}
.anketa-body .page-footer {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.88);
  border-top: 1px solid rgba(0,0,0,.06);
  backdrop-filter: blur(10px);
}
.anketa-body .page-footer .links a {
  background: #111;
  color: #fff !important;
  border-radius: 100px;
  padding: 12px 22px;
  text-decoration: none;
  font-weight: 500;
}
@media screen and (max-width: 640px) {
  .anketa-q { font-size: 15.5px; }
}

@media screen and (max-width: 600px) {
  .page-hero h1 { font-size: 24px; }
  .page-header__logo { font-size: 13px; }
  .faq-question { font-size: 14.5px; }
  .instr-qr-img { width: 120px; height: 120px; }
}

/* Хаб класів (компактний загальний огляд) */
.hub-main {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--ab-hub-main-pad);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hub-main--compact { max-width: 1100px; }
.hub-intro { margin-bottom: 0; }
.hub-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
  margin: 14px 0 4px;
}
.hub-toolbar__search {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 200px;
}
.hub-toolbar__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ab-text-muted);
}
.hub-toolbar__input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ab-border);
  border-radius: 10px;
  background: var(--ab-surface);
  color: var(--ab-text);
  font-size: 14px;
  line-height: 1.3;
  padding: 9px 12px;
}
.hub-toolbar__input:focus {
  outline: 2px solid var(--ab-accent);
  outline-offset: 1px;
}
.hub-loading { text-align: center; color: var(--ab-text-faint); font-size: 14px; padding: 18px; }
.hub-compact-list { display: flex; flex-direction: column; gap: 14px; }
.hub-school-block {
  background: var(--ab-surface);
  border: 1px solid var(--ab-border);
  border-radius: 14px;
  padding: 14px 16px 10px;
}
.hub-school-block__title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ab-text-muted);
}
.hub-class-row {
  padding: 10px 0;
  border-top: 1px solid var(--ab-border-soft);
  border-radius: 10px;
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hub-class-row:first-of-type { border-top: none; padding-top: 0; }
.hub-class-row.is-all-selected {
  background: #14532d;
  border-color: #166534;
  box-shadow: 0 0 0 2px rgba(20, 83, 45, 0.45);
  padding: 12px 12px;
  margin: 4px 0;
  border-top: 1px solid transparent;
}
.hub-class-row.is-all-selected .hub-class-row__title,
.hub-class-row.is-all-selected .hub-class-row__meta {
  color: #ecfdf5;
}
.hub-class-row.is-all-selected .hub-class-row__meta { color: #bbf7d0; }
.hub-class-row.is-all-selected .hub-class-row__chev { opacity: .85; color: #bbf7d0; }
.hub-class-row.is-all-selected .hub-chip {
  background: #166534;
  border-color: #15803d;
  color: #ecfdf5;
}
.hub-class-row.is-all-selected .hub-chip.is-done {
  background: #15803d;
  border-color: #22c55e;
  color: #ecfdf5;
}
html[data-theme="dark"] .hub-class-row.is-all-selected {
  background: #0f3d24;
  box-shadow: 0 0 0 2px rgba(22, 101, 52, 0.45);
}
.hub-class-row__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 6px;
}
.hub-class-row__title {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ab-text);
}
.hub-class-row__meta {
  font-size: 12px;
  color: var(--ab-text-muted);
}
.hub-class-row__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
}
.hub-class-row__empty {
  font-size: 12px;
  color: var(--ab-text-faint);
}
.hub-wait-photos {
  margin: 0;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}
.hub-wait-photos__text {
  display: block;
  font-size: clamp(18px, 4.2vw, 26px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--ab-text);
}
.hub-wait-photos__emoji {
  display: block;
  font-size: clamp(20px, 4vw, 28px);
  line-height: 1;
  letter-spacing: 0.12em;
}
.hub-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--ab-border);
  background: var(--ab-surface-2);
  color: var(--ab-text-muted);
  font-size: 11px;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}
.hub-chip:hover { border-color: var(--ab-border-strong); color: var(--ab-text); }
.hub-chip.is-done {
  background: var(--ab-ok-bg);
  border-color: var(--ab-ok-border);
  color: var(--ab-ok-text);
  font-weight: 500;
}
.hub-chip__mark {
  font-size: 10px;
  font-weight: 700;
}
.hub-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ab-text-muted);
  margin: 0 0 12px;
}
.hub-back-link {
  font-size: 13px;
  color: var(--ab-text-muted);
  text-decoration: none;
  font-weight: 500;
}
.hub-back-link:hover { color: var(--ab-text); }

/* Вибір школи → класу (gallery / hub) */
.school-pick__hint {
  font-size: 14px;
  color: var(--ab-text-muted);
  margin: 0 0 16px;
  line-height: 1.45;
}
.school-pick__empty {
  text-align: center;
  color: var(--ab-text-faint);
  font-size: 14px;
  margin: 24px 0 0;
}
.school-pick__back {
  display: inline-block;
  border: none;
  background: none;
  padding: 0;
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ab-text-muted);
  cursor: pointer;
  font-family: inherit;
}
.school-pick__back:hover { color: var(--ab-text); }
.school-pick__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.school-pick__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--ab-border);
  border-radius: 12px;
  background: var(--ab-surface);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: var(--ab-text);
  transition: background .15s ease, border-color .15s ease;
}
.school-pick__btn:hover {
  background: var(--ab-surface-2);
  border-color: var(--ab-border-mid);
}
.school-pick__btn strong { font-weight: 600; }
.school-pick__meta {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--ab-text-faint);
  font-weight: 400;
}

.hub-class-row__toggle {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.hub-class-row__toggle:hover .hub-class-row__title { opacity: .75; }
.hub-class-row__chev {
  display: inline-block;
  font-size: 12px;
  opacity: .55;
  transition: transform .2s ease;
}
.hub-class-row.is-open .hub-class-row__chev { transform: rotate(180deg); }
.hub-class-row__expanded {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ab-border-soft);
}
.hub-class-row__expanded--wait {
  display: block;
  grid-template-columns: none;
}
.hub-class-row__expanded[hidden] { display: none !important; }
.hub-kid {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--ab-border);
  border-radius: 12px;
  padding: 10px;
  background: var(--ab-surface-2);
}
.hub-kid.is-done { background: var(--ab-surface); border-color: var(--ab-border-mid); }
.hub-kid__photo {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ab-border);
  display: block;
  padding: 0;
  border: none;
  cursor: zoom-in;
  appearance: none;
  -webkit-appearance: none;
}
button.hub-kid__photo:focus-visible {
  outline: 2px solid var(--ab-accent);
  outline-offset: 2px;
}
.hub-kid__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.hub-kid__photo--empty {
  background: repeating-linear-gradient(-45deg, var(--ab-photo-bg), var(--ab-photo-bg) 6px, var(--ab-surface-2) 6px, var(--ab-surface-2) 12px);
}
.hub-kid__name { font-weight: 600; font-size: 14px; color: var(--ab-text); line-height: 1.3; }
.hub-kid__quote { margin-top: 4px; font-size: 12px; line-height: 1.4; color: var(--ab-text-soft); }
.hub-kid__quote--empty { color: var(--ab-text-faint); }
.hub-kid__quote--flagged { color: var(--ab-err-text); }
.hub-kid__profanity-badge,
.quote-profanity-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ab-err-text);
  background: var(--ab-err-bg);
  border: 1px solid var(--ab-err-border);
  border-radius: 6px;
  vertical-align: middle;
}
.hub-kid.is-quote-flagged {
  outline: 1px solid var(--ab-err-border);
  background: color-mix(in srgb, var(--ab-err-bg) 55%, transparent);
  border-radius: 10px;
}
.hub-kid__link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ab-accent);
  text-decoration: underline;
}
.hub-chip { cursor: default; }

/* Gallery modal (overrides inline page styles when themed) */
html[data-theme="dark"] .modal-box {
  background: var(--ab-surface);
  color: var(--ab-text);
}
html[data-theme="dark"] .lock-modal-warn {
  background: var(--ab-err-bg);
  border-color: var(--ab-err-border);
  color: var(--ab-err-text);
}
html[data-theme="dark"] .lock-modal-meta { color: var(--ab-text-soft) !important; }
html[data-theme="dark"] .lock-confirm-input {
  border-color: var(--ab-border-mid);
  background: var(--ab-surface-2);
  color: var(--ab-text);
}
html[data-theme="dark"] .lock-confirm-input:focus {
  border-color: var(--ab-accent);
  box-shadow: 0 0 0 2px var(--ab-accent);
}
html[data-theme="dark"] .lock-confirm-input::placeholder {
  color: var(--ab-text-faint);
  opacity: 1;
}
html[data-theme="dark"] #lock-confirm-close {
  color: var(--ab-text-faint) !important;
}
html[data-theme="dark"] #lock-confirm-close:hover {
  color: var(--ab-text) !important;
}
/* Inline styles on lock confirm label / name hint */
html[data-theme="dark"] label[for="lock-confirm-input"] {
  color: var(--ab-text-muted) !important;
}
html[data-theme="dark"] #lock-confirm-hint {
  color: var(--ab-text) !important;
}
html[data-theme="dark"] #edit_child_name:disabled {
  background: var(--ab-surface-3);
  color: var(--ab-text-muted);
}

/* Головна: кастомні секції + бронювання */
html[data-theme="dark"] body {
  background-color: var(--ab-bg);
  color: var(--ab-text);
}
/* Homepage band alternation: white ↔ soft gray (theme surfaces) */
html[data-theme="dark"] .gv-section[style*="#ffffff"],
html[data-theme="dark"] #rec_online_board[style*="#ffffff"] {
  background-color: var(--ab-bg) !important;
}
html[data-theme="dark"] .gv-section[style*="#ebebeb"],
html[data-theme="dark"] .gv-section[style*="#f0f0f0"],
html[data-theme="dark"] #rec_online_board[style*="#ebebeb"],
html[data-theme="dark"] #rec_online_board[style*="#f0f0f0"] {
  background-color: var(--ab-surface-2) !important;
}
html[data-theme="dark"] #rec_online_board.online-board-section {
  border-top-color: var(--ab-border);
  border-bottom-color: var(--ab-border);
  box-shadow: none;
}
html[data-theme="dark"] #rec_online_board .t795__title::after {
  background: var(--ab-accent);
}
html[data-theme="dark"] .gv-title,
html[data-theme="dark"] .gv-macet-card__name,
html[data-theme="dark"] .gv-loc-card__name,
html[data-theme="dark"] .gv-portfolio__year h3,
html[data-theme="dark"] .gv-service-row__price,
html[data-theme="dark"] .gv-intro__lead {
  color: var(--ab-text) !important;
}
html[data-theme="dark"] .gv-descr,
html[data-theme="dark"] .gv-macet-card__price,
html[data-theme="dark"] .gv-loc-card__descr,
html[data-theme="dark"] .gv-intro,
html[data-theme="dark"] .gv-intro__size,
html[data-theme="dark"] .gv-intro-list li,
html[data-theme="dark"] .gv-intro__note,
html[data-theme="dark"] .gv-portfolio__chip {
  color: var(--ab-text-muted) !important;
}
html[data-theme="dark"] .gv-intro-list li::before {
  background: var(--ab-accent);
}
html[data-theme="dark"] .gv-btn {
  background: var(--ab-cta) !important;
  color: var(--ab-cta-text) !important;
}
html[data-theme="dark"] .gv-macet-card,
html[data-theme="dark"] .gv-loc-card,
html[data-theme="dark"] .gv-services,
html[data-theme="dark"] .gv-link-card {
  background: var(--ab-surface) !important;
  border-color: var(--ab-border) !important;
  color: var(--ab-text) !important;
}
html[data-theme="dark"] .gv-service-row {
  color: var(--ab-text-soft) !important;
  border-bottom-color: var(--ab-border-soft) !important;
}
html[data-theme="dark"] .gv-macet-card__body,
html[data-theme="dark"] .gv-loc-card__body {
  color: var(--ab-text);
}

/* Онлайн-табло + заголовки на index */
html[data-theme="dark"] #rec_online_board .t795__title,
html[data-theme="dark"] #rec_online_board .t-title,
html[data-theme="dark"] .online-board__class {
  color: var(--ab-text) !important;
}
html[data-theme="dark"] #rec_online_board .t795__descr,
html[data-theme="dark"] #rec_online_board .t-descr,
html[data-theme="dark"] .online-board__status,
html[data-theme="dark"] .online-board__school,
html[data-theme="dark"] #online-board-loading,
html[data-theme="dark"] #online-board-empty {
  color: var(--ab-text-muted) !important;
}
html[data-theme="dark"] #online-board-error {
  color: var(--ab-err-text) !important;
}
html[data-theme="dark"] .online-board__card {
  background: var(--ab-surface) !important;
  background: color-mix(in srgb, var(--board-tint, transparent) 14%, var(--ab-surface)) !important;
  border-color: var(--ab-border) !important;
  color: var(--ab-text) !important;
}
html[data-theme="dark"] .online-board__card:hover {
  background: var(--ab-surface-2) !important;
  background: color-mix(in srgb, var(--board-tint, transparent) 20%, var(--ab-surface-2)) !important;
}
/* DONE celebration — dark theme (overrides generic card tint) */
html[data-theme="dark"] .online-board__card--DONE {
  border-color: #34d399 !important;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(250, 204, 21, 0.22), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(52, 211, 153, 0.18), transparent 50%),
    linear-gradient(155deg, #0f2a1f 0%, #1a2e22 45%, #14261c 100%) !important;
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.28), 0 10px 28px rgba(16, 185, 129, 0.22) !important;
}
html[data-theme="dark"] .online-board__card--DONE:hover {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(250, 204, 21, 0.3), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(52, 211, 153, 0.26), transparent 50%),
    linear-gradient(155deg, #123526 0%, #1f3a28 45%, #183224 100%) !important;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.45), 0 14px 32px rgba(16, 185, 129, 0.3) !important;
}
html[data-theme="dark"] .online-board__confetti span {
  opacity: 0.95;
  box-shadow: 0 0 6px color-mix(in srgb, var(--c-color, #f43f5e) 55%, transparent);
}
html[data-theme="dark"] .online-board__status--done {
  color: #6ee7b7 !important;
}
html[data-theme="dark"] .online-board__btn {
  background: var(--ab-cta) !important;
  color: var(--ab-cta-text) !important;
}

html[data-theme="dark"] #booking-fab {
  background: var(--ab-surface);
  color: var(--ab-text);
  border-color: var(--ab-accent);
}
html[data-theme="dark"] #booking-fab:hover {
  background: var(--ab-cta);
  color: var(--ab-cta-text);
}
html[data-theme="dark"] .booking-modal {
  background: var(--ab-surface);
  color: var(--ab-text) !important;
}
html[data-theme="dark"] .booking-modal__title,
html[data-theme="dark"] .booking-thankyou__title {
  color: var(--ab-text) !important;
}
html[data-theme="dark"] .booking-modal__descr,
html[data-theme="dark"] .booking-field label,
html[data-theme="dark"] .booking-field__hint,
html[data-theme="dark"] .booking-thankyou__text,
html[data-theme="dark"] .chip-row__pos-label,
html[data-theme="dark"] .pos-search__empty {
  color: var(--ab-text-muted) !important;
}
html[data-theme="dark"] .booking-field--checkbox label,
html[data-theme="dark"] .booking-layout-options label,
html[data-theme="dark"] .booking-extras label,
html[data-theme="dark"] .booking-extras__price,
html[data-theme="dark"] .pos-search__opt {
  color: var(--ab-text) !important;
}
html[data-theme="dark"] .booking-layout-options label,
html[data-theme="dark"] .booking-extras label {
  border-bottom-color: var(--ab-border-soft);
}
html[data-theme="dark"] .booking-field input[type="text"],
html[data-theme="dark"] .booking-field input[type="tel"],
html[data-theme="dark"] .booking-field input[type="number"],
html[data-theme="dark"] .booking-field textarea,
html[data-theme="dark"] .chip-row input,
html[data-theme="dark"] .chip-row__position {
  background: var(--ab-surface-2) !important;
  border-color: var(--ab-border-mid) !important;
  color: var(--ab-text) !important;
}
html[data-theme="dark"] .booking-field input::placeholder,
html[data-theme="dark"] .booking-field textarea::placeholder,
html[data-theme="dark"] .chip-row input::placeholder,
html[data-theme="dark"] .chip-row__position::placeholder,
html[data-theme="dark"] .alboom-app input::placeholder,
html[data-theme="dark"] .alboom-app textarea::placeholder {
  color: var(--ab-text-faint) !important;
  opacity: 1;
}
html[data-theme="dark"] .booking-field input:focus,
html[data-theme="dark"] .booking-field textarea:focus,
html[data-theme="dark"] .chip-row input:focus,
html[data-theme="dark"] .chip-row__position:focus {
  border-color: var(--ab-accent) !important;
  background: var(--ab-surface) !important;
}
html[data-theme="dark"] .booking-layout-options,
html[data-theme="dark"] .booking-extras,
html[data-theme="dark"] .chip-row--with-position,
html[data-theme="dark"] .booking-estimate,
html[data-theme="dark"] .booking-thankyou__paynote {
  background: var(--ab-surface-2) !important;
  border-color: var(--ab-border) !important;
  color: var(--ab-text) !important;
}
html[data-theme="dark"] .chip-row__num {
  background: var(--ab-surface-3) !important;
  color: var(--ab-text-muted) !important;
}
html[data-theme="dark"] .chip-row__remove {
  color: var(--ab-text-faint) !important;
}
html[data-theme="dark"] #booking-modal-close,
html[data-theme="dark"] #booking-thankyou-close {
  color: var(--ab-text-faint) !important;
}
html[data-theme="dark"] #booking-modal-close:hover,
html[data-theme="dark"] #booking-thankyou-close:hover {
  color: var(--ab-text) !important;
}
html[data-theme="dark"] .booking-required-mark,
html[data-theme="dark"] .booking-error,
html[data-theme="dark"] .chip-row__remove:hover {
  color: var(--ab-danger) !important;
}
html[data-theme="dark"] .booking-submit {
  background: var(--ab-cta) !important;
  color: var(--ab-cta-text) !important;
}
html[data-theme="dark"] .booking-modal--thankyou {
  border-top-color: var(--ab-accent);
}
html[data-theme="dark"] .booking-thankyou__links a {
  border-color: #d4cfc7 !important;
  color: #f2f2f2 !important;
}
html[data-theme="dark"] .booking-thankyou__links a:hover {
  background: #d4cfc7 !important;
  color: #121212 !important;
}
html[data-theme="dark"] .booking-thankyou__links--social a {
  border-color: var(--ab-border-mid) !important;
  color: #d1d5db !important;
}
html[data-theme="dark"] .chip-add-btn {
  border-color: var(--ab-border-mid) !important;
  color: var(--ab-text-muted) !important;
}
html[data-theme="dark"] .chip-add-btn:hover {
  border-color: var(--ab-accent) !important;
  color: var(--ab-accent) !important;
}
html[data-theme="dark"] .pos-search__list {
  background: var(--ab-surface) !important;
  border-color: var(--ab-border) !important;
}
html[data-theme="dark"] .pos-search__opt {
  background: var(--ab-surface) !important;
}
html[data-theme="dark"] .pos-search__opt:hover,
html[data-theme="dark"] .pos-search__opt:focus {
  background: var(--ab-surface-3) !important;
}

/* Автодоповнення населених пунктів (бронювання / кабінет) */
.city-suggest {
  position: relative;
  width: 100%;
}
.city-suggest__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.city-suggest__opt {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: #fff;
  padding: 9px 12px;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  color: #222;
  cursor: pointer;
}
.city-suggest__opt:hover,
.city-suggest__opt:focus {
  background: #f3f3f3;
}
.city-suggest__opt-kind {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #888;
}
.city-suggest__empty {
  padding: 10px 12px;
  font-size: 13px;
  color: #999;
}
html[data-theme="dark"] .city-suggest__list {
  background: var(--ab-surface) !important;
  border-color: var(--ab-border) !important;
}
html[data-theme="dark"] .city-suggest__opt {
  background: var(--ab-surface) !important;
  color: var(--ab-text) !important;
}
html[data-theme="dark"] .city-suggest__opt:hover,
html[data-theme="dark"] .city-suggest__opt:focus {
  background: var(--ab-surface-3) !important;
}
html[data-theme="dark"] .city-suggest__opt-kind,
html[data-theme="dark"] .city-suggest__empty {
  color: var(--ab-text-muted) !important;
}

/* Gallery / hub: Tailwind gray utilities stay dark — remap on dark theme */
html[data-theme="dark"] .alboom-app .text-black,
html[data-theme="dark"] .alboom-app .text-gray-700,
html[data-theme="dark"] .alboom-app .text-gray-800,
html[data-theme="dark"] .alboom-app .text-gray-900 {
  color: var(--ab-text) !important;
}
html[data-theme="dark"] .alboom-app .text-gray-500,
html[data-theme="dark"] .alboom-app .text-gray-600 {
  color: var(--ab-text-muted) !important;
}
html[data-theme="dark"] .alboom-app .text-gray-300,
html[data-theme="dark"] .alboom-app .text-gray-400 {
  color: var(--ab-text-faint) !important;
}
html[data-theme="dark"] .alboom-app .hover\:text-black:hover {
  color: var(--ab-text) !important;
}
html[data-theme="dark"] .alboom-app .bg-white {
  background-color: var(--ab-surface) !important;
}
html[data-theme="dark"] .alboom-app .bg-gray-50,
html[data-theme="dark"] .alboom-app .bg-gray-100 {
  background-color: var(--ab-surface-2) !important;
}
html[data-theme="dark"] .alboom-app .border-gray-200,
html[data-theme="dark"] .alboom-app .border-gray-300 {
  border-color: var(--ab-border-mid) !important;
}
html[data-theme="dark"] .alboom-app .border-black,
html[data-theme="dark"] .alboom-app .focus\:border-black:focus {
  border-color: var(--ab-accent) !important;
}
html[data-theme="dark"] .alboom-app .focus\:ring-black:focus {
  --tw-ring-color: var(--ab-accent);
}
html[data-theme="dark"] .alboom-app input[type="text"],
html[data-theme="dark"] .alboom-app input[type="tel"],
html[data-theme="dark"] .alboom-app input[type="number"],
html[data-theme="dark"] .alboom-app input[type="url"],
html[data-theme="dark"] .alboom-app textarea,
html[data-theme="dark"] .alboom-app select {
  background-color: var(--ab-surface-2) !important;
  color: var(--ab-text) !important;
  border-color: var(--ab-border-mid) !important;
}
html[data-theme="dark"] .alboom-app .border-amber-200 {
  border-color: var(--ab-warn-border) !important;
}
html[data-theme="dark"] .alboom-app .bg-amber-50 {
  background-color: var(--ab-warn-bg) !important;
}
html[data-theme="dark"] .alboom-app .text-amber-700,
html[data-theme="dark"] .alboom-app .text-amber-800,
html[data-theme="dark"] .alboom-app .text-amber-900 {
  color: var(--ab-warn-text) !important;
}
html[data-theme="dark"] .alboom-app .text-emerald-700 {
  color: var(--ab-ok-text) !important;
}
html[data-theme="dark"] .alboom-app .text-red-500,
html[data-theme="dark"] .alboom-app .text-red-600 {
  color: var(--ab-err-text) !important;
}

/* Autofill: keep light ink on dark fields */
html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] textarea:-webkit-autofill,
html[data-theme="dark"] select:-webkit-autofill {
  -webkit-text-fill-color: var(--ab-text) !important;
  caret-color: var(--ab-text);
  box-shadow: 0 0 0 1000px var(--ab-surface-2) inset !important;
  transition: background-color 99999s ease-out;
}

/* FAQ / instruction body when themed */
html[data-theme="dark"] body:not(.alboom-app):not(.admin-cabinet) {
  background: var(--ab-bg);
  color: var(--ab-text);
}
html[data-theme="dark"] .instr-section__num {
  color: var(--ab-text-muted);
}
html[data-theme="dark"] .instr-section--highlight {
  background: var(--ab-surface-2);
  border-color: var(--ab-border);
}
html[data-theme="dark"] .instr-qr-link {
  background: #fff;
}
html[data-theme="dark"] .anketa-body {
  /* залишаємо кольоровий фон анкети і в темній темі */
}
html[data-theme="dark"] .anketa-item {
  background: rgba(255,255,255,.86);
  color: #111;
}

/* Drawer / theme controls stay light on dark surfaces */
html[data-theme="dark"] .site-drawer__section-title,
html[data-theme="dark"] .site-theme__btn {
  color: var(--ab-text-faint);
}
html[data-theme="dark"] .site-theme__btn:hover,
html[data-theme="dark"] .site-theme__btn.is-active {
  color: var(--ab-text-muted);
}
html[data-theme="dark"] .site-drawer__close {
  color: var(--ab-text-faint);
}
html[data-theme="dark"] .site-drawer__close:hover {
  color: var(--ab-text);
}

/* Classic theme: keep cover / contact titles light on dark photo overlays */
.t-cover .t-title,
.t-cover .t734__title,
.t-cover .t455__title,
#rec367621059 .t455__title {
  color: #fff !important;
}

/* Посилання: без помаранчевого visited з браузера / старих стилів */
a:visited {
  color: inherit;
}
.gv-legal-footnote a:visited,
.page-footer a:visited,
.page-header a:visited,
.legal-doc a:visited,
.booking-thankyou__links a:visited {
  color: inherit;
}
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 10050;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 16px;
  background: var(--ab-surface, #fff);
  color: var(--ab-text, #111);
  border: 1px solid var(--ab-border, #e5e7eb);
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  border-radius: 12px;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}
.cookie-banner__text { margin: 0; flex: 1 1 220px; font-family: inherit; }
.cookie-banner__text a {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: inherit;
  font-family: inherit;
  pointer-events: auto;
  cursor: pointer;
}
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-banner__btn {
  border: 1px solid var(--ab-border-strong, #111);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  background: transparent;
  color: inherit;
}
.cookie-banner__btn--accept {
  background: var(--ab-accent, #000);
  color: var(--ab-accent-text, #fff);
  border-color: transparent;
}
.cookie-banner__btn--reject:hover { background: var(--ab-outline-hover, #f2f2f2); }

/* Кнопка бронювання піднімається над cookie-банером */
body.has-cookie-banner #booking-fab {
  bottom: 118px !important;
}
@media screen and (max-width: 640px) {
  body.has-cookie-banner #booking-fab {
    bottom: 150px !important;
  }
}
