/*
Theme Name: saltanat
Theme URI: 
Author: 
Author URI: 
Description: 
Version: 1.0.0
License: 
License URI: 
Text Domain: saltanat
Tags: 
*/

/* Подключение красивого шрифта Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Сброс стандартных отступов */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
}

/* Типографика основного контента страниц */
.entry-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: #333333;
    margin: 0 0 16px;
}

.entry-content {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: #333333;
}

.entry-content p {
    margin: 0 0 12px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: #333333;
    margin: 20px 0 10px;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 14px 22px;
}

.entry-content li {
    margin: 6px 0;
}

.entry-content a {
    color: #667eea;
    text-decoration: none;
}

.entry-content a:hover {
    text-decoration: underline;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 0;
    position: relative;
    width: 100%;
    z-index: 1000;
    margin: 0;
    left: 0;
    right: 0;
    top: 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Верхняя строка */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

/* Левая часть верхней строки (бренд) */
.header-left {
    flex: 0 0 auto;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lordicon-wrapper {
    display: flex;
    align-items: center;
}

.site-title-wrapper a {
    text-decoration: none;
}

.site-title-wrapper h6 {
    margin: 0;
    font-size: 18px;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.4;
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Правая часть верхней строки (соцсети и язык) */
.header-top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Социальные иконки */
.header-social {
    flex: 0 0 auto;
}

.social-icons-wrapper {
    display: flex;
    gap: 8px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #ffffff;
    text-decoration: none;
}

.social-icon:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
}

.social-icon svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
}

/* Переключатель языков */
.language-switcher {
    flex: 0 0 auto;
}

.language-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.language-item {
    margin: 0;
}

.language-link {
    display: block;
    padding: 4px 10px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.language-item.active .language-link {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.language-link:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Нижняя строка с меню */
.header-bottom {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle svg {
    fill: #ffffff;
    width: 25px;
    height: 25px;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.main-menu li {
    position: relative;
    margin: 0;
}

.main-menu a {
    display: block;
    padding: 8px 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.main-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Выпадающее меню */
.main-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
    padding: 10px 0;
}

.main-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu .sub-menu a {
    color: #333333;
    padding: 8px 20px;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif !important;
}

.main-menu .sub-menu a:hover {
    background: #f5f5f5;
    color: #667eea;
}

.main-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    transform: translateX(-10px);
}

.main-menu li:hover > .sub-menu .sub-menu {
    transform: translateX(0);
}

/* Мобильная версия */
@media (max-width: 992px) {
    .main-menu a {
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 10px 0;
    }
    
    .header-top {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .header-left {
        flex: 1 1 auto;
    }
    
    .brand-wrapper {
        gap: 10px;
    }
    
    .site-title-wrapper h6 {
        font-size: 16px;
        white-space: normal;
    }
    
    .header-top-right {
        flex: 0 0 auto;
        gap: 10px;
    }
    
    .header-bottom {
        padding-top: 10px;
    }
    
    .menu-toggle {
        display: block;
        margin-left: auto;
    }
    
    .main-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }
    
    .main-menu.active {
        display: flex;
    }
    
    .main-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        padding-left: 20px;
        display: none;
        width: 100%;
    }
    
    .main-menu li.active > .sub-menu {
        display: block;
    }
    
    .main-menu a {
        padding: 12px 20px;
        white-space: normal;
    }
    
    .main-menu .sub-menu a {
        color: #ffffff;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .brand-wrapper {
        gap: 8px;
    }
    
    .site-title-wrapper h6 {
        font-size: 14px;
    }
    
    .lordicon-wrapper lord-icon {
        width: 40px !important;
        height: 40px !important;
    }
    
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-top-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .social-icon {
        width: 28px;
        height: 28px;
    }
    
    .social-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .language-link {
        padding: 3px 8px;
        font-size: 12px;
    }
}

/* Основной контент */
.site-main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Footer Styles - полностью согласовано с хедером */
.site-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0 30px;
    margin-top: 60px;
    border-top: 3px solid rgba(255, 255, 255, 0.2);
    font-family: 'Montserrat', sans-serif !important;
    color: #ffffff;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Основная сетка футера */
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* Колонка "О нас" */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo lord-icon {
    display: block;
}

.footer-site-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.3px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 300px;
    font-family: 'Montserrat', sans-serif;
}

.footer-description p {
    margin: 0;
}

/* Заголовки колонок */
.footer-widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.3px;
}

/* Меню футера */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    display: inline-block;
}

.footer-menu li a:hover {
    color: #ffffff;
    padding-left: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Контактная информация */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
}

.contact-icon {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.9);
    width: 18px;
    height: 18px;
}

/* Социальные иконки в футере */
.footer-social {
    margin-top: 20px;
}

.social-title {
    margin-bottom: 15px !important;
}

.footer-social .social-icons-wrapper {
    display: flex;
    gap: 12px;
}

.footer-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social .social-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.4);
}

.footer-social .icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Нижняя часть футера */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Montserrat', sans-serif;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
}

/* Языковой переключатель в футере */
.footer-language .language-list {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-language .language-item {
    margin: 0;
}

.footer-language .language-link {
    display: block;
    padding: 4px 10px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-language .language-item.active .language-link {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.footer-language .language-link:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-about {
        grid-column: 1 / -1;
    }
    
    .footer-description {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 20px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-brand {
        justify-content: center;
    }
    
    .footer-description {
        text-align: center;
        margin: 0 auto;
    }
    
    .footer-widget-title {
        display: block;
        text-align: center;
    }
    
    .footer-menu {
        text-align: center;
    }
    
    .contact-info li {
        justify-content: center;
    }
    
    .footer-social .social-icons-wrapper {
        justify-content: center;
    }
    
    .footer-language .language-list {
        justify-content: center;
    }
}

/* Админское уведомление */
.admin-notice {
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid rgba(255, 255, 255, 0.5);
    padding: 10px 15px;
    font-size: 0.85rem;
    color: #ffffff;
    border-radius: 4px;
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
}