/* 1. ОСНОВНІ НАЛАШТУВАННЯ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    padding-top: 70px; /* Відступ під висоту шапки */
    line-height: 1.6;
	
}
/* Білий текст для підзаголовків у header */
/* Білий текст під h1 в header */
header h1 + p {
    color: #ffffff !important;
}
.hero {
    padding: 70px 20px;
    text-align: center;
    color: #ffffff;
    border-radius: 18px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    opacity: 0.95;
}

/* ФОН САМЕ ДЛЯ ДІАБЕТУ */
.hero-diabetes {
    background: linear-gradient(
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0.45)
    ),
    url("img/diabetes-bg.jpg") center / cover no-repeat;
}

/* 2. ВЕРХНЄ МЕНЮ (HEADER) */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #2c7a7b !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start; /* Усе притиснуто до лівого краю */
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-right: 40px; /* ВІДСТАНЬ ВІД SMARTDIET ДО МЕНЮ (змінюй це число) */
    flex-shrink: 0;
}

/* НАВІГАЦІЯ - СТОЇТЬ ПОРУЧ ІЗ ЛОГО */
.desktop-nav {
    display: flex;
    align-items: center;
}

.desktop-nav a {
    text-decoration: none;
    color: #ffffff !important;
    font-weight: 500;
    margin-right: 20px; /* Відстань між кнопками меню */
    font-size: 13px;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    opacity: 0.9;
    position: relative;
}

.desktop-nav a:hover, 
.desktop-nav a.active {
    opacity: 1;
}

.desktop-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
}

/* 3. КОНТЕНТ */
.content-area {
    width: 100%;
    min-height: calc(100vh - 70px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    background-image: linear-gradient(rgba(240, 242, 245, 0.85), rgba(240, 242, 245, 0.85)), 
                      url('https://images.unsplash.com/photo-1490645935967-10de6ba17061?q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 850px;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 4. СУЧАСНІ ПОВЗУНКИ */
.slider-group { margin-bottom: 25px; }
.slider-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: bold; }
.slider-value { background: #2980b9; color: white; padding: 2px 12px; border-radius: 20px; font-size: 14px; }

.modern-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #dfe6e9;
    border-radius: 5px;
    outline: none;
}

.modern-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px; height: 24px;
    background: #27ae60;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 5. КНОПКИ */
.main-btn, .buy-btn {
    width: 100%;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* 6. ВІДГУКИ (СТОВПЧИК) */
.reviews-section { margin-top: 50px; width: 100%; }
.reviews-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    align-items: center; 
}

.review-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    width: 100%;
    max-width: 600px;
    border-left: 5px solid #3498db;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* 7. КАРТКИ ТАРИФІВ (ВИПРАВЛЕНО: БЕЗКОШТОВНИЙ ТА PRO) */
.menu-offer-section {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 30px;
    justify-content: center;
}

/* Звичайна картка (Безкоштовна) - Сіра рамка */
.offer-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    background: #ffffff;
    border: 2px solid #dfe6e9; /* Світло-сіра рамка */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.offer-card h3 {
    margin-bottom: 15px;
    color: #2d3436;
}

.price {
    font-size: 28px;
    font-weight: 900;
    margin: 15px 0;
    color: #2d3436;
}

/* Платна картка (PRO / MAX) - Жовта/Золота рамка */
.offer-card.premium-card {
    border: 3px solid #f1c40f; /* Яскраво-жовта рамка */
    position: relative;
    box-shadow: 0 10px 25px rgba(241, 196, 15, 0.2);
    transform: scale(1.05); /* Трохи більша за розміром */
    z-index: 2;
}

/* Позначка PRO/MAX зверху */
.premium-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: #f1c40f;
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Кнопка для безкоштовного (Сіра) */
.free-btn {
    background: #95a5a6 !important;
    cursor: default;
}

/* Кнопка для платного (Золота або Зелена) */
.buy-btn {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%) !important;
    color: #000 !important;
    border: none;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.buy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

/* Список можливостей всередині карток */
.offer-card ul {
    text-align: left;
    list-style: none;
    margin: 20px 0;
    flex-grow: 1;
}

.offer-card ul li {
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 950px) {
    .menu-btn { display: block; }
    .desktop-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px; left: 0; width: 100%;
        background: #2980b9;
        padding: 20px;
    }
    .desktop-nav.active { display: flex; }
    .desktop-nav a { margin: 10px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 5px; }
}

footer {
    text-align: center;
    padding: 30px;
    background: #2c3e50;
    color: white;
    margin-top: 40px;
}/* ВИБІР МЕТИ В ОДИН РЯДОК */
.goal-selection {
    display: flex;
    flex-wrap: wrap; /* Дозволяє переносити на наступний рядок на маленьких екранах */
    gap: 10px;
    margin-top: 15px;
    justify-content: space-between;
}

.goal-selection input[type="radio"] {
    display: none;
}

.goal-label {
    flex: 1; /* Всі кнопки будуть однакової ширини */
    min-width: 140px; /* Мінімальна ширина, щоб текст не злипався */
    padding: 12px 10px;
    background: #ffffff;
    border: 2px solid #dfe6e9;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s ease;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Колір при виборі */
.goal-selection input[type="radio"]:checked + .goal-label {
    background: #3498db;
    color: white;
    border-color: #2980b9;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

/* Адаптація для дуже вузьких екранів */
@media (max-width: 400px) {
    .goal-label {
        min-width: 100%; /* На зовсім малих телефонах стануть знову в стовпчик */
    }
}.gender-box {
    font-weight: 600; /* Максимально жирний */
    font-size: 18px;  /* Трохи збільшуємо розмір */
    text-transform: uppercase; /* Робимо всі літери великими (опціонально) */
}/* Стилізація контейнера випадаючого меню */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Приховуємо меню за замовчуванням */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 250px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 8px;
    padding: 10px 0;
    text-align: left;
}

/* Стилі для посилань всередині випадаючого меню */
.dropdown-menu a {
    color: #2c3e50 !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

/* Ефект при наведенні на посилання в меню */
.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #e74c3c !important;
}

/* ПОКАЗУЄМО МЕНЮ ПРИ НАВЕДЕННІ */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Трохи посунемо меню вниз, щоб воно не перекривало основну кнопку */
.dropdown-toggle {
    cursor: pointer;
}
/* Стилі для таблиці ГІ */
.gi-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
}

.gi-table th, .gi-table td {
    padding: 12px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.gi-table th {
    background-color: #2980b9;
    color: white;
}

/* Кольорові статуси */
.ok { color: #27ae60; font-weight: bold; }   /* Зелений */
.warn { color: #f39c12; font-weight: bold; } /* Помаранчевий */
.bad { color: #e74c3c; font-weight: bold; }  /* Червоний */
.custom-header {
    background-color: #2c7a7b !important; /* Той самий колір, що й у верху сайту */
    color: white !important;
    padding: 25px 40px !important;
    border-radius: 15px !important;
    display: inline-block !important; /* Важливо для центрування */
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2); /* Тонка світла лінія всередині для витонченості */
}