:root {
  --bg: #101419;
  --bg-2: #161c23;
  --panel: #1b232c;
  --text: #f3f5f7;
  --muted: #aeb7c1;
  --line: rgba(255,255,255,.10);
  --accent: #f0a62b;
  --accent-2: #ffc55f;
  --paper: #f3f1eb;
  --ink: #171b20;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0,0,0,.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; top: 10px; }
.skip-link:focus { left: 10px; z-index: 100; background: white; color: black; padding: 8px 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16,20,25,.92);
  color: var(--text);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 900; letter-spacing: .08em; }
.brand-mark { width: 34px; height: 34px; border: 2px solid var(--accent); border-radius: 8px; display: grid; place-items: center; color: var(--accent); font-size: 20px; }
.brand-text { font-size: 18px; }
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a { text-decoration: none; font-size: 14px; color: #dfe4e8; }
.main-nav a:hover { color: var(--accent-2); }
.menu-toggle { display: none; border: 1px solid var(--line); background: transparent; color: white; border-radius: 8px; padding: 9px 12px; font: inherit; }

.hero {
  color: var(--text);
  background:
    radial-gradient(circle at 80% 15%, rgba(240,166,43,.16), transparent 28%),
    linear-gradient(135deg, #0c1014 0%, #121922 60%, #101419 100%);
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 56px; padding: 88px 0 96px; }
.eyebrow, .section-kicker { font-size: 12px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.hero h1 { margin: 0; font-size: clamp(46px, 6vw, 82px); line-height: .98; letter-spacing: -.045em; max-width: 800px; }
.hero h1 span { color: #aab3bc; }
.hero-lead { max-width: 650px; font-size: clamp(18px, 2vw, 22px); color: #c2c9cf; margin: 28px 0 0; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 18px; border-radius: 10px; text-decoration: none; font-weight: 800; font-size: 14px; border: 1px solid transparent; }
.button.primary { background: var(--accent); color: #151515; }
.button.primary:hover { background: var(--accent-2); }
.button.ghost { border-color: rgba(255,255,255,.18); color: white; }
.button.ghost:hover { border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.05); }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; filter: drop-shadow(0 35px 50px rgba(0,0,0,.35)); }

.section { padding: 96px 0; }
.section h2 { margin: 0; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.05; letter-spacing: -.035em; }
.split { display: grid; grid-template-columns: .82fr 1.18fr; gap: 76px; align-items: start; }
.prose { font-size: 19px; color: #4b535b; max-width: 760px; }
.prose p:first-child { margin-top: 4px; }
.section-dark { background: var(--bg); color: var(--text); }
.section-dark h2 { margin-bottom: 42px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #0c1116; }
.card-body { padding: 24px 24px 28px; }
.card h3 { margin: 0 0 10px; font-size: 24px; }
.card p { margin: 0; color: var(--muted); }

.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.muted { max-width: 430px; color: #747c83; margin: 0; }
.project-grid { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: repeat(2, 270px); gap: 20px; }
.project { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: #202832; box-shadow: 0 16px 50px rgba(20,25,31,.13); }
.project-wide { grid-row: 1 / span 2; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.project:hover img { transform: scale(1.025); }
.project figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 38px 24px 22px; color: white; background: linear-gradient(transparent, rgba(0,0,0,.78)); display: flex; flex-direction: column; }
.project figcaption strong { font-size: 22px; }
.project figcaption span { color: #d5d9dd; font-size: 14px; }

.contact { padding: 86px 0; background: #d9901c; color: #151515; }
.contact .section-kicker { color: #151515; opacity: .68; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.contact h2 { font-size: clamp(40px, 5vw, 64px); margin: 0 0 18px; line-height: 1; letter-spacing: -.04em; }
.contact p { max-width: 650px; font-size: 18px; }
.contact-card { background: rgba(16,20,25,.94); color: white; border-radius: 16px; padding: 12px 24px; box-shadow: var(--shadow); }
.contact-line { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.11); }
.contact-line:last-child { border-bottom: 0; }
.contact-line span { color: #9da8b2; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.contact-line a { color: var(--accent-2); font-weight: 700; text-decoration: none; }

.site-footer { background: #0b0e11; color: #9fa8b0; border-top: 1px solid var(--line); }
.footer-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; }
.footer-inner div { display: flex; gap: 22px; }
.site-footer a { text-decoration: none; color: #d7dce0; }
.site-footer a:hover { color: var(--accent-2); }

.legal-page { background: #14191f; color: var(--text); }
.legal-main { min-height: calc(100vh - 160px); }
.legal-wrap { max-width: 900px; }
.legal-wrap h1 { font-size: clamp(42px, 5vw, 68px); margin: 0 0 50px; letter-spacing: -.04em; line-height: 1; }
.legal-block { padding: 28px 0 32px; border-top: 1px solid var(--line); }
.legal-block h2 { font-size: 26px; margin-bottom: 20px; }
.legal-block p { color: #c3cbd2; }
.legal-data { margin: 0; }
.legal-data div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.legal-data dt { color: #8f99a3; }
.legal-data dd { margin: 0; font-weight: 650; }
.legal-data a { color: var(--accent-2); }
.notice { margin-top: 18px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.legal-updated { margin-top: 40px; color: #7f8992; font-size: 13px; }

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 28px; padding: 68px 0 72px; }
  .hero-visual { max-width: 620px; }
  .cards { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: 200px 1fr; }
  .card img { height: 100%; aspect-ratio: auto; }
  .section-heading-row { align-items: start; flex-direction: column; }
  .project-grid { grid-template-columns: 1fr; grid-template-rows: 420px 270px 270px; }
  .project-wide { grid-row: auto; }
}

@media (max-width: 720px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .menu-toggle { display: block; }
  .main-nav:not(.legal-nav) { position: absolute; left: 14px; right: 14px; top: 66px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 9px; border-radius: 12px; background: #151b21; border: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav:not(.legal-nav) a { padding: 12px; border-radius: 8px; }
  .main-nav:not(.legal-nav) a:hover { background: rgba(255,255,255,.05); }
  .section { padding: 72px 0; }
  .hero h1 { font-size: clamp(42px, 14vw, 64px); }
  .hero-lead { font-size: 18px; }
  .card { display: block; }
  .card img { aspect-ratio: 16/9; }
  .project-grid { grid-template-rows: 330px 240px 240px; }
  .contact-line { grid-template-columns: 1fr; gap: 4px; }
  .footer-inner { min-height: 110px; align-items: flex-start; justify-content: center; flex-direction: column; padding: 24px 0; }
  .footer-inner div { flex-wrap: wrap; }
  .legal-data div { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Oziris kalkulátor */
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 90px; }
#kalkulator h2 { margin-bottom: 20px; }
.calc-intro, .calc-note { color: var(--muted); max-width: 850px; }
.calc-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px,4vw,44px); margin-top: 32px; }
.calc-card fieldset { border: 0; border-top: 1px solid var(--line); padding: 20px 0; margin: 24px 0 0; min-width: 0; }
.calc-card legend { font-weight: 800; padding-right: 18px; }
.calc-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.calc-field { display: flex; flex-direction: column; gap: 8px; font-weight: 650; margin-bottom: 16px; }
.calc-field span { color: var(--muted); font-size: 13px; font-weight: 400; }
.calc-field input, .calc-field select { width: 100%; min-height: 48px; border: 1px solid #66717e; border-radius: 8px; padding: 12px; font: inherit; background: #101419; color: var(--text); }
.calc-method { max-width: 460px; }
.calc-field input:focus, .calc-field select:focus, .calc-card button:focus-visible, .calc-check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.calc-check { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.calc-check input { width: 20px; height: 20px; accent-color: var(--accent); flex-shrink: 0; }
.calc-card button { font: inherit; cursor: pointer; }
.calc-help, .calc-note, .calc-details { font-size: 14px; }
.calc-help a, .calc-result a, .calc-note a { color: var(--accent-2); }
.calc-status { color: var(--muted); }
.calc-result { padding: 24px; background: var(--bg); border: 1px solid var(--accent); border-radius: 12px; margin: 24px 0; }
.calc-result dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 0; }
.calc-result dt { color: var(--muted); font-size: 14px; }
.calc-result dd { margin: 8px 0 0; font-size: clamp(20px,2.6vw,30px); font-weight: 800; overflow-wrap: anywhere; }
.calc-details { color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; }
.calc-details summary { cursor: pointer; color: var(--text); }
@media (max-width: 720px) { .calc-fields, .calc-result dl { grid-template-columns: 1fr; gap: 8px; } }
