:root {
    --paper: #f4f1e8;
    --paper-2: #ebe6da;
    --white: #fffdf7;
    --ink: #171713;
    --ink-soft: #57554d;
    --line: #cbc4b5;
    --yellow: #f2c529;
    --yellow-deep: #e5af00;
    --red: #c83b31;
    --green: #1d6a58;
    --shadow: 0 24px 60px rgba(27, 24, 17, .12);
    --radius: 22px;
    --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    opacity: .28;
    background-image: radial-gradient(rgba(24, 23, 19, .08) .55px, transparent .55px);
    background-size: 5px 5px;
}

img { display: block; max-width: 100%; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

h1, h2, h3, p, figure { margin-top: 0; }
h1, h2, h3 { line-height: 1.04; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; letter-spacing: -.035em; }

h1 { font-size: clamp(3rem, 7.5vw, 6.9rem); font-weight: 600; }
h2 { font-size: clamp(2.2rem, 5vw, 4.5rem); font-weight: 600; }
h3 { font-size: 1.45rem; }

.shell { width: var(--shell); margin-inline: auto; }
.narrow { max-width: 880px; }
.section { padding-block: clamp(76px, 10vw, 140px); }

.skip-link {
    position: fixed;
    left: 16px;
    top: -100px;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--ink);
    color: white;
}
.skip-link:focus { top: 16px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(23, 23, 19, .12);
    background: rgba(244, 241, 232, .92);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    rotate: 45deg;
}
.brand-mark i { display: block; background: var(--ink); }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { background: var(--yellow); }

.brand-copy { display: flex; flex-direction: column; line-height: 1; letter-spacing: .08em; }
.brand-copy b { font-size: .73rem; }
.brand-copy span { margin-top: 5px; font-size: 1.1rem; font-weight: 900; letter-spacing: .24em; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    padding: 10px 12px;
    border-radius: 999px;
    color: #37362f;
    font-size: .83rem;
    font-weight: 700;
    text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

.menu-toggle { display: none; }

.hero { overflow: hidden; padding-block: clamp(42px, 7vw, 92px) 70px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(36px, 7vw, 92px); }
.hero-copy h1 { max-width: 820px; margin: 22px 0 28px; }
.hero-copy .lead { max-width: 690px; }

.eyebrow, .kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .16em;
}
.eyebrow i { width: 28px; height: 4px; background: var(--red); }
.kicker { color: var(--red); }

.lead { font-size: clamp(1.14rem, 2.2vw, 1.55rem); line-height: 1.48; color: #3f3d36; }
.lead-small { font-size: 1.35rem; font-weight: 700; }
.microcopy { margin: 18px 0 0; color: var(--ink-soft); font-size: .86rem; }

.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 30px; }
.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ink);
    padding: 13px 22px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.button-primary { background: var(--yellow); color: var(--ink); }
.button-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.text-link { font-weight: 900; text-underline-offset: 5px; }
.text-link span { color: var(--red); }
.text-button { padding: 10px 0; border: 0; background: none; font-weight: 800; text-decoration: underline; cursor: pointer; }

.hero-visual { position: relative; margin: 0; }
.hero-visual::before {
    position: absolute;
    inset: 22px -24px -22px 24px;
    z-index: -1;
    content: "";
    background: var(--yellow);
}
.hero-visual img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 61% center; filter: saturate(.86) contrast(1.03); }
.hero-visual figcaption {
    position: absolute;
    left: -22px;
    bottom: 28px;
    display: flex;
    flex-direction: column;
    padding: 15px 20px;
    background: var(--ink);
    color: white;
    box-shadow: 10px 10px 0 var(--red);
}
.hero-visual figcaption span { color: #d5d1c7; font-size: .78rem; }

.metrics-band { border-block: 1px solid var(--line); background: rgba(255, 253, 247, .55); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metrics-grid div { display: flex; flex-direction: column; gap: 4px; padding: 30px 24px; border-right: 1px solid var(--line); }
.metrics-grid div:first-child { border-left: 1px solid var(--line); }
.metrics-grid b { font-family: Georgia, serif; font-size: 2.65rem; line-height: 1; }
.metrics-grid span { color: var(--ink-soft); font-size: .82rem; font-weight: 700; }

.section-heading { display: grid; grid-template-columns: .32fr .68fr; align-items: start; gap: 40px; margin-bottom: 52px; }
.section-heading h2 { max-width: 900px; margin: 0; }
.section-heading.light { color: white; }
.section-heading.light .kicker { color: var(--yellow); }

.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.module-card { min-height: 390px; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--ink); }
.module-card h3 { margin: auto 0 16px; font-family: Georgia, serif; font-size: 2.1rem; }
.module-card p { color: inherit; opacity: .8; }
.module-card a { margin-top: 18px; font-weight: 900; text-decoration: none; }
.module-card a span { margin-left: 5px; }
.module-number { font-size: .78rem; font-weight: 900; letter-spacing: .18em; }
.module-yellow { background: var(--yellow); }
.module-dark { background: var(--ink); color: white; }
.module-paper { background: var(--white); }

.field-section { background: var(--ink); color: white; }
.field-collage { display: grid; grid-template-columns: 1.35fr .65fr; grid-template-rows: repeat(2, minmax(260px, 1fr)); gap: 16px; }
.field-shot { position: relative; overflow: hidden; min-height: 280px; color: white; }
.field-shot-wide { grid-row: 1 / 3; }
.field-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.field-shot:hover img { transform: scale(1.035); }
.field-shot::after { position: absolute; inset: 35% 0 0; content: ""; background: linear-gradient(transparent, rgba(0,0,0,.83)); }
.field-shot span { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2; display: flex; flex-direction: column; }
.field-shot b { color: var(--yellow); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }

.decision-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.decision-list li { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.decision-list li > span { font-size: .75rem; font-weight: 900; color: var(--red); }
.decision-list h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 1.75rem; }
.decision-list p { max-width: 780px; margin: 0; color: var(--ink-soft); }

.author-section { background: var(--paper-2); }
.author-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 110px); align-items: center; }
.author-grid figure { margin: 0; box-shadow: -20px 20px 0 var(--yellow); }
.author-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.author-copy h2 { margin: 16px 0; }
.author-copy p:not(.lead-small) { max-width: 680px; color: var(--ink-soft); }

.book-section { overflow: hidden; background: var(--yellow); }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; min-height: 590px; }
.book-copy { padding-block: 80px; }
.book-copy h2 { margin: 14px 0 22px; }
.book-copy p { max-width: 630px; font-size: 1.08rem; }
.book-visual { align-self: stretch; margin: 0; display: grid; place-items: center; position: relative; }
.book-visual::before { position: absolute; width: 540px; aspect-ratio: 1; border-radius: 50%; content: ""; background: rgba(255,255,255,.35); }
.book-visual img { position: relative; width: min(620px, 100%); max-height: 560px; object-fit: contain; }

.page-hero { padding-block: clamp(78px, 10vw, 150px) clamp(60px, 8vw, 110px); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 22px 0 28px; font-size: clamp(3.2rem, 8vw, 7rem); }
.page-hero .lead { max-width: 820px; }
.test-hero { background: var(--yellow); }
.lab-hero { background: var(--ink); color: white; }
.lab-hero .lead { color: #d6d1c5; }
.gallery-hero { background: var(--paper-2); }

.test-shell { min-height: 680px; padding-block: clamp(60px, 8vw, 110px); }
.test-intro-card { display: grid; grid-template-columns: 220px 1fr; max-width: 900px; margin: 0 auto; border: 1px solid var(--ink); background: var(--white); box-shadow: var(--shadow); }
.test-intro-card > div { padding: 44px; }
.test-intro-card h2 { margin-bottom: 24px; font-size: 2.7rem; }
.test-intro-card ul { padding-left: 20px; margin: 0 0 28px; }
.test-intro-card .text-button { margin-left: 18px; }
.test-seal { display: grid; place-items: center; padding: 30px; background: var(--ink); color: var(--yellow); font-size: 1.8rem; font-weight: 900; line-height: 1; text-align: center; letter-spacing: .08em; }

.test-panel { max-width: 930px; margin: 0 auto; }
.test-topline { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 14px; font-size: .78rem; font-weight: 900; letter-spacing: .1em; }
.test-progress { height: 8px; margin-bottom: 28px; background: #d9d3c5; }
.test-progress i { display: block; height: 100%; background: var(--red); transition: width .3s ease; }
.question-card { overflow: hidden; border: 1px solid var(--ink); background: var(--white); box-shadow: var(--shadow); }
.question-image { width: 100%; max-height: 350px; object-fit: cover; }
.question-content { padding: clamp(26px, 5vw, 50px); }
.question-kicker { color: var(--red); font-size: .72rem; font-weight: 900; letter-spacing: .16em; }
.question-scenario { margin: 12px 0 26px; font-family: Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.18; }
.question-statement { margin-bottom: 24px; color: var(--ink-soft); font-size: 1.04rem; }
.answer-title { margin-bottom: 12px; font-size: .82rem; font-weight: 900; }
.answer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.answer-option { position: relative; min-height: 126px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid var(--line); background: var(--paper); text-align: left; cursor: pointer; }
.answer-option:hover { border-color: var(--ink); }
.answer-option.is-selected { border: 2px solid var(--ink); padding: 15px; background: var(--yellow); box-shadow: 5px 5px 0 var(--ink); }
.answer-option b { font-family: Georgia, serif; font-size: 1.6rem; }
.answer-option span { font-size: .78rem; line-height: 1.3; font-weight: 700; }
.test-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.test-nav button { min-width: 120px; padding: 12px 16px; border: 1px solid var(--ink); background: transparent; font-weight: 900; cursor: pointer; }
.test-nav button:last-child { background: var(--ink); color: white; }
.test-nav button:disabled { opacity: .35; cursor: not-allowed; }
.keyboard-hint { color: var(--ink-soft); font-size: .75rem; }

.result-wrap { max-width: 1040px; margin: 0 auto; }
.result-summary { display: grid; grid-template-columns: 240px 1fr; border: 1px solid var(--ink); background: var(--ink); color: white; }
.result-score { display: grid; place-items: center; padding: 30px; background: var(--yellow); color: var(--ink); }
.result-score b { font-family: Georgia, serif; font-size: 5rem; line-height: 1; }
.result-score span { font-size: .72rem; font-weight: 900; letter-spacing: .14em; }
.result-profile { padding: 38px; }
.result-profile .kicker { color: var(--yellow); }
.result-profile h2 { margin: 14px 0 16px; font-size: 2.9rem; }
.result-profile p { color: #d2cec4; }
.result-meta { display: flex; gap: 26px; margin-top: 22px; font-size: .8rem; }
.result-meta b { color: var(--yellow); }
.score-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
.score-card { padding: 24px; border: 1px solid var(--line); background: var(--white); }
.score-card-top { display: flex; justify-content: space-between; gap: 20px; }
.score-card-top b:last-child { font-family: Georgia, serif; font-size: 1.8rem; }
.score-bar { height: 7px; margin: 14px 0 18px; background: var(--paper-2); }
.score-bar i { display: block; height: 100%; background: var(--red); }
.score-card p { margin-bottom: 12px; color: var(--ink-soft); font-size: .88rem; }
.score-brake { padding-top: 12px; border-top: 1px solid var(--line); font-size: .82rem; }
.score-brake span { display: block; margin-bottom: 4px; color: var(--red); font-weight: 900; letter-spacing: .1em; }
.result-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.save-state { margin-top: 12px; color: var(--ink-soft); font-size: .78rem; }

.lab-list { display: grid; gap: clamp(42px, 8vw, 90px); }
.lab-card { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); background: var(--white); box-shadow: var(--shadow); }
.lab-card:nth-child(even) .lab-photo { order: 2; }
.lab-photo { position: relative; min-height: 520px; overflow: hidden; background: #ddd; }
.lab-photo img { width: 100%; height: 100%; object-fit: cover; }
.lab-number { position: absolute; left: 18px; top: 18px; z-index: 2; display: grid; width: 52px; aspect-ratio: 1; place-items: center; background: var(--yellow); font-weight: 900; }
.lab-copy { padding: clamp(28px, 5vw, 56px); }
.lab-copy h2 { margin: 14px 0 18px; font-size: clamp(2rem, 4vw, 3.3rem); }
.lab-copy > p { color: var(--ink-soft); }
.lab-options { display: grid; gap: 9px; margin-top: 28px; }
.lab-options button { padding: 14px 16px; border: 1px solid var(--line); background: var(--paper); text-align: left; font-weight: 800; cursor: pointer; }
.lab-options button:hover { border-color: var(--ink); }
.lab-options button.is-correct { background: #dceadf; border-color: var(--green); }
.lab-options button.is-wrong { background: #f2d7d2; border-color: var(--red); }
.lab-options button:disabled { cursor: default; }
.lab-feedback { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.lab-feedback > strong { display: block; margin-bottom: 8px; font-size: 1.1rem; }
.lab-feedback > p { color: var(--ink-soft); }
.brake-box { padding: 16px; border-left: 5px solid var(--yellow-deep); background: var(--paper); font-size: .88rem; }
.brake-box span { display: block; margin-bottom: 5px; color: var(--red); font-weight: 900; letter-spacing: .1em; }

.gallery-section { padding-top: 54px; }
.gallery-tools { position: sticky; top: 84px; z-index: 20; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; padding: 18px 0; background: var(--paper); }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-row button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: .8rem; font-weight: 800; cursor: pointer; }
.filter-row button[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); }
.gallery-search { display: grid; gap: 4px; min-width: 240px; }
.gallery-search span { font-size: .68rem; font-weight: 900; letter-spacing: .12em; }
.gallery-search input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 0; background: var(--white); }
.gallery-count { color: var(--ink-soft); font-size: .82rem; }
.gallery-grid { columns: 4 240px; column-gap: 16px; }
.gallery-item { break-inside: avoid; margin: 0 0 22px; border: 1px solid var(--line); background: var(--white); }
.gallery-item[hidden] { display: none; }
.gallery-item button { width: 100%; padding: 0; border: 0; background: #ddd; cursor: zoom-in; }
.gallery-item img { width: 100%; height: auto; max-height: 470px; object-fit: cover; transition: opacity .2s ease; }
.gallery-item button:hover img { opacity: .82; }
.gallery-item figcaption { display: flex; flex-direction: column; gap: 4px; padding: 14px; }
.gallery-item figcaption b { line-height: 1.25; }
.gallery-item figcaption span { color: var(--ink-soft); font-size: .76rem; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 40px; background: rgba(10,10,8,.94); color: white; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1200px, 90vw); max-height: 80vh; object-fit: contain; }
.lightbox > div { display: flex; flex-direction: column; width: min(1200px, 90vw); margin-top: 12px; }
.lightbox > div span { color: #c9c5ba; font-size: .82rem; }
.lightbox-close { position: fixed; right: 22px; top: 16px; border: 0; background: none; color: white; font-size: 2.5rem; cursor: pointer; }

.about-hero { padding-top: clamp(70px, 10vw, 130px); }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(40px, 8vw, 100px); }
.about-copy h1 { margin: 22px 0 28px; }
.about-copy > p:not(.lead) { max-width: 700px; color: var(--ink-soft); }
.about-photo { margin: 0; box-shadow: 22px 22px 0 var(--yellow); }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink); padding-block: 1px; }
.about-values article { padding: 32px; background: var(--paper); }
.about-values article > span { color: var(--red); font-weight: 900; }
.about-values h2 { margin: 55px 0 14px; font-size: 2rem; }
.about-values p { color: var(--ink-soft); }

.not-found { min-height: 70vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 80px; }
.error-code { color: var(--red); font-size: 1rem; font-weight: 900; letter-spacing: .2em; }
.not-found h1 { max-width: 900px; margin: 18px 0; }

.site-footer { padding-top: 70px; background: var(--ink); color: white; }
.footer-grid { display: grid; grid-template-columns: minmax(250px, 1.35fr) minmax(145px, .65fr) minmax(190px, .9fr) minmax(250px, 1.05fr); gap: clamp(30px, 4vw, 58px); padding-bottom: 50px; }
.brand-footer .brand-mark i { background: white; }
.brand-footer .brand-mark i:nth-child(2), .brand-footer .brand-mark i:nth-child(3) { background: var(--yellow); }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.footer-grid strong { margin-bottom: 6px; color: white; font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; }
.footer-grid p { max-width: 480px; color: #aaa69c; }
.footer-grid a { color: #d8d4ca; text-decoration: none; overflow-wrap: anywhere; }
.footer-grid a:hover { color: white; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.footer-grid span { color: #aaa69c; font-size: .86rem; }
.footer-intro { padding-right: 10px; }
.footer-newsletter-link { color: #f1eee5 !important; font-weight: 800; }
.footer-company-name { color: white !important; font-weight: 850; line-height: 1.4; }
.footer-contact address { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin: 0; font-style: normal; }
.footer-company-data { display: grid; gap: 5px; width: 100%; margin: 9px 0 1px; }
.footer-company-data > div { display: grid; grid-template-columns: minmax(88px, auto) minmax(0, 1fr); gap: 9px; align-items: baseline; }
.footer-company-data dt { color: #8f8b82; font-size: .72rem; }
.footer-company-data dd { margin: 0; color: #aaa69c; font-size: .79rem; overflow-wrap: anywhere; }
.footer-contact-link { margin-top: 2px; color: var(--yellow) !important; font-weight: 850; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-block: 22px; border-top: 1px solid #393832; color: #8f8b82; font-size: .75rem; }
.footer-bottom span:last-child { max-width: 720px; text-align: right; }

.reveal { opacity: 1; transform: none; transition: opacity .65s ease, transform .65s ease; }
.reveal-enabled .reveal { opacity: 0; transform: translateY(18px); }
.reveal-enabled .reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }

@media (max-width: 980px) {
    .diagnostic-grid, .diagnostic-fix-grid { grid-template-columns: 1fr; }
    .diagnostic-runtime dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    :root { --shell: min(100% - 32px, 760px); }
    .menu-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 10px; border: 0; background: transparent; font-weight: 800; cursor: pointer; }
    .menu-toggle i { width: 16px; height: 2px; background: var(--ink); }
    .main-nav { position: fixed; left: 16px; right: 16px; top: 76px; display: none; flex-direction: column; align-items: stretch; padding: 14px; background: var(--ink); box-shadow: var(--shadow); }
    .main-nav.is-open { display: flex; }
    .main-nav a { color: white; }
    .main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--yellow); color: var(--ink); }
    .hero-grid, .author-grid, .about-grid { grid-template-columns: 1fr; }
    .hero-copy { padding-top: 26px; }
    .hero-visual { max-width: 620px; margin-inline: auto; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .module-grid { grid-template-columns: 1fr; }
    .module-card { min-height: 300px; }
    .book-grid { grid-template-columns: 1fr; gap: 0; }
    .book-visual { min-height: 440px; }
    .lab-card { grid-template-columns: 1fr; }
    .lab-card:nth-child(even) .lab-photo { order: 0; }
    .lab-photo { min-height: 440px; }
    .gallery-tools { position: static; align-items: stretch; flex-direction: column; }
    .gallery-search { width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .footer-bottom span:last-child { max-width: 560px; }
}

@media (max-width: 680px) {
    .test-storage-banner { align-items: flex-start; margin-top: 12px; padding: 15px; }
    .diagnostic-card { padding: 20px; box-shadow: 6px 6px 0 var(--paper-2); }
    .diagnostic-card-head { grid-template-columns: auto minmax(0, 1fr); }
    .diagnostic-card-head .diagnostic-badge { grid-column: 1 / -1; justify-self: start; }
    .diagnostic-card dl > div { align-items: start; grid-template-columns: 1fr; gap: 5px; }
    .diagnostic-card dd { text-align: left; }
    .diagnostic-runtime dl { grid-template-columns: 1fr; }
    .diagnostic-actions { align-items: stretch; flex-direction: column; }
    .diagnostic-actions .button { width: 100%; }
    :root { --shell: calc(100% - 24px); --radius: 14px; }
    h1 { font-size: clamp(2.75rem, 15vw, 4.4rem); }
    h2 { font-size: clamp(2rem, 11vw, 3.3rem); }
    .header-inner { min-height: 72px; }
    .brand-mark { width: 31px; height: 31px; }
    .brand-copy b { font-size: .59rem; }
    .brand-copy span { font-size: .88rem; }
    .menu-toggle span { display: none; }
    .main-nav { top: 66px; }
    .hero { padding-top: 28px; }
    .hero-visual figcaption { left: 10px; bottom: 12px; }
    .metrics-grid { grid-template-columns: 1fr 1fr; }
    .metrics-grid div { padding: 20px 14px; border-bottom: 1px solid var(--line); }
    .metrics-grid b { font-size: 2rem; }
    .section-heading { grid-template-columns: 1fr; gap: 16px; }
    .field-collage { grid-template-columns: 1fr; grid-template-rows: auto; }
    .field-shot-wide { grid-row: auto; }
    .field-shot { min-height: 320px; }
    .decision-list li { grid-template-columns: 44px 1fr; }
    .test-intro-card { grid-template-columns: 1fr; }
    .test-seal { min-height: 140px; }
    .test-intro-card > div { padding: 26px; }
    .test-intro-card .text-button { display: block; margin: 14px 0 0; }
    .answer-grid { grid-template-columns: 1fr 1fr; }
    .answer-option { min-height: 110px; }
    .keyboard-hint { display: none; }
    .result-summary { grid-template-columns: 1fr; }
    .result-score { min-height: 190px; }
    .result-profile { padding: 26px; }
    .score-grid { grid-template-columns: 1fr; }
    .lab-photo { min-height: 360px; }
    .lab-copy { padding: 24px; }
    .gallery-grid { columns: 2 140px; column-gap: 10px; }
    .gallery-item { margin-bottom: 10px; }
    .gallery-item figcaption { padding: 10px; }
    .lightbox { padding: 18px; }
    .about-values { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > div:first-child { grid-column: auto; }
    .footer-bottom { flex-direction: column; }
    .footer-bottom span:last-child { max-width: none; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}


/* ========================================================================== 
   V4 — tartalmi labor, esettár, mechanizmustérkép és teszteredmények
   ========================================================================== */

[hidden] { display: none !important; }
body { overflow-x: hidden; }
:target { scroll-margin-top: 112px; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--yellow-deep);
    outline-offset: 4px;
}

.home-hero { min-height: calc(100vh - 84px); display: grid; align-items: center; }
.metrics-grid-five { grid-template-columns: repeat(5, 1fr); }
.metrics-grid-five div:last-child { border-right: 1px solid var(--line); }
.module-grid-four { grid-template-columns: repeat(4, 1fr); }
.module-grid-four .module-card { min-height: 420px; }
.module-red { background: var(--red); color: white; }
.module-red a { color: white; }

.checkout-feature { background: var(--paper-2); border-block: 1px solid var(--line); }
.checkout-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(42px, 8vw, 110px); }
.checkout-photo { position: relative; margin: 0; box-shadow: -24px 24px 0 var(--red); }
.checkout-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.checkout-photo > span { position: absolute; left: 18px; bottom: 18px; padding: 8px 11px; background: var(--ink); color: white; font-size: .68rem; font-weight: 900; letter-spacing: .14em; }
.checkout-copy h2 { margin: 16px 0 20px; }
.checkout-copy > p:not(.lead-small) { color: var(--ink-soft); }
.checkout-copy .brake-box { margin: 28px 0; background: var(--white); }

.case-grid { display: grid; gap: 18px; }
.case-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--ink); background: var(--white); box-shadow: 0 12px 30px rgba(27, 24, 17, .07); transition: transform .2s ease, box-shadow .2s ease; }
.case-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(27, 24, 17, .13); }
.case-card[hidden] { display: none; }
.case-card-image { position: relative; display: block; overflow: hidden; border-bottom: 1px solid var(--ink); background: #d9d4c8; }
.case-card-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.case-card:hover .case-card-image img { transform: scale(1.025); filter: contrast(1.03); }
.photo-count { position: absolute; right: 12px; bottom: 12px; padding: 6px 9px; background: var(--ink); color: white; font-size: .69rem; font-weight: 900; }
.case-card-copy { flex: 1; display: flex; flex-direction: column; padding: 24px; }
.case-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 15px; color: var(--ink-soft); font-size: .72rem; font-weight: 800; }
.mechanism-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 9px; border: 1px solid var(--ink); background: var(--yellow); color: var(--ink); font-size: .69rem; font-weight: 900; line-height: 1.15; text-decoration: none; }
.case-card h3 { margin-bottom: 13px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.08; }
.case-card h3 a { text-decoration: none; }
.case-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.case-card-copy > p { margin-bottom: 22px; color: var(--ink-soft); font-size: .91rem; }
.card-link { margin-top: auto; color: var(--ink); font-size: .82rem; font-weight: 900; text-decoration: none; }
.card-link span { color: var(--red); }
.card-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.center-action { display: flex; justify-content: center; margin-top: 46px; }

.mechanism-band { background: var(--ink); color: white; }
.mechanism-link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 36px; background: #45443d; border: 1px solid #45443d; }
.mechanism-link-grid > a { min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; padding: 25px; background: var(--ink); color: white; text-decoration: none; transition: background .18s ease, color .18s ease; }
.mechanism-link-grid > a:hover { background: var(--yellow); color: var(--ink); }
.mechanism-link-grid span { font-family: Georgia, 'Times New Roman', serif; font-size: 1.55rem; line-height: 1.05; }
.mechanism-link-grid small { color: #bbb7ad; font-size: .78rem; line-height: 1.45; }
.mechanism-link-grid > a:hover small { color: var(--ink-soft); }

.method-teaser { border-bottom: 1px solid var(--line); }
.method-mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 35px; background: var(--ink); border: 1px solid var(--ink); }
.method-mini-grid article { min-height: 245px; padding: 25px; background: var(--paper); }
.method-mini-grid b { color: var(--red); font-size: .76rem; letter-spacing: .16em; }
.method-mini-grid h3 { margin: 65px 0 12px; font-family: Georgia, 'Times New Roman', serif; font-size: 1.65rem; }
.method-mini-grid p { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.footer-book-link { color: var(--yellow) !important; font-weight: 900; }

.breadcrumbs { padding-block: 24px 8px; }
.breadcrumbs ol { width: var(--shell); margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; list-style: none; color: var(--ink-soft); font-size: .76rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 7px; }
.breadcrumbs li:not(:last-child)::after { content: '›'; color: var(--red); }
.breadcrumbs a { text-underline-offset: 4px; }

/* Teszt */
.test-context { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: -28px; border: 1px solid var(--ink); background: var(--white); box-shadow: var(--shadow); }
.test-context div { min-height: 105px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 20px 28px; border-right: 1px solid var(--line); }
.test-context div:last-child { border-right: 0; }
.test-context b { font-family: Georgia, 'Times New Roman', serif; font-size: 1.2rem; }
.test-context span { color: var(--ink-soft); font-size: .8rem; }
.test-start, .test-app { width: 100%; }
.test-disclaimer { margin: 26px 0 0; color: var(--ink-soft); font-size: .76rem; }
.test-disclaimer a { font-weight: 800; text-underline-offset: 4px; }
.test-method-note { padding-top: 0; }
.info-panel { padding: clamp(30px, 6vw, 70px); border: 1px solid var(--ink); background: var(--paper-2); box-shadow: 14px 14px 0 var(--yellow); }
.info-panel h2 { max-width: 900px; margin: 14px 0 20px; font-size: clamp(2rem, 4.4vw, 4rem); }
.info-panel p { max-width: 850px; color: var(--ink-soft); }
.top-blindspots { margin-top: 34px; }
.top-blindspots > .kicker { margin-bottom: 16px; }
.top-blindspot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.top-blindspot-grid article { min-height: 285px; display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--ink); background: var(--yellow); }
.top-blindspot-grid article > span { font-size: .72rem; font-weight: 900; letter-spacing: .16em; }
.top-blindspot-grid h3 { margin: 52px 0 8px; font-family: Georgia, 'Times New Roman', serif; font-size: 1.7rem; }
.top-blindspot-grid article > b { font-family: Georgia, 'Times New Roman', serif; font-size: 2.2rem; }
.top-blindspot-grid p { margin: 14px 0 20px; font-size: .86rem; }
.top-blindspot-grid a { margin-top: auto; font-size: .78rem; font-weight: 900; text-underline-offset: 4px; }
.score-link { display: inline-flex; margin-top: 5px; font-size: .78rem; font-weight: 900; text-underline-offset: 4px; }
.community-panel { margin-top: 34px; padding: clamp(26px, 5vw, 48px); border: 1px solid var(--ink); background: var(--paper-2); }
.community-panel h2 { max-width: 800px; margin: 14px 0 18px; font-size: clamp(2rem, 4vw, 3.5rem); }
.community-panel > p { margin-bottom: 0; color: var(--ink-soft); font-size: .82rem; }
.community-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 28px 0 20px; }
.community-grid article { display: flex; flex-direction: column; gap: 7px; padding: 18px; border: 1px solid var(--line); background: var(--white); }
.community-grid b { line-height: 1.25; }
.community-grid span { color: var(--ink-soft); font-size: .75rem; }
.community-grid strong { margin-top: auto; color: var(--red); font-family: Georgia, 'Times New Roman', serif; font-size: 1.8rem; }
.result-disclaimer { max-width: 850px; margin: 18px 0 0; color: var(--ink-soft); font-size: .76rem; }

/* Tereplabor */
.lab-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr); align-items: end; gap: clamp(40px, 8vw, 110px); }
.lab-hero-note { padding: 26px; border-top: 5px solid var(--yellow); background: #292923; }
.lab-hero-note b { color: var(--yellow); font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; }
.lab-hero-note p { margin: 14px 0; color: #d6d1c5; font-size: .88rem; }
.lab-hero-note a { color: white; font-weight: 900; text-underline-offset: 4px; }
.featured-lab-section { padding-bottom: 90px; }
.lab-progress { position: sticky; top: 84px; z-index: 18; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; padding: 13px 16px; border: 1px solid var(--ink); background: rgba(244, 241, 232, .96); backdrop-filter: blur(12px); }
.lab-progress span { font-size: .78rem; font-weight: 900; letter-spacing: .08em; }
.lab-progress button { padding: 8px 12px; border: 1px solid var(--ink); background: var(--yellow); font-size: .75rem; font-weight: 900; cursor: pointer; }
.lab-quiz-grid { display: grid; gap: 34px; }
.lab-quiz-card { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr); border: 1px solid var(--ink); background: var(--white); box-shadow: var(--shadow); transition: outline-color .25s ease, transform .25s ease; }
.lab-quiz-card:nth-child(even) .lab-quiz-photo { order: 2; }
.lab-quiz-card.is-highlighted { outline: 8px solid var(--yellow); outline-offset: 5px; transform: translateY(-4px); }
.lab-quiz-card.is-solved { border-color: var(--green); }
.lab-quiz-photo { position: relative; min-height: 500px; overflow: hidden; background: #d8d4ca; }
.lab-quiz-photo img { width: 100%; height: 100%; object-fit: cover; }
.lab-quiz-copy { padding: clamp(28px, 5vw, 52px); }
.lab-quiz-copy h2 { margin: 13px 0 18px; font-size: clamp(2rem, 4vw, 3.45rem); }
.quiz-question { color: var(--ink-soft); font-size: 1.04rem; font-weight: 700; }
.lab-quiz-copy .lab-feedback .card-link { display: inline-flex; margin-top: 18px; }
.all-cases-section { background: var(--paper-2); border-top: 1px solid var(--line); }
.case-browser-tools { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.case-search { flex: 1; display: grid; gap: 7px; }
.case-search span { font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.case-search input { width: 100%; min-height: 52px; padding: 12px 15px; border: 1px solid var(--ink); border-radius: 0; background: var(--white); }
.compact-button { min-height: 52px; white-space: nowrap; }
.mechanism-filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.mechanism-filter-row button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .75rem; font-weight: 800; cursor: pointer; }
.mechanism-filter-row button:hover { border-color: var(--ink); }
.mechanism-filter-row button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: white; }
.case-result-count { margin: 16px 0 24px; color: var(--ink-soft); font-size: .8rem; }
.empty-state { padding: 45px; border: 1px dashed var(--line); background: var(--white); text-align: center; }
.empty-state h3 { margin-bottom: 8px; font-family: Georgia, 'Times New Roman', serif; font-size: 2rem; }
.empty-state p { margin: 0; color: var(--ink-soft); }

/* Egyedi esetelemzés */
.case-detail { padding-top: 20px; }
.case-detail-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); align-items: start; gap: clamp(42px, 7vw, 90px); padding-block: 44px 95px; }
.case-detail-head { position: sticky; top: 118px; }
.case-detail-head h1 { margin: 20px 0 26px; font-size: clamp(3.2rem, 6.5vw, 6.4rem); }
.case-meta-large { margin-bottom: 0; }
.confidence { display: inline-flex; align-items: center; padding-left: 12px; border-left: 1px solid var(--line); }
.confidence-magas { color: var(--green); }
.confidence-közepes, .confidence-kozepes { color: #8a6200; }
.confidence-alacsony { color: var(--red); }
.case-photo-stack { display: grid; gap: 20px; }
.case-photo-stack figure { margin: 0; display: grid; justify-items: center; overflow: hidden; border: 1px solid var(--ink); background: var(--paper-2); box-shadow: var(--shadow); }
.case-photo-stack img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(82vh, 1000px); object-fit: contain; }
.case-photo-stack figcaption { box-sizing: border-box; width: 100%; padding: 10px 13px; background: var(--white); color: var(--ink-soft); font-size: .72rem; }
.case-analysis-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: clamp(40px, 7vw, 90px); padding-bottom: 120px; }
.case-toc { position: sticky; top: 112px; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); background: var(--paper-2); }
.case-toc strong { margin-bottom: 12px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.case-toc a { padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .78rem; text-decoration: none; }
.case-toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.analysis-article { min-width: 0; display: grid; gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.analysis-block { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 26px; padding: clamp(28px, 5vw, 58px); background: var(--white); }
.analysis-number { color: var(--red); font-size: .76rem; font-weight: 900; letter-spacing: .18em; }
.analysis-block h2 { margin: 12px 0 18px; font-size: clamp(2.1rem, 4vw, 3.7rem); }
.analysis-block p { max-width: 790px; margin: 0; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.72; }
.mechanism-block { background: var(--yellow); }
.mechanism-block p { color: #323129; }
.alternative-block { background: var(--paper-2); }
.brake-detail-block { background: var(--ink); color: white; }
.brake-detail-block .kicker { color: var(--yellow); }
.brake-detail-block blockquote { max-width: 800px; margin: 18px 0 0; padding: 0; border: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.7rem, 3.5vw, 3rem); line-height: 1.25; }
.marketer-block { background: var(--white); }
.ethics-block { background: #efe1dc; }
.secondary-mechanisms { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 25px; font-size: .78rem; }
.secondary-mechanisms a { padding: 6px 9px; border: 1px solid var(--ink); background: rgba(255,255,255,.55); font-weight: 900; text-decoration: none; }
.case-sources { padding: clamp(32px, 5vw, 58px); background: var(--white); }
.case-sources h2 { margin: 12px 0 24px; font-size: clamp(2rem, 4vw, 3.3rem); }
.case-sources ol { margin: 0; padding-left: 22px; }
.case-sources li { margin-bottom: 16px; padding-left: 8px; }
.case-sources li a { display: block; font-weight: 800; line-height: 1.45; text-underline-offset: 4px; }
.case-sources li span { display: block; margin-top: 3px; color: var(--ink-soft); font-size: .75rem; }
.source-note { max-width: 900px; margin: 28px 0 0; padding: 16px 18px; border-left: 5px solid var(--red); background: var(--paper-2); color: var(--ink-soft); font-size: .82rem; }
.related-section { background: var(--paper-2); border-block: 1px solid var(--line); }

/* Mechanizmusok */
.mechanisms-hero { background: var(--yellow); }
.mechanism-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mechanism-card { min-height: 400px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--ink); background: var(--white); }
.mechanism-count { align-self: flex-start; padding: 6px 9px; background: var(--ink); color: white; font-size: .69rem; font-weight: 900; }
.mechanism-card h2 { margin: 52px 0 16px; font-size: clamp(2rem, 3.6vw, 3.2rem); }
.mechanism-card h2 a { text-decoration: none; }
.mechanism-card h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.mechanism-question { color: var(--red) !important; font-weight: 900; }
.mechanism-card > p { color: var(--ink-soft); font-size: .89rem; }
.mechanism-card .card-link { margin-top: auto; padding-top: 15px; }
.mechanism-method-strip { background: var(--ink); color: white; }
.method-strip-grid { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: clamp(40px, 8vw, 100px); }
.method-strip-grid h2 { margin: 14px 0 0; }
.method-strip-grid ol { margin: 0; padding: 0; list-style: none; counter-reset: strip; }
.method-strip-grid li { counter-increment: strip; display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid #45443d; }
.method-strip-grid li::before { content: '0' counter(strip); color: var(--yellow); font-size: .72rem; font-weight: 900; }
.mechanism-detail { padding-top: 20px; }
.mechanism-detail-hero { padding-block: 65px 75px; }
.mechanism-detail-hero h1 { max-width: 950px; margin: 20px 0 24px; }
.mechanism-big-question { max-width: 900px; margin-bottom: 20px; color: var(--red); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.25; }
.mechanism-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; padding-bottom: 120px; background: var(--ink); border: 1px solid var(--ink); }
.mechanism-detail-grid > div { min-height: 360px; padding: clamp(28px, 5vw, 50px); background: var(--white); }
.mechanism-detail-grid h2 { margin: 13px 0 23px; font-size: clamp(2rem, 4vw, 3.5rem); }
.mechanism-detail-grid p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; }
.mechanism-brake-card { background: var(--yellow) !important; }
.mechanism-brake-card blockquote { margin: 30px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.6rem, 3.3vw, 2.8rem); line-height: 1.28; }
.mechanism-marketing-card { background: var(--paper-2) !important; }
.mechanism-ethics-card { background: #efe1dc !important; }
.signal-list { margin: 0; padding: 0; list-style: none; }
.signal-list li { position: relative; padding: 13px 0 13px 30px; border-top: 1px solid var(--line); }
.signal-list li::before { position: absolute; left: 0; content: '→'; color: var(--red); font-weight: 900; }
.source-section { background: var(--paper); }
.reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.reference-grid-full { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reference-grid article { min-height: 310px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); background: var(--white); }
.reference-grid article > span { color: var(--red); font-size: .74rem; font-weight: 900; letter-spacing: .12em; }
.reference-grid h3 { margin: 42px 0 12px; font-family: Georgia, 'Times New Roman', serif; font-size: 1.5rem; line-height: 1.14; }
.reference-grid p { color: var(--ink-soft); font-size: .82rem; }
.reference-grid a { margin-top: auto; font-size: .78rem; font-weight: 900; text-underline-offset: 4px; }

/* Módszertan, adatkezelés, bemutatkozás */
.method-hero { background: var(--paper-2); }
.method-step-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.method-step-list li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 30px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.method-step-list li > b { color: var(--red); font-size: .75rem; letter-spacing: .17em; }
.method-step-list h3 { margin: 0 0 8px; font-family: Georgia, 'Times New Roman', serif; font-size: 1.8rem; }
.method-step-list p { max-width: 850px; margin: 0; color: var(--ink-soft); }
.evidence-section { background: var(--ink); color: white; }
.evidence-grid { display: grid; grid-template-columns: .42fr .58fr; gap: clamp(40px, 8vw, 110px); }
.evidence-grid h2 { margin: 14px 0 0; }
.evidence-cards { display: grid; gap: 1px; background: #45443d; border: 1px solid #45443d; }
.evidence-cards article { padding: 28px; background: var(--ink); }
.evidence-cards b { color: var(--yellow); font-family: Georgia, 'Times New Roman', serif; font-size: 1.7rem; }
.evidence-cards p { margin: 10px 0 0; color: #cbc7bd; }
.method-copy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.method-copy-grid > div { min-height: 260px; padding: 30px; background: var(--white); }
.method-copy-grid h3 { margin-bottom: 15px; font-family: Georgia, 'Times New Roman', serif; font-size: 1.8rem; }
.method-copy-grid p { color: var(--ink-soft); }
.faq-section details { border-top: 1px solid var(--ink); }
.faq-section details:last-child { border-bottom: 1px solid var(--ink); }
.faq-section summary { position: relative; padding: 22px 55px 22px 0; font-family: Georgia, 'Times New Roman', serif; font-size: 1.45rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { position: absolute; right: 10px; content: '+'; color: var(--red); font-family: Arial, sans-serif; font-size: 1.6rem; }
.faq-section details[open] summary::after { content: '−'; }
.faq-section details p { max-width: 880px; padding: 0 40px 22px 0; color: var(--ink-soft); }
.privacy-hero { background: var(--paper-2); }
.updated { color: var(--ink-soft); font-size: .78rem; }
.legal-content { max-width: 880px; }
.legal-content h2 { margin: 55px 0 14px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--ink-soft); }
.legal-content code { padding: 2px 5px; background: var(--paper-2); color: var(--ink); }
.about-credentials { border-top: 1px solid var(--line); }
.credential-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.credential-grid article { min-height: 245px; padding: 28px; background: var(--white); }
.credential-grid h3 { margin: 45px 0 12px; font-family: Georgia, 'Times New Roman', serif; font-size: 1.7rem; }
.credential-grid p { color: var(--ink-soft); }
.gallery-item figcaption a { margin-top: 7px; color: var(--red); font-size: .73rem; font-weight: 900; text-underline-offset: 4px; }


/* Mentési állapot és védett rendszerdiagnosztika */
.test-storage-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 18px;
    padding: 17px 20px;
    border: 1px solid var(--ink);
    background: var(--white);
    box-shadow: 7px 7px 0 rgba(23, 23, 19, .12);
}
.test-storage-banner > div { display: flex; flex-direction: column; gap: 2px; }
.test-storage-banner b { font-size: .9rem; }
.test-storage-banner span:not(.storage-status-dot) { color: var(--ink-soft); font-size: .78rem; }
.storage-status-dot { width: 13px; height: 13px; flex: 0 0 13px; border-radius: 50%; background: var(--yellow-deep); box-shadow: 0 0 0 5px rgba(229, 175, 0, .16); }
.test-storage-banner.is-ok { border-color: var(--green); }
.test-storage-banner.is-ok .storage-status-dot { background: var(--green); box-shadow: 0 0 0 5px rgba(29, 106, 88, .14); }
.test-storage-banner.is-warning { border-color: var(--red); }
.test-storage-banner.is-warning .storage-status-dot { background: var(--red); box-shadow: 0 0 0 5px rgba(200, 59, 49, .14); }

.diagnostic-hero { background: var(--paper-2); }
.diagnostic-overall {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 34px;
    padding: 20px 22px;
    border: 1px solid var(--ink);
    background: var(--white);
}
.diagnostic-overall > span { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; }
.diagnostic-overall.is-ok > span { background: var(--green); box-shadow: 0 0 0 7px rgba(29, 106, 88, .14); }
.diagnostic-overall.is-error > span { background: var(--red); box-shadow: 0 0 0 7px rgba(200, 59, 49, .14); }
.diagnostic-overall div { display: flex; flex-direction: column; gap: 3px; }
.diagnostic-overall b { font-size: 1rem; }
.diagnostic-overall small { color: var(--ink-soft); }
.diagnostic-section { padding-top: 70px; }
.diagnostic-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 35px; }
.diagnostic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.diagnostic-card { min-width: 0; padding: 25px; border: 1px solid var(--ink); background: var(--white); box-shadow: 10px 10px 0 var(--paper-2); }
.diagnostic-card-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.diagnostic-card-head > span:first-child { color: var(--red); font-size: .74rem; font-weight: 900; letter-spacing: .12em; }
.diagnostic-card-head h2 { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 1.24rem; letter-spacing: -.02em; }
.diagnostic-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 27px; padding: 4px 9px; border-radius: 999px; font-size: .68rem; font-weight: 900; white-space: nowrap; }
.diagnostic-badge.is-ok { background: rgba(29, 106, 88, .12); color: var(--green); }
.diagnostic-badge.is-error { background: rgba(200, 59, 49, .12); color: var(--red); }
.diagnostic-card dl { margin: 18px 0 0; }
.diagnostic-card dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.diagnostic-card dt { color: var(--ink-soft); font-size: .78rem; }
.diagnostic-card dd { margin: 0; text-align: right; font-size: .78rem; font-weight: 700; overflow-wrap: anywhere; }
.diagnostic-card code { font-size: .76rem; }
.diagnostic-path { display: block; margin-top: 17px; padding: 11px 12px; overflow-x: auto; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); white-space: nowrap; }
.diagnostic-error-text { margin: 16px 0 0; color: var(--red); font-size: .82rem; font-weight: 700; }
.diagnostic-message { padding-top: 35px; padding-bottom: 35px; }
.diagnostic-message > * { max-width: 900px; }
.diagnostic-message h2 { margin: 12px 0 22px; font-size: clamp(2rem, 4vw, 3.5rem); }
.diagnostic-message h3 { margin: 25px 0 8px; font-size: 1rem; }
.diagnostic-message ul { margin: 0; padding-left: 22px; }
.diagnostic-message li { margin: 8px 0; }
.diagnostic-message.is-repair { border-top: 1px solid var(--green); }
.diagnostic-message.is-problem { border-top: 1px solid var(--red); }
.diagnostic-fix-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: start; padding-top: 55px; }
.diagnostic-fix-grid .info-panel { box-shadow: 12px 12px 0 var(--yellow); }
.diagnostic-fix-grid .info-panel h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.diagnostic-fix-grid ol { padding-left: 23px; }
.diagnostic-fix-grid li { margin: 10px 0; color: var(--ink-soft); }
.diagnostic-command-card { padding: clamp(28px, 5vw, 48px); border: 1px solid var(--ink); background: var(--ink); color: var(--paper); }
.diagnostic-command-card h2 { margin: 12px 0 18px; font-size: clamp(2rem, 4vw, 3.2rem); }
.diagnostic-command-card p { color: #d4d0c6; }
.diagnostic-command-card pre { margin: 22px 0; padding: 18px; overflow-x: auto; border: 1px solid #45443f; background: #0c0c0a; white-space: pre-wrap; overflow-wrap: anywhere; }
.diagnostic-command-card code { color: #fff; font-size: .78rem; }
.diagnostic-runtime { padding-top: 45px; }
.diagnostic-runtime dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; border: 1px solid var(--ink); background: var(--ink); }
.diagnostic-runtime dl > div { min-height: 115px; padding: 20px; background: var(--white); }
.diagnostic-runtime dt { margin-bottom: 8px; color: var(--ink-soft); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.diagnostic-runtime dd { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 1.18rem; overflow-wrap: anywhere; }

@media (max-width: 1180px) {
    .module-grid-four { grid-template-columns: repeat(2, 1fr); }
    .case-grid-three, .mechanism-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mechanism-link-grid { grid-template-columns: repeat(2, 1fr); }
    .reference-grid-full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .diagnostic-grid, .diagnostic-fix-grid { grid-template-columns: 1fr; }
    .diagnostic-runtime dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-hero { min-height: 0; }
    .metrics-grid-five { grid-template-columns: repeat(3, 1fr); }
    .metrics-grid-five div:nth-child(4) { border-left: 1px solid var(--line); }
    .checkout-grid, .lab-hero-grid, .case-detail-hero, .evidence-grid, .method-strip-grid { grid-template-columns: 1fr; }
    .checkout-photo { max-width: 650px; }
    .method-mini-grid { grid-template-columns: repeat(2, 1fr); }
    .test-context { margin-top: 0; }
    .top-blindspot-grid { grid-template-columns: 1fr; }
    .top-blindspot-grid article { min-height: 230px; }
    .top-blindspot-grid h3 { margin-top: 30px; }
    .community-grid { grid-template-columns: repeat(2, 1fr); }
    .lab-progress { top: 72px; }
    .lab-quiz-card { grid-template-columns: 1fr; }
    .lab-quiz-card:nth-child(even) .lab-quiz-photo { order: 0; }
    .lab-quiz-photo { min-height: 440px; }
    .case-detail-head { position: static; }
    .case-photo-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .case-photo-stack figure:only-child { grid-column: 1 / -1; }
    .case-analysis-layout { grid-template-columns: 1fr; }
    .case-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
    .case-toc strong { width: 100%; }
    .case-toc a { border-top: 0; }
    .mechanism-detail-grid { padding-bottom: 80px; }
    .reference-grid, .reference-grid-full { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
    .test-storage-banner { align-items: flex-start; margin-top: 12px; padding: 15px; }
    .diagnostic-card { padding: 20px; box-shadow: 6px 6px 0 var(--paper-2); }
    .diagnostic-card-head { grid-template-columns: auto minmax(0, 1fr); }
    .diagnostic-card-head .diagnostic-badge { grid-column: 1 / -1; justify-self: start; }
    .diagnostic-card dl > div { align-items: start; grid-template-columns: 1fr; gap: 5px; }
    .diagnostic-card dd { text-align: left; }
    .diagnostic-runtime dl { grid-template-columns: 1fr; }
    .diagnostic-actions { align-items: stretch; flex-direction: column; }
    .diagnostic-actions .button { width: 100%; }
    .metrics-grid-five { grid-template-columns: 1fr 1fr; }
    .metrics-grid-five div:nth-child(odd) { border-left: 1px solid var(--line); }
    .module-grid-four, .case-grid-three, .mechanism-card-grid, .mechanism-link-grid, .method-mini-grid, .reference-grid, .reference-grid-full, .method-copy-grid, .credential-grid { grid-template-columns: 1fr; }
    .module-grid-four .module-card { min-height: 310px; }
    .checkout-photo { box-shadow: -12px 12px 0 var(--red); }
    .case-card-copy { padding: 20px; }
    .mechanism-link-grid > a { min-height: 160px; }
    .method-mini-grid article { min-height: 210px; }
    .test-context { grid-template-columns: 1fr; }
    .test-context div { min-height: 82px; border-right: 0; border-bottom: 1px solid var(--line); }
    .test-context div:last-child { border-bottom: 0; }
    .community-grid { grid-template-columns: 1fr; }
    .result-actions { align-items: stretch; flex-direction: column; }
    .result-actions .button { width: 100%; }
    .lab-progress { top: 66px; }
    .lab-quiz-photo { min-height: 330px; }
    .lab-quiz-copy { padding: 23px; }
    .case-browser-tools { align-items: stretch; flex-direction: column; }
    .compact-button { width: 100%; }
    .case-detail-hero { padding-block: 25px 65px; }
    .case-photo-stack { grid-template-columns: 1fr; }
    .case-photo-stack figure:only-child { grid-column: auto; }
    .case-toc { padding: 15px; }
    .analysis-block { grid-template-columns: 1fr; gap: 12px; padding: 25px 21px; }
    .analysis-number { margin-bottom: 3px; }
    .case-sources { padding: 28px 21px; }
    .mechanism-detail-grid { grid-template-columns: 1fr; padding-bottom: 65px; }
    .mechanism-detail-grid > div { min-height: 290px; }
    .method-step-list li { grid-template-columns: 42px minmax(0, 1fr); gap: 15px; }
    .evidence-cards article { padding: 23px; }
    .gallery-item figcaption a { font-size: .68rem; }
}

@media print {
    .site-header,
    .site-footer,
    .breadcrumbs,
    .test-hero,
    .test-context,
    .test-storage-banner,
    .test-method-note,
    .result-actions,
    .book-section,
    .community-panel,
    .save-state,
    .result-disclaimer { display: none !important; }
    body { background: white; color: black; font-size: 11pt; }
    body::before { display: none; }
    .test-shell { width: 100%; min-height: 0; padding: 0; }
    .result-wrap { max-width: none; }
    .result-summary, .top-blindspot-grid article, .score-card { break-inside: avoid; box-shadow: none; }
    .result-summary { color: black; border: 1px solid #333; background: white; }
    .result-score { background: white; border-right: 1px solid #333; }
    .result-profile p { color: #333; }
    .result-profile .kicker, .result-meta b { color: black; }
    .top-blindspot-grid { grid-template-columns: repeat(3, 1fr); }
    .top-blindspot-grid article { min-height: 0; background: white; }
    .score-grid { grid-template-columns: repeat(2, 1fr); }
    .score-link { display: none; }
}
