/* ════════════════════════════════════════════════════════════════════════════
   Eric Block — newsletter.css   (.eeb-nl)
   Блок «VIP Club» над футером. Цвета, шрифты и кегли — по макету:
   зелёная плашка #2c6e3e → #215430, Archivo (заголовки) + Inter (текст).
   ════════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

.eeb-nl * { box-sizing: border-box; }

.eeb-nl {
    --eeb-nl-green:    #2c6e3e;
    --eeb-nl-green-dk: #215430;
    --eeb-nl-ink:      #ffffff;
    --eeb-nl-muted:    rgba(255, 255, 255, .72);
    --eeb-nl-line:     rgba(255, 255, 255, .4);
    --eeb-nl-radius:   4px;
    --eeb-nl-font-h:   'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --eeb-nl-font-b:   'Inter', 'Helvetica Neue', Arial, sans-serif;

    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--eeb-nl-green) 0%, var(--eeb-nl-green-dk) 100%);
    color: var(--eeb-nl-ink);
    font-family: var(--eeb-nl-font-b);
    padding: clamp(52px, 7vw, 96px) clamp(20px, 5vw, 72px);
    -webkit-font-smoothing: antialiased;
}

/* ── Ghost-вотермарк ─────────────────────────────────────────────────────── */
.eeb-nl__ghost {
    position: absolute;
    right: -1.5%;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--eeb-nl-font-h);
    font-weight: 900;
    font-size: clamp(170px, 32vw, 440px);
    line-height: .8;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .055);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    z-index: 0;
}

.eeb-nl__inner {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    gap: clamp(32px, 6vw, 88px);
    align-items: center;
}

/* ── Левая колонка ───────────────────────────────────────────────────────── */
.eeb-nl__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--eeb-nl-ink);
    border: 1px solid var(--eeb-nl-line);
    border-radius: 2px;
    padding: 8px 14px;
    margin-bottom: 22px;
}

.eeb-nl__title {
    font-family: var(--eeb-nl-font-h);
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(38px, 6vw, 78px);
    line-height: .96;
    letter-spacing: -.01em;
    margin: 0;
    color: var(--eeb-nl-ink);
}
.eeb-nl__title em {
    font-style: normal;
    position: relative;
    white-space: nowrap;
}
.eeb-nl__title em::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: .08em;
    height: .09em;
    background: currentColor;
}

.eeb-nl__sub {
    margin: 20px 0 0;
    max-width: 46ch;
    color: var(--eeb-nl-muted);
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.6;
}

.eeb-nl__perks {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0 0;
    padding: 0;
}
.eeb-nl__perks li {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--eeb-nl-ink);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--eeb-nl-radius);
    padding: 9px 14px;
}

/* ── Правая колонка: форма ───────────────────────────────────────────────── */
.eeb-nl__form-wrap { width: 100%; }

.eeb-nl__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}

.eeb-nl__field {
    display: flex;
    background: #ffffff;
    border-radius: var(--eeb-nl-radius);
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
    transition: box-shadow .18s ease;
}
.eeb-nl__field:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, .55); }

.eeb-nl__input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    color: #111;
    font-family: inherit;
    font-size: 16px;          /* 16px — чтобы iOS не зумил при фокусе */
    line-height: 1.2;
    padding: 18px;
    outline: none;
}
.eeb-nl__input::placeholder { color: #8a8a8a; }

.eeb-nl__btn {
    flex: 0 0 auto;
    background: #111;
    color: #fff;
    border: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 0 26px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s ease, transform .05s ease;
}
.eeb-nl__btn:hover { background: #000; }
.eeb-nl__btn:active { transform: translateY(1px); }
.eeb-nl__btn:disabled { opacity: .55; cursor: default; }

.eeb-nl__error {
    display: none;
    margin: 0;
    color: #ffd9d0;
    font-size: 12.5px;
    font-weight: 600;
}
.eeb-nl__error.is-visible { display: block; }

.eeb-nl__fine {
    margin: 0;
    color: rgba(255, 255, 255, .62);
    font-size: 11.5px;
    line-height: 1.55;
}
.eeb-nl__fine a { color: #fff; text-underline-offset: 2px; }

/* ── Экран «спасибо» ─────────────────────────────────────────────────────── */
.eeb-nl__success { display: none; }
.eeb-nl__success.is-visible {
    display: block;
    animation: eeb-nl-rise .4s ease both;
}

.eeb-nl__success-label {
    font-family: var(--eeb-nl-font-h);
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.05;
    letter-spacing: -.01em;
    margin: 0 0 16px;
}

.eeb-nl__code {
    display: inline-flex;
    align-items: stretch;
    border: 1px dashed rgba(255, 255, 255, .5);
    border-radius: var(--eeb-nl-radius);
    overflow: hidden;
    margin-bottom: 14px;
}
.eeb-nl__code-val {
    font-family: var(--eeb-nl-font-h);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: .12em;
    padding: 12px 18px;
}
.eeb-nl__copy {
    background: #111;
    color: #fff;
    border: 0;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 0 18px;
    cursor: pointer;
    white-space: nowrap;
}
.eeb-nl__copy:hover { background: #000; }

.eeb-nl__success-note {
    margin: 0;
    max-width: 42ch;
    color: var(--eeb-nl-muted);
    font-size: 14px;
    line-height: 1.6;
}
.eeb-nl__note-code { color: #fff; letter-spacing: .08em; }

@keyframes eeb-nl-rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

/* ── Адаптив ─────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .eeb-nl__inner { grid-template-columns: 1fr; gap: 34px; }
    .eeb-nl__ghost { opacity: .7; }
}
@media (max-width: 480px) {
    .eeb-nl__field { flex-direction: column; }
    .eeb-nl__btn { padding: 16px; }
    .eeb-nl__code { display: flex; }
    .eeb-nl__code-val { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .eeb-nl__success.is-visible { animation: none; }
    .eeb-nl * { transition: none !important; }
}
