/* 1.1. ПЕРЕМІННІ ТА ГЛОБАЛЬНІ НАЛАШТУВАННЯ */
:root {
  --bg: #0b1220;
  --card: #0f172a;
  --muted: #94a3b8;
  --ink: #e2e8f0;
  --brand: #22d3ee;
  --brand-2: #8b5cf6;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --hdr-bg: rgba(11, 18, 32, 0.55);
  --hdr-line: rgba(255, 255, 255, 0.08);
  --chip: rgba(255, 255, 255, 0.06);
}

/* Кросбраузерний Reset */
* { 
  -webkit-box-sizing: border-box; 
  -moz-box-sizing: border-box;
  box-sizing: border-box; 
  -webkit-tap-highlight-color: transparent; /* Прибирає синє підсвічування на тапах в iOS/Android */
}

html, body { 
  height: 100%; 
  -webkit-text-size-adjust: 100%; /* Забороняє iOS самовільно збільшувати шрифт */
  -ms-text-size-adjust: 100%;
}

body {
  margin: 0;
  /* Додаємо -apple-system для миттєвого завантаження рідних шрифтів Apple */
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg); 
  position: relative;
  isolation: isolate; 
  transition: background-color 0.3s ease, color 0.3s ease;
  
  /* Плавність шрифтів для Mac та Windows */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 1.2. ФОН З ЧАСТИНКАМИ (tsParticles) */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1; 
  /* Фікс для продуктивності на мобільних */
  pointer-events: none; 
}

/* Базові елементи */
a { 
  color: inherit; 
  text-decoration: none; 
  -webkit-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out; 
}

img { 
  max-width: 100%; 
  height: auto; 
  display: block; /* Прибирає зайві відступи знизу картинки */
}

.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 20px; 
}

/* Універсальний стиль для посилань-кнопок та тегів button */
.btn, .pill, .copy-btn, .slick-nav button {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex; /* Кросбраузерний флекс */
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  border: none;
  font-family: inherit;
  -webkit-appearance: none; /* Прибирає дефолт Safari */
  appearance: none;
  vertical-align: middle;
}

/* Фікс для кнопок-посилань (<a>), щоб вони не схлопувалися */
a.btn {
  line-height: 1.2;
}

.hero .wrap {
  display: -ms-grid;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

/* Жорстке приховування панелей для всіх браузерів */
.panel[hidden] {
  display: none !important;
}

.panel.show {
  display: block; /* Або флекс, якщо потрібно всередині */
}

.utm-grid input, .faq-search input {
  -webkit-appearance: none;
  appearance: none;
  -webkit-border-radius: 10px; /* Обов'язково з префіксом для iOS */
  border-radius: 10px;
  /* Прибираємо дефолтне закруглення Safari, яке він додає сам */
}

/* Світла тема */
html.light-mode {
  --bg: #f4f7fa;
  --card: #fff;
  --muted: #64748b;
  --ink: #1e293b;
  --shadow: 0 10px 30px rgba(100, 116, 139, 0.1);
  --hdr-bg: rgba(255, 255, 255, 0.55);
  --hdr-line: rgba(0, 0, 0, 0.08);
  --chip: rgba(0, 0, 0, 0.05);
}
html.light-mode .page-about .muted { color: #475569; }

/* ===============================================
 * 2.1. ТЕМА ТА ПЕРЕМИКАЧ (Theme Switcher)
 * =============================================== */

.theme-switcher { 
  width: 42px; 
  height: 42px; 
  padding: 0; 
  display: -webkit-inline-grid;
  display: inline-grid; 
  place-items: center; 
  border-radius: 50%; 
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
}

.theme-switcher:hover { background-color: var(--chip); }
.theme-icon { font-size: 18px; }

/* Кросбраузерне керування відображенням іконок */
.theme-switcher-dark { display: none; }
.theme-switcher-light { display: -webkit-inline-grid; display: inline-grid; }
.light-mode .theme-switcher-dark { display: -webkit-inline-grid; display: inline-grid; }
.light-mode .theme-switcher-light { display: none; }

/* ===============================================
 * 2.2. ІНТЕРАКТИВНІ ЕЛЕМЕНТИ (Buttons & Links)
 * =============================================== */

/* Додаємо -webkit-appearance, щоб Safari не малював кнопки «бульбашками» */
a, button, .btn, .bln-btn, summary, .pill, .js-preview, .close-x, .copy-btn, .slick-nav button {
  cursor: pointer; 
  -webkit-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
  -webkit-appearance: none;
  appearance: none;
}

.btn:hover, .bln-btn:hover, .card:hover, .tile:hover, .rev:hover, .pill:hover, .partner-item:hover, details[open], .copy-btn:hover {
  -webkit-transform: translateY(-3px);
  transform: translateY(-3px); 
  -webkit-box-shadow: var(--shadow);
  box-shadow: var(--shadow);
}

.btn.primary:hover, .bln-btn.primary:hover, .copy-btn:hover { opacity: 0.9; }

/* Кнопка вгору */
#scrollToTopBtn {
  display: none; 
  position: fixed; 
  bottom: 30px; 
  right: 30px; 
  z-index: 999;
  border: none; 
  outline: none; 
  background-color: #555; 
  color: #fff; 
  padding: 15px; 
  border-radius: 50%; 
  font-size: 18px; 
  line-height: 1; 
  width: 50px; 
  height: 50px;
  opacity: 0.7; 
  -webkit-transition: background-color 0.3s, opacity 0.3s, -webkit-transform 0.3s;
  transition: background-color 0.3s, opacity 0.3s, transform 0.3s;
}
#scrollToTopBtn:hover { background-color: #333; opacity: 1; }
#scrollToTopBtn.show { display: block; }

/* ===============================================
 * 2.3. HEADER (Кросбраузерний Блюр та Sticky)
 * =============================================== */

.bln-header { 
  position: -webkit-sticky; /* Для Safari < 13 */
  position: sticky; 
  top: 0; 
  z-index: 1000; 
  background: var(--hdr-bg); 
  
  /* Ефект скла: Safari вимагає префікс обов'язково */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px); 
  
  border-bottom: 1px solid var(--hdr-line); 
  /* Фікс для стабільності фону при скролі на iOS */
  -webkit-transform: translateZ(0);
}

.bln-wrap { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 20px; 
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; 
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center; 
  gap: 16px; 
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between; 
}

.bln-brand { 
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; 
  align-items: center; 
  gap: 10px; 
  color: var(--ink); 
  font-weight: 800; 
}

.bln-brand img { height: 34px; display: block; }

.bln-nav { 
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; 
  gap: 6px; 
  align-items: center; 
}

.bln-nav a { 
  color: var(--muted); 
  padding: 10px 12px; 
  border-radius: 10px; 
}

.bln-nav a:hover { 
  color: var(--ink); 
  background: var(--chip); 
  -webkit-transform: none;
  transform: none; 
  box-shadow: none; 
}

.bln-cta { 
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; 
  gap: 10px; 
  align-items: center; 
}

.bln-btn { 
  padding: 8px 14px; 
  border: 1px solid var(--hdr-line); 
  border-radius: 12px; 
  background: var(--card); 
  color: var(--ink); 
  font-weight: 700;
  line-height: 1.2; /* Фікс центрування тексту */
}

.bln-btn.primary { 
  border: none; 
  background: -webkit-linear-gradient(135deg, var(--brand), var(--brand-2));
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); 
  color: #061120; 
  -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); 
}

.bln-burger { 
  display: none; 
  width: 42px; 
  height: 42px; 
  border-radius: 10px; 
  border: 1px solid var(--hdr-line); 
  background: var(--card); 
  color: var(--ink); 
  place-items: center;
}

.bln-drawer { 
  display: none; 
  position: fixed; 
  left: 0; 
  right: 0; 
  top: 58px; 
  background: var(--bg); 
  z-index: 999; 
  padding: 12px 20px; 
  border-top: 1px solid var(--hdr-line); 
  /* Плавна поява для мобільних */
  -webkit-overflow-scrolling: touch;
}

/* ===============================================
 * 3.1. HERO СЕКЦІЯ (Глобальні налаштування)
 * =============================================== */

.hero { 
  position: relative; 
  overflow: hidden; 
  /* Форсуємо апаратне прискорення для плавності */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.hero .wrap { 
  display: -ms-grid;
  display: grid; 
  grid-template-columns: 1.1fr 0.9fr; 
  gap: 32px; 
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center; 
  padding: 72px 0; 
}

/* Бейдж (Badge) */
.badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex; 
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center; 
  gap: 8px; 
  padding: 8px 12px; 
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12); 
  border: 1px solid rgba(34, 211, 238, 0.35); 
  color: var(--brand); 
  font-weight: 600;
  line-height: 1;
}

/* Заголовок (H1) з кросбраузерним clamp */
.h1 { 
  font-size: 28px; /* Fallback */
  font-size: clamp(28px, 5vw, 54px); 
  line-height: 1.08; 
  margin: 14px 0 10px; 
  font-weight: 800; 
}

/* ===============================================
 * 3.2. ГРАДІЄНТНИЙ ТЕКСТ (Safari & Chrome Fix)
 * =============================================== */

.grad { 
  background: -webkit-linear-gradient(135deg, #bff7ff 0%, #d9d0ff 50%, #fff 100%);
  background: linear-gradient(135deg, #bff7ff 0%, #d9d0ff 50%, #fff 100%); 
  -webkit-background-clip: text; 
  background-clip: text; 
  /* Обов'язково для Safari, щоб текст став прозорим і показав градієнт */
  -webkit-text-fill-color: transparent;
  color: transparent; 
}

.light-mode .grad { 
  background: -webkit-linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); 
  -webkit-background-clip: text; 
  background-clip: text; 
  -webkit-text-fill-color: transparent;
}

.sub { 
  color: var(--muted); 
  font-size: 16px; /* Fallback */
  font-size: clamp(16px, 2.2vw, 18px); 
  max-width: 640px; 
  line-height: 1.6;
}

/* ===============================================
 * 3.3. КАРТКИ ТА МЕТРИКИ (Metrics & Cards)
 * =============================================== */

.hero-cta { 
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; 
  gap: 14px; 
  margin-top: 22px; 
  -ms-flex-wrap: wrap;
  flex-wrap: wrap; 
}

.hero-card { 
  background-color: var(--card); 
  border: 1px solid var(--hdr-line); 
  border-radius: var(--radius); 
  padding: 22px; 
  -webkit-box-shadow: var(--shadow);
  box-shadow: var(--shadow); 
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease; 
}

.hero-metrics { 
  display: -ms-grid;
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 14px; 
  margin-top: 14px; 
}

.metric { 
  padding: 14px; 
  border-radius: 16px; 
  background-color: var(--chip); 
  border: 1px solid var(--hdr-line); 
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease; 
}

.metric .num { 
  font-size: 24px; 
  font-weight: 800; 
  line-height: 1.2;
}

/* Чипси (Chips) */
.chips { 
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; 
  -ms-flex-wrap: wrap;
  flex-wrap: wrap; 
  gap: 8px; 
  margin-top: 18px; 
}

.chip { 
  padding: 8px 12px; 
  border-radius: 999px; 
  background-color: var(--chip); 
  border: 1px solid var(--hdr-line); 
  font-size: 14px; 
  color: var(--muted); 
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease; 
  white-space: nowrap; /* Щоб текст у чипсах не розривався */
}

/* ===============================================
 * 4.1. PERSONAS (Вкладки та панелі)
 * =============================================== */

.personas { padding: 50px 0; }

.personas-head { 
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; 
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center; 
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between; 
  gap: 16px; 
  -ms-flex-wrap: wrap;
  flex-wrap: wrap; 
  margin-bottom: 16px; 
}

.personas h2 { margin: 0; }

.pill-tabs { 
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex; 
  gap: 8px; 
  background-color: var(--chip); 
  border: 1px solid var(--hdr-line); 
  border-radius: 999px; 
  padding: 6px; 
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease; 
}

.pill { 
  border: 0; 
  padding: 10px 14px; 
  border-radius: 999px; 
  color: var(--muted); 
  background: transparent; 
  cursor: pointer; 
  font-weight: 700; 
  -webkit-appearance: none;
  appearance: none;
}

.pill.active { 
  background: -webkit-linear-gradient(135deg, var(--brand), var(--brand-2));
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); 
  color: #061120; 
}

.persona-panels { 
  background-color: var(--card); 
  border: 1px solid var(--hdr-line); 
  border-radius: 18px; 
  padding: 18px; 
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease; 
}

.panel { display: none; }
.panel.show { display: block; }

.panel-list { 
  margin: 0 0 12px; 
  padding: 0; 
  list-style: none; 
  display: -ms-grid;
  display: grid; 
  gap: 10px; 
}

.panel-list i { margin-right: 8px; }

.panel-cta { 
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; 
  gap: 10px; 
  -ms-flex-wrap: wrap;
  flex-wrap: wrap; 
}

/* ===============================================
 * 4.2. PARTNERS & LOGOS
 * =============================================== */

.logos { padding: 30px 0; border-top: 1px solid var(--hdr-line); border-bottom: 1px solid var(--hdr-line); }
.logos h3 { text-align: center; color: var(--muted); font-weight: 600; margin: 0 0 14px; }

.partners { padding: 60px 0; }
.partners-head { 
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 12px; 
  flex-wrap: wrap; 
  margin-bottom: 10px; 
}

.partners-search { 
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; 
  gap: 8px; 
  align-items: center; 
  background-color: var(--card); 
  border: 1px solid var(--hdr-line); 
  border-radius: 12px; 
  padding: 8px 12px; 
}

.partners-search input { 
  border: 0; 
  outline: 0; 
  background: transparent; 
  color: var(--ink); 
  -webkit-appearance: none;
}

.partner-item { 
  margin: 5px; 
  padding: 10px; 
  background-color: var(--card); 
  border: 1px solid var(--hdr-line); 
  border-radius: 14px; 
}

/* ===============================================
 * 4.3. LIVE FEED (Кросбраузерна анімація)
 * =============================================== */

.live-feed { padding: 20px 0; }

.feed-track { 
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; 
  gap: 10px; 
  overflow: hidden; 
  /* Градієнтне загасання по боках - Safari потребує -webkit префікс */
  -webkit-mask-image: -webkit-linear-gradient(left, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); 
}

.feed-pill { 
  white-space: nowrap; 
  background-color: var(--card); 
  border: 1px solid var(--hdr-line); 
  border-radius: 999px; 
  padding: 8px 12px; 
  color: var(--muted); 
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex; 
  gap: 8px; 
  align-items: center; 
  /* Анімація з префіксом */
  -webkit-animation: slideLeft 18s linear infinite;
  animation: slideLeft 18s linear infinite; 
}

/* Кросбраузерні Keyframes */
@-webkit-keyframes slideLeft { 
  0% { -webkit-transform: translateX(0); transform: translateX(0); } 
  100% { -webkit-transform: translateX(-100%); transform: translateX(-100%); } 
}

@keyframes slideLeft { 
  0% { -webkit-transform: translateX(0); transform: translateX(0); } 
  100% { -webkit-transform: translateX(-100%); transform: translateX(-100%); } 
}

/* ===============================================
 * 5.1. HOW / STATS / REVIEWS (Grid & Card Fixes)
 * =============================================== */

.how { padding: 72px 0; }
.how h2 { font-size: clamp(24px, 4vw, 36px); margin: 0 0 26px; }

.cards { 
  display: -ms-grid;
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 18px; 
}

.card { 
  background-color: var(--card); 
  border: 1px solid var(--hdr-line); 
  border-radius: 18px; 
  padding: 22px; 
  -webkit-transition: background-color 0.3s ease, -webkit-transform 0.2s ease-out, box-shadow 0.2s ease-out;
  transition: background-color 0.3s ease, transform 0.2s ease-out, box-shadow 0.2s ease-out; 
}

.card h3 { margin: 0 0 10px; font-size: 18px; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.card li { margin: 8px 0; }

.stats { padding: 60px 0; }
.tiles { 
  display: -ms-grid;
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 18px; 
}

.tile { 
  background-color: var(--card); 
  border: 1px solid var(--hdr-line); 
  border-radius: 18px; 
  padding: 18px; 
  text-align: center; 
  -webkit-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out; 
}

.tile .icon { font-size: 28px; opacity: 0.9; margin-bottom: 6px; }
.tile .big { font-size: 28px; font-weight: 800; line-height: 1.2; }
.tile .label { color: var(--muted); }

.reviews { padding: 60px 0; }
.rev-grid { 
  display: -ms-grid;
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 18px; 
}

.rev { 
  background-color: var(--card); 
  border: 1px solid var(--hdr-line); 
  border-radius: 18px; 
  padding: 18px; 
  -webkit-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out; 
}

.rev .stars { color: #fbbf24; }
.rev .meta { color: var(--muted); font-size: 13px; }

/* ===============================================
 * 5.2. QUIZ & UTM GENERATOR (Form elements)
 * =============================================== */

.quick-quiz { padding: 60px 0; }
.quiz-card { 
  background-color: var(--card); 
  border: 1px solid var(--hdr-line); 
  border-radius: 18px; 
  padding: 18px; 
}

.quiz-card .opts { 
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; 
  -ms-flex-wrap: wrap;
  flex-wrap: wrap; 
  gap: 10px; 
}

.quiz-card .opts button { 
  border: 1px solid var(--hdr-line); 
  background-color: var(--bg); 
  color: var(--ink); 
  border-radius: 999px; 
  padding: 10px 14px; 
  -webkit-appearance: none;
  appearance: none;
}

.utm { padding: 56px 0; }
.utm-card { background-color: var(--card); border: 1px solid var(--hdr-line); border-radius: 18px; padding: 18px; }

.utm-grid { 
  display: -ms-grid;
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 14px; 
}

.utm-grid label { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; font-weight: 600; color: var(--muted); }

.utm-grid input, .utm-out input { 
  margin-top: 6px; 
  background-color: var(--bg); 
  color: var(--ink); 
  border: 1px solid var(--hdr-line); 
  border-radius: 10px; 
  padding: 10px; 
  -webkit-appearance: none; /* Прибираємо внутрішні тіні iOS */
  appearance: none;
}

.utm-out { 
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; 
  gap: 10px; 
  margin-top: 12px; 
  -ms-flex-wrap: wrap;
  flex-wrap: wrap; 
}

.copy-btn { 
  border: 1px solid rgba(255, 255, 255, 0.14); 
  background: -webkit-linear-gradient(135deg, var(--brand), var(--brand-2));
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); 
  color: #061120; 
  border-radius: 10px; 
  padding: 10px 14px; 
  font-weight: 800; 
  -webkit-appearance: none;
}

/* ===============================================
 * 5.3. FAQ (Details & Summary Safari Fix)
 * =============================================== */

.faq { padding: 60px 0; }
.faq-search { 
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; 
  gap: 8px; 
  align-items: center; 
  background-color: var(--card); 
  border: 1px solid var(--hdr-line); 
  border-radius: 12px; 
  padding: 8px 12px; 
}

.faq-search input { border: 0; outline: 0; background: transparent; color: var(--ink); -webkit-appearance: none; }

details { 
  background-color: var(--card); 
  border: 1px solid var(--hdr-line); 
  border-radius: 14px; 
  padding: 14px; 
  margin: 10px 0; 
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease; 
}

/* Прибираємо стандартну стрілку в Safari */
summary { 
  cursor: pointer; 
  font-weight: 700; 
  list-style: none; /* Chrome/FF */
}
summary::-webkit-details-marker { 
  display: none; /* Safari */
}

details[open] { 
  outline: 1px solid rgba(34, 211, 238, 0.25); 
  -webkit-box-shadow: var(--shadow);
  box-shadow: var(--shadow);
}

/* ===============================================
 * 6.1. STICKY CTA (Нижня плаваюча панель)
 * =============================================== */

.sticky-cta {
  position: fixed; 
  left: 50%; 
  /* Фікс для точного центрування в усіх браузерах */
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%); 
  bottom: 18px; 
  z-index: 999;
  display: none; 
  gap: 10px; 
  background-color: rgba(11, 18, 32, 0.8); 
  
  /* Ефект розмиття для Safari */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px); 
  
  border: 1px solid var(--hdr-line); 
  border-radius: 12px; 
  padding: 8px;
}

.light-mode .sticky-cta { background-color: rgba(255, 255, 255, 0.8); }

.sticky-cta a { 
  padding: 10px 14px; 
  border-radius: 10px; 
  border: 1px solid var(--hdr-line); 
  background-color: var(--card); 
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.sticky-cta a.primary { 
  border: none; 
  background: -webkit-linear-gradient(135deg, var(--brand), var(--brand-2));
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); 
  color: #061120 !important; 
  font-weight: 800; 
}

/* ===============================================
 * 6.2. MODAL (Модальні вікна)
 * =============================================== */

.modal { 
  position: fixed; 
  /* Кросбраузерне розтягування на весь екран */
  top: 0; left: 0; right: 0; bottom: 0;
  display: none; 
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center; 
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center; 
  background-color: rgba(0,0,0,0.6); 
  z-index: 1000; 
  /* Додаємо плавний скрол для iOS, якщо контент модалки великий */
  -webkit-overflow-scrolling: touch;
}

.light-mode .modal { background-color: rgba(255,255,255,0.6); }

.modal .box { 
  width: min(900px, 92vw); 
  background-color: var(--card); 
  border: 1px solid var(--hdr-line); 
  border-radius: 16px; 
  overflow: hidden; 
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease; 
}

.modal .box header { 
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; 
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between; 
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center; 
  padding: 12px 16px; 
  border-bottom: 1px solid var(--hdr-line); 
}

.modal .box .content { 
  display: -ms-grid;
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 0; 
}

.modal .box .img { 
  background-color: var(--bg); 
  padding: 10px; 
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease; 
}

.modal .box .img img { 
  width: 100%; 
  height: auto; 
  border-radius: 8px; 
}

.modal .box .meta { padding: 16px; }

.modal .actions { 
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; 
  gap: 10px; 
  margin-top: 12px; 
  -ms-flex-wrap: wrap;
  flex-wrap: wrap; 
}

/* ===============================================
 * 6.3. FOOTER & COOKIE CONSENT
 * =============================================== */

.bln-footer {
  /* Фікс для складних градієнтів у старих браузерах */
  background-color: var(--bg);
  background-image: 
    -webkit-radial-gradient(15% 0%, 800px 400px, rgba(34, 211, 238, 0.12), transparent 60%),
    -webkit-radial-gradient(85% 0%, 800px 400px, rgba(139, 92, 246, 0.12), transparent 60%);
  background-image: 
    radial-gradient(800px 400px at 15% 0%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(800px 400px at 85% 0%, rgba(139, 92, 246, 0.12), transparent 60%);
  
  color: var(--muted); 
  border-top: 1px solid var(--hdr-line); 
  padding: 40px 0;
  -webkit-transition: background-color 0.3s ease, color 0.3s ease;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.bln-grid { 
  display: -ms-grid;
  display: grid; 
  grid-template-columns: 2fr 1fr; 
  gap: 28px; 
}

.bln-org h2 { 
  margin: 0 0 8px; 
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; 
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center; 
  gap: 10px; 
  color: var(--ink); 
  font-size: 20px; 
}

.bln-social { 
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; 
  gap: 12px; 
  margin-top: 8px; 
}

.bln-social a { 
  width: 38px; 
  height: 38px; 
  border-radius: 10px; 
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex; 
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  border: 1px solid var(--hdr-line); 
  color: var(--ink); 
}

.bln-bottom { 
  margin-top: 18px; 
  padding-top: 14px; 
  border-top: 1px solid var(--hdr-line); 
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; 
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between; 
  gap: 10px; 
  -ms-flex-wrap: wrap;
  flex-wrap: wrap; 
  color: var(--muted); 
  font-size: 14px; 
}

.cookie-consent {
  position: fixed; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  background-color: var(--card); 
  color: var(--ink);
  padding: 14px 18px; 
  display: none; 
  z-index: 9999; 
  border-top: 1px solid var(--hdr-line); 
  -webkit-box-shadow: var(--shadow);
  box-shadow: var(--shadow);
}

.cookie-consent button { 
  background: -webkit-linear-gradient(135deg, var(--brand), var(--brand-2));
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); 
  border: none; 
  color: #061120; 
  padding: 10px 16px; 
  border-radius: 8px; 
  margin-left: 10px; 
  font-weight: 700;
  -webkit-appearance: none;
}

/* ===============================================
 * 7.1. PAGE: ABOUT (Backgrounds & Hero)
 * =============================================== */

.page-about {
  --brand: #22d3ee;
  --brand-2: #8b5cf6;
  --ok: #10b981;
  --warn: #f59e0b;
  --radius: 20px;
  
  /* Кросбраузерні радіальні градієнти для фону */
  background-color: var(--bg);
  background-image: 
    -webkit-radial-gradient(10% 0%, 1200px 600px, rgba(34, 211, 238, 0.1), transparent 60%),
    -webkit-radial-gradient(90% 10%, 1000px 600px, rgba(139, 92, 246, 0.08), transparent 60%);
  background-image: 
    radial-gradient(1200px 600px at 10% 0%, rgba(34, 211, 238, 0.1), transparent 60%),
    radial-gradient(1000px 600px at 90% 10%, rgba(139, 92, 246, 0.08), transparent 60%);
  
  --shadow-about: 0 10px 30px rgba(0, 0, 0, 0.1);
}

html:not(.light-mode) .page-about {
  --shadow-about: 0 10px 30px rgba(0, 0, 0, 0.25);
  background-image: 
    -webkit-radial-gradient(10% 0%, 1200px 600px, rgba(34, 211, 238, 0.18), transparent 60%),
    -webkit-radial-gradient(90% 10%, 1000px 600px, rgba(139, 92, 246, 0.16), transparent 60%);
  background-image: 
    radial-gradient(1200px 600px at 10% 0%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(1000px 600px at 90% 10%, rgba(139, 92, 246, 0.16), transparent 60%);
}

.page-about .hero .wrap { 
  display: -ms-grid;
  display: grid; 
  grid-template-columns: 1.1fr 0.9fr; 
  gap: 32px; 
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center; 
  padding: 72px 0; 
}

/* ===============================================
 * 7.2. TIMELINE (Таймлайн з неоновим свіченням)
 * =============================================== */

.page-about .timeline { 
  position: relative; 
  margin: 10px 0; 
  padding-left: 24px; 
}

.page-about .timeline::before { 
  content: ""; 
  position: absolute; 
  left: 10px; 
  top: 0; 
  bottom: 0; 
  width: 2px; 
  background-color: var(--hdr-line); 
}

.page-about .tl-item { 
  position: relative; 
  margin: 16px 0; 
  padding-left: 12px; 
}

.page-about .tl-item::before { 
  content: ""; 
  position: absolute; 
  left: -2px; 
  top: 6px; 
  width: 10px; 
  height: 10px; 
  border-radius: 50%; 
  background: -webkit-linear-gradient(135deg, var(--brand), var(--brand-2));
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); 
  /* Неоновий фікс для Safari */
  -webkit-box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.6); 
}

/* ===============================================
 * 7.3. TRUST TILES & CARDS (Сітки та картки)
 * =============================================== */

.page-about .grid-3 { 
  display: -ms-grid;
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 18px; 
}

.page-about .trust { 
  display: -ms-grid;
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 18px; 
}

.page-about .trust .tile { 
  border: 1px solid var(--hdr-line); 
  border-radius: 18px; 
  padding: 18px; 
  text-align: center; 
  background-color: var(--card); 
}

/* Градієнтний фон для карток (фікс прозорості) */
html:not(.light-mode) .page-about .trust .tile { 
  background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)); 
}

.page-about .cta .box { 
  display: -ms-grid;
  display: grid; 
  grid-template-columns: 1.2fr 0.8fr; 
  gap: 24px; 
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center; 
  border: 1px solid var(--hdr-line); 
  border-radius: 20px; 
  padding: 24px; 
  background-color: var(--card); 
}

.page-about details { 
  background-color: var(--bg); 
  border: 1px solid var(--hdr-line); 
  border-radius: 14px; 
  padding: 14px; 
  margin: 10px 0; 
}

/* Специфічний темний фон для Safari у деталях */
html:not(.light-mode) .page-about details { background-color: #0e1629; }

/* ===============================================
 * 8.1. СТОРІНКА "КОНТАКТИ" (Grid & Flex Layout)
 * =============================================== */

.grid {
  display: -ms-grid;
  display: grid;
  /* Головний контент займає 2 частки, бічна панель - 1 */
  grid-template-columns: 2fr 1fr;
  gap: 18px; 
  margin-top: 24px;
  margin-bottom: 24px;
}

/* Бічна панель */
.side {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 18px; 
}

/* Список контактів */
.list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 24px; 
  margin: 24px 0;
}

/* Окремий пункт списку (іконка + текст) */
.item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start; 
  gap: 16px;
}

.item i {
  font-size: 24px;
  color: var(--brand);
  width: 30px; 
  text-align: center;
  margin-top: 4px;
  /* Кросбраузерне центрування іконки */
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.item h3 {
  margin: 0 0 4px 0;
  font-size: 18px;
  color: var(--ink);
}

.item p { margin: 0 0 6px 0; }

.item p a:hover { text-decoration: underline; }

/* Блок з кнопками */
.actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap; 
  gap: 12px;
  border-top: 1px solid var(--hdr-line); 
  padding-top: 20px;
  margin-top: 12px;
}

/* Блок для реклами */
.ad { margin-top: 10px; }

/* Роздільник (Spacer) */
.sp { height: 60px; }

/* ===============================================
 * 8.2. ДИНАМІЧНЕ СЯЙВО (Interactive Glow)
 * =============================================== */

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  
  /* Фікс для продуктивності на мобільних */
  pointer-events: none;

  /* Позиції прив'язані до CSS-змінних через JS */
  /* Додаємо -webkit префікси для радіальних градієнтів */
  background: 
    radial-gradient(
      1000px at var(--mouse-x, 50%) var(--mouse-y, 50%), 
      rgba(34, 211, 238, 0.18), 
      transparent 60%
    ),
    radial-gradient(
      1200px at var(--mouse-x-inv, 50%) var(--mouse-y-inv, 50%), 
      rgba(139, 92, 246, 0.16), 
      transparent 60%
    ),
    var(--bg);

  /* Плавність руху (важливо для Safari) */
  -webkit-transition: background 0.1s ease-out;
  transition: background 0.1s ease-out;
  
  /* Вмикаємо GPU прискорення для плавності сяйва */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* ===============================================
 * 9.1. БЛОГ: HERO ТА ПОШУК (Search & Tools)
 * =============================================== */
.blog_grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    /* margin: 24px 0; */
}
.breadcrumbs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 5px;
}

.breadcrumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.tools {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-top: 20px;
}

.search {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  background-color: var(--card);
  border: 1px solid var(--hdr-line);
  border-radius: 12px;
  padding: 8px 12px;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 250px;
}

.search input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  width: 100%;
  -webkit-appearance: none; /* Прибирає дефолтні стилі iOS */
  appearance: none;
}

/* ===============================================
 * 9.2. ГАРЯЧІ ПОСТИ (Hot Cards Carousel)
 * =============================================== */

.hot { padding: 18px 0 36px; }

.hot .card {
  background-color: var(--card);
  border: 1px solid var(--hdr-line);
  border-radius: 16px;
  overflow: hidden;
  margin: 0 10px;
  -webkit-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}

.hot .card img {
  width: 100%;
  /* Фікс для пропорцій на випадок відсутності aspect-ratio */
  height: auto;
  min-height: 180px;
  object-fit: cover;
}

/* ===============================================
 * 9.3. СПИСОК ПОСТІВ (Post List & Grid)
 * =============================================== */

.blog-grid { /* Перейменував для унікальності */
  display: -ms-grid;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 22px;
}

.list .post {
  display: -ms-grid;
  display: grid;
  /* Горизонтальна розкладка */
  grid-template-columns: 220px 1fr;
  gap: 16px;
  background-color: var(--card);
  border: 1px solid var(--hdr-line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  -webkit-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}

.list .post:hover {
  -webkit-transform: translateY(-3px);
  transform: translateY(-3px);
  -webkit-box-shadow: var(--shadow);
  box-shadow: var(--shadow);
}

.list .post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 160px;
}

/* ===============================================
 * 9.4. ПАГІНАЦІЯ (Pagination Fix)
 * =============================================== */

.pagination {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 6px;
  margin: 24px 0;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--muted);
  background-color: var(--chip);
  border: 1px solid var(--hdr-line);
  -webkit-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}

.pagination .active {
  background: -webkit-linear-gradient(135deg, var(--brand), var(--brand-2));
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #061120 !important;
  border: none;
}

/* Підсвічування тексту при пошуку */
mark {
  background-color: rgba(34, 211, 238, 0.25);
  color: inherit;
  border-radius: 4px;
  padding: 0 2px;
}

/* ===============================================
 * 10.1. МАКЕТ СТАТТІ (Post Grid & Layout)
 * =============================================== */

.post-grid {
  display: -ms-grid;
  display: grid;
  /* Широка колонка для статті, вузька для бічної панелі */
  grid-template-columns: 2.5fr 1fr; 
  gap: 22px;
  padding: 24px 0 50px;
}

.cover {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
  background-color: var(--chip);
  /* Форсуємо апаратне прискорення для гладкості країв */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.cover img {
  border-radius: 14px;
  width: 100%;
  height: auto;
}

.post-meta {
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 16px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* ===============================================
 * 10.2. ТИПОГРАФІКА КОНТЕНТУ (Article Content)
 * =============================================== */

.content {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  /* Покращуємо читабельність на Mac */
  -webkit-font-smoothing: antialiased;
}

.light-mode .content { color: var(--ink); }

.content h2, .content h3, .content h4 {
  color: var(--ink);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 700;
  line-height: 1.3;
}

.content h2 { font-size: 1.8em; }
.content h3 { font-size: 1.5em; }

.content p { margin: 1em 0; }

.content a {
  color: var(--brand);
  text-decoration: underline;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
}

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

/* Списки */
.content ul, .content ol { padding-left: 20px; }
.content li { margin-bottom: 8px; }

/* Цитати (Blockquote Fix) */
.content blockquote {
  margin: 1.5em 0;
  padding: 10px 20px;
  background-color: var(--chip);
  border-left: 4px solid var(--brand);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  /* Фікс для Safari: переконуємося, що фон не вилазить */
  overflow: hidden;
}

.content img {
  border-radius: 8px;
  margin: 1.5em 0;
  height: auto;
}

/* ===============================================
 * 10.3. SHARE & RECOMMENDATIONS
 * =============================================== */

.share {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--hdr-line);
}

.rec {
  margin-top: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--hdr-line);
}

.rec h3 {
  font-size: 24px;
  margin: 0 0 16px;
  color: var(--ink);
}

.rec-grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tile {
  background-color: var(--card);
  border: 1px solid var(--hdr-line);
  border-radius: 14px;
  overflow: hidden;
  -webkit-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}

.tile:hover {
  -webkit-transform: translateY(-3px);
  transform: translateY(-3px);
  -webkit-box-shadow: var(--shadow);
  box-shadow: var(--shadow);
}

.tile img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.tile .p { padding: 10px; }

.tile h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.4;
}

.back {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--brand);
  font-weight: 600;
}

/* ===============================================
 * 11.1. КАТАЛОГ: ФІЛЬТРИ (Filters & Inputs)
 * =============================================== */

.filters {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 16px 0 22px;
}

.input, .select {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background-color: var(--card);
  border: 1px solid var(--hdr-line);
  color: var(--ink);
  -webkit-transition: border-color 0.2s;
  transition: border-color 0.2s;
}

.input input {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink);
  min-width: 220px;
  -webkit-appearance: none; /* Прибираємо дефолтні стилі Safari */
  appearance: none;
}

.select select {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink);
  cursor: pointer;
  -webkit-appearance: none; /* Прибираємо системну стрілку Safari */
  appearance: none;
  padding-right: 20px; /* Місце для кастомної стрілки, якщо буде */
}

/* ===============================================
 * 11.2. СІТКА КАТАЛОГУ (Catalog Grid & Cards)
 * =============================================== */

.catalog-grid {
  display: -ms-grid;
  display: grid;
  /* Кросбраузерна 3-колонкова сітка */
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.catalog-grid .card {
  background-color: var(--card);
  border: 1px solid var(--hdr-line);
  border-radius: 16px;
  overflow: hidden;
  -webkit-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}

/* Скріншот сайту */
.shot {
  background-color: var(--bg);
  border-bottom: 1px solid var(--hdr-line);
  /* Фікс для заокруглення країв у Safari */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  overflow: hidden;
}

.shot img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.url {
  font-weight: 700;
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--ink);
}

/* ===============================================
 * 11.3. ДЕТАЛІ САЙТУ (Site Detail Card)
 * =============================================== */

.site-detail-card {
  background-color: var(--card);
  border: 1px solid var(--hdr-line);
  border-radius: var(--radius);
  -webkit-box-shadow: var(--shadow);
  box-shadow: var(--shadow);
  padding: 18px;
  margin: 18px 0 32px;
}

.top {
  display: -ms-grid;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
}

.site-detail-card .meta p {
  margin: 0 0 8px;
  color: var(--muted);
}

.site-detail-card .meta strong {
  color: var(--brand);
  font-weight: 600;
}

.site-detail-card .desc {
  margin-top: 16px;
  color: var(--ink);
  line-height: 1.6;
}

/* Адаптивність для деталей (внутрішня) */
@media (max-width: 980px) {
  .top {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr; /* В одну колонку на планшетах */
  }
}

/* ===============================================
 * 12.1. ПЛАНШЕТИ ТА МАЛІ НОУТБУКИ (max-width: 1024px)
 * =============================================== */

@media (max-width: 1024px) {
  /* Головна навігація */
  .bln-nav, .bln-cta { display: none; }
  .bln-burger { 
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex; 
    place-items: center; 
  }

  /* Перемикання сіток на 1 колонку */
  .hero .wrap, 
  .grid, 
  .post-grid, 
  .top, 
  .catalog-grid,
  .page-about .hero .wrap,
  .page-about .cta .box { 
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr !important; 
    text-align: center;
  }

  /* Специфічні сітки на 2 колонки */
  .cards, 
  .tiles, 
  .rev-grid, 
  .page-about .grid-3, 
  .page-about .trust { 
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr; 
  }

  /* Центрування контенту в Hero */
  .hero .wrap { padding: 48px 0; }
  .hero-cta, .panel-cta { 
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center; 
  }

  /* Мобільне меню (Drawer) */
  .bln-drawer { 
    display: none; 
    -webkit-overflow-scrolling: touch; /* Плавний скрол на iOS */
  }
}

/* ===============================================
 * 12.2. ВУЗЬКІ ПЛАНШЕТИ (max-width: 900px)
 * =============================================== */

@media (max-width: 900px) {
  .bln-grid { 
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr; 
  }
  
  .rec-grid { 
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr; 
  }
}

/* ===============================================
 * 12.3. ВЕЛИКІ ТА СЕРЕДНІ СМАРТФОНИ (max-width: 720px)
 * =============================================== */

@media (max-width: 720px) {
  .list .post { 
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr; /* Картинка зверху, текст знизу */
  }
  
  .list .post img { 
    min-height: 180px; 
    height: auto; 
  }
}

/* ===============================================
 * 12.4. СМАРТФОНИ (max-width: 640px)
 * =============================================== */

@media (max-width: 640px) {
  /* Перехід всіх сіток на 1 колонку */
  .cards, 
  .tiles, 
  .rev-grid, 
  .utm-grid, 
  .catalog-grid,
  .rec-grid,
  .page-about .grid-3, 
  .page-about .trust { 
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr; 
  }

  /* Типографіка для мобільних */
  .h1 { font-size: 30px; }
  .badge { font-size: 13px; }
  
  .personas-head { 
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column; 
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start; 
  }

  .modal .box .content { 
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr; 
  }
  
  /* Корекція кнопок */
  .btn, .bln-btn { width: 100%; }
}

/* ===============================================
 * 12.5. ФІКСИ ДЛЯ ПРИСТРОЇВ З ПЕРЕГЛЯДОМ (Orientation)
 * =============================================== */

@media (max-height: 500px) and (orientation: landscape) {
  .bln-drawer { 
    overflow-y: auto; 
    max-height: calc(100vh - 60px); 
  }
}