/*
Theme Name: Visit Russia Child
Theme URI: https://batra.by
Author: batra.by
Author URI: https://batra.by
Description: Child theme for Visit Russia
Template: visit-russia
Version: 1.0
Text Domain: visit-russia-child
*/
body > main > section.top-visited-places > div > div.top-visited-places__controls > div > button.top-visited-places__button-prev.swiper-button-disabled.swiper-button-lock > span > img, body > main > section.will-be-helpful > div > div.will-be-helpful__controls > div > button.will-be-helpful__button-prev.swiper-button-disabled.swiper-button-lock > span > img, body > main > section.will-be-helpful > div > div.will-be-helpful__controls > div > button.will-be-helpful__button-prev.swiper-button-disabled.swiper-button-lock > span > img {    transform: rotate(90deg);}
body > main > section.top-visited-places > div > div.top-visited-places__controls > div > button.top-visited-places__button-next.swiper-button-disabled.swiper-button-lock > span > img, body > main > section.will-be-helpful > div > div.will-be-helpful__controls > div > button.will-be-helpful__button-next.swiper-button-disabled.swiper-button-lock > span > img, body > main > section.will-be-helpful > div > div.will-be-helpful__controls > div > button.will-be-helpful__button-next.swiper-button-disabled.swiper-button-lock > span > img {transform: rotate(-90deg);}

#arrow-left {    transform: rotate(90deg);}
#arrow-right {transform: rotate(-90deg);}

:root { --header-offset: 120px; }
:root {
  --color-btn-primary: #ff2b54;
}

.site-header__nav-link.is-active {
  color: var(--color-btn-primary);
}

.site-header__dropdown-link.is-active {
  color: var(--color-btn-primary);
}


/* плавно + учитываем липкий хедер при переходе по #якорю */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

html, body {
  background-color: #fff;
}

/* на всякий — если якорь будет на секции */
.how-to-get-there {
  scroll-margin-top: var(--header-offset);
}

.hero::before {
	background-image: url(/wp-content/uploads/2026/02/main_hero_back_fullhd.jpg) !important;
}

.city-info {
	margin-bottom: 100px;
}

.site-header--accent {
	background-color: var(--color-bg-secondary);
	background-image: none;
}.map__image {
	pointer-events: none;
}
.map__point {
	cursor: pointer;
	pointer-events: all;
}

picture {
	height: 100%;
}

.hero__explore {
	left: calc(48% + var(--title-font-size) * 0.6);
}

body > main > section.travel-style > div > div > div > a:nth-child(3) > div > h3,
body > main > section.travel-style > div > div > div > a:nth-child(3) > div > p {
	color: #58523C;
}

body > main > section.travel-style > div > div > div > a:nth-child(4) > div > h3,
body > main > section.travel-style > div > div > div > a:nth-child(4) > div > p {
	color: #ffffff;
}

.style-family__cards {
    display: grid;
    max-width: 1328px;
    margin: auto;
		padding: 0 20px;
}

.style-family__title {
	margin-bottom: 60px;
}

.banner__title {
	text-align: center;
}

#arrow-left {    transform: rotate(90deg);}
#arrow-right {transform: rotate(-90deg);}

.style-info__title {z-index:999;}

.will-be-helpful__buttons {margin-top:50px;} 

	.modal__close {
		background: #ffffff60;
		border-radius: 10px;
	}

.site-footer {
  background: #fff;
}

.site-footer__social { display: none !important; }

.site-footer__container {
  position: relative;
  z-index: 2;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/wp-content/uploads/2026/02/VR_pattern-1.png");
  background-repeat: repeat-x;
  background-position: top center;
  background-size: auto;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}


.site-footer__bottom {
	justify-content: space-between;
}

.map__stats {
	gap:40px;
}

.style-quote__paragraph {
	text-align: justify;
}

.about-hero__pledge-text {
	text-align: left;
}

.faq__title {
	max-width: 60%;
}

.how-to-get-there-wrapper {
	padding: 0;
}

/* ===== LANGUAGE SWITCHER ===== */

.site-header__actions {
	position: relative;
	z-index: 20;
}

.site-header__lang {
	position: relative;
	z-index: 30;
}

/* ===== КНОПКА ===== */
.site-header__lang-btn {
	background: transparent;
	border: 0;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px;
	color: #000; /* базово */
}

.site-header__lang-arrow {
	font-size: 10px;
}

/* ===== DROPDOWN ===== */
.site-header__lang-dropdown {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 56px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 10px 30px rgba(0,0,0,.15);
	display: none;
	flex-direction: column;
	z-index: 9999;
}

.site-header__lang.is-open .site-header__lang-dropdown {
	display: flex;
}

.site-header__lang-dropdown button {
	background: none;
	border: 0;
	padding: 8px 12px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: #000;
	text-align: left;
}

.site-header__lang-dropdown button:hover {
	background: #f2f2f2;
}

/* ===== ЦВЕТА ===== */

/* ГЛАВНАЯ — БЕЛЫЙ */
body.home .site-header__lang-btn {
	color: #fff;
}

/* ГЛАВНАЯ + СКРОЛЛ (accent) — ЧЁРНЫЙ */
body.home .site-header.site-header--accent .site-header__lang-btn {
	color: #000;
}

/* ВСЕ ВНУТРЕННИЕ СТРАНИЦЫ — ЧЁРНЫЙ */
body:not(.home) .site-header__lang-btn {
	color: #000;
}

.travellers-support__tab {
	background: #fff;
}

.how-to-get-there-wrapper .style-quote {
	padding-bottom: 0;
}

.how-to-get-there-wrapper {
	padding: 40px;
    background-color: #F2F4F6;
    max-width: 1350px;
    margin: auto;
	margin-bottom: 60px;
	border-radius: 20px;
}

.style-quote__paragraph--first {
	margin-top: 0;
}

.how-to-get-there,
.how-to-get-there-wrapper .style-quote {
	    background-color: #F2F4F6;
}

.how-to-get-there__title--with-icon {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 30px;
}

.how-to-get-there__title-icon {
	width: 35px;          /* или сколько нужно по дизайну */
	height: auto;
	max-width: 100%;
	object-fit: contain;
	flex-shrink: 0;
	display: block;
}

.how-to-get-there__title-text {
	display: block;
	line-height: 1.2;
}

.how-to-get-there__title {
	overflow: visible;
}

.hero__front {
	bottom: 0 !important;
	height: auto;   
	max-height: 100%;
	max-width: 100%;
	overflow: visible;
}

/* ************СЕКЦИЯ НАШИ ПАРТНЕРЫ ********* */

/* viewport */
.our-partners__marquee-wrapper {
	width: 100%;
	overflow: hidden;
}

.our-partners__marquee {
	position: relative;
	width: 100%;
	max-width: 100vw;

	overflow-x: auto;
	overflow-y: hidden;

	-webkit-overflow-scrolling: touch;
	touch-action: pan-x;

	scroll-behavior: auto;

	/* КЛЮЧ */
	display: block;
}

.our-partners,
.our-partners__container,
.our-partners__marquee-wrapper {
	overflow: visible;
}

/* элементы нельзя сжимать */
.our-partners__item {
	flex: 0 0 auto;
}

/* 🔒 Скрываем полосу прокрутки, оставляя скролл */
.our-partners__marquee {
	overflow-x: auto;
	overflow-y: hidden;

	/* Chrome / Safari */
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;        /* Firefox */
	-ms-overflow-style: none;     /* IE 10+ */
}

.our-partners__marquee::-webkit-scrollbar {
	display: none;                /* Chrome / Safari */
}

/* UX */
.our-partners__marquee:active {
	cursor: grabbing;
}

.our-partners__marquee-wrapper {
	overflow: hidden !important;
}

.our-partners__marquee {
	overflow-x: auto !important;
	overflow-y: hidden;
	display: block;
	width: 100%;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.our-partners__marquee::-webkit-scrollbar {
	display: none;
}

.our-partners__track {
  display: flex;
  gap: 24px;
  width: fit-content;
  padding-right: 24px; /* 🔑 компенсируем gap */
}

.our-partners__marquee:not(.is-scrollable) .our-partners__track {
  justify-content: center;
}


/* ********************* */

.top-visited-places__slide-tags {
	display: none;
}

.faq-item__content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item__content > * {
  overflow: hidden;
}

.faq-item * {
  pointer-events: none;
}

.faq-item {
  cursor: pointer;
}

.blog__banner-iphone {
	right: 250px;
	transform: rotate(-5deg);
	margin-bottom: -20px;
}
.banner__qr {
      right: 50px;
    left: auto !important;
    top: 70%;
    transform: translateY(-50%) rotate(12deg);
    width: 220px;
}
/* 
*********************** */

.blog__banner-image--top {
    width: 200px;
    left: 45%;
    top: -40px;
    transform: none;
}

.blog__banner-image--bottom {
	bottom: -50px;
}
/*
.about-hero__block::before {
	background-image: url(/wp-content/uploads/2026/02/420789311_dc78c9c2-eb0a-47f9-8389-808a594c3360-2.svg) !important;
}
*/
.about-hero__gallery::after {
	background-image: url(
/wp-content/uploads/2026/02/Vector-3.svg) !important;
}
.about-hero__pledge {
	z-index: 5 !important;
}

.map__point {
  cursor: pointer;
}

/* весь poинт */
.map__point {
  cursor: pointer;
}

.masonry__grid {
  column-count: 2;
  column-gap: 16px;
}

.article__pagination {
max-width: 1360px;
	padding: 0 20px;
	margin: 40px auto;
	display: flex;
	justify-content: space-between; 
}

@media (min-width: 768px) {
  .masonry__grid {
    column-count: 3;
  }
}

/* ===============================================
   MOBILE DROPDOWN — FINAL HARD FIX
=============================================== */
@media (max-width: 991px) {
  /* dropdown внутри mobile menu должен быть в потоке */
  .site-header__mobile-menu .site-header__nav-item {
    position: static;
  }

  .site-header__mobile-menu .site-header__dropdown-menu {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    margin-top: 8px;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }

  .site-header__mobile-menu .site-header__dropdown-content {
    padding: 10px 0;
    gap: 10px;
  }

  .site-header__mobile-menu .site-header__dropdown-link {
    opacity: 1;
    transform: none;
    transition: none;
    font-size: 16px; 
  }
	
	.site-header__mobile-menu .site-header__dropdown-menu.is-open {
      max-height: 500px !important;
      overflow: visible;
      background: transparent !important;
  }

  .site-header__mobile-menu .site-header__dropdown-content .site-header__dropdown-link {
      opacity: 1 !important;
      transform: translateY(0) !important;
  }
}

@media (max-width: 768px) {
    body > main > section.map.no-select { 
        display: none !important;
    }
	.style-info__text {
		margin-bottom: 40px;
	}
	    .travel-style-card {
        height: 360px !important;
    }
	.city-info__text-blocks {
		gap: 40px;
	}
	
	.city-info {
    margin-bottom: 40px;
}

  .hero__front img {
    transform: translateY(35px);
  }
	.travel-style-card__text {
		margin-top: 20px;
		line-height: 1.2;
		font-size: 16px;
	}
	.get-inspired__slide-text {
		font-size: 14px;
	}
	
	.about-hero__pledge-text {
		line-height: 110%;
		font-size: 22px;
	}
	
	.style-quote__paragraph--first {
		margin-top: 0;
	}
	.faq__title {
    max-width: 68%;
}
	.blocks-wrapper {
		display: flex;
    flex-direction: column;
    padding: 20px;
	}
	.how-to-get-there-wrapper {
		padding: 20px;
		margin-bottom: 20px;
	}
	.about-hero__marquee {
    overflow: hidden;
  }

/* 	фикс галереи about */
  .about-hero__track {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    will-change: transform;
  }

  .about-hero__item {
    flex: 0 0 auto;
    width: 220px;
    max-width: 220px;
  }

  .about-hero__card {
    aspect-ratio: 4 / 3;
  }

  .about-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
	.about-hero__image {
  image-orientation: from-image;
}
	.about-hero__image {
  transform: translateZ(0);
  backface-visibility: hidden;
}
 /* показываем ТОЛЬКО активный таб */
  .blog__cards {
    display: none !important;
  }

  .blog__cards.blog__cards--active {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* карточки */
  .blog__cards.blog__cards--active .blog__card {
    display: flex !important;
    flex-direction: column;
    height: auto !important;
    min-height: 400px !important;
    grid-column: auto !important;
  }

  /*  убираем всё, что ломает поток */
  .blog__banner,
  .blog__pagination-wrapper {
    display: none !important;
  }
	.blog__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

	.blog__cards {
    content-visibility: auto;
    contain-intrinsic-size: 1000px;
  }
	.style-info__image-block,
	.style-info {
		margin-bottom: 40px;
	}
	/* ****************меню*********** */
body.menu-open .site-header__mobile-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  height: auto !important;
}

body.menu-open .site-header {
  position: fixed;
  inset: 0;
  z-index: 99;
}


}

#related-buttons {margin-top:50px;}


new Swiper('.related-articles .swiper', {
	slidesPerView: 'auto',
	spaceBetween: 16,
	navigation: {
		nextEl: '.related-articles .get-inspired__button-next',
		prevEl: '.related-articles .get-inspired__button-prev',
	},
	breakpoints: {
		768: {
			spaceBetween: 24,
		},
	}
});
