/* KIYANBUD – kolory z wizytówki: czerń, pomarańcz, beton */
:root {
  --ink: #141414;
  --ink-2: #1d1d1d;
  --ink-3: #2a2a2a;
  --orange: #f28c28;
  --orange-d: #d8741a;
  --orange-soft: #fdf1e4;
  --stone: #e9e8e5;
  --paper: #f6f5f2;
  --white: #ffffff;
  --text: #1c1c1c;
  --muted: #6a6864;
  --line: #dcdad5;

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .25);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 4px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.accent { color: var(--orange); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow.dark { color: var(--orange-d); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: .95em 1.6em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--ink); box-shadow: 0 8px 24px -10px rgba(242, 140, 40, .7); }
.btn-primary:hover { background: #ff9b38; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-3); }
.btn-sm { padding: .6em 1.1em; font-size: .85rem; }
.btn-lg { padding: 1.1em 2em; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, height .3s;
}
.site-header.scrolled { background: rgba(20, 20, 20, .92); backdrop-filter: blur(10px); box-shadow: 0 6px 20px -10px rgba(0,0,0,.5); --header-h: 64px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { background: var(--white); border-radius: 10px; padding: 4px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: .04em; color: var(--white); }
.brand-name b { color: var(--orange); font-weight: 800; }
.brand-tag { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > a:not(.btn) {
  color: rgba(255,255,255,.85); font-weight: 500; font-size: .95rem; position: relative; padding: 4px 0;
}
.main-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.main-nav > a:not(.btn):hover { color: var(--white); }
.main-nav > a:not(.btn):hover::after, .main-nav > a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: var(--white); overflow: hidden; padding: calc(var(--header-h) + 40px) 0 120px;
  background: var(--ink);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(14,14,14,.94) 0%, rgba(14,14,14,.78) 38%, rgba(14,14,14,.25) 70%, rgba(14,14,14,.1) 100%),
    linear-gradient(to top, rgba(14,14,14,.6), transparent 40%);
}
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 800; max-width: 18ch; margin-bottom: .35em; }
.hero .lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.82); max-width: 54ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.5rem; }
.hero-values { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-values li {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem;
}
.hero-values .ic { color: var(--orange); stroke-width: 3; }
.hero-chevron {
  position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(56px, 8vw, 120px); z-index: 3;
  background: var(--ink);
  clip-path: polygon(0 100%, 0 40%, 50% 100%, 100% 40%, 100% 100%);
}
.hero-chevron::before {
  content: ""; position: absolute; inset: 0; background: var(--orange);
  clip-path: polygon(0 40%, 0 24%, 50% 84%, 100% 24%, 100% 40%, 50% 100%);
}

/* Trust strip */
.trust { background: var(--ink); color: var(--white); padding: 18px 0 64px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust-item {
  display: flex; gap: 16px; align-items: flex-start; padding: 24px;
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); background: var(--ink-2);
}
.trust-item h3 { font-size: 1rem; margin-bottom: .25em; }
.trust-item p { color: rgba(255,255,255,.65); font-size: .92rem; margin: 0; }
.trust-icon {
  flex-shrink: 0; width: 50px; height: 50px; display: grid; place-items: center;
  border: 2px solid var(--orange); color: var(--orange);
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
  background: rgba(242,140,40,.08);
}
.trust-icon .ic { width: 22px; height: 22px; }

/* Sections */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-media { position: relative; aspect-ratio: 1 / 1.02; }
.about-media img { position: absolute; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.am-1 { top: 0; left: 0; width: 82%; height: 78%; }
.am-2 { right: 0; bottom: 0; width: 46%; height: 58%; border: 6px solid var(--paper); }
.am-badge {
  position: absolute; left: 6%; bottom: 4%; background: var(--orange); color: var(--ink);
  padding: 18px 22px; border-radius: var(--radius-sm); box-shadow: var(--shadow);
  display: flex; flex-direction: column; line-height: 1.2;
}
.am-badge strong { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; }
.am-badge span { font-size: .85rem; font-weight: 500; }
.about-copy p { color: #3d3b38; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.checklist .ic { color: var(--white); background: var(--orange); border-radius: 50%; padding: 4px; width: 24px; height: 24px; stroke-width: 3; }
.owner {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 18px 20px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line);
}
.owner-mark {
  width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--orange);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800;
}
.owner strong { display: block; font-family: var(--font-head); }
.owner span { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.owner-call { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--orange-d); }
.owner-call:hover { color: var(--ink); }

/* Services */
.services { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.services::before {
  content: ""; position: absolute; right: -10%; top: -20%; width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(242,140,40,.12), transparent 60%); pointer-events: none;
}
.services .section-sub { color: rgba(255,255,255,.65); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.service {
  padding: 30px 28px; border-radius: var(--radius); background: var(--ink-2);
  border: 1px solid rgba(255,255,255,.08); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.service::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.service:hover { transform: translateY(-4px); border-color: rgba(242,140,40,.4); background: #222; }
.service:hover::after { transform: scaleX(1); }
.service h3 { font-size: 1.08rem; margin: 18px 0 8px; }
.service p { color: rgba(255,255,255,.65); font-size: .93rem; margin: 0; }
.service-icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(242,140,40,.12); color: var(--orange);
}
.service-icon .ic { width: 26px; height: 26px; stroke-width: 1.8; }
.service.featured { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.service.featured p { color: rgba(20,20,20,.78); }
.service.featured .service-icon { background: var(--ink); }
.service.featured::after { background: var(--ink); }
.service.featured:hover { background: #ff9b38; }

/* Portfolio */
.portfolio { background: var(--stone); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter {
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  padding: .65em 1.3em; border-radius: 999px; border: 1.5px solid #c9c6c0; background: transparent; color: var(--text);
  cursor: pointer; transition: all .2s;
}
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.gallery { columns: 3 300px; column-gap: 16px; }
.g-item {
  break-inside: avoid; margin: 0 0 16px; position: relative; border-radius: var(--radius); overflow: hidden;
  background: #d5d2cc; transition: opacity .35s, transform .35s;
}
.g-item.is-hidden { display: none; }
.g-item a { display: block; position: relative; }
.g-item img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.g-item a::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,14,14,.75), transparent 55%); opacity: .0; transition: opacity .35s;
}
.g-item figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; color: var(--white);
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; line-height: 1.3;
  transform: translateY(8px); opacity: 0; transition: transform .35s var(--ease), opacity .35s; pointer-events: none;
}
.g-item:hover img { transform: scale(1.05); }
.g-item:hover a::after, .g-item:focus-within a::after { opacity: 1; }
.g-item:hover figcaption, .g-item:focus-within figcaption { transform: none; opacity: 1; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px 24px 26px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.step-no {
  font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--orange); display: block; margin-bottom: 14px;
}
.step p { color: var(--muted); font-size: .94rem; margin: 0; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 48px; right: -16px; width: 12px; height: 12px;
  border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); transform: rotate(45deg); z-index: 1;
}

/* CTA band */
.cta-band { background: var(--orange); padding: 56px 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(0,0,0,.035) 0 2px, transparent 2px 22px);
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: .2em; color: var(--ink); }
.cta-inner p { margin: 0; color: rgba(20,20,20,.8); font-size: 1.1rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: stretch; }
.contact-card {
  background: var(--ink); color: var(--white); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
  position: relative; overflow: hidden;
}
.contact-card::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px;
  border: 26px solid var(--orange); opacity: .14; transform: rotate(45deg);
}
.cc-logo { background: var(--white); border-radius: 12px; padding: 6px; margin-bottom: 24px; }
.contact-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cc-person { margin: 20px 0 22px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.cc-person strong { display: block; font-family: var(--font-head); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .03em; }
.cc-person > span { color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; }
.cc-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; }
.cc-list li { display: flex; align-items: center; gap: 14px; line-height: 1.45; }
.cc-list a:hover { color: var(--orange); }
.cc-ic {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--orange); color: var(--orange);
  display: grid; place-items: center;
}
.cc-legal { display: flex; flex-wrap: wrap; gap: 8px 12px; position: relative; z-index: 1; }
.cc-legal span { background: var(--ink-3); border-radius: 6px; padding: 6px 12px; font-size: .85rem; color: rgba(255,255,255,.8); }
.cc-legal b { color: var(--orange); margin-right: 4px; }

.contact-form { background: var(--white); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); }
.contact-form h3 { font-size: 1.5rem; margin-bottom: .2em; }
.form-note { color: var(--muted); font-size: .9rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: #3d3b38; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .97rem; padding: .8em 1em; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--paper); color: var(--text); transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: var(--white); }
.field input.invalid { border-color: #c4361b; }
.form-status { font-size: .93rem; margin: 14px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); }
.form-status.is-error { color: #9c2a16; background: #fbe9e5; }
.form-status.is-success { color: #1d5e2c; background: #e6f4e9; }

.map { margin-top: 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 340px; background: var(--stone); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.85) contrast(1.05); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 44px 0; font-size: .9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { background: var(--white); border-radius: 8px; padding: 3px; }
.footer-brand p { margin: 0; font-size: .85rem; }
.footer-brand .brand-name { font-size: 1.15rem; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a:hover { color: var(--orange); }
.footer-legal { display: flex; flex-direction: column; text-align: right; gap: 2px; font-size: .82rem; }

/* Floating call button (mobile) */
.fab-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: var(--orange); color: var(--ink); display: none; place-items: center;
  box-shadow: 0 10px 26px -6px rgba(242,140,40,.75);
}
.fab-call .ic { width: 26px; height: 26px; }
.fab-call::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--orange);
  animation: pulse 2.2s infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,10,10,.94);
  display: flex; align-items: center; justify-content: center; padding: 60px 72px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: var(--radius-sm); }
.lb-figure figcaption { color: rgba(255,255,255,.85); font-family: var(--font-head); font-weight: 600; margin-top: 14px; text-align: center; }
.lb-close, .lb-nav {
  position: absolute; background: rgba(255,255,255,.08); color: var(--white); border: 0; cursor: pointer;
  border-radius: 50%; width: 50px; height: 50px; font-size: 2rem; line-height: 1; display: grid; place-items: center;
  transition: background .2s;
}
.lb-close:hover, .lb-nav:hover { background: var(--orange); color: var(--ink); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .main-nav {
    position: fixed; inset: 0; background: var(--ink); flex-direction: column; justify-content: center; gap: 26px;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .main-nav.open { opacity: 1; visibility: visible; }
  .main-nav > a:not(.btn) { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; }
  .trust-grid { grid-template-columns: 1fr; }
  .fab-call { display: grid; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-legal { text-align: center; }
}
@media (max-width: 600px) {
  .brand-tag { display: none; }
  .services-grid, .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding-bottom: 100px; }
  .hero-chevron { height: 56px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cta-inner .btn { width: 100%; }
  .owner-call { margin-left: 0; width: 100%; }
  .lightbox { padding: 60px 8px; }
  .lb-nav { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .gallery { columns: 2 150px; column-gap: 10px; }
  .g-item { margin-bottom: 10px; }
  .g-item figcaption { display: none; }
}

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