/**
 * Layout — Ledger Prospectus: reading columns, full-bleed hero
 */

.container {
    width: 100%;
    max-width: var(--container-wide);
    margin-inline: auto;
    padding-inline: var(--pad-x);
}

.container--letter {
    max-width: var(--container-letter);
}

.container--form {
    max-width: var(--container-form);
}

.section {
    padding-block: var(--space-2xl);
}

/* Якоря не прячутся под sticky header */
#hero,
#fees,
#letter,
#care,
#practicalities,
#questions,
#request,
#find-us {
    scroll-margin-top: calc(var(--header-h) + 12px);
}

@media (min-width: 1024px) {
    .section {
        padding-block: var(--space-3xl);
    }
}

.section--mute {
    background: var(--mute);
}

.section--paper {
    background: var(--paper);
}

.section__eyebrow {
    font-family: var(--font-ui);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.section__title {
    font-family: var(--font-display);
    font-size: 1.3125rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: var(--space-md);
}

@media (min-width: 1024px) {
    .section__title {
        font-size: 1.75rem;
    }
}

.section__lead {
    color: var(--text-secondary);
    max-width: 40rem;
    margin-bottom: var(--space-lg);
}

/* === Sponsored === */
.sponsored-bar {
    background: var(--sponsored-bg);
    color: var(--sponsored-text);
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: center;
    padding: 0.5rem var(--pad-x);
    min-height: var(--sponsored-h);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === Hero === */
.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    color: var(--text-on-dark);
    overflow: hidden;
    /* Fallback, если изображение не загрузилось */
    background: #2a323c;
    /* Компактный full-bleed: без 85–92vh пустоты под текст внизу */
    min-height: 280px;
    height: clamp(280px, 52vh, 520px);
}

@media (min-width: 768px) {
    .hero {
        min-height: 360px;
        height: clamp(360px, 56vh, 560px);
    }
}

@media (min-width: 1024px) {
    .hero {
        min-height: 400px;
        height: clamp(400px, 58vh, 600px);
    }
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(15, 20, 25, 0.25) 0%, rgba(15, 20, 25, 0.62) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-wide);
    margin-inline: auto;
    padding: var(--space-xl) var(--pad-x) var(--space-xl);
}

.hero__eyebrow {
    font-family: var(--font-ui);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(243, 244, 246, 0.85);
    margin-bottom: var(--space-md);
}

.hero__brand {
    font-family: var(--font-display);
    font-size: 2.125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

@media (min-width: 1024px) {
    .hero__brand {
        font-size: 3rem;
        letter-spacing: 0.05em;
    }
}

.hero__title {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 600;
    line-height: 1.28;
    max-width: 18ch;
    margin-bottom: var(--space-md);
}

@media (min-width: 1024px) {
    .hero__title {
        font-size: 2.25rem;
        line-height: 1.22;
        max-width: 22ch;
    }
}

.hero__sub {
    font-size: 1.0625rem;
    line-height: 1.6;
    max-width: 32ch;
    color: rgba(243, 244, 246, 0.92);
    margin-bottom: var(--space-lg);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* === Letter image === */
.letter-figure {
    margin: var(--space-lg) 0 var(--space-xl);
}

.letter-figure img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.letter-prose p {
    margin-bottom: 1.25rem;
}

.letter-prose p:last-child {
    margin-bottom: 0;
}

.letter-prose h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
}

@media (min-width: 1024px) {
    .letter-prose h3 {
        font-size: 1.125rem;
    }
}

.letter-prose.is-reveal .letter-prose__lead {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.letter-prose.is-reveal.is-visible .letter-prose__lead {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .letter-prose.is-reveal .letter-prose__lead,
    .letter-prose.is-reveal.is-visible .letter-prose__lead {
        opacity: 1;
        transition: none;
    }
}

/* === Find us === */
.find-us {
    border-top: 1px solid var(--rule);
    padding-block: var(--space-xl);
}

.find-us__label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.find-us__line {
    font-family: var(--font-display);
    font-size: 1.125rem;
    line-height: 1.55;
}

.find-us__line a {
    color: var(--ink);
    text-decoration: none;
}

.find-us__line a:hover {
    color: var(--indigo);
}

/* === Health note === */
.section--tight {
    padding-block: 0;
}

.health-note {
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: var(--space-lg) 0;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.health-note strong {
    color: var(--ink);
    font-weight: 600;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
