﻿* {
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: normal;
    line-height: 1.6;
}

.background-image {
	position: fixed;
	top: 0;
	right: 0;
	opacity: 20%;
	z-index: -1; /* Помещаем изображение на задний план */
}
	
/* выезжающая панель контактов */	
.panel {
    position: fixed;
    bottom: 100px; /* Измени эту позицию, чтобы настроить вертикальное положение панели */
    left: -60px; /* Измени эту позицию, чтобы настроить горизонтальное положение панели */
    background-color: #000000;
    padding: 15px 5px 15px 25px;
    border-radius: 0px 27px 27px 0px;
	z-index:5;
	display: flex;
    flex-direction: row;
	transition: transform 0.5s ease;
}

.panel a {
    display: block;
    text-decoration: none;
    color: #333;
}

.panel:hover{
	transform: translateX(50px);		
}

.contacts_logo {
	width: 30px;
    height: 30px;
	margin-bottom: 10px;
	transition: transform 0.2s linear;
}

.contacts_logo:hover {
	transform: scale(1.5);
	margin-bottom: 10px;
}

.contacts_logo_last {
	width: 30px;
    height: 30px;
	transition: transform 0.2s linear;
}
.contacts_logo_last:hover {
	transform: scale(1.5);
}

.contacts_text {
	font-size: 20px;
	color: white;
	text-align: center;
    writing-mode: vertical-rl;
}

.container {
	display: flex;
	flex-direction: column;
}
   
@keyframes slidein {
  from {
    opacity: 0%;
  }

  to {
    opacity: 100%;
  }
}

/* Animation gear */

.gear {
    width: 360px;
    grid-column: 3;
    grid-row: 1;
    margin: 10px 40px 0px 0px;
    display: grid;
    grid-template-rows: 275px auto;
	animation: showText 1.4s forwards;
    transform: translateY(30px);
}

.gear_img_1 {
    grid-column: 1;
    grid-row: 1;
    width: 275px;
    height: 275px;
    animation: rotate_1 13s linear infinite;
}

.gear_img_2 {
    grid-column: 1;
    grid-row: 2;
    width: 170px;
    height: 170px;
    justify-self: center;
    margin-top: 3px;
    animation: rotate 12s linear infinite;
}

.gear_img_3 {
    grid-column: 1;
    grid-row: 2;
    width: 127px;
    justify-self: right;
    margin-top: -70px;
    animation: rotate 11s linear infinite;
}

@keyframes rotate_1 {
    from {
        transform: rotate(360deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(-360deg);
    }
}

.anime_text {
    animation: showText 1.4s forwards;
    transform: translateY(20px);
}

@keyframes showText {
    0%,
    40% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

@media screen and (max-width:960px) {
    .gear_img_1,
    .gear_img_2,
    .gear_img_3 {
        width: auto;
        height: auto;
    }
    .gear_img_2 {
        margin-top: -56px;
    }
    .gear_img_3 {
        margin-top: -108px;
        margin-left: 20px;
    }
}

/* body main */
.element_main {
    width: 100%;
    max-width: auto;
    margin: 0px auto;
}

/* 1. КОНТЕЙНЕР КАРТОЧЕК */
.stats_box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start; /* Карточки не растягивают друг друга по высоте */
    gap: 20px;
    margin-top: 40px;
}



h1 {
    margin: 0;             /* Обнуляем внешние отступы, управляем ими через контейнер выше */
    line-height: 1.2;      /* Даем буквам пространство, чтобы они не касались краев блока */
    /*font-size: 5.5vw;  Шрифт будет составлять 5.5% от ширины экрана */
    white-space: nowrap; /* Запрещает перенос текста на новую строку */
    font-size: clamp(24px, 5.5vw, 64px); 
}

h3 {
    margin-top: 10px;
    margin-bottom: 28px;
    font-size: 24px;
    font-weight: 28;
    text-transform: none;
    text-align: center;
    line-height: 1;
}

h4 {
    margin-top: 0px;
    margin-bottom: 8px;
    font-size: 64px;
}

h5 {
    margin-top: 0px;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 28;
    text-transform: none;
    text-align: center;
    line-height: 1;
}




/* Immag */

.img_svc_old {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    margin-top: 15px;
}


.text_parent {
	display: flex;
	justify-content: center;
    	align-items: flex-start;
	padding: 40px 0 40px 0;
	margin: 0px 50px 0px;
	text-align: center;
}

/* 3. ВСПЛЫВАЮЩИЙ БЛОК С ОПИСАНИЕМ (ОБЛАКО) */
.text_parent_item {
    /* ПОЗИЦИОНИРОВАНИЕ: Блок парит над страницей */
    position: absolute;
    top: 100%;               /* Появляется сразу под карточкой */
 	left: 0;             /* Прижимаем само облако ровно к левому краю карточки */            
    transform: translateY(15px); /* Смещение вниз для анимации */
    z-index: 150;            /* Выше обычных карточек, но ниже активной (:hover) */
  
    /* ГЛАВНОЕ: Мышка игнорирует этот блок, события летят на карточку под ним */
    pointer-events: none;    
  
    /* ГЕОМЕТРИЯ ПРЯМОУГОЛЬНИКА */
    width: 100%;             /* Шире карточки для солидности */
    min-width: 300px;
    height: auto;

    padding: 30px 25px;  /* 30px — отступы сверху/снизу, 25px — СЛЕВА и справа */
    box-sizing: border-box;
    text-align: left;    /* Принудительно выравниваем текст влево */

    /* ВИЗУАЛ (ЭФФЕКТ СТЕКЛА) */
    background: rgba(15, 15, 15, 0.9); /* Почти черный, очень плотный фон 0.95 */
    backdrop-filter: blur(20px);         /* Сильное размытие заднего плана */
    -webkit-backdrop-filter: blur(20px);

  /* 2. ВИЗУАЛЬНЫЙ ОБЪЕМ */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Светлая рамка, чтобы отделить от фона */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6),  /* Глубокая внешняя тень */
                inset 0 0 15px rgba(255, 255, 255, 0.05); /* Легкое внутреннее свечение */
    border-radius: 20px;
    
      /* 3. ТЕКСТ (Делаем максимально четким) */
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); /* Тень у букв для читаемости */
    font-weight: 400;
    letter-spacing: 0.5px;

    line-height: 1.6;        /* Даем строкам больше пространства */
    word-wrap: break-word;   /* На всякий случай: перенос длинных слов */

    /* АНИМАЦИЯ ПОЯВЛЕНИЯ */
    display: none;           /* Управляется через JS */
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


/* СОСТОЯНИЕ АКТИВАЦИИ (Через JS style.display) */
.text_parent_item[style*="display: inline-block"] {
    opacity: 1;
    transform: translateY(0); 
}
/* Состояние, когда блок ЗАФИКСИРОВАН кликом (таймер идет) */
.text_parent_item.active-click {
    pointer-events: auto; /* Теперь на него МОЖНО нажать, чтобы закрыть */
    cursor: pointer;      /* Показываем "ручку" */
}

@media screen and (max-width: 600px) {
    .text_parent_item {
        height: auto;        /* Всегда авто-высота */
        padding: 10px 10px;  /* Чуть меньше отступов для узких экранов */
        font-size: 0.9rem;   /* Немного уменьшим шрифт, чтобы влезло больше текста */
    }
}



/* 2. САМА КАРТОЧКА УСЛУГИ */
.trigger-area {
    position: relative;     /* Точка отсчета для всплывающего окна */
    width: 440px;
    max-width: 100%;
    padding: 25px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    transition: background 0.3s ease, transform 0.2s ease, z-index 0s;
    cursor: default;
    z-index: 1;             /* Обычное состояние — внизу */
}

/* 4. СПИСОК УСЛУГ ВНУТРИ КАРТОЧКИ (для порядка) */
.trigger-area ul {
    list-style-position: inside;
    margin-top: 15px;
    padding-left: 0;
}

.trigger-area li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* Когда навели на карточку, она становится ГЛАВНЕЕ всех всплывших чужих окон */
.trigger-area:hover {
	cursor: pointer;
    background-color: rgba(211, 211, 211, 0.3);
    transform: translateY(-5px);
    z-index: 200;           /* Взлетает над всеми соседями и их текстами */
}


/* Если блок зафиксирован кликом (10 сек), он тоже должен быть сверху */
.trigger-area:active, 
.trigger-area:focus-within {
    z-index: 10;
}

/* Возвращаем главный заголовок в центр */
#dataArea0 {
    display: flex;
    flex-direction: column;
    align-items: center;    /* Центровка h1 */
    justify-content: center;
    text-align: center;
    width: 100%;
    position: relative;     /* База для всплывающего окна */
}

/* Специальная настройка для всплывашки под главным заголовком */
#dataArea0 .text_parent_item {
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: auto;
    min-width: 400px;
    max-width: 90vw;
    text-align: center; /* Текст тут лучше отцентрировать */
}

/* Состояние активации для окна под заголовком */
#dataArea0 .text_parent_item[style*="display: inline-block"] {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(10px) !important;
}

#dataArea1,
#dataArea2,
#dataArea3,
#dataArea4 {
	display: none;
}






#dataArea71 {
}




.main__services {
    display: grid;
    text-align: center;
    grid-column-gap: 20px;
    grid-row-gap: 10px;
    grid-template-columns: 1fr 1fr 1fr;
    margin: 50px auto;
    padding: 0px 10px 0px;
}



.box__servis1 {
    width: 100%;
   grid-column: 1;
    grid-row:1;
}

.box__servis2 {
    width: 100%;
   grid-column: 2;
    grid-row:1;
}

.box__servis3 {
    width: 100%;
   grid-column: 3;
    grid-row:1;
}

@media screen and (max-width:960px) {
.main__services {
    display: grid;
    text-align: center;
    grid-column-gap: 0px;
    grid-row-gap: 10px;
    grid-template-columns: 1fr;
    margin: auto;
}

.box__servis1 {
    grid-column: 1;
    grid-row:2;
}

.box__servis2 {
    grid-column: 1;
    grid-row:1;
}

.box__servis3 {
   grid-column: 1;
    grid-row:3;
}
}


/* Drow black block */

.block_black {
    height: 30px;
    max-width: auto;
    padding: 0;
    margin: 0;
}

.rectangle__black {
    content: "";
    width: 100%;
    height: 30px;
    background: #000;
    margin: auto auto;
    margin-top: 50px;
}

.text_end_block {
    padding: 5px 5px 5px 5px;
    grid-template-columns: 6fr;
    color: white;
}

.box_black {
	display: grid;
	grid-row-gap: 4px;
    	grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
	
}


.box_text_11 {
	grid-column: 1;
	grid-row:1;
	margin: 0 auto;
}

.box_text_12 {
	grid-column: 2;
	grid-row:1;	
	margin: 0 auto;
}

.box_text_13 {
	grid-column: 3;
	grid-row:1;
	margin: 0 auto;		
}

.box_text_14 {
	grid-column: 4;
	grid-row:1;
	margin: 0 auto;		
}

.box_text_15 {
	grid-column: 5;
	grid-row:1;		
	margin: 0 auto;
}

.box_text_16 {
	grid-column: 6;
	grid-row:1;
	margin: 0 auto;		
}


@media screen and (max-width:960px) {
    .rectangle__black {
        height: auto;         /* Убираем жесткий лимит в 100px */
        padding: 20px 10px;   /* Даем контенту дышать сверху и снизу */
        margin-top: 50px;     /* Оставляем отступ от контента выше */
    }
    .text_end_block {
        padding: 5px 0px 0px 5px;
        grid-template-columns: 1fr 1fr;
        color: white;
    }

	.box_black {
	display: grid;
	grid-row-gap: 4px;
    	grid-template-columns: 1fr 1fr;

	}

	.box_text_11 {
	grid-column: 1;
	grid-row:1;
	}

	.box_text_12 {
	grid-column: 1;
	grid-row:2;
	}

	.box_text_13 {
	grid-column: 1;
	grid-row:3;
	}

	.box_text_14 {
	grid-column: 2;
	grid-row:1;
	}

	.box_text_15 {
	grid-column: 2;
	grid-row:2;		
	}

	.box_text_16 {
	grid-column: 2;
	grid-row:3;
	}
}

