/* ==========================================================================
   SV Power Consulting — stylesheet
   Fonts: Barlow + Barlow Semi Condensed (self-hosted, SIL OFL, see assets/fonts/OFL.txt)
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Barlow'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(../fonts/barlow-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: 'Barlow'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(../fonts/barlow-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: 'Barlow'; font-style: normal; font-display: swap; font-weight: 500;
  src: url(../fonts/barlow-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: 'Barlow'; font-style: normal; font-display: swap; font-weight: 500;
  src: url(../fonts/barlow-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: 'Barlow'; font-style: normal; font-display: swap; font-weight: 600;
  src: url(../fonts/barlow-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;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-display: swap; font-weight: 600;
  src: url(../fonts/barlow-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: 'Barlow Semi Condensed'; font-style: normal; font-display: swap; font-weight: 500;
  src: url(../fonts/barlow-semi-condensed-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: 'Barlow Semi Condensed'; font-style: normal; font-display: swap; font-weight: 500;
  src: url(../fonts/barlow-semi-condensed-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: 'Barlow Semi Condensed'; font-style: normal; font-display: swap; font-weight: 600;
  src: url(../fonts/barlow-semi-condensed-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;
}
@font-face {
  font-family: 'Barlow Semi Condensed'; font-style: normal; font-display: swap; font-weight: 600;
  src: url(../fonts/barlow-semi-condensed-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;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand colors, taken from the SV Power Consulting logo */
  --navy: #2D3848;         /* logo navy: buttons, links, structure */
  --navy-hover: #222B38;
  --navy-deep: #1C2533;    /* dark hero backgrounds */
  --navy-tint: #E7EAEE;
  --sand: #B3A794;         /* logo blindfold sand: accents on dark backgrounds */
  --sand-deep: #9A8D79;    /* sand lines and markers on light backgrounds */
  --sand-text: #74685A;    /* sand-colored text on light backgrounds */
  --sand-tint: #F4F1EB;    /* alternating section background */
  --black: #000000;        /* logo background, used for the footer */

  --ink: #18202B;          /* headings */
  --ink-2: #384250;        /* body text */
  --steel: #5D6672;        /* secondary text */
  --line: #DCD7CE;         /* borders */
  --field: #918A7E;        /* form field borders */
  --bg: #FFFFFF;
  --bg-alt: var(--sand-tint);
  --todo: #FFF1B8;         /* highlight for placeholders still to replace */
  --error: #A12C2C;
  --radius: 6px;
  --container: 1160px;
  --header-h: 76px;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Barlow Semi Condensed', 'Barlow', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

/* ---------- Language switching (EN / SR) ----------
   Every text exists twice: <span lang="en"> and <span lang="sr-Latn">.
   The <html data-lang> attribute decides which one is shown. */
html:not([data-lang="sr"]) body [lang|="sr"] { display: none !important; }
html[data-lang="sr"] body [lang|="en"] { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 4.3vw, 3.45rem); line-height: 1.05; letter-spacing: -0.01em; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
h2 { font-size: clamp(1.8rem, 3vw, 2.45rem); letter-spacing: -0.005em; }
h3 { font-size: 1.3rem; line-height: 1.2; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; }
strong { font-weight: 600; color: var(--ink); }
a { color: var(--navy); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-hover); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 4px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Placeholders the team still has to replace (phone, company IDs…) */
.todo { background: var(--todo); color: var(--ink); padding: 0 4px; border-radius: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; line-height: 1.15; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 1rem; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.005em;
}
.brand:hover { color: var(--ink); }
.brand img { width: 46px; height: 46px; flex: none; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 8px 12px;
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.site-nav a:hover { color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--sand-deep); }
.site-nav .nav-contact { display: none; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.lang-switch button {
  appearance: none; border: 0; margin: 0; background: transparent; cursor: pointer;
  font: 500 0.875rem/1 var(--font-body); color: var(--steel); padding: 8px 9px;
}
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.nav-toggle {
  display: none; appearance: none; background: transparent; cursor: pointer;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 4px; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(22, 35, 44, 0.08);
  }
  .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; padding: 4px 24px 16px; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .site-nav a[aria-current="page"] { box-shadow: none; }
  .site-nav .nav-contact { display: block; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .site-nav ul { padding: 4px 18px 16px; }
  .header-cta { display: none; }
  .brand { font-size: 1.08rem; }
  .brand img { width: 40px; height: 40px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p { font-size: 1.125rem; color: var(--steel); max-width: 62ch; margin-bottom: 0; }
.section-foot { margin-top: 32px; }

/* ---------- Dark heroes: navy with a drawing-sheet dot grid ----------
   The grid fades in toward the right, so the diagram sits on the
   background itself instead of in a separate box. */
.hero, .page-hero { position: relative; overflow: hidden; background: var(--navy-deep); }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.11) 1px, transparent 1.4px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(100deg, transparent 32%, #000 72%);
          mask-image: linear-gradient(100deg, transparent 32%, #000 72%);
}
.hero > .container, .page-hero > .container { position: relative; }

/* ---------- Hero (home) ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 20ch; font-size: clamp(2.2rem, 3.9vw, 3.15rem); }
.hero-lede { font-size: clamp(1.125rem, 1.5vw, 1.25rem); color: #CDD3DC; max-width: 54ch; margin-bottom: 28px; }
.hero-alt { margin: 24px 0 0; color: #A9B2BE; }
.hero-alt a { font-weight: 500; color: var(--sand); }
.hero-alt a:hover { color: #D3C9B9; }
.hero-figure { margin: 0; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 500px; }
  .hero::before, .page-hero::before {
    -webkit-mask-image: linear-gradient(to bottom, transparent 40%, #000 85%);
            mask-image: linear-gradient(to bottom, transparent 40%, #000 85%);
  }
}

/* Dark hero context (home + inner pages) */
.hero h1, .page-hero h1 { color: #FFFFFF; }
.hero .btn-primary, .page-hero .btn-primary { background: var(--sand); color: var(--navy-deep); }
.hero .btn-primary:hover, .page-hero .btn-primary:hover { background: #C9BEAC; color: var(--navy-deep); }
.hero .btn-secondary, .page-hero .btn-secondary { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.6); }
.hero .btn-secondary:hover, .page-hero .btn-secondary:hover { background: #FFFFFF; color: var(--navy-deep); border-color: #FFFFFF; }
.hero :focus-visible, .page-hero :focus-visible { outline-color: var(--sand); }

/* Single-line diagram */
.sld { width: 100%; height: auto; overflow: visible; }
.sld text { font-family: var(--font-head); fill: #E8ECF1; }
.sld .lbl { font-size: 17px; font-weight: 600; }
.sld .lbl-brand { fill: var(--sand); }
.sld .sub { font-family: var(--font-body); font-size: 13px; font-weight: 500; fill: #98A3B1; }
.sld .wire { fill: none; stroke: #E8ECF1; stroke-width: 2; stroke-linecap: round; }
.sld .bus { stroke-width: 6; }
.sld .src { fill: var(--navy-deep); stroke: #E8ECF1; stroke-width: 2; }
.sld .wave { fill: none; stroke: #E8ECF1; stroke-width: 2; stroke-linecap: round; }
.sld .xfmr { fill: none; stroke: var(--sand); stroke-width: 2.5; }
.sld .brk { fill: var(--sand); stroke: #E8ECF1; stroke-width: 2; }
.sld .load { fill: #E8ECF1; }
@media (prefers-reduced-motion: no-preference) {
  .sld .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sld-draw .5s ease-out forwards; animation-delay: var(--d, 0s); }
  .sld .pop { opacity: 0; animation: sld-pop .4s ease-out forwards; animation-delay: var(--d, 0s); }
}
@media (max-width: 600px) {
  .sld .lbl { font-size: 19px; }
  .sld .sub { font-size: 15px; }
  .sld .sub-side { display: none; }
}
@keyframes sld-draw { to { stroke-dashoffset: 0; } }
@keyframes sld-pop { to { opacity: 1; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 88px); }
.page-hero h1 { max-width: 24ch; font-size: clamp(2.1rem, 3.5vw, 2.9rem); }
.page-hero .hero-lede { max-width: 60ch; }
.crumbs { font-size: 0.95rem; color: #A9B2BE; margin-bottom: 18px; }
.crumbs a { color: #A9B2BE; }
.crumbs a:hover { color: var(--sand); }
.crumbs .sep { margin: 0 6px; }


/* ---------- Steps (a real sequence, drawn as a feeder line) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; counter-reset: step; position: relative; }
.steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps::before { content: ""; position: absolute; left: 20px; right: calc((100% - 120px) / 6 - 20px); top: 19px; height: 2px; background: var(--ink); }
.steps--5::before { right: calc((100% - 96px) / 5 - 20px); }
.steps li { position: relative; counter-increment: step; padding-top: 60px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ink); color: var(--ink);
  display: grid; place-items: center; font: 600 0.95rem/1 var(--font-head);
}
.steps li:last-child::before { background: var(--sand); border-color: var(--navy); }
.steps h3 { font-size: 1.2rem; margin-bottom: 0.35em; }
.steps p { margin: 0; font-size: 0.98rem; color: var(--steel); }
@media (max-width: 1080px) {
  .steps, .steps--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }
}
@media (max-width: 640px) {
  .steps, .steps--5 { grid-template-columns: 1fr; gap: 0; }
  .steps::before { display: none; }
  .steps li { padding: 4px 0 28px 64px; min-height: 40px; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--ink); }
  .steps li:last-child { padding-bottom: 0; }
}

/* ---------- Equipment ---------- */
.equipment { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.equip { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.equip svg { width: 52px; height: 52px; margin-bottom: 18px; color: var(--navy); }
.equip p { margin: 0; }
.invite {
  margin-top: 28px; padding: 20px 24px;
  border: 1px dashed var(--sand-deep); border-radius: var(--radius);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.invite p { margin: 0; max-width: 70ch; }
.invite a { font-weight: 500; white-space: nowrap; }
@media (max-width: 900px) { .equipment { grid-template-columns: 1fr; } }

/* ---------- Markets ---------- */
.markets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); }
.market { border-top: 3px solid var(--navy); padding-top: 20px; }
.market h3 { margin-bottom: 4px; }
.market .tagline { color: var(--sand-text); font-weight: 500; margin-bottom: 14px; }
.market ul { margin: 0; padding-left: 1.1em; }
.market li { margin-bottom: 0.45em; }
.market li::marker { color: var(--sand-deep); }
@media (max-width: 900px) { .markets { grid-template-columns: 1fr; } }

/* ---------- Engagement models (home summary) ---------- */
.models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.model { background: #fff; border: 1px solid var(--line); border-top-width: 3px; border-radius: var(--radius); padding: clamp(24px, 3vw, 32px); }
.model--exclusive { border-top-color: var(--navy); }
.model .fit {
  display: inline-block; margin-bottom: 14px; padding: 3px 10px; border-radius: 999px;
  background: var(--navy-tint); color: var(--navy-hover); font-size: 0.92rem; font-weight: 500;
}
.model p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .models { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; margin-bottom: 18px;
  background: var(--navy); color: var(--sand);
  display: grid; place-items: center; font: 600 1.3rem/1 var(--font-head); letter-spacing: 0.02em;
  object-fit: cover;
}
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--sand-text); font-weight: 500; margin-bottom: 12px; }
.person p:last-child { margin-bottom: 0; font-size: 0.98rem; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } }

/* ---------- Two paths ---------- */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.path { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; align-items: flex-start; }
.path p { flex: 1; max-width: 46ch; }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }

/* ---------- Scope list (manufacturers page) ---------- */
.scope { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px clamp(28px, 4vw, 48px); }
.scope li { border-top: 2px solid var(--sand-deep); padding-top: 16px; }
.scope h3 { font-size: 1.2rem; }
.scope p { margin: 0; }
.scope-note { margin: 32px 0 0; color: var(--steel); }
@media (max-width: 900px) { .scope { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .scope { grid-template-columns: 1fr; } }

/* ---------- Comparison table ---------- */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare { width: 100%; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--font-head); font-size: 1.2rem; color: var(--ink); background: var(--bg-alt); }
.compare thead th.col-exclusive { box-shadow: inset 0 3px 0 var(--navy); }
.compare tbody th { width: 26%; font-weight: 600; color: var(--ink); }
.compare tbody th small { display: block; font-weight: 400; color: var(--steel); font-size: 0.92rem; margin-top: 2px; }
.compare td { width: 37%; }
.compare .muted { color: var(--steel); }
@media (max-width: 760px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .compare tr:last-child { border-bottom: 0; }
  .compare tbody th { width: auto; padding: 0 0 8px; border: 0; }
  .compare td { width: auto; padding: 6px 0; border: 0; }
  .compare td::before { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); }
  html:not([data-lang="sr"]) .compare td::before { content: attr(data-label-en); }
  html[data-lang="sr"] .compare td::before { content: attr(data-label-sr); }
}
.terms-note { margin: 20px 0 0; color: var(--steel); max-width: 70ch; }

/* ---------- Responsibilities ---------- */
.duties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.duty { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 32px); }
.duty--ours { border-top: 3px solid var(--navy); }
.duty--yours { border-top: 3px solid var(--sand-deep); }
.duty ul { margin: 0; padding-left: 1.1em; }
.duty li { margin-bottom: 0.5em; }
.duty li:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .duties { grid-template-columns: 1fr; } }

/* ---------- Callout ---------- */
.callout {
  margin-top: 28px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 26px; max-width: 860px;
}
.callout h3 { font-size: 1.2rem; margin-bottom: 6px; }
.callout p { margin: 0; }

/* ---------- Contact + forms ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-intro p { max-width: 46ch; }
.contact-details { margin: 28px 0 0; display: grid; gap: 18px; }
.contact-details dt { font-size: 0.92rem; color: var(--steel); }
.contact-details dd { margin: 2px 0 0; font-weight: 500; color: var(--ink); }
.contact-details a { color: var(--ink); }
.contact-details a:hover { color: var(--navy); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.section--alt .form, .contact-grid .form { box-shadow: 0 1px 0 rgba(22, 35, 44, 0.03); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 500; color: var(--ink); font-size: 0.98rem; }
.field .req { color: var(--navy); }
.field .hint { font-size: 0.9rem; color: var(--steel); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--field); border-radius: 4px;
}
.field textarea { min-height: 128px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316232C' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input::placeholder, .field textarea::placeholder { color: #8893A0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(45, 56, 72, 0.22); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: var(--error); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 24px; }
.form-note { margin: 0; font-size: 0.92rem; color: var(--steel); max-width: 52ch; }
.form-status { margin: 16px 0 0; font-weight: 500; }
.form-status:empty { display: none; }
.form-status[data-state="sent"], .form-status[data-state="mailto"] { color: var(--navy-hover); }
.form-status[data-state="error"] { color: var(--error); }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.form-aside { margin-top: 24px; color: var(--steel); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #B9C0C9; padding: 56px 0 28px; font-size: 0.98rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer h2 { font-size: 1.05rem; color: #fff; margin-bottom: 12px; letter-spacing: 0.01em; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 32px; }
.footer-about { margin: 14px 0 0; max-width: 36ch; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.brand--light, .brand--light:hover { color: #fff; }
.footer-bottom {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.92rem;
}
.footer-bottom p { margin: 0; }
.site-footer .todo { background: rgba(232, 181, 0, 0.28); color: #fff; }
.site-footer .brand img { width: 52px; height: 52px; }
.footer-label { display: block; font-size: 0.88rem; color: #8C95A1; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .lang-switch, .form, .skip-link { display: none !important; }
  .section, .hero, .page-hero { padding: 24px 0; background: none; }
}
