/*
Theme Name: Хануман Фест
Theme URI: https://хануманфест.рф
Author: Артур Лун
Author URI: https://t.me/arturlun
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hanumanfest
*/

:root {
  font-family: 'Montserrat', sans-serif;
  --brand-main: #f65414;
  --brand-main-light: rgba(246, 83, 19, 0.7);
  --brand-accent: #95a43a;
  --dark-gray: #303030;
}

html, body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color-scheme: light;
  background: #fff;
}

html {
  scroll-padding-top: 88px;
  scroll-behavior: auto;
}

.text-brand-main { color: var(--brand-main) !important; }
.text-brand-accent { color: var(--brand-accent) !important; }

.bg-brand-main { background-color: var(--brand-main) !important; }
.bg-brand-accent { background-color: var(--brand-accent) !important; }

.btn-brand-main { background-color: var(--brand-main); color: #fff; transition: all 0.3s ease-in-out;}
.btn-brand-main:hover {background-color: var(--brand-main); transform: scale(1.1); }

.nav-logo{
  margin-left: -25px;
}

header {
  display: flex;
  height: 150px;
  transition: background 0.3s, height 0.3s;
  z-index: 1030;
}

body.is-home header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

body.is-home header.header-background--white {
  position: fixed;
}

.header-background--white {
  background: rgba(255, 255, 255, 0.8);
  height: 80px;
}

.header-background--white .nav-logo img{
  height: 70px;
}

.nav-logo img {
  position: relative;
  z-index: 1;
  border-radius: 50%;
  display: block;
  transition: all 0.3s ease-in-out;
  max-height: 100px;
  width: auto;
}

.nav-link, .contact-link,
.nav-link:visited, .contact-link:visited,
.nav-link:focus, .contact-link:focus {
  color: var(--brand-main);
}

.nav-link:hover, .contact-link:hover {
  color: var(--brand-accent);
}

.info-content a,
.entry-content a,
.faq-answer a,
.about a,
#cost a:not(.btn),
.hf-master-modal__body a:not(.hf-modal-payload__media-item) {
  color: var(--brand-main);
}

.info-content a:hover,
.entry-content a:hover,
.faq-answer a:hover,
.about a:hover,
#cost a:not(.btn):hover,
.hf-master-modal__body a:not(.hf-modal-payload__media-item):hover {
  color: var(--brand-accent);
}

#about, #program, #register, #contacts, #infoblocks, #guest, #guests, #masters, #cost {
  scroll-margin-top: 96px;
}

.text-brand-xs {
  margin-bottom: 0 !important;
}

/* HERO */
.hero {
  position: relative;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding-top: 150px;
}

.hero-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
}
.hero-section {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
  overflow: hidden;
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, rgb(255 255 255), rgb(0 0 0 / 31%));
} 

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0px 20px 50px 20px;
}

.hero-underline {
  width: 240px;
  height: 2px;
  background: var(--brand-accent);
  margin: 2rem auto;
  border-radius: 2px;
}

.date-dot {
  color: var(--brand-main);
  margin-left: .3rem;
  font-size: 1.5rem;
  vertical-align: middle;
}

.promo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  padding: 10px;
}

.promo-card {
  position: relative;
  flex: 1 1 300px;
  max-width: 360px;

  /* главное изменение */
  aspect-ratio: 9 / 16;

  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

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

/* GUESTS */
.guests-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  padding: 10px;
}

.guest-card {
  position: relative;
  flex: 1 1 300px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 440px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.guest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.guest-title {
  margin: 0;
  padding: 14px 10px;
  font-size: 1.2rem;
  background: #fafafa;
  border-bottom: 1px solid #eee;
  text-align: center;
  z-index: 2;
}

.guest-image {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.guest-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.guest-card:hover img {
  transform: scale(1.08);
}

.guest-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    padding: 20px;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(10px);
    overflow: scroll;
}

.guest-card:hover .guest-overlay {
  opacity: 1;
  transform: translateY(0);
}

.guest-overlay p {
  color: #fff;
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 992px) {
  .guest-card {
    flex: 1 1 45%;
    max-width: 45%;
  }
}

@media (max-width: 600px) {
  .guest-card {
    flex: 1 1 100%;
    max-width: 100%;
    height: auto;
  }
  .guest-image {
    aspect-ratio: 3 / 4;
  }
}
.scroll-down, .scroll-up {
  cursor: pointer;
  z-index: 1000;
}

/* MASTERS */
.masters-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}

/* Затемнение фона */
.masters-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  z-index: 0;
}

/* Контент поверх фона */
.masters-section .container {
  position: relative;
  z-index: 1;
}

/* Сетка мастеров */
.masters-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
}

.master-card {
  text-align: center;
  cursor: pointer;
  flex: 0 0 200px;
  width: 200px;
  max-width: 200px;
  box-sizing: border-box;
  transition: transform 0.3s;
}

.master-card:hover {
  transform: translateY(-5px);
}

.master-name{
  font-size: 1.2em;
  line-height: 1.25;
  margin: 0;
  padding: 0 4px;
  overflow-wrap: anywhere;
  hyphens: auto;
  transition: color 0.3s;
}

.master-card:hover .master-name{
  color: var(--brand-main) !important;
}

.master-thumb {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  flex-shrink: 0;
  background: #f3f0eb;
}

.master-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hf-master-modal,
.hf-master-modal-overlay {
  display: none;
}

.hf-master-modal.is-open,
.hf-master-modal-overlay.is-open {
  display: block;
}

.hf-master-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
}

.hf-master-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  z-index: 10000;
  border-radius: 5px;
  padding: 24px;
  max-width: 700px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  max-height: 90vh;
}

.hf-master-modal__body {
  color: #222;
  border: none;
}

.hf-master-modal__body img {
  max-width: 100%;
  height: auto;
  margin-bottom: 16px;
}

.hf-master-modal__body img.hf-modal-payload__photo {
  width: 96px;
  height: 96px;
  max-width: 96px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.hf-master-modal-close {
  position: fixed;
  top: 20px;
  right: 25px;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  font-size: 36px;
  color: #fff;
  cursor: pointer;
  z-index: 11000;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  transition: background 0.2s ease;
  display: none;
}

.hf-master-modal-close.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hf-master-modal-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

@media (max-width: 600px) {
  .hf-master-modal {
    width: 94%;
    padding: 16px;
    max-height: 85vh;
  }

  .hf-master-modal-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 30px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .master-card {
    flex-basis: 150px;
    width: 150px;
    max-width: 150px;
  }
  .master-thumb {
    width: 140px;
    height: 140px;
  }
}

/* GALLERY-CAROUSEL */
.hf-gallery-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0 50px; /* лёгкие отступы по бокам */
  box-sizing: border-box;
}

.hf-gallery-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}

.hf-gallery-track::-webkit-scrollbar {
  display: none;
}

.hf-gallery-item {
  flex: 0 0 auto;
  width: 320px;
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.hf-gallery-item img, .wp-block-image:hover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all .3s ease;
}

.hf-gallery-item:hover img, .wp-block-image:hover img {
  cursor: pointer;
  filter: brightness(1.2);
}

.hf-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.4);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
}

.hf-gallery-arrow:hover {
  background: rgba(0,0,0,0.6);
}

.hf-gallery-prev {
  left: 10px;
}

.hf-gallery-next {
  right: 10px;
}

@media (max-width: 768px) {
  .hf-gallery-item {
    width: 80vw;
    height: 55vw;
  }
}

.promo-video-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  background: #fff;
}

.promo-video {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.promo-video--left {
  padding: 0 10px 0 20px;
}

.promo-video--right {
  padding: 0 20px 0 10px;
}

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

@media (max-width: 768px) {
  .promo-video-split {
    grid-template-columns: 1fr;
    height: auto;
  }

  .promo-video {
    height: 70vh;
  }

  .promo-video + .promo-video {
    margin-top: 1rem;
  }
}

.page-content,
.single-post,
.single-guest {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1rem;
  line-height: 1.6;
}

.wp-block-image img,
.wp-block-cover,
.wp-block-gallery {
  border-radius: 5px;
  overflow: hidden;
}

.wp-block-cover {
  min-height: 50vh;
}

.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.wp-block-cover__inner-container {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.register{
  color: #222;
}

.entry-content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

.inner-header {
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.inner-header .site-logo img {
  height: 80px;
  transition: transform 0.2s ease;
}

.inner-header .site-logo img:hover {
  transform: scale(1.05);
}

.accordion-button:not(.collapsed) {
  background-color: rgba(246, 84, 20, 0.5);
  color: #fff !important;
}

.accordion-button:not(.collapsed)::after {
   background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:focus {
  box-shadow: none;
}
.forminator-design--material .forminator-input:focus{
  outline: none !important;
  border-bottom-width: 2px;
}
.forminator-design--material .forminator-input {
    font-family: 'Montserrat', sans-serif !important;
}

.scroll-down {
  animation: soft-bounce 2.5s infinite ease-in-out;
  text-align: center;
  display: block;
  width: 100%;
}

.scroll-up {
  position: fixed;
  width: 50px;
  height: 50px;
  right: 40px;
  bottom: 40px; /* чуть выше вниз стрелки */
  background: rgba(0,0,0,0.4);
  padding: 0.3rem;
  border-radius: 50%;
  transition: opacity 0.4s, background 0.3s, transform 0.2s;
  opacity: 0;
  pointer-events: none;
}

.scroll-up.show {
  opacity: 1;
  pointer-events: auto;
}

.scroll-up:hover {
  background: rgba(0,0,0,0.6);
  transform: scale(1.1);
}

@keyframes soft-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.site-footer {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 60px 20px 10px;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 0;
}

.footer-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  flex: 1;
  flex-wrap: wrap;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 25px;
}

.footer-contacts a {
  color: #fff;
  text-decoration: none;
  display: block;
  margin: 4px 0;
  transition: color 0.3s ease;
}

.footer-contacts a:hover {
  color: #ffd700;
}

.footer-contacts a[href^="mailto"] { margin-top: 10px; }

/* Соцсети */
.footer-socials {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 20px;
}
.footer-social img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.footer-social:hover img {
  transform: scale(1.2);
}

/* Меню */
.footer-menu-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-menu-items li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-menu-items li a:hover {
  color: #ffd700;
}

/* Нижняя строка */
.footer-bottom {
  z-index: 1;
  margin-top: 40px;
  font-size: 14px;
  color: #fff;
}
.footer-bottom p{
  margin-bottom: 0;
}

/* --- Гамбургер --- */
.navbar-toggler {
  border: none;
  background: transparent;
  padding: 6px;
  z-index: 1100;
}

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

.hamburger span {
  display: block;
  height: 2px;
  background: #222;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Анимация при открытии меню */
.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
}
.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Меню --- */
.mobile-menu {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  margin: 0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1060;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-list a {
  color: #222;
  font-size: 18px;
  text-decoration: none;
  padding: 10px 0;
  display: block;
  transition: color 0.3s ease, transform 0.2s ease;
}

.mobile-menu-list a:hover {
  color: #d85c00;
  transform: translateX(4px);
}

/* --- Подложка при открытии --- */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1050;
}

/* При открытии collapse активируем подложку */
.mobile-menu.show + .mobile-menu-overlay,
.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Адаптив */
@media (min-width: 768px) {
  .mobile-menu,
  .mobile-menu-overlay,
  .navbar-toggler {
    display: none !important;
  }
  .text-brand-main--info {
    margin-bottom: 3rem;
  }
}
.accordion-button {
  font-size: 1.5rem;
}

.faq-section {
  background: #fdfdfd;
  position: relative;
  z-index: 1;
}

.faq-question {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 1.1rem;
  color: #222;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--brand-main);
}

.faq-icon {
  font-size: 1.8rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--brand-main);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
}

.faq-answer p {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

.schedule-card {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  height: 100%;
  min-height: 380px;
  display: flex;
  align-items: flex-start;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.schedule-card a {
color: #fff;
}

.schedule-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.6);
}

.schedule-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.1));
  z-index: 1;
}

.schedule-content {
  position: relative;
  z-index: 2;
  padding: 30px;
}

.schedule-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.schedule-text p {
  margin-bottom: 0;
  line-height: 1.5;
}

/* выравнивание по высоте */
.schedule-section .row > div {
  display: flex;
}
.schedule-section .schedule-card {
  flex: 1;
}

.schedule-card::before {
  content: "";
  position: absolute;
  inset: 0;
  transition: background 0.4s ease;
  background: rgba(0, 0, 0, 0.3);
}

.schedule-card:hover::before {
  background: rgba(0, 0, 0, 0.5);
}

/* === Общее для анимации и структуры === */
.info-block {
  position: relative;
  overflow: hidden;
}

.info-image {
  background-size: cover;
  background-position: center;
  min-height: 400px;
}

.info-text {
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-inner {
  max-width: 600px;
}

/* === Мобильная версия: текст поверх картинки === */
@media (max-width: 768px) {
  .info-block {
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .info-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    filter: brightness(0.3);
  }

  .info-text {
    position: relative;
    z-index: 2;
    height: 100%;
    overflow-y: auto; /* скролл внутри текста */
    scrollbar-width: none; /* убрать скроллбар в Firefox */
  }

  .info-text:not(.text-black), .info-block .text-brand-main:not(.text-brand-xs) {
    color: #fff !important;
  }

  .info-text::-webkit-scrollbar {
    display: none; /* убрать скроллбар в Chrome/Safari */
  }

  .info-inner {
    padding: 1rem 0;
  }
}

.hf-reviews-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hf-reviews-carousel .hf-gallery-track {
  gap: 40px;
}

.hf-review-card {
  flex: 0 0 80%;
  max-width: 80%;
  background: var(--brand-main-light);
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (min-width: 768px) {
  .hf-review-card {
    flex: 0 0 45%;
    max-width: 45%;
  }
}

.hf-review-avatar {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid white;
  display: block;
}

.hf-master-modal__body .hf-modal-payload__photo {
  width: 96px;
  height: 96px;
  max-width: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1rem;
}

.hf-master-modal__body .hf-modal-payload__title {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--brand-accent, #c45c26);
}

.hf-master-modal__body .hf-modal-payload__body {
  margin-bottom: 1rem;
}

.hf-master-modal__body .hf-modal-payload__media {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 1.25rem;
}

.hf-master-modal__body .hf-modal-payload__media-item {
  position: relative;
  display: block;
  width: calc((100% - 16px) / 3);
  max-width: 112px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #ececec;
  cursor: pointer;
  flex: 0 0 auto;
}

@media (min-width: 576px) {
  .hf-master-modal__body .hf-modal-payload__media {
    gap: 10px;
  }

  .hf-master-modal__body .hf-modal-payload__media-item {
    width: 104px;
    max-width: 104px;
  }
}

.hf-master-modal__body .hf-modal-payload__media-item img,
.hf-master-modal__body .hf-modal-payload__media-item video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  margin: 0;
  pointer-events: none;
}

.hf-master-modal__body .hf-modal-payload__media-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.hf-master-modal__body .hf-modal-payload__media-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #fff;
}

.hf-reviews-archive {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .hf-reviews-archive {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hf-reviews-archive .hf-review-card {
  flex: none;
  max-width: none;
  width: 100%;
}

.hf-gallery-archive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.hf-gallery-archive__item {
  margin: 0;
}

.hf-gallery-archive__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  display: block;
}

.hf-gallery-archive__caption {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.35rem;
}

.hf-review-readmore {
  font-size: 0.9rem;
}

.reviews-section{
  position: relative;
}

.hf-gallery-arrow--reviews{
  top: 57%;
}
.text-brand-main--info {
  z-index: 2;
}

.highlights-grid.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: -1rem;
}

.tiles-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* плитка */
.tile {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  font-size: 0.85rem;
  line-height: 1.3;
  text-align: center;

  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: 
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.tiles-column .tile {
  display: flex;
  align-items: center;      /* вертикаль */
  justify-content: center;  /* горизонталь */
  text-align: center;
}

/* акценты */
.tile.big {
  font-size: 1.05rem;
  font-weight: 500;
}

.tile.wide {
  grid-column: span 2;
}

/* hover */
.tile:hover {
  background: var(--brand-main-light);
  color: #fff;
  transform: translateY(-2px);
}

/* адаптив */
@media (max-width: 992px) {
  .highlights-grid.tiles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .tiles-column {
    grid-template-columns: 1fr;
  }
}

/* Адаптив */
@media(max-width: 768px){
  .footer-container {
    justify-content: center;
  }
  .footer-right {
    align-items: center;
    text-align: center;
  }
  .footer-bottom {
    text-align: center;
  }
  .nav-logo {
    margin-left: 0;
  }
  .nav-logo img {
    max-height: 60px;
  }
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding-top: 80px;
  }
  .hero-content {
    padding: 60px 20px 30px 20px;
  }
  .date-dot, .hero-underline, .scroll-up {
    display: none;
  }
  .site-footer {
    min-height: auto;
  }
  header {
    height: auto;
  }
  .highlights-grid {
    gap: 16px;
  }
  .highlight-card {
    padding: 16px;
  }
  .about h4 {
    font-size: 1.2em;
  }
}

.forminator-select.forminator-select-dropdown-container--open .forminator-select-dropdown .select2-results {
  margin-top: 22px !important;
}

/* Registration widget: avoid layout jump on recalculate */
.hf-reg-select {
  height: calc(1.5em + 0.75rem + 2px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hf-reg-option-extra {
  display: grid;
}

.hf-reg-option-extra:not(:has([data-uae-conditional]:not(.hf-reg-extra--off))) {
  display: none;
}

.hf-reg-option-extra > [data-uae-conditional] {
  grid-area: 1 / 1;
}

.hf-reg-extra--off,
.hf-reg-hint--off {
  visibility: hidden;
  pointer-events: none;
}

.hf-reg-factor-hint {
  display: grid;
  margin-top: 0.25rem;
}

.hf-reg-factor-hint > p {
  grid-area: 1 / 1;
}

.hf-reg-status {
  min-height: 1.5rem;
}

.hf-reg-status.is-busy {
  color: var(--brand-main) !important;
  font-weight: 600;
}

.hf-reg-status.is-busy::after {
  content: '';
  animation: hf-status-dots 1.4s infinite;
}

@keyframes hf-status-dots {
  0%, 20% { content: ''; }
  25%, 45% { content: '.'; }
  50%, 70% { content: '..'; }
  75%, 100% { content: '...'; }
}

@media (prefers-reduced-motion: reduce) {
  .hf-reg-status.is-busy::after {
    animation: none;
    content: '…';
  }
}

.hf-reg-meta {
  min-height: 1.25rem;
}

.hf-reg-pricing {
  transition: opacity 0.15s ease;
}

.hf-reg-transfer {
  display: flex;
  align-items: center;
  min-height: calc(1.5em + 0.75rem + 2px);
}

[data-uae-widget="registration"].is-calculating .hf-reg-pricing {
  opacity: 0.65;
}

.hf-pay,
.hf-return {
  max-width: 36rem;
  margin: 0 auto;
}

.hf-notice {
  border: 1px solid rgba(48, 48, 48, 0.12);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  background: #fff;
}

.hf-notice--soft {
  background: #fff8f5;
  border-color: rgba(246, 84, 20, 0.25);
}

.hf-amount-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
}

.hf-amount-row--remain {
  color: var(--brand-main);
}

.hf-copy-link {
  display: flex;
  gap: 0.5rem;
}

.hf-copy-link .form-control {
  min-width: 0;
}

.hf-copy-link .btn {
  white-space: nowrap;
}

.hf-return-contacts {
  text-align: center;
  margin: 0 0 1.75rem;
}

.hf-return-contacts__title {
  margin: 0 0 0.85rem;
  font-weight: 600;
}

.hf-return-contacts__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.hf-return-contacts__socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  margin: 0.85rem 0 0;
}

.hf-return-contacts__link,
.hf-return-contacts__link:visited,
.hf-return-contacts__link:focus {
  color: var(--brand-main);
  text-decoration: none;
  font-weight: 500;
}

.hf-return-contacts__link:hover {
  color: var(--brand-accent);
}

@media (max-width: 575.98px) {
  .hf-copy-link {
    flex-direction: column;
  }
}

