/* Базовые стили для сайта Firstep */

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

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Скрываем дублирующиеся элементы */
.wgl-mobile-header {
    display: none !important;
}

/* Исправление для iframe и скриптов */
iframe[style*="display: none"] {
    display: none !important;
}

/* Контейнеры */
.container,
.wgl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    color: #252525;
    margin-bottom: 20px;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.1rem;
}

/* Параграфы и текст */
p {
    margin-bottom: 1rem;
    color: #6e6e6e;
}

a {
    color: #ff7d00;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #3224e9;
}

/* Хедер */
header,
.wgl-theme-header {
    background-color: #ffffff;
    padding: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
}

.wgl-site-header {
    width: 100%;
    background: #ffffff;
}

/* Лого и контакты в хедере */
.header_logo,
.header-logo {
    padding: 20px 0;
}

.header_side-item,
.header-contact {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
}

.header_side-item a,
.header-contact a {
    color: #ff7d00;
    font-weight: 600;
    font-size: 18px;
}

/* Навигация - основные стили */
nav,
.primary-nav,
.wgl-navigation {
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
    width: 100%;
    clear: both;
}

.primary-nav > div,
.primary-nav > ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
}

nav ul,
.primary-nav ul,
.primary-nav > div > ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 auto;
    padding: 0;
}

/* Пункты меню первого уровня */
nav > ul > li,
.primary-nav > ul > li,
.primary-nav > div > ul > li,
.menu-item {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

nav ul li a,
.primary-nav ul li a,
.primary-nav a,
.menu-item > a {
    color: #252525;
    font-weight: 600;
    font-size: 15px;
    padding: 18px 20px;
    display: block;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    border: none;
}

nav ul li a:hover,
.primary-nav ul li a:hover,
.menu-item > a:hover {
    color: #ff7d00;
    background-color: #fff8f0;
}

/* Подменю */
.primary-nav ul li ul,
.primary-nav ul li .sub-menu,
.menu-item .sub-menu,
.mega-menu-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    z-index: 10000;
    padding: 10px 0;
    border-radius: 0 0 8px 8px;
}

.primary-nav ul li:hover > ul,
.primary-nav ul li:hover > .sub-menu,
.menu-item:hover > .sub-menu,
.menu-item:hover > .mega-menu-container {
    display: block;
}

.primary-nav ul li ul li,
.primary-nav ul li .sub-menu li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.primary-nav ul li ul li a,
.primary-nav ul li .sub-menu li a {
    padding: 12px 20px;
    font-size: 14px;
    display: block;
    color: #252525;
    border-left: 3px solid transparent;
}

.primary-nav ul li ul li a:hover,
.primary-nav ul li .sub-menu li a:hover {
    background-color: #fff8f0;
    color: #ff7d00;
    border-left-color: #ff7d00;
}

/* Основной контейнер */
#main,
.main-content,
.site-content {
    background-color: #ffffff;
    min-height: 400px;
    padding: 40px 0;
}

/* Секции */
section,
.wpb_row,
.vc_row {
    padding: 60px 0;
    width: 100%;
}

.wpb_row,
.vc_row {
    margin-left: 0;
    margin-right: 0;
}

/* Блоки контента */
.content-block,
.blog-post,
.wpb_column,
.vc_column_container {
    background: #ffffff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* Visual Composer колонки */
.vc_column_container {
    padding-left: 15px;
    padding-right: 15px;
}

.vc_column-inner {
    padding: 20px;
}

/* Ошибки и уведомления */
.error-message,
div[class*="error"],
div[class*="notice"] {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: #856404;
}

.error-message strong,
div[class*="error"] strong {
    display: block;
    margin-bottom: 10px;
    color: #721c24;
}

/* Карточки */
.card,
.seofy_module_infobox,
.service-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.card:hover,
.seofy_module_infobox:hover,
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Кнопки */
button,
.button,
.btn,
input[type="submit"],
.seofy_module_button a,
.button-read-more {
    background: linear-gradient(120deg, #ff7d00 0%, #ff4200 100%);
    color: #ffffff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

button:hover,
.button:hover,
.btn:hover,
input[type="submit"]:hover,
.seofy_module_button a:hover {
    background: linear-gradient(120deg, #ff4200 0%, #ff7d00 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 125, 0, 0.3);
}

/* Поиск в хедере */
.header_search,
.search-form,
form[role="search"] {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 300px;
}

.header_search input[type="text"],
.header_search input[type="search"],
.search-form input[type="text"],
.search-form input[type="search"],
input.search-field {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.header_search input:focus,
.search-form input:focus {
    outline: none;
    border-color: #ff7d00;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 125, 0, 0.1);
}

.header_search button,
.search-form button,
.search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #ff7d00;
    cursor: pointer;
    padding: 8px 12px;
    transition: color 0.3s ease;
}

.header_search button:hover,
.search-form button:hover {
    color: #3224e9;
}

/* Формы */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #ff7d00;
}

input::placeholder,
textarea::placeholder {
    color: #999;
    font-style: italic;
}

/* Изображения */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

/* Футер */
footer,
.footer,
.footer_top-area {
    background: linear-gradient(135deg, #252525 0%, #3a3a3a 100%);
    color: #ffffff;
    padding: 60px 0 20px;
    margin-top: 60px;
}

footer h1, footer h2, footer h3, footer h4, footer h5, footer h6,
.footer h1, .footer h2, .footer h3, .footer h4, .footer h5, .footer h6 {
    color: #ffffff;
}

footer a,
.footer a {
    color: #ffffff;
}

footer a:hover,
.footer a:hover {
    color: #ff7d00;
}

/* Списки в контенте */
.content ul,
.entry-content ul,
article ul,
#main ul {
    padding-left: 25px;
    margin-bottom: 20px;
    list-style: none;
}

.content ul li,
.entry-content ul li,
article ul li,
#main ul li {
    margin-bottom: 12px;
    color: #6e6e6e;
    position: relative;
    padding-left: 25px;
}

.content ul li:before,
.entry-content ul li:before,
article ul li:before,
#main ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #ff7d00;
    font-weight: bold;
}

.content ol,
.entry-content ol,
article ol,
#main ol {
    padding-left: 25px;
    margin-bottom: 20px;
    counter-reset: item;
    list-style: none;
}

.content ol li,
.entry-content ol li,
article ol li,
#main ol li {
    margin-bottom: 12px;
    color: #6e6e6e;
    position: relative;
    padding-left: 30px;
    counter-increment: item;
}

.content ol li:before,
.entry-content ol li:before,
article ol li:before,
#main ol li:before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    color: #ff7d00;
    font-weight: bold;
}

/* Списки в навигации не должны иметь эти стили */
nav ul,
nav ol,
.primary-nav ul,
.primary-nav ol,
.menu ul,
.menu ol {
    list-style: none;
    padding-left: 0;
}

nav li:before,
.primary-nav li:before,
.menu li:before {
    display: none !important;
    content: none !important;
}

/* Цитаты */
blockquote {
    border-left: 4px solid #ff7d00;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #6e6e6e;
}

/* Таблицы */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th,
table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #252525;
}

/* Сетка */
.row,
.wpb_row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col,
.wpb_column,
[class*="col-"] {
    padding: 0 15px;
    flex: 1;
}

/* Утилиты */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.pt-1 { padding-top: 10px; }
.pt-2 { padding-top: 20px; }
.pt-3 { padding-top: 30px; }
.pb-1 { padding-bottom: 10px; }
.pb-2 { padding-bottom: 20px; }
.pb-3 { padding-bottom: 30px; }

/* Модули Seofy */
.seofy_module_infobox,
.seofy_module_services,
.seofy_module_counter {
    background: #ffffff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.seofy_module_infobox:hover,
.seofy_module_services:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.seofy_module_title,
.module-title {
    margin-bottom: 30px;
}

.seofy_module_title h1,
.seofy_module_title h2,
.seofy_module_title h3 {
    position: relative;
    padding-bottom: 15px;
}

.seofy_module_title h1:after,
.seofy_module_title h2:after,
.seofy_module_title h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff7d00 0%, #3224e9 100%);
}

/* Иконки */
.icon,
.icon-wrapper,
.seofy_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff7d00 0%, #ff4200 100%);
    border-radius: 12px;
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.icon:hover {
    transform: rotate(5deg) scale(1.1);
}

/* Slider Revolution - скрываем ошибки */
.tp-caption,
.rev_slider,
.revslider-initialised {
    min-height: auto !important;
}

/* Скрываем сообщения об ошибках jQuery */
body > div:first-child {
    display: block;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .primary-nav > ul,
    .primary-nav > div > ul {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .primary-nav ul li a {
        padding: 15px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .container,
    .wgl-container {
        padding: 0 15px;
    }

    .row,
    .wpb_row {
        flex-direction: column;
    }

    nav ul,
    .primary-nav > ul,
    .primary-nav > div > ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .primary-nav ul li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .primary-nav ul li a {
        padding: 15px 20px;
        width: 100%;
    }

    section,
    .wpb_row,
    .vc_row {
        padding: 30px 0;
    }

    .content-block,
    .blog-post {
        padding: 20px;
    }

    .seofy_module_infobox,
    .seofy_module_services,
    .seofy_module_counter {
        padding: 25px;
    }

    .header_side-item,
    .header-contact {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Специфичные стили для WordPress классов */
.page-header,
.page-header_wrapper {
    background: linear-gradient(120deg, #3224e9 0%, #5ad0ff 100%);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-header:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 125, 0, 0.1) 0%, rgba(50, 36, 233, 0.1) 100%);
    pointer-events: none;
}

.page-header h1,
.page-header_title {
    color: #ffffff;
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.breadcrumbs,
.page-header_breadcrumbs {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 10px;
    position: relative;
    z-index: 1;
    font-size: 14px;
}

.breadcrumbs a,
.page-header_breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover,
.page-header_breadcrumbs a:hover {
    color: #ffffff;
}

/* Посты блога */
.blog-post,
.post,
.article {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover,
.post:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.blog-post_title,
.post-title,
.entry-title {
    font-size: 1.75rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-post_title a,
.post-title a,
.entry-title a {
    color: #252525;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post_title a:hover,
.post-title a:hover,
.entry-title a:hover {
    color: #ff7d00;
}

.blog-post_meta,
.post-meta,
.entry-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

.blog-post_meta span,
.post-meta span,
.entry-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-post_content,
.post-content,
.entry-content {
    color: #6e6e6e;
    line-height: 1.8;
}

.blog-post_thumbnail,
.post-thumbnail {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
}

.blog-post_thumbnail img,
.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.blog-post:hover .blog-post_thumbnail img,
.post:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* Сайдбар */
.sidebar,
aside,
.widget-area {
    padding: 20px;
}

/* Widget стили */
.widget {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #252525;
    padding-bottom: 10px;
    border-bottom: 3px solid #ff7d00;
    position: relative;
}

.widget ul {
    list-style: none;
    padding-left: 0;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #6e6e6e;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #6e6e6e;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.widget ul li a:hover {
    color: #ff7d00;
    padding-left: 5px;
}

.widget ul li:before {
    display: none !important;
}

/* Поиск в виджете */
.widget_search form {
    position: relative;
}

.widget_search input[type="search"],
.widget_search input[type="text"] {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
}

.widget_search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff7d00;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 20px;
    transition: background 0.3s ease;
}

.widget_search button:hover {
    background: #3224e9;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Контактная информация */
.contact-info,
.header-contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #252525;
    font-weight: 600;
}

.contact-info i,
.header-contact-info i {
    color: #ff7d00;
    font-size: 18px;
}

.contact-info a,
.header-contact-info a {
    color: #ff7d00;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover,
.header-contact-info a:hover {
    color: #3224e9;
}

/* Улучшенная типографика */
strong,
b {
    font-weight: 700;
    color: #252525;
}

em,
i {
    font-style: italic;
}

mark {
    background: linear-gradient(120deg, rgba(255, 125, 0, 0.2) 0%, rgba(50, 36, 233, 0.2) 100%);
    padding: 2px 6px;
    border-radius: 3px;
    color: #252525;
}

code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

pre code {
    background: none;
    padding: 0;
    color: #333;
}

/* HR линии */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #ff7d00 50%, transparent 100%);
    margin: 40px 0;
}

/* Плавные переходы для всех интерактивных элементов */
a,
button,
.button,
input,
textarea,
select {
    transition: all 0.3s ease;
}

/* Улучшение читаемости текста */
p {
    text-align: justify;
    hyphens: auto;
}

/* Выделение текста */
::selection {
    background-color: rgba(255, 125, 0, 0.3);
    color: #252525;
}

::-moz-selection {
    background-color: rgba(255, 125, 0, 0.3);
    color: #252525;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff7d00 0%, #ff4200 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff4200 0%, #ff7d00 100%);
}

/* Loader */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff7d00;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Скрытие ненужных элементов при печати */
@media print {
    header,
    .header,
    nav,
    .navigation,
    footer,
    .footer,
    .sidebar,
    aside {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
