/* ==========================================================================
   MOX — corporate landing. Single stylesheet, no external dependencies.
   ========================================================================== */

:root {
  --accent: #ffc800;
  --accent-hi: #ffcf1f;
  --accent-lo: #ebb800;
  --accent-soft: #fff6d6;

  --ink: #13171b;
  --ink-2: #3c4247;
  --ink-3: #5a5e62;
  --muted: #909090;

  --bg: #ffffff;
  --bg-alt: #f6f7f8;
  --bg-dark: #13171b;
  --bg-dark-2: #1b2026;

  --line: #e3e3e3;
  --line-soft: #eef0f1;

  --radius: 14px;
  --radius-sm: 8px;

  --shell: 1240px;
  --gutter: 24px;

  --shadow: 0 2px 4px rgba(19, 23, 27, .04), 0 12px 32px rgba(19, 23, 27, .07);
  --shadow-hi: 0 4px 8px rgba(19, 23, 27, .06), 0 20px 48px rgba(19, 23, 27, .12);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(30px, 4.4vw, 52px); }
h2 { font-size: clamp(25px, 3.1vw, 38px); }
h3 { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.3; }
p  { margin: 0; }

::selection { background: var(--accent); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------- layout -- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(52px, 6vw, 92px) 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-top: 0; }

.section__head { max-width: 780px; margin-bottom: clamp(28px, 3.4vw, 48px); }
.section__head--wide { max-width: none; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 3px;
  margin-right: 10px;
  vertical-align: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.lead {
  margin-top: 16px;
  font-size: clamp(16px, 1.35vw, 18px);
  color: var(--ink-3);
}

.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: clamp(26px, 3vw, 42px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
    border-color .18s var(--ease), transform .18s var(--ease),
    box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(255, 200, 0, .32);
}
.btn--primary:hover { background: var(--accent-hi); box-shadow: 0 10px 26px rgba(255, 200, 0, .42); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: #fff; }

.btn--on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn--on-dark:hover { border-color: #fff; background: rgba(255, 255, 255, .07); }

.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--block { width: 100%; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: gap .18s var(--ease), color .18s var(--ease);
}
.link-more:hover { gap: 13px; color: var(--accent-lo); }
.link-more svg { flex: none; }

/* --------------------------------------------------------------- header -- */

.topbar {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
}
.topbar__in {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  height: 40px;
}
.topbar a { transition: color .16s var(--ease); }
.topbar a:hover { color: #fff; }
.topbar__note { margin-right: auto; color: rgba(255, 255, 255, .45); }
.topbar__phone { color: #fff; font-weight: 600; }

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header.is-stuck { box-shadow: 0 4px 20px rgba(19, 23, 27, .07); }

.header__in {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 74px;
}

.logo { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__text {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.logo__text b { color: var(--accent-lo); }
.logo__sub {
  display: block;
  margin-top: -3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.nav__link:hover { background: var(--bg-alt); }
.nav__link[aria-current="page"] { color: var(--accent-lo); }
.nav__caret { transition: transform .2s var(--ease); }

.nav__item--has-menu { position: relative; }
.nav__item--has-menu:hover > .nav__link .nav__caret,
.nav__item--has-menu:focus-within > .nav__link .nav__caret { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 268px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hi);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav__item--has-menu:hover > .submenu,
.nav__item--has-menu:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--ink-2);
  transition: background-color .14s var(--ease), color .14s var(--ease);
}
.submenu a:hover { background: var(--accent-soft); color: var(--ink); }

.header__cta { flex: none; }
.burger {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------ crumbs --- */

.crumbs {
  padding: 16px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, .28); }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: rgba(255, 255, 255, .82); }

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  color: rgba(255, 255, 255, .74);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(120% 90% at 78% 10%, #000 20%, transparent 72%);
}
.hero::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(255, 200, 0, .17), transparent 62%);
  pointer-events: none;
}

.hero__in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(36px, 4.6vw, 68px) 0 clamp(52px, 6vw, 86px);
}
.hero h1 { color: #fff; }
.hero h1 mark { background: none; color: var(--accent); }
.hero__lead {
  margin-top: 22px;
  max-width: 560px;
  font-size: clamp(16px, 1.4vw, 18.5px);
  color: rgba(255, 255, 255, .68);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 28px;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero__stat b {
  display: block;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
}
.hero__stat span { font-size: 13.5px; color: rgba(255, 255, 255, .5); }

.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; }

/* ------------------------------------------------------------- benefits -- */

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

.card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease),
    transform .2s var(--ease);
}
.card:hover {
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--ink-3); }

.ic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  background: var(--accent-soft);
  border-radius: 12px;
  color: var(--ink);
}
.ic svg { width: 26px; height: 26px; }
.card:hover .ic { background: var(--accent); }

/* ------------------------------------------------------------- features -- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature {
  display: flex;
  gap: 14px;
  padding: 24px 26px;
  background: #fff;
  transition: background-color .18s var(--ease);
}
.feature:hover { background: #fffdf5; }
.feature__no {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-lo);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.feature b { display: block; color: var(--ink); font-size: 15px; }
.feature span { font-size: 14px; color: var(--ink-3); }

/* ------------------------------------------------------------------ ai -- */

/* Тёмная секция-акцент. Введена ради блока AI, чтобы не ломать
   чередование .section / .section--alt: тёмная полоса читается как
   намеренная пауза, а не как две одинаковые секции подряд. */

.section--dark {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  color: rgba(255, 255, 255, .7);
}
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(110% 80% at 18% 0%, #000 20%, transparent 70%);
}
.section--dark::after {
  content: "";
  position: absolute;
  top: -220px;
  right: -160px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(255, 200, 0, .13), transparent 62%);
  pointer-events: none;
}
.section--dark > .shell { position: relative; z-index: 1; }

.section--dark h2,
.section--dark h3        { color: #fff; }
.section--dark .eyebrow  { color: rgba(255, 255, 255, .5); }
.section--dark .lead     { color: rgba(255, 255, 255, .62); }

.section--dark .card {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .1);
}
.section--dark .card:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: none;
}
.section--dark .card p { color: rgba(255, 255, 255, .58); }

.section--dark .ic { background: rgba(255, 200, 0, .16); color: var(--accent); }
.section--dark .card:hover .ic { background: var(--accent); color: var(--ink); }

.section--dark .checks li     { color: rgba(255, 255, 255, .72); }
.section--dark .checks strong { color: #fff; }

/* ------------------------------------------------------------- schema ---- */

.schema {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(28px, 4.4vw, 64px);
}
.schema__art {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.steps-list { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.steps-list li { display: flex; gap: 16px; }
.steps-list b {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--ink);
  color: var(--accent);
  border-radius: 50%;
  font-size: 13.5px;
}
.steps-list p { font-size: 14.5px; color: var(--ink-3); }
.steps-list strong { color: var(--ink); }

/* --------------------------------------------------------------- checks -- */

.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.checks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.checks li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-2);
}
.checks li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313171b' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checks strong { color: var(--ink); }

/* --------------------------------------------------------------- banner -- */

.banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: clamp(28px, 3.6vw, 46px);
  background: var(--bg-dark);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, .7);
}
.banner::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 200, 0, .18), transparent 62%);
}
.banner h2, .banner h3 { color: #fff; }
.banner p { margin-top: 12px; max-width: 620px; font-size: 15.5px; }
.banner__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------- slider -- */

.slider { position: relative; }
.slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.slider__track > * { scroll-snap-align: start; }
.slider__track::-webkit-scrollbar { height: 6px; }
.slider__track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.slider__track--3 { grid-auto-columns: minmax(300px, calc((100% - 40px) / 3)); }
.slider__track--5 { grid-auto-columns: minmax(250px, calc((100% - 64px) / 3.4)); }

.slider__nav { display: flex; gap: 8px; }
.slider__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color .16s var(--ease), border-color .16s var(--ease),
    opacity .16s var(--ease);
}
.slider__btn:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.slider__btn:disabled { opacity: .35; cursor: default; }

/* ----------------------------------------------------------------- cases -- */

.case {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.case:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.case__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: var(--bg-dark);
  color: rgba(255, 255, 255, .9);
  overflow: hidden;
}
.case__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.case__cover svg { position: relative; width: 56px; height: 56px; color: var(--accent); }
.case__tag {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  padding: 5px 11px;
  background: var(--accent);
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}
.case__body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 24px 26px 26px; }
.case__body h3 { font-size: 18px; }
.case__body p { font-size: 14.5px; color: var(--ink-3); }
.case__metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 4px;
}
.case__metric b { font-size: 25px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.case__metric span { font-size: 13px; color: var(--muted); }
.case__body .link-more { margin-top: auto; align-self: flex-start; }

/* ---------------------------------------------------------------- pricing -- */

.pricing {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.plan {
  padding: clamp(26px, 3vw, 36px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.plan__price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 6px; }
.plan__price b { font-size: 42px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.plan__price span { font-size: 15px; color: var(--muted); }
.plan__note { font-size: 13.5px; color: var(--muted); }
.plan__hr { height: 1px; margin: 24px 0; background: var(--line); border: 0; }
.plan .btn { margin-top: 26px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  background: var(--accent-soft);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 700;
  color: #7a5c00;
}

/* ----------------------------------------------------------------- logos -- */

.logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.logos div {
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 18px;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #a8adb2;
  text-align: center;
  filter: saturate(0);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.logos div:hover { color: var(--ink); background: #fffdf5; }

/* ------------------------------------------------------------------ blog -- */

.post {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.post:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.post__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.post__meta b { color: var(--accent-lo); font-weight: 700; }
.post h3 { font-size: 17.5px; }
.post p { font-size: 14.5px; color: var(--ink-3); }
.post .link-more { margin-top: auto; align-self: flex-start; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tags a {
  padding: 7px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13.5px;
  color: var(--ink-3);
  transition: border-color .16s var(--ease), color .16s var(--ease), background-color .16s var(--ease);
}
.tags a:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }

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

.contact {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(30px, 4vw, 60px);
  align-items: start;
}

.contact__facts { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.contact__facts li { display: flex; gap: 14px; }
.contact__facts .ic { width: 44px; height: 44px; margin: 0; border-radius: 10px; }
.contact__facts .ic svg { width: 21px; height: 21px; }
.contact__facts b { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact__facts a, .contact__facts span { font-size: 16px; color: var(--ink); font-weight: 600; }
.contact__facts a:hover { color: var(--accent-lo); }

.form {
  position: relative;
  padding: clamp(26px, 3.2vw, 40px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field > label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.field > label i { color: var(--accent-lo); font-style: normal; }

.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { min-height: 118px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #b4b8bc; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 200, 0, .22);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #dc130d; }
.field.is-invalid input:focus, .field.is-invalid textarea:focus { box-shadow: 0 0 0 3px rgba(220, 19, 13, .16); }

.field__error {
  display: none;
  font-size: 12.5px;
  color: #dc130d;
}
.field.is-invalid .field__error { display: block; }

.consent {
  display: flex;
  gap: 11px;
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  accent-color: var(--accent-lo);
  cursor: pointer;
}
.consent a { border-bottom: 1px solid var(--line); }
.consent a:hover { border-color: var(--accent); }
.consent.is-invalid { color: #dc130d; }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: 24px;
}
.form__foot small { font-size: 12.5px; color: var(--muted); max-width: 260px; }

.form__done {
  display: none;
  padding: 10px 0;
  text-align: center;
}
.form.is-sent .form__grid,
.form.is-sent .form__foot { display: none; }
.form.is-sent .form__done { display: block; }
.form__done .ic {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: var(--accent);
  border-radius: 50%;
}
.form__done .ic svg { width: 30px; height: 30px; }
.form__done h3 { margin-bottom: 10px; }
.form__done p { font-size: 15px; color: var(--ink-3); max-width: 420px; margin-inline: auto; }
.form__done button {
  margin-top: 22px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 2px;
  font-size: 14px;
  color: var(--ink-3);
  cursor: pointer;
}
.form__done button:hover { color: var(--ink); border-color: var(--accent); }

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

.footer {
  padding: clamp(46px, 5vw, 72px) 0 0;
  background: var(--bg-dark);
  color: rgba(255, 255, 255, .58);
  font-size: 14.5px;
}
.footer a { transition: color .16s var(--ease); }
.footer a:hover { color: var(--accent); }

.footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(4, minmax(0, 1fr));
  gap: 36px 28px;
  padding-bottom: 44px;
}
.footer h4 {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.footer .logo__text { color: #fff; }
.footer .logo__sub { color: rgba(255, 255, 255, .35); }
.footer__about { margin-top: 18px; max-width: 300px; font-size: 14px; }

.footer__contacts { display: grid; gap: 8px; margin-top: 22px; }
.footer__contacts a { color: #fff; font-size: 17px; font-weight: 700; }
.footer__contacts small { color: rgba(255, 255, 255, .38); font-size: 12.5px; }

.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  color: rgba(255, 255, 255, .7);
  transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.socials svg { width: 18px; height: 18px; }

.footer__legal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px 28px;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
  color: rgba(255, 255, 255, .42);
}
.footer__legal b { display: block; color: rgba(255, 255, 255, .6); font-weight: 600; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
  color: rgba(255, 255, 255, .38);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ------------------------------------------------------------- to-top --- */

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(19, 23, 27, .18);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent-hi); }

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

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------- responsive -- */

@media (max-width: 1100px) {
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .header__in { height: 66px; }
  .nav {
    position: fixed;
    inset: 66px 0 auto;
    max-height: calc(100vh - 66px);
    margin: 0;
    padding: 12px var(--gutter) 28px;
    overflow-y: auto;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-hi);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { display: block; }
  .nav__link { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--line-soft); }
  .nav__link:hover { background: none; }
  .submenu {
    position: static;
    display: none;
    min-width: 0;
    margin: 4px 0 10px;
    padding: 6px;
    background: var(--bg-alt);
    border-color: var(--line-soft);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__item--has-menu.is-open .submenu { display: block; }
  .nav__item--has-menu.is-open > .nav__link .nav__caret { transform: rotate(180deg); }
  .nav__item--has-menu:hover > .submenu { display: none; }
  .nav__item--has-menu.is-open:hover > .submenu { display: block; }

  .burger { display: block; margin-left: auto; }
  .header__cta { display: none; }

  .hero__in { grid-template-columns: 1fr; padding-bottom: 52px; }
  .hero__art { order: -1; max-width: 520px; }

  .schema, .pricing, .contact { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banner { grid-template-columns: 1fr; }
  .slider__track--3 { grid-auto-columns: minmax(280px, 72%); }
  .slider__track--5 { grid-auto-columns: minmax(240px, 58%); }
}

@media (max-width: 760px) {
  .topbar__in { justify-content: space-between; gap: 14px; }
  .topbar__note, .topbar__login { display: none; }

  h1 { font-size: 30px; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero__actions .btn { width: 100%; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .checks--2 { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slider__track--3, .slider__track--5 { grid-auto-columns: minmax(0, 86%); }
  .slider__nav { display: none; }
  .to-top { right: 14px; bottom: 14px; }
}

@media (max-width: 520px) {
  :root { --gutter: 16px; }
  .footer__cols { grid-template-columns: 1fr; }
  .logo__sub { display: none; }
}

@media print {
  .header, .topbar, .to-top, .slider__nav, .form { display: none; }
  body { color: #000; }
}
