/* ===== ОСНОВНЫЕ ПЕРЕМЕННЫЕ ===== */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2c5282;
    --accent-color: #ed8936;
    --accent-hover: #dd6b20;
    --text-dark: #1a202c;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
}

body.page-id-38 .entry-header.pen_content_header {
    display: none !important;
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
.cheremkhovo-page {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--bg-light);
}

.cheremkhovo-page * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* ===== ЗАГОЛОВОК СТРАНИЦЫ ===== */
.cher-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cher-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.cher-header__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.cher-header__subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.cher-header__emblem {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255,255,255,0.3);
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeInScale 0.8s ease 0.1s forwards;
}

.cher-header__emblem svg {
    width: 40px;
    height: 40px;
    fill: #fff;
}

/* ===== СЕКЦИЯ ЦИТАТЫ ===== */
.cher-quote {
    background: var(--bg-white);
    padding: 60px 20px;
    position: relative;
}

.cher-quote__inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding: 40px;
    background: linear-gradient(145deg, #fefefe 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(40px);
}

.cher-quote__inner.animate {
    animation: fadeInUp 0.8s ease forwards;
}

.cher-quote__icon {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.4);
}

.cher-quote__icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.cher-quote__text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.9;
    margin-bottom: 25px;
    padding-top: 20px;
}

.cher-quote__author {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.cher-quote__author::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -50px;
    width: 35px;
    height: 2px;
    background: var(--accent-color);
}

.cher-quote__author::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50px;
    width: 35px;
    height: 2px;
    background: var(--accent-color);
}

/* ===== СЕКЦИЯ ГЕОГРАФИИ ===== */
.cher-geo {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.cher-geo__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://admcher.ru/wp-content/uploads/2023/03/123.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.4);
    transition: var(--transition);
}

.cher-geo:hover .cher-geo__bg {
    filter: brightness(0.5);
    transform: scale(1.02);
}

.cher-geo__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(44, 82, 130, 0.7) 100%);
}

.cher-geo__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px 20px;
}

.cher-geo__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.cher-geo__card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.cher-geo__card.animate {
    animation: fadeInUp 0.6s ease forwards;
}

.cher-geo__card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.cher-geo__card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(237, 137, 54, 0.4);
}

.cher-geo__card-icon svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.cher-geo__card-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.cher-geo__card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.cher-geo__card-value span {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
}

/* ===== СЕКЦИЯ ХАРАКТЕРИСТИКИ ===== */
.cher-info {
    padding: 80px 20px;
    background: var(--bg-white);
}

.cher-info__header {
    text-align: center;
    margin-bottom: 50px;
}

.cher-info__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.cher-info__subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Навигация по табам */
.cher-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 16px;
}

.cher-tab {
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cher-tab:hover {
    color: var(--primary-color);
    background: var(--bg-white);
}

.cher-tab.active {
    color: #fff;
    background: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.cher-tab svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Контент табов */
.cher-tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.cher-tab-content.active {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

.cher-tab-panel {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 40px;
}

.cher-tab-panel__title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
}

.cher-tab-panel__text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.cher-tab-panel__text:last-child {
    margin-bottom: 0;
}

/* Списки в контенте */
.cher-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.cher-list__item {
    padding: 15px 20px;
    background: var(--bg-white);
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
}

.cher-list__item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.cher-list__item-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.cher-list__item-content {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Подкатегории в экономике */
.cher-economy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.cher-economy-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.cher-economy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.cher-economy-card__header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.cher-economy-card__icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cher-economy-card__icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.cher-economy-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.cher-economy-card__list {
    list-style: none;
    padding: 0;
}

.cher-economy-card__list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-dark);
}

.cher-economy-card__list li:last-child {
    border-bottom: none;
}

.cher-economy-card__list strong {
    color: var(--secondary-color);
    display: block;
    margin-bottom: 3px;
}

/* Статистические карточки */
.cher-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.cher-stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cher-stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.cher-stat-card__value {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.cher-stat-card__label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

/* ===== СЕКЦИЯ КАРТЫ ===== */
.cher-map {
    padding: 80px 20px;
    background: var(--bg-light);
}

.cher-map__header {
    text-align: center;
    margin-bottom: 40px;
}

.cher-map__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.cher-map__subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

.cher-map__container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--bg-white);
    padding: 10px;
}

.cher-map__container iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 16px;
}

/* ===== ФУТЕР ===== */
.cher-footer {
    background: var(--primary-color);
    padding: 40px 20px;
    text-align: center;
    color: rgba(255,255,255,0.8);
}

.cher-footer__text {
    font-size: 0.95rem;
}

.cher-footer__link {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.cher-footer__link:hover {
    color: #fff;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Счетчик анимация */
.cher-counter {
    display: inline-block;
}

/* Скролл-индикатор */
.cher-scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* Кнопка наверх */
.cher-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.cher-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.cher-scroll-top:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.cher-scroll-top svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .cher-tabs {
        padding: 8px;
    }
    
    .cher-tab {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    
    .cher-tab-panel {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .cher-header {
        padding: 60px 20px;
    }
    
    .cher-quote__inner {
        padding: 30px 20px;
    }
    
    .cher-quote__text {
        font-size: 1.1rem;
    }
    
    .cher-geo {
        min-height: 500px;
    }
    
    .cher-geo__bg {
        background-attachment: scroll;
    }
    
    .cher-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cher-tab {
        justify-content: center;
    }
    
    .cher-info {
        padding: 50px 15px;
    }
    
    .cher-tab-panel {
        padding: 25px 20px;
    }
    
    .cher-economy-grid {
        grid-template-columns: 1fr;
    }
    
    .cher-map__container iframe {
        height: 350px;
    }
    
    .cher-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cher-header {
        padding: 40px 15px;
    }
    
    .cher-header__emblem {
        width: 60px;
        height: 60px;
    }
    
    .cher-quote {
        padding: 40px 15px;
    }
    
    .cher-quote__author::before,
    .cher-quote__author::after {
        width: 25px;
        left: -35px;
        right: -35px;
    }
    
    .cher-geo__card {
        padding: 20px;
    }
    
    .cher-tab-panel__title {
        font-size: 1.4rem;
    }
    
    .cher-tab-panel__text {
        font-size: 0.95rem;
    }
    
    .cher-stat-card {
        padding: 20px;
    }
    
    .cher-stat-card__value {
        font-size: 2rem;
    }
    
    .cher-scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ===== ПЕЧАТЬ ===== */
@media print {
    .cher-tabs,
    .cher-scroll-top,
    .cher-scroll-indicator,
    .cher-map {
        display: none;
    }
    
    .cher-tab-content {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .cher-geo__bg {
        filter: none;
    }
}