/* ==========================================================================
   СОНОМЕД Premium V2 — Design System & Stylesheet
   Precision Medical Technology Architecture
   ========================================================================== */

/* ── 1. DESIGN TOKENS & CSS VARIABLES ── */
:root {
  /* Базова палітра */
  --ink: #090E17;
  --ink-secondary: #334155;
  --ink-muted: #64748B;
  --ink-light: #94A3B8;
  
  --bg: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-inset: #E2E8F0;
  
  /* Технологічний темний контраст */
  --navy-dark: #060D1A;
  --navy-surface: #0E1A2E;
  --navy-border: rgba(255, 255, 255, 0.1);
  --navy-text-muted: #94A3B8;
  
  /* Медичний прецизійний акцент */
  --brand: #1550A0;
  --brand-hover: #114285;
  --brand-active: #0D3568;
  --brand-light: #E4EDF8;
  --brand-glow: rgba(21, 80, 160, 0.18);
  
  /* Довіра та клінічний комфорт */
  --teal: #0D9488;
  --teal-light: #CCFBF1;
  --emerald: #10B981;
  --gold: #D97706;
  --gold-light: #FEF3C7;
  
  /* Лінії та тіні */
  --line: rgba(15, 23, 42, 0.08);
  --line-subtle: rgba(15, 23, 42, 0.04);
  --line-strong: rgba(15, 23, 42, 0.14);
  
  --shadow-sm: 0 1px 3px rgba(9, 14, 23, 0.04), 0 1px 2px rgba(9, 14, 23, 0.02);
  --shadow-md: 0 4px 12px -2px rgba(9, 14, 23, 0.06), 0 2px 6px -1px rgba(9, 14, 23, 0.03);
  --shadow-lg: 0 12px 28px -4px rgba(9, 14, 23, 0.08), 0 4px 12px -2px rgba(9, 14, 23, 0.04);
  --shadow-xl: 0 24px 48px -12px rgba(9, 14, 23, 0.14);
  
  /* Радіуси */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  
  /* Шрифти */
  --font-head: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Типографічна шкала */
  --fs-hero: clamp(1.85rem, 4.5vw, 3.4rem);
  --fs-h1: clamp(1.75rem, 3.4vw, 2.5rem);
  --fs-h2: clamp(1.45rem, 2.6vw, 2.1rem);
  --fs-h3: clamp(1.15rem, 1.8vw, 1.4rem);
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.78rem;
  
  /* Максимальна ширина контейнера */
  --wrap-max: 1220px;
}

/* ── 2. RESET ТА БАЗОВІ СТИЛІ ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

a, button, input, select, textarea, .btn, .dir-nav-btn, .burger, .m-nav-item, .m-acc-btn, .tab-btn {
  -webkit-tap-highlight-color: transparent;
  outline-color: transparent;
}

button, .btn, .dir-nav-btn, .burger, .m-nav-item, .m-acc-btn, .tab-btn, .m-drawer-close {
  user-select: none;
  -webkit-user-select: none;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

img, svg, picture {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* Контейнер */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (max-width: 640px) {
  .wrap {
    padding-inline: 16px;
  }
}

/* ── 3. ТИПОГРАФІКА ТА ЗАГОЛОВКИ ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.sec-head {
  margin-bottom: 40px;
}

.sec-head.center {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 10px;
}

.sec-h {
  font-size: var(--fs-h2);
  margin-bottom: 12px;
}

.sec-sub {
  font-size: 1.05rem;
  color: var(--ink-secondary);
  line-height: 1.6;
  max-width: 68ch;
}

.sec-head.center .sec-sub {
  margin-inline: auto;
}

/* ── 4. КНОПКИ ТА БЕЙДЖІ ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-align: center;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-main {
  background: var(--brand);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(21, 80, 160, 0.35);
}

.btn-main:hover {
  background: var(--brand-hover);
  box-shadow: 0 6px 20px rgba(21, 80, 160, 0.45);
  transform: translateY(-2px);
}

.btn-main:active {
  background: var(--brand-active);
  transform: translateY(0);
}

.btn-ghost {
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  background: var(--bg-subtle);
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-2px);
}

.btn-soft {
  background: var(--brand-light);
  color: var(--brand);
}

.btn-soft:hover {
  background: #BAE6FD;
  color: var(--brand-hover);
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-brand {
  background: var(--brand-light);
  color: var(--brand);
  border: 1px solid rgba(21, 80, 160, 0.2);
}

.badge-teal {
  background: var(--teal-light);
  color: var(--teal);
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.badge-live {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ── 5. ШАПКА (HEADER & TOPBAR) ── */
.topbar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  padding-block: 7px;
  color: var(--ink-muted);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar .status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: #047857;
}

.topbar .status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
}

.topbar .status.shut {
  color: var(--ink-muted);
}

.topbar .status.shut::before {
  background: var(--ink-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-secondary);
}

.topbar-link:hover {
  color: var(--brand);
}

@media (max-width: 768px) {
  .topbar-right {
    display: none;
  }
}

/* Основний Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

header.site.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--line-strong);
  box-shadow: 0 4px 20px rgba(9, 14, 23, 0.06);
}

header.site .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

/* Логотип */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  flex-shrink: 0;
}

/* Фірмове лого з брендбуку клініки: висота фіксована, ширина по пропорції */
.logo-img {
  height: 30px;
  width: auto;
  display: block;
}

@media (max-width: 640px) {
  .logo-img { height: 25px; }
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--brand);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(21, 80, 160, 0.3);
}

.logo-text {
  background: linear-gradient(135deg, var(--ink) 0%, var(--brand-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Меню */
.menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu > li {
  position: relative;
}

.menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: all 0.18s ease;
}

.menu > li > a:hover,
.menu > li > a[aria-current="page"] {
  color: var(--brand);
  background: var(--bg-subtle);
}

/* Dropdown */
.menu .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 100;
}

.menu .has-sub:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-secondary);
}

.dropdown a em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
}

.dropdown a:hover {
  background: var(--bg-subtle);
  color: var(--brand);
}

.dropdown .dd-sep {
  display: block;
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}

/* Дії в шапці */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: all 0.2s ease;
}

.phone-link .p-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.phone-link-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.phone-link-txt b {
  font-family: var(--font-head);
  font-size: 0.92rem;
}

.phone-link-txt small {
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.phone-link:hover {
  border-color: var(--brand);
  background: #FFFFFF;
  transform: translateY(-1px);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.burger span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Блокування скролу сторінки */
html.menu-locked,
body.menu-locked {
  overflow: hidden !important;
  height: 100% !important;
  touch-action: none !important;
}

/* Мобільний бекдроп */
.m-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 13, 26, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.m-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Мобільний висувний дровер (Drawer) */
.m-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  background: #FFFFFF;
  z-index: 120;
  display: flex;
  flex-direction: column;
  box-shadow: -14px 0 44px rgba(0, 0, 0, 0.28);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s ease;
  will-change: transform;
  overscroll-behavior: contain;
  -webkit-tap-highlight-color: transparent;
}

.m-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.m-drawer-head {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: #FFFFFF;
}

.m-drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.m-drawer-close:hover,
.m-drawer-close:active {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand);
  transform: scale(0.95);
}

.m-drawer-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.m-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.m-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--ink);
  transition: background-color 0.18s ease, color 0.18s ease;
  border: 1px solid transparent;
}

.m-nav-item:hover,
.m-nav-item:active,
.m-nav-item[aria-current="page"] {
  background: var(--bg-subtle);
  border-color: var(--line-subtle);
}

.m-nav-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.m-nav-txt b {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.25;
}

.m-nav-txt small {
  font-size: 0.76rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.m-nav-arrow {
  color: var(--ink-muted);
  font-size: 1.1rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.m-nav-item:hover .m-nav-arrow {
  transform: translateX(3px);
  color: var(--brand);
}

/* Аккордеон у дровері */
.m-acc-wrap {
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease;
}

.m-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  text-align: left;
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.m-acc-btn:hover,
.m-acc-btn:active {
  background: var(--bg-subtle);
}

.m-acc-btn .chev {
  color: var(--ink-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.m-acc-btn[aria-expanded="true"] {
  background: var(--bg-subtle);
  border-color: var(--line-subtle);
}

.m-acc-btn[aria-expanded="true"] .m-nav-txt b {
  color: var(--brand);
}

.m-acc-btn[aria-expanded="true"] .chev {
  transform: rotate(180deg);
  color: var(--brand);
}

.m-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.m-acc-btn[aria-expanded="true"] + .m-acc-panel {
  grid-template-rows: 1fr;
}

.m-acc-inner {
  overflow: hidden;
  padding: 6px 6px 6px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.m-acc-inner a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--ink-secondary);
  transition: all 0.18s ease;
}

.m-acc-inner a:hover,
.m-acc-inner a:active {
  color: var(--brand);
  background: var(--bg-subtle);
}

.m-acc-inner a b {
  color: var(--brand);
  font-size: 0.82rem;
  font-family: var(--font-head);
  padding: 2px 8px;
  background: var(--brand-light);
  border-radius: var(--radius-pill);
}

.m-acc-inner .m-acc-all {
  font-weight: 700;
  color: var(--brand);
  padding-top: 8px;
}

/* Інфо-картка у дровері */
.m-info-card {
  padding: 12px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 0.82rem;
}

.m-info-row svg {
  flex-shrink: 0;
  color: var(--brand);
  margin-top: 2px;
}

.m-info-row b {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  line-height: 1.3;
}

.m-info-row small {
  color: var(--ink-muted);
}

/* Футер дровера */
.m-drawer-foot {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #FFFFFF;
  flex-shrink: 0;
}

.m-drawer-phones {
  display: flex;
  gap: 8px;
}

.m-drawer-phones .btn {
  font-size: 0.85rem;
  padding: 10px;
}

.mobile-phone-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  color: var(--brand);
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-phone-btn:hover {
  background: #FFFFFF;
  border-color: var(--brand);
}

@media (max-width: 1024px) {
  .menu, .phone-link {
    display: none;
  }
  .mobile-phone-btn,
  .burger {
    display: flex;
  }
}

@media (max-width: 640px) {
  .nav-actions .btn-main {
    display: none;
  }
  header.site .nav {
    height: 62px;
  }
}

/* ── 6. HERO SECTION (EDITORIAL ASYMMETRY) ── */
.hero-section {
  padding-top: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(48px, 7vw, 84px);
  background: radial-gradient(circle at 85% 15%, rgba(21, 80, 160, 0.07) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(13, 148, 136, 0.05) 0%, transparent 50%),
              var(--bg);
  position: relative;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-title {
  font-size: var(--fs-hero);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.hero-title em {
  font-style: normal;
  color: var(--brand);
  display: block;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  color: var(--ink-secondary);
  line-height: 1.6;
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Стрічка довіри у Hero (Trust Architecture) */
.hero-trust-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 28px;
  margin-top: 12px;
  border-top: 1px solid var(--line-strong);
}

.h-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.h-stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.h-stat-num span {
  color: var(--brand);
}

.h-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  line-height: 1.3;
}

/* Візуальна картка Hero */
.hero-visual {
  position: relative;
}

.hero-card-main {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: #FFFFFF;
}

.hero-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3.2;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-card-main:hover .hero-img-wrap img {
  transform: scale(1.03);
}

.hero-overlay-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(6, 13, 26, 0.85);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-visual-footer {
  padding: 16px 20px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-vf-left b {
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--ink);
}

.hero-vf-left span {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

@media (max-width: 960px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .hero-visual {
    order: 1;
    width: 100%;
    margin-bottom: 8px;
  }
  .hero-content {
    order: 2;
  }
  .hero-trust-matrix {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }
}

@media (max-width: 540px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-trust-matrix {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 16px;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }
}

/* ── 7. CANON APLIO DEEP-DIVE (HIGH-TECH INSTRUMENTED ROOM) ── */
.tech-section {
  background: var(--navy-dark);
  color: #FFFFFF;
  padding-block: clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 80, 160, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 6vw, 64px);
  align-items: center;
}

.tech-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tech-title {
  color: #FFFFFF;
  font-size: var(--fs-h2);
  line-height: 1.15;
}

.tech-title em {
  font-style: normal;
  color: #7FA6D9;
  display: inline;
}

.tech-desc {
  color: var(--navy-text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 58ch;
}

/* Instrumented Matrix (Замість звичайних карток) */
.tech-instrumented-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--navy-border);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 12px;
}

.tech-spec-cell {
  background: var(--navy-surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-spring);
  cursor: pointer;
}

.tech-spec-cell:hover,
.tech-spec-cell.active-spec {
  background: #14243D;
  border-color: rgba(127, 166, 217, 0.5);
  transform: translateX(4px);
}

.tech-cell-tag {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7FA6D9;
}

.tech-spec-cell b {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.tech-spec-cell p {
  font-size: 0.88rem;
  color: #94A3B8;
  line-height: 1.5;
}

.tech-visual-side {
  position: sticky;
  top: 96px;
}

.tech-img-box {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--navy-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  background: #000000;
}

.tech-img-box img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}

@media (max-width: 960px) {
  .tech-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .tech-visual-side {
    order: 1;
    width: 100%;
    position: static;
  }
  .tech-content {
    order: 2;
  }
  .tech-instrumented-matrix {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ── 8. INTERACTIVE SERVICES DIRECTORY (MASTER-DETAIL) ── */
.directory-section {
  padding-block: clamp(48px, 7vw, 84px);
}

.directory-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 36px;
  align-items: start;
  margin-top: 32px;
}

/* Лівий список (Master Navigation) */
.dir-master-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.dir-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: all 0.2s ease;
  text-align: left;
  border: 1px solid transparent;
}

.dir-nav-btn-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dir-nav-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-muted);
  width: 20px;
}

.dir-nav-count {
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--ink-muted);
}

.dir-nav-btn:hover {
  background: var(--bg-subtle);
  color: var(--ink);
}

.dir-nav-btn.active {
  background: var(--brand);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(21, 80, 160, 0.35);
}

.dir-nav-btn.active .dir-nav-num,
.dir-nav-btn.active .dir-nav-count {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.2);
}

/* Правий активний блок (Detail Stage) */
.dir-stage-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dir-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.dir-stage-title-wrap h3 {
  font-size: var(--fs-h2);
  margin-bottom: 8px;
}

.dir-stage-title-wrap p {
  color: var(--ink-secondary);
  font-size: 1.02rem;
  max-width: 50ch;
}

.dir-stage-price-pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--brand-light);
  color: var(--brand);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* Таблиця / Список процедур */
.dir-sample-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dir-sample-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  border: 1px solid var(--line-subtle);
}

.dir-sample-item span {
  font-weight: 500;
  color: var(--ink);
}

.dir-sample-item b {
  font-family: var(--font-head);
  color: var(--brand);
  margin-left: 10px;
  white-space: nowrap;
}

.dir-stage-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 960px) {
  .directory-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .dir-master-list {
    flex-direction: row;
    overflow-x: auto;
    padding: 6px;
    gap: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .dir-master-list::-webkit-scrollbar {
    display: none;
  }
  .dir-nav-btn {
    white-space: nowrap;
    padding: 10px 16px;
    flex-shrink: 0;
  }
  .dir-sample-list {
    grid-template-columns: 1fr;
  }
  .dir-stage-card {
    padding: 20px 16px;
  }
  .dir-stage-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .dir-stage-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .dir-stage-foot .btn {
    width: 100%;
  }
}

/* ── 9. CHECK-UP SECTION (FEATURED PROGRAM + SUITE) ── */
.checkup-section {
  padding-block: clamp(48px, 7vw, 84px);
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.checkup-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  margin-top: 36px;
}

/* Featured Hero Program Card */
.checkup-featured-card {
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.checkup-featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--teal) 100%);
}

.cf-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cf-title {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  color: var(--ink);
  margin-block: 8px;
}

.cf-price-box {
  text-align: right;
}

.cf-price-box .price {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}

.cf-price-box .time {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

.cf-desc {
  font-size: 1.02rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.cf-inc-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.cf-inc-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

.cf-inc-list li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 800;
}

.cf-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Вторинні програми */
.checkup-secondary-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkup-mini-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: all 0.22s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.checkup-mini-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.cm-info b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.08rem;
  color: var(--ink);
}

.cm-info span {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.cm-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cm-price {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}

@media (max-width: 960px) {
  .checkup-grid {
    grid-template-columns: 1fr;
  }
  .cf-inc-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .checkup-featured-card {
    padding: 20px 16px;
  }
  .cf-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .cf-price-box {
    text-align: left;
  }
  .cf-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cf-actions .btn {
    width: 100%;
  }
  .checkup-mini-card {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .cm-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* ── 10. DOCTORS & FOUNDER SPOTLIGHT ── */
.doctors-section {
  padding-block: clamp(48px, 7vw, 84px);
}

/* Spotlight засновника клініки */
.founder-spotlight-box {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 40px;
}

.founder-portrait {
  position: relative;
  background: var(--navy-dark);
}

.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-content {
  padding: clamp(24px, 4vw, 44px);
  padding-left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.founder-name {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  color: var(--ink);
}

.founder-role {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand);
}

.founder-quote {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-secondary);
  border-left: 3px solid var(--brand);
  padding-left: 18px;
  margin-block: 8px;
  font-style: italic;
}

/* Лікарі консиліуму (Architectural Line Grid замість важких карток) */
.consilium-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.consilium-doc {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
}

.consilium-doc:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.consilium-photo {
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  background: var(--bg-subtle);
}

.consilium-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.consilium-doc:hover .consilium-photo img {
  transform: scale(1.04);
}

.consilium-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  gap: 10px;
}

.consilium-body b {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.25;
}

.consilium-body span {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

@media (max-width: 960px) {
  .founder-spotlight-box {
    grid-template-columns: 1fr;
  }
  .founder-portrait {
    max-height: 380px;
    aspect-ratio: 1 / 1.05;
  }
  .founder-content {
    padding: 24px 20px;
  }
  .consilium-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 540px) {
  .consilium-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 11. SMART BOOKING SECTION ── */
.booking-section {
  padding-block: clamp(54px, 8vw, 96px);
  background: radial-gradient(circle at 10% 20%, rgba(21, 80, 160, 0.05) 0%, transparent 50%),
              var(--bg-subtle);
  border-top: 1px solid var(--line);
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.booking-info-box {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.booking-call-card {
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.booking-call-card h3 {
  font-size: 1.2rem;
}

.booking-call-card p {
  color: var(--ink-secondary);
  font-size: 0.92rem;
}

.booking-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand);
}

.booking-perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.b-perk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.b-perk-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  margin-top: 2px;
}

.b-perk-text b {
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--ink);
}

.b-perk-text span {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* Форма */
.form-card {
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
}

.form-card h2 {
  font-size: var(--fs-h2);
  margin-bottom: 6px;
}

.form-lead {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.fld-grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.field .req {
  color: #EF4444;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.field .err {
  display: none;
  font-size: 0.78rem;
  color: #EF4444;
}

.field.has-err input {
  border-color: #EF4444;
}

.field.has-err .err {
  display: block;
}

.hp {
  position: absolute;
  left: -9999px;
}

.consent-note {
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.4;
}

.consent-note a {
  text-decoration: underline;
}

.form-msg {
  padding: 20px;
  border-radius: var(--radius-md);
  margin-top: 20px;
  font-size: 0.95rem;
}

.form-msg.ok {
  background: var(--teal-light);
  border: 1px solid rgba(13, 148, 136, 0.3);
  color: #065F46;
}

.form-msg.fail {
  background: #FEE2E2;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #991B1B;
}

@media (max-width: 768px) {
  .booking-grid {
    grid-template-columns: 1fr;
  }
  .fld-grid.two {
    grid-template-columns: 1fr;
  }
}

/* ── 12. ПІДВАЛ (FOOTER) ── */
footer.site {
  background: var(--navy-dark);
  color: #FFFFFF;
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.f-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.f-brand p {
  color: var(--navy-text-muted);
  font-size: 0.9rem;
  margin-block: 16px;
  max-width: 32ch;
  line-height: 1.6;
}

.f-brand .logo-text {
  background: none;
  -webkit-text-fill-color: initial;
  color: #FFFFFF;
}

.f-h {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  margin-bottom: 18px;
}

.f-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--navy-text-muted);
  margin-bottom: 10px;
}

.f-col a:hover {
  color: #7FA6D9;
}

.f-contact .f-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: #FFFFFF;
}

.f-contact .f-row span b {
  display: block;
  font-family: var(--font-head);
  font-size: 0.92rem;
}

.f-contact .f-row span small {
  font-size: 0.75rem;
  color: var(--navy-text-muted);
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: all 0.2s ease;
}

.socials a:hover {
  background: var(--brand);
}

.f-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--navy-text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 70;
}

.to-top.on {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--brand);
  color: #FFFFFF;
  border-color: var(--brand);
}

@media (max-width: 960px) {
  .f-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .f-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 13. INNER PAGES & SHARED COMPONENTS ── */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.crumbs a {
  color: var(--ink-secondary);
}

.crumbs a:hover {
  color: var(--brand);
}

.page-head {
  margin-bottom: 36px;
}

.page-head h1 {
  font-size: var(--fs-h1);
  margin-bottom: 12px;
}

/* Пошук */
.search {
  position: relative;
  max-width: 600px;
  margin-top: 20px;
}

.search input {
  width: 100%;
  padding: 14px 20px 14px 44px;
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.search input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

/* Фільтри / Чіпси */
.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.filters button {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  border: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: all 0.18s ease;
}

.filters button[aria-pressed="true"],
.filters button:hover {
  background: var(--brand);
  color: #FFFFFF;
  border-color: var(--brand);
}

/* Прайс-лист */
.grp {
  margin-bottom: 36px;
}

.grp h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.grp .cnt {
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--ink-muted);
  font-family: var(--font-body);
}

.price-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}

.price-row:last-child {
  border-bottom: none;
}

.price-row:hover {
  background: var(--bg-subtle);
}

.price-row .nm {
  font-size: 0.95rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-row .mini {
  font-size: 0.75rem;
  color: var(--brand);
  background: var(--brand-light);
  padding: 2px 6px;
  border-radius: 4px;
}

.price-row .val {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}

/* Статистичні картки (k-grid) */
.k-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.k-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.k-card .l {
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.k-card .v {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
}

.k-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.k-box {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.k-box h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.k-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.k-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

.k-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 800;
}

.k-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.k-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.k-map iframe {
  width: 100%;
  height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

/* FAQ Details */
.faq details {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq details[open] {
  border-color: var(--brand);
}

.faq summary {
  padding: 18px 24px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--brand);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: '−';
}

.faq p {
  padding: 0 24px 20px;
  color: var(--ink-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .k-two {
    grid-template-columns: 1fr;
  }
}

/* ── 14. SUBPAGE SPECIFIC GRIDS & CARDS ── */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.dir-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.22s ease;
}

.dir-card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.dir-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dir-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dir-price-tag {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
  background: var(--teal-light);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.dir-card-body b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.dir-card-body p {
  font-size: 0.9rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.dir-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

.dir-card-foot span {
  color: var(--ink-muted);
}

.dir-card-foot b {
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.prog-item {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.22s ease;
}

.prog-item:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.prog-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.prog-price {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand);
}

.prog-inc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.prog-inc-list li {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  padding-left: 14px;
  position: relative;
}

.prog-inc-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 800;
}

.prog-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.chips-s a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-secondary);
  transition: all 0.18s ease;
}

.chips-s a:hover {
  background: var(--brand);
  color: #FFFFFF;
  border-color: var(--brand);
}

