:root {
  --paper: #ecede7;
  --ink: #161718;
  --inverse-paper: #161718;
  --inverse-ink: #ecede7;
  --login-paper: #d1e5e6;
  --header-ink: var(--ink);
  --menu-hover-bg: var(--ink);
  --menu-hover-fg: var(--paper);
  --page-pad: clamp(1.25rem, 4vw, 4rem);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161718;
    --ink: #ecede7;
    --inverse-paper: #ecede7;
    --inverse-ink: #161718;
    --login-paper: #213638;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  --header-ink: var(--ink);
  --menu-hover-bg: var(--ink);
  --menu-hover-fg: var(--paper);
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(1.4rem, 3.2vw, 3.8rem) var(--page-pad);
  color: var(--header-ink);
  pointer-events: none;
  transition: color 240ms ease;
}

.site-header.is-inverse {
  --header-ink: var(--inverse-ink);
  --menu-hover-bg: var(--inverse-ink);
  --menu-hover-fg: var(--inverse-paper);
}

.site-header.is-fixed-dark {
  --header-ink: #ecede7;
  --menu-hover-bg: #ecede7;
  --menu-hover-fg: #161718;
}

.menu-toggle {
  --menu-bar-offset: 0.68rem;
  position: relative;
  z-index: 2;
  display: block;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.menu-toggle span {
  display: block;
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 0.22rem;
  margin-top: -0.11rem;
  background: currentColor;
  transform-origin: center;
  transition: transform 280ms ease;
}

.menu-toggle span:first-child {
  transform: translateY(calc(-1 * var(--menu-bar-offset)));
}

.menu-toggle span:nth-child(2) {
  transform: translateY(0);
}

.menu-toggle span:last-child {
  transform: translateY(var(--menu-bar-offset));
}

.menu-toggle:hover:not(.is-resetting) span:first-child,
.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateX(calc(-1 * var(--menu-bar-offset))) rotate(90deg);
}

.menu-toggle:hover:not(.is-resetting) span:nth-child(2),
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: rotate(90deg);
}

.menu-toggle:hover:not(.is-resetting) span:last-child,
.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateX(var(--menu-bar-offset)) rotate(90deg);
}

.site-menu {
  position: absolute;
  top: clamp(5.6rem, 9vw, 8.4rem);
  right: var(--page-pad);
  display: grid;
  justify-items: end;
  width: min(17rem, calc(100vw - 2 * var(--page-pad)));
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.8rem);
  transition: opacity 180ms ease, transform 220ms ease, visibility 220ms;
  pointer-events: auto;
}

.site-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.site-menu a {
  display: block;
  width: max-content;
  max-width: 100%;
  padding: 0.1rem 0.35rem 0.14rem;
  font-size: clamp(1.1rem, 1.55vw, 1.8rem);
  line-height: 1.15;
  text-align: right;
  text-decoration: none;
  transition: color 130ms ease, background-color 130ms ease;
}

.site-menu a:hover,
.site-menu a:focus-visible {
  color: var(--menu-hover-fg);
  background: var(--menu-hover-bg);
  outline: 0;
}

.site-menu .site-menu__login {
  font-weight: 800;
}

.hero {
  position: relative;
  height: 136svh;
  min-height: 50rem;
  color: var(--ink);
  background: var(--paper);
}

.hero__sticky {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  height: 100svh;
  min-height: 42rem;
  overflow: hidden;
}

.hero__ring {
  grid-area: 1 / 1;
  width: min(67rem, 71vw, 88vh);
  height: auto;
  mix-blend-mode: multiply;
  opacity: 0.91;
  user-select: none;
  pointer-events: none;
  will-change: transform;
}

.hero__brand {
  z-index: 1;
  grid-area: 1 / 1;
  display: grid;
  color: inherit;
  text-decoration: none;
}

.hero__brand::before {
  content: "";
  position: absolute;
  inset: -3.5rem -5rem;
}

.hero__brand strong {
  font-size: clamp(2.1rem, 4vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.hero__brand span {
  margin-top: 0.4rem;
  font-size: clamp(1rem, 1.35vw, 1.6rem);
  letter-spacing: 0.01em;
}

.hero__brand:focus-visible {
  outline: 0.12rem solid currentColor;
  outline-offset: 1rem;
}

.section-inverse {
  color: var(--inverse-ink);
  background: var(--inverse-paper);
}

.stats {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(7rem, 10vw, 11rem) var(--page-pad) clamp(3rem, 6vw, 6rem);
  overflow: hidden;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 8rem);
}

.stat {
  min-width: 0;
}

.stat__number {
  position: relative;
  height: clamp(10rem, 23vw, 23rem);
  overflow: hidden;
  white-space: nowrap;
}

.stat__value {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
}

.stat__number strong {
  font-size: clamp(8rem, 16.4vw, 22rem);
  font-weight: 700;
  line-height: 0.72;
  letter-spacing: -0.085em;
}

.has-stat-reveal .stat__value {
  transform: translate3d(0, var(--stat-value-y, 104%), 0);
  will-change: transform;
}

.has-stat-reveal .stat__number::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: #d1e5e4;
  transform: translate3d(0, var(--stat-cover-y, 0%), 0);
  will-change: transform;
}

.stat__number--ten strong {
  margin-left: -0.02em;
}

.stat__prefix {
  align-self: flex-end;
  margin: 0 0.1em 0.03em 0;
  font-size: clamp(2rem, 4vw, 4rem);
}

.stat__vertical {
  align-self: flex-end;
  margin-bottom: -0.01em;
  font-size: clamp(2.8rem, 6.5vw, 7.5rem);
  font-weight: 300;
  line-height: 0.75;
  letter-spacing: -0.06em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.stat__percent {
  align-self: flex-end;
  margin: 0 0 0.015em 0.02em;
  font-size: clamp(7rem, 13vw, 18rem);
  font-weight: 300;
  line-height: 0.72;
  letter-spacing: -0.06em;
}

.stat__lead {
  margin: clamp(3rem, 5vw, 5.5rem) 0 0.4rem;
  font-size: clamp(1.55rem, 2.6vw, 3.2rem);
  font-weight: 300;
  line-height: 1.08;
}

.stat p:not(.stat__lead),
.stat small {
  font-size: clamp(1rem, 1.35vw, 1.5rem);
  line-height: 1.3;
}

.stat p:not(.stat__lead) {
  margin: 0;
}

.stat small {
  display: block;
  margin-top: 0.55rem;
}

.platforms {
  margin-top: clamp(5rem, 9vw, 10rem);
}

.platforms > p {
  margin: 0 0 clamp(2rem, 3vw, 3.5rem);
  font-size: clamp(1.6rem, 2.5vw, 3rem);
  font-weight: 300;
}

.platforms__window {
  width: calc(100% + 2 * var(--page-pad));
  margin-left: calc(-1 * var(--page-pad));
  overflow: hidden;
}

.platforms__track {
  --platform-gap: clamp(5rem, 10vw, 12rem);
  display: flex;
  width: max-content;
  align-items: center;
  color: var(--inverse-ink);
  animation: platform-marquee 34s linear infinite;
  will-change: transform;
}

.platforms__set {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--platform-gap);
  padding-right: var(--platform-gap);
}

.platform-logo {
  display: block;
  flex: none;
  width: var(--logo-width);
  height: clamp(2rem, 3.3vw, 3.4rem);
  background: currentColor;
  -webkit-mask-image: var(--logo-image);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-image: var(--logo-image);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.platform-logo--ozon {
  --logo-image: url("/assets/images/ozon.svg?v=20260929-r3");
  --logo-width: clamp(9rem, 16vw, 16rem);
}

.platform-logo--wildberries {
  --logo-image: url("/assets/images/wildberries.png");
  --logo-width: clamp(12rem, 22vw, 21rem);
}

.platform-logo--yandex {
  --logo-image: url("/assets/images/yandex-market.png");
  --logo-width: clamp(13rem, 23vw, 22rem);
}

.project {
  min-height: 100svh;
  padding: clamp(7rem, 10vw, 10rem) var(--page-pad) clamp(4rem, 8vw, 8rem);
  color: #ecede7;
  background: #161718;
}

.project__figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.3rem, 2vw, 3rem);
}

.project__figure {
  position: relative;
  aspect-ratio: 1200 / 905;
  margin: 0;
  overflow: hidden;
  color: #161718;
  background: #d1e5e4;
  cursor: default;
}

.project__figure:nth-child(2) {
  background: #ecede7;
}

.project__figure img {
  position: absolute;
  z-index: 1;
  top: clamp(1rem, 1.8vw, 2rem);
  right: clamp(1rem, 1.6vw, 1.8rem);
  display: block;
  width: 60%;
  height: 52%;
  object-fit: contain;
  object-position: right top;
  opacity: 1;
}

.project__figure figcaption {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 2vw, 2.4rem);
  opacity: 1;
  background: transparent;
  transform: translate3d(0, 0, 0);
  transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}

.project__figure figcaption strong {
  font-size: clamp(1.7rem, 2.7vw, 3.3rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.project__figure figcaption p {
  margin: clamp(1.2rem, 1.8vw, 2rem) 0 0;
  font-size: clamp(1rem, 1.35vw, 1.6rem);
  font-weight: 300;
  line-height: 1.2;
}

.project__figure:hover figcaption,
.project__figure:focus figcaption,
.project__figure:focus-visible figcaption {
  transform: translate3d(0, -20%, 0);
}

.project__figure:focus {
  outline: 0;
}

.project__figure:focus-visible {
  outline: 0.15rem solid currentColor;
  outline-offset: 0.25rem;
}

.project__copy {
  max-width: 92rem;
  margin-top: clamp(3rem, 5vw, 6rem);
}

.project__copy h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(2rem, 3vw, 3.8rem);
  font-weight: 300;
  letter-spacing: -0.025em;
}

.project__copy p {
  margin: 0.25rem 0;
  font-size: clamp(1rem, 1.5vw, 1.7rem);
  line-height: 1.35;
}

.closing {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(8rem, 12vw, 13rem) var(--page-pad) clamp(3rem, 5vw, 5rem);
}

.closing__tariff {
  display: grid;
  grid-template-columns: minmax(9rem, 0.35fr) minmax(16rem, 1fr) auto;
  align-items: end;
  gap: clamp(2rem, 5vw, 8rem);
  padding-top: clamp(2rem, 4vw, 4rem);
  border-top: 0.13rem solid currentColor;
}

.closing__tariff > span {
  font-size: clamp(2rem, 3.6vw, 4.5rem);
}

.closing__tariff p {
  max-width: 46rem;
  margin: 0;
  font-size: clamp(1.35rem, 2.15vw, 2.7rem);
  font-weight: 300;
  line-height: 1.12;
}

.closing__tariff a {
  padding: 0.45rem 0.7rem 0.55rem;
  border: 0.1rem solid currentColor;
  font-size: clamp(1rem, 1.25vw, 1.35rem);
  text-decoration: none;
  transition: color 140ms ease, background-color 140ms ease;
}

.closing__tariff a:hover,
.closing__tariff a:focus-visible {
  color: var(--inverse-paper);
  background: var(--inverse-ink);
  outline: 0;
}

.footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  padding-top: clamp(6rem, 10vw, 12rem);
}

.footer p,
.footer span,
.footer small {
  display: block;
  margin: 0.2rem 0;
  font-size: clamp(0.9rem, 1.2vw, 1.25rem);
  line-height: 1.35;
}

.footer__docs {
  max-width: 33rem;
  text-align: right;
}

.footer__docs small {
  margin-top: 2.5rem;
  font-size: 0.8rem;
}

.cookie-banner {
  position: fixed;
  z-index: 50;
  right: var(--page-pad);
  bottom: clamp(1rem, 2.5vw, 2.5rem);
  left: var(--page-pad);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 3rem;
  align-items: end;
  max-width: 78rem;
  margin-inline: auto;
  padding: clamp(1rem, 2vw, 1.8rem);
  color: #161718;
  background: #ecede7;
  box-shadow: 0 1rem 4rem rgb(22 23 24 / 18%);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1.35;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.cookie-banner button,
.cookie-dialog button {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.cookie-banner__actions button {
  padding: 0.35rem 0.55rem;
}

.cookie-banner__actions button:hover,
.cookie-banner__actions button:focus-visible {
  text-decoration: underline;
  outline: none;
}

.cookie-banner__actions .cookie-banner__accept {
  color: #ecede7;
  background: #161718;
  text-decoration: none;
}

.cookie-dialog {
  width: min(32rem, calc(100vw - 2rem));
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 1rem 5rem rgb(22 23 24 / 24%);
}

.cookie-dialog::backdrop {
  background: rgb(22 23 24 / 42%);
  backdrop-filter: blur(0.2rem);
}

.cookie-dialog form {
  display: grid;
  gap: 1.35rem;
  padding: 1.6rem;
}

.cookie-dialog form > div,
.cookie-dialog label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-dialog h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
}

.cookie-dialog label {
  padding-block: 0.8rem;
  border-top: 0.08rem solid currentColor;
}

.cookie-dialog label span,
.cookie-dialog label small {
  display: block;
}

.cookie-dialog label small {
  margin-top: 0.2rem;
  opacity: 0.72;
}

.cookie-dialog input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: currentColor;
}

.cookie-dialog__close {
  font-size: 2rem;
  line-height: 1;
}

.cookie-dialog .cookie-dialog__save {
  padding: 0.7rem 1rem;
  color: var(--paper);
  background: var(--ink);
}

.auth-page {
  min-height: 100svh;
  color: var(--ink);
  background: var(--paper);
}

.auth-logo {
  position: fixed;
  z-index: 10;
  top: clamp(1.5rem, 4vw, 4rem);
  left: var(--page-pad);
  display: grid;
  place-items: center;
  width: clamp(9rem, 16vw, 17rem);
  aspect-ratio: 1;
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
  transform: translateX(-4rem) scale(0.88);
  animation: auth-logo-arrive 900ms 680ms cubic-bezier(0.16, 0.75, 0.2, 1) forwards;
}

.auth-logo img {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  opacity: 0.91;
}

.auth-logo strong {
  z-index: 1;
  grid-area: 1 / 1;
  font-size: clamp(1.05rem, 1.7vw, 1.8rem);
  opacity: 0;
  animation: auth-logo-copy 500ms 1.52s ease forwards;
}

.auth-shell {
  display: grid;
  min-height: 100svh;
  grid-template-columns: 28% 72%;
}

.auth-panel {
  display: grid;
  grid-column: 2;
  place-items: center;
  min-height: 100svh;
  padding: clamp(4rem, 8vw, 8rem) var(--page-pad) clamp(9rem, 15vw, 12rem);
  background: var(--login-paper);
}

.auth-panel__inner {
  width: min(58rem, 84%);
  opacity: 0;
  transform: translateY(1.5rem);
  animation: auth-content-arrive 680ms 80ms ease forwards;
}

.auth-heading {
  display: grid;
  justify-items: start;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
}

.auth-heading h1 {
  margin: 0;
  font-size: clamp(7.5rem, 17vw, 19rem);
  font-weight: 300;
  line-height: 0.72;
  letter-spacing: -0.07em;
}

.auth-panel__inner--registration .auth-heading h1 {
  font-size: clamp(4.6rem, 10vw, 11rem);
}

.auth-switch {
  margin-top: clamp(1.2rem, 2.2vw, 2.1rem);
  margin-left: clamp(0.65rem, 0.65vw, 0.85rem);
  padding: 0.15rem 0.35rem 0.25rem;
  font-size: clamp(1.2rem, 2vw, 2rem);
  text-decoration: none;
  transition: color 140ms ease, background-color 140ms ease;
}

.auth-panel__inner--registration .auth-switch {
  margin-left: 0.4rem;
}

.auth-switch:hover,
.auth-switch:focus-visible {
  color: var(--paper);
  background: var(--ink);
  outline: 0;
}

.auth-form[hidden], .auth-form input[hidden], .auth-form label[hidden] { display: none; }
.auth-form {
  display: grid;
  width: min(30rem, 70%);
  gap: 0.45rem;
  margin-left: clamp(0rem, 5vw, 7rem);
}

.auth-form label {
  margin-top: 0.5rem;
  font-size: clamp(0.95rem, 1.25vw, 1.25rem);
}

.auth-form input {
  width: 100%;
  min-height: 2.4rem;
  padding: 0.35rem 0.55rem;
  border: 0.09rem solid var(--ink);
  border-radius: 0.18rem;
  color: var(--ink);
  background: var(--paper);
  outline: none;
}

.auth-form input:focus {
  box-shadow: 0 0 0 0.16rem var(--login-paper), 0 0 0 0.3rem var(--ink);
}

.auth-form button {
  min-height: 2.5rem;
  margin-top: 1.35rem;
  border: 0;
  color: var(--paper);
  background: var(--ink);
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease, outline 140ms ease;
}

.auth-form button:hover,
.auth-form button:focus-visible {
  color: var(--ink);
  background: var(--paper);
  outline: 0.1rem solid var(--ink);
  outline-offset: -0.1rem;
}

.auth-consent {
  width: min(30rem, 70%);
  margin: clamp(2rem, 4vw, 4rem) 0 0 clamp(0rem, 5vw, 7rem);
  font-size: clamp(0.82rem, 1.1vw, 1rem);
  line-height: 1.45;
  text-align: left;
}

.auth-page .cookie-banner {
  bottom: clamp(1rem, 2vw, 2rem);
}

@keyframes auth-content-arrive {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes auth-logo-arrive {
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes auth-logo-copy {
  to {
    opacity: 1;
  }
}

@keyframes platform-marquee {
  to {
    transform: translate3d(-25%, 0, 0);
  }
}

@media (prefers-color-scheme: dark) {
  .hero__ring,
  .auth-logo img {
    filter: invert(1);
    mix-blend-mode: screen;
    opacity: 0.92;
  }

}

@media (prefers-reduced-motion: reduce) {
  .project__figure figcaption {
    transform: none;
  }
}

@media (max-width: 700px) {
  .hero {
    height: 122svh;
    min-height: 41rem;
  }

  .hero__sticky {
    min-height: 36rem;
  }

  .hero__ring {
    width: min(39rem, 116vw, 78vh);
  }

  .hero__brand strong {
    font-size: clamp(2rem, 12vw, 3.7rem);
  }

  .hero__brand span {
    font-size: clamp(0.95rem, 4.2vw, 1.25rem);
  }

  .stats {
    padding-top: 7.5rem;
  }

  .stats__grid {
    grid-template-columns: 1fr;
    gap: 6rem;
  }

  .stat__number {
    height: 9rem;
  }

  .stat__number strong {
    font-size: clamp(8.4rem, 44vw, 12rem);
  }

  .stat__percent {
    font-size: clamp(5.8rem, 32vw, 9rem);
  }

  .stat__lead {
    margin-top: 2.5rem;
  }

  .platform-logo {
    height: 2.4rem;
  }

  .project__figures {
    grid-template-columns: 1fr;
  }

  .project__figures {
    gap: 1rem;
  }

  .closing__tariff {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .closing__tariff a {
    width: max-content;
  }

  .footer {
    display: grid;
    gap: 4rem;
  }

  .footer__docs {
    text-align: left;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-banner__actions {
    justify-content: space-between;
  }

  .auth-logo {
    position: absolute;
    width: 8rem;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    grid-column: 1;
    min-height: 100svh;
    padding-top: 12rem;
  }

  .auth-panel__inner {
    width: 100%;
  }

  .auth-heading h1 {
    font-size: clamp(5.2rem, 28vw, 8rem);
  }

  .auth-panel__inner--registration .auth-heading h1 {
    font-size: clamp(3.15rem, 16vw, 5rem);
  }

  .auth-form {
    width: 100%;
    margin-left: 0;
  }

  .auth-consent {
    width: 100%;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .platforms__track {
    animation: none;
  }

  .has-stat-reveal .stat__value {
    transform: none;
  }

  .has-stat-reveal .stat__number::after {
    display: none;
  }
}
