@import url('https://fonts.googleapis.com/css2?family=Cormorant+SC:wght@500;600;700&family=Noto+Serif:wght@400;500;600;700&display=swap');
@import url('nav-dropdown.css');

:root {
    --hl-navy: #1c1730;
    --hl-navy-2: #241c3d;
    --hl-gold: #b68b4a;
    --hl-gold-light: #d7bc87;
    --hl-purple: #4b3a78;
    --hl-bg: #f3ead9;
    --hl-text: #2b2418;
    --hl-muted: #6d6354;
}

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

body.home-landing {
    font-family: 'Noto Serif', serif;
    color: var(--hl-text);
    background: var(--hl-bg);
}

.hl-container {
    width: 90%;
    max-width: 1320px;
    margin: 0 auto;
}

/* ===== Header ===== */

.hl-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
    background: transparent;
}

/* На страницах академии хедер не должен перекрывать контент */
body.academy-page .hl-header {
    position: relative;
    z-index: 100;
}

.hl-logo {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    text-align: center;
    gap: 8px;
    text-decoration: none;
}

.hl-logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--hl-navy);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hl-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hl-logo-text strong {
    display: block;
    font-family: 'Cormorant SC', serif;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.1;
    color: var(--hl-navy);
}

.hl-logo-text span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
    color: var(--hl-navy);
    margin-top: 2px;
}

.hl-logo-text span::before,
.hl-logo-text span::after {
    content: '';
    width: 16px;
    height: 1px;
    background: var(--hl-navy);
    opacity: .6;
}

.hl-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    flex: 1;
    justify-content: center;
}

.hl-nav a {
    color: var(--hl-navy);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity .15s;
}

.hl-nav a:hover {
    opacity: .65;
}

/* Базовая механика (.hl-nav-dropdown / -toggle / -menu / -divider) приехала
   из общего public/css/nav-dropdown.css (см. @import выше). Здесь — только
   визуальные доводки специально под тему home-landing. */

.hl-nav-dropdown-menu {
    background: #fffafa5c;
    box-shadow: 0 12px 28px rgba(28, 23, 48, .18);
}

.hl-nav-dropdown-menu a:hover {
    background: rgba(127, 29, 42, .08);
    opacity: 1;
}

.hl-nav-dropdown-divider {
    border-top-color: rgba(28, 23, 48, .12);
}

.hl-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.hl-burger-btn {
    display: none;
}

.hl-lang {
    border: none;
    border-radius: 4px;
    padding: 6px 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--hl-navy);
    background: transparent;
    cursor: pointer;
}

.hl-btn-primary {
    background: #7f1d2a;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 13px 22px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .15s;
}

.hl-btn-primary:hover {
    opacity: .85;
}

/* ===== Hero ===== */

.hl-hero {
    position: relative;
    min-height: 590px;
    background: url('/images/main_hero_bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hl-hero-figure {
    display: none;
}

.hl-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--hl-navy);
    padding: 160px 20px 60px;
}

.hl-hero-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--hl-navy);
    margin-bottom: 18px;
}

.hl-hero-title {
    font-family: 'Cormorant SC', serif;
    font-weight: 700;
    font-size: 76px;
    letter-spacing: .04em;
    line-height: 1.05;
    color: var(--hl-navy);
    margin-bottom: 6px;
}

.hl-hero-subtitle {
    font-family: 'Cormorant SC', serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--hl-navy);
    margin-bottom: 22px;
}

.hl-hero-seal {
    width: min-content;
    margin: 0 auto 22px;
}

.hl-hero-lead {
    font-size: 14px;
    font-weight: 500;
    color: var(--hl-navy);
    letter-spacing: .04em;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
}

/* ===== Two paths ===== */

.hl-paths {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.hl-path {
    position: relative;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: var(--hl-navy);
    overflow: hidden;
    background-image: var(--hl-path-bg, url('/images/dao/bg-mountains.png'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hl-path:first-child {
    align-items: flex-end;
    padding-right: 20%;
}

.hl-path:nth-child(2) {
    align-items: flex-start;
    padding-left: 20%;
}

.hl-path-content {
    position: relative;
    z-index: 1;
    width: fit-content;
    text-align: center;
}

.hl-path-cn {
    font-family: 'Ma Shan Zheng', 'Georgia', serif;
    font-size: 30px;
    letter-spacing: .1em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--hl-navy);
}
.hl-path-cn .red-seal-box {
    display: inline-block;
    font-size: 120%;
}

.hl-path-content .red-seal-box span {
    font-size: 50%;
    line-height: 1;
}
.hl-path-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 4px;
    color: var(--hl-navy);
}

.hl-path-subtitle {
    font-size: 14px;
    color: var(--hl-navy);
    opacity: .85;
    margin-bottom: 14px;
}

.hl-path-tags {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #372f22;
    margin-bottom: 6px;
}

.hl-path-desc {
    font-size: 13px;
    color: var(--hl-navy);
    opacity: .75;
    margin-bottom: 18px;
}

.hl-path-btn {
    width: fit-content;
    border: 1px solid rgba(28, 23, 48, .35);
    color: #fff;
    background: #4a2530;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 12px 22px;
    transition: background .15s;
}

.hl-path-btn:hover {
    background: #5c2e3b;
}

.hl-paths-divider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}

.hl-paths-divider img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

/* ===== Stages ===== */

.hl-stages {
    padding: 14px 0 30px;
    text-align: center;
    background: url('/images/main_hero_bg.png');
    background-size: 350%;
    background-position: center top;
}

.hl-stages-title {
    font-family: 'Cormorant SC', serif;
    font-size: 15px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--hl-navy);
    margin-bottom: 38px;
}

.hl-stages-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.hl-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
}

.hl-stage-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 22px;
    color: var(--hl-navy);
}

.hl-stage-icon img {
    height: 100%;
}

.hl-stage-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.hl-stage-desc {
    font-size: 12px;
    color: var(--hl-muted);
    line-height: 1.4;
}

.hl-stage-arrow {
    font-size: 18px;
    color: var(--hl-muted);
    margin: 0 6px;
    align-self: center;
    transform: translateY(-24px);
}

/* ===== Footer ===== */

.hl-footer {
    background: var(--hl-navy);
    color: rgba(255, 255, 255, .82);
    padding: 56px 0 28px;
}

.hl-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 40px;
}

.hl-footer-col h4 {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hl-gold-light);
    margin-bottom: 16px;
}

.hl-footer-col a {
    display: block;
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 10px;
    transition: color .15s;
}

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

.hl-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.hl-footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
}

@media (max-width: 980px) {
    .hl-header {
        align-items: flex-start;
    }

    body.home-landing .hl-header .hl-nav {
        display: none;
    }

    .hl-header-actions .hl-btn-primary {
        display: none;
    }

    .hl-burger-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 46px;
        height: 46px;
        border: 1px solid rgba(182, 139, 74, .8);
        border-radius: 6px;
        background: rgba(255, 250, 242, .78);
        cursor: pointer;
        position: relative;
        z-index: 100;
    }

    .hl-burger-btn span {
        width: 24px;
        height: 2px;
        background: var(--hl-navy);
        transition: transform .2s, opacity .2s;
    }

    .hl-burger-btn.is-open {
        position: fixed;
        top: 40px;
        right: 34px;
    }

    .hl-burger-btn.is-open span:nth-child(1) {
        position: absolute;
        transform: rotate(45deg);
    }

    .hl-burger-btn.is-open span:nth-child(2) {
        opacity: 0;
    }

    .hl-burger-btn.is-open span:nth-child(3) {
        position: absolute;
        transform: rotate(-45deg);
    }

    body.home-landing .hl-header .hl-nav.is-open {
        display: flex;
        position: fixed;
        top: 24px;
        right: 10px;
        z-index: 80;
        width: min(360px, calc(100vw - 20px));
        max-width: calc(100vw - 20px);
        min-height: 460px;
        padding: 112px 24px 34px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 18px;
        background: #f3ddbd url('/images/dao/paper_list_1.png') center / 100% 100%;
        box-shadow: 0 0 0 200vmax rgba(28, 30, 36, .58);
    }

    body.home-landing .hl-header .hl-nav.is-open::after {
        content: '';
        position: absolute;
        top: 1%;
        left: 1%;
        width: 98%;
        height: 98%;
        border-image-source: url('/images/dao/borders/gold-border.png');
        border-image-slice: 61 fill;
        border-image-width: 41px;
        border-image-repeat: stretch;
        pointer-events: none;
        z-index: 1;
    }

    body.home-landing .hl-header .hl-nav.is-open > a,
    body.home-landing .hl-header .hl-nav.is-open .hl-nav-dropdown-toggle {
        position: relative;
        z-index: 2;
        width: 100%;
        justify-content: center;
        padding: 10px;
        color: var(--hl-navy);
        border-image-source: url('/images/dao/borders/tiny_border.png');
        border-image-slice: 36;
        border-image-width: 8px;
    }

    body.home-landing .hl-header .hl-nav.is-open .hl-nav-dropdown {
        width: 100%;
        z-index: 3;
    }

    body.home-landing .hl-header .hl-nav.is-open .hl-nav-dropdown-menu {
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }

    .hl-paths {
        grid-template-columns: 1fr !important;
    }

    .hl-path {
        min-height: 260px;
    }

    .hl-paths-divider {
        display: none;
    }

    .hl-hero-title { font-size: 40px; }
    .hl-footer-grid { grid-template-columns: 1fr 1fr; }
}
