body {
    background-color: #f8f9fa;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

p {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

/* Основной контент */
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;
    align-items: center;      /* по горизонтали */
    justify-content: center;  /* по вертикали (если есть высота) */
}

.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;
}

/* Видео */
.video-section {
    position: relative;
    width: 50%;
    height: 500px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

.video-overlay {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
}

.video-overlay h1 {
    font-size: 40px;
}

.video-overlay p {
    font-size: 20px;
}


/* ========================= */
/* 📱 АДАПТАЦИЯ ПОД ПЛАНШЕТЫ */
/* ========================= */
@media (max-width: 768px) {

    main {
        padding: 1.5rem 4%;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .product-image {
        height: 220px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 8px;
    }

    .video-section {
        width: 90%;
        height: 300px;
    }

    .video-overlay h1 {
        font-size: 26px;
    }

    .video-overlay p {
        font-size: 16px;
    }
}


/* ========================= */
/* 📱 АДАПТАЦИЯ ПОД ТЕЛЕФОНЫ */
/* ========================= */
@media (max-width: 480px) {

    main {
        padding: 1rem 3%;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .products-grid {
        grid-template-columns: 1fr; /* 1 товар в ряд */
    }

    .product-card {
        border-radius: 8px;
    }

    .product-image {
        height: 200px;
    }

    .product-title {
        font-size: 0.95rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 8px;
    }

    .video-section {
        width: 100%;
        height: 250px;
        margin: 15px auto;
    }

    .video-overlay h1 {
        font-size: 20px;
    }

    .video-overlay p {
        font-size: 14px;
    }
}