/* Дополнительные стили для темы */

/* Header стили */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-branding .site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.site-branding .site-title a {
    color: #333;
    text-decoration: none;
}

.site-branding .site-description {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Навигация */
.main-navigation {
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    align-items: center;
}

.hamburger {
    display: flex;
    flex-direction: column;
    width: 25px;
    height: 20px;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #0073aa;
}

/* Основной контент */
.site-main {
    min-height: 60vh;
    padding: 2rem 0;
}

/* Посты */
.posts-container {
    display: grid;
    gap: 2rem;
}

.post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.entry-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.entry-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.entry-title a {
    color: #333;
    text-decoration: none;
}

.entry-title a:hover {
    color: #0073aa;
}

.entry-meta {
    color: #666;
    font-size: 0.9rem;
}

.entry-meta span {
    margin-right: 1rem;
}

.entry-content {
    padding: 1.5rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #005177;
}

/* Footer */
.site-footer {
    background-color: #333;
    color: #fff;
    margin-top: 3rem;
}

.footer-content {
    padding: 2rem 0;
}

.footer-widgets {
    margin-bottom: 2rem;
}

.footer-widget h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-widget p {
    color: #ccc;
    line-height: 1.6;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #fff;
}

.site-info {
    border-top: 1px solid #555;
    padding-top: 1rem;
}

.site-info p {
    margin: 0;
    color: #999;
    font-size: 0.9rem;
}

/* Пагинация */
.page-links {
    margin-top: 2rem;
    text-align: center;
}

.page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: #0073aa;
    color: white;
}

/* Комментарии */
.comments-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0 0 0.5rem 0;
    }
    
    .footer-widgets .row {
        flex-direction: column;
    }
    
    .footer-widgets .col {
        margin-bottom: 2rem;
    }
    
    .site-info .row {
        flex-direction: column;
        text-align: center;
    }
    
    .site-info .text-right {
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* Elementor совместимость */
.elementor-page .site-main {
    padding: 0;
}

.elementor-section {
    margin-bottom: 0;
}

.elementor-widget-container {
    margin-bottom: 0;
}

/* Утилиты */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.skip-link:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ========================================
   ACF Вариативные блоки
   ======================================== */

.variative-blocks {
    margin: 2rem 0;
}

.variative-block {
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.variative-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.block-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.block-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.2;
}

.block-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.block-quote {
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.block-quote p {
    margin: 0;
    font-size: 1.1rem;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    min-width: 120px;
}

.btn-primary {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

.btn-primary:hover {
    background-color: #005177;
    border-color: #005177;
    color: white;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: #0073aa;
    border-color: #0073aa;
}

.btn-secondary:hover {
    background-color: #0073aa;
    color: white;
    transform: translateY(-1px);
}

/* Блок "Карусель. Карточки" */
.carousel-cards-block {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.carousel-cards-block .block-title {
    color: white;
}

.carousel-cards-block .block-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.carousel-cards-block .block-quote {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: white;
    color: white;
}

.carousel-cards-block .btn-primary {
    background-color: white;
    color: #667eea;
    border-color: white;
}

.carousel-cards-block .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #667eea;
}

/* Блок "Обложка с 2 кнопками" */
.cover-2buttons-block {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.cover-2buttons-block .block-title {
    color: white;
}

.cover-2buttons-block .block-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.cover-2buttons-block .block-quote {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: white;
    color: white;
}

.buttons-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cover-2buttons-block .btn-primary {
    background-color: white;
    color: #f5576c;
    border-color: white;
}

.cover-2buttons-block .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #f5576c;
}

.cover-2buttons-block .btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.cover-2buttons-block .btn-secondary:hover {
    background-color: white;
    color: #f5576c;
}

/* Блок "Книга/Курс" */
.book-course-block {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.book-course-block .block-title {
    color: white;
}

.book-course-block .block-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.pricing-item {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.btn-pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background-color: white;
    color: #4facfe;
    border: 2px solid white;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 120px;
    justify-content: center;
}

.btn-pricing:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #4facfe;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.btn-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f5576c;
}

/* Адаптивность для вариативных блоков */
@media (max-width: 768px) {
    .variative-block {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .block-title {
        font-size: 2rem;
    }
    
    .block-subtitle {
        font-size: 1.1rem;
    }
    
    .buttons-group {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-item {
        width: 100%;
        max-width: 280px;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .variative-block {
        padding: 1rem;
    }
    
    .block-title {
        font-size: 1.8rem;
    }
    
    .block-subtitle {
        font-size: 1rem;
    }
    
    .btn-pricing {
        padding: 1rem;
        min-height: 100px;
    }
}



