@font-face {
  font-family: "Onest";
  src: url("assets/Onest-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --a1-rose: #e43c82;
  --a1-rose-light: #e36499;
  --a1-rose-dark: #cb256b;
  --a1-action-highlight: color-mix(in srgb, var(--a1-rose) 50%, var(--a1-rose-dark));
  --a1-rose-glow-strong: rgba(228, 60, 130, 0.38);
  --a1-ink: #1c1c1c;
  --a1-panel: #242424;
  --a1-paper: #f5f3f1;
  --a1-white: #ffffff;
  --a1-muted: #68646a;
  --a1-muted-dark: rgba(255, 255, 255, 0.66);
  --a1-line: #d8d5d3;
  --a1-line-dark: rgba(255, 255, 255, 0.16);
  --a1-radius: 18px;
  --a1-font: "Onest", Arial, sans-serif;
}

.a1track-material,
.a1track-material * {
  box-sizing: border-box;
}

.a1track-material {
  color: var(--a1-white);
  font-family: var(--a1-font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.a1track-material img,
.a1track-material svg {
  display: block;
  max-width: 100%;
}

.a1track-material a {
  color: inherit;
  text-decoration: none;
}

.a1track-material h1,
.a1track-material h2,
.a1track-material h3,
.a1track-material p,
.a1track-material figure {
  margin-top: 0;
}

.a1track-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.a1track-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--a1-action-highlight), var(--a1-rose-dark));
  padding: 13px 25px;
  color: var(--a1-white);
  font: 600 14px/1.1 var(--a1-font);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.16);
  transition: box-shadow 200ms ease, filter 200ms ease;
}

.a1track-btn:hover {
  filter: saturate(1.1);
  box-shadow: 0 0 28px var(--a1-rose-glow-strong), inset 0 1px rgba(255, 255, 255, 0.2);
}

.a1track-btn:focus-visible,
.a1track-material a:focus-visible {
  outline: 2px solid var(--a1-rose);
  outline-offset: 4px;
}

.a1track-btn__icon {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.a1track-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: inherit;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.a1track-kicker::before {
  width: 26px;
  height: 3px;
  flex: 0 0 auto;
  background: var(--a1-rose);
  content: "";
}

.a1track-title {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.a1track-section-title {
  margin-bottom: 18px;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.a1track-lead {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--a1-muted-dark);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}

.a1track-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Compact block */

.a1track-home-banner {
  --a1-route-edge-inset: 32px;
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  border-radius: var(--a1-radius);
  background: var(--a1-ink);
}

.a1track-page-hero::before,
.a1track-cta::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url("assets/bg-route-field.svg") center / cover no-repeat;
  content: "";
  pointer-events: none;
}

.a1track-home-banner__content {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 40px 52px 40px 48px;
}

.a1track-home-banner__logo {
  width: 128px;
  margin-bottom: 26px;
}

.a1track-home-banner__title {
  max-width: 480px;
  margin-bottom: 14px;
  font-size: clamp(34px, 3.5vw, 46px);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1.01;
}

.a1track-home-banner__copy {
  max-width: 480px;
  margin-bottom: 0;
  color: var(--a1-muted-dark);
  font-size: 16px;
  line-height: 1.5;
}

/* На desktop снимок центрирован по вертикали, а его правый край совпадает
   с вертикалью маршрутной линии. */

.a1track-home-banner__visual {
  position: relative;
  z-index: 2;
  align-self: center;
  min-width: 0;
  overflow: hidden;
  margin: 0 var(--a1-route-edge-inset) 0 12px;
  border: 1px solid var(--a1-line-dark);
  border-radius: 14px;
  background: #0f0f0f;
  box-shadow: -18px 24px 56px rgba(0, 0, 0, 0.4);
}

/* Маршрутный мотив: одна сквозная линия. Входит через левый край,
   поворачивает на 90° радиусом 6X и уходит через нижний край в поле отступа. */

.a1track-home-banner__footer {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  padding: 28px 48px 30px;
}

.a1track-home-banner__footer::before {
  position: absolute;
  inset: 0 var(--a1-route-edge-inset) 0 0;
  border-top: 4px solid var(--a1-rose);
  border-right: 4px solid var(--a1-rose);
  border-top-right-radius: 24px;
  content: "";
  pointer-events: none;
}

.a1track-home-banner__footer::after {
  position: absolute;
  top: 2px;
  left: 64px;
  width: 16px;
  height: 16px;
  border: 4px solid var(--a1-rose);
  border-radius: 50%;
  background: var(--a1-ink);
  content: "";
  transform: translateY(-50%);
}

.a1track-home-banner__strengths {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
}

.a1track-home-banner__strengths li {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  padding-right: 22px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.35;
}

.a1track-home-banner__strengths li + li {
  border-left: 1px solid var(--a1-line-dark);
  padding-left: 22px;
}

.a1track-home-banner__strengths strong {
  color: var(--a1-white);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.a1track-home-banner__note {
  margin: 22px 0 0;
  border-top: 1px solid var(--a1-line-dark);
  padding-top: 13px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  line-height: 1.45;
}

.a1track-home-banner__visual img {
  width: 100%;
  height: auto;
}

.a1track-home-banner__visual figcaption {
  position: absolute;
  right: 12px;
  bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(28, 28, 28, 0.84);
  padding: 5px 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.a1track-home-banner .a1track-actions {
  align-items: center;
  gap: 20px;
  margin-top: 22px;
}

.a1track-home-banner__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--a1-rose);
  font-size: 14px;
  font-weight: 600;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.a1track-home-banner__link:hover {
  color: var(--a1-rose-light);
  text-shadow: 0 0 16px var(--a1-rose-glow-strong);
}

.a1track-home-banner__link span {
  transition: transform 160ms ease;
}

.a1track-home-banner__link:hover span {
  transform: translateX(2px);
}

/* Full page */

.a1track-page {
  min-width: 320px;
  margin: 0;
  background: var(--a1-ink);
}

.a1track-page-hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border-bottom: 1px solid var(--a1-line-dark);
}

.a1track-page-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.a1track-page-hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(28, 28, 28, 0.97) 0%, rgba(28, 28, 28, 0.82) 47%, rgba(28, 28, 28, 0.18) 80%), linear-gradient(0deg, var(--a1-ink) 0%, transparent 42%);
  content: "";
}

.a1track-page-hero::before {
  z-index: 2;
}

.a1track-page-hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 760px;
  flex-direction: column;
  padding-block: 52px 76px;
}

.a1track-page-hero__logo {
  width: 184px;
}

.a1track-page-hero__copy {
  margin-top: auto;
}

.a1track-page-hero__copy .a1track-lead {
  max-width: 780px;
}

.a1track-page-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.a1track-page-hero__facts span {
  border: 1px solid var(--a1-line-dark);
  border-radius: 999px;
  padding: 8px 13px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 550;
}

.a1track-page-section {
  position: relative;
  overflow: hidden;
  padding-block: 96px;
  border-bottom: 1px solid var(--a1-line-dark);
}

.a1track-page-section--dark {
  background: var(--a1-ink);
}

.a1track-page-section--light {
  border-bottom-color: var(--a1-line);
  background: var(--a1-paper);
  color: var(--a1-ink);
}

.a1track-page-section--light .a1track-kicker {
  color: var(--a1-ink);
}

.a1track-page-section--light .a1track-lead {
  color: var(--a1-muted);
}

.a1track-page-header {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 72px;
  align-items: end;
  margin-bottom: 48px;
}

.a1track-page-header .a1track-lead {
  justify-self: end;
}

.a1track-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--a1-line);
  border-radius: var(--a1-radius);
  background: var(--a1-line);
  gap: 1px;
  overflow: hidden;
}

.a1track-role-card {
  min-height: 260px;
  background: var(--a1-white);
  padding: 32px;
}

.a1track-card__number {
  display: block;
  margin-bottom: 44px;
  color: var(--a1-muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.a1track-role-card h3,
.a1track-feature-card h3,
.a1track-process h3 {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.a1track-role-card p,
.a1track-feature-card p,
.a1track-process p {
  margin-bottom: 0;
  color: var(--a1-muted);
  font-size: 15px;
}

.a1track-product {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 64px;
  align-items: center;
}

.a1track-product__copy {
  min-width: 0;
}

.a1track-product__shot {
  min-width: 0;
  overflow: hidden;
  margin-bottom: 0;
  border: 1px solid var(--a1-line-dark);
  border-radius: var(--a1-radius);
  background: #0f0f0f;
}

.a1track-product__shot img {
  width: 100%;
}

.a1track-product__shot figcaption {
  border-top: 1px solid var(--a1-line-dark);
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.a1track-list {
  display: grid;
  gap: 15px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.a1track-list li {
  position: relative;
  padding-left: 28px;
  color: var(--a1-muted-dark);
}

.a1track-list li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 9px;
  height: 9px;
  border: 2px solid var(--a1-rose);
  border-radius: 50%;
  content: "";
}

.a1track-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.a1track-feature-card {
  overflow: hidden;
  border: 1px solid var(--a1-line);
  border-radius: var(--a1-radius);
  background: var(--a1-white);
}

.a1track-feature-card > img {
  width: 100%;
  height: 205px;
  border-bottom: 1px solid var(--a1-line);
  object-fit: cover;
  object-position: left top;
}

.a1track-feature-card > div {
  padding: 26px;
}

.a1track-feature-card .a1track-card__number {
  margin-bottom: 30px;
}

.a1track-scope-note {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 30px;
  border-top: 1px solid var(--a1-line);
  padding-top: 22px;
  color: var(--a1-muted);
  font-size: 14px;
}

.a1track-scope-note img {
  width: 32px;
  height: 32px;
}

.a1track-scope-note p {
  margin-bottom: 0;
}

.a1track-scope-note strong {
  color: var(--a1-ink);
}

.a1track-process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px;
  margin-top: 58px;
}

.a1track-process::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--a1-rose);
  content: "";
}

.a1track-process article {
  position: relative;
  padding-top: 34px;
}

.a1track-process article::before {
  position: absolute;
  top: 2px;
  left: 0;
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 4px solid var(--a1-rose);
  border-radius: 50%;
  background: var(--a1-ink);
  content: "";
  transform: translateY(-50%);
}

.a1track-process article > span {
  display: block;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.a1track-process p {
  color: var(--a1-muted-dark);
}

.a1track-terms-note {
  margin: 48px 0 0;
  border-top: 1px solid var(--a1-line-dark);
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.a1track-cta {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--a1-line-dark);
  background: var(--a1-panel);
}

.a1track-cta::before {
  background-position: 65% center;
}

.a1track-cta__content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding-block: 100px;
}

.a1track-cta .a1track-lead {
  max-width: 760px;
}

.a1track-contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: 32px;
  border-top: 1px solid var(--a1-line-dark);
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 1120px) {
  .a1track-home-banner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .a1track-home-banner__content {
    padding-right: 40px;
  }
}

@media (max-width: 980px) {
  .a1track-home-banner {
    grid-template-columns: 1fr;
  }

  .a1track-home-banner__content {
    max-width: 760px;
    padding-right: 48px;
    padding-bottom: 32px;
  }

  .a1track-home-banner__visual {
    margin: 0 48px 40px;
  }

  .a1track-home-banner__strengths {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 22px 32px;
  }

  .a1track-home-banner__strengths li,
  .a1track-home-banner__strengths li + li {
    border-left: 0;
    padding: 0;
  }

  .a1track-page-header,
  .a1track-product {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .a1track-page-header .a1track-lead {
    justify-self: start;
  }

  .a1track-role-grid {
    grid-template-columns: 1fr;
  }

  .a1track-role-card {
    min-height: 0;
  }

  .a1track-feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .a1track-feature-card:last-child {
    grid-column: 1 / -1;
  }

  .a1track-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 56px;
  }

  .a1track-process::before {
    display: none;
  }

  .a1track-process article {
    border-top: 4px solid var(--a1-rose);
  }
}

@media (max-width: 640px) {
  .a1track-container {
    width: min(100% - 28px, 1180px);
  }

  .a1track-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .a1track-home-banner__content {
    padding: 32px 24px 28px;
  }

  .a1track-home-banner__logo {
    width: 122px;
    margin-bottom: 26px;
  }

  .a1track-home-banner__title {
    font-size: 36px;
  }

  .a1track-home-banner .a1track-actions {
    align-items: stretch;
    gap: 18px;
  }

  .a1track-home-banner__link {
    align-self: flex-start;
  }

  .a1track-home-banner__visual {
    margin: 0 24px 32px;
    border-radius: 10px;
  }

  /* На узком экране линия остаётся прямой: поворот не уместился бы в отступ. */

  .a1track-home-banner__footer {
    padding: 26px 24px 28px;
  }

  .a1track-home-banner__footer::before {
    inset: 0 0 auto 0;
    border-right: 0;
    border-top-right-radius: 0;
  }

  .a1track-home-banner__footer::after {
    left: 32px;
  }

  .a1track-home-banner__strengths {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .a1track-home-banner__strengths li {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: baseline;
    gap: 0 10px;
    font-size: 12px;
  }

  .a1track-home-banner__strengths li + li {
    border-top: 1px solid var(--a1-line-dark);
    padding-top: 12px;
  }

  .a1track-page-hero,
  .a1track-page-hero__content {
    min-height: 720px;
  }

  .a1track-page-hero::after {
    background: linear-gradient(0deg, rgba(28, 28, 28, 0.99) 0%, rgba(28, 28, 28, 0.84) 65%, rgba(28, 28, 28, 0.42) 100%);
  }

  .a1track-page-hero__content {
    padding-block: 32px 46px;
  }

  .a1track-page-hero__logo {
    width: 150px;
  }

  .a1track-title {
    font-size: 46px;
  }

  .a1track-page-hero__facts {
    gap: 8px;
  }

  .a1track-page-section {
    padding-block: 68px;
  }

  .a1track-page-header {
    margin-bottom: 34px;
  }

  .a1track-role-card {
    padding: 26px;
  }

  .a1track-card__number {
    margin-bottom: 28px;
  }

  .a1track-feature-grid {
    grid-template-columns: 1fr;
  }

  .a1track-feature-card:last-child {
    grid-column: auto;
  }

  .a1track-feature-card > img {
    height: 180px;
  }

  .a1track-process {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .a1track-process article > span {
    margin-bottom: 22px;
  }

  .a1track-cta__content {
    padding-block: 72px;
  }

  .a1track-contact-line {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a1track-btn,
  .a1track-home-banner__link,
  .a1track-home-banner__link span {
    transition: none;
  }
}
