/* Общие сбросы */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
}

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

/* Цветовая схема: бирюзовый (#008080) */
:root {
    --teal: #008080;
    --teal-light: #20b2aa;
    --teal-dark: #006666;
    --white: #ffffff;
    --gray: #eaeaea;
}

a {
    color: var(--teal);
    text-decoration: none;
}
a:hover {
    color: var(--teal-dark);
}

/* Шапка */
header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: -0.5px;
}

.logo-icon {
    margin-right: 6px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 3px solid transparent;
    transition: border-color 0.2s;
}
nav ul li a:hover,
nav ul li a.active {
    border-bottom-color: var(--teal);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--teal);
    border-radius: 3px;
}

/* Герой */
.hero {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background: white;
    color: var(--teal);
    padding: 14px 36px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 2px solid white;
}
.btn:hover {
    background: transparent;
    color: white;
}

/* Особенности */
.features {
    padding: 60px 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.4rem;
    color: var(--teal);
    margin-bottom: 50px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: #f5f5f5;
    transition: transform 0.2s;
}
.feature-item:hover {
    transform: translateY(-6px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}
.feature-item h3 {
    color: var(--teal);
    margin-bottom: 10px;
}

/* Заголовки страниц */
.page-head {
    background: var(--teal);
    color: white;
    padding: 40px 0;
    text-align: center;
}
.page-head h1 {
    font-size: 2.5rem;
}

/* Контент */
.content {
    padding: 50px 0;
}
.content h2 {
    color: var(--teal);
    margin: 30px 0 15px;
}
.content ul {
    list-style: square;
    padding-left: 25px;
}
.content ul li {
    margin-bottom: 8px;
}

/* Сетка продуктов */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
    text-align: center;
    padding-bottom: 20px;
}
.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,128,128,0.15);
}
.product-card img {
    width: 100%;
    height: auto;
    background: var(--teal);
    color: white;
}
.product-card h3 {
    margin: 18px 0 10px;
    color: var(--teal);
}
.product-card p {
    padding: 0 15px;
}
.btn-small {
    display: inline-block;
    margin: 15px 0 5px;
    padding: 8px 24px;
    background: var(--teal);
    color: white;
    border-radius: 30px;
    font-weight: 500;
    transition: background 0.2s;
}
.btn-small:hover {
    background: var(--teal-dark);
    color: white;
}

/* Новости */
.news-item {
    background: white;
    padding: 20px 25px;
    margin-bottom: 25px;
    border-radius: 10px;
    border-left: 6px solid var(--teal);
}
.news-item .date {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.news-item h3 {
    color: var(--teal);
}

/* Контакты */
.contact-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-form label {
    display: block;
    margin: 15px 0 5px;
    font-weight: 500;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}
.contact-form textarea {
    resize: vertical;
}
.contact-form .btn {
    background: var(--teal);
    color: white;
    border: none;
    margin-top: 12px;
    cursor: pointer;
}
.contact-form .btn:hover {
    background: var(--teal-dark);
}

.alert {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.alert ul {
    list-style: none;
    padding-left: 0;
}

/* Подвал */
footer {
    background: #222;
    color: #ccc;
    padding: 30px 0;
    margin-top: 40px;
}
.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-links a {
    color: #ccc;
    margin: 0 6px;
}
.footer-links a:hover {
    color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.1rem;
    }

    .hamburger {
        display: flex;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 10px;
        background: white;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 20px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }
    .nav-menu.open {
        display: flex;
    }

    .contact-flex {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-flex {
        flex-direction: column;
        text-align: center;
    }
}