/* Общие стили */
body {
  margin: 0;
  font-family: sans-serif;
    background-color: #f5f5dc !important;
  color: #333;
}

/* Шапка */
.header {
  background-color: #f5f5dc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#openOrderForm {
  padding: 12px 24px;
  font-size: 18px;
  background-color: #a04000;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 20px;
}

#openOrderForm:hover {
  background-color: #7a2f00;
}


.container {
  max-width: 1200px;
  padding: 0 16px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Логотип */
.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Навигация */
.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

.nav a:hover {
  color: #666;
}



/* Мобильное меню */
.mobile-nav {
  display: flex;
  flex-direction: column;
  background-color: #f5f5dc;
  padding: 10px 16px;
}

.mobile-nav a {
  padding: 8px 0;
  text-decoration: none;
  color: #333;
}

.mobile-nav a:hover {
  color: #666;
}

.hidden {
  display: none;
}




/* Галерея*/
body {
  margin: 0;
  font-family: sans-serif;
  background-color: #fdfaf5;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  overflow: hidden;
}

.carousel-container {
  width: 100%;
  max-width: 1000px;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.carousel-item {
  flex: 0 0 auto;
  width: 100px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0.4;
  transform: scale(0.7);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.carousel-item.side {
  opacity: 0.6;
  transform: scale(0.85);
}

.carousel-item.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 10;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.9);
}

.carousel-arrow.left {
  left: 10px;
}

.carousel-arrow.right {
  right: 10px;
}

@media (min-width: 768px) {
  .carousel-item {
    width: 140px;
    height: 210px;
  }

  .carousel-item.active {
    width: 280px;
    height: 420px;
  }
}


.carousel-item.left,
.carousel-item.right {
  transform: scale(0.8);
  opacity: 0.7;
  z-index: 1;
}



.carousel-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  overflow: hidden;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.9);
}

.carousel-arrow.left {
  left: 10px;
}

.carousel-arrow.right {
  right: 10px;
}






.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.modal-close {
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 32px;
  color: white;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  z-index: 10000;
}








.text-block {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
  will-change: transform, opacity;
}

.text-block.visible {
  opacity: 1;
  transform: translateY(0);
}


.text-block {
  margin-top: 60px;
  text-align: center;
  padding: 0 20px;
  color: #333;
}

.text-title {
  font-size: 28px;
  margin-bottom: 16px;
}

.text-description {
  font-size: 16px;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  color: #555;
}















/* Блок "Состав завтрака" */
.breakfast-block {
  margin-top: 80px;
  text-align: center;
  padding: 0 20px;
}

.breakfast-pattern {
  width: 380px;
  height: auto;
  margin-bottom: 16px;
}

@media (max-width: 480px) {
  .breakfast-pattern {
    width: 180px;
  }
}

.breakfast-title {
  font-size: 26px;
  margin-bottom: 32px;
  color: #333;
}

.breakfast-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.breakfast-item {
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-align: center;
}

.breakfast-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.breakfast-item:hover img {
  transform: scale(1.05);
}

.breakfast-item p {
  margin-top: 8px;
  font-size: 14px;
  color: #555;
}

/* Адаптивность */
@media (max-width: 768px) {
  .breakfast-item {
    width: 30%;
  }
}

@media (max-width: 480px) {
  .breakfast-item {
    width: 45%;
  }
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative; /* ⬅ обязательно! */
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  background: transparent;
}


.modal-content img {
  max-height: 80vh;
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.modal-caption {
  margin-top: 12px;
  text-align: center;
  color: #eee;
  font-size: 16px;
  max-width: 600px;
  padding: 0 10px;
}

/* Кнопка закрытия */
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 28px;
  color: white;
  background-color: rgba(0,0,0,0.4);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  text-align: center;
  line-height: 32px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 2;
}

.modal-close:hover {
  background-color: rgba(0,0,0,0.6);
}








