:root {
    --color-bg: #F8F5F2; 
    --color-black: #111111;
    --color-red: #D00000;
    --color-grey: #888888;
    --color-placeholder: #cccccc; /* Цвет пустых блоков */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --container-width: 1300px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--color-bg);
    color: var(--color-black);
    font-family: var(--font-body);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ТЕХНИЧЕСКИЙ КЛАСС ДЛЯ ПУСТЫХ КАРТИНОК --- */
/* Этот класс держит форму, пока вы не вставите реальные img */
.img-slot {
    width: 100%;
    height: 100%;
    background-color: var(--color-placeholder);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px dashed #999; /* Чтобы было видно границы */
}

/* --- HEADER --- */
.souvenir-header {
    background-color: var(--color-bg);
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    max-width: 150px; /* Ограничение ширины для вашего лого */
}

.logo-img {
    display: block;
    width: 100%; 
    height: auto;
    /* Если картинки нет, зададим мин. размеры, чтобы не схлопнулось */
    min-width: 50px; 
    min-height: 50px;
    background: #eee; 
}

.souvenir-nav ul { display: flex; gap: 25px; }

.souvenir-nav a {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-black);
}

.souvenir-nav a:hover { color: var(--color-red); }

.souvenir-nav li.active a {
    color: var(--color-red);
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* --- HERO SECTION (Исправлено) --- */
.souvenir-hero {
    position: relative;
    width: 100%;
    height: 600px; /* Увеличил высоту, чтобы маска влезла */
    background-color: #590000; /* Темно-красная база */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible; /* ВАЖНО: Разрешаем маске торчать, если она большая */
    margin-bottom: 80px; /* Отступ до товаров */
}

/* Имитация красных "линий" и свечения как на макете */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Сложный градиент для эффекта "скорости" и виньетки */
    background: 
        linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(200,0,0,0) 30%, rgba(200,0,0,0) 70%, rgba(0,0,0,0.8) 100%),
        repeating-linear-gradient(90deg, transparent 0, transparent 20px, rgba(255,0,0,0.05) 20px, rgba(255,0,0,0.05) 21px),
        radial-gradient(circle at center, #D00000 0%, #300000 80%);
    z-index: 1;
}

/* Контейнер для маски теперь гибкий */
.mask-container {
    position: relative;
    z-index: 2;
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Сама картинка маски */
.mask-img {
    max-width: 90vw; /* Не шире экрана */
    max-height: 550px; /* Ограничение по высоте, чтобы не была гигантской */
    width: auto;
    height: auto;
    object-fit: contain;
    /* Тень, чтобы отделить маску от фона (как 3D эффект) */
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6)); 
}

/* Специальный стиль для заглушки маски */
.mask-placeholder {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

/* --- MAIN CONTENT --- */
.souvenir-main { padding: 60px 0 100px; }

.page-title {
    font-family: var(--font-heading);
    font-size: 36px;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 60px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* --- GRID LAYOUT --- */
.products-grid { display: flex; flex-direction: column; gap: 60px; }
.grid-row { display: flex; gap: 40px; }

.small-items-group {
    display: flex; gap: 30px; flex: 1; justify-content: space-between;
}

/* Large Item */
.large-item {
    width: 420px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    height: 420px;
    background: #eaeaea; /* Фон, если картинки нет */
}

/* Small Item */
.small-item { flex: 1; display: flex; flex-direction: column; gap: 15px; }

.p-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.size-tag {
    position: absolute;
    bottom: 10px; left: 10px;
    font-size: 9px;
    color: var(--color-grey);
    text-transform: lowercase;
    z-index: 2; /* Поверх заглушки */
}

.p-info h3 {
    font-size: 13px; font-weight: 600; line-height: 1.4; min-height: 36px;
}

.p-bottom {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 10px; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 10px;
}

.price { font-size: 13px; font-weight: 500; }

.add-btn {
    width: 24px; height: 24px;
    border: 1px solid rgba(0,0,0,0.2);
    background: transparent; border-radius: 4px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--color-grey); transition: 0.2s;
}
.add-btn:hover { border-color: var(--color-red); color: var(--color-red); }

/* --- FOOTER --- */
.souvenir-footer {
    background-color: var(--color-bg);
    padding: 60px 0 40px; font-size: 10px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-grid {
    display: grid; grid-template-columns: 0.8fr repeat(8, 1fr); gap: 20px;
}

.footer-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.logo-text {
    display: flex; flex-direction: column;
    font-family: var(--font-heading); font-weight: 700;
    font-size: 14px; line-height: 1; color: var(--color-red);
}

.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 {
    font-family: var(--font-heading); font-weight: 700;
    margin-bottom: 5px; text-transform: uppercase; font-size: 11px;
}
.footer-col a { color: #555; line-height: 1.4; }
.footer-col a:hover { color: var(--color-red); }

@media (max-width: 1024px) {
    .grid-row { flex-direction: column; }
    .large-item { width: 100%; height: 300px; }
    .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 40px; }
}