:root {
  --primary: #000000;
  --secondary: #7CA836;
  --dark: #1A3A2F;
  --light: #FFF8DC;
  --text: #333333;
  --white: #FFFFFF;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {


  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--light);
  padding-top: 0px; /* Для фиксированного навбара */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', serif;
  color: var(--primary);
  margin-bottom: 1rem;
}

img {
 
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  background-color: var(--dark);
  color: var(--white);
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== НАВИГАЦИЯ ===== */
nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 15px 30px;
  background-color: var(--secondary);
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;

}

.logo-container img {
  width: 100px;
  height: 100px;
  width: auto;
}
.nav-tel {
  display: flex;
  color: var(--white);
  font-weight: 800;
  align-items: center;
}
  .nav-tel .book-btn {
  
  background-color: var(--dark);
  color: var(--white);
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  color: var(--white);
  font-weight: 800;
  position: relative;
}

.nav-links a:hover {
  color: var(--dark);
}
.nav-links p {
  color: var(--white);
  font-weight: 800;
  position: relative;
}

.nav-links p:hover {
  color: var(--dark);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--white);
  min-width: 200px;
  box-shadow: var(--shadow);
  z-index: 1;
  border-radius: 5px;
  padding: 10px 0;
}

.dropdown:hover .dropdown-content {
  display: block;
  color: var(--dark);
}

.dropdown-content a {
  padding: 10px 20px;
  display: block;
  color: var(--text);
}

.dropdown-content a:hover {
  background-color: var(--light);
}



.mobile-menu-btn {
  display: none;
  background: var(--white);
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark);
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 40%;
  height: 100vh;
  background-color: var(--white);
  z-index: 1100;
  transition: var(--transition);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  color: var(--white);
}

.mobile-menu p {

  border-bottom: 1px solid #eee;
  color: var(--white);
}
.mobile-menu .dropdown-content a {
    margin-left: 10px;
  color: var(--dark);
}
.mobile-menu {
  background-color: var(--secondary);
  color: var(--light);
  text-align: left;
  border-radius: 30px;
  padding: 12px;
  margin-top: 10px;
  border: none;
}

.close-btn {
  position: flex;
  top: 20px;
  right: 20px;
  background: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  display: none;
}

.overlay.active {
  display: block;
}

/* ===== МОДАЛЬНОЕ ОКНО Бронь столика===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1200;
  justify-content: center;
  align-items: center;
  /* Добавляем анимацию для плавного появления */
  animation: fadeIn 0.3s ease;
}

/* Анимация появления */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal.active {
  opacity: 1;
}

.modal-content {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  /* Центрируем по вертикали и горизонтали */
  margin: auto;
  /* Добавляем тень для лучшего визуального отделения */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  /* Анимация для модального окна */
  animation: modalSlideIn 0.3s ease;
  /* Максимальная высота с прокруткой если контент не помещается */
  max-height: 90vh;
  
}

/* Анимация появления модального окна */
@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 32px; /* Увеличиваем размер крестика */
  cursor: pointer;
  color: var(--text);
  width: 44px; /* Делаем область клика больше */
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  /* Улучшаем видимость на светлом фоне */
  background-color: rgba(0, 0, 0, 0.05);
}

.close-modal:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: #333;
}

.modal h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--text);
  font-size: 24px;
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal input,
.modal select,
.modal textarea {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.modal button[type="submit"] {
  margin-top: 10px;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
}
 #responseModal {
  z-index: 1201;
  margin-top: 15px;
  text-align: center;
  font-weight: 500;
  padding: 10px;
  border-radius: 5px;
}

 /* Стили модального окна заказ обеда Grinch Cafe */
        .order-btn {
            display: block;
            background-color: var(--dark);
            color: white;
            border: none;
            padding: 15px 30px;
            font-weight: 600;
            border-radius: 30px;
            cursor: pointer;
            margin: 40px auto;
            transition: var(--transition);
            box-shadow: var(--shadow);}  
   
        }
        
        .order-btn:hover {
            background-color: var(--dark);
        }

        .modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: flex-start; /* Изменено с center на flex-start */
    padding: 20px 0; /* Добавляем отступ сверху и снизу */
    overflow-y: auto; /* Разрешаем прокрутку всего оверлея */
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: modalFadeIn 0.3s;
    overflow-y: auto; /* Прокрутка внутри контента */
    
}
        
        @keyframes modalFadeIn {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .close-modal {
             position: absolute;
  top: 15px;
  right: 15px;
  font-size: 32px; /* Увеличиваем размер крестика */
  cursor: pointer;
  color: var(--text);
  width: 44px; /* Делаем область клика больше */
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  /* Улучшаем видимость на светлом фоне */
  background-color: rgba(0, 0, 0, 0.05);
        }
        
        .close-modal:hover {
            color: #e74c3c;
        }
        
        .modal-title {
            color: #2c3e50;
            margin-top: 0;
            text-align: center;
        }
        
        .order-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .form-group {
            display: flex;
            flex-direction: column;
        }
        
        .form-group label {
            margin-bottom: 8px;
            font-weight: bold;
            color: #2c3e50;
        }
        
        .form-group input, 
        .form-group select {
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 16px;
        }
        
        .form-group select {
            appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 10px center;
            background-size: 15px;
        }
        
        .submit-btn {
            background-color: #1A3A2F;
            color: white;
            border: none;
            padding: 15px;
            font-size: 18px;
            border-radius: 15px;
            cursor: pointer;
            margin-top: 20px;
            transition: background-color 0.3s;
        }
        
        .submit-btn:hover {
            background-color: #c0392b;
        }
/* ===== ШАПКА С ВИДЕО ===== */
#article-header {
  
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  padding: 0 20px;
  margin-top: 0px; /* Компенсация фиксированного навбара */
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#article-header h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeIn 1s ease;
}

#article-header p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  max-width: 800px;
}

.header-buttons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

/* ===== ОСНОВНЫЕ СЕКЦИИ ===== */
section {
  padding: 20px 20px;
  max-width: 1200px;
 
}

#article {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin: 0px auto 0;
  position: relative;
  z-index: 1;
  padding: 50px;
}

#article h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-align: center;
}

#article p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

#article ul {
  margin: 20px 0 30px;
  padding-left: 20px;
}

#article li {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.article-gallery img {
  border-radius: 8px;
  transition: var(--transition);
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.article-gallery img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

/* ===== СЕКЦИИ С КАРТОЧКАМИ ===== */
#column {
  margin: 50px auto;
}

#column h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
}

.cards, .events-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.card-block, .card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}



.card-block {
  text-align: center;
  font-weight: 500;
}

.card-block img {
  border-radius: 8px;
  margin-bottom: 15px;
}

.event-date {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.5rem;
  margin: 15px 0;
}

.card p {
  margin-bottom: 20px;
}

.menu-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* ===== ГЕРОЙ-СЕКЦИИ ===== */
.hero {
  padding: 100px 20px;
  text-align: center;
  background: url('/images/fon.webp') no-repeat center;
  
  color: var(--white);
  margin-top: 80px;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.hero h2 {
  color: var(--white);

}
.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* ===== БЛОКИ С ФИЧАМИ ===== */
.box {
  background-color: var(--light);
  padding: 30px;
  border-radius: 10px;
  margin: 40px 0;
}

.list h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.list h3 {
  font-size: 1.5rem;
  margin: 25px 0 15px;
  color: var(--primary);
}

.feature-item {
  background-color: var(--white);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-left: 4px solid var(--secondary);
  border-radius: 0 5px 5px 0;
}

/* ===== МЕНЮ КАФЕ ===== */
.menu-head {
            margin-top: 140px;
}
 .menu-section {
            margin-bottom: 50px;
        }
        .menu-section h2 {
            font-family: 'Playfair Display', serif;
            font-size: 2.5em;
            color: #7CA836;
            text-align: center;
            margin-bottom: 30px;
            position: relative;
        }
        .menu-section h2:after {
            content: '';
            display: block;
            width: 100px;
            height: 3px;
            background: #7CA836;
            margin: 15px auto;
        }
        .menu-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            padding: 15px;
            background: #f9f9f9;
            border-radius: 8px;
            transition: all 0.3s ease;
        }
        .menu-item:hover {
            background: #f0f0f0;
            transform: translateX(5px);
        }
        .item-name {
            font-weight: 600;
            flex: 3;
            color: #2B2B2B;
        }
        .item-weight {
            color: #666;
            flex: 1;
            text-align: center;
            font-size: 0.9em;
        }
        .item-price {
            font-weight: bold;
            flex: 1;
            text-align: right;
            color: #7CA836;
            font-size: 1.1em;
        }
        .item-description {
            color: #666;
            font-size: 0.9em;
            margin-bottom: 15px;
            margin-left: 20px;
            padding: 0 15px;
            font-style: italic;
        }
        .menu-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }
/* ===== КОНТАКТЫ ===== */
.contact-info {
  margin-bottom: 30px;
}

.contact-info p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info a {
  color: var(--text);
}

.contact-info a:hover {
  color: var(--secondary);
}

.map-container {
  height: 400px;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
}

.contact-form textarea {
  min-height: 150px;
}

.full-width-image {
  width: 50%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}



/* ===== ФУТЕР ===== */
footer {
  background-color: var(--secondary);
  color: var(--white);
  padding: 30px 20px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.copyright p {
  margin-bottom: 5px;
  font-size: 0.9rem;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ ===== */
@media (max-width: 992px) {
  .cards, .events-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .article-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  #article-header h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  
  nav {
    padding: 10px 15px;
    font-size: 0.85rem;
  }
  
  #article-header h1 {
    font-size: 2.2rem;
  }
  
  #article-header p {
    font-size: 1.2rem;
  }
  
  #article {
    padding: 30px;
    margin-top: -30px;
  }
  .full-width-image {
  width: 100%;
  
}
  
  section {
    padding: 40px 20px;
  }
  
  .header-buttons, .menu-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  

  .hero {
    padding: 80px 20px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
}


@media (max-width: 576px) {
  #article-header h1 {
    font-size: 2rem;
  }
    .full-width-image {
  width: 100%;
    }
  #article-header {
    min-height: 500px;
  }
  
  .cards, .events-cards {
    grid-template-columns: 1fr;
  }
  
  .article-gallery {
    grid-template-columns: 1fr;
  }
  
  #article h2, #column h2 {
    font-size: 2rem;
  }
  
  .box {
    padding: 20px 15px;
  }
  
  .list h2 {
    font-size: 1.8rem;
  }
  
  .list h3 {
    font-size: 1.3rem;
  }
  
  .mobile-menu {
    width: 85%;
  }
  
  .modal-content {
    padding: 20px;
  }
}
 
/* Стили для cookies-уведомления */
  .cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--dark);
    color: var(--white);
    padding: 15px 20px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    font-family: 'Montserrat', sans-serif;
  }
  
  .cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
  }
  
  .cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 250px;
    font-size: 14px;
    line-height: 1.4;
  }
  
  .cookie-buttons {
    display: flex;
    gap: 10px;
  }
  
  .cookie-btn {
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    border: none;
  }
  
  .cookie-btn.accept {
    background-color: var(--secondary);
    color: var(--white);
  }
  
  .cookie-btn.reject {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
  }
  
  .cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }
  
  @media (max-width: 576px) {
    .cookie-content {
      flex-direction: column;
      text-align: center;
    }
    
    .cookie-buttons {
      width: 100%;
      justify-content: center;
    }
  }