/*
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;
}

.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: all 0.4s, background 0.3s, transform 0.2s;
}

.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 {
  color: var(--brand-main);;
}

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

#about, #program, #register, #contacts, #infoblocks, #guest {
  scroll-margin-top: 70px;
}

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

/* HERO */
.hero {
  position: relative;
}
.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;
  gap: 30px;
}

.master-card {
  text-align: center;
  cursor: pointer;
  width: 200px;
  transition: transform 0.3s;
}

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

.master-name{
  font-size: 1.2em;
  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);
}

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

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

.modal.active, .modal-overlay.active {
  display: block;
}

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

.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;
}

.modal-content {
  color: #222;
}

.modal img {
  max-width: 100%;
  margin-bottom: 16px;
}

.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;
}

.modal-close.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

  .modal-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 30px;
  }
}
.modal-content{
  border: none;
}

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

@media (max-width: 768px) {
  .master-card {
    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: hidden;
  scroll-behavior: smooth;
}

.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;
  }
}

@media (min-width: 992px) {
  .hero {
    /* height: 100vh; */
  }
}
.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-gallery-track {
  display: flex;
  gap: 40px;
  transition: transform 0.6s ease;
}

.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;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  border: 2px solid white;
}

.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 {
    height: auto;
  }
  .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;
}

