/* Qi LifeTracker — сайт с тарифами. Статика, без сборки и без JS. */

:root {
  --bg: #f7f8fc;
  --card: #ffffff;
  --ink: #05060a;
  --muted: #5b6070;
  --faint: #8a8f9e;
  --line: #eaebf2;
  --line-strong: #dedfea;
  --violet: #786cff;
  --cyan: #35d8ff;
  --grad: linear-gradient(90deg, #786cff 0%, #35d8ff 100%);
  --shell: 1120px;
  --read: 720px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--card);
  padding: 12px 18px;
  border-radius: 0 0 12px 0;
  z-index: 50;
}
.skip-link:focus { left: 0; }

/* ── Шапка ─────────────────────────────────────────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 252, .85);
  backdrop-filter: blur(8px);
}

.site-head .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 8px;
}

.logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #786cff 0%, #35d8ff 100%);
}

.logo__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}

/* ── Кнопки ────────────────────────────────────────────── */

.btn {
  display: inline-block;
  border-radius: 999px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s, border-color .2s, color .2s;
}

.btn--grad {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 16px 38px -16px rgba(120, 108, 255, .9);
}
.btn--grad:hover { opacity: .9; }

.btn--outline {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--violet); color: var(--violet); }

.btn--sm { padding: 10px 20px; font-size: 14px; box-shadow: 0 6px 20px -6px rgba(120, 108, 255, .7); }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { display: block; width: 100%; padding: 14px 24px; font-size: 15px; }

:focus-visible { outline: 2px solid rgba(120, 108, 255, .6); outline-offset: 2px; }

/* ── Первый экран ──────────────────────────────────────── */

.hero { padding: 64px 0 40px; }

.hero__copy {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.hero__cta { margin-top: 36px; }

.hero__wave {
  display: block;
  width: 100%;
  max-width: 880px;
  margin: 48px auto 0;
  height: 70px;
}

/* ── Ценность ──────────────────────────────────────────── */

.value {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0 0 16px;
  list-style: none;
}

.value li {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 16px 20px;
  text-align: center;
  font-weight: 500;
}

/* ── Тарифы ────────────────────────────────────────────── */

.pricing { padding: 48px 0 64px; scroll-margin-top: 80px; }

.section-title {
  margin: 0;
  text-align: center;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 600;
  letter-spacing: -.02em;
}

.plans {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.plan {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 20px 60px -50px rgba(5, 6, 10, .4);
}

.plan--featured {
  order: -1;
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, #786cff 0%, #35d8ff 100%) border-box;
  box-shadow: 0 30px 70px -45px rgba(120, 108, 255, .9);
}

.plan__term {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
}

.plan__price {
  margin: 8px 0 0;
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
}

.plan .btn { margin-top: 28px; }

.note {
  margin: 24px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--faint);
}

/* ── Футер ─────────────────────────────────────────────── */

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.foot-grid {
  display: grid;
  gap: 40px;
  padding: 48px 0;
}

.foot-title {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--faint);
}

.foot-contact {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.foot-contact a { color: var(--violet); font-weight: 500; }

.requisites {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.requisites > div {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.requisites dt { flex: none; }

.requisites dd { margin: 0; color: var(--ink); }

.foot-docs {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.foot-docs li { margin-bottom: 10px; }

.foot-docs a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: #c9ccda;
  text-underline-offset: 4px;
}

.foot-docs a:hover { color: var(--violet); text-decoration-color: var(--violet); }

.foot-docs .is-secondary { font-size: 14px; font-weight: 400; color: var(--muted); }

.foot-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  font-size: 14px;
  color: var(--faint);
}

/* ── Юридические страницы ──────────────────────────────── */

.legal-main { padding: 40px 0 56px; }

.legal-col { max-width: var(--read); margin: 0 auto; }

.legal-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.back-link:hover { color: var(--ink); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  padding: 4px;
}

.lang-switch a {
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--faint);
  text-decoration: none;
}

.lang-switch a[aria-current="page"] { background: #f2f1ff; color: var(--violet); }

.legal {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  padding: 32px 24px;
  box-shadow: 0 20px 60px -40px rgba(5, 6, 10, .35);
}

.legal h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.legal__meta { margin: 12px 0 0; font-size: 14px; color: var(--faint); }

.legal__body {
  margin-top: 32px;
  font-size: 15px;
  line-height: 1.8;
  color: #333846;
}

.legal__body > p:first-child { margin-top: 0; }

.legal__body section { margin-top: 36px; }

.legal__body h2 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--ink);
}

.legal__body p { margin: 0 0 12px; }

.legal__body ul { margin: 0 0 12px; padding-left: 20px; }

.legal__body li { margin-bottom: 6px; }

.legal__body a { color: var(--violet); }

/* ── Адаптив ───────────────────────────────────────────── */

@media (min-width: 640px) {
  .shell { padding: 0 32px; }
  .value { grid-template-columns: repeat(3, 1fr); }
  .legal { padding: 40px; }
}

@media (min-width: 768px) {
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plan--featured { order: 0; }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
}
