/* =========================================================================
   e-Izkaznica.si — stylesheet (Editorial Minimalist Layout)
   Sections:  1 tokens · 2 base · 3 header/nav · 4 hero & front page
              5 buttons/CTA · 6 FAQ · 7 form + wizard · 8 fields
              9 diagrams · 10 merjena blocks · 11 footer
              12 sticky mobile CTA · 13 chooser overlay
   ========================================================================= */

/* ---- 1. tokens ---------------------------------------------------------- */
:root {
  /* High-Contrast Editorial Palette — Default */
  --ink:        #111827;   /* Almost Black (Borders, Headers, Main Text) */
  --ink-soft:   #6b7280;   /* Muted Gray */
  
  /* Decoupled Shadow Ink: Solid, unblurred, but lighter than the border */
  --shadow-ink: #9ca3af;   /* Crisp, solid mid-tone vector gray shadow */
  
  --paper:      #fafaf9;   /* Very soft warm stone (not harsh white) */
  --surface:    #ffffff;   /* Pure white */
  --line:       #e5e7eb;   /* Light gray */
  --line-soft:  #f3f4f6;

  /* Accent is purely monochrome */
  --primary:      #111827;   
  --primary-deep: #000000;   
  --primary-tint: #f3f4f6;   

  /* Softened editorial feel — gently rounded corners */
  --radius-lg:  12px;  
  --radius:     10px;
  --radius-s:   8px;
  
  /* Soft, diffuse shadows (previously hard offset blocks) */
  --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow:     0 4px 14px rgba(17, 24, 39, 0.07); 
  --shadow-lg:  0 12px 30px rgba(17, 24, 39, 0.10);

  /* Temna podlaga za logotip DIMING (bel logotip potrebuje temno ozadje) */
  --brand-dark: #272727;

  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 980px;
}

/* ---- 2. base ------------------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--ink); transition: opacity 0.2s; }
a:hover { opacity: 0.7; }
img, svg { max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- 3. header / nav ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 250, 249, 0.95); 
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--ink);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
.brand .mark { width: 32px; height: 32px; flex: 0 0 auto; }

a.brand { text-decoration: none; border-bottom: none; font-weight: 900; }
a.brand:hover { opacity: 1; }

/* Znak e-Izkaznica.si + podnapis "ENERGETSKI IZRAČUNI" */
.brand-lockup { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.brand-name { font-weight: 900; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
.brand-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--ink-soft);
}

.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav button, .nav a {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  background: none; border: none; color: var(--ink-soft);
  padding: 8px 16px; transition: all 0.2s ease;
}
.nav a { display: inline-block; text-decoration: none; }
.nav button:hover, .nav a:hover { color: var(--ink); opacity: 1; }
.nav button.active, .nav a.active { color: var(--surface); background: var(--ink); }
.nav .soon { font-size: 10px; font-weight: 800; letter-spacing: 0.05em; color: #9ca3af; margin-left: 6px; vertical-align: 1px; }

/* ---- 4. Hero & Front Page Layout ---------------------------------------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

.minimalist-hero {
  text-align: left; 
  padding: 80px 0 60px 0;
  background: transparent;
  border: none;
  box-shadow: none;
  margin-top: 0;
}
.minimalist-hero .eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 4px;
}
.minimalist-hero h1 {
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 32px;
}
.minimalist-hero .hero-lead {
  font-size: 20px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 650px;
  margin-bottom: 40px;
}

/* Editorial Cards */
.editorial-grid { margin-top: 20px; }
.flat-card {
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 40px 32px;
  box-shadow: var(--shadow); 
  transition: transform 0.2s, box-shadow 0.2s;
}
.flat-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-lg);
}
.card-header { margin-bottom: 16px; color: var(--ink); }

/* ---- 5. buttons / CTA --------------------------------------------------- */
.sharp-btn {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: var(--radius-s); 
  padding: 18px 40px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.sharp-btn:hover {
  background: var(--primary-deep);
  transform: translate(2px, 2px); 
}
.btn { font: inherit; font-size: 15px; font-weight: 600; padding: 14px 28px; border-radius: var(--radius-s); cursor: pointer; transition: all 0.2s ease; border: 1.5px solid transparent; }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: var(--primary-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); font-weight: 600; padding: 14px 28px; border-radius: var(--radius-s); cursor: pointer; font-size: 15px; transition: all 0.2s; }
.btn-ghost:hover { background: var(--line-soft); border-color: var(--ink-soft); }

/* ---- 6. Clean FAQ ------------------------------------------------------- */
.clean-faq { margin-top: 100px; }
.clean-faq .faq-title { text-align: left; font-size: 36px; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 40px; }
.faq-card-clean {
  background: transparent;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 0;
}
.faq-card-clean summary {
  padding: 24px 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-card-clean summary::-webkit-details-marker { display: none; }
.faq-card-clean[open] summary { border-bottom: none; }
.faq-card-clean summary::after {
  content: "+"; font-size: 24px; font-weight: 400; color: var(--ink); transition: transform 0.3s;
}
.faq-card-clean[open] summary::after { transform: rotate(45deg); }

/* Animated Expand Render Sequence for FAQ Accordions */
.faq-card-clean .faq-content { 
  background: transparent; 
  padding: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, padding 0.35s ease;
}
.faq-card-clean[open] .faq-content { 
  padding: 0 0 24px 0;
  max-height: 500px; /* Room for content layout */
  opacity: 1;
}

.faq-card-clean p, .faq-card-clean ul { margin: 0; font-size: 16px; color: var(--ink-soft); line-height: 1.6; }
.faq-card-clean ul { padding-left: 20px; margin-top: 12px; }
.faq-card-clean li { margin-bottom: 8px; }

/* ---- 7. form card + wizard --------------------------------------------- */
.split-header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid var(--ink); padding-bottom: 16px; margin-bottom: 24px; }
.split-header h2 { margin: 0; font-size: 28px; }

.back-link { background: none; border: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; padding: 0; margin-bottom: 20px; border-bottom: 1px solid var(--ink); transition: opacity 0.2s ease; }
.back-link:hover { opacity: 0.6; }

.form-card, form { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: var(--radius) !important; padding: 40px !important; box-shadow: var(--shadow) !important; }

/* progress */
.progress { margin-bottom: 0; }
.progress-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.progress-meta strong { color: var(--ink); }
.progress-track { height: 4px; background: var(--line); overflow: hidden; }
.progress-fill { height: 100%; background: var(--ink); transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

/* step */
.step { display: none; }
.step.active { display: block; animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.step-title { font-size: 24px; margin-bottom: 8px; font-weight: 800; }
.step-hint { font-size: 15px; color: var(--ink-soft); margin-bottom: 40px; }

.nav-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.nav-row .spacer { flex: 1; }

/* ---- 8. fields ---------------------------------------------------------- */
.field { margin-bottom: 24px; }
.span-2 { grid-column: 1 / -1; }
.lbl { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.lbl .opt { font-weight: 500; color: var(--ink-soft); font-size: 12px; margin-left: 4px; text-transform: none; letter-spacing: 0; }
.help { font-size: 13px; color: var(--ink-soft); margin-top: 8px; line-height: 1.5; }

/* Honeypot: skrito pred ljudmi, vidno robotom (nikoli ne povzroči vodoravnega drsenja) */
.hp-wrap { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Navigacija znotraj obrazca (Domov / Nazaj) */
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.wnav-btn { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); background: transparent; border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 8px 14px; cursor: pointer; transition: all 0.2s ease; }
.wnav-btn:hover { background: var(--line-soft); border-color: var(--ink-soft); }
.wnav-btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.wnav-home { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.wnav-home:hover { background: var(--primary-deep); border-color: var(--primary-deep); }

/* Inputs styling */
input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-s);
  padding: 14px 16px; transition: all 0.2s ease;
}
textarea { min-height: 120px; resize: vertical; }

input:focus, select:focus, textarea:focus { 
  outline: none; border-color: var(--ink); background: var(--surface);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}
input::placeholder, textarea::placeholder { color: #9ca3af; }
select { 
  appearance: none; 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); 
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; 
}

/* Checkboxes & Radios */
fieldset { border: none; margin: 0 0 40px; padding: 0; }
fieldset > legend { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 20px; padding: 0; border-bottom: 1px solid var(--line); width: 100%; padding-bottom: 12px; }
.choice { display: flex; flex-direction: column; gap: 12px; }
.choice.row { flex-direction: row; flex-wrap: wrap; gap: 16px 24px; }
.choice label { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; color: var(--ink); cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--ink); flex: 0 0 auto; cursor: pointer; }

/* Card-style choices */
.choice.cards { gap: 16px; }
.choice.cards label { background: var(--paper); border: 2px solid var(--line); padding: 20px; align-items: flex-start; transition: all 0.2s ease; }
.choice.cards label:hover { border-color: var(--ink-soft); }
.choice.cards label:has(input:checked) { border-color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.choice.cards .c-txt { display: flex; flex-direction: column; gap: 4px; }
.choice.cards .c-txt small { color: var(--ink-soft); font-size: 14px; font-weight: 400; }

.checkbox-inline { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--ink); cursor: pointer; line-height: 1.6; }
.checkbox-inline input { width: 20px; height: 20px; accent-color: var(--ink); margin-top: 2px; flex: 0 0 auto; }

/* conditional reveal */
[data-show-when] { display: none; }
[data-show-when].revealed { display: block; margin-top: 16px; animation: fadeIn 0.4s ease; }

.dirs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dirs .field { margin: 0; }

/* photo slots */
.photo-slot { border: 2px dashed var(--line); padding: 24px; margin-bottom: 16px; background: var(--paper); transition: border-color 0.2s; }
.photo-slot:hover { border-color: var(--ink); }
.photo-slot .ps-head { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.photo-slot .req { font-size: 11px; font-weight: 800; letter-spacing: 0.05em; color: var(--surface); background: var(--ink); padding: 4px 8px; }
.photo-slot .opt { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; color: var(--ink); background: var(--line); padding: 4px 8px; }
input[type=file] { width: 100%; font: inherit; font-size: 14px; background: transparent; cursor: pointer; }
input[type=file]::file-selector-button { font: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; border: 2px solid var(--ink); background: var(--surface); padding: 10px 16px; margin-right: 16px; cursor: pointer; color: var(--ink); transition: all 0.2s ease; }
input[type=file]::file-selector-button:hover { background: var(--ink); color: var(--surface); }

/* Slovenski gumb za izbiro datotek (js/datoteke.js).
   Pravi input je skrit, a ostane dosegljiv s tabulatorjem — zato fokus
   prikažemo na našem gumbu prek :focus-within. */
.file-field { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; position: relative; }
.file-field input[type=file] { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; opacity: 0; }
.file-btn {
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  border: 2px solid var(--ink); background: var(--surface); color: var(--ink);
  padding: 10px 16px; cursor: pointer; transition: all 0.2s ease; flex: 0 0 auto;
}
.file-btn:hover { background: var(--ink); color: var(--surface); }
.file-field:focus-within .file-btn { outline: 2px solid var(--ink); outline-offset: 2px; }
.file-name { font-size: 14px; color: var(--ink-soft); word-break: break-word; min-width: 0; }

/* ---- 9. diagrams ------------------------------------------------------- */
.diagram { margin: 12px 0 32px; padding: 32px; background: var(--paper); border: 2px solid var(--line); text-align: center; }
.diagram svg { display: inline-block; width: 100%; max-width: 320px; height: auto; }
.diagram img { display: block; margin: 0 auto; max-width: 100%; width: auto; height: auto; border: 2px solid var(--ink); }
.diagram figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 24px; line-height: 1.6; border-top: 1px solid var(--line); padding-top: 16px; font-weight: 500; }
.diagram-compact img { max-width: min(360px, 100%); }

/* ---- 10. merjena (year table + yes/no blocks) -------------------------- */
.years-wrap { overflow-x: auto; margin-top: 12px; border: 2px solid var(--line); }
.years { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 500px; }
.years th { text-align: left; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink); padding: 16px; border-bottom: 2px solid var(--ink); background: var(--paper); }
.years td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.years td:first-child { font-weight: 600; white-space: nowrap; }
.years input { padding: 10px 14px; font-size: 15px; border: 1px solid var(--line); }

.yn { border: 2px solid var(--line); padding: 24px; margin-bottom: 20px; background: var(--paper); }
.yn-q { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.yn .choice.row { margin: 0; }
.yn-detail { display: none; margin-top: 24px; padding-top: 24px; border-top: 2px dashed var(--line); }
.yn-detail.revealed { display: block; animation: fadeIn 0.4s ease; }

/* ---- status / confirmation --------------------------------------------- */
.status { font-size: 15px; padding: 20px 24px; border: 2px solid transparent; margin-top: 32px; display: none; line-height: 1.6; font-weight: 600; }
.status.ok { display: block; background: var(--paper); color: var(--ink); border-color: var(--ink); }
.status.err { display: block; background: #fff1f2; color: #be123c; border-color: #be123c; }

/* ---- 11. footer --------------------------------------------------------- */
.site-footer { background: var(--surface); border-top: 2px solid var(--ink); margin-top: 100px; }
.site-footer .wrap { padding: 64px 24px 40px; }
.footer-ref { font-size: 16px; color: var(--ink-soft); max-width: 640px; margin-bottom: 40px; line-height: 1.7; font-weight: 500; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid var(--line); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-weight: 800; font-size: 16px; padding-top: 2px; }

/* Logotip DIMING za svetlo podlago (img/logo-diming-dark-mark.png):
   črke so v barvi strani, zlata ostaja originalna, rob je že obrezan —
   zato logotip stoji neposredno na podlagi, brez temne ploščice.
   Za slogan pod napisom zamenjaj datoteko z logo-diming-dark.png. */
.footer-logo { display: inline-block; line-height: 0; }
.footer-logo img { display: block; width: 200px; max-width: 100%; height: auto; }
.footer-legal { font-weight: 800; font-size: 16px; color: var(--ink); }
.footer-contact { display: flex; flex-direction: column; gap: 16px; font-size: 15px; color: var(--ink); }
.footer-contact .fc-row { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; transition: opacity 0.2s; border: none; }
.footer-contact .fc-row svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--ink); }
.footer-contact a.fc-row:hover { opacity: 0.6; border: none; }
.footer-fine { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-soft); }

/* ---- 13. chooser overlay ----------------------------------------------- */
.chooser-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(17, 24, 39, 0.8); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.chooser-overlay[hidden] { display: none; }
body.chooser-open { overflow: hidden; }

.chooser-panel {
  position: relative; width: 100%; max-width: 640px;
  background: var(--surface); border: 2px solid var(--ink); box-shadow: var(--shadow-lg);
  padding: 48px 40px; text-align: center; 
  animation: modalFadeIn 0.3s ease forwards;
}
.chooser-panel h3 { font-size: 24px; margin-bottom: 40px; font-weight: 900; }
.chooser-close {
  position: absolute; top: 20px; right: 20px; width: 40px; height: 40px;
  border: none; background: transparent; font-size: 28px; line-height: 1; color: var(--ink-soft);
  cursor: pointer; transition: color 0.2s ease; display: flex; align-items: center; justify-content: center;
}
.chooser-close:hover { color: var(--ink); }

.chooser-options { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.chooser-opt {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  font: inherit; text-align: center; cursor: pointer;
  background: var(--surface); border: 2px solid var(--ink);
  padding: 32px 24px; transition: transform 0.2s, box-shadow 0.2s;
}
.chooser-opt:hover, .chooser-opt:focus {
  outline: none; transform: translate(-4px, -4px); box-shadow: var(--shadow);
}
.chooser-opt .p-ic {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  transition: background 0.2s;
}
.chooser-opt:hover .p-ic { background: var(--line-soft); }
.chooser-opt strong { font-size: 18px; color: var(--ink); font-weight: 800; }
.chooser-opt small { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.chooser-opt .opt-desc { font-size: 13px; color: var(--ink-soft); font-weight: 400; line-height: 1.45; }

/* ---- Hero Specific Button Overrides ---- */
.hero-btn {
  font-size: 18px;
  padding: 22px 48px;
  letter-spacing: 0.08em;
}

/* ---- Responsive Mobile Field Optimization Fallbacks ---- */
@media(max-width: 640px) {
  .grid-2 { 
    grid-template-columns: 1fr !important; 
    gap: 16px !important; 
  }
  
  .chooser-options { 
    grid-template-columns: 1fr !important; 
  }
  
  form, .form-card {
    padding: 24px 16px !important;
  }

  /* Header: brand on its own row, nav wraps onto its own line(s) below it.
     Kept simple and width-bound on purpose — no horizontal scrolling —
     so the header can never push the page wider than the screen. */
  .site-header { position: static; }
  .site-header .wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-block: 12px;
    width: 100%;
    max-width: 100%;
  }
  .brand { font-size: 16px; }
  .brand .mark { width: 28px; height: 28px; }
  .brand-name { font-size: 16px; }
  .brand-tag { font-size: 9px; letter-spacing: 0.14em; }
  .nav {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav button, .nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 13px;
    padding: 8px 14px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
  }
  .nav button.active, .nav a.active { border-color: var(--ink); }
  .nav .soon { margin-left: 4px; }

  /* Noga: logotip in kontakti drug pod drugim */
  .footer-bottom { flex-direction: column; gap: 28px; }
  .footer-logo img { width: 172px; }

  /* Diagrams: shrink frame so the drawings aren't oversized on a phone */
  .diagram { padding: 16px; margin: 12px 0 24px; }
  .diagram img, .diagram-compact img { max-width: 100%; }
  .diagram figcaption { margin-top: 16px; padding-top: 12px; }

  /* Hero: less empty top/bottom air, full-width CTA */
  .minimalist-hero { padding: 40px 0 32px 0; }
  .minimalist-hero .hero-lead { font-size: 17px; }
  .hero-actions { width: 100%; }
  .hero-btn { width: 100%; text-align: center; padding: 18px 24px; }

  /* Chooser modal: trim the padding/sizes so it isn't so tall */
  .chooser-panel { padding: 26px 18px; }
  .chooser-panel h3 { font-size: 18px; margin-bottom: 22px; line-height: 1.3; }
  .chooser-options { gap: 12px !important; }
  .chooser-opt { padding: 18px 16px; gap: 10px; }
  .chooser-opt .p-ic { width: 46px; height: 46px; }
  .chooser-opt strong { font-size: 16px; }
}