:root {
  --orange: #ff741f;
  --blue: #1801aa;
  --cream: #f1ebe6;
  --ink: #160e52;
  --side: clamp(20px, 5.5vw, 80px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Instrument Sans', system-ui, sans-serif; color: var(--ink); background: var(--cream); }
img { display: block; }
p { margin: 0; }
a { color: var(--blue); text-underline-offset: 4px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

h1, h2, h3, .num {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 900;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  line-height: 1.05;
  color: var(--blue);
}
.h-xl { font-size: clamp(42px, 6.1vw, 88px); line-height: 1; letter-spacing: -0.01em; }
.h-page { font-size: clamp(48px, 7.4vw, 108px); line-height: 1; }
.h-l { font-size: clamp(34px, 4.4vw, 62px); }
.h-m { font-size: clamp(32px, 4vw, 56px); }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; max-width: 32em; text-wrap: pretty; }

.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--side); }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 30px; border: 0; border-radius: 999px;
  background: var(--blue); color: var(--cream);
  font: 600 17px 'Instrument Sans', system-ui, sans-serif;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover { background: var(--orange); color: var(--ink); }
.btn.light { background: var(--cream); color: var(--blue); }
.btn.light:hover { background: var(--orange); color: var(--ink); }
.btn.small { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn.full { display: flex; width: 100%; }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 17px; }

/* Ozdobna linia z rombem, jak na IG */
.rule { display: flex; align-items: center; gap: 10px; width: 180px; max-width: 60%; color: var(--orange); }
.rule::before, .rule::after { content: ''; flex: 1; height: 1.5px; background: currentColor; }
.rule i { width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.rule.on-orange { color: var(--cream); }
.rule.wide { width: 280px; }

/* Menu */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 20px; }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.logo img { height: 44px; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.menu > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--ink); text-decoration: none; }
.menu > a:not(.btn):hover, .menu > a[aria-current] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

/* Stopka */
.footer { background: var(--blue); color: var(--cream); }
.footer-grid { border-top: 1.5px solid var(--orange); padding: 56px 0 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 40px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cream); font-weight: 500; }
.footer-col a:hover { color: var(--orange); }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { width: 190px; }
.burger, .cap, .oferta-mob { display: none; }
.footer-brand p { line-height: 1.5; max-width: 18em; }
.copy { padding-bottom: 32px; font-size: 14px; }

/* Strona główna */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 48px; align-items: center; padding-block: 40px 88px; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.hero-visual { width: 100%; max-width: 640px; justify-self: center; }

.tiles-head { padding-bottom: 40px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5px; background: var(--blue); border-block: 1.5px solid var(--blue); }
.tile { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; background: var(--cream); }
.tile.orange { background: var(--orange); gap: 28px; }
.tile > zw-makieta { width: 84%; }
.tile > zw-makieta[ring] { width: 88%; }
.tile > img { width: 70%; }
.tile .rule { width: 30%; }
.tile.pat-cream { aspect-ratio: auto; min-height: 320px; }
.tile-oferta { grid-column: 1 / -1; aspect-ratio: auto; padding-block: 48px; gap: 24px; }

/* Wzór z zawijasami */
.pat-cream { background: var(--cream) url(assets/pattern-blue.svg) 0 0 / 420px auto; }

.steps { padding-block: 112px; display: flex; flex-direction: column; gap: 64px; }
.steps-head { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.steps-head .rule { width: 220px; }
.steps-head img { width: min(560px, 82%); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 48px; }
.col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; border-top: 1.5px solid var(--blue); padding-top: 24px; }
.col h2, .col h3, .plan h2, .num { font-family: 'Instrument Sans', system-ui, sans-serif; font-weight: 600; font-variation-settings: normal; }
.col h2, .col h3 { font-size: 22px; line-height: 1.2; }
.col h3 { color: var(--ink); }
.col p { font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.num { font-size: 28px; line-height: 1; }

.cta { background: var(--blue); color: var(--cream); padding: 96px var(--side); display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.cta h2 { color: var(--orange); max-width: 14em; }
.cta p { font-size: 18px; line-height: 1.5; }

/* Oferta */
.poster { background: var(--orange); padding: 72px var(--side) 80px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.poster > img { width: min(1000px, 100%); }
.poster h1 { margin-top: 12px; color: var(--ink); max-width: 15em; }
.poster .poster-title { margin-top: 0; max-width: none; color: var(--cream); font-size: clamp(52px, 13vw, 190px); line-height: 1; }
.poster-lead { max-width: 30em; color: var(--ink); font-weight: 500; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.4; text-wrap: balance; }
.plans { padding-block: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.plan { display: flex; flex-direction: column; gap: 22px; padding: 36px; border: 1.5px solid var(--blue); border-radius: 20px; }
.plan h2 { font-size: 26px; line-height: 1.2; }
.plan p { font-size: 17px; line-height: 1.5; }
.plan .num { font-size: 28px; line-height: 1.15; letter-spacing: -0.01em; color: inherit; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; flex: 1; font-size: 16px; line-height: 1.4; }
.plan li, .checks li { display: flex; gap: 10px; }
.plan li::before, .checks li::before { content: ''; flex: none; width: 20px; height: 20px; background: var(--blue); clip-path: polygon(16% 52%, 28% 41%, 41% 55%, 76% 18%, 88% 29%, 41% 79%); }
.plan.featured { border-width: 3px; }
.plans { padding-bottom: 48px; }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: 16px; line-height: 1.4; }
.every { padding-bottom: 96px; display: flex; flex-direction: column; gap: 24px; }
.every h2 { font: 600 22px/1.2 'Instrument Sans', system-ui, sans-serif; font-variation-settings: normal; }
.every .checks { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px 32px; }
.every p { font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.stack { padding-block: 72px; display: flex; flex-direction: column; gap: 40px; }
.stack .col { min-width: 0; }
.prices { width: 100%; margin: 0; padding: 0; list-style: none; font-size: 16px; line-height: 1.4; }
.prices li { display: flex; justify-content: space-between; gap: 20px; padding-block: 12px; border-bottom: 1px solid color-mix(in srgb, var(--blue) 25%, transparent); }
.prices b { flex: none; font-weight: 600; }
.faq details { border-top: 1.5px solid var(--blue); }
.faq details:last-child { border-bottom: 1.5px solid var(--blue); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding-block: 12px; font-weight: 600; font-size: 19px; line-height: 1.3; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-size: 26px; font-weight: 500; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: '-'; }
.faq p { max-width: 42em; padding-bottom: 22px; font-size: 17px; line-height: 1.55; text-wrap: pretty; }

.band { background: var(--orange); }
.split { padding-block: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 48px; align-items: center; }
.split-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.split-text p { font-size: 18px; line-height: 1.55; max-width: 28em; }
.split-visual { width: 100%; max-width: 660px; justify-self: center; }
/* Na zmianę lewo/prawo tylko w dwóch kolumnach (od ok. 1000 px). W jednej kolumnie makieta zawsze jest pierwsza. */
@media (min-width: 1000px) { .flip .split-text { order: -1; } }
.band h2, .band p, .band a { color: var(--ink); }

/* Realizacje */
.page-head { padding-block: 56px 72px; display: flex; flex-direction: column; gap: 20px; }
.line-top { border-top: 1.5px solid var(--blue); }

/* Polityka prywatności */
.legal { padding-block: 64px 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.legal h2 { margin-top: 26px; font: 600 22px/1.25 'Instrument Sans', system-ui, sans-serif; font-variation-settings: normal; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul { max-width: 42em; font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal .small { margin-top: 28px; font-size: 14px; }

/* Widok projektu */
.case-head { padding-block: 32px 40px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.case-title { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.toggle { display: flex; gap: 4px; padding: 4px; border: 1.5px solid var(--blue); border-radius: 999px; }
.toggle button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--blue); font: 600 15px 'Instrument Sans', system-ui, sans-serif; cursor: pointer; }
.toggle button[aria-pressed='true'] { background: var(--blue); color: var(--cream); }
.film-tag { margin-left: 4px; padding: 2px 7px; border-radius: 999px; background: var(--orange); color: var(--ink); font-size: 11px; font-weight: 600; line-height: 1.3; }
.stage { border-block: 1.5px solid var(--blue); padding: clamp(24px, 4vw, 56px) var(--side); }
.stage zw-makieta { max-width: 820px; margin: 0 auto; }
.case-info { padding-block: 64px; }
.case-next { padding-block: 48px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; }
.case-next span { font-weight: 600; font-size: 17px; }
.case-next a { text-decoration: none; }
.case-next a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; }

/* Kontakt */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); }
.contact-text { padding: 56px var(--side) 72px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.contact-text > img { width: min(420px, 90%); }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 8px; }
.contact-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 18px; }
.contact-panel { background: var(--orange); padding: clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: center; }
.card { width: 100%; max-width: 540px; background: var(--cream); border-radius: 20px; padding: clamp(24px, 3vw, 40px); }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea {
  min-height: 48px; padding: 0 14px; border: 1.5px solid var(--blue); border-radius: 12px;
  background: #fff; color: var(--ink); font: 400 16px/1.45 'Instrument Sans', system-ui, sans-serif;
}
.field textarea { padding-block: 12px; resize: vertical; }
.small { font-size: 13px; line-height: 1.45; }
.form-msg { font-size: 16px; line-height: 1.5; font-weight: 500; }
.form-msg:empty { display: none; }
.hp { position: absolute; left: -9999px; }
.btn:disabled { opacity: .6; cursor: wait; }

/* Makieta: komputer + telefon */
zw-makieta { display: block; position: relative; width: 100%; aspect-ratio: 4 / 3; }
zw-makieta[ring] { aspect-ratio: 1; }
zw-makieta .ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 70s linear infinite paused; }
zw-makieta:hover .ring { animation-play-state: running; }
zw-makieta .ring text { font: 600 31px 'Instrument Sans', system-ui, sans-serif; fill: var(--blue); }
zw-makieta .ring polygon { fill: var(--orange); }
zw-makieta[ring='pomaranczowe'] .ring polygon { fill: var(--cream); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { zw-makieta .ring { animation: none; } html { scroll-behavior: auto; } .menu { transition: none !important; } }

.dev { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 4 / 3; container-type: inline-size; }
zw-makieta[ring] .dev { left: 16%; top: 24%; width: 68%; }

.lap { position: absolute; left: 2%; bottom: 12%; width: 78%; }
.lap-lid { background: #15131f; border-radius: 1.4cqw 1.4cqw 0 0; padding: 1cqw 1cqw 1.3cqw; }
.lap-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: .3cqw; background: var(--s-bg); color: var(--s-ink); display: flex; flex-direction: column; }
.lap-base { height: 1.6cqw; margin: 0 -6%; background: #b9b6b2; border-radius: 0 0 1.6cqw 1.6cqw; display: flex; justify-content: center; }
.lap-base::before { content: ''; width: 14%; height: 40%; background: #8f8c88; border-radius: 0 0 1cqw 1cqw; }

.tel { position: absolute; left: 74%; bottom: 8%; width: 23%; aspect-ratio: 9 / 19; padding: .8cqw; background: #15131f; border-radius: 3.4cqw; box-shadow: 0 0 0 .3cqw var(--cream); --t-title: 1.75cqw; }
zw-makieta[ring='pomaranczowe'] .tel { box-shadow: 0 0 0 .3cqw var(--orange); }
.tel-screen { position: relative; height: 100%; overflow: hidden; border-radius: 2.6cqw; background: var(--s-bg); color: var(--s-ink); display: flex; flex-direction: column; gap: 1.1cqw; padding: 4cqw 1.6cqw 1.6cqw; }

zw-makieta[pokaz='komputer'] .tel { display: none; }
zw-makieta[pokaz='komputer'] .lap { left: 6%; width: 88%; }
zw-makieta[pokaz='telefon'] .lap { display: none; }
zw-makieta[pokaz='telefon'] .tel { left: 34%; bottom: 4%; width: 32%; --t-title: 2.3cqw; }

/* Zastępczy ekran, widoczny dopóki nie ma prawdziwego screena */
.s-bar { display: flex; align-items: center; gap: 1.6cqw; padding: 1.3cqw 2.4cqw; }
.s-bar b { flex: 1; font-weight: 600; font-size: 1.4cqw; }
.s-bar i { width: 3.4cqw; height: .4cqw; border-radius: 1cqw; background: var(--s-line); }
.s-bar u { width: 6cqw; height: 1.8cqw; border-radius: 2cqw; background: var(--s-accent); }
.s-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2.6cqw; padding: 1cqw 2.8cqw 3cqw; align-items: center; }
.s-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1cqw; }
.s-title { font-weight: 600; font-size: 2.9cqw; line-height: 1.12; }
.s-line { width: 92%; height: .45cqw; border-radius: 1cqw; background: var(--s-line); }
.s-line.short { width: 72%; }
.s-btn { width: 11cqw; height: 2.4cqw; border-radius: 2cqw; background: var(--s-accent); margin-top: .6cqw; }
.s-vis { height: 100%; min-height: 0; border-radius: 1cqw; background: var(--s-tint); display: flex; align-items: center; justify-content: center; }
.s-dot { width: 13cqw; height: 13cqw; border-radius: 50%; background: var(--s-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1.7cqw; }
.tel-screen b { font-weight: 600; font-size: 1.1cqw; }
.tel-screen .s-title { font-size: var(--t-title); }
.tel-screen .s-btn { width: 100%; margin: 0; }
.tel-screen .s-vis { flex: 1; height: auto; }
.tel-screen .s-dot { width: 58%; height: auto; aspect-ratio: 1; font-size: 0; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Telefon */
@media (max-width: 760px) {
  .nav { padding-block: 12px; row-gap: 0; }
  .burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--blue); border-radius: 50%; background: none; color: var(--blue); cursor: pointer; }
  .menu { flex-direction: column; flex-wrap: nowrap; align-items: stretch; width: 100%; gap: 2px; max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .3s ease, padding-bottom .3s ease, visibility .3s; }
  .menu > * { flex: none; }
  .menu.open { padding-bottom: 10px; visibility: visible; }
  .menu .btn { min-height: 50px; margin-top: 8px; }

  .hero { padding-block: 8px 0; gap: 28px; }
  .hero-text { gap: 18px; }
  .hero-text .rule { display: none; }
  .hero h1 { font-size: 46px; }
  .hero .lead { line-height: 1.5; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .hero-actions .link { justify-content: center; min-height: 48px; }
  .hero-visual { max-width: none; justify-self: stretch; }
  .hero-visual zw-makieta[ring] { aspect-ratio: 4 / 3; }
  .hero-visual .ring { display: none; }
  .hero-visual zw-makieta[ring] .dev { left: 0; top: 0; width: 100%; }

  .tiles-head { padding-block: 44px 18px; }
  .tiles-head h2 { font-size: 34px; }
  .tiles { display: flex; gap: 12px; background: none; border: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--side); padding: 0 var(--side) 6px; scrollbar-width: none; }
  .tile { flex: 0 0 84%; aspect-ratio: auto; scroll-snap-align: start; border: 1.5px solid var(--blue); border-radius: 20px; gap: 12px; padding: 18px 14px; }
  .tile.orange { border: 0; gap: 12px; }
  .tile.pat-cream, .tile-oferta { display: none; }
  .tile > zw-makieta, .tile > zw-makieta[ring] { width: 100%; }
  .cap { display: block; font-weight: 600; font-size: 16px; color: var(--ink); }
  .oferta-mob { display: block; margin-top: 44px; padding: 36px var(--side) 32px; background: var(--orange); text-align: center; color: var(--ink); font-weight: 600; font-size: 17px; text-underline-offset: 4px; }
  .oferta-mob:hover { color: var(--ink); }
  .oferta-mob img { width: 100%; margin-bottom: 18px; }
  .oferta-mob span { text-decoration: underline; }

  .steps { padding-block: 60px; gap: 32px; }
  .steps-head { gap: 16px; }
  .steps-head .rule { width: 140px; }
  .steps-head img { width: 58%; }
  .steps-head h2 { font-size: 30px; margin-top: 4px; }
  .steps .cols { gap: 22px; }
  .steps .col { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 6px; row-gap: 4px; padding-top: 16px; }
  .steps .num { grid-row: span 2; font-size: 22px; line-height: 1.2; }
  .steps .col h3 { font-size: 20px; }
  .steps .col p { font-size: 16px; line-height: 1.5; }

  .toggle button { padding: 0 12px; }
  .film-tag { margin-left: 2px; padding: 2px 6px; }
  .poster { padding-block: 48px 52px; gap: 20px; }
  .split { padding-block: 40px; gap: 20px; }
  .plans { padding-block: 44px 28px; }
  .plan { padding: 26px; }
  .every { padding-bottom: 56px; }
  .stack { padding-block: 48px; gap: 28px; }
  .stack .cols { gap: 36px; }
  .faq summary { font-size: 17px; }

  .cta { padding-block: 60px; gap: 22px; }
  .cta h2 { font-size: 36px; }
  .cta .btn { align-self: stretch; }

  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px 16px; padding: 36px 0 20px; }
  .footer-brand { grid-column: 1 / -1; }
}
