/* MG Control – arkusz stylów */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0f1113;
  --ink-2: #1a1d21;
  --ink-3: #2a2f35;
  --paper: #ffffff;
  --paper-2: #f3f4f5;
  --line: #e2e4e7;
  --muted: #5f6670;
  --muted-d: #a3aab3;
  --accent: #f2a900;      /* kolor akcentu – zmień tutaj */
  --accent-d: #d99600;
  --ok: #2fbf71;
  --radius: 10px;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }

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

.eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: .78rem;
  font-weight: 500; color: var(--accent); margin-bottom: .9em;
}
.eyebrow--dark { color: var(--muted); }
.eyebrow--dark::before {
  content: ""; display: inline-block; width: 22px; height: 2px;
  background: var(--accent); vertical-align: middle; margin-right: 10px;
}

/* ---------- przyciski ---------- */
.btn {
  display: inline-block; background: var(--accent); color: var(--ink);
  font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none;
  padding: .85em 1.6em; border-radius: 999px; border: 2px solid var(--accent);
  cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--accent-d); border-color: var(--accent-d); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn--small { padding: .5em 1.2em; font-size: .9rem; }

/* ---------- górny pasek ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,17,19,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { width: 230px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: #e6e8ea; text-decoration: none; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav .btn { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .25s; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% 10%, rgba(242,169,0,.10), transparent 60%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--ink);
  color: #fff;
  padding: clamp(64px, 10vw, 120px) 0;
}
.hero__in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--muted-d); font-weight: 300; }
.lead { font-size: 1.1rem; color: #c9ced4; max-width: 560px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.io {
  background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 14px;
  padding: 26px; box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.io__row {
  display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--ink-3);
  font-size: .85rem; letter-spacing: .14em;
}
.io__row:last-child { border-bottom: 0; }
.io__sw {
  width: 58px; height: 28px; border: 3px solid #fff; border-radius: 999px; position: relative;
}
.io__sw::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border: 3px solid #fff; border-radius: 50%; box-sizing: border-box; transition: left .3s;
}
.io__sw.is-on::after { left: 31px; background: var(--accent); border-color: var(--accent); }
.io__lbl { color: #e6e8ea; }
.io__st { color: var(--ok); font-weight: 600; }
.io__st--off { color: var(--muted-d); }

/* ---------- sekcje ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: #e6e8ea; }
.section__head { margin-bottom: 44px; max-width: 640px; }

/* usługi */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s; background: #fff;
}
.card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.06); }
.card__ic {
  width: 40px; height: 40px; margin-bottom: 18px; color: var(--ink);
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* kroki */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps li { border-top: 3px solid var(--ink); padding-top: 18px; }
.steps b { display: block; font-size: .85rem; letter-spacing: .15em; color: var(--accent-d); margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* realizacje */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.work { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.work__img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.work__img--ph {
  display: grid; place-items: center; color: var(--muted-d);
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--ink-2);
}
.work--text { border-top: 3px solid var(--ink); }
.work--text .work__body { padding-top: 26px; }
.work__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.work__body p { color: var(--muted); font-size: .95rem; }
.tags { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .75rem; padding: .3em .8em; border-radius: 999px; background: var(--paper-2); color: var(--ink); }

/* o firmie */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.about h2 { color: #fff; }
.about p { color: #c9ced4; }
.about__h { color: #fff; margin-top: 8px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--ink-3); background: var(--ink-2); padding: .5em 1em; border-radius: 6px; font-size: .88rem; }

/* kontakt */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.cinfo { list-style: none; padding: 0; margin: 28px 0 0; }
.cinfo li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cinfo span { display: block; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.cinfo a { text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.cinfo a:hover { color: var(--accent-d); }

.form { background: var(--paper-2); border-radius: 14px; padding: clamp(22px, 4vw, 36px); }
.form label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 16px; }
.form i { font-style: normal; color: var(--muted); font-weight: 400; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 1rem;
  padding: .75em .9em; border: 1px solid #cfd3d8; border-radius: 8px; background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form textarea { resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--muted); font-size: .8rem !important; }
.consent input { margin-top: 3px; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__msg { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: .95rem; }
.form__msg.ok { background: #e3f6ec; color: #13633a; }
.form__msg.err { background: #fdecea; color: #8a1f17; }

/* stopka */
.footer { background: var(--ink); color: var(--muted-d); border-top: 1px solid var(--ink-3); padding: 34px 0; font-size: .85rem; }
.footer__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer__logo { width: 150px; opacity: .8; }
.footer__up { text-decoration: none; }
.footer__up:hover { color: #fff; }

/* ---------- responsywność ---------- */
@media (max-width: 980px) {
  .cards, .works { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero__in, .about, .contact { grid-template-columns: 1fr; }
  .hero__panel { max-width: 420px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--ink-3);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav.open { max-height: 340px; }
  .nav a { padding: 16px 24px; width: 100%; border-top: 1px solid var(--ink-3); }
  .nav .btn { border-radius: 0; text-align: left; }
  .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); }
  .cards, .works, .steps, .row2 { grid-template-columns: 1fr; }
  .brand img { width: 180px; }
  .hero__panel { display: none; }
}
