/* Токены — из Figma Variables файла «Oxygen Forensics — Website Re-work» */
:root {
  /* цвета */
  --text-primary: #203478;
  --text-secondary: #51aaf5;
  --text-tertiary: #9d9da3;
  --text-on-dark: #ffffff;
  --surface-page: #f8fbfc;
  --surface-dark: #203478;
  --surface-card: rgba(255, 255, 255, 0.7);
  --stroke-primary: #51aaf5;
  --stroke-tertiary: #afdaff;
  --orb: #a8d4fa;
  --gradient-light: linear-gradient(250deg, #dceefd 1.87%, #a8d4fa 100%);
  --gradient-dark: linear-gradient(237deg, #51aaf5 2.9%, #1139bb 100%);
  --gradient-button: linear-gradient(90deg, #1139bb, #51aaf5);
  --gradient-text: linear-gradient(227deg, #51aaf5 8.5%, #1139bb 88.7%);
  --shadow-nav: 0 0 2px rgba(32, 52, 120, 0.2);
  --shadow-card: 0 0 8px rgba(32, 52, 120, 0.15);

  /* типографика */
  --font-heading: 'Urbanist', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --size-h1: clamp(40px, 5.2vw, 75px);
  --size-h2: clamp(32px, 3.5vw, 50px);
  --size-h3: clamp(28px, 2.5vw, 35px);
  --size-h6: clamp(17px, 1.4vw, 20px);
  --size-body: 16px;
  --size-small: 14px;

  /* отступы и радиусы */
  --space-s: 8px;
  --space-m: 16px;
  --space-l: 24px;
  --space-xl: 32px;
  --space-huge: 64px;
  --radius-s: 16px;
  --radius-m: 32px;
  --radius-l: 64px;
  --radius-pill: 90px;

  /* раскладка */
  --content-width: 1276px;
  --gutter: 83px;
  --nav-top: var(--space-l);
  --nav-height: 59px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* якоря не прячутся под закреплённым меню */
  scroll-padding-top: calc(var(--nav-top) + var(--nav-height) + var(--space-l));
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--stroke-primary);
  outline-offset: 3px;
  border-radius: var(--space-s);
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px var(--space-m);
  border-radius: 40px;
  border: 2px solid transparent;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--size-body);
  line-height: 1.2;
  white-space: nowrap;
  transition: filter 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { border-radius: 40px; }
.btn--primary {
  background: var(--gradient-button) border-box;
  color: var(--text-on-dark);
}
.btn--secondary {
  border-color: var(--stroke-primary);
  color: var(--text-primary);
}
.btn--secondary:hover { background: rgba(255, 255, 255, 0.5); filter: none; }
.btn--on-dark {
  background: var(--gradient-light) border-box;
  color: var(--text-primary);
}

/* Hero + навигация */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--nav-top) + var(--nav-height)) var(--gutter) 200px;
  background: var(--gradient-light);
  border-radius: 0 0 var(--radius-l) var(--radius-l);
}
.hero__orb {
  position: absolute;
  width: 735px;
  height: 735px;
  max-width: none;
  pointer-events: none;
}
.hero__orb--top { left: -247px; top: -433px; transform: rotate(-16.18deg); }
.hero__orb--bottom { right: -271px; top: 474px; transform: rotate(-23.53deg); }

/* Меню закреплено поверх страницы и видно при скролле */
.nav {
  position: fixed;
  top: var(--nav-top);
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-l);
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--content-width);
  padding: var(--space-s) var(--space-s) var(--space-s) var(--space-l);
  background: #fff;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-nav);
}
.nav__logo { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nav__links {
  display: flex;
  /* ровно по центру меню, независимо от ширины логотипа и кнопки */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  gap: 48px;
  font-family: var(--font-heading);
  font-weight: 500;
}
.nav__links a { padding: var(--space-s) 0; transition: color 160ms ease; }
.nav__links a:hover { color: var(--text-secondary); }

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  max-width: 1060px;
  margin-top: 150px;
  text-align: center;
}
.hero__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--size-h1);
  line-height: 1.2;
  text-wrap: balance;
}
.hero__title-accent {
  display: block;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle {
  max-width: 720px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--size-h6);
  text-wrap: balance;
}
.hero__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-m); }

/* Иллюстрация продукта — наезжает на нижний край hero, как в макете */
.showcase {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: -117px;
  padding-inline: var(--gutter);
}
.showcase img { width: 1000px; height: auto; }

/* Продукты — без плашки: фон страницы и размытый орб за карточками, как «Our solutions» на сайте */
.products {
  position: relative;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-huge);
  margin-top: 96px;
  padding: 0 var(--gutter);
}
.products__orb {
  position: absolute;
  top: 217px;
  left: max(var(--gutter), 50% - 497px);
  width: 631px;
  height: 631px;
  border-radius: 50%;
  background: var(--orb);
  filter: blur(116px);
  pointer-events: none;
}
.products > :not(.products__orb) { position: relative; }
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
  max-width: 844px;
  text-align: center;
}
.section-head h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--size-h2);
  line-height: 1.2;
}
.section-head p {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--size-h6);
}
.products__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l);
  width: 100%;
  max-width: var(--content-width);
}
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xl);
  padding: var(--space-xl);
  background: var(--surface-card);
  border: 1px solid var(--stroke-tertiary);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(1.65px);
}
.card__icon { width: 50px; height: 50px; object-fit: contain; }
.card__head { display: flex; flex-direction: column; gap: var(--space-s); }
.card__tag {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--size-body);
  color: var(--text-tertiary);
}
.card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--size-h3);
  line-height: 1.2;
}
.card__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}
.card__list li {
  display: flex;
  gap: var(--space-m);
  align-items: flex-start;
}
.card__list li::before {
  content: '';
  flex: 0 0 24px;
  height: 24px;
  margin-top: -1px;
  background: url('assets/tick.svg') center / contain no-repeat;
}

main { padding-bottom: 128px; }

/* Футер — компактный: логотип и почта слева, кнопка портала справа */
.footer {
  position: relative; /* выше размытого орба секции продуктов */
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding: 40px var(--gutter) var(--space-l);
  background: var(--surface-dark);
  border-radius: var(--radius-m) var(--radius-m) 0 0;
  color: var(--text-on-dark);
  font-family: var(--font-heading);
  font-weight: 500;
}
.footer a { transition: color 160ms ease; }
.footer a:not(.btn):hover { color: var(--text-secondary); }
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-l);
}
.footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-m) var(--space-xl);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-top: var(--space-l);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  gap: var(--space-s) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--size-small);
}

/* Планшет */
@media (max-width: 1099px) {
  :root { --gutter: 32px; --radius-l: 48px; }
  .hero { padding-bottom: 160px; }
  .hero__content { margin-top: 112px; }
  .showcase { margin-top: -96px; }
  .products__cards { grid-template-columns: 1fr; max-width: 720px; }
  .card {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: var(--space-m) var(--space-l);
  }
  .card__icon { grid-row: span 3; }
  .card__text, .card__list { grid-column: 2; justify-self: start; }
}

/* Телефон */
@media (max-width: 639px) {
  :root { --gutter: 16px; --radius-l: 32px; --radius-m: 24px; --space-huge: 48px; }
  :root { --nav-top: var(--space-m); }
  .hero { padding-bottom: 112px; }
  .nav { justify-content: space-between; padding-left: var(--space-m); }
  .nav__links { display: none; }
  .hero__content { margin-top: 72px; gap: var(--space-l); }
  .hero__buttons { flex-direction: column; align-self: stretch; }
  .hero__orb { width: 480px; height: 480px; }
  .hero__orb--top { left: -220px; top: -300px; }
  .hero__orb--bottom { right: -260px; top: 420px; }
  .showcase { margin-top: -72px; }
  .products { margin-top: 64px; }
  main { padding-bottom: 64px; }
  .products__orb { top: auto; bottom: 100px; left: 50%; width: 550px; height: 550px; transform: translateX(-50%); }
  .card { display: flex; padding: var(--space-l); gap: var(--space-l); }
  .footer__top { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav__links a, .footer a { transition: none; }
}
