/* ==========================================================================
   Jaltest Slovenija – main stylesheet
   ========================================================================== */

:root {
  --brand: #007dba;
  --brand-dark: #005f8e;
  --ink: #1d1d1b;
  --ink-2: #3c3c3b;
  --grey: #6f6f6e;
  --line: #e4e4e4;
  --bg: #ffffff;
  --bg-soft: #f4f4f4;
  --dark: #151515;
  --radius: 4px;
  --wrap: 1240px;
  --header-h: 84px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 90px; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--dark); color: #cfcfcf; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(28px, 3.4vw, 42px); text-transform: uppercase; letter-spacing: .01em; }
.section-title span { color: var(--brand); }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 56px; }
.section-head p { font-size: 17px; color: var(--grey); }
.section--dark .section-head p { color: #a9a9a9; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font: 700 14px/1 var(--font);
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--outline { background: transparent; color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header ----------------------------------------------------------------- */
.topbar { background: var(--dark); color: #bdbdbd; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }
.topbar__contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 6px; }
.topbar__contact svg { width: 14px; height: 14px; color: var(--brand); }
.topbar__badge { font-weight: 600; letter-spacing: .04em; }
.topbar__badge b { color: #fff; }

.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--line); }
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, .08); }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.logo { display: flex; flex-direction: column; line-height: 1; }
.logo__mark { font-weight: 800; font-size: 30px; letter-spacing: .02em; color: var(--brand); font-style: italic; }
.logo__sub { font-size: 10.5px; font-weight: 700; letter-spacing: .26em; color: var(--ink); margin-top: 5px; }
.logo img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; height: 100%; }
.nav__list { display: flex; height: 100%; }
.nav__item { position: relative; display: flex; align-items: center; height: 100%; }
.nav__link {
  display: flex; align-items: center; gap: 6px; height: 100%;
  padding: 0 16px;
  font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink);
  background: none; border: 0; font-family: inherit; cursor: pointer;
  position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px;
  background: var(--brand); transform: scaleX(0); transition: transform .2s;
}
.nav__item:hover > .nav__link::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link svg { width: 14px; height: 14px; transition: transform .2s; }
.nav__item:hover > .nav__link svg { transform: rotate(180deg); }
.nav__cta { margin-left: 18px; padding: 12px 20px; font-size: 13px; }

/* Mega menu */
.mega {
  position: absolute; top: 100%; left: 50%;
  width: min(880px, 92vw);
  transform: translate(-50%, 10px);
  background: #fff; box-shadow: var(--shadow); border-top: 3px solid var(--brand);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 0;
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.nav__item--mega:hover .mega,
.nav__item--mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__col { padding: 28px 30px; }
.mega__col + .mega__col { background: var(--bg-soft); }
.mega__title { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-bottom: 14px; }
.mega__link { display: flex; align-items: center; gap: 14px; padding: 9px 10px; margin-inline: -10px; border-radius: var(--radius); transition: background .15s; }
.mega__link:hover { background: var(--bg-soft); }
.mega__col + .mega__col .mega__link:hover { background: #fff; }
.mega__link strong { display: block; font-size: 14px; color: var(--ink); }
.mega__link small { display: block; font-size: 12.5px; color: var(--grey); line-height: 1.4; }
.mega__link--simple { padding: 7px 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.mega__link--simple:hover { color: var(--brand); }

.seg-badge {
  flex: none; display: inline-grid; place-items: center;
  min-width: 52px; height: 30px; padding: 0 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; color: #fff;
  background: var(--ink); border-radius: 3px;
}
.seg-badge--cv { background: #007dba; }
.seg-badge--agv { background: #94cc00; }
.seg-badge--ohw { background: #ffa500; }
.seg-badge--mhe { background: #a01928; }
.seg-badge--marine { background: #009fae; }
.seg-badge--all { background: var(--ink); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .25s, opacity .25s; }
.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Sub navigation (like "Coverage / News / Downloads ...") */
.subnav { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 28px; overflow-x: auto; }
.subnav a { padding: 12px 0; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--ink-2); border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--brand); border-color: var(--brand); }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: min(78vh, 720px);
  display: flex; align-items: center;
  background: radial-gradient(ellipse at 75% 40%, #3a3a3a 0%, #151515 60%);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 10, .88) 0%, rgba(10, 10, 10, .55) 50%, rgba(10, 10, 10, .15) 100%); }
.hero__pattern {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 72%, rgba(0, 125, 186, .9) 72%, rgba(0, 125, 186, .9) 73%, transparent 73%),
    linear-gradient(115deg, transparent 75%, rgba(255, 255, 255, .06) 75%, rgba(255, 255, 255, .06) 88%, transparent 88%);
}
.hero__content { position: relative; z-index: 1; max-width: 700px; padding-block: 80px; }
.hero__brand { font-size: 14px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: #fff; opacity: .85; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.hero__brand::before { content: ""; width: 40px; height: 3px; background: var(--brand); }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 62px); font-weight: 800; text-transform: uppercase; line-height: 1.05; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { font-size: 18px; color: #e3e3e3; max-width: 600px; margin-bottom: 34px; }

/* Intro ------------------------------------------------------------------ */
.intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.intro__text p { font-size: 17px; }
.intro__lead { font-size: 21px !important; font-weight: 600; color: var(--ink); }
.intro__media { position: relative; }
.stat {
  display: flex; align-items: center; gap: 22px;
  margin-top: 30px; padding: 24px 28px;
  border-left: 4px solid var(--brand); background: var(--bg-soft);
}
.stat__num { font-size: 46px; font-weight: 800; color: var(--brand); line-height: 1; white-space: nowrap; }
.stat__label { font-weight: 600; color: var(--ink); line-height: 1.4; }

/* Image slot with graceful fallback when image is missing */
.media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(135deg, #2a2a2a, #111);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Company logo in the "O nas" image slot */
.media--logo { background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .06); }
.media--logo img { position: static; width: 70%; height: auto; }
.media__ph { color: rgba(255, 255, 255, .28); text-align: center; padding: 20px; }
.media__ph svg { width: 64px; height: 64px; margin: 0 auto 10px; }
.media__ph span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* Segments --------------------------------------------------------------- */
.segments { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.segment {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 400px; overflow: hidden; border-radius: var(--radius);
  color: #fff; background: #222;
  isolation: isolate;
}
.segment .media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; z-index: -2; transition: transform .6s; }
.segment::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, .9) 100%); }
.segment:hover .media { transform: scale(1.06); }
.segment__body { padding: 26px 22px; }
.segment__icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--c, var(--brand)); margin-bottom: 16px; }
.segment__icon svg { width: 28px; height: 28px; }
.segment__code { font-size: 13px; font-weight: 800; letter-spacing: .18em; color: var(--c, var(--brand)); filter: brightness(1.35); }
.segment h3 { color: #fff; font-size: 18px; text-transform: uppercase; margin: 4px 0 14px; letter-spacing: .02em; }
.segment__more { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-bottom: 2px solid var(--c, var(--brand)); padding-bottom: 4px; }
.segment__more svg { width: 16px; height: 16px; transition: transform .2s; }
.segment:hover .segment__more svg { transform: translateX(4px); }
.segment--cv { --c: #007dba; }
.segment--agv { --c: #94cc00; }
.segment--ohw { --c: #ffa500; }
.segment--mhe { --c: #a01928; }
.segment--marine { --c: #009fae; }

/* Features --------------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 56px; }
.feature { display: flex; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.feature__icon { flex: none; width: 70px; height: 70px; display: grid; place-items: center; border: 2px solid var(--brand); border-radius: 50%; color: var(--brand); }
.feature__icon svg { width: 32px; height: 32px; }
.feature h3 { font-size: 19px; text-transform: uppercase; margin-bottom: 10px; }
.feature p { margin: 0; }

/* CTA band --------------------------------------------------------------- */
.cta-band { background: var(--brand); color: #fff; padding-block: 64px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -60%; width: 460px; height: 220%; background: rgba(255, 255, 255, .07); transform: rotate(25deg); }
.cta-band .wrap { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 2.8vw, 34px); text-transform: uppercase; margin-bottom: 8px; }
.cta-band p { margin: 0; color: #d6ecf7; font-size: 17px; }
.cta-band .btn--ghost:hover { color: var(--brand); }

/* FAQ -------------------------------------------------------------------- */
.faq { max-width: 880px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-weight: 700; font-size: 17px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; font-weight: 400; color: var(--brand); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; margin: 0; }

/* Segment page ----------------------------------------------------------- */
.page-hero { position: relative; color: #fff; background: #151515; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; padding-block: 70px; }
.page-hero__pattern { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 55%, var(--c, var(--brand)) 55%, var(--c, var(--brand)) 56%, transparent 56%), linear-gradient(115deg, transparent 58%, rgba(255, 255, 255, .04) 58%); }
.breadcrumb { font-size: 13px; color: #9a9a9a; margin-bottom: 24px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 8px; }
.page-hero h1 { color: #fff; font-size: clamp(38px, 5vw, 60px); font-weight: 800; text-transform: uppercase; margin-bottom: 6px; }
.page-hero h1 b { color: var(--c, var(--brand)); }
.page-hero__sub { font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 22px; text-transform: uppercase; letter-spacing: .04em; }
.page-hero p { color: #d2d2d2; font-size: 17px; }
.page-hero .btn { margin-top: 12px; }
.page-hero .media { aspect-ratio: 16 / 11; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }

.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.type {
  text-align: center; padding: 34px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.type:hover { border-color: var(--c, var(--brand)); transform: translateY(-4px); box-shadow: var(--shadow); }
.type svg { width: 48px; height: 48px; color: var(--c, var(--brand)); margin: 0 auto 14px; stroke-width: 1.5; }
.type h3 { font-size: 15px; text-transform: uppercase; margin: 0; letter-spacing: .03em; }
.brands { margin-top: 36px; text-align: center; color: var(--grey); }
.brands strong { color: var(--ink); }

.func-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.func { background: #fff; padding: 30px 28px; display: flex; gap: 18px; align-items: flex-start; }
.func svg { flex: none; width: 34px; height: 34px; color: var(--brand); stroke-width: 1.6; }
.func h3 { font-size: 16px; margin-bottom: 6px; }
.func p { margin: 0; font-size: 14.5px; color: var(--grey); }

.sw { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.checklist li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid #2d2d2d; font-weight: 600; color: #fff; font-size: 17px; }
.checklist li svg { flex: none; width: 24px; height: 24px; color: var(--brand); }

.hw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.hw { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 0 var(--line); border: 1px solid var(--line); display: flex; flex-direction: column; }
.hw .media { border-radius: 0; aspect-ratio: 16 / 10; }
.hw__body { padding: 24px 26px 28px; }
.hw h3 { font-size: 18px; margin-bottom: 8px; }
.hw p { margin: 0; font-size: 14.5px; color: var(--grey); }

.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.mod { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s; }
.mod:hover { border-color: var(--brand); }
.mod svg { flex: none; width: 28px; height: 28px; color: var(--brand); }
.mod h3 { font-size: 15.5px; margin-bottom: 4px; }
.mod p { margin: 0; font-size: 14px; color: var(--grey); line-height: 1.5; }

.other-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.other-seg .segment { min-height: 240px; }

/* Contact page ----------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.contact-card { background: var(--dark); color: #cfcfcf; padding: 40px 36px; border-radius: var(--radius); }
.contact-card h2 { color: #fff; font-size: 24px; }
.contact-card li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #2d2d2d; }
.contact-card li svg { flex: none; width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.contact-card a:hover { color: #fff; }
.contact-card strong { display: block; color: #fff; font-size: 14px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font: 15px var(--font); color: var(--ink);
  border: 1px solid #cfcfcf; border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 125, 186, .12); }
.field textarea { min-height: 140px; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid #cfcfcf; border-radius: var(--radius); font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; cursor: pointer; margin: 0; }
.checks input { accent-color: var(--brand); width: 16px; height: 16px; }
.consent { display: flex; gap: 10px; font-size: 14px; color: var(--grey); align-items: flex-start; }
.consent input { accent-color: var(--brand); margin-top: 4px; }
.form-msg { padding: 16px 18px; border-radius: var(--radius); background: #eaf6ea; color: #245d24; font-weight: 600; }
.form-msg--error { background: #fdecec; color: #8a1c1c; }
.form-msg a { text-decoration: underline; }
.btn:disabled { opacity: .6; cursor: wait; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: #0e0e0e; color: #9c9c9c; font-size: 14.5px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-block: 70px 50px; }
.site-footer .logo__sub { color: #fff; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: #fff; }
.footer-about p { margin-top: 18px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #1f1f1f; transition: background .2s; }
.socials a:hover { background: var(--brand); }
.socials svg { width: 17px; height: 17px; color: #fff; }
.footer-bottom { border-top: 1px solid #222; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 22px; font-size: 13px; }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.trademark { font-size: 12px; color: #6a6a6a; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1180px) {
  .segments { grid-template-columns: repeat(3, 1fr); }
  .nav__link { padding: 0 11px; font-size: 13px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  :root { --header-h: 70px; }
  .burger { display: block; }
  .site-header { overflow-x: clip; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
    height: calc(100dvh - var(--header-h));
    background: #fff; overflow-y: auto;
    flex-direction: column; align-items: stretch;
    transform: translateX(100%); transition: transform .3s;
    padding: 10px 24px 90px;
  }
  .nav-open .nav { transform: none; }
  .nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; height: auto; }
  .nav__item { flex-direction: column; align-items: stretch; height: auto; border-bottom: 1px solid var(--line); }
  .nav__link { padding: 18px 0; justify-content: space-between; width: 100%; font-size: 15px; }
  .nav__link::after { display: none; }
  .nav__item:hover > .nav__link svg { transform: none; }
  .nav__item.is-open > .nav__link svg { transform: rotate(180deg); }
  .mega {
    position: static; transform: none; width: 100%; box-shadow: none; border: 0;
    grid-template-columns: 1fr; opacity: 1; visibility: visible; display: none;
  }
  .nav__item--mega:hover .mega, .nav__item--mega:focus-within .mega { transform: none; }
  .nav__item.is-open .mega { display: grid; }
  .mega__col { padding: 6px 0 18px; }
  .mega__col + .mega__col { background: transparent; }
  .nav__cta { margin: 24px 0 0; justify-content: center; }

  .intro, .sw, .contact, .about, .page-hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .features { grid-template-columns: 1fr; }
  .func-grid, .hw-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding-block: 70px; }
  .topbar__badge { display: none; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 18px; }
  .segments { grid-template-columns: 1fr 1fr; gap: 12px; }
  .segment { min-height: 300px; }
  .segment__body { padding: 18px 16px; }
  .segment h3 { font-size: 15px; }
  .func-grid, .hw-grid, .form { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .feature { flex-direction: column; gap: 16px; }
  .stat { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero__content { padding-block: 60px; }
  .topbar__contact { gap: 14px; }
  .topbar__contact .hide-sm { display: none; }
  .section { padding-block: 56px; }
}

/* Tweaks */
.segment .media { place-items: start center; padding-top: 22%; }
.segment .media__ph span { display: none; }
.mod-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .mod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .mod-grid { grid-template-columns: 1fr; } }
.text-link, .faq details p a { color: var(--brand); font-weight: 600; text-decoration: underline; }

/* ---- Official imagery ---------------------------------------------------- */
.logo { flex-direction: row; align-items: center; gap: 4px; }
.logo img { height: 40px; width: auto; }
.logo .logo__sub { margin: 4px 0 0; padding-left: 10px; border-left: 1px solid var(--line); color: var(--grey); font-size: 11px; }
.logo--footer img { filter: brightness(0) invert(1); }
.logo--footer .logo__sub { border-color: #333; color: #fff; }

/* Blue hero with the original banner */
.hero--blue { background: #0b6db5; min-height: clamp(420px, 34vw, 560px); }
.hero--blue .hero__media img { object-position: 60% center; }
.hero > .wrap { width: 100%; }
.hero--blue .hero__media::after { background: linear-gradient(90deg, rgba(8, 92, 160, .97) 0%, rgba(8, 92, 160, .85) 42%, rgba(8, 92, 160, 0) 68%); }
.hero--blue .hero__brand::before { background: #fff; }
.hero--blue h1 em { color: #bfe6ff; }
.hero--blue .hero__content { max-width: 620px; }
.hero--blue .btn:not(.btn--ghost) { background: #fff; border-color: #fff; color: var(--brand); }
.hero--blue .btn:not(.btn--ghost):hover { background: #e6f3fb; border-color: #e6f3fb; }
.hero--blue h1 { font-size: clamp(30px, 3.6vw, 50px); }
@media (max-width: 640px) {
  .hero--blue { display: block; min-height: 0; }
  .hero--blue .hero__media { position: relative; inset: auto; display: block; }
  .hero--blue .hero__media img { height: auto; aspect-ratio: 390 / 395; object-position: center; }
  .hero--blue .hero__media::after { background: linear-gradient(180deg, rgba(11, 109, 181, 0) 70%, #0b6db5 100%); }
  .hero--blue .hero__content { padding-block: 10px 50px; }
}

/* Feature icons (original line illustrations) */
.feature__icon { border: 0; border-radius: 0; width: 76px; height: 76px; }
.feature__icon img { width: 100%; height: 100%; object-fit: contain; }

/* Segment cards: logo in white box */
.segment__logo { display: inline-block; background: #fff; padding: 9px 12px; border-radius: 3px; margin-bottom: 14px; }
.segment__logo img { height: 20px; width: auto; }
.segment .media::after { content: none; }

/* Segment page hero image */
.media--hero { aspect-ratio: 1064 / 606 !important; }

/* Coverage photos */
.type--photo { padding: 0; overflow: hidden; margin: 0; }
.type--photo img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; transition: transform .4s; }
.type--photo:hover img { transform: scale(1.05); }
.type--photo figcaption { padding: 16px 12px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); border-top: 3px solid var(--c, var(--brand)); }
.types:has(.type--photo:only-child) { grid-template-columns: minmax(0, 420px); justify-content: center; }

/* Software screenshot */
.sw__shot img { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); }

/* Hardware photos are product shots on white */
.hw .media { background: #fff; }
.hw .media img { object-fit: contain; padding: 14px; }

/* About – key numbers */
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0 32px; }
.about-stats div { background: #fff; border-left: 4px solid var(--brand); padding: 18px 18px 16px; }
.about-stats strong { display: block; font-size: 36px; font-weight: 800; line-height: 1; color: var(--brand); margin-bottom: 8px; }
.about-stats span { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.35; display: block; }
.about-stats strong span { display: inline; font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; }
@media (max-width: 640px) { .about-stats { grid-template-columns: 1fr; } }

/* Intro software screenshot (transparent PNG/WebP) */
.intro__shot { width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .18)); }

/* Legal pages */
.legal { max-width: 860px; }
.legal h2 { font-size: 21px; margin: 38px 0 12px; }
.legal h2:first-of-type { margin-top: 10px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--brand); text-decoration: underline; }
.legal .btn { text-decoration: none; }
.legal .btn:not(.btn--outline) { color: #fff; }
.legal__note { background: #fff7e0; border-left: 4px solid #ffa500; padding: 12px 16px; font-size: 14px; color: #6b4e00; }
.legal__date { margin-top: 36px; font-size: 14px; color: var(--grey); }
.consent a { color: var(--brand); text-decoration: underline; }
