.modal {
display: none;
position: fixed;
z-index: 999;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow-y: auto;
background-color: rgba(0,0,0,0.6);
}

.modal[aria-hidden="false"] {
display: block;
}

.modal-content {
background-color: #fff;
margin: auto;
padding: 20px;
border: 1px solid #ccc;
width: 90%;
max-width: 800px;
border-radius: 12px;
position: relative;
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.767);
}

.modal-close {
position: absolute;
top: 12px;
right: 20px;
font-size: 28px;
cursor: pointer;
color: #5a4633;
transition: color 0.3s;
}
.modal-close:hover {
color: #a7734e;
}

.modal-title {
margin: 0 0 12px;
color: #47341a;
font-size: 1.5em;
font-weight: bold;
}

.modal-highlight {
  font-size: 1.3em;
  font-weight: 600;
  color: #0704018a;   



  border-radius: 8px;
  margin: 15px 0;
  box-shadow: 0 2px 8px hsla(0, 0%, 0%, 0.05);
}



.modal-subtitle {
  font-size: 1em;
  font-weight: 500;
  color: #3b2e1a;
  margin: 0 0 12px;
  text-align: left;   /* читается естественно */
}

.modal-gallery {
  display: flex;
  gap: 12px;
}

.modal-gallery img.icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  filter: grayscale(100%) brightness(0.8); /* нейтральный стиль */
  transition: filter 0.3s, transform 0.2s;
}

.modal-gallery img.icon:hover {
  filter: none;              /* возвращает оригинальный цвет */
  transform: scale(1.1);     /* лёгкое увеличение */
}


.modal-btn {
padding: 10px 20px;
background-color: #8b5e3c;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-weight: bold;
transition: background-color 0.3s;
}
.modal-btn:hover {
background-color: #a7734e;
}



/* ========================== Модальное окно для кнопок ЗАКАЗАТЬ ========================== */
.modal.small {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.35);
}

.modal.small .modal-content {
  background: #fff;
  margin: 15vh auto;
  padding: 1.5rem 1.2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 340px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.modal.small .modal-close {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 20px;
  color: #666;
  cursor: pointer;
}

.modal.small .modal-gallery {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 1rem;
}

.modal.small .modal-gallery img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  transition: transform 0.2s;
}

.modal.small .modal-gallery img:hover {
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .modal.small .modal-content {
    margin: 20vh auto;       /* чуть ниже по вертикали */
    padding: 1rem 0.8rem;    /* меньше отступы */
    max-width: 300px;        /* компактнее */
    font-size: 0.95rem;      /* немного меньше текст */
  }

  .modal.small .modal-gallery img {
    width: 44px;
    height: 44px;
  }

  .modal.small .modal-close {
    top: 4px;
    right: 8px;
    font-size: 18px;
  }
}