/* Deepview home page — local re-implementation.
   Desktop measurements are taken from the live page at 1920px wide; the
   original is a fixed layout centred on the viewport, so offsets below are
   expressed relative to the centre line. */

:root {
  --navy: #040021;
  --ink: #0e1821;
  --blue: #04449c;
  --mist: #c5d0d9;
  --steel: #516371;
  /* Families are declared in assets/fonts/fonts.css under the live site's names. */
  --f-head: "montserrat", sans-serif;
  --f-body: "roboto-thin", "roboto", sans-serif;       /* the site uses this face at weight 700 */
  --f-ui: "proxima-n-w01-reg", sans-serif;             /* Figtree stands in for Proxima Nova */
  --f-btn: "avenir-lt-w01_85-heavy1475544", sans-serif; /* Nunito Sans stands in for Avenir */
  --f-light: "avenir-lt-w01_35-light1475496", sans-serif;
  --f-foot: "open sans", sans-serif;
  --grad-product: linear-gradient(90deg, #0e1821 0%, #001239 100%);
  --grad-glow:
    radial-gradient(circle at 10.4649% 13.1655%, rgb(0, 0, 0) 0%, 17.5%, rgba(0, 0, 0, 0) 35%),
    radial-gradient(circle at 59.5389% 66.8692%, rgb(0, 0, 0) 0%, 20%, rgba(0, 0, 0, 0) 40%),
    radial-gradient(circle at 91.9464% 86.005%, rgba(0, 18, 57, 0.99) 0%, 25%, rgba(0, 18, 57, 0) 50%),
    radial-gradient(circle at 6.16536% 12.6172%, rgb(0, 0, 0) 0%, 42%, rgba(0, 0, 0, 0) 70%),
    radial-gradient(circle at 36.6995% 47.7334%, rgb(0, 18, 57) 0%, 42%, rgba(0, 18, 57, 0) 70%),
    radial-gradient(circle at 48.9014% 49.5215%, rgb(0, 6, 15) 0%, 100%, rgba(0, 6, 15, 0) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #000; }
body { margin: 0; background: #000; color: #fff; font-family: var(--f-body); overflow-x: hidden; }
h1, h2, h3, h4, p, ul, address { margin: 0; padding: 0; }
address { font-style: normal; }
img { display: block; }
a { color: inherit; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; height: 94px; background: var(--navy); }
.site-header .logo { position: absolute; left: calc(50% - 603px); top: 34px; width: 219px; height: 23px; }
.logo svg { display: block; width: 100%; height: 100%; overflow: visible; }

.main-nav { position: absolute; left: calc(50% - 303px); top: 22px; height: 50px; display: flex; align-items: center; white-space: nowrap; }
.nav-item {
  font: 400 18px/22px var(--f-head); letter-spacing: 1.8px; color: #fff;
  background: none; border: 0; padding: 14px 0; margin: 0 0 0 40px; cursor: pointer; text-decoration: none;
}
.nav-item:first-child { margin-left: 0; }
.nav-item:nth-child(3) { margin-left: 42px; }
.nav-item:nth-child(4) { margin-left: 54px; }
.nav-item:nth-child(5) { margin-left: 39px; }
.nav-item:hover, .nav-item[aria-expanded="true"] { text-decoration: underline; text-underline-offset: 3px; }

.nav-toggle { display: none; }

.mega { position: absolute; left: 0; right: 0; top: 94px; height: 346px; background: #fff; }
.mega[hidden] { display: none; }
.mega-item { color: var(--ink); text-decoration: none; }
.mega-item img { position: absolute; left: calc(50% + var(--x)); top: var(--y); width: var(--w); height: var(--h); object-fit: cover; }
.mega-item span { position: absolute; left: calc(50% + var(--lx)); top: var(--ly); font: 700 18px/22px var(--f-head); letter-spacing: 1.8px; white-space: nowrap; }
.mega-item:hover span { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.btn-white { width: 198px; background: #fff; border: 1px solid var(--ink); border-radius: 5px; color: var(--ink); font: 700 17px var(--f-ui); }
.btn-white:hover { background: var(--ink); color: #fff; border-color: #fff; }
.btn-blue { width: 198px; background: var(--blue); border-radius: 10px; color: #fff; font: 400 21px var(--f-btn); }
.btn-blue:hover { background: #0a5bcc; }
.btn-outline { width: 250px; height: 60px; background: var(--ink); border: 1px solid #5b7ee0; border-radius: 5px; color: #fff; font: 400 21px var(--f-ui); }
.btn-outline:hover { background: #5b7ee0; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 979px; background: #1c3142 url(../assets/img/hero.png) center / cover no-repeat; overflow: hidden; }
.hero-copy { position: absolute; left: calc(50% - 119px); top: 245px; }
.hero h1 { width: 731px; font: 700 56px/78.4px var(--f-head); }
.hero p { margin: 39px 0 0 19px; font: 400 23px/28px var(--f-head); white-space: nowrap; }
.hero .btn-row { margin: 46px 0 0 21px; gap: 54px; }

/* ---------- Product sections ---------- */
.product { height: 831px; background: var(--grad-product); }
.product .inner { position: relative; margin: 0 auto; height: 100%; }
.product h2 { font: 700 56px/78.4px var(--f-head); white-space: nowrap; }
.product .price, .product .body { font: 700 24px/33.6px var(--f-body); }
.product .shot { position: absolute; right: 0; object-fit: cover; }

.product-camera .inner { width: 1177px; left: -5px; padding-top: 137px; }
.product-camera .price, .product-camera .body, .product-camera .btn-row { margin-left: 11px; }
.product-camera .price { margin-top: 24px; }
.product-camera .body { margin-top: 29px; width: 579px; }
.product-camera .btn-row { margin-top: 63px; gap: 68px; }
.product-camera .shot { top: 100px; width: 414px; height: 630px; }

.product-processor .inner { width: 1338px; left: 16px; padding-top: 130px; }
.product-processor .price { margin-top: 28px; }
.product-processor .body { margin-top: 141px; width: 576px; }
.product-processor .body-2 { margin-top: 4px; }
.product-processor .btn-row { margin: 13px 0 0 7px; gap: 54px; }
.product-processor .btn { width: 212px; }
.product-processor .shot { top: 164px; width: 721px; height: 425px; }

.product-software { height: 918px; }
.product-software .inner { width: 1413px; left: 57px; padding-top: 169px; }
.product-software .copy { position: relative; z-index: 1; }
.product-software .body { margin-top: 38px; width: 588px; }
.product-software .btn-row { margin-top: 58px; gap: 77px; }
.product-software .shot { top: 116px; width: 857px; height: 645px; }

/* ---------- Glow sections (applications / service) ---------- */
.glow { background: var(--grad-glow); }
.glow .inner { position: relative; margin: 0 auto; }
.glow h2 { font: 700 56px/78.4px var(--f-head); }
.glow .lead { font: 700 24px/33.6px var(--f-body); }

.applications { height: 915px; }
.applications .inner { width: 983px; left: 5px; padding-top: 29px; }
.applications h2 { margin-left: 9px; }
.applications .lead { margin: 28px 0 0 14px; }
.app-cards { display: flex; gap: 46px; margin-top: 68px; }
.app-card { width: 297px; height: 543px; padding-top: 22px; background: var(--ink); border: 1px solid #fff; border-radius: 5px; font-family: var(--f-ui); }
.app-card img { width: 100%; height: 220px; object-fit: cover; }
.app-demo { display: flex; align-items: center; justify-content: center; height: 52px; margin: 31px -1px 0; border: 1px solid var(--mist); border-radius: 5px; background: var(--ink); font-size: 23px; text-decoration: none; transition: background-color .2s, color .2s; }
.app-demo:hover { background: #fff; color: var(--ink); }
.app-card h3 { margin-top: 30px; font: 400 28px/39.2px var(--f-ui); text-align: center; text-transform: uppercase; }
.app-card ul { margin-top: 28px; padding-left: 57px; font-size: 21px; line-height: 33.6px; }

.service { height: 1541px; }
.service .inner { width: 901px; padding-top: 27px; }
.service .lead { margin-top: 22px; }
.svc-cards { display: grid; grid-template-columns: repeat(3, 255px); gap: 67px 68px; margin-top: 69px; }
.svc-card { height: 320px; padding-top: 23px; background: var(--ink) linear-gradient(rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 100px); border: 1px solid var(--mist); border-radius: 5px; box-shadow: 0 1px 4px rgba(0, 0, 0, .6); font-family: var(--f-ui); position: relative; }
.svc-img { height: 102px; display: flex; align-items: center; justify-content: center; }
.svc-card h3 { margin-top: 19px; font: 400 28px/34px var(--f-ui); text-align: center; }
.svc-card ul { margin-top: 19px; padding-left: 52px; font-size: 21px; line-height: 33.6px; }
.svc-card::after { content: ""; position: absolute; left: 26px; bottom: 26px; width: 200px; height: 4px; border-radius: 7px; background: var(--steel); box-shadow: 0 1px 0 rgba(255, 255, 255, .1), inset 0 1px 0 rgba(0, 0, 0, .25); }
.more-info { margin-top: 191px; font: 400 28px/34px var(--f-head); text-align: center; white-space: nowrap; }
.downloads { margin-top: 118px; justify-content: center; gap: 86px; position: relative; left: -26px; }

/* ---------- Footer ---------- */
.site-footer { padding-top: 5px; background: #000; }
.rule { height: 4px; margin-bottom: 3px; border-radius: 7px; background: var(--steel); box-shadow: 0 1px 0 rgba(255, 255, 255, .1), inset 0 1px 0 rgba(0, 0, 0, .25); }
.footer-grid { display: grid; grid-template-columns: 35% 18.85% 26.67% 1fr; height: 470px; background: var(--ink); color: var(--mist); font-family: var(--f-foot); }
.f-brand { padding: 76px 0 0 205px; }
.f-brand .logo { display: block; width: 343px; height: 36px; }
.copyright { margin: 33px 0 0 17px; font: 400 14px/22.4px var(--f-light); }
.f-brand address { margin: 48px 0 0 17px; font-size: 18px; line-height: 37px; }
.f-links { display: flex; flex-direction: column; align-items: flex-start; padding: 76px 0 0 60px; font-size: 18px; line-height: 55px; }
.more-info a, .f-brand address a { text-decoration: none; }
.f-links a:hover, .f-brand address a:hover { color: #fff; }
.site-footer h4 { font: 700 14px/18px var(--f-head); color: #fff; }
.f-news { padding-top: 79px; }
.f-news > p { margin-top: 18px; width: 354px; max-width: 100%; font: 400 16px/23px var(--f-ui); color: #c7c7c7; }
.newsletter { margin-top: 59px; }
.newsletter label { display: block; font: 400 14px/14px var(--f-light); color: #fff; }
.nl-row { display: flex; align-items: flex-end; gap: 17px; margin-top: 13px; padding-right: 24px; }
.newsletter input { flex: 0 1 232px; min-width: 0; width: 232px; height: 50px; padding: 0 12px; background: var(--ink); border: 1px solid #8293a1; border-radius: 5px; color: #fff; font: 16px var(--f-foot); }
.newsletter input:focus { outline: none; border-color: #fff; }
.newsletter button, .btn-contact { height: 52px; background: var(--ink); border: 1px solid #8293a1; border-radius: 5px; color: #fff; font: 400 16px var(--f-foot); cursor: pointer; transition: background-color .2s, color .2s; }
.newsletter button { width: 121px; }
.newsletter button:hover, .btn-contact:hover { background: #fff; color: var(--ink); }
.nl-msg { min-height: 20px; margin-top: 10px; font-size: 14px; color: #fff; }
.nl-msg.error { color: #ff6b6b; }
.f-social { padding-top: 90px; }
.f-social h4 { margin-left: 1px; }
.icons { display: flex; gap: 10px; margin: 35px 0 0 9px; }
.btn-contact { width: 155px; margin-top: 79px; border-color: #fff; }

/* ---------- Sub-pages ----------
   These pages mirror the live site's fixed desktop layout: each band is a
   full-width strip and its contents are placed relative to the centre line.
   On narrower screens js/main.js scales the whole <main> down to fit. */
main.gen { background: #000; color: #000; }
.band { position: relative; overflow: hidden; }
.abs { position: absolute; box-sizing: border-box; }
img.abs, video.abs, iframe.abs { display: block; }
.rt { overflow-wrap: break-word; }
.rt p, .rt h1, .rt h2, .rt h3, .rt h4, .rt h5, .rt h6, .rt ul, .rt ol, .rt li, .rt blockquote { margin: 0; padding: 0; font-size: inherit; font-weight: inherit; }
.rt a { color: inherit; text-decoration: none; }
.svgw svg { display: block; width: 100%; height: 100%; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: filter .2s; }
.gbtn:hover { filter: brightness(1.2); }
.gbtn-icon { width: 8px; height: 12px; fill: currentColor; flex: none; }
.gin { outline: none; }
.gin:focus { box-shadow: 0 0 0 2px #5b7ee0; }
textarea.gin { padding-top: 12px; resize: none; }
.form-msg { position: absolute; font: 400 16px var(--f-foot); color: #fff; }
.form-msg.error { color: #ff8080; }

/* ---------- Schedule a call ---------- */
.schedule { background: var(--grad-product); padding: 96px 24px 120px; }
.sched-inner { max-width: 1080px; margin: 0 auto; }
.schedule h1 { font: 700 56px/1.4 var(--f-head); }
.sched-lead { max-width: 720px; margin-top: 16px; font: 700 22px/1.5 var(--f-body); }
.sched-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 56px; align-items: start; }
.sched-panel { padding: 32px; background: var(--ink); border: 1px solid var(--mist); border-radius: 5px; box-shadow: 0 1px 4px rgba(0, 0, 0, .6); font-family: var(--f-ui); }
.sched-panel h2 { font: 700 24px/1.3 var(--f-head); }
.sched-note { margin-top: 8px; font-size: 16px; color: var(--mist); }
.sched-days { margin-top: 20px; }
.sched-day { display: grid; grid-template-columns: 1fr 104px 104px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(197, 208, 217, .25); }
.sched-date strong { display: block; font-size: 18px; font-weight: 700; }
.sched-date span { font-size: 15px; color: var(--mist); }
.sched-slot { height: 44px; background: transparent; border: 1px solid #5b7ee0; border-radius: 5px; color: #fff; font: 400 16px var(--f-ui); cursor: pointer; transition: background-color .15s; }
.sched-slot:hover:not(:disabled) { background: rgba(91, 126, 224, .3); }
.sched-slot[aria-pressed="true"] { background: var(--blue); border-color: #fff; font-weight: 700; }
.sched-slot:disabled { opacity: .5; cursor: default; }
.sched-slot.taken { border-style: dashed; text-decoration: line-through; opacity: .35; }
.sched-summary { margin-top: 12px; padding: 12px 14px; border-radius: 5px; background: rgba(255, 255, 255, .06); font-size: 16px; line-height: 1.4; color: var(--mist); }
.sched-summary.chosen { color: #fff; background: rgba(4, 68, 156, .45); }
.sched-form label { display: block; margin-top: 20px; font-size: 15px; }
.sched-form label span { color: var(--mist); }
.sched-form input, .sched-form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px; background: #fff; border: 1px solid #8293a1; border-radius: 5px; color: var(--ink); font: 16px var(--f-foot); }
.sched-form input:focus, .sched-form textarea:focus, .sched-slot:focus-visible { outline: 2px solid #5b7ee0; outline-offset: 2px; }
.sched-form textarea { resize: vertical; }
.sched-form .btn { width: 100%; margin-top: 28px; border: 0; cursor: pointer; }
.sched-form .btn:disabled { opacity: .5; cursor: default; }
.sched-msg { min-height: 24px; margin-top: 14px; font-size: 16px; line-height: 1.5; }
.sched-msg.error { color: #ff8080; }
.sched-msg.ok { color: #9be7a8; }
.sched-ics { display: inline-block; margin-top: 8px; font-size: 15px; color: var(--mist); }
.sched-bookings { grid-column: 1 / -1; width: 100%; height: 900px; border: 0; border-radius: 5px; background: #fff; }
@media (max-width: 860px) {
  .schedule { padding: 56px 16px 72px; }
  .schedule h1 { font-size: 36px; }
  .sched-lead { font-size: 18px; }
  .sched-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .sched-panel { padding: 20px; }
  .sched-day { grid-template-columns: 1fr 88px 88px; gap: 8px; }
}

/* ---------- Smaller screens (the live site has no equivalent; this just keeps the clone usable) ---------- */
@media (max-width: 1480px) {
  .product .inner, .glow .inner { left: 0; }
  .product-processor .inner, .product-software .inner { width: 1177px; }
  .product-processor .shot { width: 600px; height: auto; }
  .product-software .shot { width: 640px; height: auto; top: 160px; }
  .f-brand { padding-left: 8%; }
}

@media (max-width: 1240px) {
  .site-header .logo { left: 24px; }
  .main-nav { left: auto; right: 24px; }
  .nav-item { font-size: 15px; letter-spacing: 1px; margin-left: 24px !important; }
  .nav-item:first-child { margin-left: 0 !important; }
  .mega { height: auto; padding: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 40px; }
  .mega-item { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; }
  .mega-item img, .mega-item span { position: static; }
  .mega-item img { width: auto; max-width: 240px; height: 150px; object-fit: contain; }
  .mega-item span { font-size: 15px; letter-spacing: 1px; }

  .hero { height: auto; min-height: 640px; background-position: 22% center; }
  .hero-copy { position: static; padding: 120px 24px 120px 42%; }
  .hero h1 { width: auto; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.4; }
  .hero p { margin-left: 0; white-space: normal; }
  .hero .btn-row { margin-left: 0; gap: 24px; flex-wrap: wrap; }

  .product, .applications, .service { height: auto; }
  .product .inner, .glow .inner { width: auto !important; max-width: 760px; padding: 80px 24px; }
  .product h2, .glow h2 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.4; white-space: normal; margin-left: 0; }
  .product .price, .product .body, .product .btn-row, .applications .lead { margin-left: 0 !important; width: auto; }
  .product-processor .body { margin-top: 29px; }
  .product .btn-row { gap: 24px; flex-wrap: wrap; margin-top: 40px; }
  .product .shot { position: static; display: block; width: auto !important; max-width: 100%; height: auto !important; margin: 56px auto 0; }
  .app-cards { flex-wrap: wrap; justify-content: center; gap: 32px; }
  .svc-cards { grid-template-columns: repeat(auto-fit, 255px); justify-content: center; gap: 40px; }
  .more-info { margin-top: 80px; white-space: normal; font-size: 22px; }
  .downloads { left: 0; margin-top: 56px; gap: 24px; flex-wrap: wrap; }

  .footer-grid { height: auto; grid-template-columns: 1fr 1fr; gap: 48px 24px; padding: 56px 24px; }
  .f-brand, .f-links, .f-news, .f-social { padding: 0; }
  .f-brand .logo { width: 260px; height: 28px; }
  .f-links { line-height: 40px; }
  .newsletter { margin-top: 28px; }
  .btn-contact { margin-top: 32px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; position: absolute; right: 16px; top: 25px; width: 44px; height: 44px; padding: 8px; background: none; border: 0; cursor: pointer; }
  .nav-toggle span { height: 2px; background: #fff; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 94px; height: auto; flex-direction: column; align-items: stretch; padding: 8px 24px 20px; background: var(--navy); }
  .site-header.open .main-nav { display: flex; }
  .nav-item { margin: 0 !important; padding: 14px 0; text-align: left; font-size: 17px; }
  .mega { position: static; order: 1; }
  .site-header.open .mega:not([hidden]) { position: absolute; top: auto; }

  .hero { background-position: 12% center; }
  .hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
  .hero-copy { position: relative; left: 0; padding: 96px 24px; }
  .hero p { font-size: 19px; }
  .btn-white, .btn-blue { width: 100%; max-width: 280px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nl-row { flex-wrap: wrap; }
}

/* ---------- Header with six nav items (Store added) ---------- */
@media (min-width: 1241px) and (max-width: 1300px) {
  .site-header .logo { left: 24px; }
  .main-nav { left: auto; right: 20px; }
}
/* between tablet and phone the full nav no longer fits beside the logo: use the menu button */
@media (max-width: 1020px) {
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; position: absolute; right: 16px; top: 25px; width: 44px; height: 44px; padding: 8px; background: none; border: 0; cursor: pointer; }
  .nav-toggle span { height: 2px; background: #fff; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 94px; height: auto; flex-direction: column; align-items: stretch; padding: 8px 24px 20px; background: var(--navy); }
  .site-header.open .main-nav { display: flex; }
  .nav-item { margin: 0 !important; padding: 14px 0; text-align: left; font-size: 17px; }
  .mega { position: static; order: 1; }
  .site-header.open .mega:not([hidden]) { position: absolute; top: auto; }
}

/* eight footer links now (Store and Jobs added): tighten them so they fit */
.f-links { line-height: 46px; }

/* ---------- Header: rounded Shop button and the Contact menu ---------- */
.nav-cta { padding: 9px 26px; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 700; transition: background-color .2s, color .2s, box-shadow .2s; }
.nav-cta:hover { background: #1c63d8; color: #fff; text-decoration: none; box-shadow: 0 0 0 4px rgba(28, 99, 216, .35); }
.mega-cards { display: flex; justify-content: center; align-items: center; gap: 64px; }
.mega-cards .mega-item { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.mega-cards .mega-item img, .mega-cards .mega-item span { position: static; }
.mega-cards .mega-item img { width: 300px; height: 196px; object-fit: cover; border-radius: 14px; border: 1px solid #d5deee; box-shadow: 0 6px 18px rgba(4, 68, 156, .10); transition: transform .2s, box-shadow .2s; }
.mega-cards .mega-item:hover img { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(4, 68, 156, .20); }
@media (max-width: 1240px) {
  .mega-cards { gap: 24px 40px; }
  .mega-cards .mega-item img { width: 240px; max-width: 240px; height: 157px; object-fit: cover; }
}
@media (max-width: 1020px) {
  .nav-cta { align-self: flex-start; padding: 10px 28px; margin-top: 10px !important; }
}

/* Menu labels sit centred under their picture, whatever the length of the text */
@media (min-width: 1241px) {
  .mega:not(.mega-cards) .mega-item span { left: calc(50% + var(--x) + var(--w) / 2); transform: translateX(-50%); }
}

/* ---------- Banner v2: each title is a link to a summary page, with a plain dropdown on hover ---------- */
.site-header.v2 .main-nav { gap: 36px; }
.site-header.v2 .nav-item { margin: 0 !important; }
.nav-group { position: relative; display: flex; align-items: center; height: 100%; }
.nav-group > .nav-item { position: relative; }
.nav-group > .nav-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; border-radius: 2px; background: #2bb3ff; transform: scaleX(0); transition: transform .2s; }
.nav-group:hover > .nav-item, .nav-group:focus-within > .nav-item { text-decoration: none; }
.nav-group:hover > .nav-item::after, .nav-group:focus-within > .nav-item::after { transform: scaleX(1); }
.nav-drop { position: absolute; left: -26px; top: 100%; z-index: 30; padding-top: 22px; visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
.nav-group:hover .nav-drop, .nav-group:focus-within .nav-drop { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav-drop ul { margin: 0; padding: 14px 0; list-style: none; min-width: 280px; background: #fff; border-radius: 0 0 12px 12px; box-shadow: 0 22px 44px rgba(4, 0, 33, .28); }
.nav-drop a { display: block; padding: 11px 28px; color: var(--ink); font: 500 17px/1.3 var(--f-head); letter-spacing: .3px; text-decoration: none; white-space: nowrap; }
.nav-drop a:hover, .nav-drop a:focus-visible { background: #eef4ff; color: #04449c; }
@media (max-width: 1240px) { .site-header.v2 .main-nav { gap: 24px; } }
@media (max-width: 1020px) {
  .site-header.v2 .main-nav { gap: 0; }
  .nav-group { display: block; height: auto; }
  .nav-group > .nav-item { display: block; }
  .nav-group > .nav-item::after { display: none; }
  .nav-drop { position: static; padding: 0 0 8px 16px; visibility: visible; opacity: 1; transform: none; }
  .nav-drop ul { min-width: 0; padding: 0; background: none; box-shadow: none; }
  .nav-drop a { padding: 8px 0; color: #c9d6ea; font-size: 15px; white-space: normal; }
  .nav-drop a:hover, .nav-drop a:focus-visible { background: none; color: #fff; }
}
