/**
 * Theme Name: Provar
 * Description:  Тема для сайта provar.ru
 * Author: Provar
 * Template: blocksy
 * Text Domain: provar
 */

/* Верхнее меню (адрес)*/

.hed_menu_top {
  font-size: 12px;
  display: inherit;
}

/* две колонки выпадающего меню */

@media (min-width: 1000px) {
    li.two-col-menu > ul.sub-menu {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        min-width: 450px !important; 
    }
}

/* Юбщие */

.no-line-height {
	line-height: 0;
}

/* Главная (элементор) */

/* Шапка (таб) */

.tab-hoverpro .e-n-tab-title span {
	cursor: pointer;
}

/* Виды сварки */

.bd-sc-hover:before {
	transition: background-size 0.3s ease-in-out !important;
	background-size: 100% 100%;
}

.bd-sc-hover:hover:before {
	background-size: 120% 100%;
}

/* Почему три способо (спойлер) */

:root {
    --spoiler-bg-color: var(--theme-palette-color-6); /* Цвет фона твоего сайта (для градиента) */
    --spoiler-collapsed-height: 150px; /* Высота в свернутом виде */
    --spoiler-link-color: var(--theme-palette-color-1); /* Цвет стрелки */
    --spoiler-link-hover: #202020;
}

.text-spoiler-wrapper {
    max-width: 1000px;
    margin: 0 auto 20px;
    position: relative;
}

.text-spoiler {
    position: relative;
    overflow: hidden;
    max-height: var(--spoiler-collapsed-height);
    /* Анимация высоты */
    transition: max-height 0.5s ease-in-out; 
}

/* Градиент внизу текста */
.text-spoiler::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Высота эффекта затухания */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--spoiler-bg-color) 100%);
    transition: opacity 0.5s ease-in-out;
    pointer-events: none; /* Чтобы можно было выделять текст под градиентом */
}

/* Убираем градиент, когда блок раскрыт */
.text-spoiler.is-expanded::after {
    opacity: 0;
}

/* Стили кнопки */
.text-spoiler__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--spoiler-link-color);
    outline: none;
	transition: .3s;
}

.text-spoiler__btn:hover {
    color: var(--spoiler-link-hover);
}

/* СТРЕЛКА НА ЧИСТОМ CSS */
.text-spoiler__btn::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-top: -5px; /* Корректировка по центру */
    /* Рисуем уголок */
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    /* Поворачиваем вниз */
    transform: rotate(45deg);
    transition: transform 0.3s ease;
	transition: .3s;
}

/* Стрелка вверх при раскрытии */
.text-spoiler__btn.is-expanded::after {
    transform: rotate(225deg); /* Поворот вверх */
    margin-top: 5px;
}

/* Блок услуг */

.pro-servises-block .pro-servises-block-hover {
  opacity: 0.6;
  transition: .4s;
  line-height: 0;
  transform: scale(1);
   will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.pro-servises-block:hover .pro-servises-block-hover {
  transform: scale(1.02);
  opacity: 0.3;
}

/* Отзывы */

.w2rr-ratings-overall-stars {
  width: 60px;
  display: inline-block;
  font-size: 13px;
}

h4.w2rr-review-title a {
	font-weight: 500;
}

h4.w2rr-review-title a:hover {
	color: #202020;
}

/*  */

.home .w2rr-review-summary {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -moz-box;
  -moz-box-orient: vertical;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  box-orient: vertical;
}

.home .w2rr-reviews-block-content article{
	background-color: var(--theme-palette-color-5)!important;
	border-radius: 10px;
	box-shadow: 0px 5px 20px -3px rgba(0,0,0,0.1);
	padding: 30px;
}

@media screen and (max-width: 768px) {
  .home .w2rr-reviews-block-content article{
	padding: 20px;
}
}

@media screen and (max-width: 748px) {
  .home .w2rr-reviews-block-content article{
	margin-bottom: 20px;
}

  .home .w2rr-reviews-block-content article:nth-child(3){
	margin-bottom: 0px;
}
}
/* Конец.Главная (элементор) */

/* Раздел видео (внутрь поста) */

/* --- Глобальный контейнер и сетка (Grid с управлением областями) --- */
.video-page-container {
    max-width: 1400px;
    margin: 0 auto;
}

.video-breadcrumbs {
    margin-bottom: 20px;
}

.video-layout-grid {
    display: grid;
    grid-template-columns: 1fr 400px; /* Левая часть - гибкая, правая - 400px */
    grid-template-areas: 
        "content sidebar"
        "comments sidebar"; /* Сайдбар занимает всю правую высоту на ПК */
    gap: 30px;
    align-items: start;
}

/* Присваиваем блоки их областям в сетке */
.video-main-content { grid-area: content; }
.video-sidebar { grid-area: sidebar; }
.video-comments-section { grid-area: comments; }

/* --- Главная колонка (Видео + Текст) --- */
/* --- Мета-информация под заголовком (video-top-box) --- */
.video-title {
    font-weight: 500;
    margin-bottom: 8px; /* Уменьшаем отступ снизу, чтобы дата была ближе к заголовку */
}

.video-top-box {
    display: flex;
    align-items: center;
    gap: 8px; /* Расстояние между датой, точкой и комментариями */
    font-size: 14px;
    color: var(--theme-palette-color-7); /* Серый цвет для текста */
    margin-bottom: 20px; /* Отступ вниз до видео */
}

/* Разделитель (точка) между датой и комментариями */
.video-meta-divider {
    color: #636363;
    font-size: 16px;
    line-height: 1;
}

/* Ссылка на комментарии */
.video-comments-text-link {
    color: var(--theme-palette-color-7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.video-comments-text-link:hover {
    color: var(--theme-palette-color-1); /* Цвет темы при наведении */
}

.video-player-and-desc {
    padding-bottom: 0;
    border-top: none; 
    margin-bottom: 20px;
}

.video-player-and-desc iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    border: none;
    margin-bottom: 20px;
    background-color: #000;
}

.video-player-and-desc {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--theme-palette-color-9, #eaeaea);
    margin-bottom: 20px;
}

/* --- Правая колонка (Сайдбар) --- */
.sidebar-heading {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 500;
}

.sidebar-video-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Карточка видео: выравнивание по центру по вертикали */
.sidebar-video-card {
    display: flex;
    align-items: center; /* Центрирует картинку и текст относительно друг друга */
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

/* Эффект наведения на текст карточки */
.sidebar-video-card:hover .sidebar-video-title {
    color: var(--theme-palette-color-1, #0073aa);
}

/* --- Эффекты наведения на миниатюру (Затемнение + Play) --- */
.sidebar-video-thumb {
    width: 160px;
    flex-shrink: 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f0f0f0;
}

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

.video-hover-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Полупрозрачный черный фон */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Скрыто по умолчанию */
    transition: opacity 0.3s ease; /* Плавное появление */
}

.sidebar-video-card:hover .video-hover-overlay {
    opacity: 1; /* Появляется при наведении */
}

/* Заглушка, если нет картинки */
.no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
}

.sidebar-video-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-video-title {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    font-weight: 600;
    transition: color 0.3s ease;
}

.sidebar-video-date {
    font-size: 12px;
    color: #777;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 1024px) {
    .video-layout-grid {
        grid-template-columns: 1fr 320px;
    }
    .sidebar-video-thumb {
        width: 130px;
    }
}

@media (max-width: 850px) {
    /* Перестраиваем порядок блоков: Контент -> Сайдбар -> Комментарии */
    .video-layout-grid {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "content"
            "sidebar"
            "comments";
    }
    
}

@media (max-width: 480px) {
    .sidebar-video-card {
        flex-direction: column; 
        align-items: flex-start; /* На телефонах картинка сверху, текст под ней, выравнивание по левому краю */
    }
    .sidebar-video-thumb {
        width: 100%;
    }
    .video-title {
        font-size: 20px;
    }
}

/* Раздел портфолио */

/* filtr */
.my-portfolio-filters {
	margin-bottom: 30px;
}

.portfolio-tags-filter {
    margin-bottom: 50px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.entry-header.portfolio-archive-header h1 span {
    font-weight: 400;
}

.portfolio-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--theme-palette-color-9);
    color: var(--theme-palette-color-7);
    text-decoration: none;
    border-radius: 50px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.portfolio-tag:hover {
    color: var(--theme-palette-color-1);
}

.portfolio-tag.active {
    background: var(--theme-palette-color-1);
    color: #fff;
    border-color: transparent;
}

/* Изменить цвет названия тега в заголовке */

.portfolio-tag-title {
    color: var(--theme-palette-color-1);
}

/* одиночная запись портфолио */

/* img post */
.wp-block-gallery,
.wp-block-image {
    margin-bottom: 50px;
	margin-top: 50px;
}

/* стили модал в портфолио */
.pswp__icn-shadow {
    stroke-width: 0;
}

/* цвет подписи картинок */
.wp-block-image :where(figcaption) {
  color: #888;
}

/* Обёртка галерейного элемента */
.wp-block-gallery .wp-block-image,
.wp-block-image {
    position: relative;
    overflow: hidden;
}

.wp-block-gallery .wp-block-image img,
.wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.wp-block-gallery .wp-block-image:hover a img,
.wp-block-image:hover a img {
    transform: scale(1.02);
}

/* Затемнение*/
.wp-block-gallery .wp-block-image a::before,
.wp-block-image a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    display: block;
}

.wp-block-gallery .wp-block-image a::after,
.wp-block-image a::after {
    content: "＋";
    font-size: 32px;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.wp-block-gallery .wp-block-image:hover a::before,
.wp-block-gallery .wp-block-image:hover a::after,
.wp-block-image:hover a::after,
.wp-block-image:hover a::before {
    opacity: 1;
}


/* =========================================
   Шапка проекта (Hero Header)
========================================= */
.project-hero-header {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #333;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 50px;
    padding-top: 100px;
    color: #fff;
    margin-top: -1px;
}

.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.project-hero-content {
    position: relative;
    z-index: 2;
}

.project-breadcrumbs {
    margin-bottom: 20px;
}
.project-breadcrumbs nav,
.project-breadcrumbs a,
.project-breadcrumbs span {
    color: rgba(255, 255, 255, 0.5) !important;
    transition: .4s;
}

.project-breadcrumbs nav a span:hover {
    color: var(--theme-palette-color-1) !important;
}

.project-title {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

/* =========================================
   Мета-строка (Услуги + Комментарии)
========================================= */
.project-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    font-size: 0.95rem;
}

.project-services {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-label {
    font-weight: 600;
    color: #fff;
}

.services-inline-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.services-inline-list li a {
    color: var(--theme-palette-color-1);
    text-decoration: none;
    text-decoration-color: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}

.services-inline-list li a:hover {
    color: var(--theme-palette-color-1);
	text-decoration: underline;
}

.project-comments-anchor {
    display: flex;
    align-items: center;
}

.project-comments-anchor::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    margin-right: 20px;
}

.scroll-to-comments {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.scroll-to-comments:hover {
    color: var(--theme-palette-color-1);
}

/* =========================================
   Ширина и центрирование контента
========================================= */
/* Контент записи: макс ширина 1000px по центру */
.project-main {
    max-width: 1000px;
    margin: 0 auto; 
}

/* Похожие работы: макс ширина 1000px (вровень с контентом) */
.project-related-section {
    max-width: 1000px;
    margin: 60px auto 0 auto; /* 60px отступ сверху, авто по бокам */
    padding-top: 40px;
    border-top: 1px solid var(--theme-palette-color-9);
}

/* Комментарии: макс ширина 700px по центру */
.project-comments-section {
    max-width: 700px;
    margin: 60px auto 0 auto;
}


/* =========================================
   Похожие работы (Related Projects Grid)
========================================= */
.project-related-section h3 {
    margin-bottom: 25px;
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

.related-project-card h4 {
    transition: 0.3s ease;
}

.related-project-card:hover h4{
    color: var(--theme-palette-color-1);
}

.related-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #f5f5f5;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
	transform: scale(1);
}

.related-project-card:hover .related-thumb img {
    transform: scale(1.02);
}

.related-title {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
    color: #333;
}

/* =========================================
   Адаптивность (Медиазапросы)
========================================= */
@media (max-width: 992px) {
    .project-title { font-size: 2.5rem; }
    .related-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .project-hero-header { min-height: 300px; padding-top: 60px; }
    .project-title { font-size: 2rem; }
    
    .project-meta-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .project-comments-anchor::before { display: none; }
    .project-comments-anchor { margin-top: 5px; }
    
    .related-projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Конец. Раздел портфолио */

/* Страница Услуги Range Rover */

/* для видео */

.videowp {
	height: 0;
	position: relative;
	padding-bottom: 56.25%;
}

.videowp iframe {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
}

/* v2 */

.postvideo {
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
}

.postvideo iframe {
	width: 100%;
	height: 100%;
	border: none;
}

/* форма заявки */
.block-element-form form input[type="text"],
.block-element-form form input[type="tel"] {
	border: none;
	background: #fff;
	height: 64px;
	padding: 20px;
	margin-bottom: 15px;
}

.block-element-form [type="submit"] {
  padding: 11px 15px;
  cursor: pointer;
  border: 0;
  margin-top: 0px;
  color: #fff;
  border-radius: 5px;
  transition: .3s;
  display: block;
  width: 100%;
  height: 64px;
  border-radius: 5px !important;
}

/* конец. Страница Услуги Range Rover */

/* Форма отправки заявок на страницах обучение */

#pr_forms {
	display: flex;
    gap: 50px;
}

#pr_forms form p {
    margin-bottom: 10px !important;
}

@media screen and (max-width: 548px) {
#pr_forms {
    flex-direction: column;
}
}

/* выделить автора коммента */

.ws_auth_comm {
  position: relative;
  display: inline-flex;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #222;
  cursor: default;
  margin-left: 3px;
  vertical-align: middle;
  margin-bottom: 1px;
}

/* Галочка */
.ws_auth_comm::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

/* Tooltip */
.ws_auth_comm::after {
  content: attr(data-role);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(6px) scale(0.95);

  background: rgba(20,20,20,0.95);
  color: #fff;
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 4px;
  white-space: nowrap;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: all 0.18s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.ws_auth_comm:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}
/* конец.выделить автора коммента */

/* Подвал сайта */

/* Виджет контакты */
.footer-contacts .contact-item::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: 8px;
}

/* Иконки */
.footer-contacts .phone::before {
	background: url('/wp-content/uploads/2026/03/phone.svg') no-repeat center/contain;
}

.footer-contacts .email::before {
	background: url('/wp-content/uploads/2026/03/email.svg') no-repeat center/contain;
}

.footer-contacts .telegram::before {
	background: url('/wp-content/uploads/2026/03/telegram.svg') no-repeat center/contain;
}

.footer-contacts .address::before {
	margin-right: 0px!important;
	width: 0px;
	height: 0px;
}
/*конец.Подвал сайта */

/* Шорткоды */

/* Вывод постов из портфолио */

.my-custom-grid {
    display: grid;
    gap: 30px;
}

.my-custom-grid.my-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.my-custom-grid.my-grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.my-grid-item {
    background: transparent;
    border: none;
}

.my-grid-item a {
    text-decoration: none;
    display: block;
}

.my-grid-thumb {
    overflow: hidden;
    border-radius: 8px;
    /* Устраняет дергание краев контейнера в Safari/Chrome */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.my-grid-thumb img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: transform 0.3s ease;
    
    /* Аппаратное ускорение (убирает дергание и размытие при анимации) */
    transform: translateZ(0) scale(1);
    backface-visibility: hidden;
    will-change: transform;
}

.my-grid-item:hover .my-grid-thumb img {
    transform: translateZ(0) scale(1.02);
}

.my-grid-content {
    padding-top: 15px;
    text-align: left;
}

.my-grid-term {
    display: block;
    font-size: 13px;
    color: var(--theme-palette-color-7);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.my-grid-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    transition: all 0.3s;
}

.my-grid-item:hover .my-grid-title {
    color: var(--theme-palette-color-1);
}

/* --- АДАПТИВНОСТЬ --- */

@media (max-width: 992px) {
    .my-custom-grid.my-grid-cols-3,
    .my-custom-grid.my-grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .my-custom-grid.my-grid-cols-3,
    .my-custom-grid.my-grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    /* Меняем пропорции картинки для мобильных устройств */
    .my-grid-thumb img {
        aspect-ratio: 16/9;
    }
}