/* --- Hero: Строгая пропорция 1 к 3 --- */
.hero {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Текст (1/4 экрана) */
.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    min-width: 350px;
    background-color: var(--bg);
}

.hero-text h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 4.5vw, 4.5rem);
    line-height: 1.05;
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 45px;
    max-width: 320px;
}

/* Фото (3/4 экрана) */
.hero-img {
    flex: 3;
    background: url('../img/main2.webp') center/cover no-repeat;
    background-color: #E2DFDB;
}

.btn-shop {
    display: inline-block;
    padding: 22px 50px;
    background: var(--dark);
    color: #fff;
    text-decoration: none;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: opacity 0.3s;
    width: fit-content;
}

.btn-shop:hover {
    opacity: 0.8;
}

/* --- Креативная сетка карточек --- */
.collection-gallery {
    padding: 180px 10%;
    background-color: var(--bg);
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    align-items: start;
}

.product-item {
    position: relative;
    text-decoration: none;
    color: inherit;
    margin-bottom: 100px;
}

.product-item .index {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
    color: var(--accent);
}

.img-box {
    overflow: hidden;
    background: #EBE8E4;
    margin-bottom: 25px;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.product-item:hover img {
    transform: scale(1.08);
}

.details h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 5px;
}

.details span {
    font-size: 0.8rem;
    color: var(--text-gray);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Позиционирование карточек в люксовом стиле */
.item-1 { grid-column: 1 / span 5; }
.item-2 { grid-column: 7 / span 6; margin-top: 150px; }
.item-3 { grid-column: 3 / span 6; margin-top: -50px; }
.item-4 { grid-column: 10 / span 3; margin-top: -200px; }

/* --- Адаптив --- */
@media (max-width: 1100px) {
    .hero-text { flex: 1.5; }
}

@media (max-width: 1024px) {
    .gallery-grid { display: flex; flex-direction: column; gap: 60px; }
    .product-item { margin-top: 0 !important; width: 100%; }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        height: auto;
    }

    .hero-img {
        height: 75vh;
        flex: none;
    }

    .hero-text {
        padding: 60px 25px;
        flex: none;
        text-align: center;
        align-items: center;
    }
}
