:root {
  --navy: #061d44;
  --navy-deep: #041126;
  --orange: #ff7a1a;
  --orange-dark: #ed6f10;
  --text: #122033;
  --muted: #5b6780;
  --border: #e7ebf1;
  --light: #f6f8fb;
  --white: #ffffff;
  --shadow: 0 14px 36px rgba(4, 17, 38, 0.10);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: #eef2f7;
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1440px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(3, 14, 31, 0.20);
}
.topbar {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; line-height: 1; column-gap: 4px; }
.brand-mark { grid-column: 1; grid-row: 1; font-size: 32px; font-weight: 800; letter-spacing: 0.5px; }
.brand-wave { grid-column: 2; grid-row: 1; color: var(--orange); font-weight: 800; font-size: 24px; align-self: end; }
.brand-sub { grid-column: 1 / span 2; grid-row: 2; font-size: 12px; opacity: 0.9; margin-top: 3px; }
.site-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; }
.site-nav a { padding: 8px 0; font-weight: 700; color: rgba(255,255,255,0.94); border-bottom: 2px solid transparent; }
.site-nav a.active, .site-nav a:hover { border-bottom-color: var(--orange); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.header-phone strong { font-size: 17px; }
.header-phone span { font-size: 12px; opacity: 0.85; }
.btn {
  border: none;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
  padding: 14px 22px;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-dark { background: rgba(9,18,33,0.6); color: #fff; border: 1px solid rgba(255,255,255,0.32); }
.btn-light { background: #fff; color: var(--navy); border: 1px solid #d5dce8; }
.btn-block { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; padding: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 999px; }

.homepage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(340px, 0.95fr);
  gap: 18px;
  padding: 18px 0 24px;
  align-items: start;
}
.main-column, .sidebar-column { display: grid; gap: 18px; }
.hero-card {
  min-height: 430px;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  position: relative;
}
.hero-content {
  width: min(540px, 90%);
  padding: 78px 48px 48px;
  color: #fff;
}
.hero-content h1 { font-size: clamp(38px, 4vw, 60px); line-height: 1.06; margin: 0 0 20px; }
.hero-content p { font-size: 20px; line-height: 1.55; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.benefits-panel {
  background: #fff;
  border-radius: 18px;
  padding: 18px 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: var(--shadow);
}
.benefit-item { padding: 8px 18px; text-align: center; border-right: 1px solid var(--border); }
.benefit-item:last-child { border-right: 0; }
.benefit-icon {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 12px;
  color: var(--orange); border: 2px solid rgba(255,122,26,0.3); font-size: 13px; font-weight: 800;
  background: #fff9f4;
}
.benefit-item h3 { font-size: 16px; margin: 0 0 8px; }
.benefit-item p { color: var(--muted); margin: 0; line-height: 1.45; font-size: 14px; }
.packages-section, .sidebar-block, .about-card, .content-card, .page-hero, .availability-card, .contact-panel-dark {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.packages-section {
  background: #fff;
  padding: 28px;
}
.section-heading h2 { margin: 0 0 8px; font-size: 28px; }
.section-heading p { margin: 0; color: var(--muted); }
.section-heading-small h2 { font-size: 24px; }
.centered { text-align: center; }
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 26px;
}
.package-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.package-card.featured { border: 2px solid rgba(255,122,26,0.62); transform: translateY(-6px); }
.package-badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 700;
}
.package-name { font-size: 18px; font-weight: 800; margin-top: 6px; text-align: center; }
.package-speed { font-size: 28px; font-weight: 800; text-align: center; margin: 8px 0 18px; color: var(--navy); }
.package-list { list-style: none; padding: 0; margin: 0 0 22px; }
.package-list li { position: relative; padding: 0 0 10px 18px; color: var(--muted); line-height: 1.45; }
.package-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--orange); font-weight: 800; }
.package-price { text-align: center; font-size: 40px; font-weight: 800; margin: auto 0 18px; }
.package-price span { font-size: 18px; color: var(--muted); font-weight: 600; }
.mini-features {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  border-radius: 0 0 18px 18px;
  padding: 18px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.mini-feature-item { display: flex; gap: 12px; align-items: flex-start; }
.mini-feature-icon { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); flex: 0 0 38px; }
.mini-feature-item h4 { margin: 0 0 4px; font-size: 18px; }
.mini-feature-item p { margin: 0; color: rgba(255,255,255,0.82); line-height: 1.45; font-size: 14px; }

.sidebar-block, .about-card { background: #fff; padding: 24px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.services-grid-page { grid-template-columns: repeat(3, 1fr); }
.service-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(4,17,38,0.04);
}
.service-card-button {
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card-button:hover,
.service-card-button:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255,122,26,0.7);
  box-shadow: 0 14px 30px rgba(4,17,38,0.12);
  outline: none;
}
.service-card img { width: 100%; height: 100px; object-fit: cover; }
.service-body { display: block; padding: 14px 14px 16px; }
.service-title { display: block; margin: 0 0 8px; font-size: 16px; line-height: 1.3; }
.service-summary { display: block; margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.service-more { display: inline-block; margin-top: 10px; color: var(--orange-dark); font-size: 12px; font-weight: 800; }
body.service-dialog-open { overflow: hidden; }
.service-dialog[hidden] { display: none; }
.service-dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.service-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 12, 28, 0.78);
  backdrop-filter: blur(3px);
}
.service-dialog-panel {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.35);
}
.service-dialog-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f1f4f8;
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.service-dialog-header {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  align-items: center;
  padding-right: 38px;
}
.service-dialog-header img {
  width: 118px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
}
.service-dialog-header span {
  display: block;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}
.service-dialog-header h3 { margin: 0; font-size: 26px; line-height: 1.2; }
.service-dialog-list { margin: 22px 0 24px; padding: 0; list-style: none; }
.service-dialog-list li {
  position: relative;
  padding: 11px 0 11px 26px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  line-height: 1.45;
}
.service-dialog-list li:last-child { border-bottom: 0; }
.service-dialog-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 11px;
  color: var(--orange);
  font-weight: 900;
}
.service-dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.availability-card {
  padding: 26px 24px;
  overflow: hidden;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.availability-card h2 { margin: 0 0 8px; font-size: 28px; }
.availability-card p { margin: 0 0 18px; color: rgba(255,255,255,0.88); }
.availability-form { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.availability-form input, .contact-form input, .contact-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d2dae6;
  padding: 13px 14px;
  font: inherit;
  background: rgba(255,255,255,0.96);
}
.about-card-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 18px;
  align-items: center;
}
.about-card-grid p { color: var(--muted); line-height: 1.6; }
.about-card-grid img { border-radius: 14px; height: 196px; object-fit: cover; width: 100%; }
.contact-panel-dark {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 28px 24px 18px;
}
.contact-panel-dark h2 { text-align: center; margin: 0 0 24px; font-size: 34px; }
.contact-grid-dark { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-grid-dark h3 { margin: 0 0 14px; font-size: 16px; }
.contact-grid-dark p { margin: 0; color: rgba(255,255,255,0.86); line-height: 1.7; }
.social-mini { text-align: center; margin: 18px 0; }
.social-mini a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #3b5a9a; color: #fff; font-weight: 800; }
.contact-panel-bottom {
  display: flex; justify-content: space-between; gap: 18px; align-items: center;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 14px; color: rgba(255,255,255,0.8);
}
.contact-panel-bottom > div { display: flex; gap: 18px; }

.page-hero {
  margin-top: 18px;
  background: linear-gradient(140deg, #ffffff 0%, #f3f7fc 100%);
  padding: 44px;
}
.page-hero h1 { margin: 0 0 12px; font-size: 46px; }
.page-hero p { margin: 0; color: var(--muted); font-size: 18px; max-width: 900px; line-height: 1.6; }
.content-page { padding: 18px 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.content-card { background: #fff; padding: 28px; }
.content-card h2 { margin-top: 0; }
.content-card p, .content-card li, .content-card label { color: var(--muted); line-height: 1.7; }
.content-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 8px; }
.full-width { grid-column: 1 / -1; }
.mt-24 { margin-top: 24px; }

@media (max-width: 1300px) {
  .site-nav { gap: 18px; }
  .header-cta { gap: 12px; }
}
@media (max-width: 980px) {
  .topbar { grid-template-columns: auto auto; }
  .nav-toggle { display: block; justify-self: end; }
  .site-nav {
    display: none; grid-column: 1 / -1; justify-content: flex-start; flex-direction: column;
    gap: 12px; padding: 18px 0 6px;
  }
  .site-nav.open { display: flex; }
  .header-cta { grid-column: 1 / -1; justify-content: space-between; }
  .benefits-panel, .packages-grid, .mini-features, .services-grid, .contact-grid-dark, .content-page { grid-template-columns: 1fr 1fr; }
  .services-grid-page { grid-template-columns: 1fr 1fr; }
  .about-card-grid { grid-template-columns: 1fr; }
  .availability-form { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .container { width: min(100% - 24px, 1440px); }
  .topbar { min-height: 74px; gap: 16px; }
  .header-cta { flex-direction: column; align-items: stretch; }
  .header-phone { text-align: center; }
  .hero-card { min-height: auto; }
  .hero-content { padding: 30px 20px 24px; width: 100%; }
  .hero-content h1 { font-size: 34px; }
  .hero-content p { font-size: 16px; }
  .benefits-panel, .packages-grid, .mini-features, .services-grid, .contact-grid-dark, .content-page, .services-grid-page { grid-template-columns: 1fr; }
  .benefit-item { border-right: 0; border-bottom: 1px solid var(--border); padding: 14px 10px; }
  .benefit-item:last-child { border-bottom: 0; }
  .package-card.featured { transform: none; }
  .contact-panel-bottom { flex-direction: column; align-items: flex-start; }
  .contact-panel-bottom > div { flex-direction: column; gap: 10px; }
  .page-hero { padding: 28px 20px; }
  .page-hero h1 { font-size: 34px; }
}

@media (max-width: 560px) {
  .service-dialog { padding: 10px; }
  .service-dialog-panel { padding: 20px 16px; border-radius: 16px; }
  .service-dialog-header { grid-template-columns: 1fr; gap: 12px; padding-right: 38px; }
  .service-dialog-header img { width: 100%; height: 130px; }
  .service-dialog-header h3 { font-size: 22px; }
  .service-dialog-actions { flex-direction: column; }
}


/* Regulamin */
.regulations-hero .eyebrow {
  display: inline-block;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.regulations-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0 36px;
  align-items: start;
}
.regulations-toc {
  position: sticky;
  top: 104px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  gap: 8px;
}
.regulations-toc strong {
  color: var(--navy);
  font-size: 18px;
  margin-bottom: 6px;
}
.regulations-toc a {
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.35;
}
.regulations-toc a:hover {
  color: var(--navy);
  background: #f4f7fb;
}
.regulations-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 54px);
}
.regulations-section {
  scroll-margin-top: 110px;
  padding: 0 0 38px;
  margin: 0 0 38px;
  border-bottom: 1px solid var(--border);
}
.regulations-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}
.regulations-section h2 {
  color: var(--navy);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.2;
  margin: 0 0 24px;
}
.regulations-section h3 {
  color: var(--navy);
  font-size: 21px;
  line-height: 1.35;
  margin: 30px 0 12px;
}
.regulations-section h4 {
  color: var(--orange-dark);
  font-size: 18px;
  margin: 26px 0 10px;
}
.regulations-section p,
.regulations-section li {
  color: #3f4c61;
  line-height: 1.75;
}
.regulations-section p { margin: 0 0 15px; }
.regulations-section ol { margin: 0 0 18px; padding-left: 25px; }
.regulations-section ol ol { margin-top: 8px; }
.regulations-section li { padding: 3px 0 6px 6px; }
@media (max-width: 980px) {
  .regulations-layout { grid-template-columns: 1fr; }
  .regulations-toc { position: static; grid-template-columns: 1fr 1fr; }
  .regulations-toc strong { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .regulations-toc { grid-template-columns: 1fr; }
  .regulations-card { padding: 22px 18px; }
  .regulations-section h2 { font-size: 25px; }
}

/* === Poprawki wersji produkcyjnej BTK 2026-07-28 === */
@media (min-width: 1181px) {
  .container { width: min(1480px, calc(100% - 40px)); }
  .homepage-grid {
    grid-template-columns: minmax(0, 1.72fr) minmax(480px, 0.98fr);
    gap: 18px;
  }
  .hero-card { min-height: 430px; background-position: center center; }
  .hero-content { width: min(760px, 92%); padding: 66px 46px 44px; }
  .hero-content h1 { font-size: clamp(44px, 3.4vw, 54px); line-height: 1.08; }
  .hero-content p { font-size: 18px; line-height: 1.5; }
  .services-block { padding: 22px; }
  .services-grid { gap: 14px; }
  .service-card img { height: 96px; }
  .service-body { padding: 11px 11px 13px; }
  .service-title { font-size: 14px; line-height: 1.22; margin-bottom: 6px; }
  .service-summary {
    font-size: 12px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 32px;
  }
  .service-more { font-size: 11px; margin-top: 7px; }
  .availability-form {
    grid-template-columns: 1.05fr 1.05fr .8fr 1fr auto;
    gap: 8px;
  }
  .availability-form input { min-width: 0; padding: 12px 10px; }
  .availability-form .btn { padding-left: 14px; padding-right: 14px; }
}

@media (max-width: 1180px) {
  .site-nav { gap: 18px; }
  .header-cta { gap: 12px; }
  .homepage-grid { grid-template-columns: 1fr; }
  .availability-form { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1181px) and (max-width: 1380px) {
  .topbar { gap: 16px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 14px; }
  .header-phone strong { font-size: 15px; }
  .header-cta .btn { padding: 12px 16px; }
  .hero-content { width: min(700px, 92%); }
  .hero-content h1 { font-size: 46px; }
}

.additional-fees-card h2 {
  margin: 0 0 20px;
  font-size: 28px;
}
.additional-fees-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
.additional-fees-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  line-height: 1.55;
}
.additional-fees-list strong {
  color: var(--navy);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .additional-fees-list li {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* Komunikaty formularza kontaktowego */
.form-message {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1.5;
}
.form-message-success {
  color: #155724;
  background: #eaf7ed;
  border-color: #b9dfc1;
}
.form-message-error {
  color: #842029;
  background: #fbeaec;
  border-color: #efbdc2;
}
