/* ==========================================================================
   IEF Homepage v2 — Design System (hp2-)
   Instytut Edukacji Finansowej
   --------------------------------------------------------------------------
   Fonts:  Manrope (display/headings), Archivo Black (covers), Montserrat (body)
   Prefix: hp2-
   Layout: Editorial / magazine, max-width 1320px, 56px side padding
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. CSS CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
    /* Ink */
    --hp2-ink:          #0A192F;
    --hp2-ink-soft:     #3F5F7D;
    --hp2-ink-faint:    #8194A6;

    /* Rules / borders */
    --hp2-rule:         #E8ECF1;
    --hp2-rule-strong:  #C7D0DB;

    /* Surfaces */
    --hp2-paper:        #FAFAF8;
    --hp2-white:        #FFFFFF;

    /* Accents */
    --hp2-mint:         #0AC689;
    --hp2-mint-ink:     #08A372;
    --hp2-sky:          #60B8CD;

    /* Fonts */
    --hp2-font-display: 'Manrope', system-ui, sans-serif;
    --hp2-font-cover:   'Archivo Black', 'Impact', system-ui, sans-serif;
    --hp2-font-body:    'Montserrat', system-ui, sans-serif;

    /* Layout */
    --hp2-max-w:        1320px;
    --hp2-pad-x:        56px;
    --hp2-section-gap:  120px;
    --hp2-gutter:       32px;

    /* Radii */
    --hp2-pill:         999px;
    --hp2-radius-sm:    8px;
    --hp2-radius-md:    12px;
}


/* --------------------------------------------------------------------------
   1. RESETS & BASE
   -------------------------------------------------------------------------- */
body.hp2-body {
    margin: 0;
    padding: 0;
    font-family: var(--hp2-font-body);
    font-size: 17px;
    color: var(--hp2-ink);
    background: #fff;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hp2-page {
    /* intentionally no overflow-x: hidden – breaks position: sticky */
}

html {
    overflow-x: hidden; /* clip horizontal overflow on html instead of .hp2-page */
}

/* Universal box-sizing */
.hp2-page *, .hp2-page *::before, .hp2-page *::after { box-sizing: border-box; }

/* Element resets — :where() keeps specificity at 0 so component classes always win */
.hp2-page :where(img) { max-width: 100%; height: auto; display: block; }
.hp2-page :where(a) { text-decoration: none; color: inherit; }
.hp2-page :where(ul, ol) { list-style: none; margin: 0; padding: 0; }
.hp2-page :where(p, h1, h2, h3, h4, h5, h6) { margin: 0; }
.hp2-page :where(h1, h2, h3, h4) { text-transform: none; font-weight: 400; }
.hp2-page :where(button, input, select, textarea) {
    font: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    -webkit-appearance: none;
    appearance: none;
}
.hp2-page :where(button) { cursor: pointer; }

/* Container */
.hp2-wrap {
    max-width: var(--hp2-max-w);
    margin: 0 auto;
    padding: 0 var(--hp2-pad-x);
}


/* --------------------------------------------------------------------------
   2. HEADER — sticky, backdrop blur, 3-col grid
   -------------------------------------------------------------------------- */
.hp2-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250, 250, 248, 0.88);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
    backdrop-filter: blur(16px) saturate(1.6);
    border-bottom: 1px solid var(--hp2-rule);
    transition: background 0.3s;
}

.hp2-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 72px;
}

/* Brand */
.hp2-header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hp2-header__brand svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.hp2-header__brand-name {
    font-family: var(--hp2-font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hp2-ink);
    line-height: 1.3;
}

/* Nav (centered) */
.hp2-header__nav {
    display: flex;
    align-items: center;
    gap: 36px;
    justify-self: center;
}

.hp2-header__link {
    font-family: var(--hp2-font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--hp2-ink);
    opacity: 0.6;
    transition: opacity 0.25s;
    letter-spacing: 0.01em;
}

.hp2-header__link:hover {
    opacity: 1;
}

/* Dropdown */
.hp2-header__dropdown {
    position: relative;
}

.hp2-header__dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 12px;
    background: var(--hp2-white);
    border: 1px solid var(--hp2-rule);
    border-radius: var(--hp2-radius-sm);
    box-shadow: 0 8px 32px rgba(10, 25, 47, 0.10);
    min-width: 200px;
    padding: 8px 0;
    z-index: 1001;
}

.hp2-header__dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.hp2-header__dropdown:hover .hp2-header__dropdown-menu {
    display: block;
}

.hp2-header__dropdown-item {
    display: block;
    padding: 10px 20px;
    font-family: var(--hp2-font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--hp2-ink);
    transition: background 0.15s, color 0.15s;
}

.hp2-header__dropdown-item:hover {
    background: var(--hp2-paper);
    color: var(--hp2-mint-ink);
}

/* Actions (right) */
.hp2-header__actions {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-self: end;
}

.hp2-header__login {
    font-family: var(--hp2-font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--hp2-ink);
    opacity: 0.55;
    transition: opacity 0.25s;
}

.hp2-header__login:hover {
    opacity: 1;
}

.hp2-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--hp2-ink);
    color: var(--hp2-white);
    font-family: var(--hp2-font-body);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--hp2-pill);
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.01em;
}

.hp2-header__cta:hover {
    background: #0d2240;
    transform: translateY(-1px);
}

/* Mobile-only actions — hidden on desktop */
.hp2-header__actions-mobile {
    display: none;
}

/* Burger (mobile) */
.hp2-header__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    justify-self: end;
}

.hp2-header__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--hp2-ink);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
    border-radius: 2px;
}


/* --------------------------------------------------------------------------
   3. HERO — editorial, grid 7fr 5fr, aligned bottom
   -------------------------------------------------------------------------- */
.hp2-hero {
    padding: 96px 0 64px;
}

.hp2-hero__inner {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 48px;
    align-items: end;
}

/* Eyebrow */
.hp2-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--hp2-font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hp2-mint);
    margin-bottom: 28px;
}

.hp2-hero__eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--hp2-mint);
    flex-shrink: 0;
}

/* Heading */
.hp2-hero__heading {
    font-family: var(--hp2-font-display);
    font-size: clamp(48px, 6.4vw, 96px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--hp2-ink);
}

.hp2-hero__heading em {
    font-style: normal;
    color: var(--hp2-mint-ink);
}

/* Right column */
.hp2-hero__lead {
    font-family: var(--hp2-font-body);
    font-size: 19px;
    line-height: 1.65;
    color: var(--hp2-ink-soft);
    max-width: 420px;
    margin-bottom: 32px;
}

.hp2-hero__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hp2-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--hp2-ink);
    color: var(--hp2-white);
    font-family: var(--hp2-font-body);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--hp2-pill);
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.01em;
}

.hp2-hero__btn:hover {
    background: #0d2240;
    transform: translateY(-1px);
}

.hp2-hero__link {
    font-family: var(--hp2-font-body);
    font-size: 14px;
    color: var(--hp2-ink-faint);
    transition: color 0.25s;
}

.hp2-hero__link:hover {
    color: var(--hp2-ink);
}


/* --------------------------------------------------------------------------
   4. META STRIP — 4-stat bar with vertical rules
   -------------------------------------------------------------------------- */
.hp2-meta {
    border-top: 1px solid var(--hp2-rule);
    border-bottom: 1px solid var(--hp2-rule);
    padding: 36px 0;
}

.hp2-meta__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
}

.hp2-meta__item {
    text-align: center;
    padding: 0 24px;
    position: relative;
}

/* Vertical rule between items */
.hp2-meta__item + .hp2-meta__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 48px;
    background: var(--hp2-rule-strong);
}

.hp2-meta__value {
    font-family: var(--hp2-font-display);
    font-size: 32px;
    font-weight: 400;
    color: var(--hp2-ink);
    line-height: 1;
    letter-spacing: -0.02em;
}

.hp2-meta__label {
    font-family: var(--hp2-font-body);
    font-size: 12px;
    color: var(--hp2-ink-faint);
    margin-top: 8px;
    line-height: 1.4;
}


/* --------------------------------------------------------------------------
   5. FEATURED ARTICLE — "Pulapka tygodnia" magazine feature
   -------------------------------------------------------------------------- */
.hp2-feature {
    padding: var(--hp2-section-gap) 0;
}

/* Feature header bar */
.hp2-feature__bar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--hp2-ink);
    margin-bottom: 48px;
}

.hp2-feature__bar-title {
    font-family: var(--hp2-font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--hp2-ink);
}

.hp2-feature__bar-issue {
    font-family: var(--hp2-font-body);
    font-size: 12px;
    font-weight: 500;
    color: var(--hp2-ink-faint);
    letter-spacing: 0.04em;
}

/* Feature body — 5fr/7fr */
.hp2-feature__body {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: center;
}

/* Cover art */
.hp2-feature__cover {
    background: var(--hp2-sky);
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 56px 48px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.hp2-feature__cover--img {
    padding: 0;
    background: none;
    border-radius: 0;
}

.hp2-feature__cover--img::after {
    display: none;
}

.hp2-feature__cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hp2-feature__cover::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 28px;
    background: var(--hp2-ink);
}

.hp2-feature__cover-text {
    font-family: var(--hp2-font-cover);
    font-size: clamp(48px, 5.6vw, 88px);
    line-height: 0.94;
    color: var(--hp2-white);
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    letter-spacing: -0.015em;
}

.hp2-feature__cover-text .mint {
    color: var(--hp2-mint);
}

.hp2-feature__cover-text mark {
    background: var(--hp2-ink);
    color: var(--hp2-sky);
    padding: 0 0.18em 0.05em;
    align-self: flex-start;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Feature content */
.hp2-feature__kicker {
    font-family: var(--hp2-font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hp2-ink-faint);
    margin-bottom: 16px;
}

.hp2-feature__heading {
    font-family: var(--hp2-font-display);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--hp2-ink);
    padding-right: 48px;
    margin-bottom: 24px;
}

.hp2-feature__excerpt {
    font-family: var(--hp2-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--hp2-ink-soft);
    margin-bottom: 32px;
    max-width: 560px;
}

/* Byline */
.hp2-feature__byline {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hp2-feature__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--hp2-ink);
    color: var(--hp2-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--hp2-font-body);
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.hp2-feature__author-name {
    font-family: var(--hp2-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--hp2-ink);
}

.hp2-feature__author-role {
    font-family: var(--hp2-font-body);
    font-size: 12px;
    color: var(--hp2-ink-faint);
    margin-top: 2px;
}

.hp2-feature__cta-btn {
    display: inline-block;
    padding: 16px 36px;
    margin-top: 24px;
    font-family: var(--hp2-font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--hp2-white);
    background: var(--hp2-ink);
    border-radius: var(--hp2-pill);
    text-align: center;
    transition: background 0.25s;
}

.hp2-feature__cta-btn:hover {
    background: var(--hp2-mint-ink);
}


/* --------------------------------------------------------------------------
   6. READING LIST — editorial article list (NOT card grid)
   -------------------------------------------------------------------------- */
.hp2-reading {
    padding: var(--hp2-section-gap) 0;
    background: var(--hp2-paper);
}

/* Reading header */
.hp2-reading__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}

.hp2-reading__title {
    font-family: var(--hp2-font-display);
    font-size: clamp(32px, 3.6vw, 48px);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--hp2-ink);
}

.hp2-reading__all {
    font-family: var(--hp2-font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--hp2-ink-faint);
    transition: color 0.25s;
}

.hp2-reading__all:hover {
    color: var(--hp2-ink);
}

/* Tabs */
.hp2-reading__tabs {
    display: flex;
    gap: 8px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--hp2-rule);
    margin-bottom: 0;
}

.hp2-reading__tab {
    font-family: var(--hp2-font-body);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: var(--hp2-pill);
    border: 1px solid var(--hp2-rule);
    background: transparent;
    color: var(--hp2-ink-faint);
    cursor: pointer;
    transition: all 0.2s;
}

.hp2-reading__tab:hover {
    border-color: var(--hp2-rule-strong);
    color: var(--hp2-ink);
}

.hp2-reading__tab.is-active {
    background: var(--hp2-ink);
    color: var(--hp2-white);
    border-color: var(--hp2-ink);
}

/* Article list items */
.hp2-reading__list {
    list-style: none;
}

.hp2-reading__item {
    display: grid;
    grid-template-columns: 56px 1fr 280px;
    gap: 32px;
    align-items: start;
    padding: 32px 0;
    border-bottom: 1px solid var(--hp2-rule);
}

.hp2-reading__item:last-child {
    border-bottom: none;
}

/* Number column */
.hp2-reading__num {
    font-family: var(--hp2-font-display);
    font-size: 48px;
    font-weight: 300;
    line-height: 1;
    color: var(--hp2-rule-strong);
    letter-spacing: -0.04em;
}

/* Content column */
.hp2-reading__content {}

.hp2-reading__meta {
    font-family: var(--hp2-font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hp2-ink-faint);
    margin-bottom: 8px;
}

.hp2-reading__meta span {
    color: var(--hp2-mint);
}

.hp2-reading__item-title {
    font-family: var(--hp2-font-display);
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--hp2-ink);
    margin-bottom: 10px;
    transition: color 0.25s;
}

.hp2-reading__item-title a {
    color: inherit;
}

.hp2-reading__item-title a:hover {
    color: var(--hp2-ink-soft);
}

.hp2-reading__excerpt {
    font-family: var(--hp2-font-body);
    font-size: 14px;
    line-height: 1.65;
    color: var(--hp2-ink-soft);
    max-width: 540px;
}

/* Aside column (difficulty) */
.hp2-reading__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 4px;
}

.hp2-reading__difficulty-label {
    font-family: var(--hp2-font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hp2-ink-faint);
}

.hp2-reading__difficulty-bar {
    display: flex;
    gap: 4px;
}

.hp2-reading__difficulty-bar span {
    width: 24px;
    height: 4px;
    border-radius: 2px;
    background: var(--hp2-rule);
}

.hp2-reading__difficulty-bar span.is-filled {
    background: var(--hp2-mint);
}

.hp2-reading__difficulty-text {
    font-family: var(--hp2-font-body);
    font-size: 12px;
    color: var(--hp2-ink-faint);
    margin-top: 2px;
}


/* --------------------------------------------------------------------------
   7. TOOLS — "Narzedzia"
   -------------------------------------------------------------------------- */
.hp2-tools {
    padding: var(--hp2-section-gap) 0;
}

/* Tools header — 5fr/7fr with border */
.hp2-tools__header {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--hp2-ink);
    margin-bottom: 48px;
    align-items: end;
}

.hp2-tools__title {
    font-family: var(--hp2-font-display);
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--hp2-ink);
}

.hp2-tools__desc {
    font-family: var(--hp2-font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--hp2-ink-soft);
    max-width: 480px;
}

/* Tools grid — 3 cols with border cells */
.hp2-tools__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 48px;
    border-top: 1px solid var(--hp2-rule);
}

.hp2-tools__cell {
    padding: 40px 0;
    border-bottom: 1px solid var(--hp2-rule);
    position: relative;
}

.hp2-tools__cell:not(:nth-child(3n))::after {
    content: '';
    position: absolute;
    right: -24px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--hp2-rule);
}

.hp2-tools__cell-num {
    font-family: var(--hp2-font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--hp2-ink-faint);
    margin-bottom: 20px;
}

.hp2-tools__cell-title {
    font-family: var(--hp2-font-display);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--hp2-ink);
    margin-bottom: 12px;
}

.hp2-tools__cell-desc {
    font-family: var(--hp2-font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--hp2-ink-soft);
    margin-bottom: 24px;
}

/* Mini widget placeholder */
.hp2-tools__widget {
    background: var(--hp2-paper);
    border: 1px solid var(--hp2-rule);
    border-radius: var(--hp2-radius-sm);
    padding: 20px;
    margin-bottom: 24px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp2-tools__widget-text {
    font-family: var(--hp2-font-body);
    font-size: 12px;
    color: var(--hp2-ink-faint);
    text-align: center;
}

.hp2-tools__widget-value {
    font-family: var(--hp2-font-display);
    font-size: 28px;
    font-weight: 400;
    color: var(--hp2-ink);
    text-align: center;
    line-height: 1;
    margin-bottom: 4px;
}

.hp2-tools__cell-link {
    font-family: var(--hp2-font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--hp2-ink);
    transition: color 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hp2-tools__cell-link:hover {
    color: var(--hp2-mint-ink);
}


/* --------------------------------------------------------------------------
   8. RULES — "Trzy zlote zasady"
   -------------------------------------------------------------------------- */
.hp2-rules {
    padding: var(--hp2-section-gap) 0;
    background: var(--hp2-paper);
}

/* Rules header — 5fr/7fr with border */
.hp2-rules__header {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--hp2-ink);
    margin-bottom: 48px;
    align-items: end;
}

.hp2-rules__title {
    font-family: var(--hp2-font-display);
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--hp2-ink);
}

.hp2-rules__title em {
    font-style: normal;
    color: var(--hp2-mint-ink);
}

.hp2-rules__intro {
    font-family: var(--hp2-font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--hp2-ink-soft);
    max-width: 480px;
}

/* Rules grid — 3 cols */
.hp2-rules__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    border-bottom: 1px solid var(--hp2-rule);
    padding-bottom: 48px;
}

.hp2-rules__card {
    padding-top: 0;
}

.hp2-rules__card-num {
    font-family: var(--hp2-font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hp2-ink-faint);
    margin-bottom: 16px;
}

.hp2-rules__card-title {
    font-family: var(--hp2-font-display);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--hp2-ink);
    margin-bottom: 14px;
}

.hp2-rules__card-text {
    font-family: var(--hp2-font-body);
    font-size: 14px;
    line-height: 1.65;
    color: var(--hp2-ink-soft);
}


/* --------------------------------------------------------------------------
   9. NEWSLETTER — "7 krokow" email course signup
   -------------------------------------------------------------------------- */
.hp2-newsletter {
    padding: var(--hp2-section-gap) 0;
}

.hp2-newsletter__inner {
    display: grid;
    grid-template-columns: 6fr 6fr;
    gap: 64px;
    align-items: center;
}

/* Left column */
.hp2-newsletter__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--hp2-font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hp2-mint);
    margin-bottom: 20px;
}

.hp2-newsletter__eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--hp2-mint);
    flex-shrink: 0;
}

.hp2-newsletter__heading {
    font-family: var(--hp2-font-display);
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--hp2-ink);
    margin-bottom: 16px;
}

.hp2-newsletter__subtitle {
    font-family: var(--hp2-font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--hp2-ink-soft);
    max-width: 440px;
}

/* Right column — stats display */
.hp2-newsletter__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.hp2-newsletter__stat-value {
    font-family: var(--hp2-font-display);
    font-size: 36px;
    font-weight: 400;
    color: var(--hp2-ink);
    line-height: 1;
    letter-spacing: -0.02em;
}

.hp2-newsletter__stat-label {
    font-family: var(--hp2-font-body);
    font-size: 12px;
    color: var(--hp2-ink-faint);
    margin-top: 6px;
}

/* Form — pill-shaped */
.hp2-newsletter__form {
    display: flex;
    border: 1px solid var(--hp2-ink);
    border-radius: var(--hp2-pill);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.hp2-newsletter__form:focus-within {
    box-shadow: 0 0 0 3px rgba(10, 25, 47, 0.08);
}

.hp2-newsletter__input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    background: transparent;
    font-family: var(--hp2-font-body);
    font-size: 14px;
    color: var(--hp2-ink);
    outline: none;
    min-width: 0;
}

.hp2-newsletter__input::placeholder {
    color: var(--hp2-ink-faint);
}

.hp2-newsletter__submit {
    padding: 16px 28px;
    background: var(--hp2-ink);
    color: var(--hp2-white);
    font-family: var(--hp2-font-body);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    border-radius: 0 var(--hp2-pill) var(--hp2-pill) 0;
    margin: -1px -1px -1px 0;
}

.hp2-newsletter__submit:hover {
    background: #0d2240;
}

/* Legal text */
.hp2-newsletter__legal {
    font-family: var(--hp2-font-body);
    font-size: 11px;
    color: var(--hp2-ink-faint);
    margin-top: 16px;
    line-height: 1.5;
    max-width: 480px;
}

.hp2-newsletter__legal a {
    color: var(--hp2-ink-soft);
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* --------------------------------------------------------------------------
   10. FOOTER — navy background
   -------------------------------------------------------------------------- */
.hp2-footer {
    background: var(--hp2-ink);
    color: rgba(255, 255, 255, 0.55);
    padding: 80px 0 0;
}

/* Footer top — 2 col: brand | 4-col links */
.hp2-footer__top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Brand column */
.hp2-footer__brand {
    max-width: 400px;
}

.hp2-footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.hp2-footer__logo svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.hp2-footer__logo-text {
    font-family: var(--hp2-font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hp2-white);
    line-height: 1.3;
}

.hp2-footer__mission {
    font-family: var(--hp2-font-body);
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.45);
}

/* Links grid — 3 columns */
.hp2-footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.hp2-footer__col-title {
    font-family: var(--hp2-font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 20px;
}

.hp2-footer__col-list li {
    margin-bottom: 12px;
}

.hp2-footer__col-list a {
    font-family: var(--hp2-font-body);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.25s;
    white-space: nowrap;
}

.hp2-footer__col-list a:hover {
    color: var(--hp2-white);
}

/* Legal bar */
.hp2-footer__legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-family: var(--hp2-font-body);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

.hp2-footer__legal a {
    color: var(--hp2-mint);
    transition: color 0.25s;
}

.hp2-footer__legal a:hover {
    color: var(--hp2-white);
}

/* Brand bar at bottom */
.hp2-footer__bar {
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp2-footer__bar-mark {
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

/* Footer disclaimer */
.hp2-footer__disclaimer {
    font-family: var(--hp2-font-body);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    line-height: 1.6;
    max-width: 720px;
    padding: 20px 0 0;
    margin: 0 auto;
    text-align: center;
}


/* ==========================================================================
   RESPONSIVE — Tablet (max 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    :root {
        --hp2-pad-x: 32px;
        --hp2-section-gap: 80px;
    }

    /* Header: collapse 3-col to flex */
    .hp2-header__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .hp2-header__nav {
        gap: 24px;
    }

    .hp2-header__actions {
        gap: 16px;
    }

    /* Hero: stack */
    .hp2-hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
        align-items: start;
    }

    .hp2-hero__lead {
        max-width: none;
    }

    /* Feature: stack */
    .hp2-feature__body {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hp2-feature__cover {
        aspect-ratio: 16 / 9;
        max-height: 400px;
    }

    /* Reading list: remove aside */
    .hp2-reading__item {
        grid-template-columns: 48px 1fr;
        gap: 24px;
    }

    .hp2-reading__aside {
        display: none;
    }

    /* Tools: 2 cols */
    .hp2-tools__header {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hp2-tools__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0 32px;
    }

    .hp2-tools__cell:nth-child(3n)::after,
    .hp2-tools__cell:nth-child(2n)::after {
        display: none;
    }

    .hp2-tools__cell:nth-child(2n-1)::after {
        content: '';
        position: absolute;
        right: -16px;
        top: 0;
        bottom: 0;
        width: 1px;
        background: var(--hp2-rule);
    }

    /* Rules: 2 + 1 */
    .hp2-rules__header {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hp2-rules__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    /* Newsletter */
    .hp2-newsletter__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hp2-newsletter__subtitle {
        max-width: none;
    }

    /* Footer: stack */
    .hp2-footer__top {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hp2-footer__links {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}


/* ==========================================================================
   RESPONSIVE — Mobile (max 768px)
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --hp2-pad-x: 20px;
        --hp2-section-gap: 64px;
    }

    /* Header mobile */
    .hp2-header__nav {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--hp2-paper);
        flex-direction: column;
        align-items: stretch;
        padding: 32px var(--hp2-pad-x);
        gap: 0;
        z-index: 999;
        overflow-y: auto;
    }

    .hp2-header__nav.is-open {
        display: flex;
    }

    .hp2-header__link {
        padding: 18px 0;
        border-bottom: 1px solid var(--hp2-rule);
        font-size: 15px;
        opacity: 1;
    }

    .hp2-header__actions {
        display: none;
    }

    .hp2-header__nav.is-open .hp2-header__actions-mobile {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-top: 24px;
    }

    .hp2-header__burger {
        display: block;
    }

    .hp2-header__burger.is-open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hp2-header__burger.is-open span:nth-child(2) {
        opacity: 0;
    }

    .hp2-header__burger.is-open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero: tighter padding */
    .hp2-hero {
        padding: 56px 0 40px;
    }

    .hp2-hero__heading {
        font-size: clamp(36px, 10vw, 56px);
    }

    .hp2-hero__lead {
        font-size: 16px;
    }

    /* Meta strip: 2 cols */
    .hp2-meta__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 0;
    }

    .hp2-meta__item:nth-child(3)::before {
        display: none;
    }

    .hp2-meta__value {
        font-size: 24px;
    }

    /* Feature */
    .hp2-feature__cover {
        aspect-ratio: 4 / 3;
    }

    /* Reading list: no number */
    .hp2-reading__item {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 24px 0;
    }

    .hp2-reading__num {
        display: none;
    }

    .hp2-reading__tabs {
        flex-wrap: wrap;
    }

    /* Tools: single column */
    .hp2-tools__grid {
        grid-template-columns: 1fr;
    }

    .hp2-tools__cell {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .hp2-tools__cell::after {
        display: none !important;
    }

    /* Rules: single column */
    .hp2-rules__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Newsletter form: stack */
    .hp2-newsletter__form {
        flex-direction: column;
        border-radius: var(--hp2-radius-md);
    }

    .hp2-newsletter__input {
        padding: 16px 20px;
        border-bottom: 1px solid var(--hp2-rule);
    }

    .hp2-newsletter__submit {
        border-radius: 0 0 var(--hp2-radius-md) var(--hp2-radius-md);
        margin: 0;
        padding: 16px 24px;
    }

    .hp2-newsletter__stats {
        gap: 16px;
    }

    .hp2-newsletter__stat-value {
        font-size: 28px;
    }

    /* Footer */
    .hp2-footer__links {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .hp2-footer__legal {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}


/* ==========================================================================
   RESPONSIVE — Small mobile (max 480px)
   ========================================================================== */
@media (max-width: 480px) {
    :root {
        --hp2-pad-x: 16px;
        --hp2-section-gap: 48px;
    }

    .hp2-hero__heading {
        font-size: clamp(32px, 9vw, 44px);
    }

    .hp2-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hp2-hero__btn {
        width: 100%;
        justify-content: center;
    }

    .hp2-meta__grid {
        grid-template-columns: 1fr 1fr;
    }

    .hp2-meta__value {
        font-size: 22px;
    }

    .hp2-feature__heading {
        font-size: 24px;
    }

    .hp2-feature__bar {
        flex-direction: column;
        gap: 8px;
    }

    .hp2-newsletter__stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hp2-footer__links {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}


/* ==========================================================================
   UTILITY: Hide GP defaults on front page
   ========================================================================== */
.hp2-page .site-header,
.hp2-page .site-footer,
.hp2-page #page > .site-content > .inside-article {
    display: none !important;
}
