/* Hardcarbon Iberia — firemná stránka hardcarb.eu. Vzhľad podľa návrhu v Claude Design (Desktop 1440 px + Mobile 390 px).
   Len statické súbory: písma z vlastného servera, žiadne skripty ani vložené štýly (CSP default-src 'self'). */

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/SourceSerif4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #F6F4EF;
  --paper: #FFFFFF;
  --ink: #17171B;
  --body: #45423D;
  --text: #2E2C28;
  --muted: #6B6760;
  --line: #E2DED5;
  --pill: #C9C4B8;
  --tag: #EFEBE3;
  --accent: #D4572A;      /* bodka v logu */
  --accent-text: #B8431F; /* text v akcentovej farbe (kontrast aspoň 4,5 : 1) */
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--ink); }
a:hover { color: var(--accent-text); }
a:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
p { margin: 0; }
main { flex: 1 0 auto; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* Hlavička */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.dot { color: var(--accent); }
.nav { display: flex; gap: 32px; font-size: 15px; font-weight: 500; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav .wide { display: none; }

.top-right { display: flex; align-items: center; gap: 20px; }
.lang { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 36px; padding: 0 8px;
  border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); text-decoration: none;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] { background: var(--ink); color: var(--ground); }
.top .back, .top .nav { display: none; }

/* Úvod */
.hero .wrap { padding-top: 16px; padding-bottom: 40px; }
.sunrise {
  position: relative; overflow: hidden; border-radius: 18px; min-height: 620px; color: #FAF8F3; text-align: center;
  background: #0E0E10 url("/sunrise.svg") center / cover no-repeat;
  display: grid; grid-template-rows: 1fr 1fr;
}
.sunrise-sky { align-self: end; padding: 32px 20px 44px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.sunrise-earth { align-self: start; padding: 44px 20px 36px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(250, 248, 243, 0.78); }
.hero h1 { font-size: 36px; line-height: 1.1; letter-spacing: -0.01em; max-width: 900px; text-shadow: 0 2px 30px rgba(10, 24, 38, 0.45); }
.lead { font-size: 17px; line-height: 1.6; color: rgba(250, 248, 243, 0.86); max-width: 620px; }
.actions { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border: 1px solid var(--ink); border-radius: 10px; font-size: 16px; font-weight: 500; text-decoration: none;
}
.btn-dark { background: var(--ink); color: var(--ground); }
.btn-dark:hover { background: #2B2B31; color: var(--ground); }
.btn-light { background: #FAF8F3; border-color: #FAF8F3; color: var(--ink); }
.btn-light:hover { background: #FFFFFF; color: var(--ink); }
.btn-ghost { border-color: rgba(250, 248, 243, 0.7); color: #FAF8F3; }
.btn-ghost:hover { border-color: #FAF8F3; color: #FFFFFF; background: rgba(250, 248, 243, 0.08); }
.sunrise a:focus-visible { outline-color: #FAF8F3; }

/* Produkty */
.products { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.products > .wrap { padding-top: 40px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 20px; }
.products h2, .company h2 { font-size: 30px; letter-spacing: -0.01em; }
.pill { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.pill-dark { background: var(--ink); color: var(--ground); }
.pill-line { border: 1px solid var(--pill); color: var(--body); font-weight: 400; }

.flagship {
  padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--ground);
  display: flex; flex-direction: column; gap: 12px;
}
.flagship-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flagship-name { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.flagship p { font-size: 16px; line-height: 1.6; color: var(--body); }
.flagship-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 500; }

.next { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.next-label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.next h3 { font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }
.next p { font-size: 16px; line-height: 1.6; color: var(--body); }

.connectors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.connector {
  padding: 22px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper);
  display: flex; flex-direction: column; gap: 12px;
}
.connector-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tag { padding: 5px 9px; border-radius: 6px; background: var(--tag); font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--body); }
.connector h4 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.connector p { font-size: 15px; line-height: 1.55; color: var(--body); }

/* Firma */
.company .wrap { padding-top: 40px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 16px; }
.company-intro { display: flex; flex-direction: column; gap: 16px; }
.company-intro p { font-size: 16px; line-height: 1.6; color: var(--body); }
.facts { margin: 8px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; font-size: 16px; line-height: 1.55; }
.facts dt { font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 0; overflow-wrap: anywhere; }
/* Sekcia Company je spolu s pätičkou jeden tmavý blok. */
.company { background: var(--ink); color: #FAF8F3; }
.company .company-intro p { color: rgba(250, 248, 243, 0.8); }
.company .facts dt { color: rgba(250, 248, 243, 0.6); }
.company a { color: #FAF8F3; }
.company a:hover { color: #F2A07A; }
.company a:focus-visible { outline-color: #FAF8F3; }

/* Pätička */
.foot { background: var(--ink); border-top: 1px solid rgba(250, 248, 243, 0.14); font-size: 14px; color: rgba(250, 248, 243, 0.8); }
.foot .wrap { padding-top: 20px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 8px; }
.foot-links { display: flex; gap: 24px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: #FAF8F3; }
.foot-links a:hover { color: #F2A07A; }
.foot a:focus-visible { outline-color: #FAF8F3; }

/* Právne stránky */
.back { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: none; }
.doc .wrap { padding-top: 48px; padding-bottom: 64px; }
.doc article { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.doc h1 { font-size: 38px; line-height: 1.1; letter-spacing: -0.02em; }
.doc .meta { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.doc h2 { margin-top: 32px; font-size: 24px; }
.doc p, .doc li { font-size: 17px; line-height: 1.65; color: var(--text); }
.doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.doc .facts { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }

/* Tablet a počítač */
@media (min-width: 700px) {
  .wrap { padding: 0 40px; }
  .top .back, .top .nav { display: inline-flex; }
  .top-right { gap: 28px; }
  .actions { flex-direction: row; justify-content: center; width: auto; }
  .sunrise { border-radius: 24px; min-height: 640px; }
  .connectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
  .facts .full { grid-column: 1 / -1; }
  .foot .wrap { flex-direction: row; align-items: center; justify-content: space-between; }
  .foot .copy { order: -1; }
}
@media (min-width: 1000px) {
  .wrap { padding: 0 80px; }
  .top .wrap { min-height: 88px; }
  .brand { font-size: 24px; }
  .nav .wide { display: inline-flex; }
  .eyebrow { font-size: 14px; }
  .hero .wrap { padding-top: 32px; padding-bottom: 72px; }
  .sunrise { min-height: 720px; }
  .sunrise-sky { padding: 64px 48px 52px; gap: 24px; }
  .sunrise-earth { padding: 56px 48px 56px; gap: 32px; }
  .hero h1 { font-size: 68px; line-height: 1.04; letter-spacing: -0.02em; }
  .lead { font-size: 20px; }
  .products > .wrap { padding-top: 88px; padding-bottom: 88px; gap: 40px; }
  .products h2, .company h2 { font-size: 40px; }
  .flagship { padding: 40px; display: grid; grid-template-columns: 4fr 6fr 2fr; gap: 24px; align-items: center; }
  .flagship-head { flex-direction: column-reverse; align-items: flex-start; }
  .flagship-name { font-size: 40px; }
  .flagship p { font-size: 18px; }
  .flagship-link { justify-self: end; }
  .next { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; }
  .next-label { font-size: 14px; }
  .next h3 { font-size: 34px; line-height: 1.15; margin-top: 12px; }
  .next p { font-size: 17px; }
  .connectors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .connector { padding: 32px; gap: 16px; border-radius: 16px; }
  .connector h4 { font-size: 30px; }
  .connector p { font-size: 16px; line-height: 1.6; }
  .company .wrap { padding-top: 72px; padding-bottom: 88px; display: grid; grid-template-columns: 5fr 1fr 6fr; gap: 24px; }
  .company-intro { grid-column: 1; }
  .company-intro p { font-size: 17px; }
  .company .facts { grid-column: 3; margin: 0; }
  .foot .wrap { padding-top: 28px; padding-bottom: 32px; }
  .doc .wrap { padding-top: 88px; padding-bottom: 96px; }
  .doc h1 { font-size: 52px; }
  .doc h2 { margin-top: 40px; font-size: 26px; }
  .doc .facts { padding: 28px 32px; }
}
