:root {
    --navy: #001A33;
    --navy-light: #00284D;
    --gold: #C58B39;
    --gold-light: #FDF6E3;
    --gray-bg: #F8F8F8;
    --text-dark: #1A1A1A;
    --text-gray: #666666;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: #FFFFFF;
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, .serif {
    font-family: 'Playfair Display', serif;
}

/* --- BUTTONS --- */
.btn-outline {
    border: 1px solid #E5E5E5;
    background: white;
    transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--gold); }

.btn-navy {
    background-color: var(--navy);
    color: white;
    transition: all 0.2s;
}
.btn-navy:hover { background-color: var(--navy-light); }

.btn-light-gold {
    background-color: #FFF8ED;
    color: var(--text-dark);
    transition: all 0.2s;
}
.btn-light-gold:hover { background-color: #FFEED4; }

.services-banner {
    background-color: var(--navy);
    background-image: url('../navy_banner_bg.png');
    background-size: cover;
    background-position: center;
}

/* --- HEADER --- */
.nav-link {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 15px;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--gold); }
.nav-link-active { color: var(--gold); }

.header-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: var(--navy);
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.header-cart:hover {
    color: var(--gold);
    background: #F0EBE1;
}

/* --- HERO --- */
.hero-section {
    width: 100%;
    height: 30vw;
    min-height: 350px;
    max-height: 600px;
    background-color: var(--navy);
    background-size: cover;
    background-position: center center;
    position: relative;
    display: flex;
    align-items: center;
}
.hero-section--home {
    background-image: url('../hero_banner_ultra_wide_2.jpg');
    /* Shorter desktop banner so events sit higher in the viewport */
    height: 22vw;
    min-height: 260px;
    max-height: 420px;
}
.hero-section--inner {
    min-height: 120px;
    max-height: 160px;
    height: 160px;
    align-items: center;
    background-image: url('../hero-abstract.svg');
    background-color: var(--navy);
}
@media (max-width: 768px) {
    .hero-section {
        height: 300px;
        background-position: left center;
    }
    .hero-section--inner {
        height: 130px;
        min-height: 130px;
        max-height: 130px;
    }
    .hero-section--home {
        height: 300px;
        min-height: 300px;
        max-height: 300px;
    }
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    /* Light overlay — abstract SVG already carries brand color */
    background: linear-gradient(90deg, rgba(0,26,51,0.55) 0%, rgba(0,26,51,0.2) 60%, transparent 100%);
}

.hero-inner-content {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.hero-inner-content .breadcrumb {
    font-size: 12px;
    margin-bottom: 0.35rem;
    color: rgba(255,255,255,0.75);
}
.hero-inner-content h1 {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 0.15rem;
}
.hero-inner-content .hero-subtitle {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}
@media (min-width: 768px) {
    .hero-inner-content h1 {
        font-size: 2rem;
    }
}

/* --- TYPOGRAPHY / SECTIONS --- */
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin-bottom: 40px;
}

.link-gold {
    color: var(--gold);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}
.link-gold:hover { gap: 8px; }

.breadcrumb {
    font-size: 13px;
    color: #888;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.hero-section--inner .breadcrumb a { color: rgba(255,255,255,0.85); }
.hero-section--inner .breadcrumb a:hover { color: var(--gold); }

/* --- CARDS --- */
.event-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    overflow: hidden;
    transition: transform 0.2s;
}
.event-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }

.content-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.content-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.content-card--news {
    display: flex;
    flex-direction: column;
    height: 100%;
}
/* News list thumbs: fixed height on every card so text blocks align */
.content-card--news .content-card__thumb {
    flex: 0 0 auto;
    height: 15rem;
    min-height: 15rem;
    overflow: hidden;
    background: #F0EBE1;
}
@media (min-width: 768px) {
    .content-card--news .content-card__thumb {
        height: 18.75rem;
        min-height: 18.75rem;
    }
}
.content-card--news .content-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: top center;
}
.content-card--news .content-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    position: relative;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.05); }

.direction-card {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: all 0.3s;
}
.direction-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* --- FILTERS / TABS --- */
.filter-tab {
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #E5E5E5;
    background: white;
    color: var(--navy);
    transition: all 0.2s;
    cursor: pointer;
}
.filter-tab.active, .filter-tab:hover {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

/* --- CALENDAR MOCK --- */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 8px;
}
.calendar-day.has-session {
    background: var(--gold-light);
    color: var(--navy);
    font-weight: 700;
    border: 1px solid var(--gold);
}
.calendar-day.other-month { color: #ccc; }

/* --- FOOTER --- */
.footer-bg {
    background-color: var(--navy);
    color: white;
}
.footer-link {
    color: #A0AAB2;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-link:hover { color: white; }

.podcast-promo {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
}

/* --- FORMS --- */
.form-input {
    width: 100%;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: border-color 0.2s;
}
.form-input:focus {
    outline: none;
    border-color: var(--gold);
}

/* --- COMMERCE FLOW --- */
.commerce-stepper {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}
.commerce-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    opacity: 0.45;
}
.commerce-step.is-active,
.commerce-step.is-done { opacity: 1; }
.commerce-step__num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    background: #eee;
    color: var(--navy);
}
.commerce-step.is-active .commerce-step__num {
    background: var(--navy);
    color: white;
}
.commerce-step.is-done .commerce-step__num {
    background: var(--gold);
    color: white;
}
.commerce-step__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
}
.commerce-panel__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}
.commerce-review {
    background: #F0EBE1;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
}
.commerce-review__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(0,26,51,0.08);
    font-size: 14px;
}
.commerce-review__row:last-child { border-bottom: none; }
.commerce-review__row span { color: #666; }
.commerce-review__row--total {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(0,26,51,0.12);
    border-bottom: none;
}
.commerce-auth-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0,26,51,0.08);
}
.commerce-check input { accent-color: var(--navy); }
.cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: start;
    padding: 1.25rem 1.5rem;
    background: #FAFAFA;
    border-radius: 12px;
    border: 1px solid #eee;
}
.cart-item__price {
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
}
.cart-item__remove {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0 0.25rem;
}
.cart-item__remove:hover { color: var(--navy); }
.commerce-summary {
    background: #F0EBE1;
    border-radius: 16px;
    padding: 1.5rem;
}
.commerce-summary__row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 0.4rem 0;
    color: #666;
}
.commerce-summary__row--total {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid rgba(0,26,51,0.12);
    font-size: 16px;
    color: var(--navy);
}
.commerce-payment-box {
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}
.commerce-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #2E7D32;
    display: flex;
    align-items: center;
    justify-content: center;
}
.calendar-day.has-session { cursor: pointer; }
.calendar-day.is-selected {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

/* --- SECONDARY CONTENT (Phase 3) --- */
.vestnik-card {
    display: block;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}
.vestnik-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.vestnik-card__cover {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #F0EBE1;
}
.vestnik-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vestnik-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--navy);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}
.pdf-viewer {
    background: #F5F5F5;
    border-radius: 16px;
    border: 1px solid #E5E5E5;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdf-viewer__placeholder {
    text-align: center;
    padding: 2rem;
}
.video-card {
    display: block;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: none;
    cursor: pointer;
    width: 100%;
    transition: box-shadow 0.2s, transform 0.2s;
}
.video-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.video-card__thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--navy);
}
.video-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}
.video-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,26,51,0.35);
    transition: background 0.2s;
}
.video-card:hover .video-card__play { background: rgba(0,26,51,0.5); }
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.video-modal.hidden { display: none; }
.video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,26,51,0.85);
}
.video-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    background: var(--navy-light);
    border-radius: 16px;
    padding: 1.5rem;
}
.video-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
}
.video-modal__close:hover { opacity: 1; }
.video-modal__player {
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}
.video-modal__placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.page-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    background: #F0EBE1;
}

/* --- ACCOUNT CABINET (Phase 4) --- */
.account-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}
@media (min-width: 992px) {
    .account-layout {
        grid-template-columns: 240px 1fr;
    }
}
.account-nav {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.account-nav__user {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}
.account-nav__menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.account-nav__link {
    display: block;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    transition: background 0.2s, color 0.2s;
}
.account-nav__link:hover { background: #F0EBE1; color: var(--gold); }
.account-nav__link.is-active {
    background: var(--navy);
    color: white;
}
.account-nav__logout {
    display: inline-block;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}
.account-main {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.account-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.account-select { max-width: 280px; }
.account-balance {
    background: #F0EBE1;
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    text-align: center;
    min-width: 140px;
}
.account-balance__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 0.25rem;
}
.account-balance__value {
    font-size: 1.75rem;
    color: var(--gold);
    line-height: 1;
}
.calendar-day.is-enrolled {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
    font-weight: 700;
}
.account-session-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.account-session {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #FAFAFA;
    border-radius: 12px;
    border: 1px solid #eee;
}
@media (max-width: 640px) {
    .account-session {
        grid-template-columns: 1fr;
    }
}
.account-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.account-badge--upcoming {
    background: var(--gold-light);
    color: var(--navy);
}
.account-badge--done {
    background: #eee;
    color: #666;
}
.account-badge--active {
    background: #E8F5E9;
    color: #2E7D32;
}
.account-table-wrap {
    overflow-x: auto;
}
.account-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.account-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #666;
    border-bottom: 2px solid #eee;
}
.account-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}
.account-table tbody tr:hover { background: #FAFAFA; }
.account-children-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.account-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #FAFAFA;
    border-radius: 12px;
    border: 1px solid #eee;
}

/* --- ARTICLE --- */
.article-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: #444;
}
.article-content h3 {
    color: var(--navy);
    margin: 2rem 0 1rem;
}

/* --- SUMMARY (prototype navigation) --- */
.summary-page {
    background: #F0EBE1;
    min-height: 100vh;
}
.summary-header {
    background: var(--navy);
}
.summary-phase {
    margin-bottom: 2.5rem;
}
.summary-phase__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.summary-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    background: var(--gold-light);
    border: 1px solid var(--gold);
    padding: 4px 12px;
    border-radius: 999px;
}
.summary-phase__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 768px) {
    .summary-phase__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.summary-group {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 1.25rem 1.5rem;
}
.summary-group__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}
.summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.summary-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.25rem 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: #FAFAFA;
    align-items: center;
}
.summary-row__main {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.summary-row__label {
    font-weight: 700;
    font-size: 14px;
    color: var(--navy);
}
.summary-row__file {
    font-size: 12px;
    color: #888;
    font-family: ui-monospace, monospace;
}
.summary-row__note {
    grid-column: 1;
    font-size: 12px;
    color: #666;
    margin: 0;
}
.summary-row__link {
    grid-column: 2;
    grid-row: 1 / span 2;
    white-space: nowrap;
}
