/* Siltech Polska — style */
:root {
  --navy: #13203a;
  --navy-2: #1c2c4c;
  --paper: #f2f3f4;
  --white: #ffffff;
  --steel: #59647a;
  --silver: #c5cbd3;
  --silver-hi: #e6e9ed;
  --gold: #a8844e;
  --gold-hi: #d2b582;
  --line: rgba(19, 32, 58, 0.14);
  --line-dark: rgba(230, 233, 237, 0.16);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Source Serif 4", Georgia, serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-variation-settings: "wdth" 118;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 300; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 300; }
h3 { font-size: 1.3rem; font-weight: 500; font-variation-settings: "wdth" 110; }
h4 { font-size: 1.05rem; font-weight: 500; font-variation-settings: "wdth" 105; }
p { margin: 0 0 1em; max-width: 64ch; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--steel); }
.on-dark .lead { color: var(--silver); }
.small { font-size: 0.9rem; color: var(--steel); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 32, 58, 0.96);
  color: var(--silver-hi);
  border-bottom: 1px solid var(--line-dark);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(19, 32, 58, 0.86); backdrop-filter: blur(10px); }
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.wordmark {
  font-family: var(--display);
  font-variation-settings: "wdth" 125;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--white);
  display: flex; align-items: baseline; gap: 10px;
}
.wordmark span { font-family: var(--text); font-weight: 400; font-size: 0.85rem; letter-spacing: 0; color: var(--silver); font-style: italic; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a {
  font-family: var(--display); font-variation-settings: "wdth" 108;
  font-size: 0.95rem; text-decoration: none; color: var(--silver-hi);
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--gold-hi); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-dark); color: var(--white);
  font-family: var(--display); font-size: 0.95rem; padding: 8px 14px; border-radius: var(--radius); cursor: pointer;
}
@media (max-width: 880px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid var(--line-dark); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px var(--gutter); border-bottom: 1px solid var(--line-dark); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line-dark); color: var(--gold-hi); }
}

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; }
.on-dark { background: var(--navy); color: var(--silver-hi); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-white { background: var(--white); }
.rule-top { border-top: 1px solid var(--line); }

/* ---------- Hero with cross-section ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 0.35em; }
.hero .lead { margin-bottom: 1.6em; }
.since { font-family: var(--display); font-variation-settings: "wdth" 112; color: var(--gold-hi); font-size: 1rem; margin-bottom: 1.4em; display: block; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

.xsec-wrap { position: relative; }
.xsec { width: 100%; max-width: 520px; margin: 0 auto; display: block; }
.xsec .layer { transition: opacity 0.35s ease; cursor: pointer; }
.xsec.focus-metal .layer:not(.metal),
.xsec.focus-diel .layer:not(.diel),
.xsec.focus-shield .layer:not(.shield) { opacity: 0.22; }
.xsec .draw { stroke-dasharray: 1600; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .xsec .draw { stroke-dashoffset: 1600; animation: draw 1.6s cubic-bezier(.6,.05,.25,1) forwards; }
  .js .xsec .d2 { animation-delay: 0.18s; }
  .js .xsec .d3 { animation-delay: 0.36s; }
  .js .xsec .d4 { animation-delay: 0.54s; }
  .js .xsec .d5 { animation-delay: 0.72s; }
  .js .xsec .strands { opacity: 0; animation: fade 0.8s 1.1s ease forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

.tech-tabs { display: flex; gap: 0; border: 1px solid var(--line-dark); border-radius: var(--radius); margin: 24px 0 18px; }
.tech-tabs button {
  flex: 1; background: none; border: 0; border-right: 1px solid var(--line-dark);
  color: var(--silver); font-family: var(--display); font-variation-settings: "wdth" 108;
  font-size: 0.95rem; padding: 12px 8px; cursor: pointer;
}
.tech-tabs button:last-child { border-right: 0; }
.tech-tabs button[aria-selected="true"] { background: var(--navy-2); color: var(--white); box-shadow: inset 0 -2px 0 var(--gold-hi); }
.tech-panel { min-height: 9.5em; }
.tech-panel h3 { margin-bottom: 0.3em; }
.tech-panel p { color: var(--silver); font-size: 1rem; }
.tech-panel[hidden] { display: none; }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-block; font-family: var(--display); font-variation-settings: "wdth" 110;
  font-size: 1rem; text-decoration: none; padding: 13px 22px; border-radius: var(--radius);
  border: 1px solid var(--gold-hi); color: var(--white); background: transparent;
}
.btn:hover { background: var(--gold); border-color: var(--gold); }
.btn.solid { background: var(--gold); border-color: var(--gold); color: var(--white); }
.btn.solid:hover { background: #8f6f3f; border-color: #8f6f3f; }
.btn.ink { border-color: var(--navy); color: var(--navy); }
.btn.ink:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-family: var(--display); font-variation-settings: "wdth" 108; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.text-link:hover { color: var(--gold); }

/* ---------- Story ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--silver); }
.photo.tall { aspect-ratio: 4 / 5; }
.caption { font-size: 0.85rem; color: var(--steel); margin-top: 10px; }

/* ---------- Series ladder ---------- */
.ladder { margin-top: 48px; border-top: 1px solid var(--line); }
.rung {
  display: grid; grid-template-columns: 220px 1fr 1.3fr auto; gap: 28px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.rung img { width: 220px; aspect-ratio: 5 / 3; object-fit: cover; border-radius: var(--radius); background: var(--silver); }
.rung h3 { margin: 0; font-size: 1.6rem; font-weight: 400; font-variation-settings: "wdth" 120; }
.rung .metal { font-family: var(--display); font-variation-settings: "wdth" 104; font-size: 0.95rem; color: var(--gold); display: block; margin-top: 4px; }
.rung p { margin: 0; color: var(--steel); font-size: 1rem; }
.rung .go { font-family: var(--display); font-size: 0.95rem; border-bottom: 1px solid var(--gold); white-space: nowrap; }
.rung:hover h3 { color: var(--gold); }
.purity { display: flex; gap: 4px; margin-top: 10px; }
.purity i { width: 22px; height: 4px; background: var(--silver); border-radius: 1px; }
.purity i.on { background: var(--gold); }
@media (max-width: 880px) {
  .rung { grid-template-columns: 1fr; gap: 14px; }
  .rung img { width: 100%; }
}

/* ---------- Feature (new series) ---------- */
.feature { position: relative; color: var(--white); background: var(--navy); padding: 0; }
.feature-media { position: relative; }
.feature-media img { width: 100%; height: clamp(320px, 52vw, 620px); object-fit: cover; }
.feature-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19,32,58,.92) 0%, rgba(19,32,58,.55) 45%, rgba(19,32,58,0) 75%); }
.feature-copy { position: absolute; inset: 0; display: flex; align-items: center; z-index: 2; }
.feature-copy .inner { max-width: 520px; }
.feature-copy p { color: var(--silver-hi); }
@media (max-width: 720px) {
  .feature-media::after { background: linear-gradient(0deg, rgba(19,32,58,1) 0%, rgba(19,32,58,.2) 70%); }
  .feature-copy { position: static; padding: 0 0 56px; margin-top: -40px; }
}

/* ---------- Model grid ---------- */
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 24px; margin-top: 36px; }
.model { text-decoration: none; }
.model figure { margin: 0; }
.model img { width: 100%; aspect-ratio: 20 / 17; object-fit: cover; border-radius: var(--radius); background: var(--silver-hi); }
.model figcaption { padding-top: 12px; }
.model h4 { margin: 0; }
.model .type { font-size: 0.92rem; color: var(--steel); }
button.model { background: none; border: 0; padding: 0; text-align: left; color: inherit; font: inherit; cursor: zoom-in; }

/* ---------- Matrix ---------- */
.matrix-wrap { overflow-x: auto; margin-top: 32px; -webkit-overflow-scrolling: touch; }
table.matrix { border-collapse: collapse; width: 100%; min-width: 620px; font-family: var(--display); font-variation-settings: "wdth" 104; font-size: 0.95rem; }
.matrix th, .matrix td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix thead th { font-weight: 500; color: var(--steel); }
.matrix tbody th { text-align: left; font-weight: 500; font-size: 1.15rem; font-variation-settings: "wdth" 118; white-space: nowrap; }
.matrix .yes::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.matrix .no { color: var(--silver); }

/* ---------- Spec list ---------- */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.specs > div { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-family: var(--display); font-variation-settings: "wdth" 104; font-size: 0.9rem; color: var(--steel); }
.specs dd { margin: 4px 0 0; font-family: var(--display); font-variation-settings: "wdth" 115; font-size: 1.2rem; }
.on-dark .specs, .on-dark .specs > div { border-color: var(--line-dark); }
.on-dark .specs dt { color: var(--silver); }
@media (max-width: 720px) { .specs { grid-template-columns: 1fr; } }

/* ---------- Series page hero ---------- */
.page-hero { position: relative; padding: 0; background: var(--navy); color: var(--white); }
.page-hero img { width: 100%; height: clamp(260px, 38vw, 480px); object-fit: cover; opacity: 0.78; }
.page-hero .copy { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: clamp(28px, 5vw, 56px); background: linear-gradient(0deg, rgba(19,32,58,.95), rgba(19,32,58,0)); padding-top: 120px; }
.page-hero h1 { margin: 0; }
.crumbs { font-family: var(--display); font-size: 0.9rem; color: var(--silver); margin-bottom: 10px; }
.crumbs a { text-decoration: none; color: var(--silver-hi); }
.crumbs a:hover { color: var(--gold-hi); }

/* ---------- Family block (Crown) ---------- */
.family { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); padding: 48px 0; border-top: 1px solid var(--line); align-items: start; }
.family:first-of-type { border-top: 0; }
.family img { width: 100%; aspect-ratio: 20 / 17; object-fit: cover; border-radius: var(--radius); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 0; list-style: none; }
.chips li { font-family: var(--display); font-variation-settings: "wdth" 104; font-size: 0.9rem; padding: 5px 12px; border: 1px solid var(--line); border-radius: 20px; }
@media (max-width: 880px) { .family { grid-template-columns: 1fr; } }

/* ---------- Authentication ---------- */
.auth-steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: s; }
.auth-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-dark); }
.auth-steps li::before { content: counter(s); font-family: var(--display); font-variation-settings: "wdth" 120; color: var(--gold-hi); font-size: 1.3rem; line-height: 1.2; }
.auth-steps p { margin: 0; color: var(--silver-hi); }

/* ---------- Dealers ---------- */
.dealers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 36px; }
.dealers div { background: var(--white); display: flex; align-items: center; justify-content: center; padding: 22px 18px; }
.dealers img { max-height: 54px; width: auto; filter: grayscale(1); opacity: 0.85; }

/* ---------- Contact / footer ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; margin-top: 32px; }
.contact-grid h4 { color: var(--gold-hi); }
.contact-grid p { color: var(--silver-hi); margin: 0 0 6px; }
.contact-grid a { text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.contact-grid a:hover { border-bottom-color: var(--gold-hi); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer { background: #0e182c; color: var(--silver); padding: 28px 0; font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--silver-hi); text-decoration: none; }

/* ---------- Lightbox ---------- */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); }
dialog.lightbox::backdrop { background: rgba(10, 16, 30, 0.88); }
dialog.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
dialog.lightbox p { color: var(--silver-hi); text-align: center; margin: 12px auto 0; font-family: var(--display); }
dialog.lightbox button { position: absolute; top: 8px; right: 8px; background: rgba(19,32,58,.8); color: #fff; border: 1px solid var(--line-dark); padding: 8px 14px; font-family: var(--display); cursor: pointer; border-radius: var(--radius); }

/* ---------- CMS-rendered content ---------- */
[aria-busy="true"] { opacity: 0.6; transition: opacity 0.2s ease; }
.ph { width: 100%; aspect-ratio: 20 / 17; background: var(--silver-hi); border-radius: var(--radius); }
.rung .ph { width: 220px; aspect-ratio: 5 / 3; }
@media (max-width: 880px) { .rung .ph { width: 100%; } }
.model-group + .model-group { margin-top: 56px; }
.group-h { font-size: 1.6rem; font-weight: 300; font-variation-settings: "wdth" 118; margin: 0; }
.model-group .models { margin-top: 24px; }
.family-h { font-size: 1.8rem; font-weight: 400; font-variation-settings: "wdth" 120; }
.families .family:first-child { border-top: 0; }
.dealers a, .dealers div { background: var(--white); display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; padding: 22px 18px; text-decoration: none; }
.dealers a:hover img { filter: none; opacity: 1; }
.dealer-name { font-family: var(--display); font-variation-settings: "wdth" 110; font-size: 1.05rem; }
.dealer-city { font-size: 0.85rem; color: var(--steel); }
/* ---------- Calls to action ---------- */
.header-cta { padding: 9px 16px; font-size: 0.92rem; white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 881px) { .nav { gap: 18px; } }
@media (max-width: 880px) { .header-cta { display: none; } }
.model-card { display: flex; flex-direction: column; }
.ask {
  display: inline-block; align-self: flex-start; margin-top: 10px;
  font-family: var(--display); font-variation-settings: "wdth" 108; font-size: 0.92rem;
  text-decoration: none; color: var(--navy); border-bottom: 1px solid var(--gold); padding-bottom: 2px;
}
.ask:hover { color: var(--gold); }
.family .ask { margin-top: 18px; }
.cta-band { background: var(--silver-hi); padding: clamp(40px, 6vw, 64px) 0; border-top: 1px solid var(--line); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.3em; }
.cta-inner p { margin: 0; color: var(--steel); }
.feature-copy .btn-row { margin-top: 4px; }
.contact-cta { margin-top: 36px; }
.dealer-cta { margin-top: 24px; }
.mobile-cta { display: none; }
@media (max-width: 880px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--navy); border-top: 1px solid var(--line-dark);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-cta a {
    text-align: center; padding: 15px 8px; color: var(--white); text-decoration: none;
    font-family: var(--display); font-variation-settings: "wdth" 110; font-size: 1rem;
  }
  .mobile-cta a + a { background: var(--gold); }
  body { padding-bottom: 56px; }
}

.note { font-size: 0.9rem; color: var(--steel); border-left: 2px solid var(--gold); padding-left: 14px; margin-top: 28px; }