/* ============ Qarz — лендинг ============ */

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 760px; }

.lp svg { stroke-width: inherit; }
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo__m { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.logo__w { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px 7px 10px; border-radius: 999px;
  background: var(--green-t); color: var(--green-ink);
  font-size: 13px; font-weight: 650;
}
.pill svg { width: 16px; height: 16px; }
.pill--dark { background: var(--ink); color: var(--paper); }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 11px; color: var(--ink-2);
  border: 1.5px solid var(--line);
}
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn:active { transform: scale(.92); }

/* ---------- шапка ---------- */
.lp-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.lp-head.is-stuck { border-color: var(--line); }
.lp-head__in { display: flex; align-items: center; gap: 18px; height: 64px; }
.lp-nav { display: flex; gap: 26px; margin-left: auto; }
.lp-nav a { font-size: 14.5px; font-weight: 550; color: var(--ink-2); }
.lp-nav a:hover { color: var(--ink); }
.lp-head__act { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lp-head__cta { min-height: 44px; padding: 0 18px; font-size: 14.5px; }

/* ---------- герой ---------- */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero__in {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center;
}
.hero__copy h1 {
  font-size: clamp(34px, 5.4vw, 56px); line-height: 1.04;
  letter-spacing: -.035em; font-weight: 820; margin: 18px 0 16px;
}
.hero__sub { font-size: 17.5px; color: var(--ink-2); max-width: 30em; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.hero__cta svg { width: 19px; height: 19px; }
.hero__trust { font-size: 14px; color: var(--ink-2); }
.hero__trust b { color: var(--green); font-weight: 750; }

/* ---------- мокап телефона ---------- */
.hero__phone { display: flex; justify-content: center; }
.phone {
  position: relative; width: 286px; height: 588px;
  background: var(--ink); border-radius: 44px;
  padding: 12px; box-shadow: var(--sh-pop);
}
.phone__notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 116px; height: 24px; background: var(--ink); border-radius: 0 0 16px 16px; z-index: 3;
}
.phone__scr {
  position: relative; height: 100%; background: var(--paper-2);
  border-radius: 33px; overflow: hidden;
  display: flex; flex-direction: column;
}
.m-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 38px 18px 12px; background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.m-head__t { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.m-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.m-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 12px 6px; }
.m-stat {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 11px;
}
.m-stat span { font-size: 10.5px; color: var(--ink-3); display: block; }
.m-stat b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.m-stat--debt b { color: var(--debt); }
.m-today {
  margin: 6px 12px; padding: 11px 13px; border-radius: 12px;
  background: var(--green); color: #fff;
  display: flex; justify-content: space-between; align-items: center;
}
.m-today span { font-size: 12px; opacity: .9; }
.m-today b { font-size: 16px; font-weight: 800; }
.m-list { padding: 4px 12px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.m-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 9px 11px;
}
.m-row i {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--paper-3); color: var(--ink-2);
  display: grid; place-items: center; font-size: 11px; font-weight: 800; font-style: normal;
}
.m-row div { flex: 1; min-width: 0; }
.m-row b { font-size: 13px; font-weight: 700; display: block; }
.m-row span { font-size: 10.5px; color: var(--ink-3); }
.m-row u { font-size: 14px; font-weight: 800; text-decoration: none; color: var(--debt); }
.m-row--over i { background: var(--warn-t); color: var(--warn); }
.m-row--over span { color: var(--warn); font-weight: 700; }
.m-fab {
  position: absolute; right: 16px; bottom: 84px;
  width: 52px; height: 52px; border-radius: 17px;
  background: var(--green); color: #fff;
  display: grid; place-items: center; box-shadow: var(--sh-2);
}
.m-fab svg { width: 24px; height: 24px; }
.m-nav {
  margin-top: auto; display: flex; justify-content: space-around;
  padding: 12px 6px 20px; background: var(--paper);
  border-top: 1px solid var(--line);
}
.m-nav span { color: var(--ink-3); }
.m-nav span.on { color: var(--green); }
.m-nav svg { width: 22px; height: 22px; }

/* ---------- бегущая строка ---------- */
.marquee { padding: 16px 0; border-block: 1px solid var(--line); overflow: hidden; }
.marquee__t {
  display: flex; gap: 22px; white-space: nowrap;
  animation: run 26s linear infinite; width: max-content;
}
.marquee__t span { font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.marquee__t i { color: var(--green); font-style: normal; }
@keyframes run { to { transform: translateX(-50%); } }

/* ---------- секции ---------- */
.sec { padding: 76px 0; }
.sec--alt { background: var(--paper-2); }
.sec__h {
  font-size: clamp(26px, 3.6vw, 38px); font-weight: 800;
  letter-spacing: -.03em; text-align: center;
}
.sec__h--l { text-align: left; }
.sec__lead { text-align: center; color: var(--ink-2); font-size: 16.5px; margin: 12px auto 38px; max-width: 34em; }

/* сравнение */
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cmp__col { border-radius: var(--r-lg); padding: 28px; border: 1.5px solid var(--line); }
.cmp__col h3 { font-size: 19px; margin-bottom: 16px; display: flex; }
.cmp__col ul { display: flex; flex-direction: column; gap: 12px; }
.cmp__col li { font-size: 15px; display: flex; align-items: flex-start; gap: 9px; }
.cmp__col--bad { background: var(--paper); }
.cmp__col--bad li { color: var(--ink-2); }
.cmp__col--bad li::before { content: "✕"; color: var(--debt); font-weight: 800; flex: none; }
.cmp__col--good { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cmp__col--good .logo__w { color: #fff; }
.cmp__col--good li svg { width: 19px; height: 19px; color: var(--green); flex: none; margin-top: 1px; }

/* возможности */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat {
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--r-lg); padding: 26px;
  transition: transform .18s var(--ease), border-color .18s;
}
.feat:hover { transform: translateY(-3px); border-color: var(--line-2); }
.feat__ic {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--green-t); color: var(--green-ink);
  display: grid; place-items: center; margin-bottom: 16px;
}
.feat__ic svg { width: 26px; height: 26px; }
.feat h3 { font-size: 18px; letter-spacing: -.02em; }
.feat p { font-size: 14.5px; color: var(--ink-2); margin-top: 7px; }

/* офлайн */
.offline__in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.offline__copy h2 { margin: 16px 0 14px; }
.offline__copy p { font-size: 16.5px; color: var(--ink-2); }
.ticks { margin-top: 20px; display: flex; flex-direction: column; gap: 11px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 550; }
.ticks svg { width: 20px; height: 20px; color: var(--green); flex: none; }
.offline__art { position: relative; height: 320px; }
.orb {
  position: absolute; inset: 0; margin: auto;
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
}
.orb svg { width: 56px; height: 56px; }
.orb::after {
  content: ""; position: absolute; inset: -22px; border-radius: 50%;
  border: 2px dashed var(--line-2); animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.sync-card {
  position: absolute; display: flex; align-items: center; gap: 7px;
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 9px 13px; font-size: 13px; font-weight: 650;
  box-shadow: var(--sh-1);
}
.sync-card svg { width: 17px; height: 17px; color: var(--green); }
.sync-card--1 { top: 14px; left: 0; animation: float 4s ease-in-out infinite; }
.sync-card--2 { top: 50%; right: 0; animation: float 4s ease-in-out infinite .8s; }
.sync-card--3 { bottom: 18px; left: 22px; animation: float 4s ease-in-out infinite 1.6s; }
.sync-card--3 svg { color: var(--warn); }
@keyframes float { 50% { transform: translateY(-9px); } }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plan {
  position: relative; background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 22px; display: flex; flex-direction: column;
}
.plan--free { background: var(--paper-3); }
.plan--hot { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-t); }
.plan__hot {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #fff; font-size: 11px; font-weight: 750;
  padding: 4px 12px; border-radius: 999px;
}
.plan__tag { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 6px; }
.plan__price b { font-size: 36px; font-weight: 850; letter-spacing: -.03em; }
.plan__price span { font-size: 13px; color: var(--ink-3); }
.plan__note { font-size: 13px; color: var(--ink-2); margin-bottom: 18px; min-height: 3em; }
.plan .btn { margin-top: auto; }
.plans__hint { text-align: center; color: var(--ink-3); font-size: 13px; margin-top: 20px; }

/* faq */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__i {
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.faq__i summary {
  list-style: none; cursor: pointer; padding: 18px 20px;
  font-size: 16px; font-weight: 650;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq__i summary::-webkit-details-marker { display: none; }
.faq__pm { position: relative; width: 16px; height: 16px; flex: none; }
.faq__pm::before, .faq__pm::after {
  content: ""; position: absolute; background: var(--green); border-radius: 2px;
}
.faq__pm::before { inset: 7px 0; }
.faq__pm::after { inset: 0 7px; transition: transform .2s; }
.faq__i[open] .faq__pm::after { transform: scaleY(0); }
.faq__i p { padding: 0 20px 18px; color: var(--ink-2); font-size: 15px; }

/* финальный cta */
.cta { padding: 80px 0; background: var(--ink); }
.cta__in { text-align: center; }
.cta h2 { color: var(--paper); font-size: clamp(26px, 3.6vw, 40px); font-weight: 820; letter-spacing: -.03em; }
.cta p { color: color-mix(in srgb, var(--paper) 65%, transparent); margin: 12px 0 26px; font-size: 17px; }
.cta .btn svg { width: 19px; height: 19px; }

/* подвал */
.lp-foot { background: var(--paper-2); border-top: 1px solid var(--line); padding: 52px 0 24px; }
.lp-foot__in { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; }
.lp-foot__brand p { color: var(--ink-2); font-size: 14px; margin-top: 12px; max-width: 26em; }
.lp-foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-foot__cols h4 { font-size: 14px; margin-bottom: 12px; }
.lp-foot__cols a, .lp-foot__cols span {
  display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 8px;
}
.lp-foot__cols a:hover { color: var(--green); }
.lp-foot__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-3);
}

/* 404 */
.err { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.err__big { font-size: 92px; font-weight: 850; letter-spacing: -.04em; line-height: 1; }
.err h1 { font-size: 24px; margin: 10px 0 6px; }
.err p { color: var(--ink-2); margin-bottom: 22px; }

/* ---------- адаптив ---------- */
@media (max-width: 900px) {
  .lp-nav { display: none; }
  .hero__in, .offline__in { grid-template-columns: 1fr; }
  .hero { padding: 32px 0; text-align: center; }
  .hero__copy .pill, .hero__cta { justify-content: center; }
  .hero__sub { margin-inline: auto; }
  .hero__phone { margin-top: 30px; }
  .feats { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .lp-foot__in { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sec { padding: 54px 0; }
  .cmp, .feats, .plans { grid-template-columns: 1fr; }
  .lp-head__cta { display: none; }
  .lp-foot__cols { grid-template-columns: 1fr 1fr; }
  .offline__art { height: 280px; }
}
