/*
Theme Name: Helia1221
Author: Burakov Alexander
Version: 1.0
*/

/*
0. Переменные
1. Общие стили блоков
2. 

*/

/*--------------------
0. Переменные
--------------------*/
:root {
    --header-bg-color: #27272786;
    --header-text-color: #ffffff;
    --header-bg-gradient: linear-gradient(to right, rgba(29, 29, 29, 0.596), rgba(66, 66, 66, 0.651), rgba(0, 0, 0, 0.589));
    --control-button-color: #1b1b1b;
    --background-color: #ffffff;
    --text-color: #000000;
    --primary-color: #421003a8;
    --secondary-color: #ff6b6b;
    --button-bg-color: var(--primary-color);
    --button-text-color: #ffffff;
    --border-color: #dddddd;
    --border-radius: 8px;
    --hover-bg-color:var(--primary-color);
    --box-shadow: 0px 0px 9px 3px rgba(0, 0, 0, 0.3);
    --item-width: 180px;
    --item-height: 130px;
}

[data-theme="dark"] {
    --header-bg-color: #ffffffd0;
    --header-text-color: #000000;
    --header-bg-gradient: linear-gradient(to right, rgba(255, 255, 255, 0.568), rgba(255, 255, 255, 0.623), rgba(255, 255, 255, 0.493));
    --background-color: #121212;
    --text-color: #ffffff;
    --primary-color: #8ab4f8;
    --secondary-color: #ff8a80;
    --button-bg-color: var(--primary-color);
    --button-text-color: #ffffff;
    --border-color: #444444;
}


/*--------------------
1. Общие стили блоков
--------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@media (min-width:2100px){
.shapedividers_com-4031::before{
background-size: 100% calc(2vw + 90px);
}
}
 

@media (min-width:2100px){
.shapedividers_com-4023::before{
background-size: 100% calc(2vw + 90px);
}
}
 

body {
    min-height: 100vh;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.7s, color 0.7s;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
}
.animated-title {
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transform: scale(0.95); 
    transition: opacity 2.2s ease, transform 3.8s ease;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
}
.header {
    width: 100%;
    transform: scale(1); 
    position: fixed;
    top: 0;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(7px);
    z-index: 10;
    opacity: 0;
    transition: background-color 0.7s, color 0.7s, opacity 3s;
}
.header__container {
    min-height: 80px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.header__container * {
    color: white;
    mix-blend-mode: exclusion;
}

.header__menu {
    display: flex;
    flex-direction: row;
    gap: 10px;
}
section {
    height: auto;
}

footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

button {
    background-color: var(--button-bg-color);
    color: var(--button-text-color);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    cursor: pointer;
}

.promoblock {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.promoblock::before {
    background: #000000 url(/wp-content/themes/helia1221/media/images/front-page/background-pattarn.png) repeat scroll 0 0;
    content: "";
    height: 100%;
    left: 0;
    opacity: 0.63;
    position: absolute;
    top: 0;
    width: 100%;
}

.promoblock__video {
    width: 100%;
    height: 100vh;
    align-self: center;
    object-fit: cover;
}

.promoblock__container {
    overflow: hidden;
}

.promoblock__title--first {
    font-size: 4vw;
    color:white;
    position: absolute;
    bottom: 14%;
    left: 4%;
    transition-delay: 0.6s;
}

.promoblock__title--second {
    font-size: clamp(24px, 6vw, 80px);
    color:white;
    position: absolute;
    bottom: 6%;
    left: 4%;
    transition-delay: 1.2s;
}

.promoblock__title--third {
    display: block;
    height: 100vh;
    font-size: clamp(68px, 12vw, 300px); /* min, ideal, max */
    line-height: 0.75em;
    color:white;
    position: absolute;
    top: 300px;
    left: 0;
    right: 0;
    transition-delay: 2.3s;
    transform: scale(0.9); 
}
.promoblock__title--four {
    font-size: clamp(68px, 160px, 218px); /* min, ideal, max */
    color:white;
    position: absolute;
    top: 38%;
    left: 0;
    right: 0;
    transition-delay: 2.4s;
    transform: scale(0.9); 
}
/* Класс для активации анимации */
.animated-title.visible {
    opacity: 1; /* Полная видимость */
    transform: scale(1); /* Возвращаем к нормальному размеру */
}

.service-archive {
    margin-top: 80px;
}

.main-heading {
    background-color: black;
    background-image: url('https://helia1221.ru/wp-content/uploads/2025/10/d0edb6c6ab8d451f2ad73fe197ab8408.jpg');
    background-size: cover;
    background-position: center;
}


/*--------------------------------------*/
/*------------FLEXBOX STYLE-------------*/
/*--------------------------------------*/

.flexbox {
    margin: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.block_item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    flex: 1 1 250px;
    aspect-ratio: 1 / 0.7;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background: rgba(206, 205, 205, 0.116);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(10px);
    color: rgb(255, 255, 255);
    overflow: hidden;

    /* Начальное состояние: скрыт */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Класс, добавляемый при появлении в области видимости */
.block_item.visible {
    opacity: 1;
    transform: translateY(0);
}

.block_item:hover, .hor_slider_item:hover {
    transform: translateY(0) scale(1);
    transition: transform 0.1s ease;
    cursor: pointer;
    box-shadow: 0px 0px 0px 3px rgb(255 255 255 / 91%);
}

.block_item .block-image {
    width: 100%;
}

.block_item .block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ← сохраняет пропорции и заполняет весь блок */
    display: block;
}

video::-webkit-media-controls {
  display: none !important;
}

/* Убираем фокус и контуры */
video {
  outline: none !important;
  pointer-events: none; /* ← делает видео "неактивным" для кликов */
}

/*--------------------------------------*/
/*----------HORIZONTAL SLIDER-----------*/
/*--------------------------------------*/

.slider {
    position: relative;
}

.horizontal_slider {
    padding: 10px;
    scroll-behavior: smooth;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    flex-direction: row;
    gap: 5px;
    margin: 30px;
    scrollbar-width: none; /* 'auto' | 'thin' | 'none' */
    -ms-overflow-style: none;
}

.hor_slider_item {
  min-width: 240px;
  height: 340px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transform: translateY(0) scale(1);
  transition: transform 0.1s ease-out;
}

.hor_slider_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.prev, .next {
    font-size: 22px;
    display: block;
    width: 56px;
    height: 80px;
    border-radius: 12px;
    padding: 0;
    position: absolute;
    top: 50%;
    transform:translateY(-50%) scale(0);
    border: none;
    background: var(--control-button-color);
    opacity: 0.3;
    transition: opacity 0.3s ease, transform 0.15s ease-out;
    z-index: 10;
}

.prev {
    left: 40px;
}

.next {
    right: 40px;
}

.slider:hover .prev, .slider:hover .next {
    opacity:0.55;
    transform: translateY(-50%) scale(0.92);
    transition: transform 0.15s ease-out, opacity 0.15s ease-out;
}

.slider:hover .prev:hover, .slider:hover .next:hover {
    opacity: 0.77;
    transform: translateY(-50%) scale(1);
    transition: transform 0.15s ease-out, opacity 0.15s ease-out;
}

#imageModal {
  display: none;
}

#imageModal[open] {
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.92);
  max-width: 95vw;
  max-height: 95vh;
  z-index: 1000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

#imageModal::backdrop {
  background: rgba(0,0,0,0.8);
}

#modalImage {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  margin: 2rem auto 1rem;
  object-fit: contain;
  border: none;
}

#closeModal {
outline: none;
  position: absolute;
  color: #000000;
  top: 1rem;
  right: 1rem;
  background: white;
  border: none;
  font-size: 2rem;
  border-radius: 12px;
  cursor: pointer;
  z-index: 10;
}

#modalCaption {
  color: white;
  text-align: center;
  padding: 0 1.5rem 1.5rem;
  font-size: 1.1rem;
  line-height: 1.4;
  max-width: 90vw;
  margin: 0 auto;
  opacity: 0.9;
}

.parallax-layer {
  background-size: 140% !important;
  background-position: center !important;
}