:root {
  --bg: #0a1220;
  --panel: #0f1929;
  --accent: #1769a5;
  --accent-2: #f2a344;
  --text: #e9f2ff;
  --muted: #a9bad5;
  --card: #101b2d;
  --border: rgba(255, 255, 255, 0.1);
  --radius: 16px;
  font-family:
    "Rubik",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  min-height: 100%;
}
body {
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(
      circle at 15% 18%,
      rgba(23, 105, 165, 0.16),
      transparent 40%
    ),
    radial-gradient(
      circle at 82% 10%,
      rgba(242, 163, 68, 0.12),
      transparent 45%
    ),
    var(--bg);
  color: var(--text);
}
main {
  flex: 1 0 auto;
}
a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 6vw;
  backdrop-filter: blur(10px);
  background: rgba(10, 18, 32, 0.9);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: "Unbounded", cursive;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.menu {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-weight: 600;
  min-width: 0;
  max-width: 100%;
}
.menu a {
  padding: 6px 8px;
  border-radius: 10px;
}
.menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.btn--primary {
  background: linear-gradient(120deg, var(--accent), #3b8fd4);
  color: #04101c;
  border: none;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}
.btn--primary:hover {
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--accent);
  color: #e9f2ff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}
.btn--secondary:hover {
  background: rgba(23, 105, 165, 0.2);
  border-color: #3b8fd4;
}

.btn--link {
  background: transparent;
  color: #6ec7ff;
  padding: 0;
  border: none;
  box-shadow: none;
}
.btn--link:hover {
  text-decoration: underline;
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 12px;
  padding: 12px 18px;
}
.btn--full {
  width: 100%;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  justify-self: end;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.burger {
  position: relative;
  z-index: 300;
}
.burger span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  transform-origin: center;
}
.burger.is-open {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}
.burger.is-open span {
  background: #fff;
}
.burger.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.burger.is-open span:nth-child(2) {
  opacity: 0;
}
.burger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.hero {
  padding: 90px 6vw 70px;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: stretch;
  min-width: 0;
}
.hero__grid > * {
  min-width: 0;
}
.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6ec7ff;
  font-weight: 800;
  font-size: 0.82rem;
}
.hero h1 {
  font-family: "Unbounded", cursive;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.08;
  margin: 12px 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.lede {
  color: var(--muted);
  font-size: 1.05rem;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.hero__stats div {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}
.hero__stats strong {
  display: block;
  font-size: 1.05rem;
}
.hero__stats span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero__panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  min-width: 0;
}
.panel__title {
  color: var(--accent);
  font-weight: 800;
  margin: 0 0 10px;
}
.hero__panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}
.hero__panel li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: stretch;
}
.hero__panel li span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 800;
}
.panel__cta {
  margin-top: 16px;
}

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding: 14px 6vw 0;
}
.strip__item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}
.strip__item h3 {
  margin: 0 0 8px;
}
.strip__item p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 80px 6vw;
}
.section__head h2 {
  margin: 6px 0;
  font-size: clamp(26px, 3.5vw, 34px);
}

.lines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.line {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 8px;
}
.line header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tag {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(23, 105, 165, 0.2);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(23, 105, 165, 0.4);
}
.line p {
  margin: 0;
  color: var(--muted);
}
.line ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.smart {
  padding: 80px 6vw;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: stretch;
  background: linear-gradient(
    120deg,
    rgba(23, 105, 165, 0.18),
    rgba(242, 163, 68, 0.14)
  );
  min-width: 0;
}
.smart__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 10px;
}
.metric-card {
  position: relative;
  padding: 12px 14px;
  border-radius: 14px;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.08),
      transparent 60%
    ),
    rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  overflow: hidden;
}
.metric-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(23, 105, 165, 0.4),
    rgba(242, 163, 68, 0.35)
  );
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.metric-card__value {
  position: relative;
  z-index: 1;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
}
.metric-card__label {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}
.smart__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.smart__board {
  display: grid;
  gap: 12px;
  height: 100%;
}
.board__item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.board__item h4 {
  margin: 0 0 6px;
}
.board__item p {
  margin: 0;
  color: var(--muted);
}

.pilot {
  padding: 70px 6vw;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
  min-width: 0;
}
.pilot__card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.pilot__card ol {
  margin: 10px 0;
  color: var(--muted);
  padding-left: 18px;
}
.pilot__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.pilot__note {
  background: rgba(23, 105, 165, 0.15);
  border: 1px solid rgba(23, 105, 165, 0.4);
  border-radius: 14px;
  padding: 14px;
  color: #fff;
}
.pilot__note p {
  margin: 6px 0 0;
  color: #d9e9ff;
}

.contacts {
  padding: 70px 6vw 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
  min-width: 0;
}
.contacts > * {
  min-width: 0;
}
.contact-list {
  list-style: disc;
  padding-left: 20px;
  margin: 8px 0 10px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}
.contact-list li {
  display: list-item;
}
.contact-note {
  color: var(--muted);
  margin: 4px 0 0;
}
.contact__form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 10px;
  min-width: 0;
}
.contact__form label {
  display: grid;
  gap: 6px;
  color: #dfe8f5;
  font-weight: 700;
}
.contact__form input,
.contact__form textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.contact__form textarea {
  resize: none;
}
.form__hint {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}

.footer {
  margin-top: auto;
  padding: 18px 6vw 28px;
  background: #07101c;
  border-top: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer__links {
  display: flex;
  gap: 14px;
}
.footer__links a {
  color: #d7eaff;
}

@media (min-width: 1500px) {
  .footer {
    padding-left: max(36px, calc((100vw - 1320px) / 2));
    padding-right: max(36px, calc((100vw - 1320px) / 2));
  }
}

@media (max-width: 960px) {
  .hero__grid,
  .smart,
  .pilot {
    grid-template-columns: 1fr;
  }
  .smart__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar {
    grid-template-columns: 1fr auto;
  }
  .lines {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .burger {
    display: inline-flex;
  }
  .menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 96px 8vw 40px;
    background: rgba(5, 10, 18, 0.97);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    z-index: 250;
    animation: slideIn 0.25s ease forwards;
    min-height: 100vh;
    width: 100vw;
    box-sizing: border-box;
  }
  .menu a {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 1.08rem;
    text-align: left;
  }
  .topbar.menu-open .menu {
    display: flex;
  }
  .hero__stats {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 30px 5vw 50px;
  }
  .hero__cta {
    justify-content: center;
  }
  .lines,
  .strip {
    overflow-x: hidden;
  }
  .contacts {
    grid-template-columns: 1fr;
    padding: 56px 5vw 64px;
  }
  .section {
    padding: 56px 5vw;
  }
  .strip {
    padding: 10px 5vw 0;
  }
  .smart,
  .pilot {
    padding: 56px 5vw;
  }
  .contact-list {
    gap: 4px;
  }
  body.menu-open,
  html.menu-open {
    overflow: hidden;
  }
  .btn--ghost {
    display: none;
  }
}

@media (max-width: 900px) {
  .lines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .lines {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .smart__metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes slideOut {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 700px) {
  .lines {
    grid-template-columns: 1fr;
  }
}

/* Fullscreen preview for images opened from modals */
.modal__image,
.ui-image-modal__img {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 7, 12, 0.92);
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox__image {
  max-width: min(96vw, 1680px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

.image-lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.form__hint a {
  color: var(--accent);
  text-decoration: underline;
}

.form__hint a:hover {
  opacity: 0.8;
}
