/*
Theme Name: NocoDB Simple Clone
Theme URI: https://yourwebsite.com
Description: A minimal, modern WordPress theme inspired by NocoDB.com.
Author: Your Name
Version: 1.0
*/

/* === Сброс и базовые стили === */
*, *::before, *::after {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #111827;
    background-color: #ffffff;
}

/* === Контейнер === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Заголовки === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* === Ссылки и кнопки === */
a {
    color: #3366FF;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}
.btn-primary {
    background-color: #3366FF;
    color: white;
}
.btn-primary:hover {
    background-color: #2557f0;
    text-decoration: none;
}
.btn-secondary {
    background-color: transparent;
    color: #111827;
    border: 1px solid #D1D5DB;
}
.btn-secondary:hover {
    background-color: #F9FAFB;
    text-decoration: none;
}

/* === Навигация === */
.site-header {
    padding: 20px 0;
    background-color: #ffffff;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-menu li {
    margin-left: 24px;
}
.nav-menu a {
    font-weight: 600;
}

/* === Главная страница — Герой === */
.hero {
    padding: 80px 0;
    text-align: center;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

/* === Основной контент === */
.content-area {
    padding: 60px 0;
}

/* === Формы (логин/регистрация) === */
#loginform, #registerform {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}
#loginform p, #registerform p {
    margin-bottom: 16px;
}
#loginform label, #registerform label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1f2937;
}
#loginform input, #registerform input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
}
#loginform input[type="submit"], #registerform input[type="submit"] {
    background-color: #3366FF;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

/* === Футер === */
.site-footer {
    padding: 40px 0;
    background-color: #F9FAFB;
    border-top: 1px solid #E5E7EB;
    text-align: center;
}
/* === Плавающее меню === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 20px 0;
}
.site-header.scrolled {
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}
.site-header.scrolled .navbar-brand {
    font-size: 1.1rem;
}

/* === Контейнер и обертка === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* === Логотип === */
.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: #3366FF;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.logo-image {
    height: 28px;
    width: auto;
}

/* === Основное меню === */
.nav-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-menu-2 {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}
.nav-menu-2 li {
    position: relative;
}
.nav-menu-2 a {
    font-weight: 500;
    text-decoration: none;
    color: #1F2937;
    display: block;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s ease;
}
.nav-menu-2 a:hover {
    color: #3366FF;
}
.nav-menu-2 a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #3366FF;
    transform: scaleX(1);
    transition: transform 0.2s ease;
}

/* === Кнопки в меню === */
.nav-button-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 24px;
}
.button-secondary {
    background-color: transparent;
    color: #1F2937;
    border: 1px solid #D1D5DB;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.button-secondary:hover {
    background-color: #F9FAFB;
    color: #111827;
}
.button-primary-main {
    background-color: #3366FF;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.button-primary-main:hover {
    background-color: #2557f0;
    color: white;
}

/* === Dropdown меню === */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 16px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    margin-top: 8px;
}
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-item {
    padding: 12px 24px;
    display: block;
    color: #1F2937;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
    position: relative;
}
.dropdown-item:hover {
    background-color: #F9FAFB;
    color: #3366FF;
}
.dropdown-item svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    vertical-align: middle;
}
.dropdown-item .greyed-out-text {
    color: #9CA3AF;
    font-size: 0.85rem;
    margin-left: 4px;
}
.dropdown-divider {
    height: 1px;
    background-color: #E5E7EB;
    margin: 8px 0;
}
.dropdown-header {
    padding: 8px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === Выпадающее меню на десктопе === */
.menu-item-has-children:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #6B7280;
    margin-left: 6px;
    vertical-align: middle;
    transition: transform 0.2s ease;
}
.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}
/* === Мобильное меню === */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1200;
    transition: right 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 10;
}

.mobile-logo {
    font-weight: 800;
    font-size: 1.4rem;
    color: #3366FF;
    text-decoration: none;
}

.mobile-close-button {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #333;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-content {
    padding: 20px;
    flex: 1;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-menu li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.mobile-nav-menu > li {
    margin-bottom: 15px;
}

.mobile-nav-menu a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: #1F2937;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.mobile-nav-menu a:hover {
    color: #3366FF;
}

.mobile-nav-menu .sub-menu {
    list-style: none;
    padding-left: 20px;
    margin: 10px 0;
    display: none;
}

.mobile-nav-menu .menu-item-has-children > a::after {
    content: '▼';
    font-size: 0.7em;
    margin-left: 8px;
    color: #666;
    display: inline-block;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.mobile-nav-menu .menu-item-has-children.active > a::after {
    transform: rotate(180deg);
}

.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: white;
    position: sticky;
    bottom: 0;
}

.mobile-button-secondary,
.mobile-button-primary {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.mobile-button-secondary {
    background-color: transparent;
    color: #1F2937;
    border: 1px solid #D1D5DB;
}

.mobile-button-secondary:hover {
    background-color: #F9FAFB;
    color: #111827;
}

.mobile-button-primary {
    background-color: #3366FF;
    color: white;
    border: none;
}

.mobile-button-primary:hover {
    background-color: #2557f0;
    color: white;
}

/* === Гамбургер-меню === */
.menu-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: block;
    z-index: 1300;
}

.navbar-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    height: 20px;
}

.bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #1F2937;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* === Адаптивность === */
@media (max-width: 991px) {
    .desktop-only {
        display: none;
    }
    
    .menu-button {
        display: block;
    }
    
    .nav-menu-wrapper {
        display: none;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .site-header {
        padding: 15px 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
}

@media (max-width: 767px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .mobile-menu {
        width: 90%;
        max-width: 300px;
    }
    
    .mobile-nav-menu a {
        font-size: 1rem;
        padding: 10px 0;
    }
    
    .mobile-button-secondary,
    .mobile-button-primary {
        padding: 12px;
        font-size: 0.95rem;
    }
}

/* === Дополнительные стили для выпадающих меню на мобильных === */
.menu-item-has-children .sub-menu {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.menu-item-has-children.active .sub-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 16px 0;
    z-index: 100;
    margin-top: 8px;
}

@media (max-width: 991px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 10px 0;
        background: transparent;
        margin-top: 0;
    }
}
/* === Исправления для адаптивности === */

/* Скрыть гамбургер на десктопе */
@media (min-width: 992px) {
    .menu-button {
        display: none !important;
    }
    
    .desktop-only {
        display: flex !important;
    }
    
    .nav-menu-wrapper {
        display: flex !important;
    }
}

/* Показать гамбургер на мобильных */
@media (max-width: 991px) {
    .desktop-only {
        display: none !important;
    }
    
    .nav-menu-wrapper {
        display: none !important;
    }
    
    .menu-button {
        display: block !important;
        margin-left: auto; /* Прижать кнопку вправо */
        padding: 8px 10px;
    }
    
    .navbar-wrapper {
        justify-content: space-between; /* Распределить элементы по краям */
        align-items: center;
    }
    
    .navbar-brand {
        margin-right: 0 !important; /* Убрать лишние отступы */
    }
}

/* === Улучшенные стили для мобильного меню === */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1200;
    transition: right 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 10;
}

.mobile-logo {
    font-weight: 800;
    font-size: 1.4rem;
    color: #3366FF;
    text-decoration: none;
}

.mobile-close-button {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #333;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-menu li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.mobile-nav-menu > li {
    margin-bottom: 15px;
}

.mobile-nav-menu a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: #1F2937;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.mobile-nav-menu a:hover {
    color: #3366FF;
}

.mobile-nav-menu .sub-menu {
    list-style: none;
    padding-left: 20px;
    margin: 10px 0;
    display: none;
}

.mobile-nav-menu .menu-item-has-children > a::after {
    content: '▼';
    font-size: 0.7em;
    margin-left: 8px;
    color: #666;
    display: inline-block;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.mobile-nav-menu .menu-item-has-children.active > a::after {
    transform: rotate(180deg);
}

.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: white;
    position: sticky;
    bottom: 0;
}

.mobile-button-secondary,
.mobile-button-primary {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.mobile-button-secondary {
    background-color: transparent;
    color: #1F2937;
    border: 1px solid #D1D5DB;
}

.mobile-button-secondary:hover {
    background-color: #F9FAFB;
    color: #111827;
}

.mobile-button-primary {
    background-color: #3366FF;
    color: white;
    border: none;
}

.mobile-button-primary:hover {
    background-color: #2557f0;
    color: white;
}

/* === Иконка гамбургера === */
.navbar-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
    height: 18px;
}

.bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #1F2937;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* === Контейнер и обертка === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

/* === Улучшенная адаптивность === */
@media (max-width: 767px) {
    .mobile-menu {
        width: 90%;
        max-width: 280px;
    }
    
    .navbar-icon {
        width: 22px;
        height: 16px;
    }
    
    .bar {
        height: 2px;
    }
    
    .mobile-menu-header {
        padding: 15px;
    }
    
    .mobile-menu-content {
        padding: 15px;
    }
    
    .mobile-nav-menu a {
        font-size: 1rem;
        padding: 10px 0;
    }
    
    .mobile-button-secondary,
    .mobile-button-primary {
        padding: 12px;
        font-size: 0.95rem;
    }
}
/* === Дополнительные стили для новой функциональности === */

/* Сетка контента */
.content-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.content-wrapper.full-width .primary-content {
    width: 100%;
}

.content-wrapper.with-sidebar .primary-content {
    flex: 1;
    width: 70%;
}

.content-wrapper.with-sidebar .sidebar {
    width: 30%;
    min-width: 300px;
}

/* Сетка записей */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Мета-информация записей */
.entry-meta {
    font-size: 0.9em;
    color: #6B7280;
    margin-bottom: 15px;
}

.entry-meta span {
    margin-right: 15px;
}

.entry-meta a {
    color: inherit;
    text-decoration: none;
}

.entry-meta a:hover {
    color: #3366FF;
    text-decoration: underline;
}

/* Стили для сайдбара */
.sidebar {
    padding: 20px;
    background: #F9FAFB;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.widget {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E5E7EB;
}

.widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget-title {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #1F2937;
}

/* Страница входа */
.login-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f6f9fc 0%, #ffffff 100%);
}

.login-container {
    max-width: 480px;
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin: 40px auto;
}

.auth-tabs {
    width: 100%;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 30px;
}

.tab-button {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.tab-button.active {
    color: #3366FF;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #3366FF;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Формы входа */
#custom-login-form p,
#custom-register-form p {
    margin-bottom: 20px;
}

#custom-login-form label,
#custom-register-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1F2937;
}

#custom-login-form input[type="text"],
#custom-login-form input[type="password"],
#custom-register-form input[type="text"],
#custom-register-form input[type="email"],
#custom-register-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

#custom-login-form input:focus,
#custom-register-form input:focus {
    outline: none;
    border-color: #3366FF;
    box-shadow: 0 0 0 3px rgba(51, 102, 255, 0.1);
}

#custom-login-form input[type="submit"],
#custom-register-form input[type="submit"] {
    background: #3366FF;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s ease;
}

#custom-login-form input[type="submit"]:hover,
#custom-register-form input[type="submit"]:hover {
    background: #2557f0;
}

.register-link,
.login-link,
.lost-password-link {
    text-align: center;
    margin-top: 20px;
    color: #6B7280;
}

.register-link a,
.login-link a {
    color: #3366FF;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover,
.login-link a:hover {
    text-decoration: underline;
}

/* Провайдеры авторизации */
.auth-providers {
    margin-top: 30px;
    border-top: 1px solid #E5E7EB;
    padding-top: 30px;
}

.auth-divider {
    text-align: center;
    position: relative;
    margin-bottom: 20px;
}

.auth-divider span {
    background: white;
    padding: 0 15px;
    color: #6B7280;
    font-size: 14px;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #E5E7EB;
    z-index: -1;
}

.provider-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.provider-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    color: #1F2937;
    cursor: pointer;
    transition: all 0.2s ease;
}

.provider-button:hover:not(.disabled) {
    background: #F9FAFB;
    border-color: #9CA3AF;
}

.provider-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.provider-icon {
    font-size: 16px;
}

/* Уже авторизован */
.already-logged-in {
    text-align: center;
    padding: 40px 0;
}

.already-logged-in .btn {
    margin: 0 10px;
}

/* Футер */
.footer-content {
    padding: 60px 0 30px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-bottom {
    border-top: 1px solid #E5E7EB;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.footer-navigation a {
    color: #6B7280;
    text-decoration: none;
    font-size: 14px;
}

.footer-navigation a:hover {
    color: #3366FF;
}

/* Адаптивность */
@media (max-width: 991px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .content-wrapper.with-sidebar .primary-content,
    .content-wrapper.with-sidebar .sidebar {
        width: 100%;
    }
    
    .sidebar {
        order: 2;
        margin-top: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-navigation ul {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .login-container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}
/* === Исправленные стили === */

/* Стили для основного контента */
.primary-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-area {
    min-height: 60vh;
}

/* Заголовки записей */
.entry-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1F2937;
}

/* Мета информация */
.entry-meta {
    color: #6B7280;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Контент записей */
.entry-content {
    line-height: 1.7;
    font-size: 1.1rem;
    color: #374151;
}

.entry-content p {
    margin-bottom: 1.5em;
}

/* Кнопка "Читать далее" */
.read-more {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #3366FF;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.read-more:hover {
    background-color: #2557f0;
    color: white;
    text-decoration: none;
}

/* Пагинация */
.navigation.pagination {
    margin-top: 40px;
    text-align: center;
}

.page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    text-decoration: none;
    color: #4B5563;
}

.page-numbers.current {
    background-color: #3366FF;
    color: white;
    border-color: #3366FF;
}

.page-numbers:hover:not(.current) {
    background-color: #F3F4F6;
}

/* Когда нет контента */
.no-content {
    text-align: center;
    padding: 60px 20px;
}

.no-content h2 {
    color: #1F2937;
    margin-bottom: 20px;
}

.no-content p {
    color: #6B7280;
    font-size: 1.1rem;
}

/* Список записей */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.posts-list article {
    padding: 30px;
    background: white;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Адаптивность */
@media (max-width: 768px) {
    .primary-content {
        padding: 20px 15px;
    }
    
    .entry-title {
        font-size: 1.5rem;
    }
    
    .posts-list article {
        padding: 20px;
    }
}
/* === Стили для логотипа === */

/* Стили для ссылки с логотипом (генерируется WordPress) */
.custom-logo-link {
    display: flex;
    align-items: center; /* Выравниваем логотип по центру по вертикали */
    height: 100%; /* Занимает всю доступную высоту родителя */
}

/* Основные стили для изображения логотипа */
.custom-logo {
    max-height: 50px; /* Максимальная высота логотипа */
    width: auto; /* Ширина подстраивается автоматически для сохранения пропорций */
    transition: all 0.3s ease; /* Плавный переход для всех свойств */
}

/* Уменьшаем логотип при скролле (если меню становится компактнее) */
.site-header.scrolled .custom-logo {
    max-height: 40px; /* Чуть меньше при скролле */
}

/* Адаптивность для мобильных устройств */
@media (max-width: 991px) {
    .custom-logo {
        max-height: 45px; /* Немного меньше на планшетах */
    }
}

@media (max-width: 767px) {
    .custom-logo {
        max-height: 40px; /* Еще меньше на мобильных */
    }
    
    .site-header.scrolled .custom-logo {
        max-height: 35px;
    }
}

/* Гарантируем, что контейнер логотипа не растягивается */
.navbar-brand {
    display: flex;
    align-items: center;
    height: 100%; /* Занимает всю высоту шапки */
    max-height: 80px; /* Максимальная высота контейнера */
    overflow: hidden; /* Обрезаем все, что выходит за пределы */
}

/* Дополнительная защита для очень больших изображений */
.navbar-brand img {
    max-width: 100%;
    object-fit: contain; /* Сохраняет пропорции, вписывая изображение в контейнер */
}
