/* ──────────────────────────────────────────────────────────────────────────────
   Врата Ци Мень — основные стили
   Концепция: luxury wellness, крем + золото
   ────────────────────────────────────────────────────────────────────────────── */

/* Шрифты Oswald и Manrope подключены глобально в functions.php темы */

/* ─── CSS-переменные ──────────────────────────────────────────────────────── */
.vcm-page {
    --gold:        #C9A96E;
    --gold-light:  #E8D5B0;
    --gold-dark:   #9A7840;
    --gold-pale:   #F5EDD8;
    --cream:       #FAF6F0;
    --cream-dark:  #F0E8DC;
    --ink:         #2C1F1A;
    --ink-muted:   #6B5550;
    --ink-light:   #A89490;
    --border:      #E8DDD5;
    --border-gold: #DEC898;
    --white:       #FFFFFF;

    --theme-bg:      #F5E6D3;
    --theme-brown:   #8B6F47;
    --theme-text:    #3A3A3A;
    --theme-divider: #F5E6D3;

    --beige-bg:    #F5E6D3;
    --beige-border:#C9A96E;
    --beige-text:  #6B5550;
    --beige-line:  #C9A96E;
    --beige-hover: #EDD9BC;

    --sage-bg:     #C8D8C8;
    --sage-border: #8AA88A;
    --sage-text:   #3D5C3D;
    --sage-line:   #8AA88A;
    --sage-hover:  #B4CAB4;

    --blue-bg:     #C8D0DC;
    --blue-border: #8898B0;
    --blue-text:   #3A4A5C;
    --blue-line:   #8898B0;
    --blue-hover:  #B4BED0;

    --shadow-sm:    0 2px 12px rgba(44,31,26,0.07);
    --shadow-md:    0 6px 28px rgba(44,31,26,0.10);
    --shadow-theme: 0 5px 20px rgba(139,111,71,0.10);
    --radius:       16px;
    --radius-sm:    10px;
    --transition:   all 0.22s ease;

    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    color: var(--ink);
    background: var(--cream);
    min-height: 100vh;
    box-sizing: border-box;
}

.vcm-page *,
.vcm-page *::before,
.vcm-page *::after {
    box-sizing: border-box;
}

/* ─── Обёртка страницы ────────────────────────────────────────────────────── */
.vcm-page-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    padding: 24px 20px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* ─── Сайдбар ─────────────────────────────────────────────────────────────── */
.vcm-sidebar {
    position: static;
    width: 100%;
    height: fit-content;
    overflow: visible;
    padding: 0;
    background: transparent;
}

.vcm-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-theme);
    overflow: hidden;
}

.vcm-sidebar-nav__item {
    border-bottom: 1px solid var(--theme-divider);
}

.vcm-sidebar-nav__item:last-child {
    border-bottom: none;
}

.vcm-sidebar-nav__link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 22px;
    color: var(--theme-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.vcm-sidebar-nav__link:hover {
    background: var(--theme-bg);
    color: var(--theme-brown);
    padding-left: 32px;
    text-decoration: none;
}

.vcm-sidebar-nav__link.active {
    background: var(--theme-bg);
    color: var(--theme-brown);
    padding-left: 32px;
    font-weight: 600;
    text-decoration: none;
}

.vcm-sidebar-nav__icon {
    font-size: 18px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.vcm-sidebar-nav__link:hover .vcm-sidebar-nav__icon,
.vcm-sidebar-nav__link.active .vcm-sidebar-nav__icon {
    opacity: 1;
}

/* ─── Основной контент ────────────────────────────────────────────────────── */
.vcm-main {
    min-width: 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #dbcab4;
    border-radius: var(--radius);
}

/* ─── Шапка (topbar) ──────────────────────────────────────────────────────── */
.vcm-topbar {
    position: relative;
    margin-bottom: 5px;
    padding: 10px 32px 22px;
    background: transparent;
    overflow: hidden;
}

.vcm-topbar__qi {
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 160px;
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold);
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    z-index: 0;
}

.vcm-topbar__title {
    position: relative;
    z-index: 1;
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 6px;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.vcm-topbar__subtitle {
    position: relative;
    z-index: 1;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin: 0;
}

/* ─── Блок статуса тарифа ─────────────────────────────────────────────────── */
.vcm-tariff-status {
    background: transparent;
    border: 1px solid #dbcab4;
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    margin-bottom: 24px;
}

.vcm-tariff-status__text {
    margin: 0;
    font-size: 13px;
    color: #0b0806;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.vcm-tariff-status__text strong {
    color: #0b0806;
}

.vcm-tariff-status__days {
    margin: 6px 0 0;
    font-size: 12px;
    color: #8a6b42;
}

.vcm-tariff-status__days--warn {
    color: #f05c2e;
    font-weight: 500;
}

.vcm-btn--access {
    background: #b4c5db;
    color: #0b0806;
    box-shadow: none;
    margin-top: 14px;
}

.vcm-btn--access:hover {
    background: #9eb4ce;
    color: #0b0806;
    box-shadow: none;
}

.vcm-tariff-status__btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.vcm-tariff-status__btns .vcm-btn--access {
    margin-top: 0;
}

.vcm-btn--open {
    background: #dbcab4;
    color: #0b0806;
    box-shadow: none;
    margin-top: 0;
}

.vcm-btn--open:hover {
    background: #cdb698;
    color: #0b0806;
    box-shadow: none;
}


/* ─── Общие кнопки ────────────────────────────────────────────────────────── */
.vcm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 28px;
    border: none;
    border-radius: 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.vcm-btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.vcm-btn--gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    box-shadow: 0 4px 16px rgba(201,169,110,0.35);
    color: #fff;
}

.vcm-btn--gold:hover {
    background: linear-gradient(135deg, #D4B87A 0%, #B08940 100%);
    box-shadow: 0 6px 22px rgba(201,169,110,0.50);
    color: #fff;
}

.vcm-btn--green {
    background: linear-gradient(135deg, #5AAE7A 0%, #2E7D4F 100%);
    box-shadow: 0 4px 16px rgba(46,125,79,0.30);
    color: #fff;
}

.vcm-btn--green:hover {
    background: linear-gradient(135deg, #6DC48E 0%, #3A9460 100%);
    box-shadow: 0 6px 22px rgba(46,125,79,0.45);
    color: #fff;
}

.vcm-btn--secondary {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold-dark);
    box-shadow: none;
}

.vcm-btn--secondary:hover {
    background: var(--gold-pale);
    color: var(--gold-dark);
    box-shadow: none;
}

/* ─── Навигационная кнопка «назад» ───────────────────────────────────────── */
.vcm-nav-btn--back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    color: var(--gold-dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 14px;
}

.vcm-nav-btn--back:hover {
    background: var(--gold-pale);
    color: var(--gold-dark);
    text-decoration: none;
}

/* ─── Модальное окно ──────────────────────────────────────────────────────── */
.vcm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 31, 26, 0.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.vcm-modal.active { display: flex; }

.vcm-modal__content {
    background: #ffffff;
    border: 1px solid #E8E2DC;
    border-radius: 14px;
    padding: 28px;
    max-width: 620px;
    width: 92%;
    max-height: 84vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(30,7,4,0.15);
}

.vcm-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    color: var(--ink-muted);
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.vcm-modal__close:hover { color: var(--gold-dark); }

/* ─── Footer-меню (мобайл) ────────────────────────────────────────────────── */
.vcm-footer-nav { display: none; }

/* ─── Скроллбар сайдбара ──────────────────────────────────────────────────── */
.vcm-sidebar::-webkit-scrollbar { width: 4px; }
.vcm-sidebar::-webkit-scrollbar-track { background: transparent; }
.vcm-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.vcm-sidebar::-webkit-scrollbar-thumb:hover { background: var(--ink-light); }

/* ─── Адаптивность ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
}

@media (max-width: 900px) {
    .vcm-page-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    .vcm-sidebar-nav {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
    }

    .vcm-sidebar-nav__item {
        border-bottom: none;
        border-right: 1px solid var(--theme-divider);
        flex-shrink: 0;
    }

    .vcm-sidebar-nav__item:last-child { border-right: none; }

    .vcm-sidebar-nav__link {
        white-space: nowrap;
        padding: 14px 16px;
        font-size: 13px;
    }

    .vcm-sidebar-nav__link:hover,
    .vcm-sidebar-nav__link.active { padding-left: 16px; }

    .vcm-topbar__title { font-size: 22px; }
}

@media (max-width: 640px) {
    .vcm-sidebar { display: none; }

    .vcm-footer-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--white);
        border-top: 1px solid var(--border);
        padding: 8px 0;
        justify-content: space-around;
        z-index: 100;
        box-shadow: 0 -2px 12px rgba(44,31,26,0.08);
        overflow-x: auto;
    }

    .vcm-footer-nav__link {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 6px 8px;
        color: var(--ink-muted);
        text-decoration: none;
        font-size: 9px;
        font-weight: 500;
        letter-spacing: 0.04em;
        flex-shrink: 0;
        text-align: center;
        transition: var(--transition);
    }

    .vcm-footer-nav__link:hover,
    .vcm-footer-nav__link.active { color: var(--gold-dark); text-decoration: none; }

    .vcm-footer-nav__icon { font-size: 20px; }
    body { padding-bottom: 68px; }
}
/* ═══════════════════════════════════════════════════════════════════════════
   НАВИГАТОР ВРАТ — home.php v4  (только hover + media)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Hover кнопок ───────────────────────────────────────────────────────── */
a[href="#vcm-pricing"]:hover { background:#b02914 !important; text-decoration:none; }

/* ─── Адаптивность ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    /* Сетки → 2 колонки */
    div[style*="grid-template-columns:repeat(3,1fr)"],
    div[style*="grid-template-columns:repeat(4,1fr)"],
    div[style*="grid-template-columns:repeat(3, 1fr)"] {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 768px) {
    /* Все сетки → 1 колонка */
    div[style*="grid-template-columns:1fr 1fr"],
    div[style*="grid-template-columns:repeat(3,1fr)"],
    div[style*="grid-template-columns:repeat(4,1fr)"],
    div[style*="grid-template-columns:repeat(3, 1fr)"],
    div[style*="grid-template-columns:2fr 3fr"] {
        grid-template-columns: 1fr !important;
    }
    /* Внешний контейнер — лево/право 5px */
    div[style*="max-width:1200px"] {
        padding-left: 5px !important;
        padding-right: 5px !important;
        box-sizing: border-box !important;
    }
    /* Все секции — лево/право 5px */
    section[style*="padding:56px 60px"] { padding-top: 36px !important; padding-bottom: 36px !important; padding-left: 1px !important; padding-right: 1px !important; }
    section[style*="padding:64px 60px"] { padding-top: 36px !important; padding-bottom: 36px !important; padding-left: 15px !important; padding-right: 15px !important; }
    section[style*="padding:64px"] { padding-top: 36px !important; padding-bottom: 36px !important; padding-left: 15px !important; padding-right: 15px !important; }
    /* Внутренние контейнеры — убираем горизонтальные отступы */
    div[style*="padding:0 32px"],
    div[style*="padding:0 40px"],
    div[style*="padding:0 52px"],
    div[style*="padding-right:32px"],
    div[style*="padding-left:32px"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* Карточки форматов — убираем лишние горизонтальные отступы */
    div[style*="max-width:860px"],
    div[style*="max-width:760px"],
    div[style*="max-width:680px"] {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* CTA блок */
    div[style*="padding:48px 48px"] { padding: 28px 15px !important; }
    div[style*="padding:52px 48px"] { padding: 28px 15px !important; }
    /* Hero */
    h1[style*="font-size:38px"] { font-size: 24px !important; }
    p[style*="font-size:24px"][style*="color:#d4321a"] { font-size: 18px !important; }
    /* Hero кнопки */
    div[style*="display:flex;justify-content:center;gap:14px"] {
        flex-direction: column !important;
        align-items: center !important;
    }
    /* Цены */
    div[style*="grid-template-columns:repeat(3,1fr)"][style*="gap:18px"] {
        grid-template-columns: 1fr !important;
    }
    /* CTA inner */
    div[style*="padding:52px 48px"] { padding: 28px 15px !important; }
    div[style*="padding:48px 48px"] { padding: 28px 15px !important; }
    /* Превью */
    div[style*="max-width:860px"] { max-width:100% !important; }
    div[style*="max-width:760px"] { max-width:100% !important; }
    div[style*="max-width:680px"] { max-width:100% !important; }
}

@media (max-width: 480px) {
    h1[style*="font-size:38px"] { font-size: 20px !important; }
    p[style*="font-size:24px"][style*="color:#d4321a"] { font-size: 16px !important; }
    h2[style*="font-size:24px"] { font-size: 18px !important; }
    h2[style*="font-size:26px"] { font-size: 18px !important; }
}

@media (max-width: 900px) {
    div[style*="min-height:480px"] {
        grid-template-columns: 1fr !important;
    }
    div[style*="min-height:480px"] > div:last-child {
        display: none !important;
    }
    div[style*="padding:56px 52px"] {
        padding: 36px 24px !important;
    }
}

/* ─── Hero адаптив ───────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .vcm-hero-grid {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }
    .vcm-hero-right {
        display: none !important;
    }
    .vcm-hero-left {
        padding: 36px 15px !important;
        text-align: center;
    }
    .vcm-hero-left h1 {
        font-size: 26px !important;
    }
    .vcm-hero-left p[style*="font-size:24px"] {
        font-size: 18px !important;
    }
    .vcm-hero-left .btns,
    .vcm-hero-left div[style*="display:flex;gap:12px"] {
        justify-content: center !important;
    }
    .vcm-hero-left div[style*="grid-template-columns:repeat(3,1fr)"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .vcm-hero-left {
        padding: 28px 5px !important;
    }
    .vcm-hero-left h1 {
        font-size: 22px !important;
    }
    .vcm-hero-left p[style*="font-size:24px"] {
        font-size: 16px !important;
    }
    .vcm-hero-left div[style*="display:flex;gap:12px"] {
        flex-direction: column !important;
        align-items: center !important;
    }
    .vcm-hero-left div[style*="display:flex;gap:12px"] a {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    
}