:root {
  --navy: #03355c;
  --navy-dark: #022640;
  --orange: #ff5a00;
  --orange-dark: #e04f00;
  --grey-bg: #f4f6f8;
  --grey-line: #dfe4e8;
  --text: #1c2b38;
  --text-muted: #5b6b78;
  --radius: 6px;
  --max-width: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Work Sans", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

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

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

/* Header */
header.site-header {
  background: var(--navy);
  border-bottom: 4px solid var(--orange);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  gap: 24px;
  flex-wrap: wrap;
}

.logo-link { display: inline-flex; }
.logo-link img { height: 42px; width: auto; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  border-color: var(--orange);
  color: #ffffff;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #ffffff;
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  background: var(--orange);
  opacity: 0.12;
  transform: rotate(20deg);
  clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
}

.hero h1 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
  max-width: 640px;
}

.hero p.lede {
  font-size: 1.1rem;
  max-width: 560px;
  color: #dce6ee;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin-bottom: 14px;
}

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--grey-bg); }

h2 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.8rem;
  color: var(--navy);
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}

h2 .accent { color: var(--orange); }

.section-intro {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 32px;
}

/* About grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.about-card {
  background: #ffffff;
  border: 1px solid var(--grey-line);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.about-card h3 {
  font-size: 1.02rem;
  color: var(--navy);
  margin: 0 0 8px;
}

.about-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-card {
  background: var(--navy);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 32px;
}

.contact-card h3 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.3rem;
  margin: 0 0 18px;
  color: #ffffff;
}

.contact-card dl {
  margin: 0;
}

.contact-card dt {
  color: #9db6c9;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 16px;
}

.contact-card dt:first-child { margin-top: 0; }

.contact-card dd {
  margin: 4px 0 0;
  font-size: 1.02rem;
}

.contact-card a { color: #ffffff; }

.btn {
  display: inline-block;
  background: var(--orange);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius);
  margin-top: 22px;
  transition: background 0.15s ease;
}

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

/* Serwis / declarations table */
.declarations {
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  overflow: hidden;
}

table.decl-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

table.decl-table th {
  text-align: left;
  background: var(--navy);
  color: #ffffff;
  padding: 12px 16px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

table.decl-table td {
  padding: 13px 16px;
  border-top: 1px solid var(--grey-line);
  font-size: 0.95rem;
  vertical-align: middle;
}

table.decl-table tr:nth-child(even) td { background: #fafbfc; }

.model-code {
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.decl-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange-dark);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.decl-link:hover { text-decoration: underline; }

.decl-note {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 20px;
}

/* Footer */
footer.site-footer {
  background: var(--navy-dark);
  color: #b9c9d5;
  padding: 32px 0;
  font-size: 0.88rem;
}

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site-footer a { color: #ffffff; }

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  nav.main-nav ul { gap: 18px; }
  table.decl-table th:nth-child(3), table.decl-table td:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
