/* css/layout.css */

/* ====================
   Оболочка страницы
   ==================== */

.page-shell {
    min-height: 100vh;
    padding: 20px 16px 28px;
    display: flex;
    justify-content: center;
}

.report-container {
    width: 100%;
    max-width: 1260px;
    background: #ffffff;
    border-radius: var(--ddc-radius-lg);
    box-shadow: var(--ddc-shadow-soft);
    padding: 32px 32px 28px;
    border: 1px solid rgba(15,23,42,0.04);
}

/* ==================
   Верхняя панель
   ================== */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: var(--ddc-radius-sm);
    background:
        radial-gradient(circle at 20% 0, #ffffff 0, rgba(255,255,255,0) 55%),
        linear-gradient(135deg, var(--ddc-navy) 0%, var(--ddc-copper) 100%);
    box-shadow: 0 6px 14px rgba(0,0,0,0.20);
}

.top-meta {
    text-align: right;
    font-size: 12px;
    color: var(--ddc-gray);
}

.top-meta span {
    display: block;
}

/* ============
   Hero-блок
   ============ */

.hero {
    padding: 22px 0 14px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 4px;
}

/* ==========
   Секции
   ========== */

.section {
    margin-top: 12px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
    gap: 12px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ddc-navy);
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.section-caption {
    font-size: 12px;
    color: var(--ddc-gray);
    text-align: right;
}

.section-body {
    font-size: 13px;
}

/* ====================================
   Две колонки: график + текст (80/20)
   ==================================== */

.two-columns {
    display: grid;
    /* ~70% график, ~30% текст */
    grid-template-columns: 80fr 20fr;
    gap: 14px;
    margin-top: 12px;
    align-items: flex-start; /* чтобы текст не «тянулся» по высоте */
}

/* =========
   Футер
   ========= */

.footer {
    margin-top: 26px;
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    font-size: 11px;
    color: var(--ddc-gray);
}

.footer-left strong {
    color: var(--ddc-navy);
    font-size: 14px;
}

.disclaimer {
    margin-top: 6px;
    font-size: 11px;
    color: #9CA3AF;
    line-height: 1.6;
}

/* =========================================
   HERO-HEADER WITH WAVE BACKGROUND
   ========================================= */

.hero-header {
    position: relative;
    margin: 0 0 4px;
    border-radius: var(--ddc-radius-lg);
    overflow: hidden;

    /* фон волны как на слайде */
    background: url("back_image.jpeg") center/cover no-repeat;

    height: 280px;
    min-height: 280px;

    box-shadow: 0 22px 46px rgba(15,23,42,0.40);
}

/* Внутренний контейнер hero внутри шапки */
.hero-header .hero {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
}

/* полностью прячем старую верхнюю полоску с мета-инфо */
.hero-header .top-bar {
    display: none;
}

/* ===== HERO TITLE: Double Digit + Quant Hedge Fund ================= */

.hero-header .hero-title {
    margin: 0;
    font-weight: 400;
    font-size: 46px;
    letter-spacing: 0.01em;
    line-height: 1.2;

    position: absolute;
    left: 4%;
    right: 6%;
    top: 26.4%;
    transform: translateY(-50%);

    text-shadow: none;
}

/* Левая часть: "Double Digit" – серебристый градиент */
.hero-title-main {
    display: inline-block;

    background: linear-gradient(
        90deg,
        #BEC7D3 100%,
        #EFF3FA 70%,
        #C9D2DE 35%,
        #9CA7B5 0%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    filter:
        drop-shadow(0 1px 1px rgba(0,0,0,0.25))
        brightness(1.06);
}

/* Правая часть: "Quant Hedge Fund" – медь от тёмной к светлой */
.hero-title-accent {
    display: inline-block;
    font-weight: 300;

    background: linear-gradient(
        90deg,
        #C2764A 0%,
        #D89363 35%,
        #E9B48A 70%,
        #F6D7B8 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    filter:
        drop-shadow(0 1px 1px rgba(0,0,0,0.30))
        brightness(1.04)
        saturate(1.05);

    margin-left: 66px;
    position: relative;
    top: 62px;
}

/* Подзаголовок "Systematic Fixed-Return Strategy" */
.hero-header .hero-strategy {
    margin: 0;

    color: #EAEAEA;
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 0.02em;

    position: absolute;
    left: 4%;
    right: 8%;
    top: 87%;
    transform: translateY(-50%);

    text-shadow: none;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
}

/* Подстрока мелким кеглем внизу справа */
.hero-header .hero-sub {
    margin: 0;

    font-size: 12px;
    letter-spacing: 0.12em;
    white-space: nowrap;
    text-align: right;

    position: absolute;
    left: 45%;
    right: 4%;
    top: 92%;
    transform: translateY(-50%);
}

/* ===========================
   LEGAL / DISCLAIMER SECTION
   =========================== */

.section-legal {
    margin-top: 10px;
    padding: 8px 10px 10px;
    border-radius: var(--ddc-radius-md);
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
}

.section-legal .section-header {
    margin-bottom: 2px;
}

.legal-compact {
    font-size: 9px;
    line-height: 1.35;
    color: #6B7280;
    margin: 0;
    text-align: justify;
    max-height: 220px;
    overflow-y: auto;
}

.section-legal .section-title {
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
    color: #4B5563;      /* более серый, чем основной navy */
    margin-bottom: 4px;  /* меньше расстояние до текста */
}

/* Premium refresh overrides (quant) */
.page-shell {
    padding: 24px 16px 32px;
}

.report-container {
    background: var(--ddc-surface);
    border: 1px solid rgba(15, 34, 55, 0.12);
    box-shadow: var(--ddc-shadow-soft);
}

.hero-header {
    position: relative;
    isolation: isolate;
    border: 1px solid rgba(15, 34, 55, 0.25);
    box-shadow: 0 26px 60px rgba(12, 18, 28, 0.4);
}

.hero-header::before {
    content: "";
    position: absolute;
    inset: -25% -15% -15% -15%;
    background:
        radial-gradient(circle at 15% 25%, rgba(193, 138, 82, 0.45), transparent 60%),
        radial-gradient(circle at 85% 0%, rgba(15, 34, 55, 0.4), transparent 55%),
        linear-gradient(120deg, rgba(10, 20, 35, 0.55), rgba(10, 20, 35, 0.2));
    opacity: 0.75;
    animation: quant-hero-drift 20s ease-in-out infinite;
    z-index: 0;
}

.hero-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 140px 140px;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}

.hero-header .hero {
    position: relative;
    z-index: 1;
}

.hero {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.section-title {
    letter-spacing: 0.06em;
}

.footer {
    border-top: 1px solid rgba(15, 34, 55, 0.08);
}

.section-legal {
    background: #f3f0e8;
    border: 1px solid rgba(15, 34, 55, 0.12);
}

@keyframes quant-hero-drift {
    0% {
        transform: translate3d(-2%, -2%, 0) scale(1);
    }
    50% {
        transform: translate3d(2%, 3%, 0) scale(1.05);
    }
    100% {
        transform: translate3d(-2%, -2%, 0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-header::before {
        animation: none;
    }
}
