/* ============================================================
   napraweX.pl — główny arkusz stylów
   Paleta wg logo: granat/czerń + pomarańcz + niebieski + biel
   ============================================================ */

:root {
  --navy: #0d1017;          /* tło ciemne (jak tło logo) */
  --navy-2: #151a24;        /* ciemne sekcje / karty na ciemnym */
  --navy-3: #1e2432;        /* obramowania na ciemnym */
  --orange: #f2830b;        /* pomarańcz z logo — główny akcent / CTA */
  --orange-dark: #d97207;
  --orange-soft: #fff3e4;
  --blue: #1a6fd4;          /* niebieski z logo — akcent drugorzędny */
  --blue-dark: #1259ae;
  --blue-soft: #e8f1fc;
  --light: #f6f7f9;         /* jasne tło sekcji */
  --white: #ffffff;
  --text: #2b303b;          /* tekst na jasnym */
  --text-soft: #5b6270;
  --text-on-dark: #eef1f6;
  --text-on-dark-soft: #aab2c0;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 8px 28px rgba(13, 16, 23, .10);
  --shadow-lg: 0 16px 44px rgba(13, 16, 23, .16);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

ul, ol { list-style: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Typografia ---------- */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.22;
  color: var(--navy);
  letter-spacing: -.015em;
}
h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: 1.22rem; }

.section { padding: 78px 0; }
.section--light { background: var(--light); }
.section--dark { background: var(--navy); }
.section--dark h2, .section--dark h3 { color: var(--text-on-dark); }
.section--dark p { color: var(--text-on-dark-soft); }

.section-head { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.section-head p { margin-top: 14px; color: var(--text-soft); font-size: 1.05rem; }
.section--dark .section-head p { color: var(--text-on-dark-soft); }

.kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 19px; height: 19px; flex: none; }

.btn--primary { background: var(--orange); color: #fff !important; box-shadow: 0 8px 22px rgba(242, 131, 11, .35); }
.btn--primary:hover { background: var(--orange-dark); }

.btn--outline { border-color: rgba(255, 255, 255, .35); color: #fff !important; background: transparent; }
.btn--outline:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.btn--blue { background: var(--blue); color: #fff !important; box-shadow: 0 8px 22px rgba(26, 111, 212, .3); }
.btn--blue:hover { background: var(--blue-dark); }

.btn--ghost-dark { border-color: rgba(13,16,23,.2); color: var(--navy) !important; background: transparent; }
.btn--ghost-dark:hover { border-color: var(--navy); }

/* ---------- Pasek górny ---------- */
.topbar {
  background: var(--navy-2);
  color: var(--text-on-dark-soft);
  font-size: .86rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--navy-3);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar a { color: var(--text-on-dark); font-weight: 700; }
.topbar a:hover { color: var(--orange); }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item svg { width: 15px; height: 15px; color: var(--orange); }
.topbar-group { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Nagłówek / nawigacja ---------- */
.header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 48px; width: auto; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > ul { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block;
  padding: 10px 15px;
  color: var(--text-on-dark);
  font-weight: 700;
  font-size: .98rem;
  border-radius: var(--radius-sm);
}
.nav a:hover, .nav a.active { color: var(--orange); }

/* dropdown usług */
.has-drop { position: relative; }
.has-drop > a::after {
  content: "";
  display: inline-block;
  margin-left: 7px;
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
}
.drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 300px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .18s ease;
}
.has-drop:hover .drop, .has-drop:focus-within .drop, .has-drop.open .drop {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.drop a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.drop a:hover { background: var(--orange-soft); color: var(--navy); }
.drop a svg { width: 21px; height: 21px; color: var(--orange); flex: none; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--orange);
  color: #fff !important;
  font-weight: 800;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: .97rem;
  box-shadow: 0 6px 18px rgba(242, 131, 11, .35);
  transition: background .15s;
}
.header-phone:hover { background: var(--orange-dark); }
.header-phone svg { width: 17px; height: 17px; }

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 46px; height: 46px;
  cursor: pointer;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 3px;
  background: #fff;
  margin: 5px auto;
  border-radius: 3px;
  transition: all .25s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(242, 131, 11, .16), transparent 60%),
    radial-gradient(700px 420px at -5% 110%, rgba(26, 111, 212, .18), transparent 60%),
    var(--navy);
  color: var(--text-on-dark);
  padding: 88px 0 92px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .hl { color: var(--orange); }
.hero p.lead { font-size: 1.15rem; color: var(--text-on-dark-soft); max-width: 560px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: .93rem; color: var(--text-on-dark); }
.hero-badge svg { width: 20px; height: 20px; color: var(--orange); flex: none; }

.hero-art {
  background: var(--navy-2);
  border: 1px solid var(--navy-3);
  border-radius: 22px;
  padding: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  box-shadow: var(--shadow-lg);
}
.hero-art img { width: 210px; height: 210px; border-radius: 26px; }
.hero-art-caption { text-align: center; }
.hero-art-caption strong { color: #fff; font-size: 1.05rem; display: block; }
.hero-art-caption span { color: var(--text-on-dark-soft); font-size: .92rem; }

/* podstrony — hero mniejsze */
.hero--sub { padding: 64px 0 70px; }
.breadcrumbs { font-size: .88rem; margin-bottom: 18px; color: var(--text-on-dark-soft); }
.breadcrumbs a { color: var(--text-on-dark-soft); }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs span { color: var(--orange); }

/* ---------- Karty usług ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid #e8eaef;
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
}
.service-icon {
  width: 58px; height: 58px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange);
}
.service-card:nth-child(even) .service-icon { background: var(--blue-soft); color: var(--blue); }
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.25rem; }
.service-card p { color: var(--text-soft); font-size: .97rem; flex: 1; }
.service-link {
  font-weight: 800;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.service-link:hover { color: var(--orange-dark); gap: 11px; }
.service-link { transition: gap .15s ease; }

/* ---------- Kroki ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: var(--navy-2);
  border: 1px solid var(--navy-3);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.step:nth-child(even) .step-num { background: var(--blue); }
.step h3 { color: #fff; font-size: 1.08rem; margin-bottom: 8px; }
.step p { color: var(--text-on-dark-soft); font-size: .93rem; }

/* ---------- Atuty ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid #e8eaef;
  border-radius: var(--radius);
  padding: 24px;
}
.feature-icon {
  width: 48px; height: 48px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
}
.feature:nth-child(even) .feature-icon { background: var(--orange-soft); color: var(--orange); }
.feature-icon svg { width: 25px; height: 25px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 5px; }
.feature p { font-size: .92rem; color: var(--text-soft); }

/* ---------- Obszar działania ---------- */
.area-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.area-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: #fff;
  border: 1px solid #e2e5ea;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--navy);
}
.chip--main { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid #e8eaef;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 19px 54px 19px 22px;
  font: inherit;
  font-weight: 800;
  color: var(--navy);
  cursor: pointer;
  position: relative;
  font-size: 1.02rem;
}
.faq-q::after {
  content: "";
  position: absolute;
  right: 22px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2.5px solid var(--orange);
  border-bottom: 2.5px solid var(--orange);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq-item.open .faq-q::after { transform: translateY(-30%) rotate(225deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a-inner { padding: 0 22px 20px; color: var(--text-soft); font-size: .97rem; }

/* ---------- Listy zakresu usług (podstrony) ---------- */
.scope-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.scope-grid li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px dashed #e2e5ea;
}
.scope-grid li svg { width: 21px; height: 21px; color: var(--orange); flex: none; margin-top: 3px; }
.scope-grid li span small { display: block; font-weight: 500; color: var(--text-soft); }

.content-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 52px; align-items: start; }
.content-cols .prose p { margin-bottom: 16px; color: var(--text-soft); }
.content-cols .prose p strong { color: var(--navy); }
.content-cols .prose h2 { margin-bottom: 18px; }
.content-cols .prose h3 { margin: 26px 0 10px; }

.side-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 30px 28px;
  color: var(--text-on-dark);
  position: sticky;
  top: 100px;
}
.side-card h3 { color: #fff; margin-bottom: 10px; font-size: 1.2rem; }
.side-card p { color: var(--text-on-dark-soft); font-size: .95rem; margin-bottom: 20px; }
.side-card .btn { width: 100%; justify-content: center; margin-bottom: 12px; }
.side-card-note { font-size: .85rem; color: var(--text-on-dark-soft); text-align: center; }
.side-card-note a { color: var(--orange); font-weight: 700; }

/* ---------- Pasek CTA ---------- */
.cta-band {
  background: linear-gradient(100deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff;
  padding: 54px 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255, 255, 255, .9); }
.cta-band .btn--primary { background: var(--navy); box-shadow: none; }
.cta-band .btn--primary:hover { background: #000; }

/* ---------- Formularz kontaktowy ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }

.contact-info { display: grid; gap: 18px; }
.contact-tile {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--navy-2);
  border: 1px solid var(--navy-3);
  border-radius: var(--radius);
  padding: 22px;
}
.contact-tile .feature-icon { background: rgba(242, 131, 11, .14); color: var(--orange); }
.contact-tile:nth-child(even) .feature-icon { background: rgba(26, 111, 212, .16); color: #5b9ce8; }
.contact-tile h3 { color: #fff; font-size: 1.02rem; margin-bottom: 3px; }
.contact-tile p, .contact-tile a { color: var(--text-on-dark-soft); font-size: .95rem; }
.contact-tile a { font-weight: 700; color: var(--text-on-dark); }
.contact-tile a:hover { color: var(--orange); }

.form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.form-card h3 { margin-bottom: 6px; font-size: 1.35rem; }
.form-card > p { color: var(--text-soft); font-size: .95rem; margin-bottom: 24px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: .9rem; color: var(--navy); }
.form-field label em { color: var(--orange); font-style: normal; }
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: .97rem;
  padding: 13px 15px;
  border: 1.5px solid #dcdfe6;
  border-radius: var(--radius-sm);
  background: var(--light);
  color: var(--text);
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 131, 11, .18);
  background: #fff;
}
.form-consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .82rem;
  color: var(--text-soft);
}
.form-consent input { width: 17px; height: 17px; margin-top: 2px; flex: none; accent-color: var(--orange); }
.form-submit { grid-column: 1 / -1; }
.form-submit .btn { width: 100%; justify-content: center; font-size: 1.05rem; padding: 16px; }

/* ---------- Inne usługi (pasek na podstronach) ---------- */
.more-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.more-card {
  background: #fff;
  border: 1px solid #e8eaef;
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 800;
  color: var(--navy);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.more-card:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--navy); }
.more-card svg { width: 26px; height: 26px; color: var(--orange); flex: none; }
.more-card:nth-child(even) svg { color: var(--blue); }

/* ---------- Stopka ---------- */
.footer { background: var(--navy); color: var(--text-on-dark-soft); padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 46px;
}
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; text-transform: uppercase; letter-spacing: .08em; }
.footer a { color: var(--text-on-dark-soft); display: inline-block; padding: 4px 0; }
.footer a:hover { color: var(--orange); }
.footer-brand img { height: 46px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: .92rem; max-width: 300px; }
.footer li { padding: 2px 0; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.footer-contact svg { width: 17px; height: 17px; color: var(--orange); flex: none; margin-top: 5px; }
.footer-bottom {
  border-top: 1px solid var(--navy-3);
  padding: 20px 0;
  font-size: .85rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Responsywność ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .services-grid, .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .more-services { grid-template-columns: repeat(2, 1fr); }
  .content-cols { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .area-wrap { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--navy);
    flex-direction: column;
    justify-content: flex-start;
    padding: 110px 26px 40px;
    transform: translateX(100%);
    transition: transform .28s ease;
    overflow-y: auto;
    z-index: 105;
  }
  .nav-open .nav { transform: translateX(0); }
  .nav > ul { flex-direction: column; align-items: stretch; width: 100%; gap: 2px; }
  .nav a { font-size: 1.12rem; padding: 13px 10px; }
  .drop {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--navy-2);
    min-width: 0;
    display: none;
    margin: 4px 0 8px;
  }
  .has-drop.open .drop { display: block; }
  .drop a { color: var(--text-on-dark); font-size: 1rem; }
  .drop a:hover { background: var(--navy-3); color: var(--orange); }
  .has-drop > a::after { transform: rotate(45deg); margin-left: 10px; }
  .header-cta .btn-label { display: none; }
  .header-phone { padding: 11px 14px; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { padding: 60px 0 64px; }
  .services-grid, .features, .steps, .more-services, .scope-grid, .form-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .topbar-group { gap: 12px; }
  .topbar .container { justify-content: center; }
  .brand img { height: 40px; }
  .hero-art img { width: 160px; height: 160px; }
  .cta-band .container { flex-direction: column; text-align: center; }
}

/* drobne animacje wejścia */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
  .reveal.visible { opacity: 1; transform: none; }
}
