/* ivm-firma.pl — B2B gas supplier, static site.
   Palette carried over from the 2026-06 product cards (build_docs.py). */

:root {
  --navy: #1d2b3a;
  --navy-soft: #2b3d50;
  --steel: #3a6ea5;
  --steel-dark: #2f5c8a;
  --grey: #6b7280;
  --light: #f4f6f9;
  --hair: #d7dde5;
  --white: #ffffff;
  --ink: #16202b;
  --wrap: 1080px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(29, 43, 58, .06), 0 8px 24px rgba(29, 43, 58, .06);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--steel-dark); }
a:hover { color: var(--navy); }

h1, h2, h3 { color: var(--navy); line-height: 1.22; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.9rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); letter-spacing: -.01em; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1rem; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.site-head {
  background: var(--white);
  border-bottom: 1px solid var(--hair);
  position: sticky; top: 0; z-index: 5;
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 74px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; padding: 8px 0; }
.brand img { width: 132px; height: auto; display: block; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  display: inline-block; padding: 8px 12px; border-radius: 8px;
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.nav a:hover { background: var(--light); }
.nav a[aria-current="page"] { color: var(--steel-dark); background: var(--light); }
.nav .lang {
  margin-left: 6px; border: 1px solid var(--hair); font-size: .82rem;
  letter-spacing: .06em; padding: 6px 11px; color: var(--grey);
}
.nav .lang:hover { color: var(--navy); border-color: var(--grey); background: transparent; }

/* ---------- sections ---------- */
section { padding: 56px 0; }
section.tight { padding: 40px 0; }
section.alt { background: var(--light); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.section-head { max-width: 62ch; margin-bottom: 30px; }
.section-head p { color: var(--grey); margin: 0; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 62%, #35516b 100%);
  color: #eef3f8; padding: 76px 0 84px;
}
.hero-grid { display: grid; gap: 34px; align-items: center; grid-template-columns: 1fr; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero-figure { margin: 0; display: none; }
.hero-figure img {
  display: block; margin: 0 auto; max-height: 420px; width: auto;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .38));
}
.hero .lead { font-size: 1.16rem; max-width: 56ch; color: #cfdcea; margin-bottom: 28px; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-note { color: #9fb4cb; font-size: .9rem; margin: 0; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin: 30px 0 0; padding: 0; list-style: none; }
.hero-tags li {
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  padding: 5px 14px; font-size: .86rem; color: #cfdcea;
}

.btn {
  display: inline-block; background: var(--steel); color: #fff; text-decoration: none;
  font-weight: 600; padding: 13px 24px; border-radius: 8px; border: 1px solid transparent;
}
.btn:hover { background: #4a80bb; color: #fff; }
.btn-ghost { background: transparent; border-color: var(--hair); color: var(--navy); }
.btn-ghost:hover { background: var(--light); color: var(--navy); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .35em; }
.card .sub { color: var(--steel-dark); font-weight: 600; font-size: .92rem; margin-bottom: .8em; }
.card p { color: #35424f; font-size: .96rem; }
.card ul.spec { list-style: none; margin: 0 0 18px; padding: 0; }
.card ul.spec li { font-size: .9rem; color: var(--grey); padding: 4px 0 4px 18px; position: relative; }
.card ul.spec li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--steel);
}
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; font-size: .95rem; }
.card .more:hover { text-decoration: underline; }

/* ---------- delivery / feature list ---------- */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.features h3 { font-size: 1rem; margin-bottom: .3em; }
.features p { color: var(--grey); font-size: .95rem; margin: 0; }
.features li { border-top: 2px solid var(--steel); padding-top: 14px; }

/* photo band */
.band { margin: 34px 0 0; }
.band img {
  display: block; width: 100%; height: clamp(190px, 26vw, 320px);
  object-fit: cover; object-position: center 42%;
  border-radius: var(--radius); border: 1px solid var(--hair);
}

/* ---------- product detail ---------- */
.product { border-top: 1px solid var(--hair); padding-top: 40px; margin-top: 40px; }
.product:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.product > .intro { max-width: 68ch; color: #35424f; }
.tables { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 26px; }
.table-block h3 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--grey); margin-bottom: .7em;
}
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--hair); vertical-align: top; }
th { font-weight: 600; color: var(--navy); width: 52%; }
td { color: #35424f; }
tr:nth-child(odd) th, tr:nth-child(odd) td { background: var(--light); }
.table-scroll { overflow-x: auto; }

/* ---------- documents ---------- */
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.docs a {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  background: var(--white); border: 1px solid var(--hair); border-radius: 8px;
  padding: 13px 16px; color: var(--navy); font-size: .95rem; font-weight: 500;
}
.docs a:hover { border-color: var(--steel); background: var(--light); }
.docs .ext { font-size: .72rem; letter-spacing: .07em; color: var(--grey); font-weight: 700; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.contact-block h3 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; color: var(--grey);
}
.contact-block p { margin: 0 0 .3rem; }
.mail-big { font-size: 1.3rem; font-weight: 600; }
.note { color: var(--grey); font-size: .92rem; }

/* ---------- cta band ---------- */
.cta { background: var(--navy); color: #eef3f8; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #cfdcea; max-width: 56ch; margin: 0 auto 24px; }

/* ---------- legal / long text ---------- */
.legal { max-width: 78ch; }
.legal h2 { font-size: 1.15rem; margin-top: 2em; }
.legal .lede { font-size: 1.03rem; color: #35424f; }
.legal ul { padding-left: 1.15em; }
.legal li { margin-bottom: .5em; }
.legal .doc-date { color: var(--grey); font-size: .9rem; margin-top: 2.4em; }
.legal-source { color: var(--grey); font-size: .88rem; border-left: 3px solid var(--hair); padding-left: 14px; }

/* ---------- 404 ---------- */
.notfound { padding: 96px 0; text-align: center; }

/* ---------- footer ---------- */
.site-foot { background: var(--light); border-top: 1px solid var(--hair); margin-top: 0; padding: 44px 0 26px; }
.foot-inner { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.site-foot p { margin: 0 0 .3rem; font-size: .92rem; color: var(--grey); }
.foot-name { font-weight: 700; color: var(--navy) !important; }
.foot-links a { text-decoration: none; font-weight: 600; }
.foot-links a:hover { text-decoration: underline; }
.foot-links .sep { color: var(--hair); margin: 0 6px; }
.foot-rights { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--hair); }
.foot-rights p { font-size: .85rem; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 48px; }
  .hero-figure { display: block; }
  .hero { padding: 68px 0 72px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 60px; }
  section { padding: 44px 0; }
  .head-inner { min-height: 64px; }
  .nav a { padding: 7px 9px; font-size: .9rem; }
}
