/*
 | The Bitrix marketing site.
 |
 | Apple's design language, with this product's own violet in place of Apple
 | blue: one very large centred statement per section, full bleed bands that
 | alternate white, light grey and black, rounded tiles on the grey, 17px body
 | text, pill buttons, and a translucent 48px navigation bar.
 |
 | Type scale, colours and radii are all tokens below. Nothing outside this
 | file sets a colour.
 */

:root {
  /* Surfaces */
  --white: #ffffff;
  --grey: #f5f5f7;
  --black: #000000;

  /* Text on light */
  --ink: #1d1d1f;
  /* Apple's #86868b reads well but is 3.3:1 on white, so the secondary grey
     below is used for fine print too rather than a third, lighter step. */
  --ink-soft: #6e6e73;

  /* Text on dark */
  --ink-on-dark: #f5f5f7;
  --ink-on-dark-soft: #a1a1a6;

  /* The product's accent, and the lift it needs on black */
  --accent: #4f2fe8;
  --accent-hover: #4224d1;
  --accent-dark: #9b85ff;
  --accent-wash: #f0edfe;

  --hairline: rgba(0, 0, 0, 0.1);
  --hairline-dark: rgba(255, 255, 255, 0.14);

  --r-tile: 20px;
  --r-large: 28px;
  --r-pill: 980px;
  --r-control: 12px;

  --nav-h: 48px;
  --container: 1020px;
  --container-wide: 1220px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  color: inherit;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
}

h1 { font-size: clamp(40px, 6.2vw, 80px); letter-spacing: -0.022em; }
h2 { font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -0.019em; }
h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.14286; letter-spacing: -0.011em; }
h4 { font-size: 19px; line-height: 1.21; letter-spacing: -0.012em; }

p { margin: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--white);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  z-index: 40;
}
.skip:focus { left: 16px; }

/* ------------------------------------------------------------- bands */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}
.wrap--wide { max-width: var(--container-wide); }

.sec { padding: clamp(64px, 8vw, 110px) 0; }
.sec--tight { padding: clamp(44px, 5vw, 70px) 0; }
.sec--grey { background: var(--grey); }
.sec--dark { background: var(--black); color: var(--ink-on-dark); }
.sec--dark h1, .sec--dark h2, .sec--dark h3, .sec--dark h4 { color: var(--ink-on-dark); }
.sec--dark a { color: var(--accent-dark); }
.sec--dark .sub { color: var(--ink-on-dark-soft); }

.center { text-align: center; }

.sub {
  font-size: clamp(19px, 2vw, 21px);
  line-height: 1.38;
  letter-spacing: 0.011em;
  color: var(--ink-soft);
  margin-top: 18px;
}
.center .sub { margin-left: auto; margin-right: auto; max-width: 34em; }

.fine {
  font-size: 12px;
  line-height: 1.33;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}
.sec--dark .fine { color: var(--ink-on-dark-soft); }

.eyebrow {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--accent);
  margin-bottom: 8px;
}
.sec--dark .eyebrow { color: var(--accent-dark); }

/* ------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.nav[data-stuck="true"] { border-bottom-color: var(--hairline); }

.nav__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 22px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; opacity: 0.75; }
.brand svg { display: block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  font-size: 12px;
  line-height: 1;
}
.nav__links a { color: var(--ink); opacity: 0.88; white-space: nowrap; }
.nav__links a:hover { opacity: 1; text-decoration: none; }
.nav__links a[aria-current="page"] { opacity: 1; font-weight: 500; }
.nav__links .btn { font-size: 12px; height: 28px; padding: 0 14px; }

/*
 | The call to action is a button first and a navigation link second.
 | `.nav__links a` above is one class and one element, so it outranks
 | `.btn--primary` on its own and was painting the label near black on violet.
 | Restated here, at a specificity that wins, for both themes of the bar.
 */
.nav__links a.btn--primary { color: #fff; opacity: 1; }
.nav__links a.btn--primary:hover { background: var(--accent-hover); color: #fff; }

.nav__toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 6px 2px;
  font: inherit;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav__toggle { display: inline-block; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--hairline);
    padding: 6px 22px 22px;
    font-size: 17px;
  }
  .nav__links[data-open="true"] { display: flex; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
  .nav__links .btn { margin-top: 18px; height: 40px; font-size: 15px; border-bottom: 0; }
}

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }

.btn--secondary { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn--secondary:hover { background: var(--accent); color: #fff; }

.sec--dark .btn--primary { background: var(--accent-dark); color: #10091f; }
.sec--dark .btn--primary:hover { background: #b6a6ff; color: #10091f; }
.sec--dark .btn--secondary { border-color: var(--accent-dark); color: var(--accent-dark); }
.sec--dark .btn--secondary:hover { background: var(--accent-dark); color: #10091f; }

.actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
}
.center .actions { justify-content: center; }

.link {
  font-size: 17px;
  color: var(--accent);
  white-space: nowrap;
}
.link::after { content: "\00a0\203A"; }
.link:hover { text-decoration: underline; }
.sec--dark .link { color: var(--accent-dark); }

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: 26px;
}
.center .links-row { justify-content: center; }

/* ------------------------------------------------------------- hero */

.hero { padding: clamp(46px, 6vw, 76px) 0 clamp(40px, 5vw, 64px); }
.hero h1 { max-width: 15em; margin: 0 auto; }
.hero .sub { max-width: 30em; }

.hero-figure {
  margin: clamp(36px, 5vw, 56px) auto 0;
  max-width: 940px;
}

/* ------------------------------------------------------------- tiles */

.tiles {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile--full { grid-column: 1 / -1; }

.tile {
  background: var(--white);
  border-radius: var(--r-large);
  padding: clamp(28px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
}
.tile h3 { margin-bottom: 12px; }
.tile p { color: var(--ink-soft); font-size: 17px; }
.tile .link { margin-top: auto; padding-top: 22px; align-self: flex-start; }

.sec--dark .tile { background: #1d1d1f; }
.sec--dark .tile p { color: var(--ink-on-dark-soft); }
.tile--accent { background: var(--accent-wash); }
/* The lavender wash lifts the background, so its body text darkens to keep AA. */
.tile--accent p { color: #52525a; }
.tile--ink { background: var(--black); color: var(--ink-on-dark); }
.tile--ink h3 { color: var(--ink-on-dark); }
.tile--ink p { color: var(--ink-on-dark-soft); }

@media (max-width: 860px) {
  .tiles, .tiles--3 { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-top: clamp(30px, 4vw, 46px);
  text-align: center;
}
.stats b {
  display: block;
  font-size: clamp(38px, 4.6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.019em;
  line-height: 1.05;
}
.stats span { font-size: 15px; color: var(--ink-soft); display: block; margin-top: 8px; }
.sec--dark .stats span { color: var(--ink-on-dark-soft); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; } }

/* ------------------------------------------------------------- lists */

.feature-list { margin: 0; padding: 0; list-style: none; }
.feature-list li {
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 8px 40px;
  align-items: start;
}
.feature-list li:last-child { border-bottom: 1px solid var(--hairline); }
.feature-list h4 { letter-spacing: -0.012em; }
.feature-list p { color: var(--ink-soft); }
.sec--dark .feature-list li { border-color: var(--hairline-dark); }
.sec--dark .feature-list p { color: var(--ink-on-dark-soft); }
@media (max-width: 760px) { .feature-list li { grid-template-columns: 1fr; gap: 6px; } }

.ticks { margin: 24px 0 0; padding: 0; list-style: none; }
.ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  color: var(--ink-soft);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.ticks strong { color: var(--ink); font-weight: 600; }
.sec--dark .ticks li { color: var(--ink-on-dark-soft); }
.sec--dark .ticks li::before { background: var(--accent-dark); }
.sec--dark .ticks strong { color: var(--ink-on-dark); }

/* --------------------------------------------------- applies-to badges */

.applies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.applies a, .applies span {
  font-size: 13px;
  letter-spacing: -0.008em;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.05);
  /* The chip tint sits on top of the card, so the label needs to be a step
     darker than ordinary secondary text to clear 4.5:1 at 13px. */
  color: #52525a;
}
.applies a:hover { background: rgba(0, 0, 0, 0.09); color: var(--ink); text-decoration: none; }
.applies .on { background: var(--accent-wash); color: #3a22ad; }
.sec--dark .applies a, .sec--dark .applies span {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink-on-dark-soft);
}

/* ------------------------------------------------------------- figure */

.figure {
  /* Grey panel on a white band, white panel on a grey one, so the drawing
     always sits on a surface rather than floating on the page. */
  background: var(--grey);
  border-radius: var(--r-large);
  padding: clamp(24px, 3vw, 40px);
}
.sec--grey .figure { background: var(--white); }
.sec--dark .figure { background: #1d1d1f; }
.figure figcaption {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.sec--dark .figure figcaption { color: var(--ink-on-dark-soft); }

/* ------------------------------------------------------ screenshots */

/*
 | A real screenshot of the application. Framed, never floated: the picture
 | carries the app's own dark chrome, so it sits in a rounded well with the
 | caption outside it, the way a product shot does.
 */
.shot {
  margin: clamp(30px, 4vw, 46px) auto 0;
  max-width: 940px;
  border-radius: var(--r-large);
  overflow: hidden;
  background: var(--black);
  box-shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.5);
  line-height: 0;
}
.shot img { display: block; width: 100%; height: auto; }

.shot-caption {
  max-width: 940px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.sec--dark .shot-caption { color: var(--ink-on-dark-soft); }
.sec--dark .shot { box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9); }

/* The hero film. Same well as a screenshot, plus the control it needs. */
.shot--video { position: relative; aspect-ratio: 16 / 9; }
.shot--video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*
 | Anything that plays on its own for more than five seconds needs a way to
 | stop it, so the film carries a button. It sits over the picture, dark on
 | translucent white, and is reachable by keyboard like any other control.
 */
.shot__toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.shot__toggle:hover { background: #fff; }
.shot__toggle svg { display: block; }

/* ------------------------------------------------------------- split */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: clamp(30px, 4vw, 48px);
}
.split--reverse .split__media { order: -1; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* ------------------------------------------------------------- table */

.table-card {
  margin-top: clamp(28px, 4vw, 44px);
  background: var(--white);
  border-radius: var(--r-large);
  overflow: hidden;
}
.table-scroll { overflow-x: auto; }

table.t {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  letter-spacing: -0.012em;
  min-width: 620px;
}
table.t caption {
  text-align: left;
  color: var(--ink-soft);
  font-size: 13px;
  padding: 22px 26px 0;
}
table.t th, table.t td {
  text-align: left;
  vertical-align: top;
  padding: 16px 26px;
  border-bottom: 1px solid var(--hairline);
}
table.t thead th {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: -0.006em;
}
table.t tbody th { font-weight: 600; color: var(--ink); }
table.t td { color: var(--ink-soft); }
table.t tbody tr:last-child th, table.t tbody tr:last-child td { border-bottom: 0; }
table.t td.yes { color: var(--ink); }
table.t td.no { color: var(--ink-soft); }
table.t .num { font-variant-numeric: tabular-nums; }
table.t .price { font-size: 28px; font-weight: 600; letter-spacing: -0.019em; color: var(--ink); display: block; }
table.t .muted { display: block; font-weight: 400; color: var(--ink-soft); font-size: 14px; margin-top: 4px; }

/* ------------------------------------------------------------- index */

.index-split {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
.toc { position: sticky; top: calc(var(--nav-h) + 26px); font-size: 15px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { padding: 7px 0; }
.toc a { color: var(--ink-soft); }
.toc a:hover, .toc a[aria-current="true"] { color: var(--ink); text-decoration: none; }
@media (max-width: 900px) {
  .index-split { grid-template-columns: 1fr; }
  .toc { display: none; }
}

.module { scroll-margin-top: calc(var(--nav-h) + 20px); }
.module + .module { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--hairline); }
.module h2 { font-size: clamp(28px, 3.4vw, 40px); }
.module .sub { font-size: 19px; max-width: 46em; }

/* ------------------------------------------------------------- search */

.search-wrap { max-width: 460px; margin: 30px auto 0; }
.search-wrap label {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.search-wrap input {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: 12px 20px;
}
.search-wrap input::placeholder { color: var(--ink-soft); }
.search-wrap input:focus { background: var(--white); border-color: var(--accent); }
.search-count { font-size: 13px; color: var(--ink-soft); margin-top: 10px; text-align: center; }

.trades {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.trade {
  /* Grey on a white band, white on a grey one. */
  background: var(--grey);
  border-radius: var(--r-tile);
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
}
.sec--grey .trade { background: var(--white); }
.trade h3 { font-size: 21px; line-height: 1.19; }
.trade p { color: var(--ink-soft); font-size: 15px; margin-top: 8px; }
.trade .applies { margin-top: 14px; }
.trade .link { margin-top: auto; padding-top: 18px; font-size: 15px; align-self: flex-start; }

.empty {
  margin: 26px auto 0;
  max-width: 560px;
  text-align: center;
  color: var(--ink-soft);
  background: var(--white);
  border-radius: var(--r-large);
  padding: 40px 32px;
}
.empty strong { display: block; color: var(--ink); font-size: 21px; margin-bottom: 10px; letter-spacing: -0.012em; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.pills a {
  font-size: 15px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--r-pill);
  padding: 9px 18px;
}
.pills a:hover { background: rgba(0, 0, 0, 0.09); text-decoration: none; }
.sec--dark .pills a { background: rgba(255, 255, 255, 0.12); color: var(--ink-on-dark); }

/* ------------------------------------------------------------- form */

.form-card {
  background: var(--white);
  border-radius: var(--r-large);
  padding: clamp(28px, 3.4vw, 40px);
}
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: var(--r-control);
  padding: 12px 15px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field .help { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 7px; }
.field .err { display: block; font-size: 13px; color: #b3261e; margin-top: 7px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b3261e; }

.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
@media (max-width: 860px) { .contact-split { grid-template-columns: 1fr; } }

.detail-list { margin: 0; padding: 0; list-style: none; font-size: 17px; }
.detail-list li { padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.detail-list li:first-child { border-top: 1px solid var(--hairline); }
.detail-list b { display: block; font-weight: 600; margin-bottom: 4px; }
.detail-list span { color: var(--ink-soft); }

/* ------------------------------------------------------------- footer */

.foot {
  background: var(--grey);
  padding: 44px 0 40px;
  font-size: 12px;
  line-height: 1.33;
  color: var(--ink-soft);
}
.foot__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
.foot h4 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: 4px 0; }
.foot a { color: var(--ink-soft); }
.foot a:hover { color: var(--ink); }
.foot__bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
}
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------- reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.28, 0.11, 0.32, 1),
    transform 0.6s cubic-bezier(0.28, 0.11, 0.32, 1);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .applies a, .pills a { transition: none; }
}
