/* --- Глобальные стили --- */
:root {
    --primary-color: #00b8d4;
    /* Основной цвет из логотипа */
    --secondary-color: #008394;
    /* Более темный оттенок для ховера */
    --dark-color: #222;
    --light-color: #f4f4f4;
    --text-color: #333;
    --white-color: #fff;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

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

h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 20px;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 40px;
}

section {
    padding: 60px 0;
}

/* --- Кнопки --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-outline {
    background-color: transparent;
    color: var(--white-color);
    border-color: var(--white-color);
}

.btn-outline:hover {
    background-color: var(--white-color);
    color: var(--dark-color);
}

.btn-large {
    font-size: 1.1rem;
    padding: 15px 35px;
}


/* --- Хедер --- */
.header {
    background: var(--white-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.promo-banner {
    background: var(--dark-color);
    color: var(--white-color);
    text-align: center;
    padding: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.header-actions .btn:first-child {
    margin-right: 10px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- Геро-блок --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('bg-home.png') no-repeat center center/cover;
    color: var(--white-color);
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons .btn:first-child {
    margin-right: 15px;
}


/* --- Преимущества --- */
.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.feature-item {
    background: var(--white-color);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.feature-item .icon-wrapper {
    font-size: 2.5rem;
    margin: 0 auto 20px;
    background-color: rgba(0, 184, 212, 0.1);
    color: var(--primary-color);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

/* --- Категории --- */
.categories {
    background: var(--light-color);
}

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

.category-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    min-height: 350px;
    box-shadow: var(--box-shadow);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white-color);
    padding: 40px 20px 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

/* --- Для кого --- */
.audience-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.audience-item {
    background: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.audience-item h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
}

/* --- Доверие --- */
.trust {
    background: var(--light-color);
}

.trust-metrics {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.metric .number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.metric .label {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* --- Футер --- */
.footer {
    background: var(--dark-color);
    color: #ccc;
    padding-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h4 {
    color: var(--white-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-column p,
.footer-column li {
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #444;
}

/* --- Страница "О нас" --- */
.about-page .container {
    max-width: 900px;
    text-align: center;
}

.about-content .lead {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #555;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.mission-item h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}


/* --- Страницы контента (Условия, Доставка и т.д.) --- */
.text-page .container {
    max-width: 800px;
}

.text-content h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.text-content ul,
.text-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.text-content li {
    margin-bottom: 10px;
}

.text-content a.btn {
    margin-top: 20px;
}

.delivery-payment-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.info-block h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.info-block ul {
    list-style: none;
    padding-left: 0;
}

/* --- Страница каталога --- */
.catalog-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 20px;
}

.catalog-controls input[type="search"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.catalog-controls select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    min-width: 250px;
}

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

.product-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.product-info .price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    margin-top: auto;
}

.product-info .btn {
    width: 100%;
    text-align: center;
}

/* --- Страница контактов --- */
.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-details h3,
.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-details p {
    margin-bottom: 15px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.contact-form button {
    align-self: flex-start;
}

/* --- Адаптивность --- */
@media (max-width: 992px) {
    .header-content {
        position: relative;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        display: block;
    }

    .nav-links {
        flex-direction: column;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 15px;
    }

    .header-actions {
        display: none;
        /* Или перенести в мобильное меню */
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .audience-wrapper {
        grid-template-columns: 1fr;
    }

    .delivery-payment-wrapper {
        grid-template-columns: 1fr;
    }
    .contacts-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 30px;
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h2 {
        font-size: 2rem;
    }

    .hero {
        height: 70vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .hero-buttons .btn:first-child {
        margin-right: 0;
    }

    .trust-metrics {
        flex-direction: column;
        gap: 30px;
    }

    .catalog-controls {
        flex-direction: column;
    }
    .catalog-controls select {
        min-width: 100%;
    }
}