/* ===================================================
   0. ИМПОРТ ШРИФТОВ (CORMORANT GARAMOND + MANROPE)
   =================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Manrope:wght@300;400;500;600;700;800&subset=cyrillic,cyrillic-ext&display=swap');

/* ===================================================
   1. СБРОС И ПАЛИТРА
   =================================================== */
*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

:root {
    --warm-accent: #b67352;
    --warm-accent-hover: #c9825b;
    --warm-accent-light: rgba(182, 115, 82, 0.1);
    --warm-accent-glow: rgba(182, 115, 82, 0.3);
    --section-bg-center: #765053;
    --section-bg-mid: #5b3c3f;
    --section-bg-edge: #3f2729;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background-color: var(--section-bg-edge);
    color: #ffffff;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    color: #ffffff;
    margin-top: 0;
}

a {
    color: var(--warm-accent);
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: var(--warm-accent-hover);
    text-decoration: underline;
}

/* ===================================================
   2. ПРОЗРАЧНЫЙ ХЕДЕР (ОСВЕТЛЕН НА 15%, ЛОГО СЛЕВА, МЕНЮ СПРАВА)
   =================================================== */
.ast-transparent-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    /* Осветленный прозрачный слой */
    background: rgba(55, 38, 42, 0.20);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.ast-header-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90px;
    box-sizing: border-box;
}

/* Логотип прижат к левому краю с отступом */
.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo-link {
    display: inline-block;
    line-height: 0;
    cursor: pointer;
}

.astra-logo-svg {
    width: 262px;
    max-width: 262px;
    height: auto;
    transition: filter 0.3s ease, transform 0.25s ease, opacity 0.25s ease;
}

.site-logo-link:hover .astra-logo-svg {
    filter: brightness(0) saturate(100%) invert(56%) sepia(35%) saturate(750%) hue-rotate(335deg) brightness(95%) contrast(92%);
    transform: scale(1.02);
    opacity: 0.95;
}

/* Навигация прижата к правому краю */
.ast-main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1;
}

.ast-main-navigation .main-header-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ast-main-navigation .menu-item {
    position: relative;
}

.ast-main-navigation .menu-link {
    display: flex;
    align-items: center;
    line-height: 90px;
    height: 90px;
    padding: 0 14px;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(242, 245, 247, 0.78);
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.ast-main-navigation .menu-link:hover,
.ast-main-navigation .menu-item:hover > .menu-link,
.ast-main-navigation .current-menu-item > .menu-link {
    color: #ffffff !important;
    text-decoration: none;
}

.ast-header-navigation-arrow {
    margin-left: 6px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Выпадающие списки */
.ast-main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(36, 22, 25, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 2px solid var(--warm-accent);
    border-radius: 0 0 6px 6px;
    min-width: 200px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

.ast-main-navigation .sub-menu .menu-link {
    height: auto;
    line-height: 1.5;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: rgba(242, 245, 247, 0.76);
}

.ast-main-navigation .sub-menu .menu-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
}

.ast-main-navigation .menu-item:hover > .sub-menu {
    display: block;
}

/* ===================================================
   3. ГЛАВНЫЙ ЭКРАН (HERO)
   =================================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 15, 17, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 20px;
    margin-top: 20px;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: clamp(4rem, 8.5vw, 6rem) !important;
    line-height: 1.05;
    margin-bottom: 12px;
    color: #ffffff !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-family: 'Manrope', sans-serif !important;
    font-size: 1.45rem;
    line-height: 1.5;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 300;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
}

/* ===================================================
   4. СЕКЦИИ С РАДИАЛЬНЫМ ТЕПЛЫМ ГРАДИЕНТОМ
   =================================================== */
.landing-section {
    width: 100%;
    padding: 110px 20px;
    box-sizing: border-box;
    position: relative;
    background: radial-gradient(
        ellipse 80% 60% at 50% 30%,
        #6e4a4e 0%,
        #523639 60%,
        #382325 100%
    );
}

.landing-section-dark {
    background: radial-gradient(
        ellipse 90% 70% at 50% 25%,
        #795256 0%,
        #5a3b3e 55%,
        #3c2527 100%
    );
}

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

.landing-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 5.5vw, 4rem);
    font-weight: 400;
    margin-bottom: 30px;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.landing-content p.section-desc {
    font-family: 'Manrope', sans-serif;
    font-size: 1.4rem;
    line-height: 1.7;
    max-width: 1200px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 300;
}

/* ===================================================
   5. КАРТОЧКИ ФОРМАТОВ
   =================================================== */
.formats-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 55px;
    flex-wrap: wrap;
}

.format-card {
    background: linear-gradient(
        180deg,
        rgba(38, 24, 27, 0.72) 0%,
        rgba(26, 17, 19, 0.78) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 50px 45px;
    border-radius: 12px;
    flex: 1;
    min-width: 320px;
    max-width: 700px;
    text-align: left;
    box-sizing: border-box;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.format-card.accent-border {
    border-color: rgba(239, 163, 163, 0.35) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35), 0 0 25px rgba(239, 163, 163, 0.06);
}

.format-card h4 {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 2.3rem !important;
    color: #efa3a3 !important;
    margin-bottom: 20px !important;
    font-weight: 600 !important;
}

.format-card p {
    font-family: 'Manrope', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.55;
}

.format-card ul {
    padding-left: 20px;
    font-family: 'Manrope', sans-serif;
    font-size: 1.15rem;
    line-height: 1.85;
    margin: 0;
}

.format-card li {
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.95);
}

/* ===================================================
   6. ФОРМА ЗАЯВКИ
   =================================================== */
.landing-form-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(30, 20, 22, 0.5);
    padding: 60px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    box-sizing: border-box;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.form-field {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.form-data input[type="text"],
.form-data input[type="email"],
.form-data textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(18, 13, 14, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    outline: none;
    box-sizing: border-box;
}

.form-data input[type="text"]:focus,
.form-data input[type="email"]:focus,
.form-data textarea:focus {
    border-color: var(--warm-accent);
    background: rgba(18, 13, 14, 0.95);
    box-shadow: 0 0 12px var(--warm-accent-glow);
}

.buttons {
    margin-top: 35px;
    text-align: center;
}

.buttons .button {
    background-color: var(--warm-accent);
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 18px 50px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--warm-accent-glow);
}

.buttons .button:hover {
    background-color: var(--warm-accent-hover);
    transform: translateY(-2px);
}

/* ===================================================
   7. СТИЛИ ИЗ WP: АККОРДЕОНЫ (FAQ), ТАБЫ И СПИСКИ
   =================================================== */
.video-player-wrapper {
    position: relative;
    width: 100%;
    display: block;
    padding-bottom: 56.25%;
    height: 0;
    margin: 30px 0;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.faq-item {
    background-color: rgba(105, 74, 76, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.faq-item summary {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: #FFFFFF !important;
    list-style-position: inside;
    outline: none;
}

.faq-item[open] summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.faq-content {
    padding: 20px;
    background-color: #e2d5d2;
    border-radius: 0 0 8px 8px;
    color: #211718 !important;
}

.faq-content p, .faq-content b {
    color: #211718 !important;
    font-size: 1.05rem;
    line-height: 1.6;
}

.faq-content a {
    color: var(--warm-accent) !important;
    font-weight: 600;
}

.faq-content h4 {
    color: #4A3335 !important;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(74, 51, 53, 0.2);
    padding-bottom: 5px;
}

.faq-content .btn-outline {
    border: 2px solid var(--warm-accent) !important;
    color: #211718 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 8px 18px;
    display: inline-block;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.faq-content .btn-outline:hover {
    background-color: var(--warm-accent-light) !important;
}

.faq-content .btn-outline.active {
    background-color: var(--warm-accent) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--warm-accent-glow) !important;
}

/* Табы марафона */
.platform-tabs > input[type="radio"],
.part-tabs > input[type="radio"] { 
    display: none; 
}

.content-youtube-adv, .content-downloads-adv, .content-audio-adv, .content-live-adv, .content-lessons-adv,
.content-youtube, .content-rutube, .content-audio, .content-live,
.content-extended, .content-open { 
    display: none; 
}

#part-extended:checked ~ .content-extended,
#part-open:checked ~ .content-open,
#tab-youtube-adv:checked ~ .content-youtube-adv, 
#tab-downloads-adv:checked ~ .content-downloads-adv,
#tab-audio-adv:checked ~ .content-audio-adv,
#tab-live-adv:checked ~ .content-live-adv,
#tab-lessons-adv:checked ~ .content-lessons-adv,
#tab-youtube:checked ~ .content-youtube, 
#tab-rutube:checked ~ .content-rutube,
#tab-audio:checked ~ .content-audio,
#tab-live:checked ~ .content-live { 
    display: block; 
    animation: fadeEffect 0.5s; 
}

#part-extended:checked ~ .part-nav [for="part-extended"],
#part-open:checked ~ .part-nav [for="part-open"] {
    color: var(--warm-accent);
    background-color: var(--warm-accent-light);
}

#tab-youtube:checked ~ .tabs-nav [for="tab-youtube"], 
#tab-rutube:checked ~ .tabs-nav [for="tab-rutube"],
#tab-audio:checked ~ .tabs-nav [for="tab-audio"],
#tab-downloads-adv:checked ~ .tabs-nav [for="tab-downloads-adv"],
#tab-audio-adv:checked ~ .tabs-nav [for="tab-audio-adv"],
#tab-lessons-adv:checked ~ .tabs-nav [for="tab-lessons-adv"] { 
    background-color: var(--warm-accent); 
    color: #211718; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); 
}

#tab-live:checked ~ .tabs-nav [for="tab-live"],
#tab-live-adv:checked ~ .tabs-nav [for="tab-live-adv"] { 
    background-color: rgba(255, 77, 77, 0.15) !important; 
    color: #ff4d4d !important; 
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3) !important; 
}

.lesson-btn-adv.active { 
    background-color: var(--warm-accent) !important; 
    color: #211718 !important; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(239, 163, 163, 0.2); 
}

.download-list-compact-adv { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    column-gap: 30px; 
}

.download-list-compact-adv li.completed-dl .dl-date { 
    font-weight: 700; 
    color: #FFFFFF; 
}

.download-list-compact-adv li.completed-dl a { 
    color: var(--warm-accent); 
    text-decoration: none; 
    font-weight: 600; 
    transition: color 0.3s ease; 
    white-space: nowrap; 
}

.download-list-compact-adv li.completed-dl a:hover { 
    color: var(--warm-accent-hover); 
    text-decoration: underline; 
}

.download-list-compact-adv li.locked-dl { 
    background-color: rgba(255, 255, 255, 0.02); 
    border: 1px dashed rgba(255, 255, 255, 0.15); 
    opacity: 0.4; 
}

.download-list-compact-adv li.locked-dl .dl-date { 
    font-weight: 400; 
    color: rgba(255, 255, 255, 0.7); 
}

.download-list-compact-adv li.locked-dl .dl-status { 
    color: rgba(255, 255, 255, 0.5); 
    font-size: 0.9rem; 
    white-space: nowrap; 
}

/* ===================================================
   8. ПОДВАЛ (SITE FOOTER)
   =================================================== */
.ast-site-footer {
    background-color: #241618;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 50px 20px;
    text-align: center;
}

.footer-links {
    margin-bottom: 25px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 15px;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    line-height: 1.7;
}