/* ===== ERA64.RU - ПОЛНАЯ КОПИЯ ДИЗАЙНА ===== */

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Убираем оранжевую обводку при фокусе на всех кнопках */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Для accessibility - добавляем альтернативную индикацию фокуса */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid #454545 !important;
  outline-offset: 2px !important;
}

body {
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  overflow-x: hidden;
  padding-top: 0; /* Убираем отступ для правильной работы sticky навигации */
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
    display: grid;
  grid-template-columns: auto 1fr auto;
    align-items: center;
  min-height: 80px;
  gap: 20px;
}
.header-logo {
  justify-self: center;
}
.header-logo img {
  height: 50px;
  width: auto;
}
.header-menu ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-menu a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
    position: relative;
}
.header-menu a:hover {
  color: #b48a4a;
}
.header-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #b48a4a;
  transition: width 0.3s ease;
}
.header-menu a:hover::after {
  width: 100%;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-phone a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.header-social {
  display: flex;
  gap: 10px;
}
.header-social a {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f5f5f5;
  transition: background 0.2s;
}
.header-social a:hover {
  background: #e0d6c8;
}
@media (max-width: 900px) {
  .header-grid { padding: 0 8px; min-height: 70px; }
  .header-logo img { height: 44px; }
  .header-menu a, .header-phone a { font-size: 14px; }
}
@media (max-width: 600px) {
  .header-grid { grid-template-columns: 1fr auto 1fr; min-height: 60px; gap: 8px; padding: 0 4px; }
  .header-logo img { height: 36px; }
  .header-menu ul { gap: 12px; }
  .header-right { gap: 8px; }
}

/* ===== ГЛАВНЫЙ СЛАЙДЕР С ПРОМО-КАРТОЧКАМИ ===== */
.slider-wrap {
  margin-top: 80px;
  position: relative;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.slider-main {
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.slider-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.promo-card {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.promo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 30px 20px 20px;
  text-align: center;
}

.promo-overlay h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.promo-overlay p {
  font-size: 16px;
  opacity: 0.9;
}

.promo-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #e74c3c;
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #333;
  transition: all 0.3s ease;
  z-index: 10;
}

.slider-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.left {
  left: 20px;
}

.slider-arrow.right {
  right: 20px;
}

/* ===== ОСНОВНОЕ МЕНЮ ===== */
.main-menu-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.main-menu-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.main-menu-content {
  padding-right: 40px;
}

.main-menu-title {
  font-size: 48px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.2;
  text-decoration: none !important;
  border-bottom: none !important;
}

/* Убираем подчеркивание у всех заголовков секций */
.bar-menu-title,
.banquet-title {
  text-decoration: none !important;
  border-bottom: none !important;
}

/* Убираем псевдоэлементы подчеркивания */
.main-menu-title::after,
.bar-menu-title::after,
.banquet-title::after {
  display: none !important;
  content: none !important;
}

/* Принудительно убираем подчеркивание у заголовков даже в медиа-запросах */
@media (prefers-contrast: more) {
  .main-menu-title,
  .bar-menu-title,
  .banquet-title {
    text-decoration: none !important;
    border-bottom: none !important;
  }
}

@media (prefers-contrast: high) {
  .main-menu-title,
  .bar-menu-title,
  .banquet-title {
    text-decoration: none !important;
    border-bottom: none !important;
  }
}

/* Дополнительно убираем любые подчеркивания у заголовков */
.main-menu-title *,
.bar-menu-title *,
.banquet-title * {
  text-decoration: none !important;
  border-bottom: none !important;
}

/* Убираем подчеркивание у заголовков в любых контекстах */
h2.main-menu-title,
h2.bar-menu-title,
h2.banquet-title {
  text-decoration: none !important;
  border-bottom: none !important;
  background-image: none !important;
  background: none !important;
}

/* Принудительно убираем любые псевдоэлементы у заголовков */
h2.main-menu-title::after,
h2.main-menu-title::before,
h2.bar-menu-title::after,
h2.bar-menu-title::before,
h2.banquet-title::after,
h2.banquet-title::before {
  display: none !important;
  content: none !important;
  background: none !important;
  border: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Убираем подчеркивание у заголовков даже если они наследуют стили от навигации */
.main-menu-container h2,
.bar-menu-container h2,
.banquet-container h2 {
  text-decoration: none !important;
  border-bottom: none !important;
  background-image: none !important;
  background: none !important;
}

.main-menu-container h2::after,
.main-menu-container h2::before,
.bar-menu-container h2::after,
.bar-menu-container h2::before,
.banquet-container h2::after,
.banquet-container h2::before {
  display: none !important;
  content: none !important;
  background: none !important;
  border: none !important;
  width: 0 !important;
  height: 0 !important;
}

.main-menu-desc {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 30px;
}

.main-menu-image {
  position: relative;
}

.menu-food-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== БАРНАЯ КАРТА ===== */
.bar-menu-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.bar-menu-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.bar-menu-image {
  order: 1;
}

.bar-wine-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bar-menu-content {
  order: 2;
  padding-left: 40px;
}

.bar-menu-title {
  font-size: 48px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.2;
}

.bar-menu-desc {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* ===== О НАС ===== */
.about-section-era {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-era-content {
  text-align: center;
  margin-bottom: 60px;
}

.about-era-title {
  font-size: 48px;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
}

.about-era-desc {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.about-carousel-era {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.about-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  border-radius: 20px;
  overflow: hidden;
}

.about-carousel-item {
  min-width: 100%;
}

.about-carousel-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.about-carousel-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.about-carousel-btn svg {
  width: 20px;
  height: 20px;
  fill: #333;
}

.about-carousel-btn.left {
  left: 20px;
}

.about-carousel-btn.right {
  right: 20px;
}

/* ===== БАНКЕТНОЕ ОБСЛУЖИВАНИЕ ===== */
.banquet-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.banquet-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.banquet-image {
  order: 1;
}

.banquet-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.banquet-content {
  order: 2;
  padding-left: 40px;
}

.banquet-title {
  font-size: 48px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.2;
}

.banquet-desc {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* ===== КОНТАКТЫ ===== */
.contacts-block-era {
  background: #f8f8f8;
  padding: 80px 20px;
}

.contacts-era-row {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.contacts-era-title {
  font-size: 48px;
  font-weight: 700;
  color: #333;
  margin-bottom: 40px;
}

.contacts-era-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.contacts-era-details {
  text-align: left;
}

.contacts-era-address {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
  font-weight: 500;
}

.contacts-era-time {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.contacts-era-phone {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.contacts-era-phone a {
  color: inherit;
  text-decoration: none;
}

.contacts-era-social {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.contacts-era-social a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.contacts-era-social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contacts-era-social img {
  width: 25px;
  height: 25px;
}

/* ===== КАРТА ===== */
.map-section {
  padding: 0 20px 80px;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 90px;
}

.contacts-era-map {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contacts-era-map iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* ===== КНОПКА "ПОДРОБНЕЕ" ===== */
.era-more-btn {
  display: inline-block;
  padding: 15px 30px;
  background: #b48a4a;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px solid #b48a4a;
}

.era-more-btn:hover {
  background: transparent;
  color: #b48a4a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(180, 138, 74, 0.3);
}

/* ===== КОРЗИНА ЗАКАЗА ===== */
#era-order-basket {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 1002;
}

.era-basket-btn_outline {
  width: 70px;
  height: 70px;
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.era-basket-btn_outline:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.era-basket__icon {
  width: 30px;
  height: 30px;
  background: url('../images/era_basket.svg') no-repeat center/contain;
}

.era-basket__amount {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #b48a4a;
  color: #fff;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

/* ===== STORIES (era64.ru style) ===== */
.stories-section {
  width: 100%;
  background: #faf8f6;
  padding: 16px 0 40px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: center;
}
.stories-carousel-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.stories-carousel {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0 64px;
  scrollbar-width: none;
  align-items: flex-end;
}
.stories-carousel::-webkit-scrollbar { display: none; }
.story-card {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 32px 0 rgba(0,0,0,0.13);
  background: #fff;
  flex: 0 0 132px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: box-shadow 0.25s, transform 0.18s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.story-card:hover {
  box-shadow: 0 12px 36px 0 rgba(0,0,0,0.18);
  transform: translateY(-4px) scale(1.03);
  z-index: 2;
}
.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story-card-desc {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.68) 80%, rgba(0,0,0,0.0) 100%);
  color: #fff;
  font-size: 16px;
  text-align: left;
  padding: 16px 12px 10px 12px;
  border-radius: 0 0 18px 18px;
  width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  pointer-events: none;
  font-weight: 500;
  font-family: 'Jost', Arial, sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.stories-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  border: 1.5px solid #e0d6c8;
  box-shadow: 0 2px 8px #0001;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, border 0.2s;
  outline: none;
}
.stories-arrow.left { left: 8px; }
.stories-arrow.right { right: 8px; }
.stories-arrow svg { width: 26px; height: 26px; }
.stories-arrow:active, .stories-arrow:focus { background: #f3ede7; border-color: #b48a4a; }
.stories-arrow[disabled] { opacity: 0.3; pointer-events: none; }
@media (max-width: 1100px) {
  .stories-carousel-wrap { max-width: 98vw; }
  .stories-carousel { gap: 18px; padding: 0 32px; }
  .story-card { width: 90px; height: 90px; border-radius: 10px; flex-basis: 90px; }
  .story-card-desc { font-size: 12px; min-height: 18px; border-radius: 0 0 10px 10px; padding: 8px 6px 4px 6px; }
  .stories-arrow { width: 32px; height: 32px; }
  .stories-arrow svg { width: 16px; height: 16px; }
}
@media (max-width: 600px) {
  .stories-section { padding: 40px 0 18px 0; }
  .stories-carousel { gap: 8px; padding: 0 8px; }
  .story-card { width: 68px; height: 68px; border-radius: 7px; flex-basis: 68px; }
  .story-card-desc { font-size: 10px; min-height: 10px; border-radius: 0 0 7px 7px; padding: 4px 3px 2px 3px; }
  .stories-arrow { width: 22px; height: 22px; }
  .stories-arrow svg { width: 10px; height: 10px; }
}

/* ===== МОДАЛЬНОЕ ОКНО STORIES ===== */
.story-modal-bg {
  display: none !important;
  position: fixed;
  z-index: 999999 !important;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.story-modal-bg.active {
  display: flex !important;
  visibility: visible;
  opacity: 1;
}

.story-modal {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: #000;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.story-modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 28px;
  color: #333;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  line-height: 1;
  padding: 0;
}

.story-modal-close:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.story-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.story-modal-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  overflow: hidden;
}

.story-modal-slide {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  min-height: 100vh;
}

.story-modal-slide.active {
  display: block;
}

.story-modal-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-modal-desc {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
  padding: 20px 16px;
  padding-bottom: max(40px, calc(20px + env(safe-area-inset-bottom, 0px)));
  color: #fff;
  text-align: center;
  z-index: 10;
}

.story-modal-text {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: 'Jost', Arial, sans-serif;
  line-height: 1.3;
}

.story-modal-link {
  display: inline-block;
  background: #b48a4a;
  color: #fff;
  padding: 8px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.2s, transform 0.2s;
  font-family: 'Jost', Arial, sans-serif;
}

.story-modal-link:hover {
  background: #9a7540;
  transform: translateY(-2px);
}

/* Кнопки навигации в модальном окне */
.story-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.story-modal-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.story-modal-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.story-modal-nav-prev {
  left: 20px;
}

.story-modal-nav-next {
  right: 20px;
}

.story-modal-dots {
  display: none;
}

.story-modal-dot {
  display: none;
}

@media (max-width: 768px) {
  .story-modal {
    width: 100vw;
    height: 100dvh; /* Динамическая высота viewport для мобильных */
    max-width: 100vw;
    max-height: 100dvh;
    border-radius: 0;
  }
  
  .story-modal-close {
    width: 36px;
    height: 36px;
    font-size: 24px;
    right: 12px;
    top: max(12px, env(safe-area-inset-top, 12px));
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
  }
  
  .story-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
  }
  
  .story-modal-nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .story-modal-nav-prev {
    left: 10px;
  }
  
  .story-modal-nav-next {
    right: 10px;
  }
  
  .story-modal-desc {
    padding: 14px 12px;
    padding-bottom: max(100px, calc(80px + env(safe-area-inset-bottom, 0px))) !important;
    min-height: auto;
  }
  
  .story-modal-text {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.2;
  }
  
  .story-modal-link {
    padding: 8px 18px;
    font-size: 13px;
    margin-top: 4px;
  }
  
}

/* iOS специфичные исправления для модального окна stories */
@supports (-webkit-touch-callout: none) {
  .story-modal-bg {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  .story-modal-bg.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .story-modal {
    position: relative !important;
    width: 100vw !important;
    height: 100dvh !important; /* Используем динамическую высоту для iOS */
    max-width: 100vw !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }
  
  .story-modal-slide {
    min-height: 100dvh !important; /* Динамическая высота для iOS */
  }
  
  .story-modal-desc {
    padding-bottom: max(100px, calc(80px + env(safe-area-inset-bottom, 0px))) !important;
  }
  
  .story-modal-close {
    top: max(12px, env(safe-area-inset-top, 12px)) !important;
  }
  
  /* Предотвращаем открытие модального окна при загрузке на iOS */
  body:not(.story-modal-open) .story-modal-bg {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  /* Исправление для адресной строки iOS Safari */
  @supports (height: 100dvh) {
    .story-modal {
      height: 100dvh !important;
    }
    
    .story-modal-slide {
      min-height: 100dvh !important;
    }
  }
}

/* ===== ПЛАНШЕТНАЯ ВЕРСИЯ (768px - 1024px) ===== */
@media (max-width: 1024px) {
  .header-grid {
    padding: 0 15px;
    min-height: 70px;
  }
  
  .header-logo img {
    height: 40px;
  }
  
  .header-menu ul {
    gap: 20px;
  }
  
  .header-menu a {
    font-size: 14px;
  }
  
  .slider-wrap {
    margin-top: 70px;
    padding: 0 15px;
  }
  
  .slider-main {
    height: 350px;
  }
  
  .main-menu-section,
  .bar-menu-section,
  .about-section-era,
  .banquet-section {
    padding: 60px 15px;
  }
  
  .main-menu-container,
  .bar-menu-container,
  .banquet-container {
    gap: 40px;
  }
  
  .main-menu-title,
  .bar-menu-title,
  .banquet-title,
  .contacts-era-title,
  .about-era-title {
    font-size: 36px;
  }
  
  .main-menu-desc,
  .bar-menu-desc,
  .banquet-desc,
  .about-era-desc {
    font-size: 16px;
  }
  
  .menu-food-img,
  .bar-wine-img,
  .banquet-img {
    height: 300px;
  }
  
  .about-carousel-img {
    height: 300px;
  }
  
  .contacts-era-map iframe {
    height: 350px;
  }
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ (до 768px) ===== */
@media (max-width: 768px) {
  body {
    padding-top: 0; /* Убираем отступ на мобильных, так как header не фиксированный */
  }
  
  .header {
    position: relative;
  }
  
  .header-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
    min-height: auto;
  }
  
  .header-menu {
    order: 2;
    justify-self: center;
  }
  
  .header-logo {
    order: 1;
    justify-self: center;
  }
  
  .header-right {
    order: 3;
    justify-self: center;
  }
  
  .header-menu ul {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }
  
  .header-menu a {
    font-size: 14px;
  }
  
  .slider-wrap {
    margin-top: 0;
    padding: 0 15px;
  }
  
  .slider-main {
    height: 250px;
    border-radius: 15px;
  }
  
  .promo-overlay {
    padding: 20px 15px 15px;
  }
  
  .promo-overlay h3 {
    font-size: 20px;
  }
  
  .promo-overlay p {
    font-size: 14px;
  }
  
  .promo-badge {
    top: 15px;
    left: 15px;
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .slider-arrow {
    width: 40px;
    height: 40px;
  font-size: 16px;
  }
  
  .slider-arrow.left {
    left: 10px;
  }
  
  .slider-arrow.right {
    right: 10px;
  }
  
  .main-menu-section,
  .bar-menu-section,
  .about-section-era,
  .banquet-section,
  .contacts-block-era {
    padding: 40px 15px;
  }
  
  .main-menu-container,
  .bar-menu-container,
  .banquet-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .main-menu-content {
    padding-right: 0;
    order: 2;
  }
  
  .main-menu-image {
    order: 1;
  }
  
  .bar-menu-image {
    order: 1;
  }
  
  .bar-menu-content {
    order: 2;
    padding-left: 0;
  }
  
  .banquet-image {
    order: 1;
  }
  
  .banquet-content {
    order: 2;
    padding-left: 0;
  }
  
  .main-menu-title,
  .bar-menu-title,
  .banquet-title,
  .contacts-era-title,
  .about-era-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  
  .main-menu-desc,
  .bar-menu-desc,
  .banquet-desc,
  .about-era-desc {
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  .menu-food-img,
  .bar-wine-img,
  .banquet-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .about-carousel-img {
    height: 200px;
    border-radius: 15px;
  }
  
  .about-carousel-btn {
    width: 40px;
    height: 40px;
  }
  
  .about-carousel-btn svg {
    width: 16px;
    height: 16px;
  }
  
  .about-carousel-btn.left {
    left: 10px;
  }
  
  .about-carousel-btn.right {
    right: 10px;
  }
  
.contacts-era-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
.contacts-era-details {
    text-align: center;
}
  
.contacts-era-address {
  font-size: 18px;
}
  
.contacts-era-phone {
  font-size: 20px;
  }
  
.contacts-era-social a {
    width: 45px;
    height: 45px;
  }
  
  .contacts-era-social img {
    width: 22px;
    height: 22px;
  }
  
  .contacts-era-map iframe {
    height: 250px;
  }
  
  .era-more-btn {
    padding: 12px 25px;
    font-size: 14px;
  }
  
  #era-order-basket {
    right: 20px;
    bottom: 20px;
  }
  
  .era-basket-btn_outline {
    width: 60px;
    height: 60px;
  }
  
  .era-basket__icon {
    width: 25px;
    height: 25px;
  }
}

/* ===== МАЛЕНЬКИЕ МОБИЛЬНЫЕ (до 480px) ===== */
@media (max-width: 480px) {
  .header-menu ul {
    gap: 10px;
  }
  
  .header-menu a {
    font-size: 13px;
  }
  
  .header-right {
    gap: 15px;
  }
  
  .slider-main {
    height: 200px;
  }
  
  .promo-overlay h3 {
    font-size: 18px;
  }
  
  .promo-overlay p {
    font-size: 13px;
  }
  
  .main-menu-title,
  .bar-menu-title,
  .banquet-title,
  .contacts-era-title,
  .about-era-title {
    font-size: 24px;
  }
  
  .main-menu-desc,
  .bar-menu-desc,
  .banquet-desc,
  .about-era-desc {
    font-size: 14px;
  }
  
  .menu-food-img,
  .bar-wine-img,
  .banquet-img {
    height: 180px;
  }
  
  .about-carousel-img {
    height: 180px;
  }
  
  .contacts-era-address {
    font-size: 16px;
  }
  
  .contacts-era-phone {
    font-size: 18px;
  }
  
  .contacts-era-social a {
    width: 40px;
    height: 40px;
  }
  
  .contacts-era-social img {
    width: 20px;
    height: 20px;
  }
  
  .contacts-era-map iframe {
    height: 200px;
  }
  
  .era-more-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 360px) ===== */
@media (max-width: 360px) {
  .header-menu ul {
    gap: 8px;
  }
  
  .header-menu a {
    font-size: 12px;
  }
  
  .slider-main {
    height: 180px;
  }
  
  .main-menu-title,
  .bar-menu-title,
  .banquet-title,
  .contacts-era-title,
  .about-era-title {
    font-size: 22px;
  }
  
  .main-menu-desc,
  .bar-menu-desc,
  .banquet-desc,
  .about-era-desc {
    font-size: 13px;
  }
  
  .menu-food-img,
  .bar-wine-img,
  .banquet-img {
    height: 160px;
  }
  
  .about-carousel-img {
    height: 160px;
  }
  
  .contacts-era-address {
    font-size: 15px;
  }
  
  .contacts-era-phone {
    font-size: 16px;
  }
  
  .contacts-era-social a {
    width: 35px;
    height: 35px;
  }
  
  .contacts-era-social img {
    width: 18px;
    height: 18px;
  }
  
  .contacts-era-map iframe {
    height: 180px;
  }
  
  .era-more-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
}

/* ===== ЛАНДШАФТНАЯ ОРИЕНТАЦИЯ НА МОБИЛЬНЫХ ===== */
@media (max-width: 768px) and (orientation: landscape) {
  .header-grid {
    grid-template-columns: auto 1fr auto;
    min-height: 60px;
  }
  
  .header-menu {
    order: unset;
    justify-self: center;
  }
  
  .header-logo {
    order: unset;
    justify-self: start;
  }
  
  .header-right {
    order: unset;
    justify-self: end;
  }
  
  .slider-main {
    height: 200px;
  }
  
  .main-menu-container,
  .bar-menu-container,
  .banquet-container {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  .main-menu-content {
    padding-right: 20px;
  }
  
  .bar-menu-content,
  .banquet-content {
    padding-left: 20px;
  }
  
  .menu-food-img,
  .bar-wine-img,
  .banquet-img {
    height: 150px;
  }
  
  .about-carousel-img {
    height: 150px;
  }
}

/* ===== АНИМАЦИИ И ЭФФЕКТЫ ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-menu-section,
.bar-menu-section,
.about-section-era,
.banquet-section,
.contacts-block-era {
  animation: fadeInUp 0.8s ease-out;
}

/* ===== ДОСТУПНОСТЬ ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== ТЕМНАЯ ТЕМА (если поддерживается) ===== */
@media (prefers-color-scheme: dark) {
  body {
    background: #1a1a1a;
    color: #fff;
  }
  
  .header {
    background: rgba(26, 26, 26, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
  
  .header-menu a,
  .header-phone a {
    color: #fff;
  }
  
  .main-menu-title,
  .bar-menu-title,
  .banquet-title,
  .contacts-era-title,
  .about-era-title {
    color: #fff;
  }
  
  .main-menu-desc,
  .bar-menu-desc,
  .banquet-desc,
  .about-era-desc {
    color: #ccc;
  }
  
  .contacts-block-era {
    background: #2a2a2a;
  }
  
  .contacts-era-address,
  .contacts-era-phone {
    color: #fff;
  }
  
  .contacts-era-time {
    color: #ccc;
  }
  
  .contacts-era-social a {
    background: #333;
  }
} 

#delivery-type-form button[type="submit"] {
  width: 100%;
  background: #fff;
  color: #454545;
  border: 1.5px solid #454545;
  border-radius: 0;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 0;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  box-shadow: none;
}
#delivery-type-form button[type="submit"]:hover,
#delivery-type-form button[type="submit"]:focus {
  background: #454545;
  color: #fff;
  border-color: #454545;
}
@media (max-width: 600px) {
  #delivery-type-form button[type="submit"] {
    font-size: 15px;
    padding: 10px 0;
  }
} 

@media (max-width: 600px) {
  .era-basket__modal-content {
    padding: 0.6em 0.3em !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: #bbb #f7f7f7;
    width: 95vw !important;
    max-width: 95vw !important;
  }
  #cart-order-form input,
  #cart-order-form select {
    font-size: 13px;
    padding: 6px 7px;
    margin-bottom: 6px;
    min-height: 32px;
    height: 32px;
  }
  #cart-order-form label {
    font-size: 13px;
    margin-bottom: 2px;
  }
  #cart-order-form button {
    font-size: 14px;
    padding: 8px 0;
    min-height: 32px;
    height: 32px;
  }
  #cart-order-form .era-more-btn {
    font-size: 15px;
    padding: 10px 0;
    min-height: 36px;
    height: 36px;
  }
  #cart-order-form .order-time-btn {
    font-size: 14px;
    padding: 10px 0;
    min-height: 36px;
    height: 36px;
  }
  #cart-order-form .order-time-toggle {
    margin-bottom: 8px;
  }
  #cart-order-form .era-basket__close {
    width: 32px;
    height: 32px;
    font-size: 1.2em;
  }
  #cart-order-form .era-basket__amount {
    min-width: 18px;
    height: 18px;
    font-size: 11px;
  }
  #cart-order-form .era-basket__mini {
    min-width: 95vw;
    padding: 0.8em 0.4em;
    bottom: 70px;
  }
  #cart-order-form .era-basket__modal-content {
    padding: 1em 0.4em;
    max-height: 98vh;
  }
  #cart-order-form .era-basket-btn_outline {
    min-width: 52px;
    min-height: 52px;
    padding: 10px;
  }
  #cart-order-form .era-basket__icon {
    width: 24px;
    height: 24px;
  }
  #cart-order-form .era-basket__amount {
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    top: 0px;
    right: 0px;
  }
  #cart-order-form .era-basket__mini {
    min-width: 98vw;
    padding: 0.6em 0.3em;
    bottom: 60px;
  }
  #cart-order-form .era-basket__modal-content {
    padding: 0.5em 0.2em;
    max-height: 80vh;
    width: 99vw !important;
    max-width: 99vw !important;
  }
  #cart-order-form .era-basket-btn_outline {
    min-width: 48px;
    min-height: 48px;
    padding: 8px;
  }
  #cart-order-form .era-basket__icon {
    width: 22px;
    height: 22px;
  }
  #cart-order-form .era-basket__amount {
    min-width: 14px;
    height: 14px;
    font-size: 9px;
    top: 0px;
    right: 0px;
  }
  #cart-order-form .era-toast {
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, calc(-50% + 30px)) !important;
    min-width: 100px;
    padding: 0.6em 0.8em;
    font-size: 14px;
    text-align: center !important;
  }
  #cart-order-form .era-toast.show {
    transform: translate(-50%, -50%) !important;
  }
  #cart-order-form .modal {
    width: 98vw;
    margin: 5px;
    padding: 0.8rem;
  }
  #cart-order-form .modal h2 {
    font-size: 1.2em;
  }
  #cart-order-form .modal-row {
    font-size: 0.8em;
  }
}

.era-basket__modal-content {
  overflow-y: auto !important;
  scrollbar-width: thin;
  scrollbar-color: #bbb #f7f7f7;
}
.era-basket__modal-content::-webkit-scrollbar {
  width: 5px;
  background: #f7f7f7;
}
.era-basket__modal-content::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 4px;
} 

.cart-item img {
  max-width: none !important;
  max-height: none !important;
}

/* Иконка удаления должна быть меньше */
.cart-item button img[src*="iconsremove"] {
  width: 16px !important;
  height: 16px !important;
  object-fit: contain !important;
  max-width: 16px !important;
  max-height: 16px !important;
} 

/* Принудительные стили для мобильной версии header */
@media (max-width: 768px) {
    .header {
        position: relative !important;
        background: #fff !important;
        backdrop-filter: none !important;
        border-bottom: none !important;
    }
    
    .header-grid {
        display: flex !important;
        grid-template-columns: none !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 1rem !important;
        min-height: auto !important;
        gap: 0 !important;
        max-width: none !important;
        margin: 0 !important;
    }
    
    .header-mobile {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 0 !important;
    }
    
    .header-logo-mobile {
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .header-logo-mobile img {
        height: 40px !important;
        width: auto !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 16px !important;
        height: 12px !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
        padding: 0 !important;
        z-index: 1001 !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
    }
    
    .mobile-menu-toggle span {
        display: block !important;
        width: 100% !important;
        height: 2px !important;
        background: #454545 !important;
        border-radius: 1px !important;
        transition: all 0.3s ease !important;
    }
    
    /* Скрываем десктопные элементы */
    .desktop-menu,
    .desktop-logo,
    .desktop-right {
        display: none !important;
    }
    
    /* Специфичные стили для кнопки "Изменить" в блоке доставки */
    #delivery-type-info .era-more-btn,
    #delivery-type-info button.era-more-btn {
        min-width: 80px !important;
        max-width: 80px !important;
        width: 80px !important;
        padding: 2px 4px !important;
        font-size: 12px !important;
        border-radius: 6px !important;
        margin: 0 !important;
        display: inline-block !important;
        background: #fff !important;
        color: #454545 !important;
        border: 1px solid #454545 !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        transition: all 0.3s ease !important;
        line-height: 1.2 !important;
        height: auto !important;
    }
    
    #delivery-type-info .era-more-btn:hover,
    #delivery-type-info button.era-more-btn:hover {
        background: #454545 !important;
        color: #fff !important;
        transform: none !important;
        box-shadow: none !important;
    }
} 

/* МАКСИМАЛЬНО СПЕЦИФИЧНЫЕ СТИЛИ ДЛЯ КНОПКИ "ИЗМЕНИТЬ" НА МОБИЛЬНЫХ */
@media (max-width: 768px) {
    #delivery-type-info .era-more-btn,
    #delivery-type-info button.era-more-btn,
    #delivery-type-info .era-more-btn[onclick*="showDeliveryTypeInlineForm"] {
        min-width: 80px !important;
        max-width: 80px !important;
        width: 80px !important;
        padding: 2px 4px !important;
        font-size: 12px !important;
        border-radius: 6px !important;
        margin: 0 !important;
        display: inline-block !important;
        background: #fff !important;
        color: #454545 !important;
        border: 1px solid #454545 !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        transition: all 0.3s ease !important;
        line-height: 1.2 !important;
        height: auto !important;
        box-sizing: border-box !important;
        transform: none !important;
        box-shadow: none !important;
    }
    
    #delivery-type-info .era-more-btn:hover,
    #delivery-type-info button.era-more-btn:hover,
    #delivery-type-info .era-more-btn[onclick*="showDeliveryTypeInlineForm"]:hover {
        background: #454545 !important;
        color: #fff !important;
        transform: none !important;
        box-shadow: none !important;
    }
} 