/* Устанавливаем основные переменные для цветов и шрифтов */
:root {
    --primary-blue: #005A9E; /* Темно-синий из лого */
    --secondary-blue: #6CACE4; /* Светло-синий из лого */
    --text-color: #333;
    --background-color: #fff;
    --font-family: 'Arial', sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ======================================== */
/* НОВЫЕ СТИЛИ ДЛЯ ХЕДЕРА                 */
/* ======================================== */

/* Общие стили для всего хедера */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky; /* Делаем хедер "липким" при прокрутке */
    top: 0;
    z-index: 1000;
    
}
section[id] {
    scroll-margin-top: 120px; /* Высота вашего хедера */
}

/* Верхняя полоса */
.header-top {
    background-color: #f8f9fa;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.85rem;
    color: #6c757d;
}
.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-contacts {
    display: flex;
    gap: 20px;
}
.header-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.header-contact-item a:hover {
    color: #3498db;
}
.header-contact-item i {
    color: #3498db;
}

/* Основная часть хедера */
.header-main {
    position: relative;
    /* Увеличим минимальную высоту, чтобы было место */
    min-height: 80px; 
}


.header-main nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Увеличиваем логотип */
.header-main .logo {
    height: 150px; /* Было 50px, стало 60px */
   
}

/* Стили для кнопки "Заказать звонок" */
.btn-header {
    background-color: transparent;
    color: #3498db;
    border: 2px solid #3498db;
    padding: 8px 20px;
    white-space: nowrap; /* Чтобы текст не переносился */
}
.btn-header:hover {
    background-color: #3498db;
    color: #fff;
}

/* Прячем верхнюю полосу на мобильных устройствах для экономии места */
@media (max-width: 992px) {
    .header-top {
        display: none;
    }
}
/* Адаптивность для основного меню */
@media (max-width: 768px) {
    .header-main nav ul, .btn-header {
        display: none; /* В будущем здесь будет "бургер-меню" */
    }
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: bold;
    
}

/* Стили для новой сетки супервайзерских услуг */
.supervisory-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 колонки */
    gap: 25px;
}
.supervisory-card-new {
    background-color: #f0faff; /* Светло-голубой фон */
    border: 1px solid #e0e0e0;
    border-top: 3px solid #e74c3c; /* Красная верхняя рамка */
    padding: 25px;
    border-radius: 8px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.supervisory-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.supervisory-card-new h3 {
    margin: 0 0 10px 0;
    color: #34495e;
    font-size: 1.2rem;
}
.supervisory-card-new p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .supervisory-grid-new {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 992px) {
    .supervisory-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .supervisory-grid-new {
        grid-template-columns: 1fr;
    }
}

/* Стили для стрелок главного слайдера */
.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}
.hero-slider-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}
.hero-slider-btn.prev {
    left: 30px;
}
.hero-slider-btn.next {
    right: 30px;
}

.header-main nav ul li a {
    color: #333; /* Стандартный цвет ссылки */
    text-decoration: none;
    font-weight: 500;
    padding: 10px;
    position: relative;
    transition: color 0.3s ease; /* Плавный переход цвета */
}

/* Эффект при наведении */
.header-main nav ul li a:hover {
    color: #3498db; /* Цвет меняется на фирменный синий */
}

/* Декоративная линия под ссылкой при наведении */
.header-main nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: #3498db;
    transition: width 0.3s ease;
}
.header-main nav ul li a:hover::after {
    width: 100%;
    left: 0;
    background: #3498db;
}

/* Стили для секций */
section {
    padding: 4rem 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
}
/* Стили для переключателя языков */
.language-switcher {
    position: relative;
    cursor: pointer;
}
.current-language {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.current-language img {
    width: 20px;
    margin-right: 8px;
}
.current-language span {
    font-weight: bold;
    margin-right: 5px;
}
.current-language i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}
.language-switcher.open .current-language i {
    transform: rotate(180deg);
}
.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    list-style: none;
    padding: 5px;
    margin: 5px 0 0 0;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.language-switcher.open .language-dropdown {
    display: block;
}
.language-dropdown li a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}
.language-dropdown li a:hover {
    background-color: #f4f4f4;
}
.language-dropdown img {
    width: 20px;
    margin-right: 8px;
}
/* ======================================== */
/* НОВЫЕ СТИЛИ ДЛЯ СЕТКИ КЛИНИНГА          */
/* ======================================== */

.cleaning-grid-new {
    display: grid;
    /* 4 колонки на больших экранах */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cleaning-item-new {
    display: flex;
    flex-direction: column; /* Иконка, заголовок и текст идут друг под другом */
    align-items: center; /* Центрируем все по горизонтали */
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.cleaning-icon-new {
    width: 60px;
    height: 60px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 15px; /* Отступ под иконкой */
}

.cleaning-item-new h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: #343a40;
}

.cleaning-item-new p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 992px) {
    .cleaning-grid-new {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .cleaning-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .cleaning-grid-new {
        grid-template-columns: 1fr;
    }
}
.section-title {text-align: center; font-size: 2.5rem; color: #2c3e50; margin-bottom: 3rem;}
.supervisory-wrapper {display: flex; align-items: center; gap: 40px;}
.supervisory-text, .supervisory-image {flex: 1;}
.supervisory-text p {font-size: 1.1rem; line-height: 1.7; color: #555;}
.supervisory-image img {width: 100%; border-radius: 8px;}
.cleaning-grid {display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;}
.cleaning-item {display: flex; align-items: center;}
.cleaning-icon {flex-shrink: 0; width: 40px; height: 40px; background-color: #e74c3c; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-right: 15px;}
.cleaning-text h4 {margin: 0 0 5px; font-size: 1.1rem; color: #333;}
.cleaning-text p {margin: 0; color: #777; font-size: 0.9rem;}
@media (max-width: 992px) {.cleaning-grid {grid-template-columns: repeat(2, 1fr);}}
@media (max-width: 768px) {.supervisory-wrapper {flex-direction: column;}}
@media (max-width: 576px) {.cleaning-grid {grid-template-columns: 1fr;}}
/* Стили для кнопки */
.btn {
    display: inline-block;
    background-color: var(--primary-blue);
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cleaning-grid {
    display: grid;
    /* По умолчанию 1 колонка для мобильных */
    grid-template-columns: 1fr; 
    gap: 30px;
}

/* 2 колонки для планшетов */
@media (min-width: 576px) {
    .cleaning-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 4 колонки для десктопов */
@media (min-width: 992px) {
    .cleaning-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Стили для секции супервайзерских услуг (текст + фото) */
.supervisory-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}
.supervisory-text, .supervisory-image {
    flex: 1;
}
.supervisory-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}
.supervisory-image img {
    width: 100%;
    border-radius: 8px;
}
@media (max-width: 768px) {
    .supervisory-wrapper {
        flex-direction: column;
    }
}

.btn:hover {
    background-color: var(--secondary-blue);
}

#hero {
    min-height: 75vh;
    color: white;
    background-size: cover;
    background-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* ВОТ КЛЮЧЕВАЯ СТРОКА: Плавный переход для свойства "прозрачность" */
    transition: opacity 0.4s ease-in-out;
}

#hero h1 {
    font-size: 3rem;
    max-width: 900px;
    /* Тень для лучшей читаемости текста на любом фоне */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Стили для Telegram-чата */
.chat-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1001;
    transition: transform 0.3s;
}
.chat-bubble:hover {
    transform: scale(1.1);
}
.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 450px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}
.chat-window.open {
    transform: scale(1);
}
.chat-header {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
}
.chat-header h4 { margin: 0 0 5px 0; }
.chat-header p { margin: 0; font-size: 0.9rem; opacity: 0.8; }
.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}
.chat-message {
    padding: 10px 15px;
    border-radius: 20px;
    margin-bottom: 10px;
    max-width: 80%;
    line-height: 1.4;
}
.chat-message.user {
    background-color: #3498db;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}
.chat-input-form {
    border-top: 1px solid #f0f0f0;
}
#telegram-form {
    display: flex;
}
#telegram-message-input {
    flex-grow: 1;
    border: none;
    padding: 20px;
    font-size: 1rem;
}
#telegram-message-input:focus {
    outline: none;
}
#telegram-form button {
    background: none;
    border: none;
    color: #3498db;
    font-size: 20px;
    padding: 0 20px;
    cursor: pointer;
}

#telegram-form {
    display: block;
    padding: 15px;
}
#telegram-form input, #telegram-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    box-sizing: border-box;
    font-size: 0.95rem;
}
#telegram-form button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

/* --- Стили для галереи --- */
#gallery-filters {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-btn {
    background: none;
    border: 2px solid var(--secondary-blue);
    color: var(--secondary-blue);
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

#gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* --- Стили для Lightbox --- */
#lightbox {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.partners-carousel-container {
    position: relative;
    overflow: hidden;
}

.partners-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 auto;
    width: 150px; /* Примерная ширина слайда */
    margin-right: 20px; /* Расстояние между слайдами */
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-button:hover {
    opacity: 1;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

/* Убираем margin справа у последнего слайда */
.carousel-slide:last-child {
    margin-right: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .carousel-slide {
        width: 120px;
        margin-right: 15px;
    }
    .carousel-slide img {
        max-height: 60px;
    }
}

/* ============================================= */
/* НОВЫЕ СТИЛИ ДЛЯ КАРУСЕЛИ ПАРТНЕРОВ    */
/* ============================================= */

#partners {
    background-color: #f8f9fa; /* Слегка серый фон для всей секции */
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.partners-carousel-container {
    position: relative;
    padding: 0 50px; /* Оставляем место по бокам для кнопок */
}

.partners-carousel-wrapper {
    overflow: hidden; /* Скрываем все, что не помещается */
    position: relative;
}

/* Эффект затухания по краям */
.partners-carousel-wrapper::before,
.partners-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px; /* Ширина градиента */
    z-index: 2;
    pointer-events: none; /* Чтобы не мешали кликать */
}
.partners-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa, transparent);
}
.partners-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa, transparent);
}


.partners-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 200px; /* Ширина каждого слайда */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 25px; /* Отступы внутри слайда */
    box-sizing: border-box;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 60px; /* Ограничиваем высоту для единообразия */
    object-fit: contain;
    /* Делаем лого черно-белыми */
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* При наведении логотип становится цветным и четким */
.carousel-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Новые стили для кнопок */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 50%; /* Делаем кнопки круглыми */
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-button:hover {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

/* Стили для неактивных кнопок */
.carousel-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ============================================= */
/* НОВЫЕ СТИЛИ ДЛЯ СЕКЦИИ "СВЯЖИТЕСЬ С НАМИ" */
/* ============================================= */

#contact {
    background-color: #fff;
    padding: 4rem 0;
}

.contact-wrapper {
    display: flex;
    gap: 50px; /* Расстояние между колонками */
    margin-top: 2rem;
}

.contact-info, .contact-form-container {
    flex: 1; /* Каждая колонка занимает половину места */
}

.contact-info h3, .contact-form-container h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.contact-details {
    list-style: none;
    padding: 0;
}

.contact-details li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1rem;
}

.contact-details .icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #3498db;
}

.contact-details .text strong {
    display: block;
    color: #555;
    margin-bottom: 5px;
}

.contact-details a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-details a:hover {
    color: #3498db;
}


/* Новые стили для формы */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db; /* Подсветка рамки при клике */
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5); /* Легкая тень */
}

/* ============================================= */
/* НОВЫЕ СТИЛИ ДЛЯ ФУТЕРА              */
/* ============================================= */

footer {
    background-color: #2c3e50; /* Темно-синий фон */
    color: #bdc3c7; /* Светло-серый цвет текста */
    padding-top: 60px; /* Отступ сверху */
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px; /* Расстояние между колонками */
    padding-bottom: 40px;
    flex-wrap: wrap; /* Для адаптивности на мобильных */
}

.footer-column {
    flex: 1;
    min-width: 220px; /* Минимальная ширина колонки */
}

.footer-column h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

/* Декоративная линия под заголовками в футере */
.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background-color: #3498db; /* Фирменный синий акцент */
}

.footer-logo {
    height: 150px; /* Увеличили высоту с 35px до 50px */
    margin-bottom: 0px;
    filter: brightness(0) invert(1);
}

.footer-about p {
    line-height: 1.7;
    color: #95a5a6;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-column a:hover {
    color: #fff;
    padding-left: 5px; /* Небольшой сдвиг при наведении */
}

.footer-bottom {
    background-color: #233140; /* Чуть более темный фон для нижней полосы */
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    border-top: 1px solid #34495e;
}

.footer-bottom p {
    margin: 0;
}

html {
    scroll-behavior: smooth;
}