/* Твої оригінальні стилі */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f3efe6;
}

.hero { padding: 60px 20px; }
.container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 40px;
}
.left { flex: 1; }
.right img { width: 320px; }
.brand { font-weight: bold; color: #4d5d2f; margin-bottom: 20px; }
h1 { font-size: 44px; color: #2f3f1d; }
h2 { font-size: 28px; margin-bottom: 20px; }

.btn {
  display: inline-block;
  background: #a79c61;
  color: white;
  padding: 14px 26px;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 30px;
}

.info h3 { margin-bottom: 10px; }
.info p { color: #555; }

/* Продукти */
.products { padding: 60px 20px; text-align: center; }
.title { font-size: 32px; margin-bottom: 40px; color: #2f3f1d; }
.product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}
.card {
  width: 260px;
  border-right: 1px solid rgba(0,0,0,0.1);
  padding: 10px;
}
.card:last-child { border-right: none; }
.price { font-size: 30px; color: #2f3f1d; margin: 10px 0; }

.buy-button {
    background: #4d5d2f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

/* Переваги */
.benefits { text-align: center; padding: 60px 20px; }
.divider { width: 200px; height: 2px; background: #c9c2a3; margin: 20px auto; }
.list { display: flex; justify-content: center; gap: 80px; margin: 30px 0; }
li { list-style: none; margin: 12px 0; position: relative; padding-left: 20px; text-align: left;}
li::before { content: "✦"; position: absolute; left: 0; color: #c9a85c; }

/* --- МОДАЛЬНЕ ВІКНО --- */
.modal-overlay {
    display: none; /* Сховано за замовчуванням */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); /* Затемнення фону */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active { display: flex; }

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    position: relative;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

#orderForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

#orderForm input, #orderForm textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* Адаптивність */
@media (max-width: 768px) {
  .container, .list { flex-direction: column; text-align: center; gap: 20px; }
  .card { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 20px; }
}

/* Картки товарів */
.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
}

.card {
    background: white;
    width: 280px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
    transition: 0.3s;
}

.card:hover { transform: translateY(-5px); }

.card-img { height: 180px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.card img { max-height: 100%; max-width: 100%; object-fit: contain; }

.card h3 { margin: 10px 0; color: #2f3f1d; }
.card-type { color: #888; font-size: 14px; margin: 5px 0; }
.card-volume { font-weight: bold; color: #4d5d2f; }
.price { font-size: 24px; font-weight: bold; margin: 15px 0; color: #2f3f1d; }

.buy-button {
    background: #a79c61;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

/* МОДАЛЬНЕ ВІКНО НА ВЕСЬ ЕКРАН */
.modal-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fefefe;
    width: 100%;
    max-width: 500px;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    box-sizing: border-box;
}

.close-btn {
    position: absolute;
    top: 20px; right: 25px;
    font-size: 35px;
    cursor: pointer;
    color: #999;
}

#orderForm input, #orderForm textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

.btn-submit {
    background: #4d5d2f;
    color: white;
    border: none;
    padding: 18px;
    width: 100%;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
}