/* HepaTool landing — стиль и цвета взяты из презентации HepaTool (см. Hepa Tool_12022026.pdf) */

:root {
  --color-maroon: #7c1f3f;
  --color-maroon-dark: #5c1730;
  --color-maroon-darker: #4a1226;
  --color-ink: #1a1418;
  --color-text-muted: #6b5c62;
  --color-bg: #ffffff;
  --color-surface: #f7f1f3;
  --color-border: #e7dde1;
  --color-on-maroon: #ffffff;
  --color-on-maroon-muted: rgba(255, 255, 255, 0.78);
  --color-badge-gilbert: #f4c50f;
  --color-badge-gilbert-ink: #1a1418;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container-w: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

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

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding-inline: 24px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-maroon);
  margin-bottom: 8px;
}

.eyebrow--light {
  color: var(--color-on-maroon-muted);
}

.section-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 46ch;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--light {
  background: var(--color-on-maroon);
  color: var(--color-maroon);
}

.btn--outline-light {
  background: transparent;
  color: var(--color-on-maroon);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn--ghost {
  background: var(--color-maroon);
  color: var(--color-on-maroon);
  padding: 10px 22px;
  font-size: 14px;
}

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-ink);
  margin-right: auto;
}

.brand__mark {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: none;
}

.brand__mark svg {
  width: 100%;
  height: 100%;
  fill: var(--color-maroon);
}

.brand__mark--sm {
  width: 22px;
  height: 22px;
}

.brand__mark--lg {
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
}

.brand__text {
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: 18px;
}

.brand__text b {
  font-weight: 500;
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  line-height: 1;
  margin-top: 1px;
}

.brand__text--center {
  text-align: center;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--color-text-muted);
}

.nav a:hover {
  color: var(--color-maroon);
}

.nav__cta {
  flex: none;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--color-maroon) 0%, var(--color-maroon-dark) 100%);
  color: var(--color-on-maroon);
  padding-block: 72px 96px;
  overflow: clip;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: center;
  gap: 48px;
}

.hero__rule {
  width: 64px;
  height: 3px;
  background: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero__lead {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-on-maroon-muted);
  max-width: 46ch;
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__art {
  position: relative;
  min-height: 420px;
  justify-self: center;
}

.phone--back {
  position: absolute;
  left: -10px;
  top: 40px;
  transform: rotate(-6deg);
  z-index: 1;
}

.phone--front {
  position: relative;
  left: 90px;
  top: 10px;
  z-index: 2;
}

/* ---------- Phone mockup ---------- */

.phone {
  width: 210px;
  aspect-ratio: 9 / 19.2;
  background: #111;
  border-radius: 34px;
  padding: 8px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.phone--standalone {
  margin: 0 auto;
}

.phone--mini {
  width: 168px;
}

.phone__screen {
  position: relative;
  height: 100%;
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--color-ink);
  padding: 10px 12px 12px;
  font-size: 11px;
}

.phone__screen::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 46%;
  height: 16px;
  background: #111;
  border-radius: 999px;
  z-index: 3;
}

.phone__screen--splash {
  align-items: center;
  justify-content: center;
  background: #fff;
}

.screen__status {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 10px;
  padding-top: 4px;
  margin-bottom: 10px;
}

.screen__status-icons {
  letter-spacing: -1px;
  font-size: 8px;
}

.screen__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.screen__header--plain {
  justify-content: space-between;
}

.screen__header--brand {
  gap: 6px;
}

.screen__header--brand .icon-btn {
  margin-left: auto;
}

.screen__title {
  font-weight: 800;
  font-size: 13px;
  flex: 1;
}

.screen__title--center {
  text-align: center;
}

.muted {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 9px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 11px;
  flex: none;
}

.icon-btn--sm {
  width: 20px;
  height: 20px;
}

.screen__question {
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.option-list li {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.option-list li.is-selected {
  background: var(--color-surface);
  border-color: var(--color-maroon);
  color: var(--color-maroon);
}

.check {
  color: var(--color-maroon);
  font-weight: 800;
}

.screen__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
}

.progress-dash {
  height: 4px;
  width: 16px;
  border-radius: 999px;
  background: var(--color-border);
}

.progress-dash--active {
  background: var(--color-maroon);
  width: 22px;
}

.progress-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--color-border);
  overflow: hidden;
}

.progress-bar i {
  display: block;
  height: 100%;
  width: 22%;
  background: var(--color-maroon);
}

.fab {
  margin-left: auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--color-maroon);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.field {
  border-bottom: 1px solid var(--color-border);
  padding: 9px 0;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 11px;
  margin-bottom: 2px;
}

.field__hint {
  color: var(--color-text-muted);
  font-size: 9px;
}

.counter {
  position: relative;
  margin: 14px auto 18px;
  width: 118px;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.counter__ring circle {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 6;
}

.counter__ring-fill {
  stroke: var(--color-maroon);
  stroke-dasharray: 260;
  stroke-dashoffset: 90;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.counter__value {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.counter__value strong {
  font-size: 24px;
}

.counter__value span {
  font-size: 12px;
  color: var(--color-text-muted);
}

.pill-btn {
  border: none;
  background: var(--color-maroon);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 10px;
  border-radius: 999px;
  margin-top: auto;
}

.screen__group-title {
  font-weight: 800;
  font-size: 12px;
  margin: 8px 0 6px;
}

.tile-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 4px;
}

.tile {
  aspect-ratio: 1;
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  padding: 6px;
  font-size: 9px;
  font-weight: 700;
}

.tile--a {
  background: #f1e4e6;
}
.tile--b {
  background: #f7edd6;
}
.tile--c {
  background: #e3ede4;
}
.tile--d {
  background: #f7dede;
}
.tile--e {
  background: #e6e9f5;
}

.info-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.info-card__label {
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 600;
}

.badge {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 11px;
}

.badge--ropip {
  border: 1.5px solid #4a7a4f;
  color: #4a7a4f;
}

.badge--gilbert {
  background: var(--color-badge-gilbert);
  color: var(--color-badge-gilbert-ink);
}

.badge--merz {
  border: 1.5px solid var(--color-maroon);
  color: var(--color-maroon);
  border-radius: 999px;
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.accordion-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.accordion-list li span {
  color: var(--color-text-muted);
  flex: none;
}

.tabbar {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding-top: 8px;
  margin-top: 6px;
}

.tabbar__item {
  font-size: 8px;
  font-weight: 700;
  color: var(--color-text-muted);
}

.tabbar__item.is-active {
  color: var(--color-maroon);
}

/* ---------- Goal section ---------- */

.goal {
  padding-block: 88px;
  background: var(--color-bg);
}

.goal__inner {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.goal__art {
  background: linear-gradient(160deg, var(--color-maroon) 0%, var(--color-maroon-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.goal h2,
.team h2,
.nosology h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.goal h2 {
  color: var(--color-maroon);
}

.dot-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dot-list li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  font-weight: 600;
}

.dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-maroon);
}

/* ---------- Team section ---------- */

.team {
  padding-block: 88px;
  background: var(--color-surface);
  border-top: 4px solid var(--color-maroon);
}

.team__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 56px;
  align-items: center;
}

.team h2 {
  color: var(--color-maroon);
}

.person {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.person__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-maroon);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 15px;
}

.person__name {
  font-weight: 800;
  font-size: 16px;
}

.person__role {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-top: 2px;
  max-width: 42ch;
}

/* ---------- Screens showcase ---------- */

.screens {
  padding-block: 88px;
  background: var(--color-bg);
  overflow: hidden;
}

.screens__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 48px;
}

.screens__stage {
  position: relative;
}

.screens__blob {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 480px;
  height: 480px;
  max-width: 70vw;
  border-radius: 50%;
  background: var(--color-maroon);
  opacity: 0.08;
  z-index: 0;
}

.screens__row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
  justify-content: center;
  overflow-x: auto;
  padding: 8px 24px 24px;
  scroll-snap-type: x proximity;
}

.screens__row .phone {
  scroll-snap-align: center;
  flex: none;
}

/* ---------- Nosology ---------- */

.nosology {
  background: var(--color-bg);
}

.nosology__band {
  background: linear-gradient(160deg, var(--color-maroon) 0%, var(--color-maroon-dark) 100%);
  color: var(--color-on-maroon);
  padding-block: 40px;
}

.nosology__band h2 {
  color: var(--color-on-maroon);
}

.nosology__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 40px;
  padding-block: 48px;
  max-width: var(--container-w);
  margin: 0 auto;
  padding-inline: 24px;
}

.nosology__grid li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.nosology__grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-maroon);
}

/* ---------- Download ---------- */

.download {
  background: linear-gradient(160deg, var(--color-maroon) 0%, var(--color-maroon-dark) 100%);
  color: var(--color-on-maroon);
  padding-block: 88px 32px;
  text-align: center;
}

.download__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.download__heading h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: var(--color-on-maroon);
}

.rule {
  height: 1px;
  width: 72px;
  background: rgba(255, 255, 255, 0.4);
}

.download__caption {
  margin-top: 12px;
  color: var(--color-on-maroon-muted);
  font-weight: 600;
}

.download__cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.store-card {
  background: var(--color-on-maroon);
  color: var(--color-ink);
  border-radius: var(--radius-md);
  padding: 22px;
  width: 220px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.15s ease;
}

.store-card:hover {
  transform: translateY(-3px);
}

.store-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 18px;
}

.store-card__icon {
  width: 24px;
  height: 24px;
  fill: var(--color-ink);
}

.store-card__qr {
  align-self: center;
  width: 132px;
  height: 132px;
  border-radius: 4px;
}

.download__footer {
  margin-top: 56px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-on-maroon-muted);
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-maroon-darker);
  color: var(--color-on-maroon-muted);
}

.site-footer__inner {
  padding-block: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
}

.site-footer__copy {
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero__inner,
  .goal__inner,
  .team__inner {
    grid-template-columns: 1fr;
  }

  .hero__art {
    order: -1;
    min-height: 340px;
  }

  .team__art {
    order: -1;
  }

  .lg-only {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

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

  .download__cards {
    gap: 16px;
  }

  .phone--back {
    left: -4px;
    top: 24px;
  }

  .phone--front {
    left: 60px;
  }
}
