/*
Theme Name: Grast
Theme URI: https://graststudio.ru
Author: Grast Studio
Author URI: https://graststudio.ru
Description: Custom theme for Grast Studio
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grast
*/

/* 
 * This is the main style file for WordPress theme identification.
 * The actual styles are loaded from the assets directory.
 */

/* Стили для скрытия элементов на мобильных устройствах */


/* Calculation Section */
.calculation__date-input-to .calendar-dropdown {
  right: 0;
  left: auto;
}

.dropdown .dropdown-menu {
  max-width: 100%; 
}

.input.error {
  border-color: #ff0000;
}

.gallery-title {
  margin-bottom: 40px;
}
@media (max-width: 1200px) {
  .gallery-title {
    margin-bottom: 24px;
    padding: 0px 15px;
  }
}


.subscription-section .subscription-form .input {
  color: #fff;
}
.subscription-card-image img {
  transform: none;
}
#thanks .thanks {
  display: flex;
}
.action-section-none-before::before {
  display: none;
}

@media (min-width: 1200px) {
  .calculation .calculation__content {
    padding-bottom: 140px;
  }
}

.contacts-section__map iframe {
  max-width: 100%;
}

.card {
  overflow: hidden;
  /* pointer-events: none; */
}
.card img {
  border-radius: inherit;
}
.booking-section .booking-bg-wrapper .booking-bg {
  transform: none;
}

.hero__bg-hotel:before, .hero__bg-hotel:after {
  display: none;
}
.action-section--hotel::before {
  display: none;
}
.gallery-title--hotel {
  margin-bottom: 0px;
}
.fancybox__container {
  z-index: 9999999;
}

.gastronomy-section .card--restaurant {
  width: 376px;
}
.gastronomy-section .card--restaurant {
  text-decoration: none;
}
.fancybox__content {
  border-radius: 30px;
    overflow: hidden;
}
.more__content.content ul {
  padding-left: 17px;
  line-height: 140%;
}
.more__content.content p {
  width: 100%;
}
.more__content.content img {
  width: 100%;
}

.fancybox__container {
  --fancybox-bg: radial-gradient(145.74% 135.69% at 58.54% 2.76%, #150B05 0%, #411901 100%) !important;
}
.hero__header.fixed {
  position: fixed;
  transition: .2s;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 999;
  background: #190b05;
  padding: 15px 10px;
}
.popup .popup-content .subscription-card-image img {
  object-fit: cover;
  object-position: center;
}

/* Стилизация вертикального скроллбара для современных браузеров */
body, html {
  scrollbar-width: thin;            /* для Firefox */
  scrollbar-color: #b28b67 #f7f6f3; /* "ползунок" и "трек" */
}

.hero__phone-wrapper .status-indicator {
  animation: status-pulse 3s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes status-pulse {
  0% {
    transform: scale(1);
  }
  60% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}
[data-fancybox-close] {
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(0 0 0);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  padding: 0;
  margin: 0;
}

/* Chrome, Edge, Safari */
body::-webkit-scrollbar {
  width: 8px;
  background: #f7f6f3;
}

body::-webkit-scrollbar-thumb {
  background: #b28b67;
  border-radius: 8px;
  min-height: 50px;
}

body::-webkit-scrollbar-thumb:hover {
  background: #a07452;
}

body::-webkit-scrollbar-track {
  background: #f7f6f3;
  border-radius: 8px;
}

/* Для горизонтального скролла (если потребуется) */
body::-webkit-scrollbar-horizontal {
  height: 8px;
}

body::-webkit-scrollbar-corner {
  background: #f7f6f3;
}

/* Кнопка "Наверх" */
.scroll-to-top {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #7A3B17;
  border: 2px solid #D4AB70;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  padding: 0;
  margin: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: #8B4620;
  border-color: #E8C696;
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:active {
  transform: translateY(-2px);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

@media (max-width: 768px) {
  .scroll-to-top {
    left: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }

  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }
  .subscription-subtitle {
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
  }

}
.subscription-card-content .subscription-form {
  gap: 20px;
}

@media (max-width: 1200px) {
  .calculation__form {
    padding: 16px;
  }
  .subscription-card-content .subscription-form {
    gap: 12px;
  }
  
}
body, html {
  overflow-x: hidden;
}
.card {
  border-radius: 24px; /* Дублируем радиус для iOS */
  backface-visibility: hidden; /* для WebKit */
  will-change: transform;
}
.card__img {
  border-radius: 24px; /* Дублируем радиус для iOS */
  backface-visibility: hidden; /* для WebKit */
  will-change: transform;
}
.card-content {
  border-radius: inherit;
}
.hotels-card {
  text-decoration: none;
}
.hotels-card__season {
  flex-basis: calc(50% - 8px);
  font-size: 9px;
  padding: 8px 12px;
}
.hotels-card__seasons {
  margin-top: 5px;
}
.directions-section .card {
  text-decoration: none;
}

.hero__title em {
  font-style: normal;
  font-size: 56px;
  display: block;
}

@media (max-width: 1200px) {
  .hero__title em {
    font-size: 22px;
  }
}

.grecaptcha-badge {
  display: none !important;  
}
.popup .popup-content .subscription-card .title {
  max-width: 90%;
}