:root {
    /* Цветовая схема */
    --primary-color: #08a1fd; /* цвет неба, самый верх */
    --secondary-color: #0489d9; /* чуть темнее цвета неба. исп Кнопки */
    --light-color: #9bd9fe; /* цвет неба, ближе к горизонту */
    --dark-color: #057dc5; /* Кнопки при наведении, Заголовки на светлом фоне */
    
    /* Общие визуальные элементы */
    --font-main: 'Roboto Condensed', Tahoma, Sans-Serif;
    --border-radius: 12px;
    --text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    --text-shadow-strong: 1px 1px 2px rgba(0, 0, 0, 0.7);
    --shadow-default: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 12px 20px rgba(0, 0, 0, 0.3);
    
    /* Временные параметры */
    --time-transition: 0.3s;
    --time-blackout: 0.5s;
}

/* Базовые стили */
html, body {
    font-family: var(--font-main);
	font-size: 62.5%;	/* 10px */
    font-weight: 300;
    width: 100%;
    height: max-content;
    margin: 0;
    padding: 0;
    background: linear-gradient(var(--secondary-color), white) no-repeat;
}

/* Типографика */
a {
    color: white;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

p {
    font-size: 2rem;
    margin: 1rem;
    text-align: justify;
    word-wrap: break-word;
    hyphens: auto;
}

ul {
    list-style-type: none;
    font-size: 2rem;
    margin: 1rem;
}

h1 {
    font-size: 3rem;
    color: white;
    font-weight: 500;
    text-align: center;
	text-transform: uppercase;
    text-shadow: var(--text-shadow);
}

h2 {
    font-size: 3rem;
    color: white;
    font-weight: 450;
    text-align: center;
    text-shadow: var(--text-shadow);
}

h3 {
    font-size: 2rem;
    word-spacing: -0.1rem;
    color: white;
    text-transform: uppercase;
    text-align: center;
    font-weight: 400;
    margin: 0;
}

h3 span {
    text-transform: none;
}

h4 {
    font-size: 2rem;
    color: white;
    font-weight: 300;
    margin: 0;
}

h4 span {
    text-transform: none;
}

/* Кнопки и интерактивные элементы */
h3 a, h4 a {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 3rem;
    transition: all var(--time-transition) ease;
    text-decoration: none;
}

h3 a:hover, h4 a:hover {
    background-color: var(--dark-color);
    transform: scale(1.05);
    text-decoration: none;
}

.get-document a {
    color: var(--dark-color);
}

.get-document a:hover {
    color: black;
    text-decoration: none;
}

/* Структура и компоновка */
.wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
}

.flex-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
	
}

section {
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Утилиты */
.tac {
	text-align:center;
}
.w80 {
	width: 75%;
}
.mt5 {
    margin-top: 5rem;
}
.mb5 {
    margin-bottom: 5rem;
}
.centered{
	margin-left: auto;
	margin-right: auto;
}
/* Хедер и навигация */
header {
	position: absolute;
	top: 1rem;
	z-index: 1;
    background-color: transparent;
	width: 100%;
}

.logo {
	width: 32rem;
	height: 8rem;
	background-color: transparent;
	object-fit: contain;
}

.h-menu a {
    position: relative;
    padding: 1rem 0;
    margin: 0 1.5rem;
    color: white;
    font-weight: 400;
    transition: all var(--time-transition) ease;
}

.h-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width var(--time-transition) ease;
}

.h-menu a:hover {
    text-decoration: none;
}

.h-menu a:hover:after {
    width: 100%;
}

/* Общие стили для figure */
figure {
    position: relative;
    z-index: 1;
    overflow: visible;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-default);
    transition: transform var(--time-transition), box-shadow var(--time-transition);
}

figure img {
    border-radius: var(--border-radius);
    transition: filter var(--time-blackout) ease;
}

figure figcaption {
    position: relative;
    padding: 1rem 0 ;
    margin: 0;
}

figure figcaption h3 {
    text-shadow: var(--text-shadow);
    margin-bottom: 1.5rem;
}

/* Продуктовые карточки */
.top-product {
    margin-top: 5rem;
    padding: 0;
    box-sizing: border-box;
    position: relative;
}

.top-product figure, .figure-fade {
    overflow: hidden;
    margin: 2rem;
    width: 30rem;
    height: 40rem;
}

.top-product figure img, .figure-fade img {
    width: 30rem;
    height: 40rem;
    filter: brightness(110%);
    backdrop-filter: brightness(80%);
}

.top-product figure figcaption, .figure-fade figcaption {
    position: absolute;
    top: 0;
    margin: 1rem 0 0;
}

.top-product figure figcaption p, .figure-fade figcaption p {
    opacity: 0;
    transform: translateY(.5rem);
    transition: opacity var(--time-blackout) ease, transform var(--time-blackout) ease;
	font-size: 1.6rem;
    line-height: 1.3;
    text-shadow: var(--text-shadow-strong);
    text-align: center;
    color: var(--light-color);
}

.top-product figure figcaption h3, .figure-fade figcaption h3 {
    color: white;
    text-align: center;
	line-height: 1.5;
}

.top-product figure:hover, .figure-fade:hover {
    transform: translateY(-.5rem);
    box-shadow: var(--shadow-hover);
}

.top-product figure:hover figcaption p {
    transform: translateY(0);
}

.top-product .figure-fade:hover img {
    filter: brightness(30%);
}

.top-product .figure-fade:hover figcaption p {
    opacity: 1;
}

/* Продуктовые карточки TECH */
.tech {
    margin: 0;
    padding: 2rem 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: 50% 50%;
}

.tech figure, .figure-fade {
    overflow: hidden;
    margin: 2rem;
    width: 30rem;
    height: 40rem;
}

.tech figure img, .figure-fade img {
    width: 30rem;
    height: 40rem;
    filter: brightness(110%);
    backdrop-filter: brightness(80%);
}

.tech figure figcaption, .figure-fade figcaption {
    position: absolute;
    top: 0;
}

.tech figure figcaption h3, .figure-fade figcaption h3 {
    color: white;
    text-align: center;
}

.tech figure:hover, .figure-fade:hover {
    transform: translateY(-.5rem);
    box-shadow: var(--shadow-hover);
}

.tech figure:hover figcaption p {
    transform: translateY(0);
}

.tech .figure-fade:hover img {
    filter: brightness(30%);
}

.tech .figure-fade:hover figcaption p {
    opacity: 1;
}


/* Специфические стили для секций */
.introduction figure {
    margin: 2rem 3rem 10rem;
    width: 15rem;
    height: 15rem;
}

.introduction figure img {
    width: 15rem;
    height: 15rem;
}

.introduction figure figcaption h3 {
    color: white;
}

.info-container-b figure {
    margin: 2rem 3rem 6rem;
    width: 30rem;
    height: 40rem;
}

.info-container-b figure img {
    width: 30rem;
    height: 40rem;
}

.get-document p {
    text-align: center;
	color: black;
}
.get-document figure:hover {
    transform: translateY(-.5rem);
    box-shadow: var(--shadow-hover);
}

/* Секции */
.banner {
    padding: 30rem 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: 50% 50%;
}

.info {
    background-image: url(/secret/img/fon-5-p.jpg);
    margin: 0;
    padding: 6rem 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
    background-position: 50% 50%;
}


/* Анимации */
.text-falling {
    animation: text-falling 5s 1;
    animation-fill-mode: forwards;
}

@keyframes text-falling {
    0% {
        transform: translateY(-8em);
    }
    100% {
        transform: translateY(4em);
    }
}

/* Слайдер с увеличенной высотой */
.slider-container {
    position: relative;
    overflow: hidden;
    margin: 2rem;
    width: 30rem;
    height: 40rem; /* Увеличена высота с 30em до 32em */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-default);
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slider figure {
    overflow: hidden;
    margin: 0;
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.slider figure figcaption {
    margin: 0;
    padding: 1rem; /* Увеличен вертикальный отступ */
    background-color: white;
    z-index: 2;
    min-height: 6rem; /* Гарантированная минимальная высота для подписи */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Вертикальное центрирование содержимого */
}

.slider figure img {
    width: 100%;
    height: calc(100% - 6rem); /* Скорректированная высота с учетом увеличенной подписи */
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.loaded {
    opacity: 1;
}

/* Навигация слайдера */
.slider-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0 1.5rem; /* Увеличен отступ */
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 3;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Стили для h3 в подписях слайдера */
.slider figure figcaption h3 {
    font-size: 1.8rem; /* Немного уменьшаем размер шрифта для лучшего размещения */
	color: var(--dark-color);
}

/* Увеличим отступ между точками и кнопками для лучшего размещения */
.dots-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0 2rem 0; /* Увеличен отступ с 15px до 20px */
}

.dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--light-color);
    cursor: pointer;
    transition: all var(--time-transition) ease;
}

.dot.active {
    background-color: var(--dark-color);
    transform: scale(1.2);
}

/* Иконки и специальные элементы */
.icon-pdf {
    display: inline-block;
    width: 12rem;
    height: 12rem;
    background-image: url(/secret/img/icon-pdf-128.png);
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-top: 2rem;
}

/* Фоны */
#bg-0-image.lazy, #bg-image.lazy, 
#bg-0-image.lazy-back, #bg-image.lazy-back {
    background-image: none;
    background-color: #F1F1FA;
}

#bg-0-image, #bg-image {
    background-image: url(/secret/img/fon-2.jpg);
    width: 100%;
    height: auto;
}

/* Таблица с ценами */
table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.15);
    margin: 2rem 0;
    background-color: white;
    table-layout: fixed;
	font-size: 2rem;
}

th {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 500;
    padding: 1.5rem;
    text-align: center;
    font-size: 1rem;
    border: none;
    position: relative;
}

th:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--light-color);
}

td {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(8, 161, 253, 0.1);
    color: #444;
    vertical-align: top;
}

tr:last-child td {
    border-bottom: none;
}

tr td[colspan] {
    background-color: var(--light-color);
    color: var(--dark-color);
    font-weight: 500;
    padding: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

table h4 {
    margin: .5rem 0 1rem 0;
    color: var(--dark-color);
    font-weight: 400;
}

table ul {
    margin: 1rem 0 1rem 2.5rem;
    padding: 0;
}

table li {
    margin-bottom: .5rem;
    position: relative;
    padding-left: 1.5rem;
}

table li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

td b {
    font-size: 2rem;
    font-weight: 500;
    color: var(--dark-color);
    display: block;
    text-align: center;
}

tr:hover td {
    background-color: rgba(8, 161, 253, 0.03);
    transition: background-color var(--time-transition) ease;
}

/* Подвал */
footer {
    width: 100%;
    margin: 0;
    padding: 2rem 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: 50% 50%;
}

.footer-item {
    width: 25%;
    text-align: center;
}

.footer-item img {
    width: 9rem;
    height: 6rem;
    object-fit: contain;
    background-color: transparent;
}

.footer-item p {
    text-align: center;
    color: var(--light-color);
}

.footer-item p:hover {
    color: white;
}

/* Анимация изображения */
#image {
    max-width: 100%;
    animation: fade1 5s infinite linear;
    animation-delay: 2.5s;
}

@keyframes fade1 {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}



@media (max-width: 1199.98px) {
	.w80 {
		width: 100%;
	}
	.banner {
	width: 100%;
	height: 40rem;
    padding: 10rem 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: 50% 50%;
}
}