/* ===== БАЗОВІ СТИЛІ DERMASAFE ===== */
:root {
    --primary: #2d6f65;
    --primary-dark: #245a52;
    --accent: #42947b;
    --text-dark: #1e2d2a;
    --text-light: #5f6f6c;
    --bg-light: #f4f6f5;
    --bg-hero: #cfd8d5;
    --white: #ffffff;
    --footer-bg: #1c3c36;
    --footer-text: #cfe1dd;
    --border-light: #e5e5e5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

button, .btn {
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== HEADER ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 60px;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    position: relative;
    z-index: 1000;
}

.logo img {
    height: 40px;
    display: block;
}

/* DESKTOP NAV */
.desktop-nav {
    display: flex;
    gap: 15px;
}

.desktop-nav a {
    padding: 8px 18px;
    border-radius: 8px;
    transition: 0.3s;
    font-weight: 500;
}

.desktop-nav a.active {
    border: 2px solid var(--primary);
}

.desktop-nav a:hover {
    background: #e8f1ef;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== МОБІЛЬНЕ МЕНЮ (ОНОВЛЕНЕ) ===== */
.mobile-nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: var(--white);
    display: none;
    flex-direction: column;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 10px 15px -5px rgba(0,0,0,0.1);
}

.mobile-nav a {
    padding: 16px 0;
    font-size: 18px;
    font-weight: 500;
    transition: 0.3s;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a:hover {
    background: #f1f7f6;
}

.mobile-nav a.active {
    background: #e8f1ef;
    color: var(--primary);
    font-weight: 600;
}

/* ===== FOOTER ===== */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 50px 60px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 20px;
    display: block;
}

footer h4 {
    margin-bottom: 20px;
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
}

footer p {
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.6;
    opacity: 0.6;
}

footer a {
    color: var(--footer-text);
    transition: color 0.3s ease;
    opacity: 0.6;
}

footer a:hover {
    color: var(--accent);
    opacity: 1;
    text-decoration: none;
}

.copy {
    margin-top: 25px;
    font-size: 13px;
    opacity: 0.5;
}

/* ===== АДАПТАЦІЯ (ПК, ПЛАНШЕТ, МОБІЛЬНИЙ) ===== */
@media (min-width: 993px) {
    /* Десктоп */
    .desktop-nav {
        display: flex;
    }
    .hamburger {
        display: none;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    /* Планшет */
    .desktop-nav a {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .footer-grid {
        gap: 30px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    /* Мобільний */
    header {
        padding: 15px 20px;
    }

    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }
    
    .mobile-nav a {
        font-size: 20px;
        padding: 18px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    footer {
        padding: 40px 20px;
    }
    
    .footer-brand {
        align-items: center;
        text-align: center;
    }
    
    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero {
        padding: 60px 20px;
    }
    
    .hero h1 {
        font-size: 26px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* Дуже малі екрани */
    .mobile-nav a {
        font-size: 18px;
        padding: 16px 0;
    }
    
    .hero h1 {
        font-size: 22px;
    }
} 