/*
Theme Name: 	Betheme Child
Theme URI: 		http://themes.muffingroup.com/betheme
Author: 		Muffin group
Author URI: 	http://muffingroup.com
Description:	Child Theme for Betheme - Premium WordPress Theme
Template:		betheme
Version: 		1.6.1
*/

/* ============================================================
   BASE UTILITIES
   ============================================================ */
.center { text-align: center; }
.flex { display: flex; }
.jc-sb { justify-content: space-between; }
.al-c { align-items: center; }
.al-t { align-items: flex-start; }
.flex-column { display: flex; flex-flow: column; padding: 5px 1px !important; background: #9ffb9e; width: 20%; color: #000; }
.flex-column:nth-child(odd) { background: #59fa54; }
.flex-c { flex-flow: column; }
.grey { color: #9A9A9A; }
.inline-block { display: inline-block !important; }
.h3_bold { font-weight: bold; font-size: 25px; }
.h4 {
  font-family: "Patua One", Arial, Tahoma, sans-serif;
  font-size: 21px;
  line-height: 25px;
  font-weight: 300;
  letter-spacing: 0;
  margin-bottom: 15px;
}

/* ============================================================
   GLOBAL RESET — убираем паддинги которые BeTheme добавляет
   ============================================================ */
body,
#Wrapper,
#Header_wrapper,
#Header,
#Content,
html {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
#Header { min-height: 0 !important; }
#Action_bar, #Top_bar { margin-top: 0 !important; }
#Subheader { padding-top: 0 !important; margin-top: 0 !important; }

/* ============================================================
   VIDEO CONTAINER — CSS-only фикс полоски
   ============================================================ */
.video-container {
  display: block !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  vertical-align: top !important;
  /* Высота только через CSS — никакого JS */
  height: calc(100dvh - 135px) !important;
}
/* iOS: dvh недоступен в старых Safari — фоллбэк */
@supports not (height: 100dvh) {
  .video-container {
    height: calc(100vh - 135px) !important;
  }
}
.video-container video {
  display: block !important;
  vertical-align: top !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
/* iOS Safari: зелёный фон за видео чтобы полоска не была белой */
body.home {
  background-color: #27ae60 !important;
}

/* ============================================================
   СЕКЦИИ — убираем щели между ними
   ============================================================ */
.section, .mcb-section {
  margin: 0 !important;
}
.section_wrapper {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
#next_video,
.video-container + .section,
.video-container + div {
  margin-top: 0 !important;
}
#Wrapper #next_video { margin-top: -10px; }
#next_video[style] {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
/* Убираем белый фон в колонках #next_video */
#next_video .column_column,
#next_video .mcb-column,
#next_video .column_attr,
#next_video .mcb-wrap-inner,
#next_video .section_wrapper,
#next_video .mcb-section-inner {
  background-color: transparent !important;
  background: transparent !important;
}

/* ============================================================
   POPUP / ФОРМА
   ============================================================ */
.wpcf7-spinner { position: absolute; }
.wpcf7-form-control-wrap { margin-top: 10px; }

.popup_form {
  display: none;
  width: 300px;
  padding: 20px;
  position: fixed;
  top: 50%;
  left: 50%;
  margin-left: -175px;
  margin-top: -150px;
  border-radius: 10px;
  z-index: 9;
  background: #fff;
  color: #000;
}
.popup_form .title {
  text-align: center;
  margin-bottom: 15px;
  font-size: 18px;
}
.popup_form.form_car { overflow: visible !important; }
.popup_form .column.one-second { width: 100%; }
.popup_form .column.one-second p { margin-bottom: 0; }
.popup_form form .themecolor .wpcf7-checkbox {
  display: flex;
  flex-flow: column;
  gap: 10px;
}

.fonka {
  z-index: 8;
  position: fixed;
  background: rgba(0, 0, 0, 0.3);
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: none;
}
.form_wrapper { position: relative; }
.closerka {
  position: absolute;
  right: -30px;
  top: -30px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e1306c;
  color: #fff;
  cursor: pointer;
}

/* ============================================================
   КНОПКИ
   ============================================================ */
.button_new {
  display: flex;
  border-radius: 8px;
  background: #129853;
  color: #fff;
  padding: 10px 16px;
  justify-content: center;
  font-weight: 600;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}
.button_new:hover {
  color: #fff;
  text-decoration: none;
  background: #0c6236;
}
.button_order {
  transition: all 0.5s;
}
.button_order:hover {
  text-decoration: none;
  color: #fff;
  background: #0c6236;
}
form .wpcf7-submit.wpcf7-form-control {
  display: flex;
  border-radius: 8px !important;
  font-size: 16px;
  background: #129853;
  color: #fff;
  padding: 10px 16px;
  justify-content: center;
  font-weight: 600;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
form .wpcf7-submit.wpcf7-form-control:hover {
  text-decoration: none;
  color: #fff;
  background: #0c6236;
}

/* ============================================================
   МАШИНЫ
   ============================================================ */
.car_main {
  margin-top: 20px;
  display: block;
  font-style: normal;
  text-align: center;
  box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
  text-decoration: none;
  border-radius: 15px;
  background-color: #37a7dc;
  transition: background-color 1s;
}
.car_main:hover { color: #fff; text-decoration: none; background-color: #27ae60; }
.car_main .car_im {
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: bold;
  position: relative;
  padding: 15px 15px 15px 70px;
  text-decoration: none;
  cursor: pointer;
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}
.car_main .image_block {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
  left: 10px;
}
.car_main .car_im img { width: 80px; height: auto; border-radius: 0; }

/* ============================================================
   СПИСОК МАШИН
   ============================================================ */
.list_of_cars,
.page_all_cars.container { margin-top: 0; padding-top: 20px; }
.list_of_cars .one-fourth.column { width: 30%; }
.list_of_cars .image_wrapper { height: 240px; }
.list_of_cars .image_wrapper img { max-width: 100%; height: auto; max-height: 162px; width: auto; }
.top_all_cars h1 { text-align: center; font-size: 28px; text-transform: uppercase; }
.main_page { display: inline-block !important; margin-bottom: 15px; }

/* ============================================================
   PRICING BOX
   ============================================================ */
.pricing-box .plan-header h2 { height: 55px; }
.pricing-box .plan-inside ul li:nth-child(1),
.pricing-box .plan-inside ul li:nth-child(2) { font-weight: bold; color: #129853; }

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */
.reviews {
  background: #27ae60 !important;
  padding: 20px;
  color: #fff;
}
.reviews .title { margin: 30px; text-align: center; color: #fff; }
.home .reviews { background: #fff !important; }
.home .reviews .title { font-size: 28px; }
.home .reviews .title,
.home .reviews figure.snip1157 .author { color: #000 !important; }
.all_revs { justify-content: center; margin-bottom: 20px; }
.list_of_revs { flex-flow: wrap; gap: 15px; justify-content: flex-start; }

figure.snip1157 {
  font-family: 'Raleway', Arial, sans-serif;
  position: relative;
  overflow: visible !important;
  margin: 10px;
  min-width: 220px;
  max-width: 375px;
  width: 100%;
  color: #333;
  text-align: left;
  box-shadow: none !important;
}
figure.snip1157 * {
  box-sizing: border-box;
  transition: all 0.35s cubic-bezier(0.25, 0.5, 0.5, 0.9);
}
figure.snip1157 img {
  max-width: 100%;
  vertical-align: middle;
  height: 90px;
  width: 90px;
  border-radius: 50%;
}
figure.snip1157 blockquote {
  display: block;
  border-radius: 8px;
  position: relative;
  background: #f5f5f5;
  padding: 30px !important;
  font-size: 0.9em;
  font-weight: 500;
  margin: 0;
  line-height: 1.6em;
  font-style: italic;
  box-shadow: 0px 0px 8px 0px rgba(34, 60, 80, 0.2);
}
.with_form.snip1157 blockquote { max-height: 100%; }
figure.snip1157 blockquote:before,
figure.snip1157 blockquote:after {
  font-family: 'FontAwesome';
  content: "\201C";
  position: absolute;
  font-size: 50px;
  opacity: 0.3;
  font-style: normal;
}
figure.snip1157 blockquote:before { top: 15px !important; left: 20px; }
figure.snip1157 blockquote:after { content: "\201D"; right: 20px; bottom: 0; }
figure.snip1157 .arrow {
  top: 100%;
  width: 0;
  height: 0;
  border-left: 0 solid transparent;
  border-right: 25px solid transparent;
  border-top: 25px solid #f5f5f5;
  margin: 0;
  position: absolute;
}
figure.snip1157 .author {
  font-family: 'Montserrat', sans-serif;
  padding: 0 10px 0 0;
  margin: 0;
  text-transform: uppercase;
  color: #ffffff;
  margin-top: 45px !important;
}
figure.snip1157 .author span { display: flex; gap: 10px; }
figure.snip1157 .author h5 { opacity: 0.8; margin: 0; font-weight: 800; }
figure.snip1157 .author h5 span { font-weight: 400; text-transform: none; padding-left: 5px; }
.author small { font-size: 12px; }
.ocenka { margin-bottom: 10px; }

/* ============================================================
   АККОРДЕОН
   ============================================================ */
.single_prem {
  border: 1px solid #ccc;
  margin-bottom: 20px;
  border-radius: 10px;
  display: flex;
  flex-flow: column;
  padding: 15px;
  justify-content: space-between;
}
.single_prem .title {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  line-height: 25px;
  letter-spacing: 0;
  width: 100%;
}
.single_prem .text { display: none; padding-top: 10px; }
.single_prem .title .close-button { transform: rotate(45deg); transition: all 0.3s; z-index: -10; }
.single_prem.active .title .close-button { transform: rotate(0deg); }
.single_prem.active .text { display: block; }
.accordion { margin-bottom: 50px; font-family: 'Montserrat', sans-serif; }

/* ============================================================
   ДОПЫ
   ============================================================ */
.dops {
  padding-top: 20px;
  padding-bottom: 20px;
  background-color: #F4FA58;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}
.dops .h4 { font-size: 32px; font-family: 'Montserrat', sans-serif; margin-bottom: 40px; }
.dps { display: flex; }
.dps > div { width: 33%; font-size: 18px; }
.single_dop > div { margin-bottom: 10px; }
.single_dop .name, .single_dop .price { font-weight: bold; }
.list_price { line-height: normal; display: flex; font-size: 12px; }

/* ============================================================
   POPUP GALLERY
   ============================================================ */
.popup-gallery { margin-right: 20px; display: flex; flex-flow: wrap; }
.hidden_mobile { display: none; max-width: 30%; margin-bottom: 10px; margin-right: 10px; }

/* ============================================================
   TEXT FRONT (зелёная секция)
   ============================================================ */
.text_front {
  padding-top: 20px;
  padding-bottom: 30px;
  background-color: #27ae60;
  color: #fff;
  margin: 0 !important;
}
.text_front h1 { font-size: 30px; line-height: normal; }
.text_front h1, .text_front h2 { color: #fff; text-align: center; }
.text_front .column_column ul { color: #fff; }

/* ============================================================
   CITY SELECTOR
   ============================================================ */
.city-selector {
  position: relative;
  display: inline-block;
  font-family: Arial, sans-serif;
  transition: 1s all;
}
.city-selector label { margin-right: 10px; font-size: 16px; font-weight: bold; }
.dropdown { position: relative; display: inline-block; }
.city-selector .dropbtn {
  background-color: #129853;
  border-radius: 8px;
  color: white;
  padding: 10px 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 41px;
  font-weight: bold;
  width: 159.24px;
}
.city-selector:hover svg { transform: rotate(180deg); transition: 0.3s all; }
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 4px;
}
.dropdown-content a { color: black; padding: 12px 16px; text-decoration: none; display: block; font-size: 16px; }
.dropdown-content a:hover { cursor: pointer; }
.dropdown:hover .dropdown-content { display: block; }
.dropdown:hover .dropbtn { background-color: #0056b3; }
.dropdown-content .active { font-weight: bold; color: #129853; }

/* ============================================================
   SHOW MORE BUTTONS
   ============================================================ */
.show_more { background: url('/wp-content/themes/betheme-child/arrow-down-circle-svgrepo-com.svg'); }
.show-more {
  background: url(/wp-content/themes/betheme-child/images/arrow.svg) no-repeat center center #007cef;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  padding: 0;
  background-size: 50%;
  position: absolute;
  right: -10px;
  transition: 1s all;
}
.opened .show-more { transform: rotate(180deg); }
.show-more img { width: 12px !important; height: 25px !important; }
.to_long { max-height: 195px !important; overflow: hidden; }

/* ============================================================
   ВИДЕО — заголовок поверх
   ============================================================ */
.video-container h1 {
  position: absolute;
  text-align: center;
  width: 80%;
  margin: 0 auto;
  left: 10%;
  color: #fff;
  top: 20%;
  line-height: 2rem;
  font-weight: bold;
  font-size: 42px;
}
.video-container .button_order {
  width: 215px !important;
  margin-left: -107.5px !important;
}

/* ============================================================
   ИЗОБРАЖЕНИЯ
   ============================================================ */
.image img { max-width: 100%; height: auto; }

/* ============================================================
   ГЛОБАЛЬНЫЕ ПЕРЕХОДЫ (только нужные элементы)
   ============================================================ */
a, button, .button_order, .button_new, .car_main,
figure.snip1157 *, .city-selector *, .dropdown-content a,
.single_prem .title .close-button, .show-more {
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* ============================================================
   TABLET (max 1240px)
   ============================================================ */
@media screen and (max-width: 1240px) {
  .flex-c-mob { margin-right: 30px; display: flex; justify-content: space-between; }
}

@media screen and (max-width: 1024px) {
  .pricing-box .plan-header { padding: 20px 5px 0 !important; }
  .list_price > div { justify-content: center; align-items: center; }
  .pricing-box .plan-header h2 { height: auto; }
  .flex-mobile-column { flex-flow: column; margin-top: 20px; }
  .top-car-part { order: 2; }
  .button_order { order: 1; margin-bottom: 10px; }
  .dops .h4 { font-size: 20px; }
  .dps { flex-flow: column; }
  .dps > div { width: 100%; margin-bottom: 10px; }
  .video-container .button_order { width: 215px !important; margin-left: -107.5px !important; }
  /* Мобильная высота видео — хедер меньше */
  .video-container {
    height: calc(100dvh - 60px) !important;
  }
  @supports not (height: 100dvh) {
    .video-container {
      height: calc(100vh - 60px) !important;
    }
  }
}

/* ============================================================
   MOBILE (max 768px)
   ============================================================ */
@media screen and (max-width: 768px) {
  body { padding-top: 0 !important; }
  #Content { padding-top: 0 !important; }
  .flex-c-mob { margin-right: 0; }
  .list_of_revs.flex { max-width: 100% !important; }
  .single_car {
    flex-flow: column;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ccc;
  }
  .single_car h3 { margin-top: 10px; }
  .video-container h1 { font-size: 25px; }
  /* Fix: анимации reveal не скрывают машины на мобиле */
  .reveal, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  /* WhatsApp кнопка */
  .joinchat,
  .joinchat__button,
  #joinchat {
    --s: 48px !important;
    width: 48px !important;
    height: 48px !important;
    right: 10px !important;
    bottom: 10px !important;
  }
  .joinchat .joinchat__button {
    width: 48px !important;
    height: 48px !important;
  }
}