/* index-styles.css - Стили только для главной страницы */
/* Полный сброс и новые стили */
.item-page[itemscope],
.item-page[itemscope] * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.item-page[itemscope] {
    max-width: 1200px;
    margin: -10px  auto;
    padding: 1rem 1.5rem 2rem;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #f8fafc;
    color: #0f172a;
}

/* ===== БЛОК С НАДПИСЯМИ НАД БАННЕРОМ ===== */
.item-page[itemscope] .features-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.item-page[itemscope] .feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e293b;
    padding: 4px 0;
    flex: 1;
    min-width: 200px;
}

/* Деловые технические значки — SVG */
.item-page[itemscope] .feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.item-page[itemscope] .feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: #1e40af;
    stroke-width: 1.8;
    fill: none;
}

/* Для значка с покупателями используем fill */
.item-page[itemscope] .feature-icon.users-icon svg {
    fill: #1e40af;
    stroke: none;
}

/* Баннер над H1 */
.item-page[itemscope] .top-banner {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.15);
}

.item-page[itemscope] .top-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 100%;
    min-height: 280px;
    object-position: center;
}

/* Заголовок H1 */
.item-page[itemscope] h1 {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 1.5rem 0;
    color: #0a3b5c;
    letter-spacing: -0.01em;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #2c9c6e;
    display: block;
    width: 100%;
}

/* Контейнер для грида */
.item-page[itemscope] .conteiner {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Строки — грид на 3 колонки */
.item-page[itemscope] .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

/* КАРТОЧКИ */
.item-page[itemscope] .blokpos-new {
    background: white;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 100% !important;
}

.item-page[itemscope] .blokpos-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -8px rgba(0, 0, 0, 0.18), 0 3px 6px rgba(0, 0, 0, 0.05);
}

/* ИЗОБРАЖЕНИЕ */
.item-page[itemscope] .blokpos-new picture,
.item-page[itemscope] .blokpos-new img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #e2e8f0;
    transition: transform 0.3s ease;
}

.item-page[itemscope] .blokpos-new:hover img {
    transform: scale(1.02);
}

/* ТЕКСТ В КАРТОЧКАХ */
.item-page[itemscope] .blok-name {
    padding: 0.75rem 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    color: #003366;
    background: white;
    line-height: 1.3;
    border-top: 1px solid #eef2ff;
}

/* Кнопка распродажи */
.item-page[itemscope] .blokpos-new .d {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 5;
    background: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: 0.2s;
    cursor: pointer;
}

.item-page[itemscope] .blokpos-new .d img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    transform: none;
}

.item-page[itemscope] .blokpos-new .d:hover {
    transform: scale(1.05);
}

/* Нижний текст */
.item-page[itemscope] p[style*="position: relative"] {
    margin-top: 1.5rem;
    padding: 0.7rem 1rem;
    background: #eef2ff;
    border-radius: 1rem;
    font-size: 0.85rem;
    line-height: 1.35;
    color: #1e3a5f;
    clear: both;
    border-left: 3px solid #2c9c6e;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Адаптив */
@media (max-width: 900px) {
    .item-page[itemscope] {
        padding: 0.8rem 1rem;
    }
    .item-page[itemscope] .row {
        gap: 0.7rem;
    }
    .item-page[itemscope] .blokpos-new {
        height: 450px !important;
    }
    .item-page[itemscope] .blok-name {
        font-size: 0.85rem;
        padding: 0.6rem 0.4rem;
    }
    .item-page[itemscope] .top-banner img {
        max-height: 350px;
        min-height: 220px;
    }
    .item-page[itemscope] h1 {
        font-size: 24px;
    }
    .item-page[itemscope] .features-row {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    .item-page[itemscope] .feature-item {
        min-width: auto;
    }
}

@media (max-width: 750px) {
    .item-page[itemscope] .row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }
    .item-page[itemscope] .blokpos-new {
        height: 420px !important;
    }
    .item-page[itemscope] h1 {
        font-size: 22px;
    }
    .item-page[itemscope] .top-banner img {
        max-height: 300px;
        min-height: 180px;
    }
    .item-page[itemscope] .blok-name {
        font-size: 0.85rem;
    }
}

@media (max-width: 550px) {
    .item-page[itemscope] {
        padding: 0.5rem;
    }
    .item-page[itemscope] .row {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
    .item-page[itemscope] .blokpos-new {
        height: 400px !important;
    }
    .item-page[itemscope] .top-banner img {
        max-height: 250px;
        min-height: 150px;
    }
    .item-page[itemscope] .blokpos-new .d {
        width: 30px;
        height: 30px;
    }
    .item-page[itemscope] .blokpos-new .d img {
        width: 24px;
        height: 24px;
    }
    .item-page[itemscope] .blok-name {
        font-size: 0.85rem;
        padding: 0.6rem 0.4rem;
    }
    .item-page[itemscope] h1 {
        font-size: 20px;
    }
}