@charset "UTF-8";
/* Базовые сбросы */
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Arial', sans-serif; background: #fdfdfd; color: #333; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
h1 { 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: #1a2a44; 
    border-left: 5px solid #c5a059; 
    padding-left: 15px; 
}

/* Шапка */
.main-header { background: #1a2a44; border-bottom: 3px solid #c5a059; padding: 15px 0; }
.header-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo img { max-height: 70px; }
.main-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.main-nav a { color: #fff; text-decoration: none; font-weight: bold; font-size: 14px; text-transform: uppercase; transition: 0.3s; }
.main-nav a:hover { color: #c5a059; }

.logo-text {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo-sub {
    color: #c5a059; /* Тот самый золотистый акцент */
    font-size: 14px;
    letter-spacing: 4px;
    font-weight: 400;
    margin-top: 5px;
}

.hero-banner {
position: relative; /* Обязательно для позиционирования картинки внутри */
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center; /* Центрируем контент */
    margin-bottom: 40px;
    color: #fff;
    overflow: hidden;
    background: #1a2a44; /* Фон-заглушка */
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Сохраняет пропорции как фон, не сплющивает! */
    object-position: center center; /* Центрирует лицо/объект на фото */
    z-index: 1;
}

.hero-overlay {
position: relative;
    z-index: 2; /* Текст выше картинки */
    width: 100%;
    height: 100%;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(26, 42, 68, 0.6); /* Твое текущее затемнение */
    padding: 20px;
    text-align: center;
}

.hero-content {
max-width: 900px;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(24px, 5vw, 40px); /* Адаптивный размер шрифта */
    color: #fff;
    border: none; /* Убираем полоску слева */
    padding: 0;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: clamp(14px, 3vw, 18px);
    margin-bottom: 30px;
}

.open-modal {
    background: #c5a059;
    color: #1a2a44;
    border: none;
    padding: 15px 30px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 4px;
}

.open-modal:hover {
    background: #fff;
    transform: translateY(-2px);
}
.hero-content button {
    background: #c5a059;
    color: #1a2a44;
    border: none;
    padding: 15px 30px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}
.hero-content button:hover { background: #fff; }

/* Сетка */
.main-layout { display: flex; gap: 30px; padding-top: 30px; min-height: 600px; }
.sidebar-news { flex: 0 0 280px; }
.content-area { flex: 1; background: #fff; padding: 25px; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

.seo-text-container {
    position: relative;
    max-height: 200px; /* Высота видимой части */
    overflow: hidden;
    transition: max-height 0.5s ease;
}
/* СЕО текст */
.seo-text-container.expanded {
    max-height: 5000px; /* Достаточно большое число, чтобы влез весь текст */
}

/* Эффект затухания внизу, когда текст свернут */
.seo-read-more-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
    transition: opacity 0.3s;
}

.seo-text-container.expanded .seo-read-more-overlay {
    opacity: 0;
}

.read-more-btn {
    display: block;
    margin: 20px auto;
    background: transparent;
    color: #1a2a44;
    border: 2px solid #c5a059;
    padding: 10px 25px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 4px;
}

.read-more-btn:hover {
    background: #c5a059;
    color: #fff;
}


/* Футер */
.site-footer { background: #1a1a1a; color: #999; padding: 40px 0; margin-top: 50px; text-align: center; }
.footer-contacts a { color: #c5a059; text-decoration: none; margin: 0 15px; font-weight: bold; }
.seo-links { margin-top: 15px; font-size: 12px; }

.news-item-side a:hover {
    color: #c5a059 !important;
}
.sidebar-news {
    border-right: 1px solid #eee;
    padding-right: 20px;
}

/* Общие стили для ссылок в футере */
.site-footer a {
    color: #999; /* Делаем ссылки серыми по умолчанию, как основной текст футера */
    text-decoration: none;
    transition: 0.3s;
}

/* Эффект при наведении */
.site-footer a:hover {
    color: #c5a059; /* При наведении подсвечиваем золотым */
}
.social-icon-link {
    color: #1a2a44; /* Темно-синий, под твой основной цвет */
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon-link:hover {
    color: #c5a059; /* Тот самый золотистый акцент при наведении */
    transform: translateY(-3px); /* Легкий подъем вверх */
}

.svg-icon {
    display: block;
}
/* Специфичный стиль для блока SEO-продвижения */
.seo-links a {
    color: #c5a059; /* Можно сразу сделать золотым, чтобы выделить партнера */
    font-weight: bold;
}
/* Центровка лого в хедере */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Стили кнопки гамбургера */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #c5a059;
    transition: 0.3s;
}

/* Стили аккордеона */
.accordion-header {
    padding: 10px 0;
    cursor: pointer;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: 0.3s;
}
.accordion-header:hover, .accordion-header.active {
    color: #c5a059;
}
.accordion-header::after {
    content: ' ▼';
    font-size: 10px;
    float: right;
}
.accordion-header.active::after {
    content: ' ▲';
}

.submenu {
    display: none; /* Скрыто по умолчанию */
    list-style: none;
    padding: 10px 0 10px 15px;
    background: #f9f9f9;
}
.submenu li a {
    display: block;
    padding: 5px 0;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}
.submenu li a:hover {
    color: #1a2a44;
}

{
    scroll-behavior: smooth; /* Включает плавную прокрутку по всей странице */
}

.map-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
}

#back-to-top {
    display: none; /* Скрыта по умолчанию */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    background-color: #c5a059; /* Твой золотой акцент */
    color: #1a2a44; /* Темно-синий основной цвет */
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    font-size: 24px;
    font-weight: bold;
}

#back-to-top:hover {
    background-color: #1a2a44;
    color: #c5a059;
    transform: translateY(-5px);
}

/* На мобильных устройствах делаем кнопку чуть меньше, чтобы не мешала пальцам */
@media (max-width: 991px) {
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Мобильная адаптация */
@media (max-width: 991px) {
    /* 1. Сетка: контент вверх, сайдбар вниз */
    .main-layout {
        display: flex;
        flex-direction: column; 
        gap: 20px;
        padding-top: 10px;
    }

    .content-area {
        order: 1; /* Основной текст теперь первый */
        width: 100%;
        padding: 20px;
        box-shadow: none; /* Облегчаем визуально на мобильных */
    }

    .sidebar-news {
        order: 2; /* Услуги и новости уходят под основной текст */
        flex: none;
        width: 100%;
        border-right: none;
        border-top: 1px solid #eee; 
        padding: 20px 0;
    }

    /* 2. Шапка: лого по центру, бургер справа */
    .header-content {
        justify-content: center !important;
        position: relative;
    }

    .menu-toggle {
        display: flex !important;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* 3. Выпадающее меню (не удаляй, иначе бургер не сработает) */
    .main-nav {
        display: none;
        width: 100%;
        background: #1a2a44;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 100;
        border-top: 1px solid #c5a059;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    .main-nav a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    /* 4. Баннер (Раскрываем и делаем читаемым) */
    .hero-banner {
        min-height: 300px; /* Устанавливаем достаточную высоту */
        /*padding: 60px 0; */
		background-position: 10% center;
    }

    .hero-content h1 {
        font-size: 28px; /* Уменьшаем заголовок, чтобы он влезал */
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 16px; /* Оптимизируем размер текста */
    }

    .open-modal {
        font-size: 14px; /* Размер текста на кнопке */
        padding: 12px 24px; /* Отступы внутри кнопки */
    }
}

/* 5. Дополнительно для совсем маленьких экранов */
@media (max-width: 480px) {
    .logo-name { font-size: 18px; }
    .hero-banner {
        min-height: 350px; 
        padding: 40px 0;
    }
    .hero-overlay {
        min-height: 350px;
    }
	.hero-bg-img {
        /* Вот тут мы двигаем картинку вправо, чтобы лицо не закрывалось текстом */
        object-position: 90% center; 
    }
    .hero-content h1 {
        font-size: 24px;
    }
}
/* Анимация превращения бургера в крестик */
.menu-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/*Карта*/
.map-wrapper {
    width: 100%;
    overflow: hidden;
    border-top: 3px solid #c5a059;
}

.map-info-box {
    position: absolute;
    top: 30px;
    right: 50px;
    z-index: 10;
    background: rgba(26, 42, 68, 0.95); /* Темно-синий под стиль сайта */
    color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 300px;
    border-left: 4px solid #c5a059;
}

.map-info-box p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.4;
}

/* На мобилках бокс уходит под карту или прячется, чтобы не мешать обзору */
@media (max-width: 768px) {
    .map-info-box {
        position: static;
        max-width: 100%;
        border-radius: 0;
        left: 0;
        top: 0;
    }
    .map-container {
        height: 300px !important;
    }
}
