/* ================================
   БАЗОВІ СТИЛІ СТОРІНКИ
   ================================ */

/* Основний фон та типографіка */
body {
    background: #e4f1f4; /* м’який холодний блакитний фон */
    color: #1a1a1a; /* темний текст для контрастності */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Заголовки */
h1, h2, h3 {
    color: #245a66; /* холодний бірюзово-синій акцент */
}

/* HERO-блок */
.hero {
    background: #f3fafc; /* дуже світлий блакитний */
    padding: 80px 20px;
    border-bottom: 1px solid #c5dde3; /* тонка холодна лінія */
}

/* ================================
   CTA-КНОПКА
   ================================ */

.cta-btn {
    background: #ffd84d; /* теплий акцентний жовтий */
    color: #000;
    padding: 20px 48px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.35rem;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 0 #d4b12f; /* темніша тінь */
    transition: 0.2s ease;
}

/* Ховер-ефект CTA */
.cta-btn:hover {
    background: #ffcc33;
    box-shadow: 0 3px 0 #b89a28;
    transform: translateY(1px);
    color: #000;
}

/* ================================
   КАРТКИ
   ================================ */

.card {
    border: 1px solid #c5dde3; /* як у HERO */
    border-radius: 12px;
}

/* Однакова висота карток */
.equal-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

/* ================================
   TOC (Зміст)
   ================================ */

#toc a {
    text-decoration: none;
    color: #2f6f7d; /* холодний бірюзовий */
}

#toc a:hover {
    text-decoration: underline;
}

/* ================================
   АНІМАЦІЇ CTA
   ================================ */

/* Пульсація */
@keyframes ctaPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 200, 50, 0.0);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 0 18px rgba(255, 200, 50, 0.45);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 200, 50, 0.0);
    }
}

.cta-pulse {
    animation: ctaPulse 6s ease-in-out infinite;
}

/* Легке тремтіння */
@keyframes ctaShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-1px); }
    100% { transform: translateX(0); }
}

.cta-btn-hover:hover {
    animation: ctaShake 0.25s ease;
}

/* Плавна поява CTA */
.cta-animated {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.cta-animated.show {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   СОРТУВАННЯ В ТАБЛИЦЯХ
   ================================ */

.sort-indicator {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-left: 4px;
}

th.asc .sort-indicator,
th.desc .sort-indicator {
    opacity: 1;
}

th.active-sort,
td.active-sort {
    background: #eaf6f8 !important; /* світлий блакитний підсвіт */
    transition: background 0.25s ease;
}

/* ================================
   SVG-ІКОНКИ
   ================================ */

.benefit-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    fill: #245a66; /* як заголовки */
    opacity: 0.9;
}

/* ================================
   ПЛИТКИ RELATED-LINKS
   ================================ */

/* Контейнер плитки */
#related-links .tile {
    background: #ffffff; /* чистий білий для контрасту */
    border: 1px solid #c5dde3; /* як .card */
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Заголовок плитки */
#related-links .tile h5 {
    color: #245a66; /* уніфіковано з h1–h3 */
    font-weight: 700;
    margin-bottom: 8px;
}

/* Текст плитки */
#related-links .tile p {
    color: #3a4f54; /* холодний спокійний текст */
    margin: 0;
}

/* Ховер плитки */
#related-links .tile:hover {
    transform: translateY(-4px); /* легке підняття */
    box-shadow: 0 8px 20px rgba(36, 90, 102, 0.18); /* холодна тінь */
    border-color: #2f6f7d; /* як TOC-посилання */
}

/* Посилання без підкреслення */
#related-links .tile-link {
    text-decoration: none;
    color: inherit;
}
