/* ===== Шрифты (self-hosted) ===== */
@font-face {
  font-family: "Overused Grotesk";
  src: url("fonts/OverusedGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Overused Grotesk";
  src: url("fonts/OverusedGrotesk-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Alumni Sans";
  src: url("fonts/alumni-sans-cyrillic-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Alumni Sans";
  src: url("fonts/alumni-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alumni Sans";
  src: url("fonts/alumni-sans-cyrillic-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Alumni Sans";
  src: url("fonts/alumni-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-cyrillic-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Токены (из переменных макета) ===== */
:root {
  --bg: #121a22;
  --text-primary: #f1f6fa;
  --text-secondary: #b6cad6;
  --text-display: #d7e1e8;
  --text-on-accent: #082635;
  --border: #7896a8;
  --line: rgba(120, 150, 168, 0.35);
  --error: #ff8a80;
  --success: #8fe3b0;

  --font-body: "Overused Grotesk", system-ui, sans-serif;
  --font-display: "Alumni Sans", "Arial Narrow", sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;

  --pad: 80px;            /* боковые поля страницы */
  --radius: 16px;
  --glow: 0 2px 2px rgba(0, 0, 0, 0.5), 0 0 22.5px #fff;
  --btn-gradient: linear-gradient(102deg, #fff 0%, #c0e3fc 56.26%, #c3c3c3 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.25;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

img {
  display: block;
  max-width: none;
}

/* Обрезка интерлиньяжа как в Figma (где поддерживается) */
h1, h2, h3, p, .eyebrow, .product-name, .text-lg, .products__num, .platforms__num, .platforms__desc {
  text-box: trim-both cap alphabetic;
}

.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.br-desktop { display: inline; }

/* ===== Типографика ===== */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 80px;
  line-height: 0.9;
  letter-spacing: -1.1px;
  color: var(--text-display);
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  text-transform: uppercase;
}

.text-lg {
  font-size: 20px;
  line-height: 1.55;
}

.product-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Заголовок секции с линиями по бокам */
.section-title {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.55;
  white-space: nowrap;
}

.section-title::before,
.section-title::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.section-title::before {
  flex: none;
  width: max(0px, calc(var(--pad) - 20px));
}

.section-title::after {
  flex: 1;
}

.section-title--display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 80px;
  line-height: 0.9;
  letter-spacing: -1.1px;
  color: var(--text-display);
  padding-block: 4px;
}

.section-title--short::after {
  flex: 0 1 551px;
}

/* ===== Кнопки ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: none;
  border-radius: var(--radius);
  font: inherit;
  font-size: 16px;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: box-shadow 0.2s, background-color 0.2s;
}

.btn--primary {
  padding: 20px 24px;
  color: var(--text-on-accent);
  background: var(--btn-gradient);
  box-shadow: var(--glow), inset 0 4px 6.3px #fff;
}

.btn--outline {
  padding: 10px 23px;
  border: 1px solid #fff;
  color: var(--text-primary);
  box-shadow: var(--glow);
}

.btn--small {
  font-family: var(--font-ui);
  font-size: 14px;
}

.btn:hover {
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5), 0 0 32px #fff;
}

.btn--primary:hover {
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5), 0 0 32px #fff, inset 0 4px 6.3px #fff;
}

.btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid #c0e3fc;
  outline-offset: 3px;
}

/* Фон карточек: картинка + затемнение 75% */
.card-bg {
  background:
    linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
    url("assets/card-bg.png") center / cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 623px;
}

.hero__bg {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 1275px;
  overflow: hidden;
  pointer-events: none;
}

/* Фоновое фото: обесцвечено на 50%, затемнено к краям, плавно уходит вниз */
.hero__photo {
  position: absolute;
  top: 0;
  left: max(0px, 50% - 720px);
  width: 2372px;
  height: 1275px;
  background:
    radial-gradient(ellipse 56.49% 93.33% at 74.16% 55.84%, rgba(18, 26, 34, 0) 0%, rgba(18, 26, 34, 0.75) 100%),
    url("assets/hero-bg.png") 0 0 / 100% 100% no-repeat;
  -webkit-mask: url("assets/hero-bg-mask.svg") 0 0 / 100% 100%;
  mask: url("assets/hero-bg-mask.svg") 0 0 / 100% 100%;
}

.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  mix-blend-mode: color;
}

.hero__glow {
  position: absolute;
  top: -233px;
  left: calc(50% - 268px);
  width: 1216px;
  height: 1216px;
}

/* Робот в круглой маске, наложение screen (в макете — два слоя) */
.hero__robot {
  position: absolute;
  top: -17.5px;
  left: calc(50% + 16px);
  width: 748px;
  height: 748px;
  background: url("assets/hero-robot.png") -101.86px 0 / 1247.23px 748px no-repeat;
  -webkit-mask: url("assets/hero-circle-mask.svg") 0 0 / 100% 100%;
  mask: url("assets/hero-circle-mask.svg") 0 0 / 100% 100%;
  mix-blend-mode: screen;
}

.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__links a {
  transition: color 0.2s;
}

.nav__links a:hover {
  color: #c0e3fc;
}

/* Логотип 200px; на узких экранах ужимается, чтобы влезли кнопки */
.nav__logo {
  flex: 0 1 200px;
  min-width: 0;
}

.nav__logo img {
  width: 100%;
  height: auto;
}

/* Кнопка-гамбургер: видна, когда меню скрыто (≤1200px) */
.nav__toggle {
  display: none;
  flex: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0 11px;
  border: 1px solid #fff;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: var(--glow);
  cursor: pointer;
  transition: box-shadow 0.2s, background-color 0.2s;
}

.nav__toggle:hover {
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5), 0 0 32px #fff;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--text-primary);
  transition: transform 0.25s, opacity 0.2s;
}

/* Открытое меню: полоски превращаются в крестик */
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  padding-top: 88px;
  padding-bottom: 88px;
}

.hero__content .display {
  max-width: 801px;
}

.hero__content .lead {
  font-size: 20px;
  line-height: 1.55;
  max-width: 676px;
}

/* ===== Баннер «Синапс» ===== */
/* Декор секций может выходить за 1440px — на широких экранах он виден,
   горизонтальный скролл не появляется благодаря overflow-x: clip у html/body */

main > section + section,
.hero + main > section:first-child {
  margin-top: 56px;
}

.synaps {
  position: relative;
  max-width: 1440px;
  height: 487px;
  margin-inline: auto;
}

.synaps__glows,
.catalog__glows {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.synaps__glows img,
.catalog__glows img {
  position: absolute;
  mix-blend-mode: lighten;
}

.synaps__glow--top   { left: 439px;  top: -316.6px; width: 680.36px; height: 633.18px; }
.synaps__glow--right { left: 1202px; top: 61px;     width: 313.45px; height: 723.24px; }
.synaps__glow--left  { left: -12px;  top: 7px;      width: 243.6px;  height: 441.24px; }
.synaps__line-glow   { left: 276.4px; top: -20.1px; width: 887.57px; height: 42px; }
.synaps__line        { left: 293.4px; top: -3.1px;  width: 853.57px; height: 6.59px; }

.synaps__card {
  position: absolute;
  top: 0;
  left: var(--pad);
  right: var(--pad);
  display: flex;
  align-items: center;
  padding: 48px;
  overflow: hidden;
}

/* Декоративная сетка с «битами» */
.synaps__grid {
  position: absolute;
  left: calc(50% - 969.5px);
  top: calc(50% - 519.42px);
  width: 1920px;
  height: 1069px;
  background:
    linear-gradient(rgba(182, 202, 214, 0.2) 1px, transparent 1px) 0 102.72px / 100% 98.18px,
    linear-gradient(90deg, rgba(182, 202, 214, 0.2) 1px, transparent 1px) 47.5px 103.72px / 96px 100%;
  pointer-events: none;
}

.synaps__grid span {
  position: absolute;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  opacity: 0.3;
}

.synaps__grid span::before {
  content: "";
  position: absolute;
  left: -3.3px;
  top: 8.45px;
  width: 3.55px;
  height: 3.55px;
  background: url("assets/grid-dot.svg") 0 0 / 100% 100%;
}

.synaps__diag {
  position: absolute;
  width: 0;
  height: 0;
}

.synaps__diag img {
  position: absolute;
  height: 1px;
  translate: -50% -50%;
}

.synaps__diag--1 { left: 927.3px; top: 941.3px; }
.synaps__diag--1 img { width: 1920px; rotate: 15deg; }
.synaps__diag--2 { left: 931.6px; top: 248.2px; }
.synaps__diag--2 img { width: 1928.19px; rotate: -14.92deg; }

.synaps__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  width: 650px;
  max-width: 100%;
}

.synaps__logo {
  width: 295px;
  height: 51.22px;
}

.synaps__visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.synaps__visual img {
  position: absolute;
}

.synaps__ring--1 { right: -186.5px;  top: 286.6px; width: 1087.04px; height: 180.45px; }
.synaps__ring--2 { right: -118.26px; top: 297.1px; width: 950.49px;  height: 159.5px; }
.synaps__ring--3 { right: -61.26px;  top: 305.8px; width: 836.5px;   height: 142.02px; }

.synaps__cube {
  right: 80.85px;
  top: 88.56px;
  width: 971.53px;
  height: 426.49px;
  object-fit: cover;
  mix-blend-mode: plus-lighter;
}

.badge {
  position: absolute;
  top: 32px;
  right: 111.85px;
  padding: 10px 23px;
  border: 1px solid #fff;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 22px;
  color: var(--text-secondary);
  box-shadow: var(--glow);
  white-space: nowrap;
}

/* ===== Каталог ===== */
.catalog {
  position: relative;
  max-width: 1440px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.catalog__glow--top  { left: 407.2px; top: -162.2px; width: 680.36px; height: 633.18px; }
.catalog__glow--left { left: -43.7px; top: 161.5px;  width: 243.6px;  height: 441.24px; }
.catalog__line--1g { left: 123.3px; top: 67.2px; width: 628.14px; height: 42px; }
.catalog__line--2g { left: 760.4px; top: 67.2px; width: 584.37px; height: 42px; }
.catalog__line--1  { left: 140.3px; top: 84.2px; width: 594.14px; height: 6.59px; }
.catalog__line--2  { left: 777.4px; top: 84.2px; width: 550.37px; height: 6.59px; }

.catalog__grid {
  display: grid;
  grid-template-columns: 661fr 595fr;
  gap: 24px;
}

.catalog__side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 32px;
  overflow: hidden;
}

.panel__head {
  display: flex;
  align-items: center;
  gap: 48px;
}

.panel__head h3 {
  font-weight: 600;
  font-size: 32px;
  line-height: 1.55;
}

/* Слот под иконку размером с узел в макете; svg со свечением
   показывается в натуральную величину и выходит за слот */
.ico {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--w);
  height: var(--h);
}

.chevron {
  transition: translate 0.2s;
}

.products,
.platforms {
  display: flex;
  flex-direction: column;
}

.products {
  flex: 1;
}

.products li {
  flex: 1;
  display: flex;
  border-bottom: 0.5px solid #fff;
}

.products a,
.platforms a {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 48px;
  padding-block: 16px;
}

.products a:hover .chevron,
.platforms a:hover .chevron {
  translate: 4px 0;
}

.products__num {
  font-family: var(--font-ui);
  font-size: 22px;
  line-height: 1.25;
  color: var(--text-secondary);
}

.products__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.platforms li {
  border-bottom: 0.5px solid #fff;
}

.platforms__num {
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 1.25;
  color: var(--text-secondary);
}

.platforms .product-name,
.platforms__desc {
  flex: 1;
  min-width: 0;
}

.platforms__desc {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.16px;
}

.directions {
  display: flex;
}

.directions li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px 8px;
  font-size: 20px;
  line-height: 1.55;
  text-align: center;
}

.directions li + li {
  border-left: 1px solid #fff;
}


/* ===== Наш подход ===== */
.section {
  padding-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.approach {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.approach li {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.4;
}


/* ===== Группа компаний ===== */
.companies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.companies li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.companies p {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.16px;
  color: var(--text-secondary);
}

/* Логотипы-PNG используются как маска и заливаются белым */
.companies__logo {
  display: block;
  width: 256px;
  background: #fff;
  -webkit-mask: var(--logo) 0 0 / 100% 100% no-repeat;
  mask: var(--logo) 0 0 / 100% 100% no-repeat;
}

.companies__logo--4px {
  --logo: url("assets/logo-4px.png");
  height: 49.83px;
}

.companies__logo--shikari {
  --logo: url("assets/logo-shikari.png");
  height: 56.35px;
}

/* ===== Об основателе ===== */
.founder {
  position: relative;
  max-width: 1440px;
  margin-inline: auto;
  padding-top: 48px;
}

.founder__particles {
  position: absolute;
  left: 0;
  top: 97.76px;
  z-index: -1;
  width: 1440px;
  aspect-ratio: 4096 / 2294;
  opacity: 0.5;
  background: url("assets/particles.png") center / cover;
  -webkit-mask: url("assets/particles-mask.svg") 0 0 / 100% 100%;
  mask: url("assets/particles-mask.svg") 0 0 / 100% 100%;
  pointer-events: none;
}

.founder__row {
  display: flex;
  align-items: flex-end;
  gap: 80px;
}

.founder__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  padding-top: 96px;
}

.founder__text .text-lg p + p {
  margin-top: 31px;
}

.founder__visual {
  position: relative;
  flex: none;
  width: 551.92px;
  height: 470px;
}

.founder__glow {
  position: absolute;
  left: 0;
  top: -298.5px;
  width: 879.36px;
  height: 818.37px;
  mix-blend-mode: lighten;
  pointer-events: none;
}

.founder__photo {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 517.14px;
  object-fit: cover;
  border-radius: 174px;
  mix-blend-mode: luminosity;
}

/* ===== Контакты ===== */
.contacts__card {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 80px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 5, 17, 0.5);
}

.contacts__intro {
  display: flex;
  gap: 40px;
}

.contacts__intro > * {
  flex: 1;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form__row {
  display: flex;
  gap: 40px;
}

.field {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  height: 56px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  filter: drop-shadow(0 0 11.25px #fff);
  cursor: text;
  transition: border-color 0.2s;
}

.field:focus-within {
  border-color: #c0e3fc;
}

.field__label {
  font-size: 12px;
  line-height: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  opacity: 0.2;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 20px;
  line-height: 24px;
  color: var(--text-primary);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-secondary);
  opacity: 1;
}

.field--area {
  height: auto;
  min-height: 128px;
  justify-content: flex-start;
  padding-block: 16px;
}

/* Высота подстраивается под текст (script.js), скролла нет */
.field--area textarea {
  min-height: 72px;
  resize: none;
  overflow: hidden;
}

.field[aria-invalid="true"],
.consent[aria-invalid="true"] input {
  border-color: var(--error);
}

.form__bottom {
  display: flex;
  align-items: center;
  gap: 40px;
}

.consent {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
}

.consent input {
  appearance: none;
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}

.consent input:checked {
  background: #c0e3fc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23082635' stroke-width='2'/%3E%3C/svg%3E") center / 100%;
  border-color: #c0e3fc;
}

.consent input:focus-visible {
  outline: 2px solid #c0e3fc;
  outline-offset: 2px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  min-height: 1.4em;
  font-size: 16px;
  text-align: right;
}

.form-status:empty {
  display: none;
}

.form-status.is-error { color: var(--error); }
.form-status.is-success { color: var(--success); }

.contacts__info {
  display: flex;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  scroll-margin-top: 40px;
}

.info h3 {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.55;
  white-space: nowrap;
}

.info p {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.info p + p {
  margin-top: -2px;
}

.info a:hover {
  color: var(--text-primary);
}

.info--narrow {
  flex: 0 0 253px;
  padding-left: 40px;
  border-left: 1px solid #fff;
}

.info .info__small {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.6px;
}

/* ===== Подвал ===== */
.footer {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 32px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.footer__legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  text-align: right;
}

.footer__legal p {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.16px;
}

.footer__legal ul,
.footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
}

.footer__legal ul,
.footer__bottom {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
}

.footer__nav a:hover,
.footer__bottom a:hover {
  color: #c0e3fc;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* ===== Адаптив ===== */
/* Шире макета: фото hero слева не имеет запаса — масштабируем его от правого края
   контейнера так, чтобы оно доставало до левого края экрана (аналог cover).
   Справа у фото свой запас (2372px), он просто показывается.
   Частицы у основателя — на всю ширину экрана в режиме cover. */
@media (min-width: 1441px) {
  .hero__bg { height: calc(1275 / 1440 * (50vw + 720px)); }
  .hero__photo {
    left: 0;
    width: calc(2372 / 1440 * (50vw + 720px));
    height: calc(1275 / 1440 * (50vw + 720px));
  }
  .founder__particles {
    left: calc(720px - 50vw);
    width: 100vw;
  }
}

@media (max-width: 1200px) {
  .nav__toggle { display: flex; }

  /* Всплывающее меню: раскрывается сверху вниз */
  .nav__links {
    position: absolute;
    top: calc(100% - 8px);
    left: var(--pad);
    right: var(--pad);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(18, 26, 34, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    clip-path: inset(0 0 100% 0 round var(--radius));
    visibility: hidden;
    transition: clip-path 0.3s ease, visibility 0s 0.3s;
  }

  .nav.is-open .nav__links {
    clip-path: inset(0 0 0 0 round var(--radius));
    visibility: visible;
    transition: clip-path 0.3s ease;
  }

  .nav__links a {
    display: block;
    padding: 14px 24px;
    font-size: 18px;
  }
}

@media (max-width: 1100px) {
  :root { --pad: 40px; }

  .display,
  .section-title--display { font-size: 64px; }

  /* Синапс: визуал уходит под карточку */
  .synaps { height: auto; display: flex; flex-direction: column; }
  .synaps__card { position: relative; left: auto; right: auto; margin-inline: var(--pad); }
  .synaps__visual { position: relative; height: 340px; margin-top: -60px; overflow: hidden; }
  .synaps__cube { right: 50%; translate: 50% 0; top: 0; width: 760px; height: auto; }
  .synaps__ring { display: none; }
  .badge { top: 32px; right: calc(var(--pad) + 32px); }

  .catalog__grid { grid-template-columns: 1fr; }
  .catalog__line { display: none; }

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

  .founder__row { flex-direction: column; align-items: stretch; gap: 40px; }
  .founder__visual { width: 100%; max-width: 552px; align-self: center; }

  .contacts__card { padding: 48px 40px; gap: 56px; }
  .contacts__info { flex-wrap: wrap; }
  .info { flex: 1 1 40%; }
  .info--narrow { flex: 1 1 40%; padding-left: 0; border-left: 0; }
}

@media (max-width: 768px) {
  :root { --pad: 16px; }

  .br-desktop { display: none; }

  .nav { gap: 12px; }
  .hero { min-height: 0; }
  .hero__robot { left: calc(50% - 200px); top: 260px; opacity: 0.5; }
  .hero__glow { left: calc(50% - 600px); }
  .hero__content { padding-top: 40px; padding-bottom: 40px; gap: 28px; }
  .display,
  .section-title--display { font-size: 48px; }
  .eyebrow { font-size: 20px; }

  .section-title { font-size: 26px; }
  /* Заголовок с тем же полем слева, что и контент; линия только справа */
  .section-title { padding-left: var(--pad); }
  .section-title::before { display: none; }

  .synaps__card { padding: 32px 24px; }
  .synaps__logo { width: 220px; height: auto; }
  .synaps__visual { height: 220px; margin-top: -30px; }
  .synaps__cube { width: 480px; }
  .badge { display: none; }

  .panel { padding: 24px 16px; gap: 24px; }
  .panel__head { gap: 24px; }
  .panel__head h3 { font-size: 26px; }
  .products a, .platforms a { gap: 16px; }
  .platforms a { flex-wrap: wrap; }
  .platforms .product-name { flex: 1 1 auto; }
  .platforms__desc { order: 3; flex: 1 0 100%; padding-left: 36px; }
  .platforms .chevron { order: 2; }
  .product-name { font-size: 26px; }
  .text-lg { font-size: 18px; }
  .directions li { font-size: 16px; padding-inline: 4px; }

  .section { gap: 40px; }
  .approach,
  .companies { grid-template-columns: 1fr; }

  .founder__text { padding-top: 40px; }
  .founder__visual { height: 360px; }
  .founder__photo { height: 400px; border-radius: 120px; object-fit: contain; object-position: center bottom; }
  .btn--small { white-space: normal; }

  .contacts__card { padding: 32px 16px; gap: 40px; }
  .contacts__intro,
  .form__row,
  .form__bottom { flex-direction: column; align-items: stretch; gap: 16px; }
  .consent { padding: 8px 0; }
  .form__bottom .btn { justify-content: center; }
  .info,
  .info--narrow { flex: 1 1 100%; }
  .info h3 { white-space: normal; }

  .footer__top { flex-direction: column; }
  .footer__legal { align-items: flex-start; text-align: left; }
  .footer__nav { gap: 12px 24px; }
}
