:root {
  --bg-top: #002147;
  --bg-hero: #001f42;
  --bg-lower: #001b3a;
  --bg-footer: #001733;
  --panel: rgba(4, 35, 68, 0.54);
  --panel-strong: rgba(2, 29, 59, 0.78);
  --border: rgba(151, 194, 235, 0.19);
  --border-strong: rgba(151, 194, 235, 0.31);
  --text: #f4f6f8;
  --muted: #d0d7df;
  --soft: #9eb2c8;
  --accent: #168cff;
  --accent-2: #32aaff;
  --accent-soft: rgba(31, 140, 255, 0.14);
  --danger-soft: rgba(255, 183, 77, 0.10);
  --danger-border: rgba(255, 196, 107, 0.30);
  --shadow: 0 15px 44px rgba(0, 12, 28, 0.20);
  --radius: 12px;
  --radius-sm: 9px;
  --max: 1310px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-footer); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-lower) 73%, var(--bg-footer) 100%);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img, svg { display: block; max-width: 100%; }

.shell { width: min(calc(100% - 138px), var(--max)); margin: 0 auto; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  background: #fff; color: #082441; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: relative;
  z-index: 20;
  background: linear-gradient(180deg, #002248 0%, #002146 100%);
  border-bottom: 1px solid rgba(255,255,255,0.035);
}
.nav {
  min-height: 105px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand {
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  justify-self: start;
}
.nav-links { display: flex; gap: 39px; color: #d8dce3; font-size: 0.98rem; font-weight: 400; }
.nav-links a:hover, .nav-links a:focus-visible { color: #fff; }
.lang-switch {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #e4e7eb;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}
.lang-switch button {
  appearance: none; border: 0; background: none; color: inherit; cursor: pointer;
  padding: 4px 2px;
}
.lang-switch button.active { color: #20a2ff; }
.lang-switch span { color: rgba(255,255,255,.42); }

/* Home hero — tuned against the approved visual at 1448×1086. */
.hero {
  position: relative;
  min-height: clamp(540px, 37.3vw, 700px);
  overflow: hidden;
  border-bottom: 1px solid rgba(151, 194, 235, 0.18);
  background:
    radial-gradient(ellipse at 20% 24%, rgba(8, 60, 109, .12), transparent 48%),
    linear-gradient(180deg, #002147 0%, #001d3e 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(90deg, rgba(0,31,65,.34) 0%, rgba(0,31,65,.13) 30%, rgba(0,31,65,0) 49%);
}
.hero-wave {
  position: absolute;
  z-index: 1;
  right: 0;
  top: clamp(5px, .35vw, 8px);
  width: 65.6vw;
  min-width: 820px;
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.60) 5.5%, #000 13%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.60) 5.5%, #000 13%);
}
.hero-inner {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  min-height: clamp(540px, 37.3vw, 700px);
}
.hero-copy {
  max-width: 690px;
  padding: clamp(76px, 5.25vw, 99px) 0 60px;
}
.hero h1 {
  margin: 0 0 25px;
  width: 690px;
  max-width: 100%;
  font-size: clamp(3.65rem, 4.55vw, 5.05rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.037em;
}
.hero h1 span { white-space: nowrap; }
.hero p {
  margin: 0 0 30px;
  max-width: 485px;
  color: #d3d8df;
  font-size: clamp(1.04rem, 1.24vw, 1.23rem);
  font-weight: 400;
  line-height: 1.52;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px;
  border-radius: 7px;
  border: 1px solid rgba(84, 176, 255, .42);
  background: linear-gradient(180deg, #2998ff 0%, #1285f7 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 500;
  box-shadow: 0 7px 24px rgba(0, 108, 230, .17);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 10px 30px rgba(0,115,239,.24); }
.btn.secondary { background: transparent; box-shadow: none; border-color: var(--border-strong); color: var(--muted); }

/* Home products/about section */
.section {
  padding: clamp(36px, 2.55vw, 48px) 0 clamp(42px, 3vw, 56px);
  border-bottom: 1px solid rgba(151, 194, 235, 0.18);
  background: linear-gradient(180deg, #001d3e 0%, #001a38 100%);
}
.section-grid {
  display: grid;
  grid-template-columns: minmax(440px, 548px) minmax(0, 1fr);
  gap: clamp(82px, 9.4vw, 136px);
  align-items: start;
}
.eyebrow { color: var(--accent-2); font-weight: 700; font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; }
.section h2, .content-page h1 { margin: 0 0 18px; font-size: clamp(1.95rem, 2.7vw, 2.65rem); font-weight: 600; letter-spacing: -0.032em; line-height: 1.12; }
.section h3 { margin: 0 0 18px; font-size: 1.23rem; font-weight: 600; letter-spacing: -0.022em; }
.section p { color: var(--muted); margin: 0 0 18px; }

.product-card, .info-card, .feature-card, .legal-card, .support-card {
  background: linear-gradient(180deg, rgba(8, 51, 94, .42), rgba(0, 28, 59, .50));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.product-card {
  min-height: 198px;
  padding: 27px 32px;
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 30px;
  align-items: center;
}
.nora-mark {
  width: 126px; height: 126px; border-radius: 20px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #0b477f, #051c3b);
  border: 1px solid rgba(93,177,255,.21);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.nora-mark img, .nora-mark svg { width: 78px; height: 78px; }
.product-card h3 { font-size: 1.42rem; font-weight: 600; margin-bottom: 7px; }
.product-card p { font-size: 1rem; line-height: 1.5; max-width: 260px; }
.text-link { color: #269dff; font-weight: 500; display: inline-flex; align-items: center; gap: 9px; }
.text-link:hover { color: #62baff; }

.about-copy { padding-top: 0; }
.about-copy h3 { margin-bottom: 28px; }
.about-copy p { font-size: 1.05rem; line-height: 1.62; max-width: 470px; margin-bottom: 24px; }

.site-footer {
  min-height: 116px;
  padding: 36px 0 38px;
  color: #d0d4da;
  font-size: .91rem;
  background: linear-gradient(180deg, #001a37 0%, #001731 100%);
}
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer-links { display: flex; align-items: center; gap: 31px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a:hover { color: #fff; }

/* Interior pages */
.page-hero { padding: 76px 0 58px; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -60% -20% auto 40%; height: 520px;
  background: radial-gradient(ellipse, rgba(23,118,210,.18), transparent 62%); pointer-events:none;
}
.page-hero .shell { position: relative; z-index: 2; }
.page-hero h1 { margin: 8px 0 18px; max-width: 900px; font-size: clamp(2.75rem, 4.15vw, 4rem); font-weight: 600; line-height: 1.10; letter-spacing: -0.037em; }
.page-hero p { max-width: 790px; margin: 0; color: var(--muted); font-size: 1.10rem; line-height: 1.55; }
.page-hero-actions { display:flex; gap:14px; flex-wrap:wrap; margin-top:28px; }

.content-page { padding: 58px 0 82px; }
.content-page .content { max-width: 890px; }
.content-page h2 { margin: 44px 0 14px; font-size: 1.7rem; letter-spacing: -0.025em; }
.content-page h3 { margin: 28px 0 10px; font-size: 1.16rem; }
.content-page p, .content-page li { color: var(--muted); }
.content-page ul { padding-left: 1.3rem; }
.content-page li + li { margin-top: 8px; }
.content-page a { color: #49aaff; }
.content-page strong { color: #fff; }
.meta { color: var(--soft); font-size: .92rem; margin-top: 12px; }

.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 30px; }
.feature-card { padding: 24px; }
.feature-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); border: 1px solid rgba(67,165,255,.25); display: grid; place-items: center; margin-bottom: 18px; color: #59b4ff; font-weight: 800; }
.feature-card h3 { margin-bottom: 7px; font-size: 1.12rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .95rem; }

.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-card { padding: 30px; }
.info-card h2 { margin: 0 0 16px; font-size: 1.6rem; }
.info-card p:last-child { margin-bottom: 0; }

.notice {
  margin-top: 26px; padding: 28px 30px;
  border-radius: var(--radius); border: 1px solid var(--danger-border);
  background: linear-gradient(180deg, rgba(82,58,18,.12), rgba(25,45,68,.24));
}
.notice h2 { margin: 0 0 12px; font-size: 1.5rem; }
.notice p { margin: 0; color: #d8e1ec; }
.notice p + p { margin-top: 12px; }

.support-grid { display:grid; grid-template-columns: 1fr 1fr; gap:20px; margin-top: 26px; }
.support-card { padding: 28px; }
.support-card h2 { margin-top: 0; }

.download-band, .contact-band { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 30px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(5,33,60,.42); }
.download-band { border-color: rgba(47, 158, 255, .42); background: linear-gradient(180deg, rgba(9, 62, 112, .55), rgba(4, 39, 75, .55)); }
.download-band h3, .contact-band h3 { margin-bottom: 8px; }
.download-band p, .contact-band p { margin:0; color:var(--muted); }

@media (min-width: 1600px) {
  .shell { width: min(calc(100% - 160px), 1600px); }
  .section-grid { grid-template-columns: minmax(500px, 620px) minmax(0, 1fr); gap: 9.4vw; }
  .product-card { max-width: 620px; }
}

@media (max-width: 1050px) {
  .shell { width: min(calc(100% - 56px), var(--max)); }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .lang-switch { grid-column: 2; grid-row: 1; }
  .hero { min-height: 650px; }
  .hero-inner { min-height: 650px; }
  .hero-copy { padding-top: 76px; }
  .hero h1 { width: auto; font-size: clamp(3.25rem, 7vw, 4.35rem); }
  .hero h1 span { white-space: normal; }
  .hero-wave { width: 118%; min-width: 860px; right: -35%; top: 185px; opacity: .88; }
  .hero::after { background: linear-gradient(180deg, rgba(0,31,65,.25), rgba(0,31,65,.06) 55%, rgba(0,31,65,.52)); }
  .section-grid, .split-cards, .support-grid { grid-template-columns: 1fr; gap: 38px; }
  .features { grid-template-columns: 1fr 1fr; }
  .product-card { max-width: 600px; }
  .footer-row { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; gap: 22px; }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 74px; }
  .brand { font-size: 1rem; }
  .hero { min-height: 650px; }
  .hero-inner { min-height: 650px; }
  .hero-copy { padding-top: 58px; }
  .hero h1 { font-size: clamp(2.65rem, 12.5vw, 3.65rem); line-height: 1.08; }
  .hero p { font-size: 1rem; max-width: 92%; }
  /* Mobile hero artwork: keep the approved wave/grid composition readable instead of zooming into a cropped fragment. */
  .hero-wave {
    /* Mobile: keep the approved composition intact and anchor it to the hero bottom
       so EN and UA stay visually consistent despite different text heights. */
    width: 118%;
    min-width: 0;
    right: -8%;
    top: auto;
    bottom: 20px;
    opacity: .92;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.72) 5%, #000 13%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.72) 5%, #000 13%);
  }
  .btn { min-height: 50px; padding: 0 20px; font-size: 1rem; }
  .section { padding: 46px 0; }
  .product-card { grid-template-columns: 78px 1fr; gap: 18px; padding: 20px; min-height: auto; }
  .nora-mark { width: 78px; height: 78px; border-radius: 16px; }
  .nora-mark img, .nora-mark svg { width: 48px; height: 48px; }
  .product-card h3 { font-size: 1.35rem; }
  .features { grid-template-columns: 1fr; }
  .page-hero { padding: 56px 0 44px; }
  .content-page { padding: 44px 0 66px; }
  .contact-band { flex-direction: column; align-items: flex-start; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
}

@media (max-width: 700px) {
  .download-band, .contact-band { align-items: stretch; flex-direction: column; gap: 20px; }
  .download-band .btn, .contact-band .btn { width: 100%; }
  .page-hero-actions .btn { width: 100%; }
}
