/* Palime Archive — Редакция (redesigned) */

.editorial-page {
    background: var(--color-bg);
    color: var(--color-text);
}

/* ============================================================
   HERO — dark, archival aesthetic
   ============================================================ */
.editorial-hero {
    background: var(--shell-bg);
    color: var(--shell-fg);
    padding: clamp(72px, 10vw, 132px) 0 clamp(56px, 7vw, 96px);
    position: relative;
    overflow: hidden;
}

.editorial-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 100%),
        linear-gradient(90deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 100%);
    background-size: 100% 64px, 64px 100%;
    opacity: 0.15;
    pointer-events: none;
}

.editorial-hero__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
    z-index: 1;
}

.editorial-hero__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 36px;
}

.editorial-hero__meta-sep { color: rgba(255,255,255,0.15); }
.editorial-hero__meta-accent { color: var(--accent-main); }

.editorial-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: 0.96;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 28px;
    max-width: 14ch;
}

.editorial-hero__lead {
    font-family: var(--font-serif);
    font-size: clamp(1.08rem, 1.6vw, 1.28rem);
    line-height: 1.65;
    color: rgba(255,255,255,0.55);
    max-width: 560px;
    margin: 0 0 24px;
}

.editorial-hero__accent {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
    max-width: 520px;
    padding-left: 18px;
    border-left: 2px solid var(--accent-main);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.editorial-section {
    padding: clamp(56px, 7vw, 96px) 0;
}

.editorial-section--dark {
    background: var(--shell-bg);
    color: var(--shell-fg);
    position: relative;
    overflow: hidden;
}

.editorial-section--dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 100%),
        linear-gradient(90deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 100%);
    background-size: 100% 64px, 64px 100%;
    opacity: 0.12;
    pointer-events: none;
}

.editorial-section--paper {
    background: var(--paper-bg);
}

.editorial-section__header {
    margin-bottom: clamp(32px, 4vw, 48px);
}

.editorial-section__label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-main);
    opacity: 0.8;
    margin-bottom: 12px;
}

.editorial-section--dark .editorial-section__label {
    opacity: 0.9;
}

.editorial-section__title {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.2vw, 2.8rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.05;
    margin: 0;
    color: inherit;
}

.editorial-section__subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.65;
    color: rgba(10,10,10,0.58);
    max-width: 640px;
    margin-top: 14px;
}

.editorial-section--dark .editorial-section__subtitle {
    color: rgba(255,255,255,0.42);
}

/* ============================================================
   CARDS — what we do (4-up)
   ============================================================ */
.editorial-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    background: rgba(10,10,10,0.06);
}

.editorial-card {
    background: var(--paper-surface);
    padding: 28px 24px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.editorial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-main);
    opacity: 0.22;
    transition: opacity 0.2s ease;
}

.editorial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.editorial-card:hover::before {
    opacity: 0.85;
}

.editorial-card__num {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--accent-main);
    margin-bottom: 16px;
    display: block;
}

.editorial-card__title {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 12px;
    line-height: 1.2;
}

.editorial-card__text {
    font-family: var(--font-serif);
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(10,10,10,0.56);
    margin: 0;
}

/* ============================================================
   FRAMEWORK — 3 columns
   ============================================================ */
.editorial-framework {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    background: rgba(10,10,10,0.06);
}

.editorial-frame {
    background: var(--paper-surface);
    padding: 32px 28px;
    transition: transform 0.2s ease;
}

.editorial-frame:hover {
    transform: translateY(-2px);
}

.editorial-frame__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(10,10,10,0.07);
}

.editorial-frame__tag {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-main);
    opacity: 0.75;
}

.editorial-frame__id {
    font-family: var(--font-mono);
    font-size: 9px;
    color: rgba(10,10,10,0.2);
    letter-spacing: 0.06em;
}

.editorial-frame__title {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.editorial-frame__text {
    font-family: var(--font-serif);
    font-size: 0.96rem;
    line-height: 1.65;
    color: rgba(10,10,10,0.6);
    margin: 0;
}

/* ============================================================
   PROCESS — 5 steps
   ============================================================ */
.editorial-process {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    background: rgba(10,10,10,0.06);
}

.editorial-step {
    background: var(--paper-surface);
    padding: 24px 22px 28px;
    position: relative;
}

.editorial-step::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 22px;
    right: 22px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-main), transparent 70%);
    opacity: 0.2;
}

.editorial-step__num {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--accent-main);
    margin-bottom: 14px;
    display: block;
}

.editorial-step__title {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 10px;
    line-height: 1.35;
}

.editorial-step__text {
    font-family: var(--font-serif);
    font-size: 0.88rem;
    line-height: 1.58;
    color: rgba(10,10,10,0.56);
    margin: 0;
}

/* ============================================================
   PRINCIPLES — dark cards
   ============================================================ */
.editorial-principles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    background: rgba(255,255,255,0.05);
}

.editorial-principle {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 28px 26px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.editorial-principle:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.12);
}

.editorial-principle__title {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    letter-spacing: 0.02em;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 12px;
}

.editorial-principle__text {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.45);
    margin: 0;
}

/* ============================================================
   TOOLS
   ============================================================ */
.editorial-tools__text {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.editorial-tools__text p {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    line-height: 1.75;
    color: rgba(10,10,10,0.58);
    margin: 0;
}

.editorial-tools__text p + p {
    margin-top: 18px;
}

/* ============================================================
   AUTHORS
   ============================================================ */
.editorial-authors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.editorial-authors__text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.72;
    color: rgba(10,10,10,0.65);
}

.editorial-authors__text p {
    margin: 0;
}

.editorial-authors__text p + p {
    margin-top: 16px;
}

.editorial-note {
    margin-top: 24px;
    padding: 18px 0 0 20px;
    border-top: 1px solid rgba(10,10,10,0.08);
    border-left: 2px solid var(--accent-main);
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(10,10,10,0.68);
}

/* ============================================================
   CTA
   ============================================================ */
.editorial-cta {
    padding: clamp(56px, 7vw, 96px) 0;
    background: var(--paper-bg);
    border-top: 1px solid var(--paper-border);
}

.editorial-cta__inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 0 var(--gutter);
}

.editorial-cta__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 16px;
    color: var(--color-text);
}

.editorial-cta__text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(10,10,10,0.58);
    margin: 0 0 28px;
}

.editorial-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--accent-main);
    color: var(--accent-main);
    background: transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.editorial-btn:hover {
    background: var(--accent-main);
    color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .editorial-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .editorial-framework { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .editorial-process { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .editorial-hero__title { max-width: none; font-size: clamp(2.4rem, 10vw, 3.6rem); }
    .editorial-cards,
    .editorial-framework,
    .editorial-process,
    .editorial-principles,
    .editorial-authors { grid-template-columns: 1fr; }
    .editorial-card,
    .editorial-frame,
    .editorial-step,
    .editorial-principle { padding: 24px 20px; }
    .editorial-section__title { font-size: clamp(1.5rem, 6vw, 2.2rem); }
}
