@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Roboto:wght@500;700;900&display=swap');

:root {
    --primary: #0056B3; /* Класичний медичний синій */
    --bg: #F8F9FA;
    --text: #212529;
    --card-bg: #FFFFFF;
    --border-color: #DEE2E6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Open Sans', sans-serif; background-color: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4, .logo { font-family: 'Roboto', sans-serif; color: #111; font-weight: 700; }
h1, h2 { color: var(--primary); }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

#progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--primary); width: 0%; z-index: 1000; }
.header { position: fixed; top: 0; width: 100%; background: #FFF; border-bottom: 1px solid var(--border-color); z-index: 999; padding: 15px 0; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.4rem; color: var(--primary); font-weight: 900; }
.nav a { margin-left: 25px; font-weight: 600; color: #495057; transition: 0.2s; font-size: 0.95rem; }
.nav a:hover { color: var(--primary); }

section { padding: 80px 0 40px; }
section > h2 { margin-bottom: 40px; text-align: center; position: relative; padding-bottom: 15px; }
section > h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--primary); }

.glass-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 6px; padding: 40px; box-shadow: 0 4px 12px rgba(0,0,0,0.04); transition: box-shadow 0.3s; }
.hover-up:hover { box-shadow: 0 10px 20px rgba(0,86,179,0.1); }

.hero { min-height: 80vh; display: flex; align-items: center; text-align: center; padding-top: 100px; background: #FFF; border-bottom: 1px solid var(--border-color); }
.hero-content h1 { font-size: 3rem; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; max-width: 650px; margin: 0 auto; color: #6C757D; }

.flex-card { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.flex-reverse { flex-direction: row-reverse; }
.intro-text { flex: 1; }
.intro-photo { flex: 1.5; display: flex; justify-content: center; }
.intro-photo img { width: 100%; max-width: 600px; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

.recommendation-block { margin-bottom: 50px; }
.recommendation-info { flex: 1; }
.symptoms { font-size: 1.05rem; color: #495057; margin-bottom: 20px; border-left: 3px solid #CED4DA; padding-left: 15px; }
.product-card { padding: 30px; background: #F8F9FA; border: 1px solid var(--border-color); border-radius: 6px; width: 280px; text-align: center; flex-shrink: 0; }
.product-card img { width: 140px; height: 140px; object-fit: cover; border-radius: 4px; margin-bottom: 15px; border: 1px solid #DEE2E6; }

.compare-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.compare-table th, .compare-table td { padding: 15px; text-align: left; border: 1px solid var(--border-color); }
.compare-table th { background: #E9ECEF; color: #212529; }
.check-list-items li { list-style: none; padding: 15px 20px; margin-bottom: 10px; background: #FFF; border: 1px solid var(--border-color); border-left: 4px solid var(--primary); border-radius: 4px; }

.error-card { border-left: 4px solid #DC3545; }
.huge-disclaimer { font-size: 0.95rem; font-weight: 700; color: #721C24; text-align: justify; padding: 25px; border: 1px solid #F5C6CB; background: #F8D7DA; border-radius: 4px; }

.subscribe-form { margin-top: 30px; display: flex; justify-content: center; gap: 10px; }
.subscribe-form input { padding: 15px 20px; border: 1px solid #CED4DA; border-radius: 4px; width: 320px; font-family: 'Open Sans'; outline: none; }
.subscribe-form input:focus { border-color: var(--primary); }
.subscribe-form button { padding: 15px 30px; background: var(--primary); color: #FFF; border: none; border-radius: 4px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.subscribe-form button:hover { background: #004494; }

.footer { padding: 25px 0; margin-top: 40px; background: #E9ECEF; border-top: 1px solid #DEE2E6; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-logo { font-family: 'Roboto'; font-size: 1.2rem; font-weight: 700; color: #495057; }
.footer-links a { margin: 0 15px; font-size: 0.9rem; color: #495057; text-decoration: underline; }
.footer-copy { font-size: 0.8rem; color: #6C757D; }

.cookie-banner { position: fixed; bottom: 20px; left: 20px; right: 20px; background: #FFF; border: 1px solid var(--border-color); padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 6px; display: flex; justify-content: space-between; align-items: center; z-index: 10000; transform: translateY(150%); transition: 0.4s; }
.cookie-banner.show { transform: translateY(0); }
.cookie-buttons button { padding: 10px 20px; margin-left: 10px; border: none; border-radius: 4px; font-weight: 600; cursor: pointer; }
#acceptCookie { background: var(--primary); color: #FFF; }
#settingsCookie { background: #E9ECEF; color: #212529; }

.reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.doc-page { padding-top: 120px; min-height: 80vh; }
.doc-page h1, .doc-page h2 { margin-bottom: 20px; }
.doc-page p, .doc-page ul { margin-bottom: 15px; color: #495057; }
.doc-page ul { padding-left: 20px; }

@media (max-width: 992px) { .flex-card, .flex-reverse { flex-direction: column; } .product-card { width: 100%; max-width: 400px; margin: 0 auto; } }
@media (max-width: 768px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } .subscribe-form { flex-direction: column; } .subscribe-form input { width: 100%; } .cookie-banner { flex-direction: column; gap: 15px; text-align: center; } }