/* ==========================================================================
   1. ГЛОБАЛЬНІ СТИЛІ ТА СКИДАННЯ (RESET)
   ========================================================================== */
body {
    color: #334e68;
    background-color: #fcfcfd;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
}

h1, h2, h3, h4, h5, h6, .display-4, .display-5 {
    color: #2b6cb0 !important;
    font-weight: 800;
}

a { color: #3498db; text-decoration: none; transition: 0.3s; }
a:hover { color: #2980b9; }

/* Відступи: 80px — ідеальний баланс під фіксоване меню */
main > .container, main > .container-fluid {
    padding-top: 80px;
    padding-bottom: 30px;
}

/* Сторінки з Hero-банерами притискаються до меню без дірок */
.site-read, .site-index, .site-shop, .site-about {
    padding-top: 0 !important;
}

/* ==========================================================================
   2. НАВІГАЦІЯ (Яскраві кнопки)
   ========================================================================== */
.navbar {
    background-color: #3498db !important;
    border-bottom: 5px solid #f1c40f !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0 !important;
}

.navbar-brand {
    color: #f1c40f !important;
    font-weight: 800 !important;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.brand-logo-img {
    width: 35px; height: 35px; margin-right: 10px;
    border-radius: 50%; object-fit: cover; vertical-align: middle;
}

.navbar-nav .nav-link {
    font-weight: 800 !important;
    margin: 5px 8px !important;
    padding: 8px 18px !important;
    border-radius: 50px !important;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Кольори пунктів меню */
.navbar-nav .nav-item:nth-child(1) .nav-link { background: #ccff00 !important; color: #1a365d !important; }
.navbar-nav .nav-item:nth-child(2) .nav-link { background: #ff9800 !important; color: #fff !important; }
.navbar-nav .nav-item:nth-child(3) .nav-link { background: #00d2ff !important; color: #1a365d !important; }
.navbar-nav .nav-item:last-child .nav-link  { background: #f1c40f !important; color: #2b6cb0 !important; border: 2px solid #fff; }

.navbar-nav .nav-link:hover { transform: scale(1.05); background: #fff !important; color: #3498db !important; }

/* ==========================================================================
   3. HERO БЛОКИ ТА ЦИТАТИ (Синій градієнт)
   ========================================================================== */
.hero-banner, .read-hero-header, .author-quote-block {
    background: linear-gradient(135deg, #2b6cb0 0%, #1a365d 100%) !important;
    color: #fff !important;
    position: relative;
    overflow: hidden;
}

.hero-banner, .read-hero-header {
    border-radius: 0 0 80px 80px !important;
    padding: 80px 0 !important;
    text-align: center;
}

.author-quote-block {
    border-left: 12px solid #f1c40f !important;
    border-radius: 2rem;
    padding: 1.5rem 3.5rem !important;
    transition: transform 0.3s ease;
}

.author-quote-block h2 { color: #f1c40f !important; font-size: 1.8rem !important; margin-bottom: 0.5rem !important; }
.author-quote-block .quote-text { line-height: 1.4 !important; margin-bottom: 0.8rem !important; }
.author-quote-block .blockquote-footer { border: none !important; padding: 0 !important; color: rgba(255,255,255,0.8) !important; }
.author-quote-block .blockquote-footer::before { content: "" !important; display: none !important; }

/* ==========================================================================
   4. КАРТКИ ПЕРЕВАГ (BENEFIT CARDS)
   ========================================================================== */
.benefit-card {
    background: #fff;
    border-radius: 20px;
    padding: 15px 20px !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-top: 5px solid #0d6efd !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: 0.3s ease;
}

.benefit-card:hover { transform: translateY(-7px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }

.benefit-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.benefit-icon { font-size: 2.2rem; }
.benefit-card h3 { font-size: 1.15rem !important; font-weight: 700; margin: 0 !important; }
.benefit-card p { font-size: 0.95rem !important; line-height: 1.4; color: #64748b !important; margin: 0 !important; }

/* Кольори бордерів для карток */
.border-primary   { border-top-color: #0d6efd !important; }
.border-success   { border-top-color: #198754 !important; }
.border-danger    { border-top-color: #dc3545 !important; }
.border-warning   { border-top-color: #ffc107 !important; }
.border-info      { border-top-color: #0dcaf0 !important; }
.border-secondary { border-top-color: #6c757d !important; }
.border-dark      { border-top-color: #212529 !important; }

/* ==========================================================================
   5. МЕТОДИКА ТА СПЕЦІАЛЬНІ ЕЛЕМЕНТИ
   ========================================================================== */
.methodology-row {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: #ebf8ff; padding: 5px 15px !important;
    border-radius: 50px; border: 2px solid #bee3f8;
    margin: 5px auto !important; max-width: fit-content;
}

.methodology-row h2 { font-size: 1rem !important; color: #2b6cb0 !important; margin: 0 !important; }
.methodology-row p  { font-size: 0.9rem !important; color: #2c5282 !important; margin: 0 !important; }

/* Анімація Ріко */
.hero-rico-icon, .author-rico-clean, .read-rico-icon {
    width: 100%; max-width: 140px; height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
    animation: rico-bounce 3s infinite ease-in-out;
}
.author-rico-clean { max-width: 280px; }

@keyframes rico-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

/* ==========================================================================
   6. ФОРМА ТА ВАЛІДАЦІЯ (БАБЛИ)
   ========================================================================== */
.field-order-name, .field-order-phone, .field-order-comment, .field-order-recaptcha {
    position: relative; margin-top: 25px !important;
}

.help-block-error, .invalid-feedback, .has-error .help-block {
    display: block !important; position: absolute; top: -22px; left: 15px;
    background: #e63946; color: #fff !important; font-size: 0.7rem !important;
    padding: 2px 10px; border-radius: 6px; z-index: 10; white-space: nowrap;
}

.has-error .help-block::after {
    content: ''; position: absolute; bottom: -4px; left: 10px; width: 8px; height: 8px;
    background: #e63946; transform: rotate(45deg);
}

.has-error input, .has-error textarea { border: 2px solid #e63946 !important; background: #fff8f8 !important; }

/* ==========================================================================
   7. КНОПКИ ТА ЕФЕКТИ БЛИСКУ
   ========================================================================== */
.btn-warning, .btn-order-animated {
    position: relative; overflow: hidden; font-weight: 800;
    transition: 0.3s; z-index: 1; border-radius: 50px;
}

.btn-order-animated {
    background: linear-gradient(180deg, #3498db 0%, #2980b9 100%) !important;
    color: #fff !important; padding: 12px 30px; border: none !important;
    box-shadow: 0 4px 0 #1d6fa5 !important;
}

.btn-warning {
    background: linear-gradient(180deg, #ffeb3b 0%, #f1c40f 100%) !important;
    box-shadow: 0 3px 0 #b7950b !important; color: #1a365d !important;
}

.btn-warning:hover, .btn-order-animated:hover { transform: scale(1.03) translateY(-2px); }

/* Ефект Glare (Блиск) */
.btn-warning::after, .btn-order-animated::after {
    content: ""; position: absolute; top: -50%; left: -100%; width: 40%; height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg); transition: 0.6s; z-index: 2; pointer-events: none;
}
.btn-warning:hover::after, .btn-order-animated:hover::after { left: 150%; }

/* ==========================================================================
   8. АДАПТИВНІСТЬ ТА ФУТЕР
   ========================================================================== */
@media (max-width: 768px) {
    .hero-banner, .read-hero-header { padding: 40px 20px !important; border-radius: 0 0 40px 40px !important; }
    .author-quote-block { padding: 1.5rem !important; }
    .author-rico-clean { max-width: 150px; }
    .benefit-card { padding: 12px 15px !important; }
}

.footer {
    background: #f8f9fa; border-top: 2px solid #3498db;
    height: 60px; line-height: 60px; font-size: 0.9rem;
}
.footer .container { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-link { font-weight: 600; color: #212529; }
.footer-link:hover { color: #0d6efd; text-decoration: underline; }