/* Forteca Nieruchomości – arkusz stylów
   Kolory marki: beż #FEF4E6, granat #1C2833, złoto #C8A96A, szary #D3D5DA */

/* Czcionki na własnym serwerze (Fraunces, Manrope – licencja SIL Open Font License) */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #1C2833;
  --navy-2: #26374A;
  --navy-3: #33475C;
  --cream: #FEF4E6;
  --cream-2: #F7E9D3;
  --paper: #FFFCF7;
  --gold: #C8A96A;
  --gold-soft: #E3CFA4;
  --gold-ink: #7E6326;
  --grey: #D3D5DA;
  --ink: #1C2833;
  --muted: #4E5A66;
  --line: #E6D9C3;
  --error: #A8322A;
  --ok: #2F6B4A;

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-4: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  --step-5: clamp(2.25rem, 1.5rem + 3.2vw, 3.75rem);

  --r-sm: 6px;
  --r-md: 12px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --shadow: 0 1px 2px rgba(28, 40, 51, .06), 0 8px 24px rgba(28, 40, 51, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
svg { width: 1.25em; height: 1.25em; flex: none; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--step-5); font-variation-settings: "opsz" 144; }
h2 { font-size: var(--step-4); font-variation-settings: "opsz" 96; }
h3 { font-size: var(--step-2); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.band-navy :focus-visible { outline-color: var(--gold-soft); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: var(--cream); padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--r-sm); border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--navy-3); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: .9375rem; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(254, 244, 230, .94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 16px rgba(28, 40, 51, .06); }
.header-row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 38px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.01em; }
.brand-sub { font-size: .66rem; letter-spacing: .32em; margin-top: 3px; color: var(--muted); }
.brand-light { color: var(--cream); }
.brand-light .brand-sub { color: var(--gold-soft); }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a:not(.btn) { padding: 10px 12px; text-decoration: none; font-weight: 600; font-size: .9375rem; border-radius: var(--r-sm); }
.main-nav a:not(.btn):hover { background: var(--cream-2); }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-tel { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; padding: 10px 6px; white-space: nowrap; }
.header-tel svg { color: var(--gold-ink); }
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; border-radius: var(--r-sm); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 26px; height: 26px; }
.menu-toggle .ic-close { display: none; }
.menu-toggle[aria-expanded="true"] .ic-open { display: none; }
.menu-toggle[aria-expanded="true"] .ic-close { display: block; }

@media (max-width: 1080px) {
  .header-tel span { display: none; }
  .main-nav a:not(.btn) { padding: 10px 8px; }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .header-tel span { display: inline; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; gap: 0; margin: 0;
    padding: 8px var(--gutter) 24px; background: var(--cream);
    border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(28, 40, 51, .12);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
  .main-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.0625rem; }
  .nav-cta-mobile { display: flex; margin-top: 16px; }
  .header-actions { margin-left: auto; gap: 4px; }
}
@media (max-width: 420px) {
  .header-tel span { display: none; }
  .brand-name { font-size: 1.4rem; }
}

/* ---------- Łuk (motyw bramy z logo) ---------- */
.arch { overflow: hidden; border-radius: 999px 999px var(--r-md) var(--r-md); background: var(--cream-2); }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* Blanki: górna krawędź granatowych sekcji */
.battlement { position: relative; }
.battlement::before {
  content: ""; position: absolute; left: 0; right: 0; top: -11px; height: 12px;
  background:
    linear-gradient(var(--navy), var(--navy)) bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--navy) 0 28px, transparent 28px 44px) top / 100% 11px no-repeat;
  pointer-events: none;
}

/* ---------- Sekcje ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-alt { background: var(--paper); }
.band-navy { background: var(--navy); color: var(--cream); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { font-size: var(--step-1); color: var(--muted); }
.section-head-light p { color: #D9DEE4; }
.lead { font-size: var(--step-1); }
.section-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 40px; }
.section-cta p { margin: 0; font-size: var(--step-1); font-weight: 600; }
.fineprint { max-width: 820px; margin-top: 28px; font-size: var(--step--1); color: var(--muted); }
.opt { font-weight: 400; color: var(--muted); }
.band-navy .opt { color: #B9C2CC; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(32px, 6vw, 80px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-place { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gold-ink); margin-bottom: 18px; }
.hero h1 { max-width: none; }
.hero h1 .hero-place { display: flex; width: fit-content; font-family: var(--f-body); font-size: 1rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; font-variation-settings: normal; }
.h1-main { display: block; max-width: 13ch; }
.hero .lead { max-width: 54ch; color: var(--muted); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-note { font-size: var(--step--1); color: var(--muted); max-width: 46ch; }
.hero-media { margin: 0; position: relative; }
.arch-hero { aspect-ratio: 4 / 4.6; box-shadow: var(--shadow); }
.arch-hero::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(200, 169, 106, .35); pointer-events: none; }
.arch-hero { position: relative; }
.hero-badge {
  position: absolute; left: -24px; bottom: 32px; max-width: 280px;
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--navy); color: var(--cream); padding: 16px 18px; border-radius: var(--r-md);
  font-size: .9375rem; line-height: 1.4; box-shadow: var(--shadow);
}
.hero-badge svg { color: var(--gold); width: 24px; height: 24px; margin-top: 1px; }
.hero-badge strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; color: var(--gold-soft); margin-bottom: 2px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .hero-media { max-width: 520px; width: 100%; margin-inline: auto; }
  .arch-hero { aspect-ratio: 4 / 3.8; }
  .hero-badge { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .hero-actions .btn { flex: 1 1 260px; }
}

/* ---------- Pasek zaufania ---------- */
.trust { padding-block: 28px; }
.trust-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 32px; }
.trust-list li { display: flex; align-items: center; gap: 12px; font-size: .9375rem; line-height: 1.35; color: #DCE1E6; }
.trust-list strong { color: var(--cream); font-weight: 700; }
.trust-list svg { width: 28px; height: 28px; color: var(--gold); }
@media (max-width: 900px) { .trust-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .trust-list { grid-template-columns: 1fr; } }

/* ---------- Usługi ---------- */
.services { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.service-main { display: grid; grid-template-columns: 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.service-main-img { aspect-ratio: 16 / 8; overflow: hidden; }
.service-main-img img { width: 100%; height: 100%; object-fit: cover; }
.service-main-body { padding: clamp(24px, 3vw, 36px); }
.service-main-body h3 { font-size: var(--step-3); }
.service-main-body .btn { margin-top: 24px; }
.ticks { display: grid; gap: 10px; margin-top: 18px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { color: var(--gold-ink); margin-top: 2px; }
.band-navy .ticks svg { color: var(--gold); }
.service-extra { display: grid; gap: 16px; align-content: start; }
.service-card { padding: 24px; border-radius: var(--r-md); border: 1px solid var(--line); background: transparent; }
.service-card h3 { font-size: var(--step-1); font-family: var(--f-body); font-weight: 700; letter-spacing: 0; margin-bottom: .35em; }
.service-card p { color: var(--muted); font-size: .9375rem; }
.service-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.more-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 700; color: var(--navy); text-underline-offset: 3px; }
.more-link svg { width: 18px; height: 18px; color: var(--gold-ink); transition: transform .18s ease; }
.more-link:hover svg { transform: translateX(3px); }
.service-card .more-link { font-size: .9375rem; margin-top: 4px; }
.service-ic { width: 32px; height: 32px; color: var(--gold-ink); margin-bottom: 12px; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }

/* ---------- Kroki ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); position: relative; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps li:nth-child(4n + 1) { border-left: 0; padding-left: 0; }
.steps li::before { content: counter(step); display: block; font-family: var(--f-display); font-size: 2.25rem; line-height: 1; color: var(--gold); margin-bottom: 14px; }
.steps h3 { font-family: var(--f-body); font-weight: 700; font-size: var(--step-1); letter-spacing: 0; margin-bottom: .35em; }
.steps p { color: var(--muted); font-size: .9375rem; }
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(4n + 1) { border-left: 1px solid var(--line); padding-left: 24px; }
  .steps li:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li, .steps li:nth-child(odd), .steps li:nth-child(4n + 1) { border-left: 0; padding: 22px 0 22px 56px; }
  .steps li::before { position: absolute; left: 0; top: 20px; font-size: 2rem; }
}

.savings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.savings-item { background: var(--cream); border-radius: var(--r-md); padding: 24px; border: 1px solid var(--line); }
.savings-big { font-family: var(--f-display); font-size: clamp(2.25rem, 1.8rem + 1.5vw, 3rem); line-height: 1; color: var(--navy); margin-bottom: 12px; }
.savings-item p:last-child { color: var(--muted); font-size: .9375rem; }
@media (max-width: 860px) { .savings { grid-template-columns: 1fr; } }

/* ---------- Porównanie ---------- */
.compare { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
.compare-row { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; }
.compare-row > span { padding: 16px 20px; border-top: 1px solid var(--line); }
.compare-row > span:nth-child(3) { background: rgba(200, 169, 106, .12); }
.compare-headrow > span { border-top: 0; font-weight: 700; background: var(--navy); color: var(--cream); }
.compare-headrow > span:nth-child(3) { background: var(--navy-2); color: var(--gold-soft); }
.compare-row [role="rowheader"] { font-weight: 700; }
.compare-row [data-label="Sam"] { color: var(--muted); }
@media (max-width: 760px) {
  .compare { border: 0; background: transparent; display: grid; gap: 12px; }
  .compare-headrow { display: none; }
  .compare-row { grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
  .compare-row > span { border-top: 0; padding: 12px 16px; }
  .compare-row [role="rowheader"] { background: var(--navy); color: var(--cream); }
  .compare-row [role="cell"]::before { content: attr(data-label); display: block; font-size: .8125rem; font-weight: 700; color: var(--gold-ink); margin-bottom: 2px; }
  .compare-row [role="cell"] + [role="cell"] { border-top: 1px solid var(--line); }
}

/* ---------- Pakiety ---------- */
.packages { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.package { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--cream); position: relative; }
.package-featured { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.package-flag { position: absolute; top: -14px; right: 24px; margin: 0; background: var(--gold); color: var(--navy); font-weight: 700; font-size: .875rem; padding: 4px 12px; border-radius: 999px; }
.package-head { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.package-featured .package-head { border-color: var(--navy-3); }
.package-head h3 { font-size: var(--step-3); margin-bottom: .2em; }
.package-price { margin: 0; font-size: var(--step-1); }
.package-price span { font-family: var(--f-display); font-size: clamp(2.75rem, 2rem + 2vw, 3.5rem); line-height: 1; margin-right: 6px; }
.package-featured .package-price span { color: var(--gold-soft); }
.package-sub { margin: 6px 0 0; font-size: .9375rem; color: var(--muted); }
.package-featured .package-sub { color: #B9C2CC; }
.package-list { display: grid; gap: 12px; margin-bottom: 28px; flex: 1; }
.package-list li { display: flex; gap: 10px; align-items: flex-start; }
.package-list svg { margin-top: 2px; }
.package-list .yes svg { color: var(--gold-ink); }
.package-featured .package-list .yes svg { color: var(--gold); }
.package-list .paid { color: var(--muted); }
.package-list .no { color: #7C858F; text-decoration: line-through; text-decoration-color: rgba(124, 133, 143, .5); }
.package-list .highlight { background: rgba(200, 169, 106, .14); border-radius: var(--r-sm); padding: 12px; margin-top: 4px; }
.package-list .highlight strong { color: var(--gold-soft); }
.package-featured .btn-primary { background: var(--gold); color: var(--navy); }
.package-featured .btn-primary:hover { background: var(--gold-soft); }
@media (max-width: 860px) { .packages { grid-template-columns: 1fr; } .package-featured { order: -1; margin-top: 8px; } }

/* ---------- Formularze ---------- */
.field { display: grid; gap: 6px; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
label, legend { font-weight: 600; font-size: .9375rem; }
legend { padding: 0; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1.5px solid #CDBFA6; border-radius: var(--r-sm); background: #fff; color: var(--ink);
  font-size: 1rem; transition: border-color .15s ease, box-shadow .15s ease;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231C2833' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-ink); box-shadow: 0 0 0 3px rgba(200, 169, 106, .35); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
.field-error { margin: 2px 0 0; color: var(--error); font-size: .875rem; font-weight: 600; }
.band-navy .field-error { color: #FFB4A8; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--gold); flex: none; }
.consent { font-size: .875rem; line-height: 1.5; margin-bottom: 8px; }
.consent a { color: inherit; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; padding: 14px 16px; border-radius: var(--r-sm); font-weight: 600; }
.form-status.is-ok { background: #E3F0E7; color: var(--ok); }
.form-status.is-err { background: #FBE6E3; color: var(--error); }

.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: block; height: 100%; padding: 10px 12px; border: 1.5px solid var(--navy-3); border-radius: var(--r-sm); transition: border-color .15s ease, background-color .15s ease; }
.chips strong { display: block; font-size: .9375rem; }
.chips small { display: block; color: #B9C2CC; font-size: .8125rem; line-height: 1.35; font-weight: 500; }
.chips input:checked + span { border-color: var(--gold); background: rgba(200, 169, 106, .16); }
.chips input:focus-visible + span { outline: 3px solid var(--gold-soft); outline-offset: 2px; }

/* ---------- Kalkulator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.calc-form input, .calc-form select { background-color: var(--navy-2); color: var(--cream); border-color: var(--navy-3); }
.calc-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23FEF4E6' stroke-width='2'/%3E%3C/svg%3E"); }
.calc-form input::placeholder { color: #8E9AA6; }
.calc-form input:focus, .calc-form select:focus { border-color: var(--gold); }
.calc-result { background: var(--cream); color: var(--ink); border-radius: var(--r-md); padding: clamp(22px, 3vw, 36px); }
.calc-label { margin: 0 0 4px; font-size: .9375rem; font-weight: 600; color: var(--muted); }
.calc-range { font-family: var(--f-display); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.1; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.calc-range small { font-family: var(--f-body); font-size: 1rem; color: var(--muted); }
.calc-dash { margin: 0 .2em; color: var(--gold-ink); }
.calc-hint { font-size: .875rem; color: var(--muted); margin: 0; }
.calc-net { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0 14px; padding: 18px 0; border-block: 1px solid var(--line); }
.calc-value { font-family: var(--f-display); font-size: var(--step-3); margin: 0; font-variant-numeric: tabular-nums; }
.calc-tax { margin-bottom: 24px; }
.lead-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.lead-form h3 { font-size: var(--step-2); margin-bottom: .3em; }
.lead-form > p { color: var(--muted); font-size: .9375rem; }
.lead-form .btn-gold { background: var(--navy); color: var(--cream); }
.lead-form .btn-gold:hover { background: var(--navy-3); }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .calc-net { grid-template-columns: 1fr; } }

/* ---------- Przed / po ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tabs button { min-height: 44px; padding: 10px 18px; border: 1.5px solid var(--navy); border-radius: 999px; background: transparent; font-weight: 700; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.tabs button[aria-selected="true"] { background: var(--navy); color: var(--cream); }
.tabs button:hover:not([aria-selected="true"]) { background: var(--cream-2); }
.ba-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.ba { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--cream-2); user-select: none; touch-action: pan-y; --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before-clip { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--cream); pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--cream); color: var(--navy); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.ba-handle svg { width: 18px; height: 18px; margin: 0 -3px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba-range:focus-visible + .ba-handle, .ba:focus-within .ba-handle span { outline: 3px solid var(--gold); }
.ba-tag { position: absolute; top: 14px; padding: 4px 12px; border-radius: 999px; font-size: .875rem; font-weight: 700; pointer-events: none; }
.ba-tag-before { left: 14px; background: var(--navy); color: var(--cream); }
.ba-tag-after { right: 14px; background: var(--cream); color: var(--navy); }
.ba-desc { font-size: var(--step-1); }
.ba-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 24px; }
.ba-thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; cursor: pointer; background: none; display: block; width: 100%; }
.ba-thumbs button[aria-pressed="true"] { border-color: var(--gold-ink); }
.ba-thumbs img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ba-thumbs span { display: block; font-size: .8125rem; font-weight: 600; padding: 6px 2px 2px; text-align: left; }
@media (max-width: 900px) { .ba-wrap { grid-template-columns: 1fr; } }

/* ---------- O mnie ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-photo { margin: 0; }
.arch-portrait { aspect-ratio: 2 / 2.7; background: linear-gradient(180deg, var(--cream-2), #EAD8BA); max-width: 420px; margin-inline: auto; border: 1px solid rgba(200, 169, 106, .5); }
.arch-portrait img { object-fit: cover; object-position: bottom center; }
.about-body h2 { font-size: var(--step-4); }
.about-body > p { color: var(--muted); max-width: 62ch; }
.about-body .lead { color: var(--ink); }
.about-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 28px; }
.cert-thumb { display: inline-flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--cream); cursor: pointer; font-weight: 700; min-height: 48px; }
.cert-thumb:hover { border-color: var(--gold-ink); }
.cert-thumb img { width: 44px; height: 60px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .arch-portrait { max-width: 320px; } }

.cert-dialog { border: 0; padding: 0; border-radius: var(--r-md); max-width: min(720px, 94vw); max-height: 92vh; background: #fff; overflow: auto; }
.cert-dialog::backdrop { background: rgba(28, 40, 51, .72); }
.cert-dialog img { width: 100%; height: auto; }
.dialog-close { position: sticky; top: 8px; float: right; margin: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--navy); color: var(--cream); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 1; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
.faq-head .btn { margin-top: 8px; }
.faq-tel { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; text-decoration: none; }
.faq-tel svg { color: var(--gold-ink); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; font-weight: 700; font-size: var(--step-1); line-height: 1.35; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { transition: transform .2s ease; color: var(--gold-ink); }
.faq-list details[open] summary svg { transform: rotate(180deg); }
.faq-list summary:hover { color: var(--navy-3); }
.faq-list details > div { padding: 0 0 22px; color: var(--muted); max-width: 66ch; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-head { position: static; } }

/* ---------- Umawianie ---------- */
.booking { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.booking-head { margin-bottom: 0; }
.booking-points { display: grid; gap: 10px; margin: 20px 0 24px; }
.booking-points li { display: flex; gap: 10px; color: #DCE1E6; }
.booking-points svg { color: var(--gold); margin-top: 2px; }
.booking-alt { color: #DCE1E6; }
.booking-alt a { color: var(--gold-soft); font-weight: 700; white-space: nowrap; }
.booking-form { background: var(--cream); color: var(--ink); border-radius: var(--r-md); padding: clamp(20px, 3vw, 36px); }
.booking-form .btn-gold { background: var(--navy); color: var(--cream); margin-top: 8px; }
.booking-form .btn-gold:hover { background: var(--navy-3); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px; border: 1.5px solid #CDBFA6; border-radius: var(--r-sm); background: #fff; font-weight: 600; text-align: center; transition: border-color .15s ease, background-color .15s ease; }
.seg svg { color: var(--gold-ink); }
.seg input:checked + span { border-color: var(--navy); background: var(--navy); color: var(--cream); }
.seg input:checked + span svg { color: var(--gold); }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 900px) { .booking { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 400px) { .cal { padding: 10px 8px; } .cal-grid { gap: 2px; } .booking-form { padding: 16px 12px; } }

.cal { border: 1.5px solid #CDBFA6; border-radius: var(--r-md); background: #fff; padding: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-month { margin: 0; font-weight: 700; text-transform: capitalize; }
.cal-nav { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--cream); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal-dow { font-size: .75rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-day { min-height: 44px; min-width: 0; padding: 0; border: 0; border-radius: var(--r-sm); background: transparent; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.cal-day:hover:not(:disabled) { background: var(--cream-2); }
.cal-day:disabled { color: #B4B8BE; cursor: default; font-weight: 400; }
.cal-day.is-available { background: var(--cream); }
.cal-day[aria-selected="true"] { background: var(--navy); color: var(--cream); }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--gold); }
.cal-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.cal-empty { margin: 0; color: var(--muted); font-size: .9375rem; }
.cal-slot { min-height: 44px; min-width: 76px; padding: 8px 12px; border: 1.5px solid #CDBFA6; border-radius: var(--r-sm); background: #fff; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
.cal-slot:hover { border-color: var(--navy); }
.cal-slot[aria-pressed="true"] { background: var(--navy); color: var(--cream); border-color: var(--navy); }

/* ---------- Stopka ---------- */
.site-footer { background: #151F28; color: #CBD2D9; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { margin-top: 16px; max-width: 36ch; font-size: .9375rem; }
.footer-title { font-family: var(--f-body); font-size: 1rem; font-weight: 700; color: var(--cream); letter-spacing: 0; margin-bottom: 14px; }
.footer-list { display: grid; gap: 10px; font-size: .9375rem; }
.footer-list a, .footer-list span { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.footer-list a:hover { color: var(--gold-soft); text-decoration: underline; }
.footer-list svg { color: var(--gold); }
.footer-address { font-style: normal; font-size: .9375rem; line-height: 1.7; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #2C3B4A; font-size: .875rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 1080px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Pasek mobilny ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: auto 1fr; gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(254, 244, 230, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(28, 40, 51, .1);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar-tel { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; border: 2px solid var(--navy); border-radius: var(--r-sm); font-weight: 700; text-decoration: none; }
  .mobile-bar .btn { min-height: 48px; padding-inline: 12px; }
  body { padding-bottom: 76px; }
}

/* ---------- Polityka prywatności ---------- */
.doc { max-width: 780px; padding-block: 48px 96px; }
.doc h1 { font-size: var(--step-4); }
.doc h2 { font-size: var(--step-2); margin-top: 2em; }
.doc ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.doc li { margin-bottom: .4em; }
.todo { background: #FFF1B8; padding: 0 4px; border-radius: 3px; font-weight: 600; }

/* ---------- Podstrony usług i blog ---------- */
.breadcrumbs { font-size: .875rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--gold-ink); }
.breadcrumbs a { color: inherit; }
.page-hero { padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 80px); }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero h1 { font-size: var(--step-5); max-width: 18ch; }
.page-hero .lead { color: var(--muted); max-width: 58ch; }
.page-hero .arch { aspect-ratio: 4 / 4.4; box-shadow: var(--shadow); }
.page-hero-icon { display: grid; place-items: center; aspect-ratio: 1; max-width: 320px; margin-inline: auto; border-radius: 999px 999px var(--r-md) var(--r-md); background: var(--navy); color: var(--gold); }
.page-hero-icon svg { width: 38%; height: 38%; }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero-icon { display: none; } .page-hero .arch { aspect-ratio: 4 / 3; border-radius: 160px 160px var(--r-md) var(--r-md); } }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .page-layout { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--step-3); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); font-family: var(--f-body); font-weight: 700; letter-spacing: 0; margin-top: 1.4em; }
.prose p, .prose ul, .prose ol { margin-bottom: 1em; }
.prose ul:not(.ticks) { list-style: disc; padding-left: 1.3em; }
.prose ol:not(.steps) { list-style: decimal; padding-left: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose a:not(.btn) { color: var(--navy); text-underline-offset: 3px; }
.prose .ticks { margin-bottom: 1em; }
.aside-cta { position: sticky; top: calc(var(--header-h) + 24px); padding: 24px; border-radius: var(--r-md); background: var(--navy); color: var(--cream); }
.aside-cta h2 { font-size: var(--step-2); color: var(--cream); }
.aside-cta p { color: #D9DEE4; font-size: .9375rem; }
.aside-cta .btn { width: 100%; margin-top: 8px; }
.aside-cta .aside-tel { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--cream); font-weight: 700; text-decoration: none; }
.aside-cta .aside-tel svg { color: var(--gold); width: 20px; height: 20px; }
@media (max-width: 960px) { .aside-cta { position: static; } }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .related { grid-template-columns: 1fr; } }
.cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; }
.cta-band h2 { margin: 0; font-size: var(--step-3); color: var(--cream); max-width: 24ch; }
.cta-band p { color: #D9DEE4; margin: 8px 0 0; }
.note { padding: 16px 20px; border-left: 3px solid var(--gold); background: var(--paper); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--muted); font-size: .9375rem; }
.post-meta { color: var(--muted); font-size: .9375rem; }
.post-list { display: grid; gap: 16px; }
.post-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.post-card h2 { font-size: var(--step-2); margin-bottom: .3em; }
.post-card h2 a { color: var(--navy); text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.error-page { padding-block: clamp(48px, 10vw, 120px); text-align: center; }
.error-page h1 { font-size: var(--step-5); }
.error-page .hero-actions { justify-content: center; }

/* ---------- Ruch ---------- */
.hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .06s; }
.hero-copy > *:nth-child(3) { animation-delay: .12s; }
.hero-copy > *:nth-child(4) { animation-delay: .18s; }
.hero-copy > *:nth-child(5) { animation-delay: .24s; }
.arch-hero { animation: gate 1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes gate { from { clip-path: inset(100% 0 0 0 round 999px 999px 12px 12px); } to { clip-path: inset(0 0 0 0 round 999px 999px 12px 12px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
