/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Верхняя информационная панель */
.top-bar {
    background-color: #111; /* Темный фон, как на скриншоте */
    color: #fff;
    font-size: 0.85rem;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: #ff4757;
}

.top-bar-left, .top-bar-center, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-link {
    font-weight: bold;
    font-size: 0.9rem;
}

.lang-divider {
    color: #555;
}

/* Адаптивность верхней панели для телефонов */
@media (max-width: 900px) {
    .top-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .top-bar-center, .top-bar-right {
        display: none; /* Скрываем лишнюю информацию на мобильных, оставляем только телефон */
    }
}

body {
    background-color: #f8f9fa;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background-color: #1a1a1a;
    color: #fff;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #ff4757;
}

/* Основной контент */
main {
    flex: 1;
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ff4757;
    margin-bottom: 1rem;
}

.btn {
    margin-top: auto;
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background-color: #ff4757;
}

/* Страница товара (product.html) */
.product-detail {
    display: flex;
    gap: 3rem;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.product-detail-img {
    flex: 1;
    max-width: 500px;
    border-radius: 10px;
    object-fit: cover;
}

.product-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-detail-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-description {
    margin: 1.5rem 0;
    line-height: 1.6;
    color: #666;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #ccc;
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

/* Адаптивность для телефонов */
@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        text-align: center;
        order: -1;
    }

    nav ul {
        justify-content: center;
        gap: 15px;
    }
}

.inst-icon{
    width: 30px;
    height: 30px;
}