:root {
  --ink: #0f1b2d;
  --ink-2: #44526a;
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --line: #e2e7ef;
  --accent: #1f6feb;
  --accent-dark: #1554b8;
  --lime: #c6f432;
  --dark: #0f1b2d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 27, 45, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.small { font-size: .9rem; color: var(--ink-2); }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  background: var(--accent); color: #fff; font-weight: 700;
  padding: 14px 22px; border-radius: 10px; border: 2px solid var(--accent);
  cursor: pointer; font-size: 1rem; font-family: inherit;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; }
.btn--small { padding: 8px 16px; color: #fff !important; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--accent); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { padding: 72px 0 64px; background: radial-gradient(1000px 400px at 80% 0%, #e8f0ff 0%, transparent 70%); }
.hero__in { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; margin: 0 0 12px; }
.hl { background: linear-gradient(transparent 62%, var(--lime) 62%); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 600px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 20px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-size: .95rem; }
.ticks li::before { content: "✓ "; color: #18a058; font-weight: 800; }

.mock { display: flex; justify-content: center; }
.mock__phone {
  width: 230px; padding: 16px; border-radius: 32px; background: #fff;
  border: 8px solid var(--dark); box-shadow: var(--shadow);
  display: grid; gap: 10px; transform: rotate(3deg);
}
.mock__bar { width: 60px; height: 6px; border-radius: 6px; background: var(--line); margin: 0 auto 4px; }
.mock__img { height: 110px; border-radius: 12px; background: linear-gradient(135deg, #1f6feb, #6ea8ff); }
.mock__line { height: 10px; border-radius: 6px; background: var(--line); }
.w80 { width: 80%; } .w60 { width: 60%; } .w70 { width: 70%; }
.mock__btn { background: #18a058; color: #fff; font-weight: 700; text-align: center; border-radius: 10px; padding: 10px; font-size: .9rem; }
.mock__map { height: 70px; border-radius: 12px; background:
  linear-gradient(90deg, transparent 48%, #fff 48% 52%, transparent 52%),
  linear-gradient(0deg, transparent 45%, #fff 45% 55%, transparent 55%),
  #dfe9d8; position: relative; }

/* Sections */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #e9eef6; }
.section--dark h2 { color: #fff; }
.section--dark a { color: var(--lime); }
.sub { color: var(--ink-2); margin: -4px 0 36px; max-width: 640px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--ink-2); margin: 0; font-size: .97rem; }
.ico { font-size: 1.6rem; margin-bottom: 8px; }
.for { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 700; }
.for span { font-weight: 500; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .9rem; }

/* Portfolio */
.work { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work__thumb { height: 200px; display: flex; align-items: center; justify-content: center; }
.work__thumb span { font-weight: 800; font-size: 1.5rem; color: #fff; padding: 10px 18px; border-radius: 10px; }
.work__thumb--auto { background: linear-gradient(135deg, #111 0%, #2a2a2a 60%, #f5a300 60.5%); }
.work__thumb--auto span { background: rgba(0,0,0,.55); }
.work__thumb--hair { background: linear-gradient(135deg, #f3e9e2, #d9b8a3); }
.work__thumb--hair span { color: #3b2a22; font-family: Georgia, serif; font-style: italic; background: rgba(255,255,255,.6); }
.work__thumb--fit { background: linear-gradient(135deg, #0f1012 0%, #23252b 55%, #ff5a1f 55.5%); }
.work__thumb--fit span { background: rgba(0,0,0,.55); }
.work__body { padding: 20px 24px 24px; }
.work__body p { color: var(--ink-2); margin: 0 0 12px; }
.more { color: var(--accent); font-weight: 700; }

/* Prices */
.prices { align-items: stretch; }
.price { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.price--best { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.badge { position: absolute; top: -13px; left: 24px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.amount { font-size: 2.2rem; font-weight: 800; margin: 4px 0 0; }
.amount small { font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.note { color: var(--ink-2); margin: 0 0 16px; font-size: .9rem; }
.price ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.price li { padding: 6px 0 6px 26px; position: relative; border-bottom: 1px dashed var(--line); font-size: .97rem; }
.price li::before { content: "✓"; position: absolute; left: 0; color: #18a058; font-weight: 800; }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lime); font-weight: 800; margin-bottom: 12px; }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--ink-2); font-size: .95rem; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { font-weight: 700; cursor: pointer; list-style: none; position: relative; padding-right: 30px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.4rem; color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); margin: 10px 0 0; }

/* Contact */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: #fff; color: var(--ink); padding: 28px; border-radius: var(--radius); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 12px; border: 1px solid #cbd3df; border-radius: 8px; width: 100%; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: auto; margin-top: 4px; }
.form .check a { color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.msg { margin: 0; font-weight: 600; min-height: 1.2em; }
.msg.ok { color: #18a058; } .msg.err { color: #c62828; }

/* Footer */
.foot { background: #0a1320; color: #9aa7bb; padding: 24px 0; font-size: .9rem; }
.foot__in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot a { color: #c9d3e2; }

/* Responsive */
@media (max-width: 900px) {
  .hero__in, .contact { grid-template-columns: 1fr; }
  .mock { display: none; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .prices { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 10px; border-bottom: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 44px 0 40px; }
  .section { padding: 56px 0; }
  .grid3, .grid2, .steps, .form { grid-template-columns: 1fr; }
  .form { padding: 20px; }
  .hero__cta .btn { flex: 1 1 100%; }
}

/* Portfolio – karty z podglądem na żywo */
#portfolio .grid3 { align-items: stretch; }
.work { display: flex; flex-direction: column; }
.work:hover { transform: none; box-shadow: var(--shadow); }
.work__thumb { display: block; position: relative; height: auto; aspect-ratio: 16 / 11; overflow: hidden; background: #e9edf3; border-bottom: 1px solid var(--line); }
.work__thumb iframe { position: absolute; top: 0; left: 0; width: 400%; height: 400%; border: 0; transform: scale(.25); transform-origin: 0 0; pointer-events: none; }
.work__thumb::after { content: "Otwórz demo ↗"; position: absolute; right: 10px; bottom: 10px; background: rgba(15,27,45,.85); color: #fff; font-size: .8rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; opacity: 0; transition: opacity .2s; }
.work__thumb:hover::after, .work__thumb:focus::after { opacity: 1; }
.work__body { display: flex; flex-direction: column; flex: 1; }
.work__body h3 { margin-top: 8px; }
.tag { align-self: flex-start; background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink-2); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.tag--pro { background: #fff4e5; border-color: #ffd79a; color: #8a5200; }
.work__list { list-style: none; padding: 0; margin: 0 0 12px; font-size: .93rem; }
.work__list li { position: relative; padding: 3px 0 3px 22px; }
.work__list li::before { content: "✓"; position: absolute; left: 0; color: #18a058; font-weight: 800; }
.work__for { font-size: .88rem; color: var(--ink-2); margin: 0 0 10px; }
.work__price { margin: auto 0 14px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .95rem; color: var(--ink) !important; }
.work__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn--small2 { padding: 8px 16px; }
.more-types { margin-top: 28px; display: flex; gap: 24px; align-items: center; justify-content: space-between; background: #fff; border: 2px dashed #c9d6ea; border-radius: var(--radius); padding: 24px 28px; }
.more-types h3 { margin-bottom: 6px; }
.more-types p { color: var(--ink-2); margin: 0 0 6px; }
.more-types .for { margin-top: 10px; }
.more-types .btn { flex-shrink: 0; }
@media (max-width: 900px) { .more-types { flex-direction: column; align-items: flex-start; } }
@media (max-width: 600px) { .work__btns .btn { flex: 1 1 auto; } .more-types { padding: 20px; } .more-types .btn { width: 100%; } }

/* Ekran ładowania i płynne pojawianie się sekcji */
#loader { position: fixed; inset: 0; z-index: 999; background: #fff; display: grid; place-items: center; transition: opacity .45s ease, visibility .45s; animation: loaderSafety 0s 3s forwards; }
#loader.hide { opacity: 0; visibility: hidden; }
.loader__box { display: grid; justify-items: center; gap: 16px; }
.loader__box img { animation: loaderPulse 1s ease-in-out infinite; }
.loader__bar { width: 140px; height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 40%; background: var(--accent); border-radius: 4px; animation: loaderMove 1s ease-in-out infinite; }
@keyframes loaderMove { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes loaderPulse { 50% { transform: scale(1.08); } }
@keyframes loaderSafety { to { opacity: 0; visibility: hidden; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  #loader { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
