/* Strony Owczarka: strona */
:root {
  --bg: #f5f1eb;
  --bg-soft: #faf8f4;
  --white: #ffffff;
  --ink: #111827;
  --black: #000000;
  --muted: #4a4a4a;
  --soft: #666666;
  --beige: #d5c9b1;
  --beige-line: rgba(213, 201, 177, 0.6);
  --beige-fill: rgba(213, 201, 177, 0.16);
  --brown: #6b5d50;
  --error: #a3271f;
  --radius: 16px;
  --radius-sm: 12px;
  --wrap: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* tło strony: krem z delikatną siatką, jak na obecnej stronie */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(90deg, rgba(128, 128, 128, 0.03) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(128, 128, 128, 0.03) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(circle at 50% 0%, rgba(213, 201, 177, 0.28), transparent 60%),
    linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
}
.page > main { flex: 1; }

/* ---------- nagłówek ---------- */
.header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(245, 241, 235, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--beige-line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; color: var(--ink); }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.header-right { display: flex; align-items: center; gap: 16px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.back:hover { color: var(--black); }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--black); color: var(--white);
  border: 0; border-radius: var(--radius-sm);
  padding: 16px 26px; font-weight: 700; font-size: 16px;
  text-decoration: none; transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #1f1f1f; transform: translateY(-1px); }
.btn:focus-visible, .tile:focus-visible, .chip:focus-visible, a:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; }
.btn--sm { white-space: nowrap; padding: 10px 16px; font-size: 14px; font-weight: 600; border-radius: 8px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
.btn .arrow, .pill .arrow { flex: none; transition: transform .2s ease; }
.btn:hover .arrow, .tile:hover .pill .arrow { transform: translateX(4px); }

.eyebrow { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--brown); }

/* ---------- ekran wyboru ---------- */
.choose { padding: 56px 0 72px; text-align: center; }
.choose h1 { font-size: clamp(38px, 7vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; margin-top: 14px; }
.choose .lead { margin: 18px auto 0; max-width: 620px; font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); }
.tiles { margin-top: 40px; display: grid; gap: 18px; grid-template-columns: 1fr; text-align: left; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: var(--white); border: 1px solid var(--beige-line); border-radius: 20px;
  padding: 28px 26px 26px; text-decoration: none; color: var(--ink);
  box-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 12px 32px -18px rgba(107, 93, 80, .35);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tile:hover { transform: translateY(-3px); border-color: var(--brown); box-shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 22px 44px -20px rgba(107, 93, 80, .5); }
.tile .num { font-family: var(--serif); font-style: italic; color: var(--brown); font-size: 15px; }
.tile h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }
.tile p { color: var(--muted); font-size: 16.5px; }
.tile .go {
  margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px;
}
.tile .go span.pill { background: var(--black); color: var(--white); border-radius: 10px; padding: 12px 18px; display: inline-flex; gap: 10px; align-items: center; }
.tile--dark { background: var(--black); color: var(--white); border-color: var(--black); }
.tile--dark p { color: rgba(255, 255, 255, .78); }
.tile--dark .num { color: var(--beige); }
.tile--dark .go span.pill { background: var(--white); color: var(--black); }
.tile--dark:hover { border-color: var(--beige); }

/* ---------- hero podstrony ---------- */
.hero { padding: 40px 0 48px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
.hero h1 { font-size: clamp(32px, 5.2vw, 54px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; margin-top: 14px; }
.hero .lead { margin-top: 18px; font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 540px; }
.hero .cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.hero .note { font-size: 14px; color: var(--soft); }

/* ---------- VSL ---------- */
.vsl { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.vsl-caption { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 15.5px; text-align: center; }
.vsl-frame {
  position: relative; width: 100%; background: #0b0b0b; overflow: hidden;
  border-radius: 28px; border: 8px solid #0b0b0b;
  box-shadow: 0 30px 60px -28px rgba(17, 24, 39, .55), 0 0 0 1px rgba(213, 201, 177, .5);
}
.vsl-frame[data-format="pion"] { max-width: 320px; aspect-ratio: 9 / 16; }
.vsl-frame[data-format="poziom"] { max-width: 560px; aspect-ratio: 16 / 9; border-radius: 20px; }
.vsl-frame iframe, .vsl-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 20px; background: #0b0b0b; }
.vsl-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: rgba(255, 255, 255, .8); text-align: center; padding: 24px; font-size: 14px;
  background: radial-gradient(circle at 50% 35%, #2a2a2a, #0b0b0b 70%); border-radius: 20px;
}
.vsl-empty .play { width: 64px; height: 64px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.vsl-empty .play::after { content: ""; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #0b0b0b; }
.vsl-empty strong { color: var(--white); font-size: 15px; }

/* ---------- usługi ---------- */
.section { padding: 48px 0; }
.section-head { max-width: 640px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.12; font-weight: 700; letter-spacing: -0.015em; margin-top: 10px; }
.cards { margin-top: 28px; display: grid; gap: 14px; grid-template-columns: 1fr; }
.card { background: var(--white); border: 1px solid var(--beige-line); border-radius: var(--radius); padding: 22px 22px 24px; }
.card .num { font-family: var(--serif); font-style: italic; color: var(--brown); font-size: 15px; }
.card h3 { margin-top: 8px; font-size: 19px; font-weight: 700; line-height: 1.25; }
.card p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }

/* ---------- formularz ---------- */
.lead-section { padding: 24px 0 80px; scroll-margin-top: 80px; }
.lead-box {
  background: var(--white); border: 1px solid var(--beige-line); border-radius: 24px;
  padding: 28px 22px; display: grid; gap: 28px; grid-template-columns: 1fr;
  box-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 30px 60px -36px rgba(107, 93, 80, .5);
}
.lead-copy h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.12; font-weight: 700; letter-spacing: -0.015em; margin-top: 10px; }
.lead-copy p { margin-top: 14px; color: var(--muted); font-size: 16.5px; }
.steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 15.5px; color: var(--ink); }
.steps li span.n { width: 28px; height: 28px; border-radius: 50%; background: var(--beige-fill); border: 1px solid var(--beige-line); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--brown); }
.lead-copy .hours { margin-top: 18px; font-size: 14px; color: var(--soft); }

.form { display: grid; gap: 16px; }
.field label, .field .label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--soft); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--beige); background: var(--bg-soft);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus { outline: none; border-color: var(--black); background: var(--white); }
.field.invalid input { border-color: var(--error); }
.err { display: none; margin-top: 6px; font-size: 13.5px; color: var(--error); }
.invalid .err { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--beige); background: var(--bg-soft); color: var(--ink);
  border-radius: 999px; padding: 10px 16px; font-size: 14.5px; font-weight: 500;
}
.chip:hover { border-color: var(--brown); }
.chip[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--white); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--black); }
.consent.invalid { color: var(--error); }
.fineprint { font-size: 12.5px; color: var(--soft); line-height: 1.5; }
.fineprint a { color: var(--brown); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14.5px; background: #fbeceb; color: var(--error); border: 1px solid #efc6c2; }
.form-msg a { color: inherit; font-weight: 700; }

.thanks { text-align: left; }
.thanks .tick { width: 52px; height: 52px; border-radius: 50%; background: var(--black); display: grid; place-items: center; color: var(--white); font-size: 26px; }
.thanks h3 { margin-top: 16px; font-size: 26px; line-height: 1.2; font-weight: 700; }
.thanks p { margin-top: 10px; color: var(--muted); font-size: 16.5px; }
.thanks .demo { margin-top: 14px; font-size: 13px; color: var(--brown); border: 1px dashed var(--beige); border-radius: 10px; padding: 10px 12px; }

/* ---------- stopka ---------- */
.footer { border-top: 1px solid var(--beige-line); background: rgba(255, 255, 255, .5); padding: 28px 0 96px; font-size: 13.5px; color: var(--muted); }
.footer .wrap { display: grid; gap: 14px; }
.footer .row { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.footer a, .footer button.linklike { color: var(--muted); text-decoration: none; }
.footer a:hover, .footer button.linklike:hover { color: var(--black); text-decoration: underline; }
button.linklike { background: none; border: 0; padding: 0; font-size: inherit; }
.footer .legal { color: var(--soft); font-size: 12.5px; }

/* ---------- przyklejony przycisk (telefon) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(245, 241, 235, .96); border-top: 1px solid var(--beige-line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.show { transform: none; }

/* ---------- cookies ---------- */
.cookies {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--beige-line); border-radius: var(--radius);
  box-shadow: 0 20px 50px -20px rgba(17, 24, 39, .45);
  padding: 16px 18px; display: grid; gap: 12px; font-size: 14px; color: var(--muted);
}
.cookies .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookies button { border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 600; font-size: 14px; }
.cookies .ok { background: var(--brown); color: var(--white); }
.cookies .min { background: rgba(213, 201, 177, .35); color: var(--muted); }
.cookies a { color: var(--brown); }

/* ---------- polityka ---------- */
.doc { padding: 40px 0 72px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.doc h2 { margin-top: 34px; font-size: 21px; line-height: 1.3; }
.doc p, .doc li { color: var(--muted); font-size: 16px; }
.doc p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.doc .updated { margin-top: 36px; font-size: 14px; color: var(--soft); }
.doc a { color: var(--brown); }

.center { text-align: center; }
.notfound { padding: 96px 0; text-align: center; }
.notfound h1 { font-size: clamp(34px, 6vw, 56px); letter-spacing: -0.02em; }
.notfound p { margin: 14px 0 26px; color: var(--muted); }

@media (max-width: 759px) { .header .btn--sm { display: none; } }

/* ---------- szerokie ekrany ---------- */
@media (min-width: 760px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 22px; }
  .tile { padding: 36px 34px 32px; min-height: 300px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .lead-box { padding: 40px; }
  .footer { padding-bottom: 32px; }
  .sticky-cta { display: none; }
}
@media (min-width: 960px) {
  .choose { padding: 84px 0 96px; }
  .hero { padding: 64px 0 56px; }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .lead-box { grid-template-columns: 1fr 1fr; gap: 48px; padding: 48px; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}


/* =====================================================================
   WERSJA 2: układ hero, prosty formularz, animacje
   ===================================================================== */

/* ---------- hero: nagłówek, pod nim film, pod filmem przycisk ---------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); }
.vsl { gap: 18px; }
.vsl .btn--wide { width: 100%; max-width: 320px; }
.vsl .note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brown); position: relative; flex: none; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brown); animation: ping 2s ease-out infinite; }

/* ---------- kafelki: 3 obok siebie ---------- */
.cards--3 { max-width: 100%; }

/* ---------- formularz: jedna wąska karta ---------- */
.lead-box { position: relative; overflow: hidden; display: block; max-width: 520px; margin: 0 auto; padding: 30px 22px 26px; }
.lead-box h2 { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.12; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 22px; }
.lead-box .form, .lead-box .thanks { position: relative; z-index: 1; }
.lead-box > h2 { position: relative; z-index: 1; }
.fineprint { text-align: center; }
.thanks .tick svg { display: block; }

/* ---------- animacje ---------- */
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
@keyframes drift { 0% { transform: translate3d(-6%, -4%, 0) scale(1); } 100% { transform: translate3d(8%, 6%, 0) scale(1.15); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); } 100% { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0); } }
@keyframes sweep { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }

/* pojawianie się przy przewijaniu */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.js .reveal.in { opacity: 1; transform: none; }

/* miękka, wolno płynąca poświata w tle */
.choose { position: relative; overflow: hidden; }
.choose .wrap { position: relative; z-index: 1; }
.choose::before, .hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: min(720px, 120vw); height: min(720px, 120vw); top: -260px; left: 50%; margin-left: calc(min(720px, 120vw) / -2);
  background: radial-gradient(circle, rgba(213, 201, 177, .6) 0%, rgba(213, 201, 177, .18) 40%, transparent 68%);
  animation: drift 14s ease-in-out infinite alternate;
}

/* nagłówek */
.header { transition: box-shadow .25s ease; }
.header.scrolled { box-shadow: 0 10px 30px -22px rgba(17, 24, 39, .55); }

/* przyciski: przesuwający się połysk */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%);
  background-size: 220% 100%; background-position: 200% 0; opacity: 0;
}
.btn:hover::after { opacity: 1; animation: sweep .9s ease forwards; }
.btn:active { transform: translateY(0) scale(.985); }

/* poświata pod kursorem na kafelkach i formularzu */
[data-glow] { position: relative; }
[data-glow]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(213, 201, 177, .38), transparent 62%);
  transition: opacity .3s ease;
}
[data-glow]:hover::before { opacity: 1; }
.tile--dark[data-glow]::before { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(213, 201, 177, .22), transparent 62%); }
.tile > *, .card > * { position: relative; z-index: 1; }
.card { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; overflow: hidden; }
.card:hover { transform: translateY(-3px); border-color: var(--brown); box-shadow: 0 18px 36px -24px rgba(107, 93, 80, .55); }
.tile { overflow: hidden; }

/* film: lekkie unoszenie i pulsujący przycisk odtwarzania */
.vsl-frame { animation: floaty 7s ease-in-out infinite; }
.vsl-empty .play { animation: ring 2.2s ease-out infinite; }

/* formularz: płynąca linia na górnej krawędzi */
.lead-box::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--brown), var(--beige), var(--brown), transparent);
  background-size: 200% 100%; animation: sweep 6s linear infinite;
}
.field input[type="text"], .field input[type="tel"], .field input[type="email"] { transition: border-color .15s ease, background .15s ease, box-shadow .2s ease; }
.field input:focus { box-shadow: 0 0 0 4px rgba(213, 201, 177, .45); }
.thanks:not([hidden]) .tick { animation: pop .5s cubic-bezier(.2, .8, .2, 1) both; }
.thanks:not([hidden]) h3, .thanks:not([hidden]) p { animation: fadeUp .5s ease both .12s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sticky-cta { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.cookies:not([hidden]) { animation: fadeUp .4s ease both; }

@media (min-width: 760px) {
  .lead-box { padding: 40px 40px 34px; }
}
@media (min-width: 960px) {
  .hero-copy { text-align: left; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; }
  .lead-box { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation: none !important; }
}
