:root {
  --green: #238636;
  --blue: #0a66c2;
  --ink: #0c1724;
  --muted: #4e6277;
  --line: #c7d2df;
  --line-strong: #9fb1c4;
  --paper: #ffffff;
  --surface: #f4f8fc;
  --panel: #eaf1f8;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 6px 16px rgba(11, 26, 42, 0.08);
  --shadow-md: 0 14px 28px rgba(11, 26, 42, 0.14);
  --section-band: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 251, 255, 0.9));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.62;
  background:
    linear-gradient(90deg, rgba(13, 26, 43, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(13, 26, 43, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #ecf3fa 0%, #f6f9fd 40%, #f2f7fc 100%);
  background-size: 30px 30px, 30px 30px, auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
button,
input,
textarea,
select {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(10, 102, 194, 0.14);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(10, 102, 194, 0.45);
  outline-offset: 2px;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.company-hero-image {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  margin-inline: 0;
}

.company-intro {
  min-height: 260px;
}

.company-intro .overlay-media img {
  min-height: 260px;
  max-height: 340px;
}

.company-intro h1 {
  font-size: clamp(1.75rem, 3.8vw, 2.65rem);
  max-width: 14ch;
}

.company-intro .lead {
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
  max-width: 58ch;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 250, 254, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.container {
  width: min(1180px, 100% - 2.25rem);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
}

.brand span {
  display: inline-block;
  transform: translateY(1px);
}

.brand-mark {
  width: 2.05rem;
  height: 2.05rem;
  object-fit: contain;
  object-position: center;
  display: block;
  flex-shrink: 0;
}

header .brand-mark {
  width: 2.2rem;
  height: 2.2rem;
}

footer .brand-mark {
  width: 1.9rem;
  height: 1.9rem;
}

.nav-toggle {
  padding: 0.48rem 0.82rem;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.nav-links {
  display: none;
  position: absolute;
  right: 0;
  top: 3.8rem;
  min-width: 210px;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.nav-links.open {
  display: flex;
}

.nav-links a {
  padding: 0.54rem 0.64rem;
  border-radius: 6px;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #1f3348;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-brochure-link {
  padding: 0.54rem 0.64rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #1f3348;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.lang-toggle {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #c5d5e6;
  background: #f3f8fd;
  color: #1b3f60;
  cursor: pointer;
}

.lang-toggle:hover {
  opacity: 0.95;
}

.lang-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.nav-links a:hover,
.nav-links a.active {
  background: linear-gradient(90deg, rgba(35, 134, 54, 0.16), rgba(10, 102, 194, 0.13));
  color: var(--ink);
  opacity: 0.95;
}

.nav-brochure-link:hover {
  background: linear-gradient(90deg, rgba(35, 134, 54, 0.16), rgba(10, 102, 194, 0.13));
  color: var(--ink);
  opacity: 0.95;
}

main {
  padding: 1.9rem 0 3rem;
}

main > section {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
}

main > section:first-child {
  margin-top: 0;
  padding-top: 0;
}

main > section + section {
  border-top: 1px solid #d6e2ee;
}

h1,
h2,
h3 {
  margin: 0;
  color: #0a1a2a;
  text-wrap: balance;
}

h1 {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  max-width: 16ch;
}

h2 {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.42rem, 2.4vw, 2rem);
  letter-spacing: 0.012em;
  margin-bottom: 0.85rem;
}

h3 {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  letter-spacing: 0.01em;
  margin-bottom: 0.42rem;
}

p {
  margin: 0.52rem 0;
  text-wrap: pretty;
}

.small {
  color: var(--muted);
  font-size: 0.96rem;
}

.lead {
  color: #30465e;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  max-width: 63ch;
  margin-top: 0.9rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.66rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(90deg, rgba(35, 134, 54, 0.15), rgba(10, 102, 194, 0.15));
  color: #153149;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.71rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero {
  display: grid;
  gap: 1rem;
  padding-top: 0;
  border-top: 0;
}

.hero > div:first-child {
  padding: 1.35rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 248, 252, 0.98));
  box-shadow: var(--shadow-sm);
}

.hero img {
  min-height: 230px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.hero-visual {
  position: relative;
  min-height: 300px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: radial-gradient(circle at 20% 10%, rgba(35, 134, 54, 0.16), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(10, 102, 194, 0.19), transparent 60%),
    linear-gradient(165deg, #e7f0fa, #f7fbff);
}

.hero-overlay {
  position: relative;
  grid-template-columns: 1fr;
  min-height: clamp(420px, 62vh, 620px);
}

.hero-overlay > div:first-child,
.hero-overlay .hero-visual {
  grid-area: 1 / 1;
}

.hero-overlay .hero-visual {
  min-height: clamp(420px, 62vh, 620px);
}

.hero-overlay .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(102deg, rgba(7, 18, 29, 0.72) 0%, rgba(7, 18, 29, 0.44) 46%, rgba(7, 18, 29, 0.16) 78%, rgba(7, 18, 29, 0.05) 100%);
}

.hero-overlay > div:first-child {
  position: relative;
  z-index: 2;
  align-self: end;
  margin: 1rem;
  max-width: min(720px, calc(100% - 2rem));
  border: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  padding: 0;
}

.hero-overlay h1 {
  color: #f4f8fd;
  text-shadow: 0 2px 10px rgba(7, 18, 29, 0.35);
}

.hero-overlay .lead {
  color: #d7e7f7;
  text-shadow: 0 1px 8px rgba(7, 18, 29, 0.3);
}

.hero-overlay .badge {
  border-color: rgba(167, 197, 224, 0.8);
  background: rgba(214, 232, 246, 0.88);
  color: #12324d;
}

.hero-visual.field {
  background: radial-gradient(circle at 15% 15%, rgba(35, 134, 54, 0.24), transparent 55%),
    radial-gradient(circle at 85% 78%, rgba(97, 167, 92, 0.22), transparent 58%),
    linear-gradient(165deg, #e5f3e6, #f5fcf5);
}

.hero-visual.urban {
  background: radial-gradient(circle at 20% 15%, rgba(10, 102, 194, 0.22), transparent 54%),
    radial-gradient(circle at 88% 84%, rgba(71, 145, 224, 0.2), transparent 56%),
    linear-gradient(165deg, #e7f0fb, #f6fbff);
}

.hero-threejs {
  position: absolute;
  inset: 0;
}

.hero-threejs canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-fallback-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.hero-visual.fallback .hero-fallback-image {
  opacity: 1;
}

.split {
  display: grid;
  gap: 1rem;
  padding-top: 0;
  border-top: 0;
}

.split > div:first-child {
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff, #f6fbff);
}

.overlay-pair > div:first-child,
.split.overlay-pair > div:first-child {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.split img {
  min-height: 240px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
  margin-top: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #173046;
  transition: transform 0.18s ease, opacity 0.18s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.btn.primary {
  color: #fff;
  border-color: #1f7d31;
  background: linear-gradient(180deg, #2ea243, #238636);
}

.btn.accent {
  color: #fff;
  border-color: #0a66c2;
  background: linear-gradient(180deg, #2a7bd8, #0a66c2);
}

.grid {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.grid-2,
.grid-3 {
  grid-template-columns: 1fr;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.32rem;
  padding: 1rem;
  border-radius: 12px;
  border: 0;
  background: var(--section-band);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  opacity: 0.97;
}

.card .btn {
  margin-top: 0.56rem;
  width: fit-content;
}

.info-block {
  padding: 0.72rem 0.85rem;
  border-left: 3px solid #bfd5ea;
  background: rgba(255, 255, 255, 0.46);
  border-radius: 8px;
}

.plain-block {
  padding: 1.06rem 1.1rem;
  border-radius: 10px;
  border: 1px solid #d7e2ed;
  background: #fbfdff;
  box-shadow: 0 6px 14px rgba(11, 26, 42, 0.06);
}

.media-block {
  padding: 0.4rem;
  overflow: hidden;
}

.media-inline {
  margin: 1rem 0 0;
}

.media-inline img {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.media-grid {
  align-items: stretch;
}

.media-grid > * {
  height: 100%;
}

.media-grid .plain-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.media-grid .media-block {
  padding: 0;
  border-radius: 10px;
}

.media-grid img {
  height: 100%;
  min-height: 240px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.overlay-pair .overlay-media {
  position: relative;
  overflow: hidden;
}

.overlay-pair .overlay-media img {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.overlay-pair .overlay-copy {
  border-radius: 10px;
}

.overlay-copy {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.overlay-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.overlay-tile img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border: 0;
  box-shadow: none;
  border-radius: var(--radius-lg);
}

.overlay-tile .overlay-copy {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.overlay-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 16, 26, 0.12) 0%, rgba(6, 16, 26, 0.54) 100%);
  pointer-events: none;
}

.overlay-tile h2,
.overlay-tile .small,
.overlay-tile p {
  color: #f3f8fd;
  text-shadow: none;
}

.products-hero {
  min-height: clamp(520px, 78vh, 760px);
}

.products-hero img {
  min-height: clamp(520px, 78vh, 760px);
}

.products-hero .products-hero-top,
.products-hero .products-hero-bottom {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  z-index: 2;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.products-hero .products-hero-top {
  top: 1.2rem;
}

.products-hero .products-hero-bottom {
  bottom: 1.2rem;
}

.products-hero .products-hero-top h1,
.products-hero .products-hero-top p,
.products-hero .products-hero-bottom h2,
.products-hero .products-hero-bottom h3,
.products-hero .products-hero-bottom p {
  color: #f3f8fd;
}

.products-hero .products-hero-bottom h2 {
  margin-top: 0.75rem;
}

.products-hero .products-hero-bottom .info-block {
  border-left-color: rgba(196, 220, 241, 0.8);
  background: rgba(7, 21, 34, 0.28);
}

.products-hero .products-hero-bottom .btn {
  border-color: rgba(203, 223, 241, 0.85);
  color: #eaf4ff;
  background: rgba(9, 27, 45, 0.38);
}

.products-hero .products-hero-bottom .btn:hover {
  background: rgba(9, 27, 45, 0.54);
}

.mission-grid {
  align-items: start;
}

.mission-grid > * {
  align-self: start;
  height: auto;
}

.mission-grid .plain-block,
.mission-grid .info-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.company-overview {
  align-items: stretch;
}

.mission-stack {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: #2f455c;
}

.list li {
  margin: 0.32rem 0;
}

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .brand {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav {
  direction: rtl;
}

html[dir="rtl"] .nav-links {
  left: 0;
  right: auto;
}

html[dir="rtl"] .list {
  padding-left: 0;
  padding-right: 1.1rem;
}

html[dir="rtl"] .info-block {
  border-left: 0;
  border-right: 3px solid #bfd5ea;
}

html[dir="rtl"] th,
html[dir="rtl"] td,
html[dir="rtl"] label,
html[dir="rtl"] p,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  text-align: right;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  padding: 0.52rem 0.78rem;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  font-family: "Rajdhani", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.skip-link:focus-visible {
  top: 0.7rem;
}

.highlight {
  color: var(--blue);
}

.table-wrap {
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

th,
td {
  padding: 0.72rem 0.78rem;
  border-bottom: 1px solid #dde6ef;
  vertical-align: top;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

th {
  background: #eaf2fa;
  color: #163247;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

tbody tr:nth-child(even) td {
  background: #f8fbff;
}

tbody tr:hover td {
  background: #eef5fc;
}

label {
  display: inline-block;
  margin-top: 0.35rem;
  color: #234157;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

input,
textarea {
  font: inherit;
}

.form-control {
  width: 100%;
  margin: 0.45rem 0 0.78rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #b8c8da;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.form-control:focus-visible {
  border-color: #79a7d7;
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.18);
}

.form-control[aria-invalid="true"] {
  border-color: #c9353f;
  box-shadow: 0 0 0 2px rgba(201, 53, 63, 0.16);
}

#contact-form-feedback {
  min-height: 1.35rem;
  margin: 0.1rem 0 0.5rem;
}

footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #eaf1f8, #e5edf6);
}

.footer-grid {
  padding: 1.2rem 0 1.5rem;
  display: grid;
  gap: 1rem;
}

.footer-grid strong {
  font-family: "Rajdhani", sans-serif;
  font-size: 1rem;
  color: #17334a;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1.04fr 0.96fr;
    align-items: stretch;
  }

  .hero-overlay {
    grid-template-columns: 1fr;
  }

  .hero-overlay > div:first-child {
    margin: 1.3rem;
    max-width: min(760px, 78%);
  }

  .split {
    grid-template-columns: 1.04fr 0.96fr;
    align-items: stretch;
  }

  .overlay-pair {
    grid-template-columns: 1fr;
    min-height: 360px;
  }

  .company-intro {
    min-height: 300px;
  }

  .company-intro .overlay-media img {
    min-height: 300px;
    max-height: 360px;
  }

  .company-intro > .overlay-copy {
    margin: 0.85rem 1rem;
    max-width: min(640px, 70%);
  }

  .overlay-pair > .overlay-copy,
  .overlay-pair > .overlay-media {
    grid-area: 1 / 1;
  }

  .overlay-pair > .overlay-media {
    z-index: 1;
    border-radius: var(--radius-lg);
  }

  .overlay-pair > .overlay-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(104deg, rgba(6, 16, 26, 0.56) 0%, rgba(6, 16, 26, 0.36) 46%, rgba(6, 16, 26, 0.1) 100%);
    pointer-events: none;
  }

  .overlay-pair > .overlay-media img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    border-radius: var(--radius-lg);
  }

  .overlay-pair > .overlay-copy {
    z-index: 2;
    align-self: end;
    margin: 1.1rem;
    max-width: min(760px, 74%);
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .overlay-tile {
    min-height: 360px;
  }

  .overlay-pair > .overlay-copy h1,
  .overlay-pair > .overlay-copy h2,
  .overlay-pair > .overlay-copy h3 {
    color: #f3f8fd;
    text-shadow: none;
  }

  .overlay-pair > .overlay-copy .lead,
  .overlay-pair > .overlay-copy .small,
  .overlay-pair > .overlay-copy p {
    color: #d7e6f5;
    text-shadow: none;
  }

  .split.overlay-pair.company-intro {
    min-height: 300px;
  }

  .split.overlay-pair.company-intro > .overlay-media img {
    min-height: 300px;
    max-height: 360px;
  }

  .split.overlay-pair.company-intro > .overlay-copy {
    margin: 0.85rem 1rem;
    max-width: min(640px, 70%);
  }

  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-grid .media-block {
    min-height: 300px;
  }

  main > section {
    margin-top: 1.8rem;
    padding-top: 1.6rem;
  }

  .footer-grid {
    grid-template-columns: 1.45fr 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .nav {
    padding: 0.9rem 0;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    position: static;
    min-width: 0;
    flex-direction: row;
    gap: 0.18rem;
    padding: 0.2rem;
    background: transparent;
    box-shadow: none;
    border: 0;
  }

  html[dir="rtl"] .nav-links {
    direction: rtl;
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
