/* BH-Res — nieoficjalny koncept Pagehouse. Bez zewnętrznych zasobów. */
:root {
  --navy: #0b1b33;
  --navy-2: #12294a;
  --navy-3: #1b3a66;
  --gold: #c9a24a;
  --gold-soft: #e8d3a0;
  --paper: #faf6ee;
  --paper-2: #f1ead9;
  --ink: #14233b;
  --muted: #4a5b75;
  --line: #ddd3bd;
  --radius: 22px;
  --radius-sm: 14px;
  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.2rem, 6.4vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4.4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
p { margin: 0 0 1em; overflow-wrap: break-word; }
a { color: var(--navy-3); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--gold); color: var(--navy); padding: .7rem 1.1rem; border-radius: 999px; font-weight: 700; z-index: 100; text-decoration: none; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }
.wrap > *, .grid > *, .card { min-width: 0; }

/* Baner nieoficjalności */
.notice {
  background: var(--gold);
  color: var(--navy);
  border-bottom: 4px solid var(--navy);
  padding: .9rem 0;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.5;
}
.notice strong { text-transform: uppercase; letter-spacing: .06em; }
.notice .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; }
.notice a { color: var(--navy); }

/* Nagłówek */
.site-head { background: var(--navy); color: #fff; }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: #fff; text-decoration: none; letter-spacing: .02em; }
.brand span { color: var(--gold); }
.nav { display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin: 0; padding: 0; list-style: none; }
.nav a { display: inline-block; padding: .5rem .95rem; border-radius: 999px; color: #e9eef7; text-decoration: none; font-size: .98rem; }
.nav a:hover { background: var(--navy-3); color: #fff; }

/* Hero z subtelną grafiką CSS (kanały wentylacyjne) */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(201,162,74,.20), transparent 60%),
    radial-gradient(700px 420px at 5% 100%, rgba(27,58,102,.9), transparent 70%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(232,211,160,.07) 46px 48px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(232,211,160,.05) 46px 48px);
  -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 90%);
          mask-image: linear-gradient(100deg, transparent 20%, #000 90%);
}
.hero::after {
  content: "";
  position: absolute; z-index: -1;
  right: -12%; top: 12%;
  width: min(60vw, 560px); aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(201,162,74,.28);
  box-shadow: 0 0 0 36px rgba(201,162,74,.05), 0 0 0 84px rgba(201,162,74,.035);
}
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.hero p.lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); max-width: 40em; color: #dbe4f2; }
.hero h1 em { font-style: normal; color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.btn {
  display: inline-block; padding: .95rem 1.6rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid var(--gold);
  background: var(--gold); color: var(--navy); line-height: 1.2; text-align: center;
}
.btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--navy); }
.btn.ghost { background: transparent; color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.dark:hover { background: var(--navy-3); border-color: var(--navy-3); color: #fff; }
.source-line { margin-top: 2rem; font-size: .92rem; color: #b9c6dc; max-width: 46em; }

/* Sekcje */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.band-paper2 { background: var(--paper-2); }
.band-navy { background: linear-gradient(170deg, var(--navy), var(--navy-2)); color: #fff; position: relative; isolation: isolate; overflow: hidden; }
.band-navy::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(135deg, transparent 0 38px, rgba(201,162,74,.06) 38px 40px);
}
.band-navy a { color: var(--gold-soft); }
.section-head { max-width: 46rem; margin-bottom: 2.4rem; }
.section-head p { color: var(--muted); font-size: 1.15rem; }
.band-navy .section-head p { color: #c8d4e8; }
.kicker { font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8a6a1c; margin-bottom: .6rem; display: block; }
.band-navy .kicker { color: var(--gold); }

.grid { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.five { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.five { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: 0 1px 0 rgba(11,27,51,.04), 0 18px 40px -26px rgba(11,27,51,.35);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .num { display: inline-flex; width: 2.6rem; height: 2.6rem; border-radius: 50%; align-items: center; justify-content: center; background: var(--navy); color: var(--gold); font-family: var(--serif); font-weight: 700; margin-bottom: 1rem; }
.card.tint { background: var(--paper); }
.band-navy .card { background: rgba(255,255,255,.06); border-color: rgba(232,211,160,.25); box-shadow: none; color: #fff; }
.band-navy .card p { color: #d5deee; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.chips li { padding: .55rem 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; }

/* Podgląd briefu (demo, bez wysyłki) */
.demo { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .demo { grid-template-columns: 1.05fr .95fr; align-items: start; } }
.demo-badge { display: inline-block; background: var(--navy); color: var(--gold); padding: .3rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
fieldset { border: 0; margin: 0 0 1.4rem; padding: 0; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: .7rem; font-size: 1.05rem; }
.opts { display: flex; flex-wrap: wrap; gap: .6rem; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt label {
  display: inline-block; padding: .7rem 1.1rem; border-radius: var(--radius-sm);
  border: 2px solid var(--line); background: var(--paper); cursor: pointer; font-weight: 600;
  line-height: 1.35;
}
.opt label:hover { border-color: var(--gold); }
.opt input:checked + label { background: var(--navy); border-color: var(--navy); color: #fff; }
.opt input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 3px; }
.field { border: 2px dashed var(--line); border-radius: var(--radius-sm); padding: .9rem 1.1rem; background: var(--paper); color: var(--muted); }
.field b { display: block; color: var(--ink); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .2rem; }
.brief { background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); }
.brief h3 { color: var(--gold); }
.brief dl { margin: 0; display: grid; gap: .9rem; }
.brief dt { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); }
.brief dd { margin: .15rem 0 0; font-size: 1.05rem; overflow-wrap: break-word; }
.brief .sel { display: none; }
.demo:has(#s1:checked) .sel-s1, .demo:has(#s2:checked) .sel-s2, .demo:has(#s3:checked) .sel-s3,
.demo:has(#o1:checked) .sel-o1, .demo:has(#o2:checked) .sel-o2, .demo:has(#o3:checked) .sel-o3, .demo:has(#o4:checked) .sel-o4, .demo:has(#o5:checked) .sel-o5 { display: inline; }
@supports not selector(:has(*)) { .brief .sel { display: block; margin-bottom: .2rem; } }
code { font-size: .92em; overflow-wrap: anywhere; }
.note { font-size: .95rem; color: var(--muted); border-left: 4px solid var(--gold); padding-left: 1rem; margin-top: 1.2rem; }
.brief .note { color: #c8d4e8; }

/* Propozycja AI */
.status { display: inline-block; border: 2px solid var(--gold); color: var(--gold); border-radius: 999px; padding: .3rem .9rem; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.chat { background: rgba(255,255,255,.07); border: 1px solid rgba(232,211,160,.3); border-radius: var(--radius); padding: 1.4rem; }
.bubble { padding: .85rem 1.1rem; border-radius: 18px; margin: 0 0 .8rem; max-width: 92%; }
.bubble.q { background: var(--paper); color: var(--ink); border-bottom-left-radius: 4px; }
.bubble.a { background: var(--navy-3); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; border: 1px solid rgba(232,211,160,.3); }
.list { padding-left: 1.2rem; margin: 0 0 1em; }
.list li { margin-bottom: .45em; }

/* CTA końcowe */
.cta { text-align: left; }
.cta .btn { margin-top: .5rem; }

/* Stopka */
.site-foot { background: #07111f; color: #aebad0; padding: 2.2rem 0; font-size: .95rem; }
.site-foot a { color: var(--gold-soft); }
.site-foot p { margin: 0 0 .5em; }

/* Porównanie */
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); overflow-wrap: break-word; }
.compare-table th { background: var(--navy); color: #fff; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.compare-table tr:last-child td { border-bottom: 0; }
@media (max-width: 719px) {
  .compare-table, .compare-table thead, .compare-table tbody, .compare-table tr, .compare-table td, .compare-table th { display: block; width: 100%; }
  .compare-table thead { position: absolute; left: -9999px; }
  .compare-table tr { border-bottom: 6px solid var(--paper-2); }
  .compare-table td::before { content: attr(data-label); display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #8a6a1c; font-weight: 700; margin-bottom: .2rem; }
}
.pairs { display: grid; gap: 1.6rem; }
@media (min-width: 760px) { .pairs.p2 { grid-template-columns: 1fr 1fr; } }
figure { margin: 0; min-width: 0; }
.shot {
  border: 2px dashed var(--gold); border-radius: var(--radius-sm); min-height: 12rem;
  background: repeating-linear-gradient(135deg, var(--paper-2) 0 14px, var(--paper) 14px 28px);
  padding: .5rem; overflow: hidden;
}
.shot img { width: 100%; border-radius: 10px; background: #fff; }
.shot.mob { max-width: 320px; margin: 0 auto; }
figcaption { font-size: .92rem; color: var(--muted); margin-top: .6rem; }
.tag { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--navy); color: var(--gold); margin-bottom: .5rem; }
.tag.new { background: var(--gold); color: var(--navy); }
.back { margin: 0 0 1rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .skip, .nav { display: none; } }

/* Czytelne linki na ciemnym tle */
.hero a:not(.btn){color:#e8d3a0}

.band-navy .note{color:#d8e2f0}
.btn.dark.outline{background:transparent;color:var(--navy)}
.btn.dark.outline:hover{background:var(--navy);color:#fff}
