﻿/* ============================================================
   BASE — "Редакційний розворот" (v2)
   Виправлено: обрізання тексту, reveal, SEO-арт
   ============================================================ */

:root {
  --paper: #F5F1E8;
  --paper-2: #EDE7D9;
  --ink: #141414;
  --ink-soft: #2A2A2A;
  --signal: #D94F2B;
  --signal-dark: #B23A1C;
  --muted: #8B8578;
  --line: rgba(20, 20, 20, 0.14);
  --line-strong: rgba(20, 20, 20, 0.38);

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-med: 420ms;
  --t-slow: 800ms;

  --gutter: clamp(20px, 3vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  opacity: 0.32;
  mix-blend-mode: multiply;
}
@media (max-width: 900px) {
  body::before { background-size: 25% 100%; opacity: 0.18; }
}

/* ---------- Типографіка ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
}

h1 { font-size: clamp(3rem, 8.5vw, 8.5rem); }
h2 { font-size: clamp(2.4rem, 5.5vw, 5rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.05; }

p { color: var(--ink-soft); }
em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }

/* ---------- Mono ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.014em;
  font-weight: 500;
  color: var(--muted);
}
.mono--signal { color: var(--signal); }

/* ---------- Контейнер ---------- */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

/* ---------- Секції ---------- */
.section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0;
  z-index: 1;
}
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--paper); }
.section--dark p { color: rgba(245, 241, 232, 0.7); }
.section--dark .mono { color: rgba(245, 241, 232, 0.5); }
.section--dark .mono--signal { color: var(--signal); }

.section__num {
  position: absolute;
  top: clamp(80px, 12vw, 160px);
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  z-index: 2;
}

/* ---------- Кнопки ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease), color var(--t-med) var(--ease);
  isolation: isolate;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--signal);
  transform: translateY(101%);
  transition: transform var(--t-med) var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--paper); }
.btn:hover::before { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }

.btn--signal { --bg: var(--signal); --fg: var(--paper); }
.btn--signal::before { background: var(--ink); }

.btn--ghost { --bg: transparent; --fg: var(--ink); border: 1px solid var(--line-strong); }
.btn--ghost:hover { color: var(--paper); }
.btn--ghost::before { background: var(--ink); }
.section--dark .btn--ghost { --fg: var(--paper); border-color: rgba(245,241,232,0.3); }
.section--dark .btn--ghost::before { background: var(--signal); }

.btn svg { width: 14px; height: 14px; transition: transform var(--t-fast) var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* ---------- Курсор (виправлений) ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--signal);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width 300ms var(--ease),
    height 300ms var(--ease),
    background 300ms var(--ease),
    opacity 200ms var(--ease),
    box-shadow 300ms var(--ease);
  opacity: 0;
  mix-blend-mode: normal;
}

/* Стан при наведенні на інтерактив — велика помаранчева бульбашка */
.cursor--active {
  width: 56px;
  height: 56px;
  background: var(--signal);
  box-shadow: 0 0 0 8px rgba(217, 79, 43, 0.18);
  opacity: 0.9;
}

/* Стан над текстом — маленька темна точка */
.cursor--text {
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--ink);
}

@media (hover: none) {
  .cursor { display: none !important; }
}

/* ---------- Анімації (виправлені) ---------- */

/* Лінія, що промальовується */
[data-draw] {
  display: block;
  height: 1px;
  background: var(--line-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease);
}
[data-draw].is-in { transform: scaleX(1); }

/* ---------- Текст по словах — SAFE за замовчуванням ---------- */
[data-split] {
  display: inline-block;
}

[data-split] .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-top: 0.12em;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  line-height: 1;
}

/* Базовий стан: текст ВИДИМИЙ. Анімація — тільки якщо додано .will-animate */
[data-split] .word > span {
  display: inline-block;
  line-height: 1;
  transform: translateY(0);
  transition: transform 900ms var(--ease);
}

/* JS додає .will-animate перед анімацією — тільки якщо IO працює */
[data-split].will-animate:not(.is-in) .word > span {
  transform: translateY(115%);
}
[data-split].will-animate.is-in .word > span {
  transform: translateY(0);
}

/* Загальний reveal — SAFE за замовчуванням */
[data-reveal] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
[data-reveal].will-animate:not(.is-in) {
  opacity: 0;
  transform: translateY(24px);
}
[data-reveal].will-animate.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger — SAFE за замовчуванням */
[data-stagger] > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
[data-stagger].will-animate:not(.is-in) > * {
  opacity: 0;
  transform: translateY(28px);
}
[data-stagger].will-animate.is-in > * {
  opacity: 1;
  transform: translateY(0);
}
[data-stagger].will-animate.is-in > *:nth-child(1) { transition-delay: 80ms; }
[data-stagger].will-animate.is-in > *:nth-child(2) { transition-delay: 160ms; }
[data-stagger].will-animate.is-in > *:nth-child(3) { transition-delay: 240ms; }
[data-stagger].will-animate.is-in > *:nth-child(4) { transition-delay: 320ms; }
[data-stagger].will-animate.is-in > *:nth-child(5) { transition-delay: 400ms; }
[data-stagger].will-animate.is-in > *:nth-child(6) { transition-delay: 480ms; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-split] .word > span,
  [data-reveal],
  [data-stagger] > * {
    transform: none !important;
    opacity: 1 !important;
  }
  [data-draw] { transform: scaleX(1) !important; }
}

/* Утиліти */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}


/* Гарантія видимості кнопок з data-reveal */
[data-reveal].btn,
[data-reveal] .btn {
  opacity: 1;
}
[data-reveal].will-animate:not(.is-in).btn,
[data-reveal].will-animate:not(.is-in) .btn {
  opacity: 0;
}
[data-reveal].will-animate.is-in.btn,
[data-reveal].will-animate.is-in .btn {
  opacity: 1;
}

[data-split] .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.12em 0; /* Змінюємо на явні відступи */
  margin: 0;
  line-height: 1;
}

/* Додаємо пробіл між словами, щоб вони не злипалися */
[data-split] .word:not(:last-child) {
  margin-right: 0.25em;
}

/* ========== PRIVACY POLICY LAYOUT ========== */

.privacy-section {
    padding: 60px 0 100px;
    background: var(--paper);
}

.privacy-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
    align-items: start;
}

/* --- Sidebar / TOC --- */
.privacy-sidebar {
    position: relative;
    height: 100%;
}

.privacy-sidebar__inner {
    position: sticky;
    top: 120px; /* Відступ від фіксованого хедера */
}

.privacy-sidebar__title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

/* Приховуємо стандартний маркер details на десктопі */
.privacy-toc-details > summary {
    display: none;
}

.privacy-toc {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.privacy-toc a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.privacy-toc .toc-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--signal);
    padding-top: 2px;
}

.privacy-toc a:hover,
.privacy-toc a.active {
    color: var(--signal);
}

/* --- Main Content --- */
.privacy-content {
    max-width: 800px;
}

.privacy-content .seo-h2 {
    font-size: 1.8rem;
    font-family: var(--font-serif);
    color: var(--ink);
    margin: 56px 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 120px; /* Щоб хедер не перекривав заголовок при якірному переході */
}

.privacy-content .seo-h2:first-child {
    margin-top: 0;
}

.privacy-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    margin: 32px 0 16px;
}

.privacy-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 20px;
}

.privacy-content .seo-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.privacy-content .seo-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 14px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--muted);
}

.privacy-content .seo-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--signal);
    border-radius: 50%;
}

.privacy-content .seo-list strong {
    color: var(--ink);
    font-weight: 600;
}

/* Блок примітки (Note) */
.privacy-note {
    background: var(--paper-2);
    border-left: 4px solid var(--signal);
    padding: 20px 24px;
    margin: 32px 0;
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
}

/* --- Адаптивність --- */
@media (max-width: 1024px) {
    .privacy-layout {
        grid-template-columns: 240px 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .privacy-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .privacy-sidebar__inner {
        position: static;
    }

    /* Перетворюємо меню на зручний акордеон для мобільних */
    .privacy-sidebar__title {
        display: none;
    }
    
    .privacy-toc-details {
        background: var(--paper-2);
        border-radius: 12px;
        border: 1px solid var(--line);
        overflow: hidden;
    }

    .privacy-toc-details > summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        font-family: var(--font-mono);
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        list-style: none; /* Приховуємо стандартну стрілку */
        color: var(--ink);
    }

    .privacy-toc-details > summary::-webkit-details-marker {
        display: none;
    }

    .privacy-toc-details > summary::after {
        content: '+';
        font-size: 1.2rem;
        color: var(--signal);
        transition: transform 0.3s ease;
    }

    .privacy-toc-details[open] > summary::after {
        transform: rotate(45deg);
    }

    .privacy-toc {
        padding: 0 20px 20px;
        gap: 16px;
    }

    .privacy-content .seo-h2 {
        font-size: 1.5rem;
        margin-top: 40px;
        scroll-margin-top: 90px;
    }
    
    .privacy-content p,
    .privacy-content .seo-list li {
        font-size: 1rem;
    }
}

/* ========== BLOG POST LAYOUT ========== */
.post-content {
    padding: 60px 0 100px;
    background: var(--paper);
}

.post-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: start;
}

/* --- Sidebar (TOC) --- */
.post-sidebar {
    position: relative;
    height: 100%;
}

.toc-wrapper {
    position: sticky;
    top: 120px;
    background: var(--paper-2);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.toc-wrapper h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: var(--font-serif);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.toc-list li {
    margin-bottom: 12px;
}

.toc-list a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: color 0.3s ease;
    display: block;
}

.toc-list a:hover {
    color: var(--signal);
}

.toc-cta {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.toc-cta p {
    font-size: 0.9rem;
    margin-bottom: 16px;
    color: var(--ink);
    font-weight: 600;
}

/* --- Main Content --- */
.post-main {
    max-width: 860px;
}

.post-section {
    margin-bottom: 48px;
    scroll-margin-top: 120px;
}

.post-main h2 {
    font-size: 2rem;
    font-family: var(--font-serif);
    color: var(--ink);
    margin-bottom: 24px;
}

.post-main h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink);
    margin: 32px 0 16px;
}

.post-main p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--ink-soft);
    margin-bottom: 20px;
}

.post-main a {
    color: var(--signal);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.post-main a:hover {
    border-bottom-color: var(--signal);
}

/* --- Lists --- */
.post-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.post-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--muted);
}

.post-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--signal);
    border-radius: 50%;
    opacity: 0.8;
}

.post-list strong {
    color: var(--ink);
}

/* --- Note/Highlight Box --- */
.post-note {
    display: flex;
    gap: 16px;
    background: rgba(255, 75, 75, 0.05); /* Легкий акцентний фон */
    border-left: 4px solid var(--signal);
    padding: 24px;
    border-radius: 0 12px 12px 0;
    margin: 32px 0;
}

.post-note i {
    color: var(--signal);
    font-size: 1.5rem;
}

.post-note strong {
    color: var(--ink);
    display: block;
    margin-bottom: 6px;
}

.post-note div {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--muted);
}

/* --- Checklist Grid --- */
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.checklist-column {
    background: var(--paper-2);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.checklist-column h4 {
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

.checklist input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--signal);
}

/* --- Responsive Adaptations --- */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 260px 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .post-layout {
        grid-template-columns: 1fr;
    }
    
    /* Робимо сайдбар зверху на мобільних */
    .toc-wrapper {
        position: static;
        margin-bottom: 40px;
    }
    
    .post-main h2 {
        font-size: 1.6rem;
    }
    
    .post-main p {
        font-size: 1rem;
    }
}

/* ==========================================
   HERO SECTION STYLES (Post Header)
   ========================================== */

.post-hero {
    /* 140px зверху, щоб фіксований хедер не перекривав контент */
    padding: 140px 0 60px; 
    background-color: var(--paper);
    border-bottom: 1px solid var(--line);
}

.post-header {
    max-width: 1000px;
    margin: 0 auto;
}

/* Метадані (Категорія, Дата, Час читання) */
.post-meta-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-meta-top span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Акцентний колір для категорії */
.post-meta-top .post-category {
    color: var(--signal);
    font-weight: 600;
}

.post-meta-top i {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Головний заголовок статті */
.post-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Адаптивний розмір від 40px до 72px */
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 32px;
}

/* Короткий опис (Excerpt) */
.post-excerpt {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.6;
    color: var(--muted);
    max-width: 850px;
    margin-bottom: 48px;
}

/* ==========================================
   AUTHOR BOX (Блок з біографією)
   ========================================== */

.post-author-box {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: start;
    background: var(--paper-2);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--line);
    margin-bottom: 40px;
}

.author-box-avatar {
    width: 80px;
    height: 80px;
    background: var(--ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--paper);
    font-size: 2.5rem;
    flex-shrink: 0;
}

.author-box-info h4 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.author-box-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 12px;
}

.author-box-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 16px;
}

.author-box-link {
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--signal);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.author-box-link:hover {
    border-bottom-color: var(--signal);
}

/* ==========================================
   POST AUTHOR BLOCK (Компактний блок з рейтингом)
   ========================================== */

.post-author-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 48px;
}

.post-author-block .author-info-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.post-author-block .author-avatar {
    width: 48px;
    height: 48px;
    background: var(--paper-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 1.5rem;
}

.post-author-block .author-info {
    display: flex;
    flex-direction: column;
}

.post-author-block .author-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.post-author-block .author-name {
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    font-size: 1.1rem;
}

.post-author-block .author-position {
    font-size: 0.85rem;
    color: var(--muted);
}

/* Блок рейтингу */
.post-rating-block {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--paper-2);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid var(--line);
}

.post-rating-block .rating-stars {
    color: #FFB400; /* Золотий колір для зірок */
    font-size: 0.9rem;
    display: flex;
    gap: 2px;
}

.post-rating-block .rating-value {
    font-weight: 700;
    color: var(--ink);
}

.post-rating-block .rating-count {
    font-size: 0.8rem;
    color: var(--muted);
}

/* ==========================================
   RESPONSIVE (Адаптивність для мобільних)
   ========================================== */

@media (max-width: 768px) {
    .post-hero {
        padding: 120px 0 40px; /* Зменшуємо відступ на мобільних */
    }

    .post-meta-top {
        gap: 12px;
        font-size: 0.7rem;
    }

    .post-title {
        margin-bottom: 24px;
    }

    .post-excerpt {
        margin-bottom: 32px;
    }

    /* Блок автора стає в один стовпчик */
    .post-author-box {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px 16px;
        gap: 16px;
    }

    .author-box-avatar {
        margin: 0 auto;
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }

    /* Компактний блок автора */
    .post-author-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .post-rating-block {
        width: 100%;
        justify-content: center;
    }
}


/* ========== BREADCRUMBS ========== */
.breadcrumbs {
    margin-bottom: 24px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    color: var(--muted);
}

.breadcrumbs-list li {
    display: flex;
    align-items: center;
}

/* Додаємо стрілочку між пунктами */
.breadcrumbs-list li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--line);
    opacity: 0.5;
}

.breadcrumbs-list a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs-list a:hover {
    color: var(--signal);
}

.breadcrumbs-list span[aria-current="page"] {
    color: var(--ink);
    font-weight: 600;
}

/* ========== INCLUDES SECTION (Dark Grid) ========== */

.includes-grid {
    display: grid;
    /* Магія тут: картки будуть мінімум 300px, 
       і браузер сам вирішить, скільки їх влізе в ряд (3, 2 або 1) */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.include-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.02); /* Ледь помітний фон */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Ефект при наведенні (робить блок інтерактивним) */
.include-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--signal);
    transform: translateY(-4px);
}

/* Заголовки карток */
.include-card h3 {
    font-family: var(--font-serif); /* Використовуємо шрифт з нового дизайну */
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Список */
.include-card ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.include-card li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    line-height: 1.5;
}

/* Іконка галочки */
.include-card li i {
    color: var(--signal);
    font-size: 0.85rem;
    margin-top: 4px; /* Вирівнювання іконки з першим рядком тексту */
    flex-shrink: 0; /* Забороняємо іконці стискатися */
}

/* ========== MOBILE ADAPTATION ========== */

@media (max-width: 768px) {
    .includes-grid {
        gap: 16px;
    }
    
    .include-card {
        padding: 24px; /* Трохи зменшуємо відступи на мобільних */
    }
    
    .include-card h3 {
        font-size: 1.15rem;
    }
}


/* ========== TABLE RESPONSIVE ========== */
.table-responsive {
    width: 100%;
    overflow-x: auto; /* Дозволяє горизонтальний скрол таблиці на мобільних */
    -webkit-overflow-scrolling: touch; /* Плавний скрол на iOS */
    margin-bottom: 24px;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.seo-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Задаємо мінімальну ширину, щоб текст не злипався */
    background: var(--paper);
}

.seo-table th,
.seo-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}

.seo-table th {
    background: var(--paper-2);
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

.seo-table td {
    color: var(--muted);
}

/* ========== TOOLS SECTION ========== */

.tools-grid {
    display: grid;
    /* Автоматична адаптивність: 3 колонки на десктопі, 1 на мобільному */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tool-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--signal);
    transform: translateY(-4px);
}

/* Іконка інструменту */
.tool-icon-wrap {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--signal);
    font-size: 1.2rem;
}

/* Заголовок картки */
.tool-card h3 {
    margin-bottom: 12px;
    color: var(--signal);
    font-family: var(--font-serif);
    font-size: 1.3rem;
    line-height: 1.3;
}

/* Опис картки */
.tool-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ========== Мобільна адаптація ========== */
@media (max-width: 768px) {
    .tool-card {
        padding: 24px; /* Трохи зменшуємо відступи на мобільних */
    }
    
    .privacy-content .seo-h2 {
        font-size: 1.5rem;
        margin-top: 40px;
    }
}

/* ========== INCLUDES SECTION (Dark Grid) ========== */

.includes-grid {
    display: grid;
    /* Автоматична адаптивність: картки мінімум 280px, завдяки auto-fit 
       вони самі перебудуються в 3, 2 або 1 колонку залежно від екрану */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.include-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.02); /* Ледь помітний фон */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Ефект при наведенні */
.include-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--signal);
    transform: translateY(-4px);
}

/* Заголовок картки */
.include-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Список */
.include-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.include-list li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    line-height: 1.5;
}

/* Стилізація SVG-іконки */
.include-list li svg {
    color: var(--signal);
    flex-shrink: 0; /* Забороняємо іконці стискатися, якщо текст довгий */
    margin-top: 3px; /* Ідеальне вирівнювання по вертикалі з першим рядком тексту */
}

/* ========== MOBILE ADAPTATION ========== */

@media (max-width: 768px) {
    .includes-grid {
        gap: 16px;
    }
    
    .include-card {
        padding: 24px; /* Трохи зменшуємо відступи на мобільних */
    }
    
    .include-card h3 {
        font-size: 1.15rem;
    }
}

/* ========== FIX FOR GRID BLOWOUT ========== */
/* Забороняємо колонкам розтягуватися ширше екрану, навіть якщо всередині таблиця */
.privacy-content, 
.privacy-layout {
    min-width: 0; 
    max-width: 100%;
}

/* ========== TABLE RESPONSIVE ========== */
.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto; /* Дозволяє горизонтальний скрол ТІЛЬКИ для таблиці */
    -webkit-overflow-scrolling: touch; /* Плавний скрол на iOS */
    margin: 32px 0;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--paper);
    
    /* Додаємо легку тінь, щоб натякнути користувачу, що таблиця скролиться */
    box-shadow: inset -10px 0 10px -10px rgba(0,0,0,0.05);
}

/* Сама таблиця */
.seo-table {
    width: 100%;
    min-width: 600px; /* Примусово робимо таблицю ширшою за мобільний екран, щоб текст не злипався */
    border-collapse: collapse;
    background: var(--paper);
}

.seo-table th,
.seo-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
    line-height: 1.5;
}

.seo-table th {
    background: var(--paper-2);
    font-weight: 600;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 1rem;
    white-space: nowrap; /* Заголовки не переносяться на новий рядок */
}

.seo-table td {
    color: var(--muted);
}

.seo-table tr:last-child td {
    border-bottom: none;
}

/* ========== MOBILE ADAPTATION ========== */
@media (max-width: 768px) {
    .seo-table th,
    .seo-table td {
        padding: 12px 16px; /* Трохи зменшуємо відступи на мобільних */
        font-size: 0.9rem;
    }
}

/* ========== SERVICES CATALOG (Dark) ========== */

.services-catalog-grid {
    display: grid;
    /* Автоматична адаптивність: картки самі перебудуються на 2 або 1 колонку */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-catalog-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Ефект при наведенні */
.service-catalog-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--signal);
    transform: translateY(-4px);
}

/* Іконка */
.service-catalog-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--signal);
}

/* Заголовок */
.service-catalog-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    color: #fff;
    font-family: var(--font-serif);
    line-height: 1.3;
}

/* Опис */
.service-catalog-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .service-catalog-card {
        padding: 24px;
    }
}

/* ========== DEVSECO INCLUDES (Light Theme) ========== */

.devseo-includes-grid {
    display: grid;
    /* Автоматична адаптивність для світлої теми */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.devseo-include-card {
    padding: 32px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.devseo-include-card:hover {
    border-color: var(--signal);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Іконка етапу */
.devseo-icon-wrap {
    width: 48px;
    height: 48px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--signal);
}

/* Лейбл етапу */
.devseo-phase-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--signal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Заголовок картки */
.devseo-include-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--ink);
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Список */
.devseo-include-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.devseo-include-list li {
    font-size: 0.9rem;
    color: var(--muted);
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.5;
}

.devseo-include-list li svg {
    color: var(--signal);
    flex-shrink: 0;
    margin-top: 3px;
}

/* Мобільна адаптація */
@media (max-width: 768px) {
    .devseo-include-card {
        padding: 24px;
    }
}

/* ========== COMPARISON SECTION ========== */

.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* На десктопі — 2 рівні колонки */
    gap: 32px;
    align-items: stretch; /* Робимо однакову висоту для обох карток */
}

/* Базові стилі картки */
.compare-card {
    padding: 40px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.compare-card h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 32px;
    line-height: 1.3;
}

/* ===== BAD (Червона картка) ===== */
.compare-card--bad {
    background: rgba(255, 75, 75, 0.03); /* Ледь помітний червоний фон */
    border: 1px solid rgba(255, 75, 75, 0.15);
    border-top: 4px solid #ff4b4b;
}

.compare-card--bad h3 {
    color: #ff4b4b;
}

.compare-card--bad .compare-list li svg {
    color: #ff4b4b;
}

/* ===== GOOD (Світла картка, що виділяється) ===== */
.compare-card--good {
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 4px solid #00c853;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2); /* Тінь, щоб виділити на темному фоні */
    transform: scale(1.02); /* Легке збільшення для акценту */
    z-index: 2;
}

.compare-card--good h3 {
    color: var(--ink);
}

.compare-card--good .compare-list li svg {
    color: #00c853;
}

/* ===== СПИСКИ ===== */
.compare-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    flex-grow: 1; /* Заповнює простір, щоб футер завжди був знизу */
    list-style: none;
    padding: 0;
}

.compare-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 1rem;
    line-height: 1.5;
}

.compare-card--bad .compare-list li {
    color: rgba(255, 255, 255, 0.7);
}

.compare-card--good .compare-list li {
    color: var(--ink-soft);
}

.compare-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== ФУТЕР КАРТКИ (Ціна) ===== */
.compare-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compare-card--good .compare-footer {
    border-top-color: var(--line);
}

.compare-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.compare-card--bad .compare-label {
    color: rgba(255, 255, 255, 0.5);
}

.compare-card--good .compare-label {
    color: var(--muted);
}

.compare-price {
    font-family: var(--font-serif);
    font-size: 1.4rem;
}

.compare-price--bad {
    color: #ff4b4b;
}

.compare-price--good {
    color: #00c853;
}

/* ========== ADAPTIVE ========== */

@media (max-width: 900px) {
    .compare-grid {
        grid-template-columns: 1fr; /* На планшетах і мобільних ставимо в один стовпчик */
        gap: 24px;
    }
    
    /* Прибираємо збільшення на мобільних, щоб не було розсинхрону */
    .compare-card--good {
        transform: scale(1);
    }

    .compare-card {
        padding: 32px 24px;
    }
}

/* Стилі для іконок всередині карток Includes */
.include-icon-wrap {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--signal);
}

/* ========== WHEN SECTION (Dark Theme) ========== */
.gads-when-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.gads-when-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.gads-when-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--signal);
    transform: translateY(-4px);
}

.gads-icon-wrap {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--signal);
}

.gads-when-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.gads-when-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* ========== CHECK SECTION (Light Theme) ========== */
.gads-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.gads-check-card {
    padding: 24px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gads-check-card:hover {
    border-color: var(--signal);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

.gads-check-icon {
    width: 56px;
    height: 56px;
    background: var(--paper);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--signal);
    border: 1px solid var(--line);
}

.gads-check-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.gads-check-card h4 {
    font-size: 1.05rem;
    color: var(--ink);
    margin: 0;
    line-height: 1.4;
}

/* Адаптивність для мобільних */
@media (max-width: 768px) {
    .gads-when-card, .gads-check-card {
        padding: 24px;
    }
}

/* ========== GOOGLE ADS TYPES (Dark Theme) ========== */
.gads-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.gads-type-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.gads-type-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--signal);
    transform: translateY(-4px);
}

.gads-type-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--signal);
}

.gads-type-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--signal);
    margin-bottom: 16px;
    line-height: 1.3;
}

.gads-type-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* ========== GOOGLE ADS INCLUDES (Light Theme) ========== */
.gads-includes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.gads-include-card {
    padding: 24px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gads-include-card:hover {
    border-color: var(--signal);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

.gads-include-icon {
    width: 56px;
    height: 56px;
    background: var(--paper);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--signal);
    border: 1px solid var(--line);
}

.gads-include-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.gads-include-card h4 {
    font-size: 1.05rem;
    color: var(--ink);
    margin: 0;
    line-height: 1.4;
}

/* Адаптивність для мобільних */
@media (max-width: 768px) {
    .gads-type-card {
        padding: 24px;
    }
    .gads-include-card {
        padding: 20px;
    }
}

/* ========== GEO PROCESS (Dark Theme) ========== */
.geo-process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.geo-process-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.geo-process-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--signal);
    transform: translateY(-4px);
}

.geo-process-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--signal);
}

.geo-process-num {
    position: absolute;
    top: 32px;
    right: 32px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.geo-process-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.geo-process-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* ========== GEO ADVANTAGES (Light Theme) ========== */
.geo-adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.geo-adv-card {
    padding: 32px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.geo-adv-card:hover {
    border-color: var(--signal);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

.geo-adv-icon {
    width: 48px;
    height: 48px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--signal);
}

.geo-adv-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--signal);
    margin-bottom: 12px;
    line-height: 1.3;
}

.geo-adv-card p {
    font-size: 0.95rem;
    color: var(--ink-soft);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .geo-process-card, .geo-adv-card {
        padding: 24px;
    }
    .geo-process-num {
        top: 24px;
        right: 24px;
    }
}


/* ========== GOOGLE SHOPPING HOW IT WORKS (Dark Theme) ========== */

.gshop-process-grid {
    display: grid;
    /* Автоматична адаптивність: 4 колонки на десктопі, 2 на планшеті, 1 на мобільному */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.gshop-process-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.gshop-process-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--signal);
    transform: translateY(-4px);
}

.gshop-process-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--signal);
}

.gshop-process-num {
    position: absolute;
    top: 32px;
    right: 32px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.gshop-process-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.gshop-process-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .gshop-process-card {
        padding: 24px;
    }
    .gshop-process-num {
        top: 24px;
        right: 24px;
    }
}


/* ========== LINK BUILDING TYPES (Dark Theme) ========== */

.lb-types-grid {
    display: grid;
    /* Автоматична адаптивність: 2 колонки на десктопі, 1 на мобільному */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.lb-type-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.lb-type-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--signal);
    transform: translateY(-4px);
}

.lb-type-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--signal);
}

.lb-type-card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.lb-type-card > p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1; /* Притискає список до низу, якщо текст різної довжини */
}

.lb-type-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
}

.lb-type-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.lb-type-list li svg {
    color: var(--signal);
    flex-shrink: 0;
    margin-top: 3px;
}

@media (max-width: 768px) {
    .lb-type-card {
        padding: 24px;
    }
}

/* ========== PPC TYPES (Dark Theme) ========== */

.ppc-types-grid {
    display: grid;
    /* Автоматична адаптивність: 3 колонки на десктопі, 2 на планшеті, 1 на мобільному */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.ppc-type-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ppc-type-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--signal);
    transform: translateY(-4px);
}

.ppc-type-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--signal);
}

.ppc-type-num {
    position: absolute;
    top: 32px;
    right: 32px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.ppc-type-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.ppc-type-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1; /* Притискає посилання до низу */
}

.ppc-type-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--signal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.ppc-type-link:hover {
    gap: 12px; /* Ефект розсування стрілочки */
}

@media (max-width: 768px) {
    .ppc-type-card {
        padding: 24px;
    }
    .ppc-type-num {
        top: 24px;
        right: 24px;
    }
}


/* ========== SEO MAIN SERVICES CATALOG (Dark Theme) ========== */

.seomain-services-grid {
    display: grid;
    /* Автоматична адаптивність: 3 колонки на десктопі, 2 на планшеті, 1 на мобільному */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.seomain-service-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Ефект при наведенні */
.seomain-service-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--signal);
    transform: translateY(-4px);
}

/* Іконка послуги */
.seomain-service-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--signal);
}

/* Заголовок */
.seomain-service-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    color: #fff;
    font-family: var(--font-serif);
    line-height: 1.3;
}

/* Опис */
.seomain-service-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0;
}

/* Адаптивність для мобільних */
@media (max-width: 768px) {
    .seomain-service-card {
        padding: 24px;
    }
}

/* ========== TARGET AUDIENCE TYPES (Dark Theme) ========== */
.target-audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.target-audience-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.target-audience-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--signal);
    transform: translateY(-4px);
}

.target-audience-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--signal);
}

.target-audience-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--signal);
    margin-bottom: 12px;
    line-height: 1.3;
}

.target-audience-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* ========== TARGET FORMATS (Light Theme) ========== */
.target-formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.target-format-card {
    padding: 32px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.target-format-card:hover {
    border-color: var(--signal);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

.target-format-icon {
    width: 48px;
    height: 48px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--signal);
}

.target-format-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--ink);
    margin-bottom: 12px;
    line-height: 1.3;
}

.target-format-card p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* Адаптивність для мобільних */
@media (max-width: 768px) {
    .target-audience-card, .target-format-card {
        padding: 24px;
    }
}

/* ========== ABOUT VALUES (Light Theme) ========== */
.about-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.about-value-card {
    padding: 32px 24px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: all 0.3s ease;
    text-align: center;
}

.about-value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: var(--signal);
}

.about-value-icon {
    width: 64px;
    height: 64px;
    background: var(--paper);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--signal);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
}

.about-value-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--signal);
    margin-bottom: 12px;
}

.about-value-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* ========== ABOUT TEAM (Dark Theme) ========== */
.about-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.about-team-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.about-team-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--signal);
}

.about-team-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--signal);
}

.about-team-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 8px;
}

.about-team-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0;
}

/* ========== ABOUT CLIENTS (Light Theme) ========== */
.about-clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.about-client-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    transition: all 0.3s ease;
}

.about-client-card:hover {
    background: var(--paper-2);
    border-color: var(--signal);
    transform: translateY(-2px);
}

.client-icon {
    color: var(--signal);
    flex-shrink: 0;
}

.about-client-card span {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--ink);
    font-weight: 600;
}

/* Адаптивність для мобільних */
@media (max-width: 768px) {
    .about-value-card, .about-team-card {
        padding: 24px;
    }
}

/* ========== STORY BLOCK ========== */

/* --- Ліва частина: Цитата --- */
.story-quote-block {
    margin-top: 32px;
    padding-left: 24px;
    border-left: 3px solid var(--signal);
    position: relative;
}

.story-quote-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: #fff;
    line-height: 1.6;
    margin: 0;
}

/* --- Права частина: Картка Місії --- */
.story-mission-card {
    position: relative;
    padding: 48px 40px;
    background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

/* Ефект при наведенні на картку */
.story-mission-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 75, 75, 0.3); /* Легкий акцент на кордоні */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 75, 75, 0.1);
}

/* Декоративне світло всередині картки */
.story-mission-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 75, 75, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.6s ease;
    z-index: -1;
    opacity: 0.5;
}

.story-mission-card:hover::before {
    top: -20%;
    right: -20%;
    opacity: 1;
    transform: scale(1.2);
}

.story-mission-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Контейнер для іконки */
.story-mission-icon-wrap {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--signal);
    box-shadow: 0 0 30px rgba(255, 75, 75, 0.1);
    transition: transform 0.4s ease;
}

/* Іконка крутиться при наведенні на картку */
.story-mission-card:hover .story-mission-icon-wrap {
    transform: rotate(15deg) scale(1.05);
    background: rgba(255, 75, 75, 0.1);
    border-color: var(--signal);
}

/* Лейбл (маленький текст над заголовком) */
.story-mission-label {
    display: block;
    font-size: 0.75rem;
    color: var(--signal);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Заголовок картки */
.story-mission-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
}

/* Опис */
.story-mission-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

/* Мобільна адаптація */
@media (max-width: 768px) {
    .story-mission-card {
        padding: 32px 24px;
        margin-top: 32px; /* Відступ від лівої колонки */
    }
    
    .story-mission-title {
        font-size: 1.5rem;
    }
}

/* ========== ABOUT CLIENTS (Light Theme) ========== */

.about-clients-grid {
    display: grid;
    /* Автоматична адаптивність: від 4 колонок на десктопі до 2 на мобільному */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.about-client-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: default;
}

/* Ефект при наведенні */
.about-client-card:hover {
    background: var(--paper-2);
    border-color: var(--signal);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* Контейнер для іконки */
.client-icon-wrap {
    width: 48px;
    height: 48px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--signal);
    flex-shrink: 0; /* Забороняємо іконці стискатися */
    transition: all 0.3s ease;
}

/* При наведенні на картку іконка стає яскравішою */
.about-client-card:hover .client-icon-wrap {
    background: var(--signal);
    color: #fff;
    border-color: var(--signal);
}

/* Текст клієнта */
.about-client-card span {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.3;
}

/* Мобільна адаптація */
@media (max-width: 768px) {
    .about-clients-grid {
        grid-template-columns: 1fr; /* В один стовпчик на смартфонах */
    }
    
    .about-client-card {
        padding: 16px 20px;
    }
}