/* Основная цветовая гамма "Тиффани" */
:root {
    --tiffany-blue: #81D8D0;
    --tiffany-dark: #66C4BC;
    --tiffany-light: #E0F7F5;
    --text-dark: #333333;
    --text-light: #777777;
    --white: #FFFFFF;
    --background: #F9FDFD;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--background);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

/* Typography */
h1, h2, h3 {
    color: var(--tiffany-dark);
    margin-bottom: 1rem;
}

a {
    color: var(--tiffany-dark);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--tiffany-blue);
}

/* Header */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--tiffany-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-list a {
    color: var(--text-dark);
    font-weight: 500;
}

.nav-list a:hover {
    color: var(--tiffany-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--tiffany-dark);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--tiffany-blue);
    color: var(--text-dark);
}

/* Main Content */
main.container {
    flex: 1;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Footer */
.main-footer {
    background-color: var(--tiffany-light);
    padding: 30px 0;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
}

.footer-links a {
    margin-left: 15px;
    color: var(--tiffany-dark);
}

/* ==========================================================================
   АДАПТИВНОСТЬ (Mobile & Tablet) - Гамбургер меню
   ========================================================================== */

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
    z-index: 105;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--tiffany-dark);
    border-radius: 2px;
    transition: 0.3s;
}

.mobile-menu-close {
    display: none;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.mobile-overlay.active {
    display: block;
}

.mobile-only {
    display: none;
}

/* Планшеты и большие телефоны */
@media (max-width: 850px) {
    .header-container {
        /* Keep flex, but allow space between */
    }

    .mobile-menu-btn {
        display: flex;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -300px; /* Hidden off-screen */
        width: 280px;
        max-width: 80vw;
        height: 100vh;
        background: var(--white);
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        z-index: 1000;
        transition: left 0.3s ease-in-out;
        padding-top: 60px;
        overflow-y: auto;
    }

    .main-nav.active {
        left: 0;
    }

    .mobile-menu-close {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
        background: none;
        border: none;
        font-size: 36px;
        color: var(--tiffany-dark);
        cursor: pointer;
        line-height: 1;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list a {
        display: block;
        padding: 15px 25px;
        font-size: 18px;
        border-bottom: 1px solid #eee;
    }

    .nav-list a:hover {
        background: var(--tiffany-light);
    }
    
    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-links a {
        margin: 0 10px;
    }
}

/* Телефоны (вкл. iPhone 430px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo-text {
        font-size: 20px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }
}