/* --- Глобальные стили и переменные --- */
:root {
    --primary-color: #007BFF; /* Основной цвет (синий) */
    --secondary-color: #4A5568; /* Вторичный цвет (темно-серый) */
    --background-color: #FFFFFF; /* Цвет фона */
    --light-gray-bg: #F7FAFC; /* Светло-серый фон для секций */
    --text-color: #2D3748; /* Основной цвет текста */
    --heading-color: #1A202C; /* Цвет заголовков */
    --footer-bg: #1A202C; /* Фон подвала */
    --footer-text: #E2E8F0; /* Текст в подвале */
    --base-font-size: 16px;
    --font-family-body: 'Open Sans', sans-serif;
    --font-family-headings: 'Lato', sans-serif;
    --container-max-width: 1170px;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* --- Сброс стилей и базовые настройки --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-body);
    font-size: var(--base-font-size);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.wrapper, .inner-wrapper {
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Типографика --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    color: var(--heading-color);
    margin-bottom: 0.75em;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; text-align: center; margin-bottom: 1.5em; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1em; }
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #0056b3;
}

/* --- Шапка сайта --- */
.top-bar {
    background-color: var(--light-gray-bg);
    padding: 0.5em 0;
    font-size: 0.9em;
    border-bottom: 1px solid #E2E8F0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar .top-menu, .top-bar .dt-sc-social-icons {
    list-style: none;
    display: flex;
    gap: 1.5em;
}
.top-bar .top-right {
    display: flex;
    align-items: center;
    gap: 1em;
}

#header-wrapper {
    background: var(--background-color);
    padding: 1.5em 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#logo img {
    max-height: 50px;
    width: auto;
}

/* --- Навигация --- */
#main-menu .menu {
    list-style: none;
    display: flex;
}
#main-menu .menu li {
    position: relative;
}
#main-menu .menu li a {
    padding: 1em 1.5em;
    font-family: var(--font-family-headings);
    font-weight: 700;
    color: var(--heading-color);
    display: block;
}
#main-menu .menu li a:hover {
    color: var(--primary-color);
}
#main-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background-color);
    list-style: none;
    min-width: 220px;
    box-shadow: var(--box-shadow);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    z-index: 100;
}
#main-menu li:hover > .sub-menu {
    display: block;
}
#main-menu .sub-menu li a {
    padding: 0.8em 1.2em;
}
.dt-menu-toggle { display: none; } /* Скрываем бургер-меню на десктопе */

/* --- Основной контент --- */
#main {
    padding-top: 0; /* Слайдер прилегает к шапке */
}

/* Слайдер */
.banner {
    width: 100%;
    height: 60vh; /* Уменьшаем высоту для современного вида */
    max-height: 670px;
    background: var(--light-gray-bg);
}
#layerslider_9 {
    height: 100% !important;
}

/* Секции */
.full-width-section, .container {
    padding-top: 60px;
    padding-bottom: 60px;
}
.full-width-section.grey {
    background-color: var(--light-gray-bg);
}
.parallax {
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: white;
}
.parallax h2, .parallax h5, .parallax p {
    color: white;
}

/* Карточки (блог, услуги) */
.blog-post, .entry-post {
    background: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.blog-post:hover, .entry-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
.entry-thumb img {
    width: 100%;
    height: auto;
    display: block;
}
.entry-detail, .entry-post-content .entry-detail {
    padding: 1.5em;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.entry-detail h4, .entry-detail h5 {
    margin-bottom: auto; /* Заголовок занимает место, кнопка внизу */
}
.entry-detail h4 a, .entry-detail h5 a {
    color: var(--heading-color);
}
.entry-detail h4 a:hover, .entry-detail h5 a:hover {
    color: var(--primary-color);
}

/* Колонки */
.column { float: left; margin-right: 2%; position: relative; }
.column.first { margin-left: 0; clear: left; }
.dt-sc-one-third { width: 32%; }
.dt-sc-one-half { width: 49%; }
.dt-sc-three-fourth { width: 74%; }
.dt-sc-one-fourth { width: 23.5%; }

/* Очистка float */
.container:after, .column:after {
    content: "";
    display: table;
    clear: both;
}

/* Кнопки */
.dt-sc-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.8em 1.8em;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}
.dt-sc-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}
.dt-sc-button.small {
    padding: 0.6em 1.2em;
    font-size: 0.8em;
    margin-top: 1em;
}

/* Команда */
.dt-sc-team {
    text-align: center;
    padding: 1.5em;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.dt-sc-team .image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1em;
    border: 3px solid var(--light-gray-bg);
}

/* --- Подвал --- */
#footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding-top: 60px;
}
#footer .widget {
    font-size: 0.95em;
}
#footer h3.widget-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5em;
    font-weight: 700;
    position: relative;
}
#footer h3.widget-title .small-line {
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    margin-top: 0.5em;
}
#footer a {
    color: var(--footer-text);
}
#footer a:hover {
    color: var(--primary-color);
}
#footer .widget ul {
    list-style: none;
}
#footer .widget ul li {
    padding: 0.4em 0;
    border-bottom: 1px solid #2D3748;
}
#footer .widget ul li:last-child {
    border-bottom: none;
}
.copyright {
    background-color: #11151c;
    padding: 1.5em 0;
    text-align: center;
    font-size: 0.9em;
}
.copyright .container {
    padding: 0 15px;
}

/* --- Адаптивность --- */

/* Планшеты */
@media (max-width: 991px) {
    .column {
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }
    .dt-sc-one-third, .dt-sc-one-half, .dt-sc-one-fourth, .dt-sc-three-fourth {
        width: 100%;
    }
}

/* Мобильные телефоны */
@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    #header-wrapper {
        padding: 1em 0;
    }
    
    /* Адаптивное меню */
    #main-menu { position: relative; }
    #main-menu .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: var(--box-shadow);
    }
    #main-menu .menu.dt-show {
        display: flex;
    }
    #main-menu .menu li a {
        padding: 1em 1.5em;
        border-bottom: 1px solid #f0f0f0;
    }
    #main-menu .sub-menu {
        display: none !important; /* Упрощаем, скрывая вложенные меню на мобильных, или нужна JS логика для раскрытия */
        position: static;
        box-shadow: none;
        border-radius: 0;
        width: 100%;
    }
    .dt-menu-toggle {
        display: block; /* Показываем бургер */
        cursor: pointer;
        padding: 0.5em 1em;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 0.5em;
    }
    .full-width-section, .container {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    #footer .column {
        text-align: center;
    }
    #footer h3.widget-title .small-line {
        margin-left: auto;
        margin-right: auto;
    }
}