:root {
    --bg: #faf5ed;
    --accent: #4b2e22;
    --muted: #475159;
    --danger: #d32f2f;
}

/* Общие стили */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg);
    color: var(--accent);
    display: flex;
    justify-content: center;
    padding: 40px 15px;
}

.card {
    width: 800px;
    max-width: 96vw;
    text-align: center;
}

/* Заголовок */
.title {
    font-weight: 800;
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 8px;
}
.title--big {
    font-size: 58px;
    display: block;
}
.subtitle {
    color: var(--muted);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 22px;
}

/* Галерея */
.gallery .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    justify-items: center;
    margin-bottom: 26px;
}
.item {
    max-width: 340px;
    text-align: center;
}
.item img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    object-fit: cover;
}
.caption {
    margin-top: 8px;
    font-size: 16px;
    color: var(--muted);
    font-weight: 500;
}

/* Цена и кнопка */
.offer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}
.price {
    display: flex;
    align-items: center;
    gap: 12px;
}
.old {
    color: #888;
    text-decoration: line-through;
    font-weight: 600;
    font-size: 22px;
}
.new {
    color: var(--danger);
    font-weight: 800;
    font-size: 36px;
}

/* Кнопка */
.btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 38px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 6px 18px rgba(91,57,39,0.24);
    transition: transform 0.1s;
}
.btn:active { transform: translateY(1px); }




/* Модальне вікно */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    color: #000;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
    text-align: left;
}

.close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 24px;
    cursor: pointer;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

form button {
    background: #ffcc33;
    border: none;
    padding: 10px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
}