:root {
    --primary: #8d6e63; /* Основний коричневий */
    --primary-dark: #5d4037;
    --bg-light: #fdfbf7; /* Дуже світлий беж */
    --dark: #3e2723;
    --gray: #f5f5f5;
    --text: #333;
    --white: #ffffff;
    --red: #d32f2f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Montserrat', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; line-height: 1.5; }

/* --- Layout --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 15px; }
.section { padding: 60px 0; }
.bg-gray { background-color: var(--gray); }

/* --- Header --- */
.header { background: var(--white); padding: 15px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-wrap { display: flex; justify-content: space-between; align-items: center; }
.logo { color: var(--dark); font-weight: 900; font-size: 22px; }
.logo span { color: var(--primary); }
.btn-small { background: var(--dark); color: var(--white); padding: 8px 20px; text-decoration: none; font-weight: 600; border-radius: 30px; font-size: 14px; transition: 0.3s; }
.btn-small:hover { background: var(--primary); }

/* --- HERO SECTION (Новий дизайн) --- */
.hero {
    background: linear-gradient(135deg, #fdfbf7 0%, #ece0d1 100%); /* Градієнт замість фото фоном */
    padding: 40px 0;
    overflow: hidden;
}
.hero-container {
    display: flex;
    flex-direction: column-reverse; /* Мобільна: Картинка знизу (або зверху, як хочеш) */
    align-items: center;
    gap: 30px;
}
.hero-content { text-align: center; }
.hero h1 { font-size: 32px; line-height: 1.2; margin-bottom: 15px; color: var(--dark); font-weight: 900; }
.hero h1 span { color: var(--primary); font-style: italic; }
.subtitle { font-size: 16px; margin-bottom: 25px; color: #555; }

.price-block { margin-bottom: 25px; background: rgba(255,255,255,0.7); padding: 10px 20px; border-radius: 10px; display: inline-block; border: 1px solid #e0e0e0; }
.old-price { text-decoration: line-through; color: #999; font-size: 18px; margin-right: 10px; }
.new-price { color: var(--red); font-size: 32px; font-weight: 900; }

.hero-image { position: relative; width: 100%; max-width: 400px; }
.hero-image img { width: 100%; border-radius: 20px; box-shadow: 0 15px 30px rgba(62, 39, 35, 0.2); transform: rotate(-2deg); border: 4px solid var(--white); }
.badge { position: absolute; top: 20px; right: -10px; background: var(--red); color: white; padding: 10px 15px; border-radius: 50%; font-weight: 900; font-size: 18px; transform: rotate(15deg); box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4); }

.timer-text { margin-top: 15px; font-size: 14px; color: #666; font-weight: 600; }

/* --- Buttons --- */
.btn-main { display: block; background: var(--dark); color: var(--white); padding: 18px 30px; font-size: 18px; font-weight: 800; text-decoration: none; border-radius: 50px; border: none; cursor: pointer; text-transform: uppercase; width: 100%; text-align: center; box-shadow: 0 10px 20px rgba(62, 39, 35, 0.2); transition: 0.3s; }
.btn-main:hover { background: var(--primary); transform: translateY(-3px); }
.pulse-btn { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(141, 110, 99, 0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 15px rgba(141, 110, 99, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(141, 110, 99, 0); }
}

/* --- Description --- */
.section-title { text-align: center; font-size: 26px; margin-bottom: 30px; text-transform: uppercase; font-weight: 800; color: var(--dark); }
.desc-content { text-align: center; max-width: 800px; margin: 0 auto; }
.main-text { font-size: 16px; margin-bottom: 25px; line-height: 1.6; }
.desc-features { text-align: left; background: #fff; padding: 25px; border-radius: 15px; border: 1px solid #eee; box-shadow: 0 5px 20px rgba(0,0,0,0.03); }
.desc-features p { margin-bottom: 12px; font-size: 15px; }

/* --- Info Details --- */
.details-grid { display: grid; gap: 20px; }
.detail-item { background: var(--white); padding: 20px; border-radius: 15px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
* Виправлення для фото в блоці "Комфорт у деталях" */
.img-wrap {
    width: 100%;
    /* Замість фіксованих 180px робимо "розумну" висоту */
    aspect-ratio: 2 / 3; /* Пропорція 2:3 (ідеально для одягу на повний зріст) */
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
    background-color: #f0f0f0; /* Сірий фон, поки вантажиться фото */
}

.img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заповнює весь блок */
    object-position: top center; /* Центрує фото, але пріоритет на верхню частину (обличчя) */
}
.detail-item h3 { color: var(--primary); margin-bottom: 5px; font-size: 18px; }

/* --- Catalog Grid --- */
.catalog-subtitle { text-align: center; margin-bottom: 30px; color: #777; margin-top: -20px; }
.catalog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; }
.product-card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 15px; text-align: center; }
.product-card h3 { font-size: 16px; margin-bottom: 10px; }
.btn-select { width: 100%; padding: 10px; background: transparent; border: 2px solid var(--primary); color: var(--primary); font-weight: 700; border-radius: 20px; cursor: pointer; transition: 0.2s; }
.btn-select:hover { background: var(--primary); color: white; }

/* --- Steps --- */
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.step-item { background: white; padding: 15px; border-radius: 10px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.step-num { width: 35px; height: 35px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-weight: bold; }
.step-item h3 { font-size: 14px; margin-bottom: 5px; }
.step-item p { font-size: 12px; color: #666; }

/* --- Reviews --- */
.reviews-grid { display: grid; gap: 15px; }
.review-card { background: white; padding: 20px; border-radius: 12px; border: 1px solid #eee; }
.r-head { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 700; font-size: 14px; }
.stars { color: #ffc107; }
.r-text { font-size: 13px; font-style: italic; color: #444; }
.r-date { display: block; text-align: right; font-size: 11px; color: #aaa; margin-top: 10px; }

/* --- Form --- */
.order-section { background: var(--dark); color: white; padding: 60px 0; }
.form-wrapper { background: white; padding: 30px 20px; border-radius: 15px; color: var(--dark); max-width: 500px; margin: 0 auto; border: 4px solid var(--primary); }
.form-wrapper h2 { text-align: center; margin-bottom: 10px; font-size: 22px; }
.form-wrapper > p { text-align: center; margin-bottom: 20px; color: #666; }
.spam-warning { display: none; background: #fff3cd; color: #856404; padding: 10px; border-radius: 5px; margin-bottom: 15px; font-size: 13px; border: 1px solid #ffeeba; }

.input-group { margin-bottom: 15px; }
.input-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 14px; }
.input-group input, .input-group select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 16px; font-family: 'Montserrat', sans-serif; -webkit-appearance: none; background: white; }

.price-final { font-size: 18px; text-align: center; font-weight: 700; margin: 20px 0; border-top: 1px solid #eee; padding-top: 15px; }
.price-final span { color: var(--red); font-size: 24px; }
.secure-text { text-align: center; margin-top: 15px; font-size: 12px; color: #888; }

/* --- Footer --- */
footer { background: #2d1e1b; color: #888; text-align: center; padding: 30px 0; font-size: 12px; }
footer a { color: #888; }

/* --- DESKTOP ADAPTATION --- */
@media (min-width: 768px) {
    /* Hero: Text Left, Image Right */
    .hero { padding: 80px 0; }
    .hero-container {
        flex-direction: row;
        text-align: left;
        align-items: stretch; /* Елементи розтягуються по висоті */
        min-height: 600px; /* Задаємо мінімальну висоту блоку, можна збільшити */
    }
    .hero-content {
        flex: 1;
        text-align: left;
        padding-right: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Центруємо текст по вертикалі */
    }
    .hero-image {
        flex: 1;
        max-width: none; /* Прибираємо обмеження ширини */
        height: auto; /* Займає всю доступну висоту */
    }
    .hero-image img {
        width: 100%;
        height: 100%; /* Займає всю висоту */
        object-fit: cover; /* Заповнює простір без спотворень */
        transform: none; /* Прибираємо поворот */
        border: none; /* Прибираємо рамку */
        box-shadow: 0 10px 30px rgba(62, 39, 35, 0.2); /* Залишаємо невелику тінь */
        border-radius: 20px; /* Залишаємо скруглення */
    }
    .badge {
        top: 20px;
        right: 20px; /* Коригуємо позицію бейджа */
    }

    .hero h1 { font-size: 48px; }
    .btn-main { width: auto; min-width: 450px; display: inline-block; }
    
    .details-grid { grid-template-columns: repeat(3, 1fr); }
    .catalog-grid { grid-template-columns: repeat(3, 1fr); }
    .steps-grid { grid-template-columns: repeat(4, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    
    .section-title { font-size: 32px; margin-bottom: 50px; }
}