/* ---------- Fonts (self-hosted, variable, cyrillic + latin) ---------- */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('assets/fonts/nunito-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('assets/fonts/nunito-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('assets/fonts/caveat-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('assets/fonts/caveat-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --blue-900: #22268F;
  --blue-700: #2F33C4;
  --blue-600: #3A3FD9;
  --blue-500: #4F55F0;
  --tg: #2AABEE;
  --green: #22C55E;
  --red: #F0503C;
  --purple: #7C3AED;
  --yellow: #F5B301;

  --ink: #1B1F5A;
  --text: #2B2F6E;
  --muted: #5B6090;
  --card: #F5F7FF;
  --line: #E3E7F5;

  --r-lg: 32px;
  --r-md: 24px;
  --r-sm: 16px;
  --shadow: 0 12px 32px rgba(35, 39, 143, .12);
  --shadow-lg: 0 30px 60px rgba(10, 12, 60, .35);

  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', cursive;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }
.sprite { position: absolute; }
button { font: inherit; }

.container {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}
.container--narrow { width: min(760px, 100% - 32px); }

/* Skip link для клавиатуры и скринридеров */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  color: var(--blue-700);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* Цитируемый абзац о продукте */
.about {
  max-width: 68ch;
  margin: -16px 0 36px;
  padding: 18px 22px;
  border-left: 4px solid var(--blue-500);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--card);
  font-size: 16px;
  color: var(--text);
}

/* Видимый фокус для клавиатуры */
:focus-visible {
  outline: 3px solid var(--tg);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px 12px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--white {
  background: #fff;
  color: var(--blue-700);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}
.btn--white:hover { box-shadow: 0 16px 36px rgba(0, 0, 0, .24); }

.btn--sm { padding: 6px 18px 6px 6px; font-size: 15px; }
.btn--sm .btn__tg { width: 32px; height: 32px; }

.btn--lg { padding: 12px 28px 12px 12px; font-size: 18px; }
.btn--lg .btn__tg { width: 44px; height: 44px; }

.btn__tg {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tg);
  color: #fff;
  flex: none;
}
.btn__tg svg { width: 55%; height: 55%; }
.btn__arrow { width: 20px; height: 20px; }
.btn__short { display: none; }

/* ---------- Header ---------- */
.hero-wrap {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(55% 60% at 88% 8%,  rgba(139, 92, 246, .55) 0%, transparent 70%),
    radial-gradient(40% 45% at 4% 78%,  rgba(42, 171, 238, .42) 0%, transparent 70%),
    radial-gradient(50% 35% at 50% 108%, rgba(240, 80, 60, .22) 0%, transparent 70%),
    radial-gradient(30% 30% at 40% 20%, rgba(255, 255, 255, .06) 0%, transparent 70%),
    linear-gradient(160deg, #4B52F2 0%, #3236CC 48%, #1C2090 100%);
}

/* Плывущие блики */
.hero-wrap::before,
.hero-wrap::after,
.footer::before,
.footer::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  animation: drift 18s ease-in-out infinite;
}
.hero-wrap::before {
  width: 520px;
  height: 520px;
  left: -160px;
  top: -140px;
  background: rgba(96, 165, 250, .45);
}
.hero-wrap::after {
  width: 420px;
  height: 420px;
  right: 8%;
  bottom: -160px;
  background: rgba(167, 139, 250, .4);
  animation-delay: -9s;
  animation-direction: reverse;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(50px, -30px) scale(1.08); }
  66%      { transform: translate(-30px, 40px) scale(.95); }
}

.header { position: relative; padding: 20px 0; }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  text-decoration: none;
}
.logo__icon { width: 36px; height: 36px; }

.nav {
  display: flex;
  gap: 32px;
  font-weight: 700;
  font-size: 15px;
}
.nav a {
  text-decoration: none;
  opacity: .9;
  transition: opacity .15s;
}
.nav a:hover { opacity: 1; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background-color .15s, border-color .15s;
}
.lang-switch:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 40px 0 120px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
}

.hero__head {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 28px;
}

.hero__logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.hero__logo svg {
  width: 125px;
  height: 125px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .3));
}

.hero__title {
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.01em;
  margin-bottom: 14px;
}
.hero__subtitle {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  max-width: 24ch;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.chip {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 15px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.chip--red {
  background: var(--red);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(240, 80, 60, .35);
}

.hero__visual {
  position: relative;
  min-height: 520px;
  display: flex;
  justify-content: center;
}

.hero__cat {
  position: absolute;
  left: -30px;
  bottom: -40px;
  width: 260px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .3));
}

/* ---------- Doodles ---------- */
.doodle {
  position: absolute;
  z-index: 3;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 28px;
  line-height: .95;
  color: #fff;
  text-align: center;
  transform: rotate(-12deg);
  pointer-events: none;
}
.doodle__smile {
  width: 34px;
  height: 34px;
  margin: 8px auto 0;
}
.doodle--hero { right: -70px; top: -20px; }
.doodle--dark { color: var(--blue-700); }
.doodle--commands { right: -20px; top: 30px; }
.doodle--footer { right: 0; top: 10px; transform: rotate(-16deg); font-size: 30px; }

.doodle-arrow {
  position: absolute;
  width: 70px;
  height: 52px;
  color: #fff;
  opacity: .9;
  pointer-events: none;
}
.doodle-arrow--hero { left: -30px; top: 190px; transform: rotate(-20deg); }
.doodle-arrow--commands {
  right: 0;
  top: 130px;
  color: var(--blue-700);
  transform: rotate(60deg) scaleX(-1);
}

/* ---------- Waves ---------- */
.wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: 90px;
}
.wave--bottom { bottom: -1px; z-index: 1; }

/* ---------- Phone mockup ---------- */
.phone {
  position: relative;
  z-index: 2;
  width: 300px;
  border-radius: 46px;
  padding: 12px;
  background: #101116;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2b2d36;
}
.phone--hero {
  transform: rotate(6deg);
  margin-top: 10px;
}
.phone--sm { width: 250px; border-radius: 40px; padding: 10px; }
.phone--sm .phone__screen { border-radius: 32px; }

.phone__screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 560px;
  border-radius: 36px;
  background: #E7EEFA;
  color: #1a1c2e;
  overflow: hidden;
}
.phone--sm .phone__screen { min-height: 420px; }

.phone__status {
  display: flex;
  justify-content: space-between;
  padding: 14px 24px 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.chat__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 10px;
  background: #fff;
  border-bottom: 1px solid #dfe5f2;
}
.chat__back { font-size: 26px; line-height: 1; color: var(--tg); }
.chat__avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue-700);
}
.chat__avatar svg { width: 20px; height: 20px; }
.chat__name {
  display: flex;
  flex-direction: column;
  flex: 1;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
}
.chat__name small { font-size: 10px; font-weight: 600; color: #8a90ab; }
.chat__more { font-size: 20px; color: #8a90ab; }

.chat__body { flex: 1; padding: 16px 12px; }

.chat__input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 16px;
  background: #fff;
  border-top: 1px solid #dfe5f2;
  font-size: 12px;
  color: #8a90ab;
}
.chat__input span:nth-child(2) { flex: 1; }
.chat__clip { width: 18px; height: 18px; }
.chat__emoji { letter-spacing: 3px; }

/* Message card */
.msg {
  background: #fff;
  border-radius: 16px 16px 16px 4px;
  padding: 12px 14px 14px;
  box-shadow: 0 2px 10px rgba(20, 30, 80, .08);
  font-size: 13px;
  line-height: 1.4;
}
.msg p { margin-top: 4px; }
.msg__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 14px;
}
.msg__ico { font-size: 14px; }
.msg__amount { font-weight: 900; font-size: 15px; }

.msg__done,
.msg__later {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  padding: 9px;
  border-radius: 10px;
  border: 0;
  font-weight: 800;
  font-size: 13px;
  cursor: default;
}
.msg__done {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 14px rgba(34, 197, 94, .35);
}
.msg__done svg { width: 16px; height: 16px; }
.msg__done--sm { padding: 7px; margin-top: 8px; }
.msg__later {
  background: #fff;
  color: #1a1c2e;
  border: 1.5px solid #dfe5f2;
  margin-top: 8px;
}

.msg--out {
  width: max-content;
  margin: 0 0 10px auto;
  padding: 8px 10px;
  border-radius: 16px 16px 4px 16px;
  background: #EAF3FF;
}
.msg--list ul { margin: 4px 0 6px; padding-left: 14px; list-style: disc; }
.msg__group { font-weight: 800; margin-top: 8px !important; }
.msg__total { margin-top: 8px !important; padding-top: 8px; border-top: 1px solid #e3e8f2; }
.msg--list li { margin-bottom: 4px; }
.msg--list small { color: #8a90ab; font-size: 11px; margin-left: 4px; }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section--tight { padding-top: 20px; }

.section__title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 12px;
}
.section__title--sm { font-size: clamp(26px, 3vw, 32px); }

.section__lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 36px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  padding: 28px 24px;
  border-radius: var(--r-lg);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.step--blue   { background: #EDF1FF; }
.step--purple { background: #F3EEFF; }
.step--green  { background: #EAF8F0; }

.step__head { display: flex; gap: 16px; align-items: flex-start; }
.step__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}
.step--blue .step__num   { background: linear-gradient(145deg, #4F8CFF, #2F33C4); }
.step--purple .step__num { background: linear-gradient(145deg, #A78BFA, #7C3AED); }
.step--green .step__num  { background: linear-gradient(145deg, #4ADE80, #16A34A); }

.step__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 6px;
}
.step__text { font-size: 15px; color: var(--muted); }

.mini {
  position: relative;
  margin-top: auto;
  background: #fff;
  border-radius: 16px 16px 16px 4px;
  padding: 12px 14px 22px;
  box-shadow: 0 4px 16px rgba(20, 30, 80, .08);
  font-size: 14px;
  line-height: 1.4;
  color: #1a1c2e;
  transform: rotate(-2deg);
}
.mini p { margin-top: 4px; }
.mini--out {
  border-radius: 16px 16px 4px 16px;
  background: #EAF3FF;
  transform: rotate(2deg);
}
.mini__cmd {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 8px;
  background: #fff;
  color: var(--tg);
  font-weight: 800;
  font-size: 13px;
}
.mini__meta {
  position: absolute;
  right: 12px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #8a90ab;
}
.mini__send { width: 14px; height: 14px; color: var(--tg); }

.caret {
  display: inline-block;
  width: 1.5px;
  height: 1em;
  margin-left: 1px;
  vertical-align: -2px;
  background: #1a1c2e;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { to { opacity: 0; } }

.mini--sparkle::before,
.mini--sparkle::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--green), var(--green)) center/2px 100% no-repeat,
    linear-gradient(var(--green), var(--green)) center/100% 2px no-repeat;
  opacity: .8;
}
.mini--sparkle::before { left: -18px; top: -6px; transform: rotate(20deg); }
.mini--sparkle::after  { right: -16px; bottom: -4px; transform: rotate(-25deg) scale(.7); }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--r-md);
}
.feature h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}
.feature p { font-size: 15px; color: var(--muted); }

.feature__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .15);
}
.feature__icon svg { width: 26px; height: 26px; }

.feature--blue   { background: #E8F1FF; }
.feature--green  { background: #E7F8EE; }
.feature--purple { background: #F1ECFF; }
.feature--red    { background: #FFECEA; }
.feature--yellow { background: #FFF5DD; }
.feature--sky    { background: #E8F1FF; }

.feature--blue .feature__icon   { background: var(--tg); }
.feature--green .feature__icon  { background: var(--green); }
.feature--purple .feature__icon { background: var(--purple); }
.feature--red .feature__icon    { background: var(--red); }
.feature--yellow .feature__icon { background: var(--yellow); }
.feature--sky .feature__icon    { background: var(--tg); }

/* ---------- Commands ---------- */
.commands {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 40px;
  padding: 40px 48px 0;
  border-radius: var(--r-lg);
  background: var(--card);
  overflow: hidden;
}
.commands__content { padding-bottom: 40px; }
.commands .section__lead { margin-bottom: 28px; }

.cmds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cmd {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(35, 39, 143, .06);
}
.cmd dt {
  flex: none;
  min-width: 82px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #EAF3FF;
  color: var(--tg);
  font-weight: 800;
  font-size: 15px;
  text-align: center;
}
.cmd dd { font-size: 14px; color: var(--muted); padding-top: 3px; }

.commands__visual {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}
.commands__visual .phone {
  margin-bottom: -60px;
  transform: rotate(4deg);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  border-radius: var(--r-sm);
  background: var(--card);
  padding: 0 24px;
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--blue-700);
  font-size: 20px;
  transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__content p { padding: 0 0 20px; color: var(--muted); }
.faq__item summary:hover::after { transform: scale(1.1); }
.faq__item[open] summary:hover::after { transform: rotate(45deg) scale(1.1); }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: 40px;
  padding: 110px 0 24px;
  color: #fff;
  background:
    radial-gradient(50% 70% at 10% 20%,  rgba(42, 171, 238, .45) 0%, transparent 70%),
    radial-gradient(45% 60% at 92% 90%,  rgba(139, 92, 246, .55) 0%, transparent 70%),
    radial-gradient(35% 40% at 60% 0%,   rgba(240, 80, 60, .18) 0%, transparent 70%),
    linear-gradient(200deg, #4B52F2 0%, #3236CC 50%, #1C2090 100%);
  /* Волна сверху вырезана маской, чтобы градиент шёл сплошным */
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 60C300 0 620 95 900 40s420-10 540 20V90H0z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask: var(--wave) top / 100% 90px no-repeat, linear-gradient(#000, #000) bottom / 100% calc(100% - 89px) no-repeat;
  mask: var(--wave) top / 100% 90px no-repeat, linear-gradient(#000, #000) bottom / 100% calc(100% - 89px) no-repeat;
}
.footer::before {
  width: 460px;
  height: 460px;
  left: 30%;
  top: -220px;
  background: rgba(96, 165, 250, .4);
  animation-delay: -5s;
}
.footer::after {
  width: 380px;
  height: 380px;
  right: -120px;
  top: -60px;
  background: rgba(244, 114, 182, .28);
  animation-delay: -12s;
  animation-direction: reverse;
}
.footer__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-right: 120px;
}
.footer__cta {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.footer__icon svg { width: 34px; height: 34px; }
.footer__title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 6px;
}
.footer__cta p { opacity: .9; }
.footer__copy {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  opacity: .6;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__logo { width: 140px; height: 140px; }
  .hero__logo svg { width: 92px; height: 92px; }
  .commands { grid-template-columns: 1fr; padding: 32px 28px 0; }
  .commands__visual .phone { margin-bottom: -40px; }
  .commands__visual { justify-content: center; }
  .doodle--commands { right: 12%; top: 0; }
  .doodle-arrow--commands { right: 16%; top: 100px; }
}

@media (max-width: 860px) {
  .header { padding: 14px 0 8px; }
  .header__inner { flex-wrap: wrap; row-gap: 6px; }
  .nav {
    order: 3;
    width: 100%;
    gap: 22px;
    padding: 6px 0 2px;
    font-size: 14px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .hero { padding: 16px 0 100px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero__visual { min-height: auto; }
  .hero__cat { width: 200px; left: 0; bottom: -20px; }
  .doodle--hero { right: 16px; top: -30px; }
  .doodle-arrow--hero { display: none; }
  .steps, .features { grid-template-columns: 1fr; }
  .steps { gap: 16px; }
  .footer__inner { padding-right: 0; justify-content: center; text-align: center; }
  .footer__cta { flex-direction: column; text-align: center; }
  .doodle--footer { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .header__inner { gap: 10px; }
  .logo { font-size: 20px; }
  .logo__icon { width: 32px; height: 32px; }
  .btn--sm { padding: 4px 14px 4px 4px; font-size: 14px; }
  .header__actions { gap: 8px; }
  .lang-switch { min-width: 40px; height: 40px; font-size: 13px; }
  .btn__full { display: none; }
  .btn__short { display: inline; }
  .hero__logo { width: 110px; height: 110px; }
  .hero__logo svg { width: 72px; height: 72px; }
  .hero__subtitle { max-width: none; }
  .btn--lg { width: 100%; justify-content: center; font-size: 16px; }
  .phone { width: 260px; }
  .phone__screen { min-height: 500px; }
  .hero__cat { display: none; }
  .doodle--hero { display: none; }
  .cmds { grid-template-columns: 1fr; }
  .commands { padding: 28px 20px 0; }
  .commands__visual .phone { transform: none; }
  .doodle--commands, .doodle-arrow--commands { display: none; }
  .section { padding: 44px 0; }
  .section--tight { padding-top: 12px; }
}

@media (max-width: 400px) {
  .header__inner { gap: 8px; }
  .logo { gap: 8px; font-size: 18px; }
  .logo__icon { width: 28px; height: 28px; }
  .header__actions { gap: 6px; }
  .lang-switch { min-width: 36px; height: 36px; padding: 0 8px; font-size: 12px; }
  .btn--sm { padding: 3px 12px 3px 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .btn { transition: none; }
}

/* ---------- Animations ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(.6) rotate(-16deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes phone-in {
  from { opacity: 0; transform: translate(60px, 40px) rotate(14deg); }
  to   { opacity: 1; transform: translate(0, 0) rotate(6deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(6deg); }
  50%      { transform: translateY(-12px) rotate(6deg); }
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes phone-sm-in {
  from { opacity: 0; transform: translateY(40px) rotate(10deg); }
  to   { opacity: 1; transform: translateY(0) rotate(4deg); }
}

/* Загрузка: хиро */
.header__inner > *,
.hero__logo,
.hero__title,
.hero__subtitle,
.chips,
.hero__content > .btn,
.phone--hero,
.hero__cat,
.doodle--hero,
.doodle-arrow--hero { opacity: 0; }

.is-loaded .header__inner > * { animation: fade-up .6s cubic-bezier(.2, .7, .2, 1) both; }
.is-loaded .header__inner > :nth-child(2) { animation-delay: .08s; }
.is-loaded .header__inner > :nth-child(3) { animation-delay: .16s; }

.is-loaded .hero__logo     { animation: pop-in .7s cubic-bezier(.34, 1.56, .64, 1) .15s both; }
.is-loaded .hero__title    { animation: fade-up .7s cubic-bezier(.2, .7, .2, 1) .25s both; }
.is-loaded .hero__subtitle { animation: fade-up .7s cubic-bezier(.2, .7, .2, 1) .38s both; }
.is-loaded .chips          { animation: fade-up .7s cubic-bezier(.2, .7, .2, 1) .5s both; }
.is-loaded .hero__content > .btn { animation: fade-up .7s cubic-bezier(.2, .7, .2, 1) .62s both; }

.is-loaded .phone--hero {
  animation:
    phone-in .9s cubic-bezier(.2, .7, .2, 1) .35s both,
    float 6s ease-in-out 1.3s infinite;
}
.is-loaded .phone--hero .msg { animation: msg-in .6s cubic-bezier(.2, .7, .2, 1) 1.1s both; }
.is-loaded .hero__cat    { animation: pop-in .8s cubic-bezier(.34, 1.56, .64, 1) .9s both; }
.is-loaded .doodle--hero { animation: pop-in .6s cubic-bezier(.34, 1.56, .64, 1) 1.2s both; }
.is-loaded .doodle-arrow--hero { animation: fade-in .5s ease 1s both; }
.is-loaded .doodle-arrow--hero path {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: draw .8s ease-out 1s forwards;
}

/* Скролл: появление */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .7s cubic-bezier(.2, .7, .2, 1) var(--delay, 0ms),
    transform .7s cubic-bezier(.2, .7, .2, 1) var(--delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* После появления — hover-эффекты без задержки */
.reveal.is-visible.step,
.reveal.is-visible.feature,
.reveal.is-visible.cmd {
  transition: transform .25s ease, box-shadow .25s ease;
}

.step.is-visible .step__num { animation: pop-in .6s cubic-bezier(.34, 1.56, .64, 1) calc(var(--delay, 0ms) + .2s) both; }
.step.is-visible .mini { animation: msg-in .6s cubic-bezier(.2, .7, .2, 1) calc(var(--delay, 0ms) + .35s) both; }
.commands.is-visible .phone--sm { animation: phone-sm-in .8s cubic-bezier(.2, .7, .2, 1) .2s both; }
.commands.is-visible .doodle--commands,
.commands.is-visible .doodle-arrow--commands { animation: pop-in .6s cubic-bezier(.34, 1.56, .64, 1) .7s both; }
.commands .doodle--commands,
.commands .doodle-arrow--commands { opacity: 0; }
.commands.is-visible .doodle--commands,
.commands.is-visible .doodle-arrow--commands { opacity: 1; }

/* Hover */
.step:hover, .feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cmd:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(35, 39, 143, .12); }
.feature__icon { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.feature:hover .feature__icon { transform: scale(1.12) rotate(-6deg); }
.step__num { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.step:hover .step__num { transform: scale(1.1); }

/* FAQ */
.faq__item { transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.faq__item:hover { background: #EEF2FF; }
.faq__item summary::after { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background-color .25s; }
.faq__item[open] summary::after { background: var(--blue-700); color: #fff; }
.faq__content { animation: fade-in .35s ease .1s both; }
.faq__item.is-closing .faq__content { animation: none; opacity: 0; transition: opacity .15s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .header__inner > *, .hero__logo, .hero__title, .hero__subtitle, .chips,
  .hero__content > .btn, .phone--hero, .hero__cat, .doodle--hero, .doodle-arrow--hero,
  .commands .doodle--commands, .commands .doodle-arrow--commands, .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .is-loaded .phone--hero { transform: rotate(6deg) !important; }
  .is-loaded .doodle--hero { transform: rotate(-12deg) !important; }
  .step__num, .mini, .phone--sm, .msg, .faq__content, .doodle-arrow--hero path { animation: none !important; }
  .hero-wrap::before, .hero-wrap::after, .footer::before, .footer::after { animation: none !important; }
}
