:root {
    --primary: #2FB24A;
    --dark: #2c3e50;
    --light: #f4f7f6;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
}

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



.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--dark);
}

.logo span {
    color: var(--primary);
}

.nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
}

.btn-primary {
    background: var(--primary);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 5px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&q=80&w=1200') no-repeat center/cover;
    padding: 80px 0;
    color: #fff;
    text-align: center;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero h1 span {
    color: var(--primary);
}

.search-box {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.search-box input {
    width: 60%;
    padding: 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.search-box button {
    padding: 15px 30px;
    border: none;
    background: var(--primary);
    color: #fff;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* Grid Categories */
.section-title {
    text-align: center;
    margin: 40px 0;
}

.grid {
    display: grid;
    /* Уменьшаем минимальную ширину до 140px-150px */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px; /* Немного уменьшим отступы для мобилок */
}

.cat-card {
    color: #000;
    background: var(--light);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.cat-card h3 {
   text-decoration: none;
}

.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cat-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
    text-decoration: none;
}

/* Footer */
.footer {
    background: var(--dark);
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.grid-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer h4 {
    margin-bottom: 20px;
}

.footer a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #888;
}

/* Adaptive Burger */
.burger {
    display: none;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 5px;
}




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

.category-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s ease;
    border: 1px solid #f0f0f0;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.15);
    border-color: #2ecc71;
}

.category-link {
    text-decoration: none;
    color: inherit;
}

.category-icon {
    font-size: 40px;
    color: #2ecc71;
    margin-bottom: 15px;
}

.category-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
}

.category-card p {
    color: #888;
    font-size: 14px;
}


@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .burger {
        display: block;
    }

    .search-box {
        flex-direction: column;
        align-items: center;
    }

    .search-box input {
        width: 90%;
        border-radius: 5px;
        margin-bottom: 10px;
    }

    .search-box button {
        width: 90%;
        border-radius: 5px;
    }

    .cat-card h3 {
     font-size: 15px;
}

.cat-card p {
     font-size: 12px;
}


.grid {
    display: grid;
    /* Уменьшаем минимальную ширину до 140px-150px */
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px; /* Немного уменьшим отступы для мобилок */
}
}