/* Базовые настройки */
:root {
    --primary-color: #e63946;
    --primary-hover: #c82333;
    --secondary-color: #1d3557;
    --accent-color: #457b9d;
    --bg-light: #f8f9fa;
    --text-color: #2b2d42;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    padding-bottom: 60px; /* Отступ под мобильную плавающую кнопку */
}

@media (min-width: 769px) {
    body { padding-bottom: 0; }
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background 0.3s ease;
}

.btn-primary { background-color: var(--primary-color); color: #fff; }
.btn-primary:hover { background-color: var(--primary-hover); }
.btn-secondary { background-color: var(--secondary-color); color: #fff; }
.btn-small { padding: 8px 16px; font-size: 14px; }
.btn-large { padding: 16px 32px; font-size: 18px; }
.btn-block { display: block; width: 100%; }

/* Кнопка версии для слабовидящих */
.btn-accessibility {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-accessibility:hover { background: #e2e8f0; border-color: #94a3b8; }
.btn-accessibility .icon { font-size: 16px; }

/* Хедер */
.header {
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo a {
    font-size: 28px;
    font-weight: 900;
    color: var(--secondary-color);
    text-decoration: none;
}
.logo a span { color: var(--primary-color); }
.tagline { font-size: 12px; color: #6c757d; }

.header-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.phone-block {
    display: flex;
    flex-direction: column; 
    align-items: flex-end;    
    text-align: right;
}
.phone-block .btn { display: inline-block; margin-top: 4px; }

.badge { padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: bold; }
.badge.red { background: #ffe3e3; color: var(--primary-color); }
.subtext { display: block; font-size: 12px; color: #6c757d; }

.phone-link {
    font-size: 20px;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    display: block;
}

/* Главный баннер */
.hero {
    background: linear-gradient(135deg, #1d3557 0%, #457b9d 100%);
    color: #fff;
    padding: 60px 0;
}

.hero h1 { font-size: 36px; margin-bottom: 15px; line-height: 1.2; }
.hero-subtitle { font-size: 18px; margin-bottom: 25px; opacity: 0.9; }
.hero-features { list-style: none; margin-bottom: 30px; }
.hero-features li { font-size: 16px; margin-bottom: 10px; }
.cta-note { display: block; font-size: 13px; margin-top: 10px; opacity: 0.8; }

/* Секции общие */
.section { padding: 60px 0; }
.bg-light { background-color: var(--bg-light); }
.section-title { font-size: 28px; text-align: center; margin-bottom: 10px; color: var(--secondary-color); }
.section-subtitle { text-align: center; color: #6c757d; margin-bottom: 40px; }

/* Карточки цен */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.card-featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.15);
}

.card-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--secondary-color);
    color: #fff;
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 12px;
}
.card-badge.green { background: #2a9d8f; }

.card h3 { margin-bottom: 10px; }
.card-desc { font-size: 14px; color: #6c757d; margin-bottom: 15px; }
.price { font-size: 26px; font-weight: bold; color: var(--primary-color); margin-bottom: 20px; }

.card-list { list-style: none; margin-bottom: 25px; flex-grow: 1; }
.card-list li {
    font-size: 14px;
    margin-bottom: 8px;
    padding-left: 18px;
    position: relative;
}
.card-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* География */
.geo-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.geo-tags span { background: #e9ecef; padding: 6px 14px; border-radius: 20px; font-size: 14px; }
.geo-link {
    background: #e9ecef;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}
.geo-link:hover { background: var(--secondary-color); color: #fff; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; }
.faq-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}
.faq-item h3 { font-size: 18px; margin-bottom: 10px; color: var(--secondary-color); }

/* Подвал */
.footer { background: var(--secondary-color); color: #fff; padding-top: 40px; }
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}
.footer a { color: #fff; }
.footer-bottom {
    background: #112233;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: #a0a0a0;
}

/* Дисклеймер ФЗ О рекламе */
.medical-disclaimer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 15px 10px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-top: 2px solid var(--primary-color);
}

.policy-link { color: #a0a0a0; text-decoration: underline; }
.policy-link:hover { color: #fff; }

/* Модальное окно 152-ФЗ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    color: var(--text-color);
    position: relative;
}

.close-btn {
    position: absolute;
    right: 15px; top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Мобильная кнопка */
.mobile-cta {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

@media (min-width: 769px) {
    .mobile-cta { display: none; }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background-color: #2c3e50;
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 14px;
    line-height: 1.4;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.cookie-banner p {
    margin: 0;
}

.cookie-banner a {
    color: #3498db;
    text-decoration: underline;
}

.cookie-banner .btn-cookie {
    background-color: #27ae60;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.cookie-banner .btn-cookie:hover {
    background-color: #2196f3;
}

@media (max-width: 576px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
    
    .cookie-banner .btn-cookie {
        width: 100%;
    }
}

/* РЕЖИМ СЛАБОВИДЯЩИХ (ГОСТ) */
body.accessibility-mode {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-size: 20px !important;
    line-height: 1.8 !important;
}

body.accessibility-mode * {
    background-color: #ffffff !important;
    background-image: none !important;
    color: #000000 !important;
    border-color: #000000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

body.accessibility-mode a,
body.accessibility-mode button,
body.accessibility-mode .btn {
    border: 2px solid #000000 !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    font-size: 20px !important;
    padding: 12px 20px !important;
    text-decoration: underline !important;
}

body.accessibility-mode a:hover,
body.accessibility-mode button:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}

body.accessibility-mode h1 { font-size: 34px !important; }
body.accessibility-mode h2 { font-size: 28px !important; }
body.accessibility-mode h3 { font-size: 24px !important; }

body.accessibility-mode .mobile-cta,
body.accessibility-mode .cookie-banner {
    position: static !important;
    border-top: 2px solid #000000 !important;
}

body.accessibility-mode .btn-accessibility {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .header-container { flex-direction: column; text-align: center; }
    .header-info { flex-direction: column; gap: 12px; }
    .phone-block { align-items: center; text-align: center; }
    .hero h1 { font-size: 26px; }
    .cookie-banner { bottom: 58px; padding: 12px 0; }
    .cookie-container { flex-direction: column; text-align: center; gap: 10px; }
    .cookie-banner .btn { width: 100%; }
}
