/* Мобильная версия - до 768px */

@media (max-width: 768px) {
  /* Сбрасываем min-width для мобильных устройств */
  html, body {
    min-width: 0;
  }
  
  /* Обрезаем контент который уходит выше меню */
  html {
    overflow-x: hidden;
  }
  
  body {
    overflow-x: hidden;
    position: relative;
  }
  

  /* Скрываем десктопное меню на мобильных */
  .desktop-menu {
    display: none;
  }

  /* Скрываем кнопки языков в десктопном меню на мобильных */
  .desktop-lang-buttons {
    display: none;
  }

  /* Показываем кнопки языков под логотипом на мобильных */
  .actions {
    display: flex;
    position: absolute;
    top: 3px;
    right: 5%;
    left: auto;
    bottom: auto;
    transform: none;
    width: auto;
    max-width: none;
    flex-wrap: nowrap;
  }

  /* Полоса мобильного меню */
  .mobile-menu-bar {
    display: flex;
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    width: 100%;
    height: 56px;
    background: linear-gradient(-21deg, #000 0%, #e0cc59 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 30;
    align-items: center;
    padding: 0 8px;
    gap: 8px;
  }

  /* Кнопка гамбургера в полосе меню */
  .mobile-menu-toggle {
    display: flex;
    position: relative;
    top: auto;
    left: auto;
    z-index: 31;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Пункты меню в полосе */
  .mobile-menu-bar-items {
    display: flex;
    align-items: center;
    gap: 1px;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .mobile-menu-bar-items::-webkit-scrollbar {
    display: none;
  }

  .mobile-menu-bar-item {
    display: flex;
    align-items: center;
    padding: 8px 8px;
    color: #ffffff;
    text-decoration: none;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-menu-bar-item-ru {
    white-space: normal;
    line-height: 1.2;
    text-align: center;
    align-items: flex-start;
    padding: 8px 6px 4px 6px;
  }
  
  /* Все пункты меню на русском языке выравниваем по первой строке */
  html[lang="ru"] .mobile-menu-bar-items {
    align-items: flex-start;
  }
  
  html[lang="ru"] .mobile-menu-bar-item {
    align-items: flex-start;
    padding-top: 8px;
  }

  .mobile-menu-bar-item:hover,
  .mobile-menu-bar-item:active {
    background: rgba(255, 255, 255, 0.1);
    color: #6b9f7a;
  }


  /* Кнопки социальных сетей */
  .mobile-social-buttons {
    display: flex;
    position: absolute;
    top: 100px;
    left: 2%;
    transform: none;
    z-index: 30;
    width: auto;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    gap: 0;
  }

  /* Скрываем социальные кнопки на страницах-вкладках (история, вино, контакты) */
  body:has(.page-content) .mobile-social-buttons {
    display: none;
  }

  .mobile-social-text {
    display: none;
  }

  .mobile-social-buttons-wrapper {
    position: relative;
    top: 1px;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
  }

  /* На главной странице (где есть аккордеон) иконки выше */
  body:has(.mobile-accordion-container) .mobile-social-buttons {
    top: 3px;
  }

  .mobile-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(32px, 8vw, 40px);
    height: clamp(32px, 8vw, 40px);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.06s ease, border-color 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-social-btn:hover,
  .mobile-social-btn:active {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(1px);
  }

  .mobile-social-btn svg {
    width: clamp(16px, 4vw, 20px);
    height: clamp(16px, 4vw, 20px);
  }

  .mobile-menu {
    position: fixed;
    top: 85px;
    left: -100%;
    width: 70vw;
    max-width: 280px;
    height: calc(100vh - 56px);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    z-index: 25;
    padding: 0;
    transition: left 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
  }

  .mobile-menu.active {
    left: 0;
  }

  /* Кнопки языков в меню - справа наверху */
  .mobile-menu-lang-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-menu-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-family: Inter, system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-menu-lang-btn:hover,
  .mobile-menu-lang-btn:active {
    background: rgba(107, 159, 122, 0.3);
    color: #6b9f7a;
    border-color: rgba(107, 159, 122, 0.5);
  }

  .mobile-menu-item {
    display: block;
    padding: 18px 24px;
    color: #ffffff;
    text-decoration: none;
    font-family: Inter, system-ui, sans-serif;
    font-size: 18px;
    font-weight: 400;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, color 0.2s ease;
    flex: 0 0 auto;
  }

  .mobile-menu-item:hover,
  .mobile-menu-item:active {
    background: rgba(255, 255, 255, 0.1);
    color: #6b9f7a;
  }

  /* Кнопки соцсетей в меню - внизу */
  .mobile-menu-social-buttons {
    margin-top: auto;
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-menu-social-buttons-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
  }

  .mobile-menu-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-menu-social-btn:hover,
  .mobile-menu-social-btn:active {
    background: rgba(107, 159, 122, 0.3);
    border-color: rgba(107, 159, 122, 0.5);
    transform: translateY(-2px);
  }

  .mobile-menu-social-btn svg {
    width: 20px;
    height: 20px;
  }

  .mobile-menu-overlay {
    display: block;
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    height: calc(100vh - 56px);
    background: rgba(0, 0, 0, 0.5);
    z-index: 24;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Скрываем социальные кнопки когда меню открыто */
  body:has(.mobile-menu-overlay.active) .mobile-social-buttons {
    display: none;
  }

  .mobile-menu {
    display: block;
  }
  /* Логотип под картинкой сверху справа */
  .logo-container {
    position: relative;
    margin-top: 25vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0;
  }

  .logo-wrapper {
    position: relative;
  }

  /* Скрываем фотографии вокруг логотипа на мобильной версии */
  .photo-pin {
    display: none;
  }

  .logo {
    width: 91vw;
    height: auto;
    object-fit: contain;
    position: relative;
  }

  /* Скрываем картинку сверху слева на мобильных */
  .top-left-container {
    display: none;
  }

  /* Картинка сверху справа на мобильных (была внизу справа) */
  .mobile-bottom-right {
    display: block;
    position: fixed;
    top: calc((56px - 105px) / 2);
    right: 15px;
    bottom: auto;
    z-index: 31;
    width: 80px;
  }

  .mobile-bottom-wrapper {
    position: relative;
    width: 100%;
  }

  .mobile-bottom-wrapper a {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
  }

  .mobile-bottom-wrapper a:hover {
    opacity: 0.8;
  }

  .mobile-bottom-image {
    width: 100%;
    height: auto;
    aspect-ratio: 82 / 123;
    display: block;
    position: relative;
  }

  .mobile-santa-hat {
    display: none;
    position: absolute;
    top: -12px;
    right: -8px;
    width: 32px;
    height: auto;
    z-index: 11;
    transform: rotate(15deg);
  }

  .mobile-bottom-text {
    display: none;
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 7px;
    line-height: 1.2;
    text-align: center;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-weight: 400;
    width: calc(100% - 4px);
    padding: 3px 4px 6px 4px;
    background: black;
    backdrop-filter: blur(4px);
    border-radius: 4px;
    margin: 0;
    white-space: normal;
  }
  .logo-text-banner {
    position: absolute;
    bottom: 20px;
    max-width: 100%;
  }

  .logo-banner-text {
    color: #ffffff;
    font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    font-size: clamp(18px, 2.4vw, 22px);
    max-width: 90%;
  }
  
  .logo-banner-title {
    font-size: 1.8em;
    text-transform: uppercase;
    font-weight: 800;
    display: block;
    margin-bottom: 15px;
  }

  .logo-banner-text.m-zh {
    max-width: 100%;
}

  /* Кнопки языков на картинке логотипа */
  .actions {
    position: absolute;
    top: 4px;
    right: 2%;
    transform: none;
    margin-top: 0;
    width: auto;
    max-width: none;
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
  }

  /* Уменьшаем размер кнопок на мобильных */
  button {
    font-size: clamp(10px, 2.5vw, 12px);
    padding: clamp(4px, 1vh, 6px) clamp(6px, 2vw, 10px);
    white-space: nowrap;
  }

  /* Уменьшаем количество брызг на мобильных или скрываем их */
  .sparkle {
    display: none;
  }

  /* Контент занимает всю высоту */
  .content {
    min-height: 70vh;
    padding: 0;
    align-items: flex-start;
    padding-top: 0px;
  }

  /* Логотип на странице вина - адаптация для мобильных */
  .wine-logo {
    max-width: 90%;
  }
  
  /* Для страниц контента - ограничиваем прокрутку текста */
  body:has(.content.page-content) {
    overflow: hidden;
    height: 100vh;
  }
  
  .content.page-content {
    position: fixed;
    top: 30px;
    left: 0;
    right: 0;
    height: calc(100vh - 70px);
    overflow-y: auto;
    padding-top: 0;
    padding-bottom: 60px;
    -webkit-overflow-scrolling: touch;
  }
  
  .content.page-content .card {
    padding-bottom: 60px;
    margin-top: 15px;
  }

  .background::before {
    content: "";
    position: absolute;
    inset: -6%;
    background-image: url(images/image1.png);
    background-size: cover;
    background-position: left;
    background-repeat: no-repeat;
    filter: blur(4px);
    opacity: 0.9;
    z-index: -2;
  }

  /* Стили для карточек контента на мобильной версии */
  .card p {
    color: rgba(220, 220, 220, 0.95);
  }

  .history-content {
    color: rgba(250, 250, 250, 0.95);
    background: rgba(0, 0, 0, 0.2);
    padding-left: 15px;
    backdrop-filter: blur(6px);
    border-radius: 20px;
  }

  .history-content p {
    color: rgba(250, 250, 250, 0.95);
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 0px;
    margin-bottom: 10px;
    margin-top: 0;
    text-align: left;
  }

  .history-content p::first-letter {
    font-weight: 700;
    color: #ffffff;
  }

  .card {
    max-width: 900px;
    padding: 25px 20px;
    padding-bottom: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
  }

  .history-content p.highlight {
    font-weight: 600;
    font-style: italic;
    text-align: center;
    margin: 0;
    font-size: clamp(22px, 2vw, 38px);
    color: #dce349e8;
    padding-top: 0;
  }

  .history-content p.highlight::first-letter {
    font-weight: 600;
    color: #dce349e8;
  }

  .contacts-content {
    color: rgba(250, 250, 250, 0.95);
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    backdrop-filter: blur(6px);
    border-radius: 20px;
    text-align: left;
    overflow: auto;
  }

  .contacts-content p {
    color: rgba(250, 250, 250, 0.95);
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 0px;
    margin-bottom: 10px;
    margin-top: 0;
    text-align: left;
    display: inline;
  }

  .contacts-content p::first-letter {
    font-weight: 700;
    color: #ffffff;
  }
  
  .contacts-content p:after {
    content: " ";
    display: block;
    height: 10px;
  }

  .wine-content {
    color: rgba(250, 250, 250, 0.95);
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    backdrop-filter: blur(6px);
    border-radius: 20px;
    overflow-x: hidden;
  }

  .wine-content p {
    color: rgba(250, 250, 250, 0.95);
    padding-left: 0px;
    padding-top: 0px;
    margin-bottom: 0;
    margin-top: 0;
  }

  .wine-content p::first-letter {
    font-weight: 700;
    color: #ffffff;
  }

  .history-photo {
    width: 150px;
    margin: 10px;
  }

  .history-photo-1 {
    float: left;
    margin-left: 5px;
    margin-right: 10px;
    transform: rotate(-5deg);
  }

  .history-photo-2 {
    float: right;
    margin-right: 5px;
    margin-left: 10px;
    transform: rotate(7deg);
  }

  .history-photo-3 {
    float: left;
    margin-left: 5px;
    margin-right: 10px;
    transform: rotate(4deg);
  }

  .history-photo-4 {
    float: right;
    margin-right: 5px;
    margin-left: 10px;
    transform: rotate(-6deg);
  }

  .history-photo-5 {
    float: left;
    margin-left: 5px;
    margin-right: 10px;
    transform: rotate(3deg);
  }

  .contacts-photo-1 {
    top: 5px;
    float: left;
    margin-left: 5px;
    margin-right: 10px;
    transform: rotate(-5deg);
  }

  .contacts-photo-2 {
    float: right;
    margin-right: 5px;
    margin-left: 10px;
    margin-top: -5px;
    transform: rotate(7deg);
  }

  .contacts-photo-3 {
    float: left;
    margin-left: 5px;
    margin-right: 10px;
    margin-top: -10px;
    transform: rotate(-4deg);
  }

  .wine-photo-1 {
    float: left;
    margin-left: 5px;
    margin-right: 10px;
    transform: rotate(-5deg);
  }

  .wine-photo-2 {
    float: right;
    margin-right: 5px;
    margin-left: 10px;
    transform: rotate(7deg);
  }

  .wine-photo-3 {
    float: left;
    margin-left: 5px;
    margin-right: 10px;
    transform: rotate(4deg);
  }

}

/* Дополнительные медиа-запросы для разных размеров экранов */
@media (max-width: 480px) {
  .logo-container {
    margin-top: 10vh;
  }

  .logo {
    width: 90vw;
  }

  .mobile-bottom-right {
    right: 2px;
    width: 70px;
  }

  .mobile-santa-hat {
    display: none;
    width: 28px;
    top: -13px;
    right: -9px;
  }

  .mobile-bottom-text {
    display: none;
    font-size: 6.5px;
    bottom: -20px;
    width: 100%;
    padding: 4px;
  }

  .actions {
    width: auto;
    max-width: none;
    top: 4px;
    right: 2%;
    left: auto;
    bottom: auto;
  }
}

@media (max-width: 390px) {
  .logo-container {
    margin-top: 14vh;
  }

  .logo-text-banner {
    bottom: 15px;
  }

  .logo-banner-text.m-ru .logo-banner-title {
    margin-bottom: 0px;
  }

  .logo-text-banner:has(.m-ru) {
    bottom: 3px;
  }

  .mobile-menu-bar-item {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .logo-container {
    margin-top: 20vh;
  }

  .logo {
    width: 88vw;
  }

  .mobile-bottom-right {
    top: 70px;
    right: 10px;
    width: 65px;
  }

  .mobile-santa-hat {
    width: 26px;
    top: -9px;
    right: -5px;
  }

  .mobile-bottom-text {
    font-size: 6px;
    bottom: -18px;
    width: calc(100% - 4px);
    padding: 2px 3px 5px 3px;
  }

  .actions {
    width: auto;
    max-width: none;
    top: 3px;
    right: 5%;
    left: auto;
    bottom: auto;
  }

  button {
    font-size: clamp(10px, 2.5vw, 12px);
    padding: clamp(5px, 1vh, 8px) clamp(6px, 2vw, 12px);
  }
}

@media (max-width: 375px) {
  .logo-banner-text.m-en .logo-banner-title {
    margin-bottom: 0px;
  }

  .logo-text-banner:has(.m-en) {
    bottom: 0px;
  }
}

/* Раскрывающиеся вкладки для мобильной версии главной страницы */
.mobile-accordion-container {
  display: none; /* Скрыто на десктопе */
  width: 100%;
  padding: 20px 5%;
  margin-top: 20px;
  gap: 12px;
  flex-direction: column;
}

@media (max-width: 768px) {
  .mobile-accordion-container {
    display: flex;
  }
}

.mobile-accordion-item {
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Цвета для разных вкладок */
.mobile-accordion-item[data-page="history"] .mobile-accordion-header {
  background: linear-gradient(-10deg, #c3bf51 0%, #685F2A 100%);
}

.mobile-accordion-item[data-page="wine"] .mobile-accordion-header {
  background: linear-gradient(135deg, #ffd700 0%, #c91f2b 100%);
}

.mobile-accordion-item[data-page="contacts"] .mobile-accordion-header {
  background: linear-gradient(274deg, #ff8200 0%, #8e2304 100%);
}

.mobile-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-accordion-title {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  font-family: "Cormorant Garamond", Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-accordion-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.mobile-accordion-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: opacity 0.3s ease;
}

.mobile-accordion-item.active .mobile-accordion-icon span {
  opacity: 0;
}

.mobile-accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
  background: transparent;
  padding: 0 24px;
}

.mobile-accordion-item.active .mobile-accordion-content {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
  padding: 20px 24px 24px;
  background: linear-gradient(-10deg, #9faf3b 0%, #685F2A 100%);
}

.mobile-accordion-description {
  margin: 0 0 16px 0;
  color: #ffffff;
  font-size: 19px;
  line-height: 1.8;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
}

.mobile-accordion-button {
  display: inline-block;
  padding: 12px 28px;
  background: #6b9f7a;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  font-family: "Montserrat", Arial, sans-serif;
}

.mobile-accordion-item[data-page="history"] .mobile-accordion-button {
  background: #968b48;
}

.mobile-accordion-item[data-page="wine"] .mobile-accordion-button {
  background: #968b48;
}

.mobile-accordion-item[data-page="contacts"] .mobile-accordion-button {
  background: #968b48;
}

.mobile-accordion-button:hover,
.mobile-accordion-button:active {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Адаптация для маленьких экранов */
@media (max-width: 390px) {
  .mobile-accordion-container {
    margin-top: 15px;
    padding: 15px 5%;
    gap: 10px;
  }

  .mobile-accordion-header {
    padding: 16px 20px;
  }

  .mobile-accordion-title {
    font-size: 18px;
  }

  .mobile-accordion-item.active .mobile-accordion-content {
    padding: 16px 20px 20px;
  }

  .mobile-accordion-description {
    font-size: 14px;
  }

  .mobile-accordion-button {
    padding: 10px 24px;
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .mobile-accordion-container {
    margin-top: 10px;
  }
}

/* Мобильные стили для аккордеона на странице контактов */
@media (max-width: 768px) {
  .contacts-accordion-container {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    padding: 20px 20px;
    margin-top: 20px;
  }

  .contacts-accordion-header {
    padding: 18px 24px;
  }

  .contacts-accordion-title {
    font-size: 18px;
  }

  .contacts-accordion-item.active .contacts-accordion-content {
    padding: 20px 24px;
  }

  .contacts-accordion-description {
    font-size: 19px;
  }
}

@media (max-width: 390px) {
  .contacts-accordion-container {
    width: calc(100% + 30px);
    margin-left: -15px;
    margin-right: -15px;
    padding: 15px 15px;
    margin-top: 15px;
    gap: 10px;
  }

  .contacts-accordion-header {
    padding: 16px 20px;
  }

  .contacts-accordion-title {
    font-size: 16px;
  }

  .contacts-accordion-description {
    font-size: 17px;
  }
}

@media (max-width: 360px) {
  .contacts-accordion-container {
    margin-top: 10px;
  }
}

/* Мобильные стили для интерактивного пазла */
@media (max-width: 768px) {
  .wine-puzzle-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin-top: 5px;
  }

  .wine-puzzle-right {
    display: contents;
  }

  .wine-puzzle-intro {
    order: 1;
    position: static;
    padding: 0;
    gap: 5px;
    left: auto;
    right: auto;
  }

  .wine-puzzle-logo {
    width: 85px;
  }

  .wine-puzzle-intro p {
    font-size: 21px;
  }

  .wine-puzzle-left {
    order: 2;
    flex: none;
    max-width: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
  }

  .wine-puzzle-image {
    max-width: 215px;
    width: 100%;
    height: auto;
  }

  .wine-puzzle-right {
    display: contents;
  }
  
  .wine-puzzle-info {
    position: relative;
    padding: 20px;
    order: 3;
    display: none;
    top: 230px;
  }
  
  .wine-puzzle-info.active {
    width: 100%;
    display: block;
    top: 230px;
  }

    /* Разные градиенты и позиции для каждого блока - привязаны к линиям */
  .wine-puzzle-info[data-info="1"] {
    background: linear-gradient(-10deg, #e7d157 0%, #c5b04a 100%);
    top: 270px;
    transform: translateY(-50%);
  }

  .wine-puzzle-info[data-info="2"] {
    background: linear-gradient(-10deg, #6b9f7a 0%, #5a8c6a 100%);
    top: 203px;
    transform: translateY(-50%);
  }

  .wine-puzzle-info[data-info="3"] {
    background: linear-gradient(-10deg, #f4c542 0%, #d9ad2e 100%);
    top: 135px;
    transform: translateY(-50%);
  }

  .wine-puzzle-info[data-info="4"] {
    background: linear-gradient(-10deg, #e85d5d 0%, #d94c4c 100%);
    top: 245px;
    transform: translateY(-50%);
  }

  .wine-puzzle-info[data-info="5"] {
    background: linear-gradient(-10deg, #9faf3b 0%, #8a9833 100%);
    top: 270px;
    transform: translateY(-50%);
  }

  .wine-puzzle-info[data-info="6"] {
    background: linear-gradient(-10deg, #685F2A 0%, #564f22 100%);
    top: 420px;
    transform: translateY(-50%);
  } 
    
  /* Стрелки навигации для мобильной версии */
  .wine-puzzle-info:not(.active) .wine-puzzle-navigation {
    display: none;
  }
  
  .wine-puzzle-info.active .wine-puzzle-navigation {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
    margin-bottom: 15px;
    padding: 0;
  }
  
  .wine-puzzle-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
  }
  
  .wine-puzzle-nav-btn:active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0.95);
  }
  
  .wine-puzzle-nav-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
  }

  .wine-puzzle-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .wine-puzzle-info p {
    font-size: 19px;
  }
  
  .wine-puzzle-text {
    font-size: 19px;
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Показываем мобильную версию пазла */
  .wine-puzzle-desktop {
    display: none;
  }

  .wine-puzzle-mobile {
    display: block;
  }

  .wine-puzzle-left .wine-puzzle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  .wine-puzzle-mobile {
    width: 100%;
    height: 100%;
  }

  /* Показываем все пятна на мобильной */
  svg.wine-puzzle-mobile ellipse.puzzle-piece {
    opacity: 1;
    pointer-events: none;
  }
  
  /* Стили для точек на мобильной - все видны */
  svg.wine-puzzle-mobile circle.puzzle-dot {
    fill: #ffffff;
    stroke: #000000;
    stroke-width: 2;
    opacity: 0;
    pointer-events: none;
  }

  /* Цвета кружочков для каждого пазла */
  svg.wine-puzzle-mobile circle.puzzle-dot-1 { fill: #f1d94f; }
  svg.wine-puzzle-mobile circle.puzzle-dot-2 { fill: #68cc85; }
  svg.wine-puzzle-mobile circle.puzzle-dot-3 { fill: #dfad23; }
  svg.wine-puzzle-mobile circle.puzzle-dot-4 { fill: #e85d5d; }
  svg.wine-puzzle-mobile circle.puzzle-dot-5 { fill: #9faf3b; }
  svg.wine-puzzle-mobile circle.puzzle-dot-6 { fill: #b09b25; }

  svg.wine-puzzle-mobile line.puzzle-line {
    display: none;
  }

  /* Цвета линий для каждого пазла */
  svg.wine-puzzle-mobile line.puzzle-line-1 { stroke: #f1d94f; }
  svg.wine-puzzle-mobile line.puzzle-line-2 { stroke: #68cc85; }
  svg.wine-puzzle-mobile line.puzzle-line-3 { stroke: #dfad23; }
  svg.wine-puzzle-mobile line.puzzle-line-4 { stroke: #e85d5d; }
  svg.wine-puzzle-mobile line.puzzle-line-5 { stroke: #9faf3b; }
  svg.wine-puzzle-mobile line.puzzle-line-6 { stroke: #b09b25; }

}

/* Адаптация для маленьких экранов */
@media (max-width: 390px) {
  .wine-puzzle-intro p {
    font-size: 16px;
  }
  
  .wine-puzzle-info h3 {
    font-size: 20px;
  }
  
  .wine-puzzle-info p {
    font-size: 16px;
  }
  
  .wine-puzzle-text {
    font-size: 16px;
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

@media (max-width: 360px) {
  .wine-puzzle-container {
    gap: 15px;
  }
}