/* Общие стили */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #000;
    background: grey;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Кнопки */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #FFD700;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.button:hover {
    background: #FFC000;
}

/* Шапка */
.header {
    top: 30px;
    background: #000;
    color: #fff;
    padding: 15px 0;
}

.header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 15px;
}

.menu {
    display: flex;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none; /* Для Firefox */
}

.menu::-webkit-scrollbar {
    display: none; /* Для Chrome/Safari */
}

.menu-inner {
    display: flex;
    gap: 15px;
    padding: 0 10px;
}

.menu a {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    padding: 5px 10px;
}

.tg-button {
    background: #FFD700;
    color: #000;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 15px;
    white-space: nowrap;
    text-align: center;
}

/* Герой-баннер */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    color: white;
    text-align: center;
}

.hero-bg-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    left: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

/* Затемнение фона */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Остальные стили остаются без изменений */
.products {
    padding: 50px 0;
    background: #fff;
}

.products h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 200px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.features {
    padding: 50px 0;
    background: #f9f9f9;
}

.features h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature {
    text-align: center;
    padding: 20px;
}

.feature span {
    font-size: 2.5em;
    display: block;
    margin-bottom: 15px;
}

.footer {
    background: #000;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 20px;
}

.contacts p {
    margin: 10px 0;
}

.social a {
    color: #FFD700;
    margin: 0 10px;
    text-decoration: none;
}

.copyright {
    margin-top: 20px;
    font-size: 0.9em;
    color: #aaa;
}

/* Адаптивность */
@media (max-width: 768px) {
    .product-grid, .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header .container {
        padding: 10px;
    }

    .menu {
        width: 100vw;
        margin-left: -5%;
    }

    .menu-inner {
        padding: 0 20px;
    }

    .tg-button {
        margin-top: 10px;
    }

    .hero {
        height: 500px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.modal-overlay.show {
  display: block;
}

@media (max-width: 480px) {
    .product-grid, .features-grid {
        grid-template-columns: 1fr;
    }

    body {
        
        top: 30px;
    }
    
    .header {
        position: relative;
        top: 80px;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .hero {
        height: 100vh;
        min-height: 600px;
    }
    
    .hero .container {
        justify-content: center;
        padding: 40px 20px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-bg-image {
        object-position: 60% center;
    }
    
    .button {
        width: 100%;
        max-width: 280px;
        padding: 12px 0;
    }

    .menu {
        margin-left: -10px;
    }

    .menu-inner {
        gap: 10px;
    }
}