/*!
Theme Name: vidno_pro
Author: kloga4ev
*/
.spasibo {
  min-height: 40vh;
  display: flex;
  align-items: center;
  text-align: center;
}

body .page-header_spasibo {
  min-height: 280px;
}

.spasibo .container {
  width: 100%;
}

.spasibo__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spasibo__title,
.spasibo__text {
  text-align: center;
}

.site-form_message,
.form-races_message {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.35;
}

.site-form_message:empty,
.form-races_message:empty,
.site-form_message[hidden],
.form-races_message[hidden] {
  display: none;
}

.site-form_message.is-error,
.form-races_message.is-error {
  color: #d93025;
}

.site-form_message.is-success,
.form-races_message.is-success {
  color: #188038;
}

.kp-modal {
  /*width: min(100%, 560px);*/
  padding: 0;
  background: transparent;
}

.kp-modal .carousel__button.is-close,
.kp-modal .f-button.is-close-btn {
  color: #333;
}

.kp-modal_form {
  width: 100%;
  padding: 34px;
  border-radius: 8px;
  background: #fff;
}

.kp-modal_grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.kp-modal_file input[type="file"] {
  width: 100%;
  padding: 14px;
  border: 1px dashed rgba(94, 94, 94, 0.35);
  border-radius: 6px;
  background: #fafafa;
  cursor: pointer;
}

.kp-modal_file small {
  display: block;
  margin-top: 8px;
  color: #6f6f6f;
  font-size: 13px;
  line-height: 1.35;
}

.kp-modal .site-form_submit {
  margin-top: 22px;
  width: 100%;
}
.kp-modal .site-form_field input, .kp-modal .site-form_field textarea {
  min-height: 58px;
  font-size: clamp(18px, 2vw, 20px);
}
.kp-modal .site-form_field {
  font-size: clamp(18px, 2vw, 20px);
}

form .site-form_check input {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

/** Центрируем документы и сертификаты, если загружено меньше полного ряда */
.about-documents .about-documents_list--centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  grid-template-columns: none;
}

.about-documents .about-documents_list--centered .about-documents_item {
  width: calc((100% - 96px) / 4);
}

@media screen and (max-width: 768px) {
  .about-documents .about-documents_list--centered .about-documents_item {
    width: calc((100% - 14px) / 2);
  }
}

/** Кропим миниатюры галереи портфолио под размер 206x180 */
.portfolio-detail_thumb {
  width: 206px;
  height: 180px;
}

.portfolio-detail_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
main .portfolio-detail-tabs_features {
  display: block;
}
main .portfolio-detail-tabs_features ul{
  list-style: disc;
  padding-left: 20px;
}
.services-detail-type_panel h3 {
  font-weight: 400;
}

/** Стилизуем карту сайта со вложенными страницами */
.map {
  padding: 72px 0;
}

.map_row > ul {
  /* display: grid; */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.map_row li {
  margin: 0;
  list-style: none;
}

.map_row a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111;
  font-size: 18px;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.25s ease;
}

.map_row a::before {
  content: "";
  width: 2px;
  min-width: 2px;
  height: 18px;
  background: var(--color-orange);
}

.map_row a:hover {
  color: var(--color-orange);
}

.map_row ul ul {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 0 0 0 18px;
}

.map_row ul ul a {
  color: #555;
  font-size: 15px;
}

.map_row ul ul a::before {
  width: 6px;
  min-width: 6px;
  height: 6px;
  border-radius: 50%;
}

/** Добавляем цвета карты сайта для темной темы */
html[data-theme=night] .map_row a {
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme=night] .map_row a::before {
  background: var(--color-orange);
  box-shadow: 0 0 14px rgba(255, 153, 0, 0.28);
}

html[data-theme=night] .map_row ul ul a {
  color: rgba(255, 255, 255, 0.64);
}

html[data-theme=night] .map_row a:hover,
html[data-theme=night] .map_row .current_page_item > a {
  color: var(--color-orange);
}

html[data-theme=night] .map_row ul ul a:hover,
html[data-theme=night] .map_row ul ul .current_page_item > a {
  color: rgba(255, 153, 0, 0.92);
}

@media screen and (max-width: 991px) {
  .map_row > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 560px) {
  .map {
    padding: 48px 0;
  }

  .map_row > ul {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

.page_inside {
  margin: 72px 0;
}
.page_inside h3{
  font-weight: 500;
  margin-bottom: 16px;
}
.video_feature {
  aspect-ratio: 4/2;
  width: 100%;
}
.spasibo__title {
  color: var(--color-orange);
  font-size: clamp(24px, 1.45vw, 30px);
  font-weight: 700;
}
.hero .hero_text {
  font-weight: 400;
}
header .page-hero {
  padding: 40px 0;
}
.wrapper .page-header {
  min-height: 300px;
}
header .page-hero_content {
  min-height: auto;
  /* max-width: 790px; */
  max-width: 70%;
}
header .page-contact_phone {
  font-size: clamp(30px, 4vw, 46px);
}
header h1 span, 
header .page-hero_h1-acf {
  color: #FF9900;
  /* max-width: 82%; */
  display: inline-block;
}
header h1 {
  font-size: clamp(26px, 3.5vw, 48px);
}

.services-detail_picture-light, .services-detail_picture-dark,
.about_picture-light, .about_picture-dark {
  min-height: 1160px;
}
@media screen and (min-width: 1921px) {
  .about_advantage-title, .about_advantage p {
    zoom: 0.8;
  }
  main .services-detail_picture-light, main .services-detail_picture-dark,
  main .about_picture-light, main .about_picture-dark {
    background: linear-gradient(270deg, rgb(255 255 255) 57%, rgb(255 255 255 / 0%) 61.35%), linear-gradient(180deg, rgb(255 255 255 / 0%) 45.49%, #ffffff 57.47%), linear-gradient(270deg, rgb(255 255 255 / 0%) 87.26%, #fdfdfd 100%);
  }
  main .services-detail_content {
    background: rgb(238 238 238 / 42%);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08), 0 0 22px rgb(186 186 186 / 18%);
  }
}
@media screen and (min-width: 1200px) {
  .about-personal_row .swiper-wrapper {
    justify-content: center;
  }
}
main .services-detail-type_tab-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  max-width: 100%;
}
.services-detail-type_tabs--more {
  aspect-ratio: 5;
  height: 100%;
  width: stretch;
  overflow: auto;
  padding: 20px 30px;
  scrollbar-color: c transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.shadow-block--more {
  min-height: 600px;
  margin: -20px 0 0px -30px;
}
.services-detail-type .services-detail-type_picture {
  width: 100%;
}
.type-picture--more {
  aspect-ratio: 4 / 3;
}
@media screen and (max-width: 1200px) {
  .shadow-block--more {
    margin: -20px 0 0px -50px;
  }
}
@media screen and (max-width: 991px) {
  .shadow-block--more {
    margin: 0;
  }
  .services-detail-type_tabs {
    padding: 0;
    aspect-ratio: auto;
    overflow: visible;
  }
}
main .page-faq_name {
  margin-left: 0;
}
.page-faq_card-rating {
  width: fit-content;
}
@media screen and (max-width: 991px) {
  main .portfolio-detail-tabs_form-grid {
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width: 768px) {
  main .site-form {
    padding: 20px;
  }
  main .site-form_radio {
    /* width: 40%; */
    font-size: clamp(14px, 1.4vw, 28px);
  }
  main .site-form .site-form_submit {
    width: 100%;
  }
  main .site-form_radio-list {
    gap: 20px 40px;
  }
  main .portfolio-detail-tabs_nav {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
@media screen and (max-width: 1300px) {
  main .services-detail_picture {
    inset: 0 0 auto;
  }
  .services-detail_row {
    margin: -60px 0 0;
  }
  main .services-detail {
    padding: 0 0 50px;
  }
}
@media screen and (max-width: 1300px) {
  main .services-detail_picture::after {
    height: 90px;
  }
  .wrapper .page-header {
    min-height: fit-content;
  }
}
.portfolio-detail-tabs h3 {
  margin: 0 0 10px;
}
.portfolio-detail-tabs h4 {
  font-size: clamp(18px, 1.8vw, 20px);
  font-weight: 700;
  color: #333;
  margin: 0 0 10px;
}
main .map-section {
  background: none;
}
header .header-banner::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgb(55 55 55 / 62%) 41%, rgba(0, 0, 0, 0.18) 56%, rgba(0, 0, 0, 0) 100%);
}
.portfolio-detail-tabs_features em {
  color: #FF9900;
  font-style: oblique; 
}
.portfolio-detail-tabs_features a {
  text-decoration: underline;
}
/**/
.content-detail_row {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0 40px;
}
.content-detail_row a {
   text-decoration: underline;
}
.content-detail_row .grid-right {
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08), 0 0 22px rgba(255, 153, 0, 0.18);
    aspect-ratio: 4 / 3;
}
@media screen and (max-width: 1200px) { 
    .content-detail_row {
        gap: 40px;
        grid-template-columns: 1fr 1fr;
    }
}
@media screen and (max-width: 991px) {
    .content-detail_row {
        gap: 40px;
        grid-template-columns: 1fr;
        padding: 0 0 40px;
    }
}
.page-contact .page-contact_phone {
    width: fit-content;
}
@supports (height: 100dvh) {
    body .fancybox__dialog {
        height: 100%;
    }
}
.rating-icon {
  max-width: 260px;
}

/* Не показываем трек слайдера до отложенной инициализации Swiper. */
.about-making_progress {
  visibility: hidden;
}

.about-making_slider.swiper-initialized .about-making_progress {
  visibility: visible;
}

/* Индикатор прокрутки отзывов: всегда внизу слайдера с небольшими отступами. */
.page-faq .page-faq_slider .page-faq_progress.swiper-pagination-progressbar {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: calc(100% - 32px) !important;
  margin: 16px 16px 0;
}

/* Swiper подключается отложенно, поэтому его базовый width: 100% не должен
   переопределять размер кнопок фильтра портфолио. */
.portfolio-filter_item.swiper-slide {
  width: auto !important;
  height: auto;
}

/* На главной первые две секции отрисовываются сразу, остальные — по мере прокрутки.
   HTML остаётся на странице, поэтому содержимое доступно поисковым системам. */
@supports (content-visibility: auto) {
  body.home main > section:nth-of-type(n + 3) {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
  }
}

/* LCP: крупная карточка услуг использует настоящий img, чтобы браузер мог
   начать загрузку с fetchpriority=high ещё при разборе HTML. */
.services_feature { background-image: none !important; }
.services_feature::before { display: none; }
.services_feature-image { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.02); transition: transform .45s ease; }
.services_feature:hover .services_feature-image { transform: scale(1.08); }

@media screen and (min-width: 1920px) {
  .main-reviews_text {
    zoom: 0.8;
  }
}
.pagination .pagination_gap {
  background: transparent;
}