/* ============ Tokens ============ */
:root {
  --bg: #f6f1e8;
  --bg-2: #efe8db;
  --surface: #fffdf9;
  --surface-2: #f9f5ee;
  --line: rgba(23, 32, 58, 0.09);
  --text: #17203a;
  --muted: #4b556b;
  --text-2: #2f3950;
  --blue: #2563c9;
  --blue-2: #3b7ce6;
  --blue-dim: rgba(37, 99, 201, 0.10);
  --violet: #6b4fd1;
  --violet-2: #8a70e8;
  --violet-dim: rgba(107, 79, 209, 0.12);

  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 26px;
  --shadow: 0 1px 2px rgba(23,32,58,0.04), 0 14px 34px -18px rgba(23,32,58,0.22);
  --shadow-hover: 0 1px 2px rgba(23,32,58,0.05), 0 26px 46px -18px rgba(37,99,201,0.28);

  --wrap: 1180px;
  --gap: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* ============ Topbar ============ */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  max-width: var(--wrap); margin: 0 auto;
  padding: 18px 24px;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(246,241,232,0.96), rgba(246,241,232,0.75));
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand__logo { height: 34px; width: auto; max-width: none; }
.topbar__nav { display: flex; gap: 26px; margin-left: auto; color: var(--muted); font-size: 0.95rem; }
.topbar__nav a { transition: color 0.2s; }
.topbar__nav a:hover { color: var(--violet); }
.topbar__phone {
  font-family: var(--font-display); font-weight: 600;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.topbar__phone:hover { border-color: var(--blue); background: var(--blue-dim); color: var(--blue); }

/* ============ Layout ============ */
main > section { max-width: var(--wrap); margin: 0 auto; padding: 96px 24px; }
.section__head { max-width: 720px; margin-bottom: 44px; }
.section__head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 600; }
.section__head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 26px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.3s;
}
.btn--primary {
  background: linear-gradient(120deg, var(--blue), var(--violet));
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(107,79,209,0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(37,99,201,0.6); }
.btn--ghost { border-color: rgba(23,32,58,0.18); background: transparent; color: var(--text); }
.btn--ghost:hover { border-color: var(--violet); color: var(--violet); }

/* ============ Hero ============ */
.hero {
  padding-top: 88px !important;
  padding-bottom: 72px !important;
  position: relative;
}
.hero__copy { max-width: 960px; margin: 0 auto; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 440px at 50% 20%, rgba(59,124,230,0.16), transparent 70%),
    radial-gradient(520px 320px at 50% 95%, rgba(138,112,232,0.14), transparent 70%);
}
.hero__lead { color: var(--violet); font-weight: 500; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 700; letter-spacing: -0.025em; }
.hero__logo { display: block; width: clamp(220px, 34vw, 420px); max-width: 80%; height: auto !important; aspect-ratio: 1780 / 273; object-fit: contain; margin: 30px auto 0; }
.hero__sub { color: var(--muted); font-size: 1.15rem; max-width: 720px; margin: 24px auto 0; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }


/* ============ Karty (kontakt) ============ */
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(107,79,209,0.35); }
.tile h3 { font-size: 1.32rem; font-weight: 600; margin-bottom: 12px; }
.tile p { color: var(--muted); font-size: 0.97rem; }

/* ============ Usługi – lista ============ */
.svc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.svc__item {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  padding: 34px 40px;
  border-top: 1px solid var(--line);
}
.svc__item:first-child { border-top: 0; }
.svc__head { display: flex; gap: 18px; align-items: flex-start; }
.svc__icon {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; padding: 9px;
  background: var(--blue-dim); color: var(--blue);
}
.svc__item:nth-child(even) .svc__icon { background: var(--violet-dim); color: var(--violet); }
.svc__head h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.25; padding-top: 9px; }
.svc__body p { color: var(--text-2); font-size: 1.03rem; line-height: 1.7; max-width: 62ch; }
.svc__points { margin-top: 16px; display: grid; gap: 8px; }
.svc__points li { padding-left: 20px; position: relative; font-size: 0.98rem; color: var(--text); }
.svc__points li::before { content: ""; position: absolute; left: 0; top: 12px; width: 9px; height: 2px; background: var(--blue); }

/* Liczby */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: var(--gap); }
.fact {
  display: flex; align-items: center; gap: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px 32px; box-shadow: var(--shadow);
}
.fact__value {
  flex-shrink: 0;
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em;
  color: var(--blue);
}
.fact:nth-child(even) .fact__value { color: var(--violet); }
.fact__label { color: var(--text-2); font-size: 1rem; line-height: 1.5; }

/* Co dostajesz / Chemia */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: var(--gap); }
.info {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 32px; box-shadow: var(--shadow);
}
.info h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 16px; }
.info p { color: var(--text-2); font-size: 1.03rem; line-height: 1.7; }
.info__list { display: grid; gap: 12px; }
.info__list li { padding-left: 26px; position: relative; font-size: 1.02rem; color: var(--text); }
.info__list li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 11px; height: 6px;
  border-left: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: rotate(-45deg);
}

/* ============ Proces ============ */
.process { padding-top: 40px !important; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.steps li { padding: 28px 30px 30px; border-top: 2px solid var(--blue); position: relative; }
.steps li:nth-child(even) { border-top-color: var(--violet); }
.step__no { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; color: var(--blue); display: block; margin-bottom: 18px; }
.steps li:nth-child(even) .step__no { color: var(--violet); }
.steps h3 { font-size: 1.2rem; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 0.95rem; }

/* ============ Kontakt ============ */
.contact__grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: auto; gap: var(--gap);
}
.form { grid-row: 1 / 4; display: grid; gap: 18px; align-content: start; }
.form__row { display: grid; gap: 7px; }
.form label { font-size: 0.88rem; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--r-sm);
  background: var(--bg); border: 1px solid var(--line);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-dim); outline: none; }
.form textarea { resize: vertical; }
.form input[aria-invalid="true"] { border-color: #d64f4f; }
.form .btn { justify-self: start; margin-top: 6px; }
.form__status { font-size: 0.9rem; color: var(--violet); min-height: 1.4em; }

.tile--phone {
  grid-column: 2 / 4; grid-row: 1 / 3;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  background: linear-gradient(140deg, var(--blue), var(--violet));
  color: #fff; border: none;
}
.tile--phone:hover { border-color: transparent; }
.phone__label { font-size: 0.95rem; opacity: 0.88; }
.phone__number { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.phone__hours { font-size: 0.88rem; opacity: 0.82; }

.tile--mail { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.mail__label, .area__label { font-size: 0.85rem; color: var(--muted); }
.mail__addr { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--blue); word-break: break-all; }
.tile--area { background: var(--violet-dim); border-color: rgba(107,79,209,0.18); }
.tile--area p { margin-top: 6px; font-size: 0.93rem; color: var(--text); }

/* ============ Footer ============ */
.footer {
  max-width: var(--wrap); margin: 0 auto; padding: 32px 24px 48px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 0.85rem;
}

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.tile.reveal.is-visible:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tile, .btn { transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .form { grid-column: 1 / 3; grid-row: auto; }
  .tile--phone { grid-column: 1 / 3; grid-row: auto; }
}

@media (max-width: 860px) {
  .topbar__nav { display: none; }
  .brand__logo { height: 28px; }
  .topbar__phone { margin-left: auto; }
  .steps { grid-template-columns: 1fr; }
  .svc__item { grid-template-columns: 1fr; gap: 14px; padding: 28px 30px; }
  .svc__body { padding-left: 64px; }
  .facts, .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  main > section { padding: 64px 18px; }
  .hero { padding-top: 48px !important; }
  .contact__grid { grid-template-columns: 1fr; }
  .form, .tile--phone { grid-column: auto; }
  .tile { padding: 24px; }
  .svc__item { padding: 24px 20px; }
  .svc__head { gap: 14px; }
  .svc__icon { flex-basis: 40px; width: 40px; height: 40px; padding: 8px; }
  .svc__head h3 { font-size: 1.15rem; padding-top: 8px; }
  .svc__body { padding-left: 0; }
  .svc__body p { font-size: 1rem; }
  .fact { flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; }
  .info { padding: 24px; }
  .section__head h2 { font-size: 1.55rem; }
  .topbar { padding: 14px 18px; gap: 12px; }
  .brand__logo { height: 22px; }
  .hero__logo { width: 220px; margin-top: 22px; }
  .topbar__phone { margin-left: auto; padding: 8px 12px; font-size: 0.9rem; white-space: nowrap; }
}

@media (max-width: 400px) {
  .brand__logo { height: 19px; }
  .topbar__prefix { display: none; }
}
