/* ============================================
   КОЛЬОРИ — Клінічна преміальна палітра
============================================ */
:root {
    --med-bg: #F7F9FB; /* стерильний біло‑голубий фон */
    --med-surface: #FFFFFF; /* чиста поверхня */
    --med-surface-alt: #F2F5F8; /* холодний клінічний шар */

    --med-navy: #0F2744; /* глибокий GE navy */
    --med-navy-light: #1F3C5C; /* вторинний navy */

    --med-cyan: #1AA6C8; /* клінічний cyan */
    --med-cyan-light: #D9F2F8; /* стерильний світлий cyan */

    --med-steel: #2C3238; /* холодний графіт */
    --med-steel-light: #DCE3EA; /* стальний серо‑голубий */
    --med-steel-mid: #C3CCD6; /* клінічний сірий */

    --med-link: #1F3C5C; /* строгий navy для посилань */
}

/* ============================================
   ГЛОБАЛЬНІ СТИЛІ — Плоский клінічний інтерфейс
============================================ */
body {
    background: var(--med-bg);
    color: var(--med-steel);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    letter-spacing: 0.1px;
}

h1, h2, h3 {
    color: var(--med-navy);
    font-weight: 700;
    letter-spacing: -0.2px;
}

.hero {
    background: var(--med-surface);
    padding: 80px 20px;
    border-bottom: 1px solid var(--med-steel-light);
}

.card {
    border: 1px solid var(--med-steel-light);
    border-radius: 8px; /* строгі кути */
    background: var(--med-surface);
}

/* ============================================
   TOC — Навігація сторінки
============================================ */
#toc a {
    text-decoration: none;
    color: var(--med-link);
}

.toc-toggle {
    cursor: pointer;
    user-select: none;
}

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

.toc-content {
    display: none;
}

/* ============================================
   ІКОНКИ — Плоский клінічний cyan
============================================ */
.benefit-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    fill: var(--med-cyan);
    opacity: 0.9;
}

/* ============================================
   БЕЙДЖІ — Строгі клінічні мітки
============================================ */
.badge {
    padding: 6px 12px;
    border-radius: 4px; /* строгі кути */
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    margin: 4px;
}

.badge-green {
    background: #E8F6F0;
    color: #1F5A3A;
}

.badge-blue {
    background: #E6EFF9;
    color: var(--med-navy);
}

.badge-purple {
    background: #F1E9FF;
    color: #4A2A7A;
}

.badge-orange {
    background: #FFF3E3;
    color: #7A3A00;
}

/* ============================================
   CTA-КНОПКА — Плоский клінічний cyan
============================================ */
.cta-btn {
    background: var(--med-cyan);
    color: #fff;
    padding: 16px 38px;
    border-radius: 6px; /* строгі кути */
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cta-btn:hover {
    background: #1593B2;
    transform: translateY(-2px);
}

/* ============================================
   CTA-БЛОК — Контрастний Navy
============================================ */
.cta-box {
    background: var(--med-navy);
    border-radius: 8px; /* строгі кути */
    padding: 40px 32px;
    color: #fff;
    margin-top: 20px;
}

.cta-box-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #FFFFFF; /* максимальний контраст */
    margin-bottom: 20px;
}

.cta-box-text {
    font-size: 1.1rem;
    color: #DCE3EA; /* клінічний steel */
    margin: 24px 0;
    line-height: 1.55;
}

/* ============================================
   FAQ — Клінічний плоский аккордеон
============================================ */
.faq-section {
    background: var(--med-bg);
}

.faq-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--med-navy);
    margin-bottom: 28px;
}

.faq-item {
    border: 1px solid var(--med-steel-light);
    border-radius: 6px; /* строгі кути */
    background: var(--med-surface);
    margin-bottom: 20px;
    overflow: hidden;
    transition: background 0.25s ease;
}

.faq-item.open {
    background: var(--med-surface-alt);
}

.faq-question {
    width: 100%;
    background: var(--med-cyan-light);
    color: var(--med-navy);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 18px 22px;
    border: none;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item.open .faq-question {
    background: var(--med-steel-light);
}

.faq-icon {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--med-cyan);
    transition: transform 0.35s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    background: var(--med-surface);
    color: var(--med-steel);
    font-size: 1rem;
    line-height: 1.55;
    padding: 0 22px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 18px 22px 22px;
}

/* ============================================
   Sticky CTA — Плоска клінічна панель
============================================ */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(247, 249, 251, 0.9);
    backdrop-filter: blur(6px);
    border-top: 1px solid var(--med-steel-mid);
    padding: 14px 18px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.sticky-cta.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* ============================================
   ПОВ’ЯЗАНІ СТОРІНКИ — Плоскі клінічні плитки
============================================ */
.related-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--med-navy);
    margin-bottom: 28px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.related-tile {
    background: var(--med-surface);
    border: 1px solid var(--med-steel-light);
    border-radius: 6px; /* строгі кути */
    padding: 22px 20px;
    text-decoration: none;
    display: block;
    transition: background 0.25s ease, transform 0.25s ease;
}

.related-tile:hover {
    background: var(--med-surface-alt);
    transform: translateY(-2px);
}

.related-tile-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--med-navy);
    margin-bottom: 6px;
}

.related-tile-text {
    font-size: 0.95rem;
    color: var(--med-steel);
    line-height: 1.45;
}

/* ============================================
   TRUST FOOTER BADGES — Клінічна холодна палітра
============================================ */
.trust-footer-badge {
    background: #E6EFF9;
    padding: 8px 14px;
    border-radius: 6px; /* строгі кути */
    font-size: 0.9rem;
    display: inline-block;
}

.trust-footer-badge:nth-child(2) {
    background: #EDF3FA;
}

.trust-footer-badge:nth-child(3) {
    background: #F4F7FB;
}

.trust-footer-badge:nth-child(4) {
    background: #EAF2F8;
}

.trust-footer-badge:nth-child(5) {
    background: #F0F5FA;
}

.trust-footer-badge:nth-child(6) {
    background: #E4ECF5;
}

.trust-footer-badge:nth-child(7) {
    background: #EEF3F8;
}

.trust-footer-badge a {
    color: var(--med-navy);
    font-weight: 500;
}

/* ============================================
   ЗОБРАЖЕННЯ СТОРІНКИ — Адаптивність
============================================ */
.page-img {
    max-width: 360px;
}

@media (max-width: 768px) {
    .page-img {
        float: none !important;
        display: block !important;
        margin: 0 auto 24px auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}
