/* ==========================================================
   work.css — /work-with-me/index.html
   Дополнительный шрифт: Caveat (подключён в head)
   ========================================================== */

:root {
    --ink:       #1a3a6b;
    --ink-faint: #4a72b8;
    --paper:     #fdfcf8;
    --grid:      rgba(100,149,220,0.15);
    --grid-bold: rgba(100,149,220,0.25);
}

/* ─── СЕКЦИЯ С ЛИСТОМ ─── */
.manifesto-section {
    padding: 80px 0 120px;
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center;
}

/* ─── ЛИСТ БУМАГИ ─── */
.paper {
    background-color: var(--paper);
    max-width: 760px; width: 100%;
    padding: 48px 64px 56px 80px;
    position: relative;
    box-shadow:
        0 4px 12px rgba(0,0,0,0.5),
        0 16px 32px rgba(0,0,0,0.4),
        0 48px 100px rgba(0,0,0,0.3);
    border-radius: 3px;
    transform: rotate(-0.5deg);
    font-family: 'Caveat', cursive;
    /* клетчатая сетка */
    background-image:
        linear-gradient(var(--grid-bold) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-bold) 1px, transparent 1px),
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-color: var(--paper);
}

/* красная линия полей */
.paper::before {
    content: ''; position: absolute;
    top: 0; bottom: 0; left: 56px;
    width: 1.5px; background: rgba(210,70,70,0.35); z-index: 1;
}
.paper > * { position: relative; z-index: 3; }

/* ─── ШАПКА ЛИСТА ─── */
.page-header {
    margin-bottom: 24px;
    border-bottom: 2px solid rgba(26,58,107,0.3);
    padding-bottom: 8px;
}
.page-header .eyebrow {
    font-size: 1.35rem; color: var(--ink-faint);
    display: block; margin-bottom: 2px;
    transform: rotate(-0.3deg);
    letter-spacing: 0; text-transform: none; border: none; padding: 0;
}
.page-header h1 {
    font-family: 'Caveat', cursive;
    font-size: 2.4rem; font-weight: 700;
    color: var(--ink); line-height: 1.1;
    transform: rotate(-0.5deg);
}
.page-header h1 span {
    font-weight: 400; font-style: italic;
    font-size: 1.8rem; color: var(--ink-faint);
}

/* ─── ТЕКСТ МАНИФЕСТА ─── */
.manifesto-body p {
    font-size: 1.55rem; color: var(--ink);
    line-height: 1.5; margin-bottom: 0;
}
.manifesto-body p:nth-child(3n+1) { transform: rotate(0.15deg); }
.manifesto-body p:nth-child(3n+2) { transform: rotate(-0.2deg); }
.manifesto-body p:nth-child(3n+3) { transform: rotate(0.1deg); }

.manifesto-body p.gap-top { margin-top: 16px; }

.manifesto-body .accent {
    font-size: 1.95rem; font-weight: 700;
    color: var(--ink); font-style: italic;
    margin-top: 16px; display: block;
    transform: rotate(-0.5deg);
}
.manifesto-body .underlined {
    text-decoration: underline;
    text-decoration-color: rgba(26,58,107,0.5);
    text-underline-offset: 3px;
}

/* ─── ПОДПИСЬ ─── */
.signature-block {
    margin-top: 32px;
    display: flex; flex-direction: column;
    align-items: flex-end; gap: 4px;
}
.sig-name { font-size: 1.45rem; font-weight: 600; color: var(--ink); transform: rotate(-0.8deg); }
.sig-img {
    height: 64px; width: auto; max-width: 220px;
    object-fit: contain;
    filter: invert(19%) sepia(55%) saturate(700%) hue-rotate(196deg) brightness(60%);
    transform: rotate(-2deg);
}
.sig-fallback {
    display: none;
    font-family: 'Caveat', cursive;
    font-size: 2.4rem; font-weight: 700;
    font-style: italic; color: var(--ink);
    transform: rotate(-2deg); letter-spacing: -0.02em;
}
.sig-underline { width: 200px; height: 1.5px; background: var(--ink); opacity: 0.45; transform: rotate(-1deg); }

/* ─── CTA ─── */
.cta-section { padding: 80px 0; position: relative; z-index: 1; }
.cta-inner   { max-width: 760px; margin: 0 auto; padding: 0 48px; text-align: center; }
.cta-eyebrow { font-size: 0.6rem; font-weight: 600; letter-spacing: 3.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; display: block; }
.cta-title   { font-family: var(--font-h); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.1; color: var(--text); margin-bottom: 20px; }
.cta-title em { font-style: italic; color: var(--gold-light); }
.cta-sub     { font-size: 1rem; color: var(--muted); line-height: 1.8; margin-bottom: 48px; }
.cta-form    { display: flex; justify-content: center; max-width: 480px; margin: 0 auto 20px; }
.cta-btn {
    display: block; width: 100%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #080808; font-family: var(--font-b); font-size: 0.85rem; font-weight: 700;
    padding: 18px 48px; border-radius: 3px; text-decoration: none; text-align: center;
    transition: box-shadow .2s, transform .2s;
}
.cta-btn:hover { box-shadow: 0 6px 20px var(--gold-glow); transform: translateY(-2px); }
.cta-note { font-size: 0.7rem; color: var(--muted); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .cta-inner { padding: 0 32px; }
}
@media (max-width: 640px) {
    .paper {
        padding: 36px 24px 40px 48px;
        transform: none;
    }
    .paper::before { left: 32px; }
    .manifesto-body p { font-size: 1.33rem; }
    .page-header h1 { font-size: 1.85rem; }
    .cta-inner { padding: 0 20px; }
    .cta-section { padding: 56px 0; }
}
