:root {
  --paper: #f4f7f9;
  --paper-2: #eaf0f4;
  --ink: #17324d;
  --muted: #64748b;
  --line: #d9e2ea;
  --blue: #2f6fed;
  --blue-dark: #1f54bd;
  --white: #ffffff;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

p {
  margin: 0;
  font-size: 16px;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 247, 249, .96);
  border-bottom: 1px solid var(--ink);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 21px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-block {
  display: inline-grid;
  place-items: center;
  min-width: 47px;
  height: 31px;
  padding: 0 7px;
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  letter-spacing: .04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.main-nav a { border-bottom: 2px solid transparent; padding: 7px 0; }
.main-nav a:hover { border-color: var(--blue); color: var(--blue); }

.hero {
  border-bottom: 1px solid var(--ink);
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(23,50,77,.055) 50%, transparent calc(50% + 1px)),
    var(--paper);
}

.hero-layout {
  min-height: 500px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 360px;
  gap: 0;
}

.hero-index {
  padding: 42px 18px 34px 0;
  border-right: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

.hero-index span:first-child {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--blue);
}

.hero-copy {
  padding: 70px 70px 64px 48px;
  align-self: center;
}

.overline {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.hero-copy h1 { max-width: 700px; }

.hero-lead {
  max-width: 680px;
  margin-top: 24px;
  color: #536579;
  line-height: 1.7;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 34px;
}

.hero-links a {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 800;
}
.hero-links a:hover { color: var(--blue); border-color: var(--blue); }

.quick-panel {
  align-self: stretch;
  border-left: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  padding: 36px 32px;
}

.quick-title {
  padding-bottom: 18px;
  border-bottom: 1px solid #3b536b;
  color: #b8c7d5;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.quick-panel a {
  min-height: 77px;
  display: grid;
  grid-template-columns: 36px 1fr 22px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #334d66;
  transition: padding-left .18s ease, color .18s ease;
}

.quick-panel a:hover { padding-left: 7px; color: #9fc5ff; }
.quick-panel a span { color: #8da2b5; font-size: 11px; font-weight: 700; }
.quick-panel a strong { font-size: 17px; }
.quick-panel a b { font-size: 18px; font-weight: 400; text-align: right; }

.section { border-bottom: 1px solid var(--ink); }

.section-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 300px;
}

.section-label {
  padding: 54px 36px 54px 0;
  border-right: 1px solid var(--ink);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.section-label > span {
  margin-top: 4px;
  color: #7f93a6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.section-label .overline { margin-bottom: 8px; }

.device-list { padding: 30px 0 30px 44px; }

.device-row {
  min-height: 100px;
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) 110px 24px;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: background .16s ease, padding .16s ease;
}

.device-row:first-child { border-top: 1px solid var(--line); }
.device-row:hover { background: rgba(255,255,255,.42); padding-left: 12px; padding-right: 12px; }
.device-no { color: #8799aa; font-size: 11px; font-weight: 800; }
.device-row h3 { margin: 0 0 5px; font-size: 21px; line-height: 1.15; }
.device-row p { color: var(--muted); }
.device-meta { color: #708397; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.device-arrow { font-size: 20px; text-align: right; }

.brand-section { background: var(--blue); color: var(--white); border-color: #1f54bd; }
.brand-section .section-label { border-color: rgba(255,255,255,.36); }
.brand-section .section-label > span { color: #9fc5ff; }
.brand-section .overline { color: #d7e6ff; }
.brand-section h2 { color: var(--white); }

.brand-board {
  padding: 42px 0 42px 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.brand-board a {
  min-height: 78px;
  padding: 0 22px;
  border-right: 1px solid rgba(255,255,255,.25);
  border-bottom: 1px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 18px;
  font-weight: 800;
}

.brand-board a:nth-child(3n) { border-right: 0; }
.brand-board a:nth-last-child(-n+3) { border-bottom: 0; }
.brand-board a span { opacity: .55; font-weight: 400; }
.brand-board a:hover { background: rgba(255,255,255,.1); }

.issue-layout {
  padding: 44px 0 44px 44px;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 55px;
}

.issue-intro p { color: var(--muted); line-height: 1.7; }
.issue-intro a {
  display: inline-block;
  margin-top: 26px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 800;
}
.issue-intro a:hover { color: var(--blue); border-color: var(--blue); }

.issue-list { border-top: 1px solid var(--ink); }
.issue-list a {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.issue-list a > span { font-size: 18px; font-weight: 800; }
.issue-list small { color: #708397; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.issue-list a:hover > span { color: var(--blue); }

.parts-section { background: var(--paper-2); }

.parts-table {
  padding: 36px 0 36px 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.parts-table a {
  min-height: 100px;
  padding: 22px 25px 22px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 1fr) 22px;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.parts-table a:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 30px; }
.parts-table a:nth-child(even) { padding-left: 30px; }
.parts-table a:nth-last-child(-n+2) { border-bottom: 0; }
.parts-table strong { font-size: 18px; }
.parts-table span { color: var(--muted); font-size: 14px; }
.parts-table b { font-size: 18px; font-weight: 400; }
.parts-table a:hover strong { color: var(--blue); }

.guides-section { background: #fff; }

.guide-list {
  padding: 36px 0 36px 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.guide-list article {
  min-height: 275px;
  padding: 27px 30px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.guide-list article:first-child { border-left: 0; padding-left: 0; }
.guide-list article:last-child { padding-right: 0; }
.guide-list article > span { color: #7f93a6; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.guide-list h3 { margin: 20px 0 14px; font-size: 20px; line-height: 1.25; }
.guide-list p { color: var(--muted); }
.guide-list a {
  margin-top: auto;
  padding-top: 24px;
  font-size: 14px;
  font-weight: 800;
}
.guide-list a:hover { color: var(--blue); }

.site-footer { background: var(--ink); color: var(--white); }

.footer-main {
  min-height: 190px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}

.footer-brand .brand-block { background: var(--white); color: var(--ink); }
.footer-main > p { max-width: 440px; color: #b8c7d5; }
.footer-main nav { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 24px; font-size: 13px; font-weight: 700; }
.footer-main nav a:hover { color: #9fc5ff; }
.footer-bottom { padding: 17px 0 22px; border-top: 1px solid #314b64; color: #8da2b5; font-size: 12px; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .hero-layout { grid-template-columns: 58px 1fr; }
  .hero-copy { padding: 55px 38px; }
  .quick-panel { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--ink); display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
  .quick-title { grid-column: 1 / -1; }
  .section-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .section-label { padding-right: 22px; }
  .device-list, .brand-board, .issue-layout, .parts-table, .guide-list { padding-left: 28px; }
  .brand-board { grid-template-columns: repeat(2, 1fr); }
  .brand-board a:nth-child(3n) { border-right: 1px solid rgba(255,255,255,.25); }
  .brand-board a:nth-child(2n) { border-right: 0; }
  .brand-board a:nth-last-child(-n+3) { border-bottom: 1px solid rgba(255,255,255,.25); }
  .brand-board a:nth-last-child(-n+2) { border-bottom: 0; }
  .issue-layout { grid-template-columns: 1fr; gap: 32px; }
  .parts-table { grid-template-columns: 1fr; }
  .parts-table a:nth-child(odd), .parts-table a:nth-child(even) { border-right: 0; padding-left: 0; padding-right: 0; }
  .parts-table a:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .parts-table a:last-child { border-bottom: 0; }
  .guide-list { grid-template-columns: 1fr; }
  .guide-list article, .guide-list article:first-child, .guide-list article:last-child { min-height: auto; padding: 25px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .guide-list article:last-child { border-bottom: 0; }
  .guide-list a { margin-top: 22px; padding-top: 0; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 62px; }
  .hero-layout { display: block; min-height: 0; }
  .hero-index { display: none; }
  .hero-copy { padding: 48px 0 42px; }
  .hero-copy h1 { font-size: 40px; }
  .quick-panel { margin-inline: -14px; padding: 26px 22px; grid-template-columns: 1fr; }
  .quick-panel a { min-height: 68px; }
  .section-layout { display: block; }
  .section-label { padding: 36px 0 26px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .device-list, .brand-board, .issue-layout, .parts-table, .guide-list { padding: 18px 0 28px; }
  .device-row { grid-template-columns: 34px minmax(0, 1fr) 22px; min-height: 106px; }
  .device-meta { display: none; }
  .device-row p { margin-top: 6px; }
  .brand-board { grid-template-columns: 1fr 1fr; }
  .brand-board a { min-height: 66px; padding: 0 14px; font-size: 16px; }
  .issue-list a { min-height: 76px; display: block; padding: 16px 0; }
  .issue-list small { display: block; margin-top: 6px; }
  .parts-table a { grid-template-columns: minmax(0, 1fr) 22px; min-height: 88px; }
  .parts-table a span { grid-column: 1; grid-row: 2; }
  .parts-table a b { grid-column: 2; grid-row: 1 / 3; }
  .footer-main { display: block; padding: 42px 0; }
  .footer-main > p { margin-top: 25px; }
  .footer-main nav { margin-top: 30px; max-width: 260px; }
}

@media (max-width: 430px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  p { font-size: 16px; }
  .brand-board { grid-template-columns: 1fr; }
  .brand-board a, .brand-board a:nth-child(2n), .brand-board a:nth-child(3n), .brand-board a:nth-last-child(-n+2), .brand-board a:nth-last-child(-n+3) { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.25); }
  .brand-board a:last-child { border-bottom: 0; }
}

/* Rozszerzone sekcje modeli i identyfikacji */
.model-section .guide-list p, .identification-section .guide-list p { line-height: 1.72; }
.identification-section .guide-list { padding-top: 36px; padding-bottom: 36px; }
.model-section .guide-list article, .identification-section .guide-list article { min-height: 345px; }
@media (max-width: 980px) { .model-section .guide-list article, .identification-section .guide-list article { min-height: auto; } }
