/* ==========================================================================
   DERMILUNA — WHITE LUXURY CLINICAL STYLE (БІЛИЙ ПРЕМІУМ-СТИЛЬ)
   Захищений від примусового Dark Mode на Samsung Internet та Android Chrome.
   Побудований за мобільними стандартами FinishCenter.
   ========================================================================== */

:root {
  color-scheme: only light !important;

  /* Чиста біла та порцелянова палітра */
  --bg-body: #FFFFFF;
  --bg-subtle: #FAF8F5;
  --bg-card: #FFFFFF;
  --bg-topbar: #F5EFE6;
  --bg-badge: #F4ECE0;

  --text-main: #1C1917;
  --text-secondary: #57524E;
  --text-muted: #8C847E;
  --text-topbar: #443E3A;

  /* Шляхетне золото та шампань */
  --gold-primary: #B89248;
  --gold-hover: #9E7B35;
  --gold-light: #F7EFE0;
  --gold-border: rgba(184, 146, 72, 0.32);
  --gold-gradient: linear-gradient(135deg, #CBA65C 0%, #AD873E 100%);

  --border-light: #ECE6DE;
  --border-soft: #F2ECE4;

  --green-online: #16A34A;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --shadow-sm: 0 2px 8px rgba(35, 30, 25, 0.04);
  --shadow-md: 0 10px 30px rgba(35, 30, 25, 0.06);
  --shadow-gold: 0 4px 16px rgba(184, 146, 72, 0.28);
}

/* ==========================================================================
   ЗАХИСТ ВІД ПРИМУСОВОГО ТЕМНОГО РЕЖИМУ (SAMSUNG / ANDROID CHROMIUM)
   Декларуємо "only light", щоб рушій браузера не інвертував чистий білий стиль.
   ========================================================================== */
:root, html, body {
  color-scheme: only light !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent !important;
}

html {
  scroll-behavior: smooth;
  background-color: #FFFFFF !important;
}

body {
  font-family: var(--font-sans);
  background-color: #FFFFFF !important;
  /* Лінійний градієнт блокує інверсію фону в браузері Samsung Internet */
  background-image: linear-gradient(180deg, #FFFFFF 0%, #FAF8F5 100%) !important;
  background-attachment: fixed;
  color: var(--text-main) !important;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   1. СВІТЛА ВЕРХНЯ ШТОРКА (Utility Topbar — FinishCenter Style)
   ========================================================================== */
.topbar {
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.815rem;
  color: var(--text-topbar);
  padding: 0.45rem 1.5rem;
}

.topbar-container {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-topbar);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.topbar-item:hover {
  color: var(--gold-hover);
}

.topbar-divider {
  opacity: 0.35;
}

/* ==========================================================================
   2. ГОЛОВНИЙ ХЕДЕР (Sticky White Header)
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  padding: clamp(0.5rem, 0.8vw, 0.85rem) clamp(1rem, 3vw, 2.5rem);
}

.header-surface,
.footer-surface {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  color-scheme: only light;
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

@media (forced-colors: active) {
  .header-surface {
    display: none;
  }
}

.nav-container {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 1.8vw, 2.5rem);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  color-scheme: only light;
  forced-color-adjust: none;
}

.nav-logo-desktop {
  display: block;
  width: clamp(170px, 16vw, 220px);
  height: auto;
  object-fit: contain;
  color-scheme: only light;
  forced-color-adjust: none;
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

.nav-logo-compact {
  display: none;
  aspect-ratio: 1200 / 250;
  width: 180px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  color-scheme: only light;
  forced-color-adjust: none;
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 2.2rem);
  list-style: none;
}

.nav-menu a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: clamp(0.8rem, 0.85vw, 0.925rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-label {
  display: inline-block;
}

.nav-ink {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.has-painted-label .nav-label {
  opacity: 0;
}

@media (forced-colors: active) {
  .nav-ink { display: none; }
  .has-painted-label .nav-label { opacity: 1; }
}

.nav-menu a:hover {
  color: var(--gold-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.6rem;
  background: var(--gold-gradient);
  color: #FFFFFF;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: var(--shadow-gold);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184, 146, 72, 0.4);
}

/* ==========================================================================
   3. HERO (EDITORIAL CLINICAL WHITE HERO)
   ========================================================================== */
main {
  flex: 1;
}

.hero-wrap {
  max-width: 1280px;
  margin: 3.5rem auto 4.5rem;
  padding: 0 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4rem;
}

.brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  background: var(--bg-badge);
  color: var(--gold-hover);
  border-radius: 9999px;
  font-size: 0.785rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid var(--gold-border);
}

.hero-title-brand {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1.12;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero-title-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--gold-hover);
  margin-top: 0.5rem;
  line-height: 1.35;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-primary-luxury {
  padding: 0.95rem 2.2rem;
  background: var(--gold-gradient);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.975rem;
  box-shadow: var(--shadow-gold);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-primary-luxury:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 146, 72, 0.45);
}

.btn-secondary-luxury {
  padding: 0.95rem 2rem;
  background: #FFFFFF;
  color: var(--text-main);
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.975rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-secondary-luxury:hover {
  border-color: var(--gold-primary);
  color: var(--gold-hover);
  transform: translateY(-2px);
}

.hero-tags {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hero-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-tag-item::before {
  content: '✓';
  color: var(--gold-primary);
  font-weight: bold;
}

/* HERO RIGHT: ЧИСТИЙ БІЛИЙ АРТ-ФРЕЙМ */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-art-frame {
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.hero-art-mark {
  max-width: 270px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(184, 146, 72, 0.15));
  transition: transform 0.4s ease;
}

.hero-art-mark:hover {
  transform: scale(1.03);
}

.hero-art-caption {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   4. СТОВПИ ДОВІРИ (White Trust Strip)
   ========================================================================= */
.trust-strip {
  max-width: 1280px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.trust-inner {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  padding: 2.25rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}

.trust-icon {
  font-size: 1.85rem;
  line-height: 1;
}

.trust-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.trust-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   5. НАПРЯМКИ
   ========================================================================== */
.content-section {
  max-width: 1280px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.section-head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-primary);
}

.card-num {
  font-family: var(--font-serif);
  color: var(--gold-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-heading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.card-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   5b. АВТОРСЬКА ПРАКТИКА ЛІКАРЯ
   ========================================================================== */
.doctor-section {
  max-width: 1280px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.doctor-card-wrap {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.doctor-card-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
}

.doctor-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3.5rem;
  align-items: center;
}

.doctor-visual {
  text-align: center;
}

.doctor-badge-frame {
  background: #FFFFFF;
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.doctor-frame-kicker {
  display: inline-block;
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.doctor-mark-symbol {
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin: 0 auto 1.25rem;
  display: block;
}

.doctor-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.doctor-spec {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.doctor-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.doctor-lead-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.doctor-pillars {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0.25rem 0;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: var(--text-main);
  line-height: 1.55;
}

.pillar-bullet {
  color: var(--gold-primary);
  font-size: 0.85rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.doctor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.doctor-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.doctor-contact-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
  .doctor-card-wrap {
    padding: 2.25rem 1.5rem;
  }
  .doctor-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .doctor-badge-frame {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   6. ПІДВАЛ (Clean White/Cream Footer)
   ========================================================================== */
.footer {
  position: relative;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  padding: 4rem 1.5rem 2.5rem;
  margin-top: 5rem;
  text-align: center;
}

.footer-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.footer-wordmark {
  display: inline-block;
  width: 180px;
  height: auto;
  margin-bottom: 1.25rem;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  color-scheme: only light;
  forced-color-adjust: none;
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

.footer-badge {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.footer-contacts {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-contact-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-contact-link:hover {
  color: var(--gold-hover);
}

.footer-rights {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* ==========================================================================
   МОБІЛЬНА НАВІГАЦІЯ: ШВИДКІ ПІГУЛКИ ТА DRAWER-МЕНЮ
   ========================================================================== */
.mobile-nav-pills-bar {
  display: none;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  padding: 0.5rem 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 52px;
  z-index: 990;
}
.mobile-nav-pills-bar::-webkit-scrollbar {
  display: none;
}

.mobile-nav-pills-scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.m-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.m-pill:hover, .m-pill:active {
  border-color: var(--gold-primary);
  color: var(--gold-hover);
}

.m-pill-gold {
  background: var(--gold-light);
  border-color: var(--gold-border);
  color: var(--gold-hover);
  font-weight: 600;
}

/* Кнопка-гамбургер для мобільних */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-menu-toggle .menu-bar {
  width: 16px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  border-color: var(--gold-primary);
}

/* Затемнення для мобільного drawer */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 21, 19, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

/* Drawer меню */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: #FFFFFF;
  z-index: 10001;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-menu-drawer.is-active {
  transform: translateX(0);
}

.mobile-menu-drawer[hidden],
.mobile-drawer-backdrop[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-drawer {
    transition: none !important;
  }
  .mobile-drawer-backdrop {
    transition: none !important;
  }
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-drawer-close:hover {
  border-color: var(--gold-primary);
  color: var(--gold-hover);
}

.mobile-drawer-links {
  list-style: none;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-drawer-links li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  background: transparent;
}

.mobile-drawer-links li a:hover,
.mobile-drawer-links li a.is-highlight {
  background: var(--bg-subtle);
  color: var(--gold-hover);
  border: 1px solid var(--border-soft);
}

.mobile-drawer-links li a.is-highlight {
  background: var(--gold-light);
  border-color: var(--gold-border);
  font-weight: 600;
}

.mobile-drawer-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drawer-contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  border-radius: 8px;
}

.drawer-contact-item:hover {
  color: var(--gold-hover);
}

/* ==========================================================================
   МОБІЛЬНИЙ РЕЖИМ (ФОКУС НА SAMSUNG ТА СМАРТФОНИ)
   ========================================================================== */
@media (max-width: 860px) {
  /* Мобільна шторка — компактна: місто + телефон */
  .topbar {
    padding: 0.35rem 0.75rem;
  }
  .topbar-container {
    justify-content: center;
    gap: 0.75rem;
  }
  .topbar-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
  .topbar-right {
    display: none;
  }

  /* Мобільний хедер: компактні та вивірені пропорції */
  .header {
    padding: 0.5rem 0.75rem;
    background: #FFFFFF;
  }

  .nav-container {
    gap: 0.5rem;
  }

  /* Повністю приховуємо десктопний nav на мобільних */
  .header nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-nav-pills-bar {
    display: none !important;
  }

  .nav-logo {
    padding: 0;
    border-radius: 0;
  }

  /* Компактний логотип для мобільних екранів */
  .nav-logo-desktop {
    display: none;
  }

  .nav-logo-compact {
    display: block;
    width: 170px;
    height: auto;
  }

  /* Кнопка на смартфоні — не роздута, витончена капсула */
  .nav-cta-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.775rem;
    font-weight: 600;
    border-radius: 9999px;
  }

  /* Hero адаптивність */
  .hero-wrap {
    margin: 2rem auto 3rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-title-brand {
    font-size: 2.6rem;
  }
  .hero-title-sub {
    font-size: 1.2rem;
  }
  .hero-lead {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
    gap: 0.75rem;
  }
  .btn-primary-luxury, .btn-secondary-luxury {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.925rem;
  }
  .hero-tags {
    justify-content: center;
    gap: 1rem;
    font-size: 0.8rem;
  }

  .hero-art-frame {
    padding: 2rem 1.5rem;
    max-width: 320px;
    margin: 0 auto;
  }
  .hero-art-mark {
    max-width: 200px;
  }

  .trust-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.75rem 1.5rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Canvas composites use original PNGs; no independently recolorable SVG matte. */
.brand-slot { position: relative; }
.brand-slot > img { display: block; width: 100%; height: auto; }
.brand-slot > .compact-mark { position: absolute; left: 0; top: 0; width: 20.833333%; height: 100%; }
.brand-slot > .compact-wordmark { position: absolute; left: 23.333333%; top: 11.363636%; width: 75%; height: auto; }
.brand-ink, .text-ink { position: absolute; left: 0; top: 0; pointer-events: none; }
.brand-painted > img { opacity: 0; }
.paint-label { position: relative; }
.paint-source { display: inline; }
.text-painted > .paint-source { opacity: 0; }
.footer-wordmark { aspect-ratio: 1323 / 284; }
@media (forced-colors: active) {
  .header-surface, .footer-surface, .brand-ink, .text-ink, .nav-ink { display: none; }
  .brand-painted > img, .text-painted > .paint-source { opacity: 1; }
}
@media print {
  .header-surface, .footer-surface, .brand-ink, .text-ink, .nav-ink { display: none; }
  .brand-painted > img, .text-painted > .paint-source { opacity: 1; }
}

/* ==========================================================================
   7. МОДАЛЬНЕ ВІКНО «ЗАПИСАТИСЯ» (SPLIT-КАЛЕНДАР)
   ========================================================================== */
.booking-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.booking-modal-backdrop[hidden] {
  display: none !important;
}

.booking-modal-backdrop.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.booking-modal-card {
  background: #FFFFFF;
  border-radius: 24px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(28, 25, 23, 0.25);
  border: 1px solid var(--border-light);
  position: relative;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-surface {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  border-radius: 24px;
}

.booking-modal-backdrop.is-active .booking-modal-card {
  transform: scale(1) translateY(0);
}

.booking-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.booking-modal-close:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
  border-color: var(--gold-primary);
}

.modal-header-strip {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  position: relative;
  z-index: 1;
}

.modal-header-logo {
  display: block;
  height: 38px;
  width: calc(38px * 1408 / 578);
  aspect-ratio: 1408 / 578;
  max-width: 120px;
  flex-shrink: 0;
}

.modal-header-logo > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-header-meta {
  text-align: right;
  padding-right: 2.25rem;
}

.modal-header-kicker {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: block;
  font-weight: 600;
}

.modal-header-title {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
}

.booking-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 720px) {
  .booking-split-grid {
    grid-template-columns: 1fr;
  }
}

.modal-col-left {
  padding: 1.5rem;
  background: var(--bg-subtle);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 720px) {
  .modal-col-left {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
}

.modal-col-right {
  padding: 1.5rem;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal-step-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-cal-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.cal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cal-nav-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.15s ease;
  line-height: 1;
}

.cal-nav-btn:hover:not(:disabled) {
  border-color: var(--gold-primary);
  color: var(--gold-hover);
  background: var(--gold-light);
}

.cal-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
}

.cal-day-btn {
  padding: 0.45rem 0.2rem;
  font-size: 0.775rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.cal-day-btn:hover:not(.is-disabled) {
  background: var(--gold-light);
  color: var(--gold-hover);
}

.cal-day-btn.is-active {
  background: var(--gold-primary) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 8px rgba(184, 146, 72, 0.4);
}

.cal-day-btn.is-disabled {
  color: #D1C7BA;
  cursor: not-allowed;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.time-slot-btn {
  padding: 0.5rem 0.2rem;
  font-size: 0.775rem;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: var(--text-main);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.time-slot-btn:hover {
  border-color: var(--gold-primary);
}

.time-slot-btn.is-active {
  background: var(--gold-light);
  border-color: var(--gold-primary);
  color: var(--gold-hover);
  font-weight: 700;
}

.modal-input-group {
  margin-bottom: 0.75rem;
}

.modal-input-label {
  display: block;
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.modal-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.modal-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-subtle);
  font-size: 0.8rem;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.modal-input:focus {
  border-color: var(--gold-primary);
  background: #FFFFFF;
}

.modal-phone-wrap {
  position: relative;
}

.modal-phone-prefix {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  pointer-events: none;
}

.modal-phone-input {
  padding-left: 4.8rem !important;
}

.modal-channels-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.modal-channel-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0.6rem;
  text-align: center;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.modal-channel-card.is-active {
  border-color: var(--gold-primary);
  background: var(--gold-light);
  color: var(--gold-hover);
}

.modal-submit-btn {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: var(--gold-gradient);
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: all 0.25s ease;
  margin-top: 0.5rem;
}

.modal-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184, 146, 72, 0.4);
}

.modal-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.modal-success-pane {
  padding: 3rem 2rem;
  text-align: center;
  display: none;
}

.modal-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1rem;
}

.modal-error-notice {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  line-height: 1.4;
  margin-bottom: 0.85rem;
  display: none;
}

.modal-channel-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.modal-channel-input:focus-visible + .modal-channel-card {
  outline: 2px solid var(--gold-primary);
  outline-offset: 2px;
}

/* Intent switching: hide calendar column for callback & price requests */
.intent-no-calendar .modal-col-left {
  display: none !important;
}

.intent-no-calendar .booking-split-grid {
  grid-template-columns: 1fr !important;
}

/* Inline validation errors */
.modal-input[aria-invalid="true"] {
  border-color: #DC2626 !important;
  background: #FEF2F2 !important;
}

.modal-field-error {
  font-size: 0.7rem;
  color: #DC2626;
  margin-top: 0.25rem;
  display: none;
}

.modal-field-error.is-visible {
  display: block;
}

/* Turnstile challenge container & configuration notice */
.turnstile-box {
  margin: 0.65rem 0;
  min-height: 65px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.turnstile-config-notice {
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  color: #92400E;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-size: 0.725rem;
  line-height: 1.4;
  margin: 0.5rem 0;
  display: none;
}

.no-slots-notice {
  font-size: 0.725rem;
  color: #B45309;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 0.5rem;
  margin-top: 0.5rem;
  display: none;
}

.modal-privacy-notice {
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.35;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .booking-modal-backdrop,
  .booking-modal-card,
  .modal-submit-btn,
  .time-slot-btn,
  .cal-day-btn,
  .cal-nav-btn {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}



.lead-discard-btn { width:100%; padding:.65rem; border:0; background:transparent; color:var(--text-secondary); text-decoration:underline; cursor:pointer; font:inherit; font-size:.75rem; }
.lead-discard-btn[hidden] { display:none; }

/* Authored canvases are decorative background layers, never form overlays. */
.booking-modal-card > :not(.modal-surface):not(.booking-modal-close) { position:relative; z-index:1; }
.modal-header-surface { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:0; }
.modal-header-strip > :not(.modal-header-surface) { position:relative; z-index:1; }
.lead-header-ink { position:absolute; inset:0; pointer-events:none; }
.booking-modal-card.intent-no-calendar { max-width:480px; }
@media (forced-colors: active), print {
  .modal-surface, .modal-header-surface, .lead-header-ink { display:none; }
  .lead-header-source { opacity:1 !important; }
}

/* Consistent decorative SVG icons; labels remain native text. */
.ui-icon { width:1.1em; height:1.1em; vertical-align:-.15em; flex-shrink:0; display:inline-block; }
.trust-icon .ui-icon { width:32px;height:32px; }
.mobile-drawer-logo { display:block; width:136px; height:30px; flex-shrink:0; }
.mobile-drawer-logo > .compact-mark { width:20.833333% !important; height:100% !important; }
.mobile-drawer-logo > .compact-wordmark { width:75% !important; height:auto !important; }
.topbar-left { gap:1.2rem; }
@media(max-width:860px){.topbar-left{gap:.8rem}.topbar-item{font-size:.7rem}.topbar-container{justify-content:space-between}.header{padding:.5rem .75rem}}
.booking-load-fallback { position:fixed;inset:0;background:rgba(28,25,23,.65);z-index:11000;display:flex;align-items:center;justify-content:center;padding:1rem; }
.booking-load-fallback[hidden] { display:none; }
.booking-load-fallback > div { background:#fff;color:#21201e;border-radius:20px;padding:2rem;max-width:440px;position:relative; }
.booking-load-fallback h2 { font-family:var(--font-serif);font-size:1.4rem;margin-bottom:1rem; }
.booking-load-fallback p { margin-bottom:1.2rem; }
.booking-load-fallback [data-fallback-close] { position:absolute;right:.8rem;top:.5rem;border:0;background:none;font-size:1.5rem;cursor:pointer; }
@media(prefers-reduced-motion:reduce){.booking-modal-card{transition:none}}

button.nav-cta-btn,button.btn-primary-luxury { border:0; font-family:inherit; }
button.btn-secondary-luxury { font-family:inherit; }
.footer-contact-link > .ui-icon { position:absolute;left:0;top:50%;transform:translateY(-50%);z-index:2; }

/* Analytics & Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FAF8F5;
  border-top: 1px solid var(--border-light, #E8E5DF);
  padding: 1rem 1.5rem;
  z-index: 900;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  font-family: var(--font-sans);
}
.cookie-banner[hidden] {
  display: none !important;
}
.cookie-banner-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.cookie-banner-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-main, #1F1E1D);
  margin: 0;
  flex: 1 1 360px;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  font-family: inherit;
  font-size: 0.825rem;
  font-weight: 500;
  padding: 0.55rem 1.15rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cookie-btn-primary {
  background: var(--gold-primary, #9B784B);
  color: #FFFFFF;
  border: 1px solid var(--gold-primary, #9B784B);
}
.cookie-btn-primary:hover {
  background: var(--gold-hover, #84633B);
  border-color: var(--gold-hover, #84633B);
}
.cookie-btn-secondary {
  background: transparent;
  color: var(--text-main, #1F1E1D);
  border: 1px solid var(--border-light, #D5D0C7);
}
.cookie-btn-secondary:hover {
  background: #FFFFFF;
  border-color: var(--text-secondary, #6B6864);
}
.cookie-settings-btn {
  position: fixed;
  bottom: 0.5rem;
  left: 0.5rem;
  z-index: 850;
  background: #FAF8F5;
  color: var(--text-muted, #787570);
  border: 1px solid var(--border-light, #E8E5DF);
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  font-size: 0.725rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: opacity 0.2s ease, color 0.2s ease;
  opacity: 0.85;
}
.cookie-settings-btn:hover {
  opacity: 1;
  color: var(--text-main, #1F1E1D);
}
.cookie-settings-btn[hidden] {
  display: none !important;
}
.footer-cookie-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.85rem;
  color: var(--text-secondary, #787570);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}
.footer-cookie-link:hover {
  color: var(--gold-hover, #84633B);
}

/* Service Detail Page Layout & Breadcrumbs */
.service-page-hero {
  padding: 3rem 1.5rem 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumbs a:hover {
  color: var(--gold-primary);
}

.breadcrumbs-separator {
  color: var(--border-light);
  user-select: none;
}

.breadcrumbs-current {
  color: var(--gold-hover);
  font-weight: 500;
}

.service-page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.service-page-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 780px;
  margin-bottom: 2rem;
}

.service-page-container {
  max-width: 960px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.service-content-block {
  margin-bottom: 3rem;
}

.service-section-heading {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 0.5rem;
}

.service-cta-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.service-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.related-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.related-service-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.related-service-card:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  color: var(--gold-hover);
}

.service-detail-link {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--gold-hover);
  text-decoration: none;
  margin-left: auto;
  margin-right: 0.75rem;
  transition: color 0.15s ease;
}

.service-detail-link:hover {
  color: var(--gold-primary);
  text-decoration: underline;
}


