/* ================================
   БАЗОВАЯ ЦВЕТОВАЯ СХЕМА
   ================================ */
body {
    background: #fff6eb; /* мягкий тёплый фон */
    color: #1a1a1a;
}

h1, h2, h3 {
    color: #5a3a18; /* глубокий тёплый коричневый */
}

.hero {
    background: #ffffff;
    padding: 80px 20px;
    border-bottom: 1px solid #eed3b8;
}

.card {
    border: 1px solid #eed3b8;
    border-radius: 12px;
}

#toc a {
    text-decoration: none;
    color: #b45f06;
}

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

.equal-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ================================
   CTA — цвета НЕ меняем
   ================================ */
.cta-btn {
    background: #ffd84d;
    color: #000;
    padding: 20px 48px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.25rem;
    text-decoration: none;
    display: inline-block;
}

.cta-btn:hover {
    background: #f5c93c;
    color: #000;
}

/* ================================
   АНИМАЦИИ 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);
}

.cta-btn-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-btn-hover:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 200, 50, 0.45);
}

/* Pulse */
@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;
}

/* Shake */
@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;
}

/* ================================
   ТАБЛИЦЫ — подсветка сортировки
   ================================ */
th.active-sort,
td.active-sort {
    background: #fff3d4 !important;
    transition: background 0.25s ease;
}

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

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

/* ================================
   STICKY CTA — ПРАВЫЙ НИЖНИЙ УГОЛ
   ================================ */
.sticky-cta {
    position: fixed;
    right: 24px; /* ← перенесено из left */
    bottom: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.sticky-cta .cta-btn {
    padding: 18px 40px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.sticky-cta .cta-btn:hover {
    box-shadow: 0 8px 22px rgba(0,0,0,0.22);
}

/* Плиточный блок в стиле новой цветовой схемы */
#related-links {
    background: #fff6eb; /* общий фон секции */
}

#related-links h2 {
    color: #5a3a18;
    font-weight: 800;
}

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

/* Плитка */
#related-links .tile {
    background: #ffffff;
    border: 1px solid #eed3b8;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Заголовки плиток */
#related-links .tile h5 {
    color: #5a3a18;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Текст плиток */
#related-links .tile p {
    color: #7a5a3a;
    margin: 0;
}

/* Hover — в стиле CTA hover */
#related-links .tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 200, 50, 0.25);
    border-color: #f5c93c;
}
