/* ============================================================
   DIWN — profesjonalne mycie elewacji, przeszkleń i fotowoltaiki
   Autorski arkusz stylów (bez frameworków)
   ============================================================ */

:root {
  --navy: #0b2231;
  --navy-2: #10314a;
  --cyan: #17b6e8;
  --cyan-dark: #0e9dcb;
  --cyan-light: #e6f7fd;
  --ink: #1d2b36;
  --muted: #5b6b77;
  --line: #e3ebf1;
  --bg: #ffffff;
  --bg-soft: #f5f9fb;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(11, 34, 49, 0.07);
  --shadow-md: 0 12px 34px rgba(11, 34, 49, 0.12);
  --shadow-lg: 0 24px 60px rgba(11, 34, 49, 0.18);
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

/* Sekcje – kotwice pod sticky headerem */
section[id], div[id] { scroll-margin-top: 96px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.985); }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(23, 182, 232, .35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(23, 182, 232, .45);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .85);
}
.btn-outline:hover { background: #fff; color: var(--navy); }

.btn-dark {
  background: var(--navy);
  color: #fff;
}
.btn-dark:hover { background: var(--navy-2); color: #fff; }

.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Pasek górny ---------- */
.topbar {
  background: var(--navy);
  color: #cfe6f2;
  font-size: 13.5px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: var(--cyan); }
.topbar .promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topbar .promo .tag {
  background: var(--cyan);
  color: var(--navy);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 999px;
}
.topbar svg { width: 15px; height: 15px; }

/* ---------- Nagłówek / nawigacja ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand img { height: 48px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--cyan);
  transition: right .22s ease;
}
.nav-links a:hover::after { right: 0; }
.nav-links a:hover { color: var(--cyan-dark); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
}
.nav-phone svg { width: 18px; height: 18px; color: var(--cyan-dark); }
.nav-phone:hover { color: var(--cyan-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.1s ease;
  transform: scale(1.04);
}
.hero-slide.active { opacity: 1; transform: scale(1); transition: opacity 1.1s ease, transform 7s linear; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(7, 24, 36, .88) 0%, rgba(7, 24, 36, .62) 46%, rgba(7, 24, 36, .25) 100%);
}
.hero .container { width: 100%; }
.hero-content { max-width: 640px; padding: 110px 0 130px; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.hero-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--cyan);
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 22px;
}
.hero p.lead {
  font-size: 17px;
  color: #dbe9f2;
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }

.hero-dots { display: flex; gap: 10px; }
.hero-dots button {
  width: 34px;
  height: 4px;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: background .2s ease;
  padding: 0;
}
.hero-dots button.active { background: var(--cyan); }

/* Pasek zaufania pod hero */
.trustbar {
  background: var(--navy);
  color: #fff;
  position: relative;
}
.trustbar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 22px;
  border-left: 1px solid rgba(255, 255, 255, .08);
}
.trust-item:first-child { border-left: none; }
.trust-item svg { width: 30px; height: 30px; color: var(--cyan); flex: none; }
.trust-item strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.trust-item span { font-size: 12.5px; color: #9fbccb; line-height: 1.4; }

/* ---------- Nagłówki sekcji ---------- */
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }

.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head .kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  background: var(--cyan-light);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-head p { color: var(--muted); font-size: 16px; }

/* ---------- Usługi ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card .thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.service-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.service-card:hover .thumb img { transform: scale(1.06); }
.service-card .thumb .icon-badge {
  position: absolute;
  left: 20px;
  bottom: -24px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(23, 182, 232, .4);
}
.service-card .icon-badge svg { width: 26px; height: 26px; }
.service-card .body { padding: 40px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--muted); flex: 1; }
.service-card .link {
  margin-top: 18px;
  font-weight: 600;
  font-size: 14px;
  color: var(--cyan-dark);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.service-card .link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.service-card .link:hover svg { transform: translateX(4px); }

/* ---------- Dlaczego DIWN ---------- */
.why {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.why-media { position: relative; }
.why-media .main-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.why-media .float-card {
  position: absolute;
  right: -18px;
  bottom: -26px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
}
.why-media .float-card .num {
  font-size: 30px;
  font-weight: 800;
  color: var(--cyan-dark);
  line-height: 1;
}
.why-media .float-card .txt { font-size: 13px; color: var(--muted); line-height: 1.4; max-width: 170px; }

.why-content .kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  background: var(--cyan-light);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.why-content h2 {
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.22;
  margin-bottom: 16px;
}
.why-content > p { color: var(--muted); margin-bottom: 26px; }

.why-list { list-style: none; display: grid; gap: 18px; }
.why-list li { display: flex; gap: 16px; }
.why-list .ico {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--cyan-light);
  color: var(--cyan-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-list .ico svg { width: 24px; height: 24px; }
.why-list strong { display: block; color: var(--navy); font-size: 15.5px; font-weight: 600; margin-bottom: 2px; }
.why-list span { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- Baza wiedzy ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card .thumb { overflow: hidden; aspect-ratio: 16 / 10; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .thumb img { transform: scale(1.06); }
.post-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .meta {
  font-size: 12.5px;
  color: var(--cyan-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.post-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.4; margin-bottom: 10px; }
.post-card h3 a { color: inherit; }
.post-card h3 a:hover { color: var(--cyan-dark); }
.post-card p { font-size: 14px; color: var(--muted); flex: 1; }
.post-card .link {
  margin-top: 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--cyan-dark);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.post-card .link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.post-card .link:hover svg { transform: translateX(4px); }

/* ---------- Obszar działania ---------- */
.area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.area-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  aspect-ratio: 1 / 0.85;
}
.area-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.area-content .kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  background: var(--cyan-light);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.area-content h2 {
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.22;
  margin-bottom: 16px;
}
.area-content p { color: var(--muted); margin-bottom: 22px; }
.area-cities { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.area-cities li {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Opinie ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.t-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.t-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.t-card .stars { color: #f5b301; font-size: 15px; letter-spacing: 3px; margin-bottom: 14px; }
.t-card blockquote { font-size: 14.5px; color: var(--ink); line-height: 1.7; flex: 1; }
.t-card footer { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.t-card .avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.t-card .who strong { display: block; color: var(--navy); font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.t-card .who span { font-size: 12.5px; color: var(--muted); }

/* ---------- Pas CTA ---------- */
.cta-band {
  position: relative;
  background:
    linear-gradient(100deg, rgba(9, 30, 44, .93) 0%, rgba(9, 30, 44, .78) 55%, rgba(14, 157, 203, .55) 100%),
    url("../assets/images/slide_02.jpg") center / cover no-repeat;
  color: #fff;
  padding: 72px 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin-bottom: 10px; }
.cta-band p { color: #d7e7f0; max-width: 560px; font-size: 15.5px; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Kontakt ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.contact-info {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 42px 38px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.contact-info::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 182, 232, .35) 0%, transparent 70%);
}
.contact-info h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.contact-info > p { color: #b9d2df; font-size: 14.5px; margin-bottom: 30px; }
.contact-rows { display: grid; gap: 20px; position: relative; z-index: 1; }
.contact-row { display: flex; align-items: flex-start; gap: 16px; }
.contact-row .ico {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(23, 182, 232, .16);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
}
.contact-row .ico svg { width: 22px; height: 22px; }
.contact-row strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #8fb2c4; font-weight: 600; margin-bottom: 3px; }
.contact-row a, .contact-row span.val { color: #fff; font-size: 16.5px; font-weight: 600; }
.contact-row a:hover { color: var(--cyan); }
.contact-row .sub { display: block; font-size: 13px; color: #b9d2df; font-weight: 400; margin-top: 2px; }

.discount-note {
  margin-top: 30px;
  background: rgba(23, 182, 232, .12);
  border: 1px solid rgba(23, 182, 232, .35);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  color: #dff4fc;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.discount-note svg { width: 22px; height: 22px; color: var(--cyan); flex: none; margin-top: 2px; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 42px 38px;
  box-shadow: var(--shadow-md);
}
.contact-form h3 { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.contact-form .form-sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.form-field label .req { color: #e05252; }
.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  width: 100%;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(23, 182, 232, .14);
}

.file-drop {
  border: 1.5px dashed #bfd4e0;
  border-radius: 10px;
  background: var(--bg-soft);
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
  font-size: 13.5px;
  color: var(--muted);
}
.file-drop:hover { border-color: var(--cyan); background: #fff; }
.file-drop svg { width: 26px; height: 26px; color: var(--cyan-dark); margin: 0 auto 6px; }
.file-drop input { display: none; }
.file-drop .file-names { margin-top: 6px; font-weight: 600; color: var(--navy); font-size: 13px; }

.form-submit { grid-column: 1 / -1; margin-top: 6px; }
.form-submit .btn { width: 100%; padding: 16px; font-size: 16px; }
.form-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 4px; }

.form-status {
  grid-column: 1 / -1;
  display: none;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}
.form-status.ok { display: block; background: #e8f8ee; color: #14713a; border: 1px solid #bce5cc; }
.form-status.err { display: block; background: #fdecec; color: #a03030; border: 1px solid #f2c7c7; }

/* Honeypot – ukryte pole antyspamowe */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--navy); color: #9fbccb; }
.footer-main { padding: 64px 0 44px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
}
.footer-brand img { height: 44px; margin-bottom: 18px; }
.footer-brand p { font-size: 13.5px; line-height: 1.8; }
.site-footer h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: .02em;
}
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: #9fbccb; font-size: 14px; transition: color .18s ease; }
.footer-links a:hover { color: var(--cyan); }
.footer-contact { list-style: none; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--cyan); flex: none; margin-top: 4px; }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-contact a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0;
  font-size: 13px;
  text-align: center;
}

/* ---------- Strona artykułu ---------- */
.article-hero {
  background:
    linear-gradient(100deg, rgba(7, 24, 36, .92) 0%, rgba(7, 24, 36, .72) 60%, rgba(14, 157, 203, .45) 100%),
    var(--navy);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 84px 0 72px;
}
.article-hero .crumbs { font-size: 13.5px; color: #9fd8ef; margin-bottom: 18px; }
.article-hero .crumbs a { color: #9fd8ef; }
.article-hero .crumbs a:hover { color: #fff; }
.article-hero h1 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  max-width: 820px;
  margin-bottom: 16px;
}
.article-hero .meta { font-size: 14px; color: #b9d2df; display: flex; gap: 18px; flex-wrap: wrap; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 48px;
  padding: 72px 24px 96px;
  align-items: start;
}

.article-body { max-width: 760px; }
.article-body > figure.cover {
  margin: 0 0 36px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.article-body > figure.cover img { width: 100%; object-fit: cover; }
.article-body h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin: 44px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cyan-light);
}
.article-body h3 { font-size: 19px; font-weight: 600; color: #fff(--navy); margin: 30px 0 10px; }
.article-body p { color: #3d4d59; font-size: 16px; margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 20px 22px; color: #3d4d59; font-size: 16px; }
.article-body li { margin-bottom: 9px; }
.article-body strong { color: var(--navy); }
.article-body a { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(23,182,232,.4); text-underline-offset: 3px; }
.article-body a:hover { color: var(--cyan); }
.article-body blockquote {
  border-left: 4px solid var(--cyan);
  background: var(--cyan-light);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 26px 0;
  color: var(--navy);
  font-size: 15.5px;
}
.article-body blockquote p { margin: 0; color: inherit; }

/* Sidebar artykułu */
.article-aside { position: sticky; top: 100px; display: grid; gap: 24px; }
.aside-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.aside-card.cta {
  background: var(--navy);
  color: #fff;
  border: none;
  text-align: center;
}
.aside-card.cta h4 { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.aside-card.cta p { color: #b9d2df; font-size: 13.5px; margin-bottom: 18px; }
.aside-card.cta .btn { width: 100%; }
.aside-card.cta .phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
.aside-card.cta .phone-link:hover { color: var(--cyan); }
.aside-card.cta .phone-link svg { width: 17px; height: 17px; color: var(--cyan); }
.aside-card h4 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.aside-posts { list-style: none; display: grid; gap: 14px; }
.aside-posts a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
  padding-left: 14px;
  border-left: 3px solid var(--cyan-light);
  transition: border-color .18s ease, color .18s ease;
}
.aside-posts a:hover { color: var(--cyan-dark); border-left-color: var(--cyan); }

/* FAQ akordeon */
.faq-list { display: grid; gap: 12px; margin-top: 8px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--cyan-dark);
  transition: transform .2s ease;
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 22px 18px; color: #3d4d59; font-size: 15px; }
.faq-item .faq-a p { margin: 0; }

/* Artykuł – CTA na końcu */
.article-cta {
  margin-top: 44px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: var(--radius);
  color: #fff;
  padding: 34px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.article-cta h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.article-cta p { color: #b9d2df; font-size: 14px; margin: 0; }

/* ---------- Animacje wejścia ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide, .hero-slide.active { transition: opacity .3s ease; transform: none; }
}

/* ---------- Responsywność ---------- */
@media (max-width: 1024px) {
  .services-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .trustbar .container { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: none; }
  .trust-item { border-top: 1px solid rgba(255,255,255,.08); }
  .trust-item:nth-child(-n+2) { border-top: none; }
  .why, .area { grid-template-columns: 1fr; gap: 44px; }
  .why-media .float-card { right: 14px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 68px 0; }
  .topbar .container { justify-content: center; }
  .topbar .promo { display: none; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 84vw);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 92px 30px 30px;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-toggle { display: block; position: relative; z-index: 1001; }
  .nav-phone span { display: none; }

  .hero { min-height: 560px; }
  .hero-content { padding: 84px 0 96px; }
  .services-grid, .blog-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-info, .contact-form { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .article-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .trustbar .container { grid-template-columns: 1fr; }
  .trust-item { border-left: none; }
  .hero-actions .btn { width: 100%; }
  .why-media .float-card { position: static; margin-top: 16px; }
}
