/* ===== Tokens ===== */
:root {
    --color-bg:        #FAF6F1;     /* cream paper */
    --color-bg-warm:   #F4EADD;     /* warmer panel */
    --color-ink:       #2A1F1A;     /* deep walnut, not black */
    --color-ink-soft:  #5C4A40;
    --color-ink-mute:  #8B7A6E;
    --color-accent:    #C46A4D;     /* terracotta */
    --color-accent-d:  #A04E33;
    --color-ochre:     #D4A574;
    --color-rose:      #F4D6CD;
    --color-sage:      #B8C5A6;
    --color-line:      #E5D9C9;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --shadow-soft: 0 8px 24px -12px rgba(60, 40, 30, 0.18), 0 2px 6px -2px rgba(60, 40, 30, 0.08);
    --shadow-warm: 0 18px 40px -20px rgba(196, 106, 77, 0.35), 0 4px 12px -4px rgba(60, 40, 30, 0.10);

    --font-serif: 'Fraunces', Georgia, serif;
    --font-sans:  'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

    --container: 1180px;
    --page-max: 1920px;       /* natural cap = niebo.jpg / ziemia.png native width */
}

/* ===== Reset / Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    background: var(--color-line);   /* frame poza page-em na ultra-wide */
}
body {
    margin: 0 auto;
    max-width: var(--page-max);
    font-family: var(--font-sans);
    color: var(--color-ink);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--color-accent-d); text-decoration: none; }
a:hover { color: var(--color-accent); }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
p { margin: 0 0 1em 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 246, 241, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-line);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    padding-bottom: 18px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-ink);
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}
.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    font-size: 1.05rem;
    line-height: 0;
    box-shadow: var(--shadow-soft);
}
.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}
.site-nav a {
    color: var(--color-ink-soft);
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    font-weight: 500;
    font-size: 0.96rem;
    white-space: nowrap;
}
.site-nav a:hover { color: var(--color-accent-d); }
.site-nav .review-nav-link {
    padding: 7px 12px;
    border: 1px solid rgba(42, 31, 26, 0.12);
    border-radius: var(--radius-sm);
    background: var(--color-ink);
    color: var(--color-bg);
    font-weight: 700;
    box-shadow: 0 8px 20px -14px rgba(42, 31, 26, 0.55);
}
.site-nav .review-nav-link:hover {
    background: var(--color-accent-d);
    color: var(--color-bg);
}
.site-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(42, 31, 26, 0.14);
    border-radius: 50%;
    background: rgba(250, 246, 241, 0.86);
    color: var(--color-ink);
    box-shadow: 0 10px 24px -18px rgba(42, 31, 26, 0.45);
    cursor: pointer;
}
.site-nav-toggle:hover,
.site-nav-toggle:focus-visible {
    border-color: rgba(170, 75, 53, 0.34);
    color: var(--color-accent-d);
    outline: none;
}
.site-nav-toggle-icon {
    display: grid;
    gap: 4px;
    width: 18px;
}
.site-nav-toggle-icon span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform 0.18s ease, opacity 0.18s ease;
}
.site-header--nav-open .site-nav-toggle-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.site-header--nav-open .site-nav-toggle-icon span:nth-child(2) {
    opacity: 0;
}
.site-header--nav-open .site-nav-toggle-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 96px 0 80px;
    background:
        radial-gradient(circle at 88% 18%, var(--color-rose) 0%, transparent 42%),
        radial-gradient(circle at 8% 88%, rgba(212, 165, 116, 0.35) 0%, transparent 38%),
        var(--color-bg);
    overflow: hidden;
}
.hero-inner { max-width: 880px; }
.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-accent-d);
    margin-bottom: 18px;
}
.hero-title {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    margin-bottom: 24px;
    color: var(--color-ink);
}
.hero-lede {
    font-size: 1.18rem;
    color: var(--color-ink-soft);
    max-width: 640px;
    margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trustbar {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px dashed rgba(42, 31, 26, 0.18);
    font-size: 0.95rem;
    color: var(--color-ink-soft);
    max-width: 620px;
}
.hero-trustbar strong { color: var(--color-ink); font-weight: 600; }
.hero-trustbar a { font-weight: 600; white-space: nowrap; }

/* ===== Homepage Workbench Hero ===== */
.workbench-hero {
    isolation: isolate;
    min-height: 640px;
    padding: 74px 0 82px;
    border-bottom: 1px solid rgba(42, 31, 26, 0.12);
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(250, 246, 241, 0.94) 0 52%, rgba(220, 232, 224, 0.92) 52% 100%),
        repeating-linear-gradient(0deg, rgba(42, 31, 26, 0.025) 0 1px, transparent 1px 18px),
        #F7EFE5;
}
.workbench-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(115deg, rgba(196, 106, 77, 0.12) 0 32%, transparent 32% 100%),
        linear-gradient(180deg, transparent 0 72%, rgba(42, 31, 26, 0.08) 72% 100%);
}
.workbench-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 18px;
    z-index: -1;
    background: linear-gradient(90deg, var(--color-accent), var(--color-ochre), #263A4F);
    opacity: 0.82;
}
.workbench-hero .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.88fr);
    align-items: center;
    gap: 48px;
    max-width: var(--container);
    min-width: 0;
}
.workbench-hero .hero-copy {
    max-width: 680px;
    min-width: 0;
}
.workbench-hero .hero-title {
    max-width: 720px;
    font-size: 3.25rem;
    letter-spacing: 0;
}
.workbench-hero .hero-lede {
    max-width: 620px;
}
.hero-art {
    position: relative;
    min-height: 462px;
    min-width: 0;
    display: flex;
    align-items: center;
}
.featured-book {
    position: relative;
    display: grid;
    grid-template-columns: minmax(190px, 0.82fr) minmax(0, 1fr);
    align-items: end;
    gap: 28px;
    width: 100%;
    min-height: 462px;
    padding: 34px 34px 30px;
    overflow: hidden;
    border: 1px solid rgba(42, 31, 26, 0.14);
    border-radius: var(--radius-sm);
    background:
        radial-gradient(circle at 78% 18%, rgba(196, 106, 77, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(244, 234, 221, 0.78)),
        repeating-linear-gradient(90deg, rgba(42, 31, 26, 0.035) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(0deg, rgba(42, 31, 26, 0.026) 0 1px, transparent 1px 34px),
        #EEE3D5;
    box-shadow: 0 26px 50px -34px rgba(42, 31, 26, 0.42), inset 0 0 0 10px rgba(255, 255, 255, 0.24);
    transform: rotate(-1.2deg);
}
.featured-book::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, transparent 0 53%, rgba(220, 232, 224, 0.58) 53% 100%),
        linear-gradient(90deg, rgba(196, 106, 77, 0.1) 0 2px, transparent 2px 100%);
    pointer-events: none;
}
.featured-book::after {
    content: "";
    position: absolute;
    top: 48%;
    left: 26px;
    right: 26px;
    height: 1px;
    background: rgba(38, 58, 79, 0.18);
    transform: rotate(-8deg);
    transform-origin: center;
}
.featured-book-media,
.featured-book-copy {
    position: relative;
    z-index: 1;
}
.featured-book-media {
    min-height: 364px;
}
.featured-book-cover {
    position: absolute;
    top: 4px;
    left: 4px;
    display: block;
    width: 178px;
    height: 266px;
    border: 1px solid rgba(42, 31, 26, 0.13);
    border-radius: 10px;
    overflow: hidden;
    background: #263A4F;
    box-shadow: 0 24px 38px -22px rgba(42, 31, 26, 0.5);
    transform: rotate(4deg);
}
.featured-book-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-book-cover-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: rgba(250, 246, 241, 0.94);
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 600;
}
.featured-book-guide {
    position: absolute;
    right: -8px;
    bottom: 18px;
    width: 184px;
    min-height: 126px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(42, 31, 26, 0.13);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 28px -24px rgba(42, 31, 26, 0.52);
    transform: rotate(-3deg);
}
.featured-book-guide span {
    display: block;
    margin-bottom: 14px;
    color: #263A4F;
    font-family: var(--font-serif);
    font-size: 1.08rem;
    font-weight: 600;
}
.featured-book-guide i {
    display: block;
    height: 7px;
    margin-top: 9px;
    border-radius: 999px;
    background: rgba(38, 58, 79, 0.16);
}
.featured-book-guide i:nth-child(3) { width: 82%; }
.featured-book-guide i:nth-child(4) { width: 58%; }
.featured-book-copy {
    align-self: center;
    padding: 16px 0 20px;
}
.featured-book-kicker {
    margin-bottom: 12px;
    color: var(--color-accent-d);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.featured-book-copy h2 {
    margin-bottom: 14px;
    color: var(--color-ink);
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 0.98;
}
.featured-book-copy > p:not(.featured-book-kicker) {
    max-width: 260px;
    margin-bottom: 18px;
    color: var(--color-ink-soft);
    font-size: 1.02rem;
    line-height: 1.55;
}
.featured-book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 280px;
    margin-bottom: 22px;
}
.featured-book-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border: 1px solid rgba(42, 31, 26, 0.12);
    border-radius: 999px;
    background: rgba(250, 246, 241, 0.78);
    color: var(--color-ink-soft);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.15;
}
.featured-book-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--color-ink);
    color: var(--color-bg);
    font-weight: 700;
    box-shadow: 0 16px 26px -20px rgba(42, 31, 26, 0.55);
}
.featured-book-link:hover {
    background: var(--color-accent-d);
    color: #fff;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg);
    box-shadow: var(--shadow-warm);
}
.btn-primary:hover { background: var(--color-accent-d); color: var(--color-bg); }
.btn-ghost {
    background: transparent;
    color: var(--color-ink);
    border-color: var(--color-line);
}
.btn-ghost:hover { background: var(--color-bg-warm); color: var(--color-ink); }
.workbench-hero .hero-cta .btn-ghost {
    padding-inline: 14px;
    border-color: transparent;
    background: transparent;
    color: var(--color-ink-soft);
    box-shadow: none;
}
.workbench-hero .hero-cta .btn-ghost::after {
    content: "→";
    margin-left: 8px;
    color: var(--color-accent-d);
    transition: transform 0.2s ease;
}
.workbench-hero .hero-cta .btn-ghost:hover,
.workbench-hero .hero-cta .btn-ghost:focus-visible {
    border-color: rgba(42, 31, 26, 0.12);
    background: rgba(250, 246, 241, 0.54);
    color: var(--color-ink);
}
.workbench-hero .hero-cta .btn-ghost:hover::after,
.workbench-hero .hero-cta .btn-ghost:focus-visible::after {
    transform: translateX(3px);
}
.btn-small { padding: 9px 18px; font-size: 0.88rem; }

/* ===== Catalog ===== */
.catalog { padding: 88px 0 96px; }
.section-header {
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: center;
}
.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--color-accent-d);
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: 0;
}
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

/* ===== Area Card ===== */
.area-card {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    min-height: 248px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.area-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(196, 106, 77, 0.28);
}
.area-card--planned {
    background:
        linear-gradient(135deg, rgba(250, 246, 241, 0.92), rgba(244, 234, 221, 0.72)),
        #fff;
}
.area-card-visual {
    display: block;
    min-height: 100%;
    background: var(--color-bg-warm);
    color: inherit;
}
.area-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.area-card-visual img[src$="rycerz-cover.webp"] {
    object-position: left center;
}
.area-card--planned .area-card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(184, 197, 166, 0.42), rgba(244, 234, 221, 0.78)),
        repeating-linear-gradient(135deg, rgba(42, 31, 26, 0.05) 0 1px, transparent 1px 12px);
}
.area-card--question {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 234, 221, 0.76)),
        #fff;
}
.area-card--question .area-card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(196, 106, 77, 0.18), rgba(244, 214, 205, 0.28)),
        repeating-linear-gradient(135deg, rgba(42, 31, 26, 0.045) 0 1px, transparent 1px 12px);
}
.area-card-letter {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 246, 241, 0.76);
    color: rgba(42, 31, 26, 0.52);
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
}
.area-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px 22px 20px;
}
.area-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.82rem;
}
.area-card-tag {
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.area-card-tag--live { background: var(--color-sage); color: #3D4A2D; }
.area-card-tag--planned { background: var(--color-bg-warm); color: var(--color-ink-soft); }
.area-card-tag--question { background: rgba(196, 106, 77, 0.16); color: var(--color-accent-d); }
.area-card-title {
    font-size: 1.26rem;
    margin-bottom: 8px;
}
.area-card-blurb {
    color: var(--color-ink-soft);
    font-size: 0.96rem;
    line-height: 1.55;
    flex-grow: 1;
    margin-bottom: 18px;
}
.area-card-footer {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--color-line);
}
.area-vote-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.area-vote-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.area-vote-button:disabled {
    transform: none;
    box-shadow: none;
    cursor: default;
    opacity: 0.62;
}
.area-vote-count {
    color: var(--color-ink-mute);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}
.area-suggestion-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}
.area-suggestion-form .area-card-footer {
    align-items: center;
    gap: 14px;
}
.area-suggestion-input {
    width: 100%;
    min-height: 74px;
    max-height: 150px;
    padding: 11px 12px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background: rgba(250, 246, 241, 0.76);
    color: var(--color-ink);
    font: inherit;
    font-size: 0.88rem;
    line-height: 1.45;
    resize: vertical;
}
.area-suggestion-input:focus {
    border-color: rgba(196, 106, 77, 0.55);
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 106, 77, 0.12);
}
.area-suggestion-input::placeholder {
    color: rgba(92, 74, 64, 0.58);
}
.area-suggestion-button:disabled {
    transform: none;
    box-shadow: none;
    cursor: default;
    opacity: 0.62;
}
.area-suggestion-status {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: var(--color-ink-mute);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}
.catalog-note {
    max-width: 720px;
    margin: 34px auto 0;
    color: var(--color-ink-soft);
    font-size: 1.02rem;
    line-height: 1.7;
    text-align: center;
}
.catalog-note p {
    margin: 0;
}
.catalog-note p + p {
    margin-top: 10px;
    color: var(--color-ink-mute);
    font-size: 0.94rem;
}
.latest-publications {
    max-width: 760px;
    margin: 42px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(42, 31, 26, 0.14);
}
.latest-publications h3 {
    margin-bottom: 8px;
    color: var(--color-ink-soft);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-align: center;
    text-transform: uppercase;
}
.latest-publication-list {
    border-top: 1px solid rgba(42, 31, 26, 0.09);
}
.latest-publication-row {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 18px;
    align-items: baseline;
    min-height: 38px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(42, 31, 26, 0.09);
    color: var(--color-ink);
}
.latest-publication-row time {
    color: var(--color-ink-mute);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.latest-publication-row span {
    overflow: hidden;
    color: var(--color-ink-soft);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.latest-publication-row:hover span,
.latest-publication-row:focus-visible span {
    color: var(--color-accent-d);
}

/* ===== About ===== */
.about-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-accent-d);
    margin-bottom: 16px;
}

/* ===== Specialists (Pod okiem specjalistów) ===== */
.specialists {
    background: var(--color-bg-warm);
    padding: 96px 0;
}
.specialists-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: start;
}
.specialists-copy h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: 24px;
}
.specialists-copy p {
    color: var(--color-ink-soft);
    font-size: 1.05rem;
    line-height: 1.7;
}
.specialists-copy strong { color: var(--color-ink); font-weight: 600; }
.specialists-process-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    font-size: 0.92rem;
    font-weight: 700;
}
.spec-card {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 24px;
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}
.spec-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--color-ochre), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 0;
}
.spec-body { min-width: 0; }
.spec-name {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--color-ink);
    line-height: 1.2;
    margin: 0;
}
.spec-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 6px 0 0;
    padding: 3px 8px 4px;
    border-radius: 999px;
    background: rgba(184, 197, 166, 0.45);
    color: #3D4A2D;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.spec-role {
    font-size: 0.86rem;
    color: var(--color-ink-soft);
    margin: 2px 0 0;
}
.spec-essence {
    font-size: 0.95rem;
    color: var(--color-ink-soft);
    line-height: 1.55;
    margin: 10px 0 0;
}
.spec-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-accent-d);
}
.spec-profile-link:hover { color: var(--color-accent); }
.spec-invite {
    margin: 18px 0 0;
    padding: 16px 18px;
    border: 1px dashed var(--color-accent);
    border-radius: var(--radius-sm);
    background: rgba(196, 106, 77, 0.05);
    font-size: 0.92rem;
    color: var(--color-ink-soft);
    line-height: 1.55;
}
.spec-invite a { font-weight: 600; white-space: nowrap; }

/* ===== About + topic prompt ===== */
.about {
    padding: 82px 0;
    background: var(--color-bg);
    border-top: 1px solid rgba(42, 31, 26, 0.08);
}
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.78fr);
    gap: clamp(36px, 6vw, 84px);
    align-items: start;
}
.about-origin,
.about-prompt {
    max-width: 540px;
}
.about-prompt {
    padding-left: clamp(28px, 4vw, 52px);
    border-left: 1px solid var(--color-line);
}
.about-origin h2,
.about-prompt h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: 18px;
}
.about-origin p,
.about-prompt p {
    color: var(--color-ink-soft);
    font-size: 1.05rem;
    line-height: 1.7;
}
.about-origin strong,
.about-prompt strong { color: var(--color-ink); font-weight: 600; }
.about-prompt .btn { margin-top: 8px; }

/* ===== Footer ===== */
.site-footer {
    background: var(--color-ink);
    color: rgba(250, 246, 241, 0.75);
    padding: 26px 0 22px;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-bg);
}
.footer-brand:hover { color: var(--color-rose); }
.footer-brand .brand-mark { width: 32px; height: 32px; font-size: 0.95rem; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; justify-content: flex-end; }
.footer-nav a {
    color: rgba(250, 246, 241, 0.75);
    font-size: 0.92rem;
}
.footer-nav a:hover { color: var(--color-rose); }
.footer-fineprint {
    color: rgba(250, 246, 241, 0.45);
    font-size: 0.74rem;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(250, 246, 241, 0.12);
}
@media (max-width: 620px) {
    .footer-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
    .footer-nav { justify-content: flex-start; gap: 18px; }
}

/* ===== Paper-collage scene (reusable hero modifier) =====
   Add `.collage-scene` to a hero <section> + optional `.collage-figures`
   wrapper inside with `.collage-figure--*` images. `.collage-ground` and
   `.collage-bar` sit absolute at bottom. Parent section keeps its own
   padding rules — this layer only paints background and bottom strip. */
/* `section.` prefix bumps specificity to 0.0.1.1 so this background wins
   over inline `.detail-hero` / `.area-hero` default gradients (0.0.1.0)
   defined after the <link> in template <style> blocks. */
section.collage-scene {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(95, 175, 215, 0) 0%, rgba(95, 175, 215, 0) 70%, rgba(212, 165, 116, 0.18) 100%),
        url("niebo.jpg") center top / cover no-repeat;
}
.collage-figures {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}
.collage-figure {
    position: absolute;
    display: block;
}
.collage-figure--knight {
    left: 4%;
    bottom: 78px;
    width: 200px;
    height: auto;
}
.collage-figure--dragon {
    /* negative right: cropped right edge (no tail in smok.png) hidden behind viewport */
    right: -60px;
    bottom: 70px;
    width: 320px;
    height: auto;
}
.collage-figure--sun {
    top: 56px;
    right: 7%;
    width: 150px;
    height: auto;
    opacity: 0.95;
}
.collage-ground {
    position: absolute;
    left: 0; right: 0; bottom: 22px;
    height: 90px;
    background: url("ziemia.png") left bottom / cover no-repeat;
    z-index: 1;
}
.collage-bar {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 22px;
    background: var(--color-ochre);
    box-shadow: 0 -1px 0 rgba(42, 31, 26, 0.12) inset;
    z-index: 4;
}
@media (max-width: 860px) {
    .collage-figure--knight { width: 130px; bottom: 60px; }
    .collage-figure--dragon { width: 220px; bottom: 55px; right: -40px; }
    .collage-figure--sun { width: 100px; top: 36px; right: 5%; }
    .collage-ground { height: 70px; bottom: 18px; }
}
@media (max-width: 560px) {
    .collage-figure--knight { width: 92px; bottom: 52px; left: 6%; }
    .collage-figure--dragon { width: 155px; bottom: 50px; right: -24px; }
    .collage-figure--sun { width: 76px; top: 28px; right: 6%; }
    .collage-ground { height: 56px; bottom: 16px; }
    .collage-bar { height: 16px; }
}

.hero.collage-scene {
    padding: 96px 0 140px;
    min-height: 540px;
}
.hero.collage-scene .hero-inner {
    position: relative;
    z-index: 3;
    max-width: var(--container);
}
.hero.collage-scene .hero-copy {
    max-width: 760px;
}
.hero.collage-scene .hero-title {
    text-shadow: 0 1px 0 rgba(250, 246, 241, 0.55);
}
@media (max-width: 860px) {
    .hero.collage-scene { padding: 72px 0 200px; min-height: 0; }
}
@media (max-width: 560px) {
    .hero.collage-scene { padding: 56px 0 170px; }
}

/* ===== Responsive ===== */
@media (max-width: 760px) {
    .header-inner {
        position: relative;
        padding-top: 14px;
        padding-bottom: 14px;
    }
    .site-nav-toggle {
        display: inline-flex;
    }
    .site-nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 24px;
        left: 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px;
        border: 1px solid rgba(42, 31, 26, 0.12);
        border-radius: var(--radius-md);
        background: var(--color-bg);
        box-shadow: var(--shadow-soft);
        z-index: 60;
    }
    .site-header--nav-open .site-nav {
        display: flex;
    }
    .site-nav a {
        min-height: 44px;
        justify-content: flex-start;
        padding: 0 12px;
        border-radius: var(--radius-sm);
        color: var(--color-ink);
        font-size: 1rem;
    }
    .site-nav a:hover,
    .site-nav a:focus-visible {
        background: rgba(170, 75, 53, 0.08);
        color: var(--color-accent-d);
        outline: none;
    }
    .site-nav .review-nav-link {
        justify-content: center;
        margin-top: 4px;
    }
}
@media (max-width: 860px) {
    .hero.workbench-hero {
        min-height: 0;
        padding: 64px 0 58px;
        background:
            linear-gradient(180deg, rgba(250, 246, 241, 0.96) 0 58%, rgba(220, 232, 224, 0.92) 58% 100%),
            #F7EFE5;
    }
    .workbench-hero .hero-inner {
        grid-template-columns: 1fr;
        gap: 38px;
        max-width: calc(100vw - 48px);
    }
    .workbench-hero .hero-title {
        font-size: 2.45rem;
    }
    .hero-art {
        min-height: 392px;
    }
    .featured-book {
        grid-template-columns: minmax(170px, 0.72fr) minmax(0, 1fr);
        min-height: 392px;
        padding: 28px;
        transform: rotate(-0.6deg);
    }
    .featured-book-media {
        min-height: 314px;
    }
    .featured-book-cover {
        width: 148px;
        height: 222px;
    }
    .featured-book-guide {
        right: -4px;
        bottom: 10px;
        width: 164px;
    }
    .featured-book-copy h2 {
        font-size: 2.18rem;
    }
    .featured-book-copy > p:not(.featured-book-kicker) {
        max-width: 240px;
    }
    .specialists-inner { grid-template-columns: 1fr; gap: 36px; }
    .about-grid { grid-template-columns: 1fr; gap: 34px; }
    .about-prompt {
        padding: 30px 0 0;
        border-left: 0;
        border-top: 1px solid var(--color-line);
    }
    .hero { padding: 72px 0 56px; }
    .catalog { padding: 64px 0 72px; }
    .specialists, .about { padding: 72px 0; }
}
@media (max-width: 540px) {
    .hero.workbench-hero {
        padding-top: 48px;
    }
    .workbench-hero .container {
        max-width: none;
        margin-right: 0;
        margin-left: 0;
    }
    .workbench-hero .hero-title {
        font-size: 2rem;
    }
    .workbench-hero .hero-inner,
    .workbench-hero .hero-copy,
    .workbench-hero .hero-art,
    .workbench-hero .hero-cta {
        width: calc(100vw - 48px);
        max-width: 342px;
    }
    .workbench-hero .hero-eyebrow {
        max-width: 280px;
        font-size: 0.68rem;
        line-height: 1.55;
        letter-spacing: 0.1em;
    }
    .workbench-hero .hero-lede {
        font-size: 1.05rem;
    }
    .hero-art {
        min-height: 330px;
    }
    .featured-book {
        grid-template-columns: 1fr;
        gap: 16px;
        min-height: 0;
        margin: 0 -6px;
        padding: 22px;
        transform: none;
    }
    .featured-book::after {
        top: 36%;
        left: 20px;
        right: 20px;
    }
    .featured-book-media {
        min-height: 238px;
    }
    .featured-book-cover {
        top: 0;
        left: 16px;
        width: 126px;
        height: 188px;
    }
    .featured-book-guide {
        right: 4px;
        bottom: 8px;
        width: 158px;
        min-height: 104px;
        padding: 14px 15px 13px;
    }
    .featured-book-guide span {
        margin-bottom: 9px;
        font-size: 0.98rem;
    }
    .featured-book-guide i {
        height: 6px;
        margin-top: 7px;
    }
    .featured-book-copy {
        padding: 0;
    }
    .featured-book-copy h2 {
        font-size: 1.9rem;
    }
    .featured-book-copy > p:not(.featured-book-kicker) {
        max-width: 280px;
        font-size: 0.98rem;
    }
    .featured-book-meta {
        max-width: 100%;
        margin-bottom: 18px;
    }
    .featured-book-link {
        width: 100%;
    }
    .header-inner {
        padding-top: 14px;
        padding-bottom: 14px;
    }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
    .catalog-grid { grid-template-columns: 1fr; }
    .catalog-note {
        margin-top: 28px;
        font-size: 0.98rem;
        text-align: left;
    }
    .latest-publications {
        margin-top: 34px;
    }
    .latest-publication-row {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 12px;
    }
    .area-vote-form {
        gap: 10px;
    }
    .area-card { grid-template-columns: 1fr; }
    .area-card-visual {
        min-height: 152px;
        max-height: 190px;
    }
}
