/* vitramin.pl — direction A "Ciemna pracownia" */

/* ---------- fonts (self-hosted, SIL OFL) ---------- */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/instrument-serif-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/instrument-serif-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/instrument-serif-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/instrument-serif-latin-ext-400-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300; font-display: swap;
  src: url(/assets/fonts/geist-latin-300-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300; font-display: swap;
  src: url(/assets/fonts/geist-latin-ext-300-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/geist-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/geist-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/geist-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/geist-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/geist-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/geist-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- tokens ---------- */
:root {
  --bg: #0b0f0e;
  --text: #e8ece9;
  --muted: #8e9994;
  --faint: #7a8580;
  --rule: #1f2826;
  --accent: #5fe39a;
  --accent-ink: #06120b;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

.display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; }
.display em { font-style: italic; color: var(--accent); }
.eyebrow { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.site-header--overlay { position: absolute; inset: 0 0 auto 0; z-index: 2; border-bottom: 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; letter-spacing: 0.18em; text-decoration: none; }
.logo img { width: 26px; height: 26px; }
.nav { display: flex; gap: 24px; font-size: 14px; }
.nav a { color: #b8c2bd; text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--accent); }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 99px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #7cebb0; }
.btn--ghost { border: 1px solid #3a4440; color: var(--text); }
.btn--ghost:hover { border-color: var(--muted); }

/* ---------- home: hero ---------- */
.hero { position: relative; min-height: 620px; height: 82vh; max-height: 780px; overflow: hidden; background-color: var(--bg); }
.hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(11, 15, 14, 0.75) 38%, rgba(11, 15, 14, 0) 70%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 15, 14, 0) 30%);
}
.hero-text { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 80px; z-index: 1; max-width: 580px; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 4.75rem); line-height: 0.98; margin: 18px 0 22px; }
.lead { font-size: 17px; line-height: 1.6; color: #b8c2bd; font-weight: 300; }

/* ---------- home: offer ---------- */
.offer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.offer article { padding: 40px var(--gutter); border-right: 1px solid var(--rule); }
.offer article:last-child { border-right: 0; }
.num { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--accent); }
.offer h2 { font-size: 30px; margin: 10px 0 12px; }
.offer p { color: var(--muted); font-size: 15px; }

/* ---------- home: how we laminate ---------- */
.layers { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border-top: 1px solid var(--rule); }
.layers-diagram {
  display: flex; align-items: center; justify-content: center;
  padding: 48px var(--gutter); border-right: 1px solid var(--rule);
  background: radial-gradient(ellipse at 40% 50%, rgba(95, 227, 154, 0.08), transparent 60%);
}
.layers-diagram svg { width: 100%; max-width: 520px; height: auto; }
.layers-labels { font-family: var(--sans); font-size: 13px; fill: var(--text); }
.layers-labels .dim { fill: var(--muted); }
.layers-text { padding: 64px var(--gutter); }
.layers-text h2 { font-size: clamp(2.2rem, 5vw, 2.75rem); margin: 12px 0 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; counter-reset: krok; }
.steps li { counter-increment: krok; display: grid; grid-template-columns: 36px minmax(0, 1fr); }
.steps li::before { content: "0" counter(krok); grid-row: span 2; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--accent); line-height: 1.3; }
.steps h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ---------- contact (home block + kontakt page) ---------- */
.contact-card { padding: 56px var(--gutter); }
.contact-card h2 { font-size: clamp(2.2rem, 6vw, 2.75rem); margin-bottom: 26px; }
.contact-list { display: grid; grid-template-columns: 96px minmax(0, 1fr); row-gap: 14px; column-gap: 16px; font-size: 17px; }
.contact-list dt { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; padding-top: 5px; }
.contact-list a { display: inline-block; padding: 4px 0; text-decoration-color: #3a4440; text-underline-offset: 4px; }
.contact-list a:hover { text-decoration-color: var(--accent); }
.more { display: inline-block; margin-top: 30px; color: var(--accent); text-decoration: none; font-size: 15px; }
.more:hover { text-decoration: underline; }
.home-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); border-top: 1px solid var(--rule); }
.map { position: relative; display: block; background-color: #151b19; overflow: hidden; }
.map img { width: 100%; height: 100%; object-fit: cover; }
.map-credit { position: absolute; right: 0; bottom: 0; background: rgba(11, 15, 14, 0.85); padding: 3px 8px; font-size: 11px; color: var(--muted); }
.map-caption { position: absolute; left: 16px; bottom: 16px; background: rgba(11, 15, 14, 0.85); padding: 8px 14px; border-radius: 99px; font-size: 14px; }
.map:hover .map-credit { position: absolute; right: 0; bottom: 0; background: rgba(11, 15, 14, 0.85); padding: 3px 8px; font-size: 11px; color: var(--muted); }
.map-caption { color: var(--accent); }

/* ---------- kontakt page ---------- */
.page-head { padding: 72px var(--gutter) 40px; }
.page-head h1 { font-size: clamp(3rem, 10vw, 5.5rem); margin-top: 14px; }
.page-head .lead { max-width: 560px; margin-top: 18px; }
.kontakt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); border-top: 1px solid var(--rule); }
.kontakt-grid .map { min-height: 420px; border-left: 1px solid var(--rule); }
.big-links { display: flex; flex-direction: column; gap: 6px; margin-bottom: 28px; }
.big-links a { font-family: var(--serif); font-size: clamp(1.9rem, 5vw, 2.6rem); text-decoration: none; line-height: 1.2; }
.big-links a:hover { color: var(--accent); }
.osm-credit { display: block; padding: 10px var(--gutter); font-size: 12px; color: var(--faint); text-align: right; border-top: 1px solid var(--rule); }
.company-data { padding: 48px var(--gutter) 64px; border-top: 1px solid var(--rule); }
.company-data h2 { font-size: 30px; margin-bottom: 20px; }
.company-data dl { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); row-gap: 10px; column-gap: 24px; font-size: 15px; max-width: 900px; }
.company-data dt { color: var(--faint); }

/* ---------- 404 ---------- */
.notfound { padding: 96px var(--gutter) 120px; max-width: 720px; }
.notfound h1 { font-size: clamp(2.6rem, 8vw, 4.5rem); margin: 14px 0 18px; }

/* ---------- footer ---------- */
.site-footer { padding: 28px var(--gutter) 36px; border-top: 1px solid var(--rule); color: var(--faint); font-size: 13px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer-row nav { display: flex; gap: 20px; }
.footer-row a { color: var(--muted); text-decoration: none; display: inline-block; padding: 6px 0; }
.footer-row a:hover { color: var(--text); }
.legal { margin-top: 12px; font-size: 12px; line-height: 1.7; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .site-header { padding-top: 16px; padding-bottom: 16px; }
  .nav { gap: 16px; }
  .hero { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; }
  .hero picture { display: block; position: relative; height: 56vh; min-height: 300px; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 42%, rgba(11, 15, 14, 0) 62%); }
  .hero-text { position: relative; left: auto; right: auto; bottom: auto; margin-top: -120px; padding: 0 var(--gutter) 48px; }
  .offer, .layers, .home-contact, .kontakt-grid { grid-template-columns: minmax(0, 1fr); }
  .offer article { border-right: 0; border-bottom: 1px solid var(--rule); padding-top: 32px; padding-bottom: 32px; }
  .offer article:last-child { border-bottom: 0; }
  .layers-diagram { border-right: 0; padding-top: 32px; padding-bottom: 8px; }
  .layers-labels { font-size: 18px; }
  .layers-text { padding-top: 24px; padding-bottom: 48px; }
  .home-contact .map, .kontakt-grid .map { min-height: 0; height: 300px; border-left: 0; }
  .contact-list { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .contact-list dd { margin-bottom: 12px; }
  .company-data dl { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .company-data dd { margin-bottom: 10px; }
  .page-head { padding-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
