/* =====================================================================
   Pendrajwy.pl – arkusz stylów. Kolory zmienisz w sekcji :root.
   Główny motyw: kolorowe obudowy twisterów. Drewno tylko w sekcjach z drewnianymi modelami.
   ===================================================================== */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/publicsans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* kolory obudów twisterów – główny motyw strony */
  --blue: #1F6BFF;
  --pink: #FF2E88;
  --yellow: #FFC41F;
  --green: #1DB954;
  --orange: #FF7A1A;
  --purple: #7B3FE4;
  --red: #F2353B;
  --primary: #1F6BFF;     /* przyciski, linki */
  --primary-dark: #1450D6;
  --ink: #15172B;         /* tekst i ciemne tła */
  --muted: #5B6077;
  --paper: #F5F7FC;
  --tint: #EEF2FF;
  --line: #E1E5F0;
  --steel: #C9CED4;       /* blaszka */
  --wood: #B5793F;        /* tylko w sekcjach z drewnem */
  --wood-dark: #8A5A2B;
  --birch: #F3EADB;
  --white: #fff;
  --rainbow: linear-gradient(90deg, #1F6BFF 0 14.28%, #FF2E88 14.28% 28.57%, #FFC41F 28.57% 42.85%, #1DB954 42.85% 57.14%, #FF7A1A 57.14% 71.42%, #7B3FE4 71.42% 85.71%, #F2353B 85.71% 100%);
  --wrap: 1200px;
  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; }
a { color: var(--primary-dark); text-underline-offset: .2em; }
a:hover { color: var(--pink); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; font-stretch: 88%; line-height: 1.05; letter-spacing: -.015em; margin: 0 0 .5em; color: var(--ink); }
h2 { font-size: clamp(2rem, 1.4rem + 2.3vw, 3rem); }
h3 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
p { margin: 0 0 1em; }
.lead { font-size: 1.18rem; line-height: 1.55; color: #3A3E57; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

/* ---------- przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.4rem; border: 2px solid transparent; border-radius: 999px; font: 700 1.02rem/1.2 var(--head); text-decoration: none; cursor: pointer; white-space: nowrap; margin: 0 .4rem .5rem 0; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-sm { padding: .55rem 1.05rem; margin: 0; }
.btn-wood { background: var(--primary); color: #fff; }
.btn-wood:hover { background: var(--primary-dark); color: #fff; }
.btn-pink { background: var(--pink); color: #fff; }
.btn-pink:hover { background: #E01572; color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2A2D4A; color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn-line:hover { background: var(--ink); color: #fff; }

/* ---------- nagłówek ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); }
.logo-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--head); font-weight: 850; font-size: 1.5rem; letter-spacing: -.02em; }
.brand-name span { color: var(--pink); }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .5rem .8rem; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 999px; }
.site-nav a:hover, .site-nav a.is-active { background: var(--tint); color: var(--primary-dark); }
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: .5rem; padding: .5rem .9rem; border: 2px solid var(--ink); border-radius: 999px; background: transparent; font: 700 1rem var(--head); color: var(--ink); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; } .nav-toggle-bars::after { position: absolute; top: 6px; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(700px 380px at 92% 10%, rgba(255,46,136,.16), transparent 70%), radial-gradient(700px 420px at 70% 95%, rgba(31,107,255,.14), transparent 70%), radial-gradient(500px 300px at 15% 100%, rgba(255,196,31,.18), transparent 70%), var(--paper); padding-block: clamp(2.5rem, 6vw, 4.5rem) 2rem; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2rem 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 1.5rem + 4vw, 4.6rem); font-stretch: 80%; line-height: .98; margin-bottom: 1.1rem; }
.hero-lead { font-size: 1.2rem; max-width: 48ch; color: #3A3E57; }
.hero-actions { margin-top: 1.5rem; }
.hero-trust { margin-top: 1rem; color: var(--muted); font-size: .97rem; }
.stars { color: #E0A320; letter-spacing: .05em; }
.hero-media { position: relative; }
.hero-main { display: block; width: 100%; border-radius: 28px; aspect-ratio: 1; object-fit: contain; background: #fff; padding: 4%; box-shadow: 0 30px 60px rgba(21,23,43,.16); }
.hero-small { position: absolute; left: -8%; bottom: 6%; width: 62%; border-radius: 14px; background: #fff; box-shadow: 0 16px 34px rgba(21,23,43,.16); border: 5px solid #fff; }
.hero-chips { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-chips a { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.hero-chips a:hover { border-color: var(--primary); }
.hero-chips i { width: 14px; height: 14px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }

/* ---------- sekcje ---------- */
.band { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.band--tint { background: var(--paper); }
.band--wood { background: var(--ink); color: #DDE0F0; position: relative; }
.band--wood::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--rainbow); }
.band--wood h2 { color: #fff; }
.band--wood .lead { color: #DDE0F0; }
.band--wood .btn-dark { background: var(--pink); }
.band--wood .btn-dark:hover { background: #E01572; }
.section-head { max-width: 760px; margin-bottom: 2.25rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem 4rem; align-items: start; }
.split p { max-width: 62ch; }

/* karty produktów: zdjęcie + opis, naprzemiennie */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem 3.5rem; align-items: center; padding-block: 2rem; border-top: 1px solid var(--line); scroll-margin-top: 5rem; }
.product--rev .product-media { order: 2; }
.product-media { display: grid; gap: .75rem; }
.product-media > img { width: 100%; max-height: 520px; object-fit: contain; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.woods img { max-height: 520px; }
.product-text p { color: #43475F; }
.tags { list-style: none; padding: 0; margin: .5rem 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { padding: .3rem .7rem; border-radius: 999px; background: var(--tint); font-size: .9rem; font-weight: 600; color: var(--primary-dark); }
.product--wood .tags li { background: var(--birch); color: var(--wood-dark); }
.price-from { font-size: 1.05rem; margin: 0; }
.price-from strong { font-family: var(--head); font-size: 1.7rem; font-stretch: 85%; color: var(--accent, var(--primary)); }
.product--wood .price-from strong { color: var(--wood-dark); }

/* wybór drewna */
.woods { display: grid; gap: .75rem; }
.woods img { width: 100%; border-radius: 18px; border: 1px solid var(--line); aspect-ratio: 1; object-fit: cover; background: #fff; }
.wood-picker { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.wood-picker button { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem .45rem .45rem; border-radius: 999px; border: 2px solid var(--line); background: #fff; font: 600 .95rem var(--body); color: var(--ink); cursor: pointer; }
.wood-picker button::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--w); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.wood-picker button[aria-pressed="true"] { border-color: var(--wood-dark); }

.dims { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: center; margin-top: 1.5rem; padding: 1.25rem; background: var(--tint); border-radius: 18px; }
.dims img { border-radius: 12px; background: #fff; }
.dims h3 { font-size: 1.4rem; }
.dims p { margin: 0; color: var(--muted); }

/* cennik */
.table-scroll { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.prices { width: 100%; border-collapse: collapse; min-width: 640px; font-variant-numeric: tabular-nums; }
.prices th, .prices td { padding: .85rem 1rem; text-align: right; border-bottom: 1px solid var(--line); }
.prices thead th { background: var(--ink); color: #fff; font-family: var(--head); font-weight: 700; }
.prices tbody th { text-align: left; font-weight: 600; }
.prices thead th:first-child { text-align: left; }
.prices tbody tr:nth-child(even) td, .prices tbody tr:nth-child(even) th { background: #F8F9FD; }
.prices tr.hl th, .prices tr.hl td { background: #FFF1D1 !important; font-weight: 700; }
.prices tbody th i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: .5rem; vertical-align: -1px; }
.note { margin-top: 1rem; color: var(--muted); font-size: .95rem; }

/* grawer */
.steps { list-style: none; counter-reset: k; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.steps li { counter-increment: k; background: var(--paper); border-radius: 16px; padding: 1.1rem 1.1rem 1.2rem; color: #43475F; }
.steps li::before { content: counter(k); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--c, var(--primary)); color: #fff; font-family: var(--head); font-weight: 800; margin-bottom: .6rem; }
.steps li:nth-child(1) { --c: var(--blue); } .steps li:nth-child(2) { --c: var(--pink); } .steps li:nth-child(3) { --c: var(--orange); } .steps li:nth-child(4) { --c: var(--green); }
.steps strong { color: var(--ink); }
.muted-note { color: var(--muted); }
.engr { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .75rem; }
.engr a { display: block; overflow: hidden; border-radius: 14px; background: var(--birch); }
.engr img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; transition: transform .4s ease; }
.engr a:hover img { transform: scale(1.05); }

/* pudełka / dlaczego my */
.why { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.why li { padding: 1rem 1.2rem; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.why strong { color: #fff; }

/* ---------- kontakt i formularz ---------- */
.split--contact { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.big-phone { margin: .5rem 0 1rem; }
.big-phone a { font-family: var(--head); font-size: clamp(2.3rem, 1.6rem + 3vw, 3.4rem); font-weight: 850; font-stretch: 80%; text-decoration: none; color: var(--ink); }
.big-phone a:hover { color: var(--pink); }
.contact-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.contact-list li { display: flex; flex-wrap: wrap; gap: .2rem 1rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.contact-list span { width: 5rem; color: var(--muted); }
.contact-list a { font-weight: 700; text-decoration: none; color: var(--ink); }

.contact-form { display: grid; gap: 1rem; background: var(--paper); padding: clamp(1.25rem, 3vw, 2rem); border-radius: 22px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.contact-form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--rainbow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .25rem; font-size: .97rem; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; font: inherit; color: var(--ink); padding: .7rem .85rem; border: 1.5px solid #C8CEDF; border-radius: 12px; background: #fff; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31,107,255,.18); }
[aria-invalid="true"] { border-color: #B42318 !important; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--muted); cursor: pointer; }
.consent input { margin-top: .25rem; accent-color: var(--primary); flex: none; }
.form-note { font-size: .92rem; color: var(--muted); margin: 0; }
.contact-form .btn { justify-self: start; margin: 0; background: var(--pink); border-radius: 999px; }
.contact-form .btn:hover { background: #E01572; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: .8rem 1rem; font-weight: 600; margin: 0; border-radius: 12px; }
.form-msg.is-ok { background: #E3F1E0; color: #2F5E22; }
.form-msg.is-error { background: #FBE5E1; color: #8A1F14; }

/* ---------- stopka ---------- */
.site-footer { background: var(--ink); color: #B9BDD3; position: relative; padding: 2.25rem 0 1rem; font-size: .96rem; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; }
.footer-brand { display: flex; align-items: center; gap: .5rem; color: #fff; font-family: var(--head); font-weight: 850; font-size: 1.4rem; margin-bottom: .5rem; }
.footer-contact { text-align: right; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 1.5rem; padding-top: 1rem; font-size: .85rem; color: #8A8FAB; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--rainbow); }
.call-bar { display: none; }

/* ---------- podgląd zdjęć ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(15, 17, 32, .94); }
.lightbox figure { margin: 0; height: 100%; display: grid; place-items: center; align-content: center; gap: .6rem; padding: 3.5rem 4rem 1.5rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; border-radius: 12px; }
.lightbox figcaption { color: #DDE0F0; text-align: center; font-size: .95rem; }
.lightbox button { position: absolute; border: 0; width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.14); color: #fff; font-size: 2rem; line-height: 1; display: grid; place-items: center; }
.lightbox button:hover { background: var(--pink); }
.lb-close { top: .8rem; right: .8rem; }
.lb-prev { left: .8rem; top: 50%; translate: 0 -50%; }
.lb-next { right: .8rem; top: 50%; translate: 0 -50%; }

/* ---------- tablet ---------- */
@media (max-width: 1040px) {
  .header-cta { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-inner, .product, .split, .split--contact, .dims { grid-template-columns: minmax(0, 1fr); }
  .product--rev .product-media { order: 0; }
  .hero-media { max-width: 520px; justify-self: center; width: 100%; }
}

/* ---------- telefon ---------- */
@media (max-width: 680px) {
  body { font-size: 1rem; padding-bottom: 4.4rem; }
  .wrap { width: min(100% - 1.5rem, var(--wrap)); }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem .75rem 1rem; }
  .site-nav a { padding: .85rem 1rem; border-radius: 12px; }
  .hero-actions .btn { width: 100%; margin-right: 0; }
  .hero-small { left: -2%; width: 70%; bottom: -4%; }
  .hero-chips { margin-top: 2.5rem; }
  .steps, .field-row { grid-template-columns: minmax(0, 1fr); }
  .engr { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .contact-form .btn { width: 100%; }
  .footer-contact { text-align: left; }
  .call-bar { display: flex; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
  .call-bar .btn { margin: 0; flex: 1; }
  .lightbox figure { padding: 3.5rem .5rem 1rem; }
  .lb-prev, .lb-next { top: auto; bottom: .8rem; translate: none; }
}

@media print {
  .site-header { position: static; }
  .site-nav, .nav-toggle, .call-bar, .contact-form, .header-cta { display: none !important; }
  .band--wood, .site-footer { background: none; color: var(--ink); }
}

/* ---------- kolorowe dodatki ---------- */
.rainbow-bar { height: 6px; background: var(--rainbow); }
.section-head h2::after { content: ""; display: block; width: 120px; height: 6px; border-radius: 3px; background: var(--rainbow); margin-top: .7rem; }
.product { --accent: var(--primary); }
.product--plastic { --accent: var(--pink); }
.product--pastel { --accent: var(--purple); }
.product--plastic .product-media > img, .product--pastel .product-media > img { border-color: transparent; box-shadow: 0 14px 34px rgba(21,23,43,.08); }
.product h3 { position: relative; padding-left: 1.1rem; }
.product h3::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 6px; border-radius: 3px; background: var(--accent); }
.product--wood { --accent: var(--wood); }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin: .25rem 0 1rem; padding: 0; list-style: none; }
.swatches li { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.hero-wood { position: absolute; right: -5%; bottom: -6%; width: 30%; border-radius: 50%; aspect-ratio: 1; object-fit: cover; border: 5px solid #fff; box-shadow: 0 14px 30px rgba(21,23,43,.16); }
.why li { background: rgba(255,255,255,.06); border-left: 5px solid var(--c, var(--primary)); }
.why li:nth-child(1) { --c: var(--yellow); } .why li:nth-child(2) { --c: var(--green); } .why li:nth-child(3) { --c: var(--blue); } .why li:nth-child(4) { --c: var(--pink); }
@media (max-width: 680px) { .hero-wood { width: 28%; right: -2%; bottom: -4%; } }
