/* ============================================================
   1Fit Health — landing styles (mobile-first)
   ============================================================ */

:root {
  /* Палитра по логотипам 1Fit */
  --ink: #0a2018;
  --muted: #51685e;
  --green-900: #07442f;
  --green-700: #0b6b4f;
  --green-500: #12a974;
  --teal: #00aea2;
  --lime: #82d93f;

  --grad-brand: linear-gradient(135deg, #00aea2 0%, #2fc272 55%, #82d93f 100%);
  --grad-text: linear-gradient(135deg, #00857c 0%, #0f9b58 50%, #4f9d1d 100%);
  --grad-deep: linear-gradient(145deg, #16b380 0%, #0b6b4f 100%);

  --bg-tint: #f2faf6;
  --line: #e3f2ea;

  --radius-lg: 24px;
  --radius-md: 16px;

  --shadow-card: 0 24px 60px -20px rgba(10, 80, 58, 0.25);
  --shadow-btn: 0 10px 24px -6px rgba(13, 123, 88, 0.45);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
}

h1, h2, h3, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green-700);
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green-700);
  color: #fff;
  border-radius: 0 0 12px 12px;
  font-weight: 700;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 32px, 1060px);
  margin-inline: auto;
}

.container--narrow {
  max-width: 720px;
}

.section {
  padding: 56px 0;
  scroll-margin-top: 76px;
}

.section--tint {
  background: var(--bg-tint);
}

.section__head {
  max-width: 640px;
  margin-bottom: 28px;
}

.section__eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.section__title {
  font-size: clamp(24px, 5.4vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section__subtitle {
  margin-top: 10px;
  color: var(--muted);
}

.accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  background: var(--grad-deep);
  box-shadow: var(--shadow-btn);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 30px -6px rgba(13, 123, 88, 0.55);
}

.btn:active {
  transform: translateY(0);
}

.btn--sm {
  padding: 11px 20px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

.btn--light {
  background: #fff;
  color: var(--green-700);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.35);
}

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px -12px rgba(10, 80, 58, 0.18);
}

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

.site-header__logo img {
  height: 28px;
  width: auto;
}

.site-nav {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 56px;
  background:
    radial-gradient(640px 420px at 88% -10%, rgba(130, 217, 63, 0.18), transparent 60%),
    radial-gradient(720px 520px at -12% 24%, rgba(0, 174, 162, 0.14), transparent 60%),
    linear-gradient(180deg, #f0faf5 0%, #ffffff 100%);
}

.hero__inner {
  display: grid;
  gap: 32px;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px -8px rgba(10, 80, 58, 0.25);
  font-size: 13px;
  font-weight: 700;
  color: var(--green-700);
}

.hero__chip-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.hero__title {
  margin-top: 18px;
  font-size: clamp(30px, 7.6vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__subtitle {
  margin-top: 14px;
  font-size: clamp(15px, 4vw, 18px);
  color: var(--muted);
  max-width: 520px;
}

.hero__points {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.hero__points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}

.point-check {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-deep);
  color: #fff;
}

.point-check svg {
  width: 13px;
  height: 13px;
}

/* ---------- Промо-карточка ---------- */
.promo-card {
  position: relative;
  max-width: 560px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.promo-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.promo-card__eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
}

.promo-card__title {
  margin-top: 14px;
  font-size: clamp(22px, 5.6vw, 28px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.promo-card__text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Промокод ---------- */
.promo-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 16px;
  border: 2px dashed rgba(16, 150, 104, 0.45);
  border-radius: var(--radius-md);
  background: #f0fbf5;
}

.promo-code__value {
  font-size: clamp(24px, 6.4vw, 30px);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.05em;
  background: var(--grad-deep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--green-700);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.copy-btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.copy-btn:hover {
  background: var(--green-900);
}

.copy-btn.is-copied {
  background: var(--green-500);
}

.promo-card .btn {
  margin-top: 16px;
}

.store-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.store-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.store-links a:hover {
  border-color: var(--green-500);
  box-shadow: 0 6px 16px -8px rgba(10, 80, 58, 0.3);
}

.store-links svg {
  width: 16px;
  height: 16px;
  color: var(--green-700);
}

/* ---------- Иконки-плитки ---------- */
.tile {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--grad-deep);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 8px 18px -6px rgba(11, 107, 79, 0.5);
}

.tile svg {
  width: 24px;
  height: 24px;
}

.tile--sm {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.tile--sm svg {
  width: 19px;
  height: 19px;
}

/* ---------- Исследования ---------- */
.tests-grid {
  display: grid;
  gap: 14px;
}

.test-card {
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf7 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.test-card h3 {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.test-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #e8f7ef;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 700;
}

.chip svg {
  width: 15px;
  height: 15px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.badge-free {
  display: inline-flex;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad-brand) border-box;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 800;
}

/* ---------- Что входит ---------- */
.features-grid {
  display: grid;
  gap: 14px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  align-items: center;
}

.feature-card .tile {
  grid-row: span 2;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 800;
  align-self: end;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
  align-self: start;
}

/* ---------- Шаги ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 26px;
  max-width: 640px;
}

.steps li {
  position: relative;
  padding-left: 58px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-deep);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  font-style: italic;
  box-shadow: 0 8px 18px -6px rgba(11, 107, 79, 0.5);
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 48px;
  bottom: -22px;
  width: 2px;
  background: var(--line);
}

.steps h3 {
  font-size: 17px;
  font-weight: 800;
  padding-top: 8px;
}

.steps p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- География ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip--city {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}

.geo-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #e6f7f1;
  border: 1px solid #d2efe2;
  font-size: 15px;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 18px;
  transition: box-shadow 0.2s;
}

.faq details[open] {
  box-shadow: 0 12px 28px -16px rgba(10, 80, 58, 0.3);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--green-500);
  transition: transform 0.25s;
}

.faq details[open] .faq-icon {
  transform: rotate(45deg);
}

.faq details > p {
  padding-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Финальный CTA ---------- */
.section--cta {
  padding-top: 8px;
}

.cta-final {
  background: radial-gradient(120% 140% at 12% 0%, #12a974 0%, #0b6b4f 55%, #07442f 100%);
  border-radius: 28px;
  padding: 40px 24px;
  text-align: center;
  color: #fff;
}

.cta-final h2 {
  font-size: clamp(24px, 5.8vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.cta-final > p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.85);
}

.promo-code--invert {
  max-width: 420px;
  margin-inline: auto;
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.promo-code--invert .promo-code__value {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #fff;
}

.promo-code--invert .copy-btn {
  background: #fff;
  color: var(--green-700);
}

.promo-code--invert .copy-btn:hover {
  background: #e8f7ef;
}

.promo-code--invert .copy-btn.is-copied {
  background: var(--lime);
  color: var(--green-900);
}

.cta-final .btn {
  margin-top: 22px;
}

/* ---------- Подвал ---------- */
.site-footer {
  background: #07241b;
  color: #b9d4c8;
  padding: 44px 0;
}

.site-footer__inner {
  display: grid;
  gap: 24px;
}

.site-footer__brand img {
  height: 30px;
  width: auto;
}

.site-footer__brand p {
  margin-top: 14px;
  font-size: 14px;
  max-width: 420px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer__links a {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.site-footer__links a:hover {
  color: var(--lime);
}

.site-footer__legal {
  font-size: 13px;
  color: #7fa392;
  line-height: 1.7;
}

/* ---------- Плавающая панель (mobile) ---------- */
.appbar {
  position: fixed;
  inset-inline: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 20px;
  background: rgba(8, 38, 28, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(130%);
  transition: transform 0.35s ease;
}

.appbar.is-visible {
  transform: none;
}

.appbar__code {
  background: transparent;
  border: 2px dashed rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.05em;
  padding: 10px 14px;
}

.appbar__code:hover {
  background: rgba(255, 255, 255, 0.08);
}

.appbar__code.is-copied {
  background: var(--green-500);
  border-color: transparent;
}

.appbar__btn {
  flex: 1;
}

body.has-appbar {
  padding-bottom: 84px;
}

/* ---------- Появление при скролле ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Tablet ≥ 560px ---------- */
@media (min-width: 560px) {
  .container {
    width: min(100% - 56px, 1060px);
  }

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

  .tests-grid {
    grid-template-columns: 1fr 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Desktop ≥ 880px ---------- */
@media (min-width: 880px) {
  .section {
    padding: 80px 0;
  }

  .section__head {
    margin-bottom: 40px;
  }

  .site-nav {
    display: flex;
    gap: 26px;
  }

  .site-nav a {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    transition: color 0.2s;
  }

  .site-nav a:hover {
    color: var(--green-500);
  }

  .hero {
    padding: 84px 0 96px;
  }

  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
  }

  .promo-card {
    padding: 32px;
  }

  .features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .features-grid .feature-card {
    flex: 0 1 calc((100% - 28px) / 3);
  }

  .steps {
    max-width: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }

  .steps li {
    padding-left: 0;
    padding-top: 58px;
  }

  .steps li:not(:last-child)::after {
    left: 54px;
    right: -20px;
    top: 20px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .steps h3 {
    padding-top: 0;
  }

  .cta-final {
    padding: 64px 48px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .site-footer__legal {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
  }

  .appbar {
    display: none;
  }

  body.has-appbar {
    padding-bottom: 0;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .appbar {
    transition: none;
  }
}
