/* ==========================================================================
   ННЦ «ІНСТИТУТ МЕТРОЛОГІЇ» — ГОЛОВНИЙ ПОРТАЛ
   Національний метрологічний інститут України (NMI)
   100% Offline-сумісна система стилів (Tailwind/Inter дизайн-система)
   ========================================================================== */

:root {
  --navy-950: #040d1a;
  --navy-900: #071527;
  --navy-850: #0b1f38;
  --navy-800: #102a4c;
  --navy-700: #173b67;
  --navy-600: #1f4f89;
  
  --gold-600: #b45309;
  --gold-500: #d97706;
  --gold-400: #f59e0b;
  --gold-300: #fbbf24;
  --gold-100: #fef3c7;
  
  --blue-700: #0369a1;
  --blue-600: #0284c7;
  --blue-500: #0ea5e9;
  --blue-100: #e0f2fe;
  --blue-50:  #f0f9ff;
  
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;
  
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(4, 13, 26, 0.08), 0 1px 3px rgba(4, 13, 26, 0.04);
  --shadow-lg: 0 12px 30px -4px rgba(4, 13, 26, 0.12), 0 4px 12px -2px rgba(4, 13, 26, 0.06);
  --shadow-xl: 0 20px 40px -8px rgba(4, 13, 26, 0.25);
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================= БАЗОВІ СТИЛІ ТА СКИДАННЯ ================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-800);
  background-color: var(--slate-50);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

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

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--navy-800);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--navy-950);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

p, a, span {
  overflow-wrap: break-word;
}

/* ================= КОНТЕЙНЕРИ ТА СІТКА ================= */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.items-center { align-items: center; }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.pb-0 { padding-bottom: 0 !important; }

.text-white { color: var(--white) !important; }
.text-slate-300 { color: var(--slate-300) !important; }
.text-slate-500 { color: var(--slate-500) !important; }
.text-gold { color: var(--gold-400) !important; }
.text-sm { font-size: 0.875rem; }

/* ================= TOP UTILITY BAR ================= */
.top-bar {
  background: var(--navy-950);
  color: var(--slate-300);
  font-size: 0.825rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0;
  position: relative;
  z-index: 50;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.utc-clock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  max-width: 100%;
}

.utc-clock-badge:hover {
  background: rgba(14, 165, 233, 0.25);
  border-color: rgba(56, 189, 248, 0.6);
  transform: translateY(-1px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 8px var(--emerald-400);
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.utc-label {
  font-weight: 700;
  color: var(--gold-300);
  letter-spacing: 0.03em;
}

.utc-time {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--white);
  min-width: 65px;
}

.utc-date {
  color: var(--slate-400);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 0.5rem;
}

.utc-badge-chip {
  background: var(--navy-800);
  color: var(--blue-400);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.top-link {
  color: var(--slate-300);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.top-link:hover {
  color: var(--gold-300);
}

.top-link.highlight {
  color: var(--gold-300);
  font-weight: 600;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-sm);
}

.lang-btn {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate-400);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.lang-btn.active {
  background: var(--gold-500);
  color: var(--navy-950);
}

/* ================= ГОЛОВНА ШАПКА ================= */
.main-header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-emblem {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border: 2px solid var(--gold-400);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.logo-crest {
  font-size: 1.5rem;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-950);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--slate-500);
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
}

.mobile-nav-top,
.mobile-nav-bottom {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  display: inline-block;
  padding: 0.6rem 0.85rem;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--slate-700);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--navy-900);
  background: var(--slate-100);
}

.nav-link.active {
  color: var(--blue-700);
  background: var(--blue-50);
  font-weight: 700;
}

.nav-link.cta-nav-link {
  color: var(--gold-600);
  background: var(--gold-100);
}

.nav-link.cta-nav-link:hover {
  background: #fde68a;
  color: var(--navy-950);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1005;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================= КНОПКИ ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  background: var(--blue-700);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--slate-300);
}

.btn-outline:hover {
  background: var(--slate-100);
  border-color: var(--slate-400);
  color: var(--navy-950);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-950);
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-400));
  color: var(--navy-950);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-700);
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--navy-950);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-download:hover {
  background: var(--blue-600);
  color: var(--white);
}

/* ================= СЕКЦІЇ ТА HERO ================= */
.section {
  padding: 5rem 0;
}

.section-light { background: var(--white); }
.section-slate { background: var(--slate-50); }
.section-dark {
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: var(--white);
}

.section-header {
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.section-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.section-tag-gold {
  color: var(--gold-300);
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, var(--slate-100) 0%, var(--white) 100%);
  padding: 4.5rem 0 5rem 0;
  border-bottom: 1px solid var(--slate-200);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.hero-card-side {
  align-self: flex-start;
  margin-top: 3.3rem; /* Точне вирівнювання по верхній лінії головного заголовка H1 */
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
  font-size: 0.825rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.18;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--slate-600);
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-200);
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--slate-500);
  line-height: 1.35;
  margin-top: 0.25rem;
}

/* Hero Side Quick Order Card */
.quick-order-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(4, 13, 26, 0.8);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.quick-order-body {
  padding: 1.75rem;
}

.card-heading {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.card-subtext {
  font-size: 0.9rem;
  color: var(--slate-600);
  margin-bottom: 1.25rem;
}

.quick-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.quick-doc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-800);
  transition: var(--transition);
}

.quick-doc-link:hover {
  background: var(--blue-50);
  border-color: var(--blue-200);
  color: var(--blue-700);
}

.doc-icon { font-size: 1.15rem; margin-right: 0.5rem; }
.doc-dl {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-600);
}

.card-phone-cta {
  display: flex;
  flex-direction: column;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-100);
}

.cta-label {
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 600;
}

.cta-phone {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-950);
}

/* ==========================================================================
   ВІДЖЕТ / ОКОШКО СЛУЖБИ ТОЧНОГО ЧАСУ UTC(UA) (З ПРОТОТИПУ VARIANT 2)
   ========================================================================== */
.utc-dashboard-card {
  background: rgba(7, 21, 39, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  max-width: 420px;
  margin-left: auto;
  box-shadow: 0 20px 40px -10px rgba(4, 13, 26, 0.65), 0 0 25px rgba(2, 132, 199, 0.12), inset 0 0 20px rgba(56, 189, 248, 0.04);
  position: relative;
  transition: all 0.3s ease;
  color: var(--white);
}

.utc-dashboard-card.highlight-pulse {
  animation: card-highlight-glow 2s ease-out;
}

@keyframes card-highlight-glow {
  0% { box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.8), 0 20px 40px rgba(4, 13, 26, 0.8); }
  50% { box-shadow: 0 0 30px 6px rgba(56, 189, 248, 0.6), 0 20px 40px rgba(4, 13, 26, 0.8); }
  100% { box-shadow: 0 20px 40px -10px rgba(4, 13, 26, 0.65), inset 0 0 20px rgba(56, 189, 248, 0.04); }
}

.utc-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.utc-pulse-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-400);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 10px var(--emerald-400);
  animation: radar-pulse 1.8s infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes radar-pulse {
  0% { transform: scale(0.85); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 14px var(--emerald-400); }
  100% { transform: scale(0.85); opacity: 0.7; }
}

.utc-detu-code {
  font-size: 0.74rem;
  color: var(--gold-300);
  font-family: var(--font-mono);
  font-weight: 700;
  background: rgba(251, 191, 36, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251, 191, 36, 0.3);
  white-space: nowrap;
}

.utc-clock-readout {
  font-family: var(--font-mono);
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--white);
  line-height: 1.1;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.5), 0 0 4px rgba(255, 255, 255, 0.8);
  margin-bottom: 0.2rem;
}

.utc-clock-readout .utc-millis {
  font-size: 1.35rem;
  opacity: 0.8;
  color: var(--blue-400);
  font-weight: 600;
}

.utc-date-readout {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--slate-300);
  margin-bottom: 0.85rem;
}

.utc-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.utc-spec-item {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  font-size: 0.76rem;
}

.utc-spec-item span {
  display: block;
  color: var(--slate-400);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.1rem;
}

.utc-spec-item strong {
  color: var(--gold-300);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.utc-footer-status {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: var(--slate-400);
  flex-wrap: wrap;
  gap: 0.35rem;
}

.utc-detail-link {
  color: var(--blue-400);
  text-decoration: underline;
  font-weight: 600;
}

.utc-detail-link:hover {
  color: var(--white);
}

/* Модальне вікно для Служби точного часу на всіх сторінках */
.utc-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 13, 26, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.utc-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.utc-modal-dialog {
  max-width: 520px;
  width: 100%;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.utc-modal-overlay.active .utc-modal-dialog {
  transform: translateY(0) scale(1);
}

.utc-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 10;
}

.utc-modal-close:hover {
  background: #ef4444;
  border-color: #ef4444;
}

@media (max-width: 640px) {
  .utc-clock-readout {
    font-size: 2.15rem;
  }
  .utc-clock-readout .utc-millis {
    font-size: 1.25rem;
  }
  .utc-dashboard-card {
    padding: 1.5rem 1.25rem;
  }
  .utc-specs-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ================= КАРТКИ ПОСЛУГ (SERVICES) ================= */
.service-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--blue-200);
}

.service-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.bg-blue { background: var(--blue-50); color: var(--blue-600); }
.bg-gold { background: var(--gold-100); color: var(--gold-600); }
.bg-emerald { background: var(--emerald-100); color: var(--emerald-600); }

.service-title {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-bullets {
  margin-bottom: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-100);
}

.service-bullets li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.88rem;
  color: var(--slate-700);
  margin-bottom: 0.4rem;
}

.service-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--blue-500);
  font-weight: bold;
}

.service-action-link {
  font-weight: 700;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.feature-banner {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.banner-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--gold-600);
  margin-bottom: 0.5rem;
}

.feature-banner h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.feature-banner p {
  font-size: 0.92rem;
  color: var(--slate-600);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.feature-box-stat {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.feature-box-stat h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--navy-950);
}

.feature-box-stat p {
  font-size: 0.88rem;
  color: var(--slate-600);
  line-height: 1.5;
}

.stat-big {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--blue-600);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

/* ================= ДЕРЖАВНІ ЕТАЛОНИ (STANDARDS) ================= */
.standards-grid {
  gap: 1.5rem;
}

.standard-preview-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.standard-preview-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold-400);
  transform: translateY(-2px);
}

.standard-img-wrap {
  position: relative;
  height: 160px;
  overflow: hidden;
}

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

.detu-code {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: var(--navy-950);
  color: var(--gold-300);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(217, 119, 6, 0.4);
}

.standard-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.standard-name {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.standard-info {
  font-size: 0.85rem;
  color: var(--slate-300);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.standard-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-300);
}

/* ================= ХАБ ЗАМОВНИКА (CUSTOMER HUB) ================= */
.customer-hub-banner {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  color: var(--white);
}

.hub-title {
  font-size: 2.15rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.hub-desc {
  font-size: 1.05rem;
  color: var(--slate-300);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.hub-features {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.hub-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--slate-200);
}

.check-icon {
  color: var(--emerald-400);
  font-weight: 900;
}

.hub-downloads-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--slate-900);
  box-shadow: var(--shadow-xl);
}

.box-title {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--slate-200);
}

.doc-download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}

.doc-type-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.badge-word { background: #dbeafe; color: #1e40af; }
.badge-excel { background: #dcfce7; color: #166534; }
.badge-pdf { background: #fee2e2; color: #991b1b; }

.doc-meta {
  display: flex;
  flex-direction: column;
  margin-left: 0.75rem;
  margin-right: auto;
}

.doc-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--slate-900);
}

.doc-details {
  font-size: 0.75rem;
  color: var(--slate-500);
}

/* ================= НОВИНИ (NEWS) ================= */
.news-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.news-img-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
}

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

.news-date {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  background: rgba(4, 13, 26, 0.8);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.news-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-category {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--blue-600);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.news-title {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.news-excerpt {
  font-size: 0.88rem;
  color: var(--slate-600);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.news-readmore {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--blue-600);
}

/* ================= СТОРІНКОВІ ШАПКИ (PAGE HEADERS) ================= */
.page-header-banner {
  background: linear-gradient(180deg, var(--slate-100) 0%, var(--white) 100%);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--slate-200);
}

.bg-navy-hero {
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 1rem;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.page-lead {
  font-size: 1.15rem;
  color: var(--slate-600);
  max-width: 860px;
  line-height: 1.6;
}

/* ================= СЕРВІСНІ ФІЛЬТРИ ТА ПОШУК ================= */
.service-controls-box {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.search-input-wrap {
  position: relative;
  margin-bottom: 1.25rem;
}

.search-field {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 3rem;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.search-field:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--slate-400);
}

.filter-pills-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover {
  background: var(--slate-200);
}

.filter-pill.active {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

.service-card-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.service-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.service-icon { font-size: 2rem; }

.card-badge {
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--blue-50);
  color: var(--blue-700);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--slate-600);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.card-equipment-list {
  background: var(--slate-50);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  flex-grow: 1;
}

.card-equipment-list strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--navy-900);
}

.card-equipment-list ul li {
  margin-bottom: 0.25rem;
  padding-left: 1rem;
  position: relative;
}

.card-equipment-list ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald-500);
  font-weight: bold;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ================= НАВІГАЦІЙНИЙ ХАБ ЗАМОВНИКА (CUSTOMER NAV HUB - NO SCROLL GRID) ================= */
.customer-nav-hub {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 2.25rem;
  width: 100%;
}

.customer-hub-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  background: var(--white);
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.22s ease-in-out;
  position: relative;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  outline: none;
  user-select: none;
  width: 100%;
}

.customer-hub-tile:hover {
  border-color: var(--blue-400);
  color: var(--navy-900);
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.customer-hub-tile.active {
  background: linear-gradient(135deg, var(--navy-900) 0%, #1e293b 100%);
  border-color: var(--blue-500);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}

.customer-hub-tile.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 12px;
  right: 12px;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #fbbf24);
  border-radius: 2px;
}

.customer-hub-tile:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

.hub-tile-icon {
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--slate-100);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.customer-hub-tile:hover .hub-tile-icon {
  background: rgba(14, 165, 233, 0.12);
  transform: scale(1.08);
}

.customer-hub-tile.active .hub-tile-icon {
  background: rgba(255, 255, 255, 0.15);
}

.hub-tile-label {
  line-height: 1.3;
  display: block;
  flex: 1;
}

/* На десктопі (4 колонки) 7-ма картка (FAQ) гармонійно займає 2 колонки */
@media (min-width: 993px) {
  .customer-hub-tile:nth-child(7) {
    grid-column: span 2;
  }
}

/* Планшети (до 992px): 3 колонки, 7-ма картка на всю ширину */
@media (max-width: 992px) {
  .customer-nav-hub {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  .customer-hub-tile:nth-child(7) {
    grid-column: span 3;
  }
}

/* Смартфони (до 768px): 2 колонки, без прокрутки, 7-ма картка на всю ширину */
@media (max-width: 768px) {
  .customer-nav-hub {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin-bottom: 1.75rem;
  }
  .customer-hub-tile {
    padding: 0.75rem 0.75rem;
    font-size: 0.84rem;
    gap: 0.55rem;
    border-radius: var(--radius-md);
  }
  .hub-tile-icon {
    font-size: 1.2rem;
    min-width: 28px;
    height: 28px;
  }
  .customer-hub-tile:nth-child(7) {
    grid-column: span 2;
  }
}

/* Малі смартфони (до 480px) */
@media (max-width: 480px) {
  .customer-nav-hub {
    gap: 0.5rem;
  }
  .customer-hub-tile {
    padding: 0.65rem 0.55rem;
    font-size: 0.78rem;
    gap: 0.45rem;
  }
  .hub-tile-icon {
    font-size: 1.05rem;
    min-width: 24px;
    height: 24px;
  }
}

.customer-tab-pane {
  display: none;
}

.customer-tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.pane-header {
  margin-bottom: 2rem;
}

.pane-header h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.download-card-featured {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.file-size {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-400);
}

.doc-title {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.doc-desc {
  font-size: 0.92rem;
  color: var(--slate-600);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Data Table */
.table-responsive,
.cmc-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th, .data-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
}

.data-table th {
  background: var(--slate-50);
  font-weight: 700;
  color: var(--navy-900);
}

.data-table tfoot th {
  background: var(--slate-100);
}

.link-download {
  font-weight: 700;
  color: var(--blue-600);
}

.notice-box {
  background: #fefce8;
  border-left: 4px solid var(--gold-500);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: #854d0e;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.action-card {
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
}

.requisites-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.requisites-item {
  display: flex;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--slate-200);
  font-size: 0.92rem;
}

.req-label {
  width: 160px;
  font-weight: 700;
  color: var(--navy-900);
  flex-shrink: 0;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.verify-form-box {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group-inline {
  display: flex;
  gap: 0.75rem;
}

.form-control-lg {
  flex-grow: 1;
  padding: 0.85rem 1.25rem;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-family: inherit;
}

.form-control-lg:focus {
  outline: none;
  border-color: var(--blue-500);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-top: 0.65rem;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.faq-question {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--navy-950);
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.65;
}

/* ================= ДЕТУ ДЕТАЛІ ТА МОДАЛЬНЕ ВІКНО ================= */
.detu-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.detu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold-400);
}

.detu-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

.detu-card:hover .detu-img {
  transform: scale(1.04);
}

.detu-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--navy-950);
  color: var(--gold-400);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.detu-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.detu-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.detu-short {
  font-size: 0.88rem;
  color: var(--slate-600);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.detu-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--slate-100);
  font-size: 0.825rem;
}

.meta-label { color: var(--slate-500); }
.meta-val { font-family: var(--font-mono); font-weight: 700; color: var(--blue-700); }

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 13, 26, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 820px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--slate-100);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

.modal-preview-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  max-height: 280px;
}

.modal-code-badge {
  display: inline-block;
  background: var(--navy-900);
  color: var(--gold-400);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-top: 0.75rem;
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--slate-600);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.modal-meta-box {
  background: var(--slate-50);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* NTP & Specs */
.time-specs-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.time-spec-row {
  display: flex;
  font-size: 0.92rem;
}

.spec-k { width: 180px; color: var(--gold-300); font-weight: 700; flex-shrink: 0; }
.spec-v { color: var(--slate-200); }

.ntp-servers-card {
  background: var(--navy-850);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
}

.ntp-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ntp-icon { font-size: 1.75rem; }

.server-code-block {
  background: var(--navy-950);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.server-code-block code {
  font-family: var(--font-mono);
  color: var(--blue-400);
  font-size: 0.92rem;
}

.ntp-instruction {
  font-size: 0.85rem;
  color: var(--slate-400);
  line-height: 1.6;
}

.badge-count {
  font-weight: 700;
  color: var(--blue-700);
}

.badge-approved {
  color: var(--emerald-600);
  font-weight: 700;
}

/* ================= НАУКА ТА ЖУРНАЛ (SCIENCE) ================= */
.phd-highlight-box {
  background: var(--blue-50);
  border-left: 4px solid var(--blue-600);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.25rem 0;
}

.styled-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  color: var(--slate-700);
}

.styled-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--blue-600);
  font-weight: 900;
}

.rounded-card-img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.caption-box {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-top: 0.75rem;
  padding: 0 0.5rem;
}

.council-feature-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.council-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.journal-banner-box {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 3rem;
  align-items: center;
}

.journal-cover-img {
  width: 100%;
  max-width: 240px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}

.journal-issn {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate-500);
  margin-top: 0.75rem;
}

.journal-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.journal-desc {
  font-size: 1.05rem;
  color: var(--slate-600);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.journal-specs {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.92rem;
  padding: 1rem;
  background: var(--slate-50);
  border-radius: var(--radius-md);
}

.conf-card-cta {
  background: var(--white);
  border: 2px solid var(--blue-500);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.conf-badge {
  display: inline-block;
  background: var(--blue-600);
  color: var(--white);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

/* ================= ІСТОРІЯ ТА КОНТАКТИ ================= */
.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--slate-50);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--blue-600);
}

.timeline-step .year {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-900);
  min-width: 60px;
}

.history-poster-img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.org-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.org-badge {
  display: inline-block;
  background: var(--navy-900);
  color: var(--gold-400);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.anticorr-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.anticorr-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.anticorr-card p {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.card-link {
  font-weight: 700;
  color: var(--blue-600);
  font-size: 0.88rem;
}

/* Contacts page elements */
.intake-banner-card {
  background: linear-gradient(135deg, var(--white), var(--blue-50));
  border: 2px solid var(--blue-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  gap: 2rem;
  box-shadow: var(--shadow-md);
}

.intake-icon {
  font-size: 3rem;
  line-height: 1;
}

.intake-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  font-size: 0.95rem;
}

.phone-link, .mail-link {
  font-weight: 700;
  color: var(--blue-700);
  font-size: 1.1rem;
}

.feedback-form-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.4rem;
}

.contact-form .form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form .form-control:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.map-side-card {
  display: flex;
  flex-direction: column;
}

.map-placeholder-box {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 340px;
}

.map-building-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-overlay-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 13, 26, 0.95) 100%);
  color: var(--white);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
}

.logistics-notice {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

/* ================= ПІДВАЛ (FOOTER) ================= */
.main-footer {
  background: var(--navy-950);
  color: var(--slate-300);
  padding: 4.5rem 0 0 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-emblem { font-size: 2rem; }

.footer-title {
  font-size: 1.2rem;
  color: var(--white);
}

.footer-subtitle {
  font-size: 0.75rem;
  color: var(--slate-400);
}

.footer-about-text {
  font-size: 0.9rem;
  color: var(--slate-400);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cert-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-300);
  border: 1px solid rgba(217, 119, 6, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.footer-heading {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-menu a {
  color: var(--slate-400);
  font-size: 0.9rem;
}

.footer-menu a:hover {
  color: var(--white);
  padding-left: 3px;
}

.footer-contacts p {
  font-size: 0.88rem;
  color: var(--slate-400);
  margin-bottom: 0.6rem;
}

.footer-contacts a {
  color: var(--slate-200);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.4);
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.825rem;
  color: var(--slate-500);
}

.gov-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gov-links a {
  color: var(--slate-400);
}

.gov-links a:hover {
  color: var(--gold-300);
}

/* ================= АДАПТИВНІСТЬ ДЛЯ МОБІЛЬНИХ ПРИСТРОЇВ ================= */
@media (max-width: 1080px) {
  .hero-container { grid-template-columns: 1fr; }
  .hero-card-side { margin-top: 1.5rem; }
  .customer-hub-banner { grid-template-columns: 1fr; }
  .journal-banner-box { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .mobile-toggle { display: block; }
  
  body.menu-open {
    overflow: hidden;
  }

  /* Top Bar & Precision Clock */
  .top-bar {
    padding: 0.4rem 0;
  }

  .top-bar-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    text-align: center;
  }

  .top-bar-left, .top-bar-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .utc-clock-badge {
    max-width: 100%;
    justify-content: center;
    padding: 0.25rem 0.6rem;
    gap: 0.35rem;
  }

  .utc-label {
    font-size: 0.78rem;
  }

  .utc-time {
    font-size: 0.88rem;
    min-width: auto;
  }

  .utc-date {
    font-size: 0.75rem;
    padding-left: 0.35rem;
  }

  .utc-badge-chip {
    font-size: 0.65rem;
    padding: 0.05rem 0.3rem;
  }

  .hide-sm {
    display: none !important;
  }

  /* Header Compact Mode */
  .header-container {
    height: 68px;
  }

  .brand-logo {
    gap: 0.65rem;
    max-width: calc(100% - 50px);
  }

  .logo-emblem {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .logo-crest {
    font-size: 1.3rem;
  }

  .brand-title {
    font-size: 1rem;
    line-height: 1.2;
  }

  .brand-subtitle {
    font-size: 0.62rem;
    line-height: 1.25;
  }

  /* Mobile Navigation Drawer (Hidden when closed so no layout overflow) */
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 86vw);
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    padding: 1.25rem 1.25rem 2rem 1.25rem;
    box-shadow: -10px 0 35px rgba(4, 13, 26, 0.45);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(105%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
    visibility: hidden;
    pointer-events: none;
  }

  .main-nav.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 13, 26, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--slate-200);
    margin-bottom: 0.85rem;
  }

  .mobile-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .mobile-nav-emblem {
    font-size: 1.25rem;
  }

  .mobile-nav-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy-950);
  }

  .mobile-nav-close {
    background: var(--slate-100);
    border: 1px solid var(--slate-300);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--slate-700);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
  }

  .mobile-nav-close:hover,
  .mobile-nav-close:active {
    background: var(--slate-200);
    color: var(--navy-950);
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-800);
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
  }

  .nav-link:hover, .nav-link:active {
    background: var(--blue-50);
    color: var(--blue-700);
    border-color: var(--blue-200);
  }

  .nav-link.active {
    background: var(--blue-600);
    color: #ffffff;
    border-color: var(--blue-600);
    font-weight: 700;
  }

  .nav-link.cta-nav-link {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
    font-weight: 700;
  }

  .mobile-nav-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--slate-200);
  }

  .mobile-cta-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .mobile-phone-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    color: var(--navy-900);
    text-decoration: none;
    font-size: 0.82rem;
  }

  .mobile-phone-btn .phone-num {
    font-weight: 800;
    color: var(--blue-700);
  }

  /* Mobile Typography & Layout */
  .section { padding: 2.75rem 0; }
  .section-header { margin-bottom: 2rem; }
  .section-header-flex { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .section-title { font-size: 1.65rem; }
  .page-header-banner { padding: 2rem 0; }
  .page-title { font-size: 1.65rem; word-break: break-word; }
  .page-lead { font-size: 0.95rem; }
  .hero-title { font-size: 2.15rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; gap: 2rem; }

  /* Mobile Button Safety & Wrapping */
  .btn {
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
  }
  .btn-lg {
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    width: 100%;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-cta-group .btn {
    width: 100%;
  }

  /* Customer Hub Banner & Large Card Responsiveness */
  .customer-hub-banner {
    padding: 1.75rem 1.25rem;
    gap: 1.75rem;
    border-radius: var(--radius-lg);
  }
  .hub-title {
    font-size: 1.55rem;
    line-height: 1.25;
  }
  .hub-desc {
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
  }
  .hub-features {
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }
  .hub-feature-item {
    font-size: 0.88rem;
    align-items: flex-start;
    line-height: 1.4;
  }
  .hub-downloads-box {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }

  /* Responsive Cards across all pages */
  .service-card,
  .service-card-item,
  .download-card-featured,
  .journal-banner-box,
  .contact-card,
  .standard-detail-card,
  .about-hero-box,
  .history-timeline-box,
  .quality-system-box,
  .feedback-form-card,
  .intake-banner-card {
    padding: 1.35rem 1.15rem;
    border-radius: var(--radius-lg);
  }

  .intake-banner-card {
    flex-direction: column;
    gap: 1rem;
  }
  .intake-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .journal-banner-box {
    gap: 1.5rem;
  }
  .journal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }
  .journal-actions .btn {
    width: 100%;
  }

  /* DETU Modal */
  .modal-overlay {
    padding: 1rem;
  }
  .modal-content {
    padding: 1.5rem 1rem;
    max-height: 85vh;
    overflow-y: auto;
  }
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Footer Bottom */
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .gov-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .section {
    padding: 2.25rem 0;
  }
  .section-title {
    font-size: 1.4rem;
    line-height: 1.25;
  }
  .page-title {
    font-size: 1.4rem;
    line-height: 1.25;
  }
  .header-container {
    height: 62px;
  }
  .logo-emblem {
    width: 36px;
    height: 36px;
  }
  .logo-crest {
    font-size: 1.15rem;
  }
  .brand-title {
    font-size: 0.92rem;
  }
  .brand-subtitle {
    display: none;
  }
  .utc-clock-badge {
    font-size: 0.74rem;
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.45rem;
    gap: 0.25rem;
  }
  .utc-date {
    display: none;
  }
  .utc-time {
    font-size: 0.82rem;
  }
  .utc-badge-chip {
    font-size: 0.62rem;
  }
  .top-bar-right {
    font-size: 0.74rem;
    gap: 0.4rem;
  }
  .hero-title { font-size: 1.85rem; }
  .stats-row { grid-template-columns: 1fr; }
  .form-group-inline { flex-direction: column; }
  .btn-lg { width: 100%; }

  .customer-hub-banner {
    padding: 1.25rem 0.85rem;
    gap: 1.25rem;
  }
  .hub-title {
    font-size: 1.35rem;
  }
  .hub-feature-item {
    font-size: 0.85rem;
  }
  .doc-download-card {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .doc-meta {
    margin-right: 0;
    max-width: calc(100% - 55px);
  }
  .btn-download {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .card-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .card-actions .btn {
    width: 100%;
  }
  .doc-btn-wrap .btn {
    width: 100%;
  }
  .feature-box-stat {
    padding: 1.25rem 1rem;
  }
}

/* ==========================================================================
   ПРОТОТИПНИЙ БАННЕР-СПОСТЕРЕЖЕННЯ (PROTOTYPE NOTICE BANNER)
   ========================================================================== */
.prototype-banner {
  background: linear-gradient(135deg, #051326 0%, #0b2242 50%, #081a33 100%);
  border-bottom: 3px solid #f59e0b;
  color: #e2e8f0;
  position: relative;
  z-index: 990;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.proto-banner-inner {
  padding: 1.5rem 0 1.25rem 0;
}

.proto-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.proto-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.proto-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.proto-tag-warning {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.proto-tag-live {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.proto-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.proto-toggle-btn {
  background: transparent;
  border: 1px solid rgba(226, 232, 240, 0.3);
  color: #cbd5e1;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.proto-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: #ffffff;
}

.proto-main-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.proto-desc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  background: rgba(4, 13, 26, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.proto-desc-col p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #cbd5e1;
  margin-bottom: 0.4rem;
}

.proto-desc-col p:last-child {
  margin-bottom: 0;
}

.proto-desc-col strong {
  color: #ffffff;
}

.proto-warning-note {
  background: rgba(245, 158, 11, 0.12);
  border-left: 3px solid #f59e0b;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  color: #fef08a !important;
  font-size: 0.86rem !important;
  line-height: 1.45;
  margin-top: 0.65rem;
}

.proto-warning-note strong {
  color: #fbbf24 !important;
}

.proto-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-proto-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #040d1a;
  font-weight: 700;
  border: none;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-proto-gold:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  color: #040d1a;
}

.btn-proto-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-proto-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.proto-collapsed-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 0.85rem;
  color: #fbbf24;
  gap: 0.75rem;
}

.proto-collapsed-text {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.proto-note {
  color: #cbd5e1;
  font-weight: normal;
  font-size: 0.82rem;
}

.prototype-banner.collapsed .proto-banner-inner {
  display: none;
}

.prototype-banner.collapsed .proto-collapsed-bar {
  display: flex;
}

@media (max-width: 768px) {
  .proto-desc-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .proto-main-title {
    font-size: 1.15rem;
  }
  .proto-collapsed-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.45rem;
    padding: 0.5rem 0.25rem;
  }
  .proto-collapsed-text {
    justify-content: center;
    font-size: 0.8rem;
  }
  .proto-collapsed-bar .proto-toggle-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
  }
  .proto-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-proto-gold, .btn-proto-ghost {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   КЛІКАБЕЛЬНА КАРТА САЙТУ У ФУТЕРІ (CLICKABLE FOOTER SITEMAP)
   ========================================================================== */
.footer-sitemap-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 0 2.5rem 0;
  margin-top: 2.5rem;
}

.sitemap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sitemap-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sitemap-badge {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.4);
  color: #38bdf8;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sitemap-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.sitemap-subtitle {
  font-size: 0.85rem;
  color: #94a3b8;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.sitemap-col {
  display: flex;
  flex-direction: column;
}

.sitemap-col-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 0.6rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--blue-500);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sitemap-link {
  color: #94a3b8;
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: flex-start;
  gap: 0.35rem;
  line-height: 1.4;
}

.sitemap-link::before {
  content: '›';
  color: var(--blue-400);
  font-weight: 700;
  line-height: 1;
}

.sitemap-link:hover {
  color: #38bdf8;
  transform: translateX(3px);
}

.sitemap-link.highlight {
  color: #fbbf24;
}

.sitemap-link.highlight:hover {
  color: #fde047;
}

@media (max-width: 1200px) {
  .sitemap-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .sitemap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (max-width: 480px) {
  .sitemap-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}


/* ==========================================================================
   ЗАГЛУШКИ ДЛЯ ДАНИХ, ЩО ЩЕ НЕ ЗАТВЕРДЖЕНІ / ДОКУМЕНТІВ, ЯКИХ ЩЕ НЕМАЄ
   ========================================================================== */
.data-pending {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border: 1px dashed var(--gold-500);
  border-radius: 4px;
  background: var(--gold-100);
  color: var(--gold-600);
  font-weight: 600;
  font-size: 0.85em;
}

.btn-pending,
.btn-pending:hover {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px dashed #94a3b8;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: not-allowed;
  text-decoration: none;
}

.demo-notice {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--gold-500);
  border-radius: 8px;
  background: var(--gold-100);
  color: #1e293b;
  font-size: 0.9rem;
  line-height: 1.6;
}

.lang-btn.lang-btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Блок «Як нас знайти» без форми зворотного зв'язку (contacts.html) */
.location-single {
  max-width: 760px;
  margin: 0 auto;
}
