/* ====================================================== */
/* 🔹 ОБЩИЙ СБРОС СТИЛЕЙ */
/* ====================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ====================================================== */
/* 🔹 ОСНОВНЫЕ СТИЛИ */
/* ====================================================== */

body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f4f4f4;
}

a {
    color: #004080;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ====================================================== */
/* 🔹 ШАПКА (HEADER) */
/* ====================================================== */

header {
    background-image: url('../images/header.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.header-container {
    display: flex;
    align-items: center;
    padding: 20px;
}

/* Логотип */
.logo {
    max-width: 150px; /* Стандартный размер логотипа */
    margin-right: 20px;
}

/* Адрес и контакты в шапке */
.full-address .company-name {
    white-space: nowrap;
    font-size: 0.9em;
    line-height: 1.3;
    color: #555;
}

.full-address .address {
    white-space: nowrap;
    font-size: 0.9em;
    line-height: 1.3;
    color: #555;
}

.contact-info {
    margin-top: 5px;
    white-space: nowrap;
}

.contact-info .contacts {
    font-size: 0.9em;
    line-height: 1.3;
    color: #555;
}

/* Заголовки и параграфы в шапке */
.header-info h1 {
    font-size: 2em;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.header-info p {
    font-size: 1em;
    margin-top: 5px;
    color: #555;
}

/* ====================================================== */
/* 🔹 МЕНЮ НАВИГАЦИИ (NAVBAR) */
/* ====================================================== */

nav {
    background-color: #002b56;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;
}

.nav-menu li {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0 15px;
}

.nav-menu a {
    color: #fff;
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 200;
    transition: background-color 0.3s, color 0.3s;
    height: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: #003060;
    color: rgb(247, 150, 70);
    border-radius: 4px;
}

/* ====================================================== */
/* 🔹 ФУТЕР (FOOTER) */
/* ====================================================== */

footer {
    font-size: 0.9em; /* Уменьшаем общий размер текста */    
    position: relative;
    background: linear-gradient(
      to left,
      rgba(0, 43, 86, 1) 30%,
      rgba(0, 43, 86, 0.8) 50%,
      rgba(0, 43, 86, 0.5) 70%,
      rgba(0, 43, 86, 0) 100%
      ), url('../images/dkv_bgr_06.jpg');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    padding: 20px 10px;
    margin-top: 20px;
    overflow: hidden;
}

.footer-container {
    position: relative;
    z-index: 2;
}

.footer-links a {
    color: #fff;
    margin: 0 5px;
    transition: color 0.3s;
    font-weight: 200;
}

.footer-links a:hover {
    color: #ffcc00;
}

/* ====================================================== */
/* 🔹 СЛАЙДШОУ (SLIDESHOW) */
/* ====================================================== */

.slideshow {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 300px; /* Ограничиваем максимальную высоту */
    overflow: hidden;
    aspect-ratio: 16 / 6; /* Сохраняем пропорции */
}

.slideshow .slide {
    position: absolute; /* если переключаете слайды, иногда делают position */    
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 1s;
    opacity: 0;
}

.slide.active {
    opacity: 1;
}

/* ====================================================== */
/* 🔹 МОБИЛЬНОЕ МЕНЮ */
/* ====================================================== */

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 15px;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: #fff;
    margin-bottom: 4px;
    border-radius: 2px;
}

/* ====================================================== */
/* 🔹 ОСНОВНОЙ КОНТЕНТ */
/* ====================================================== */

main {
    padding: 20px;
    min-height: 60vh;
    position: relative;
    overflow: hidden;
    clear: both;
}

/* ====================================================== */
/* 🔹 LOADER (ЗАГРУЗКА) */
/* ====================================================== */

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #004080;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ====================================================== */
/* 🔹 АНИМАЦИИ */
/* ====================================================== */

@keyframes spin {
    0% { transform: rotate(0deg) translate(-50%, -50%); }
    100% { transform: rotate(360deg) translate(-50%, -50%); }
}

/* ====================================================== */
/* 🔹 АДАПТИВНОСТЬ (MOBILE) */
/* ====================================================== */

@media (max-width: 768px) {
    /* Шапка */
    .header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo {
        max-width: 75px; /* Уменьшаем логотип в 2 раза */
        margin-bottom: 10px;
    }

    .header-info h1 {
        font-size: 1.2em;
        white-space: nowrap;
    }

    .full-address {
        display: flex;
        flex-direction: column;
    }

    .full-address .company-name,
    .full-address .address {
        font-size: 0.9em;
        line-height: 1.3;
        color: #555;
    }

    .contact-info {
        white-space: normal;
    }

    .contact-info .contacts {
        font-size: 0.8em;
        line-height: 1.3;
        color: #555;
    }

    .full-address .comma {
        display: none; /* Убираем запятую */
    }

    .header-info p {
        font-size: 1em;
        line-height: 1.3;
        color: #555;
    }

    main {
        padding: 10px;
    }

    /* Меню навигации в мобильной версии */
    .nav-menu {
        flex-direction: column;
        display: none;
        width: 100%;
        background-color: #002b56;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
    }

    .nav-menu li {
        display: flex;
        align-items: center;
        text-align: center;
        margin: 0 15px;
    }

    .nav-menu a {
        /* Уменьшаем высоту пунктов меню в вертикальной мобильной версии */
        padding: 8px 10px; 
        border-top: 1px solid #fff;
        font-weight: 200;
    }

   /* Убираем линию для первого пункта */
    .nav-menu li:first-child a {
        border-top: none; 
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .nav-menu.active {
        display: flex;
    }

    /* Слайдшоу в мобильной версии */
    .slideshow {
        max-height: 250px;
    }

    .slideshow .slide {
        object-fit: cover;
    }
}

/* ====================================================== */
/* 🔹 КЛАССЫ ДЛЯ ДОПОЛНИТЕЛЬНОЙ СТИЛИЗАЦИИ (НЕ СВЯЗАНЫ НЕПОСРЕДСТВЕННО С ШАПКОЙ/МЕНЮ) */
/* ====================================================== */

/* Заголовки секций */
.section-title {
    color: #e36c09;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1.5em;
}

/* Подзаголовки */
.sub-section-title {
    color: rgb(247, 150, 70);
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 1.2em;
}

/* Имя компании */
.company-name {
    color: #000;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Адрес */
.address {
    color: #000;
    margin-bottom: 15px;
}

/* Ссылки */
.email-link,
.telegram-link {
    color: rgb(247, 150, 70);
    text-decoration: none;
    transition: color 0.3s;
}

.email-link:hover,
.telegram-link:hover {
    color: #ffcc00;
}

/* Секция контактов */
.contact-section {
    margin-bottom: 20px;
}

/* Внешние ссылки */
.external-link {
    color: rgb(247, 150, 70);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: normal;
}

.external-link:hover {
    color: #ffcc00;
}

/* Акцентные заголовки */
.section-title.attention {
    color: #FF0000;
    margin-top: 20px;
}

.attention-text {
    color: #e36c09;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Дополнительные списки и преимущества (decimal) */
.advantages-list {
    list-style: decimal inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.advantage-title::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: rgb(247, 150, 70);
    margin-right: 10px;
    border-radius: 50%;
    vertical-align: middle;
}

.hanging-indent {
    text-indent: -20px;
    padding-left: 20px;
}

.footer-logo {
    max-width: 50px;
}


.cta-button {
    color: #323232;
    font-size: 0.9rem;              /* 16px, если 1rem = 16px */
    line-height: 1.5rem;          /* 24px  */
    letter-spacing: 0.025rem;
    
    display: inline-block;        /* Чтобы вести себя как "кнопка" */
    padding: 0.4375rem 1.59375rem;/* ~ padding: 7px 25px; */
    border-style: solid;
    border-width: 1px;
    border-radius: 20px;

    text-decoration: none;
    cursor: pointer;
    -webkit-appearance: none; /* Убирает оформление в Safari */
    appearance: none;
}

/* Вид кнопки, когда она "primary" */
.cta-button--primary {
    font-weight: normal;    /* Переопределяем жирный вес, унаследованный от h3 */
    border-color: #f18400;
    background-color: #f18400;
    color: #fff;
   margin-top: 5px;
}

/* Вид кнопки, когда она "secondary" */
.cta-button--secondary {
    font-weight: normal;    /* Переопределяем жирный вес, унаследованный от h3 */
    border-color: #002b56;
    background-color: #fff;
    color: #002b56;
   margin-top: 5px;
}

