:root {
  --blue: #079fdf;
  --blue-deep: #0876b7;
  --navy: #0f172a;
  --text: #3e5268;
  --muted: #718096;
  --line: #dceaf3;
  --soft: #f5fbfe;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(23, 73, 104, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220,234,243,.75);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand img {
  width: 112px;
  height: 58px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  transition: color .2s ease;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 80px;
}

.hero-grid {
  min-height: 610px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 36px;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--blue-deep);
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 24px;
  font-size: clamp(56px, 6vw, 88px);
  line-height: .94;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 570px;
  margin-bottom: 30px;
  font-size: 19px;
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 22px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(7,159,223,.22);
  transition: transform .2s ease, box-shadow .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(7,159,223,.3);
}

.hero-visual {
  position: relative;
  min-height: 590px;
}

.hero-blob {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  left: -10px;
  top: -60px;
  background: radial-gradient(circle at 35% 35%, #effaff, #dff4fd 68%, #f7fcff 100%);
}

.hero-device {
  position: absolute;
  z-index: 4;
  width: 520px;
  right: -5px;
  bottom: 20px;
  filter: drop-shadow(0 28px 28px rgba(39,74,96,.22));
  border-radius: 24px;
}

.phone {
  position: absolute;
  z-index: 5;
  width: 235px;
  height: 470px;
  left: 35px;
  top: 38px;
  padding: 11px;
  border-radius: 36px;
  background: #171717;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  transform: rotate(-4deg);
}

.phone-notch {
  position: absolute;
  z-index: 8;
  width: 78px;
  height: 18px;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #171717;
  border-radius: 0 0 12px 12px;
}

.phone-screen {
  height: 100%;
  padding: 38px 16px 20px;
  border-radius: 27px;
  background: #fff;
  color: var(--navy);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.phone-back { font-size: 22px; line-height: 1; }

.phone-label {
  margin: 34px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}

.bpm {
  color: var(--blue);
  text-align: center;
  font-weight: 800;
  font-size: 38px;
  line-height: 1.1;
}

.bpm-label,
.timer-label {
  color: var(--muted);
  text-align: center;
  font-size: 10px;
}

.ecg-card {
  margin-top: 28px;
  padding: 12px 8px;
  border-radius: 14px;
  background:
    linear-gradient(#eef6fa 1px, transparent 1px),
    linear-gradient(90deg, #eef6fa 1px, transparent 1px),
    #fbfdfe;
  background-size: 18px 18px;
  color: var(--blue);
}

.ecg-card svg { display: block; width: 100%; }

.timer-label { margin-top: 18px; }

.timer {
  text-align: center;
  color: var(--blue-deep);
  font-size: 20px;
  font-weight: 800;
}

.phone-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

.phone-actions span {
  padding: 7px 10px;
  border-radius: 999px;
  color: white;
  font-size: 9px;
  font-weight: 700;
}

.phone-actions span:first-child { background: #f2a03c; }
.phone-actions span:last-child { background: #e05a61; }

.ecg-line {
  position: absolute;
  z-index: 2;
  width: 580px;
  right: -100px;
  top: 90px;
  color: #4db6ed;
  opacity: .95;
}

.section {
  padding: 86px 0;
}

.section-soft {
  background: linear-gradient(180deg, #f8fcfe, #f2f9fd);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.lead,
.support-text {
  max-width: 820px;
  color: var(--text);
  font-size: 18px;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 46px;
}

.feature-card {
  padding: 8px 10px 8px 0;
}

.feature-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #e6f6fd;
  color: var(--blue);
  font-size: 30px;
  font-weight: 800;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
}

.gallery-card {
  margin: 0;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 1.28 / 1;
  object-fit: cover;
  border-radius: 20px;
  background: #edf4f7;
  box-shadow: var(--shadow);
}

.gallery-card figcaption {
  padding: 13px 4px 0;
  color: var(--text);
  font-size: 14px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
}

.person-card {
  display: flex;
  gap: 18px;
  min-height: 210px;
  padding: 24px;
  border: 1px solid #e5f0f6;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff, #f4fbfe);
  box-shadow: 0 14px 36px rgba(33, 83, 112, .07);
}

.avatar-placeholder {
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dceff8;
  color: #6d94a9;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.person-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.3;
}

.person-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.person-card .role {
  margin-bottom: 7px;
  color: var(--blue-deep);
  font-weight: 800;
}

.legal-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 2.8fr;
  gap: 0;
  margin-top: 32px;
  border: 1px solid #dceef7;
  border-radius: 22px;
  overflow: hidden;
  background: #eef9fe;
}

.legal-card > div {
  padding: 24px 26px;
  border-right: 1px solid #d6e8f1;
}

.legal-card > div:last-child { border-right: 0; }

.legal-card span {
  display: block;
  margin-bottom: 6px;
  color: #7894a4;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.legal-card strong {
  font-size: 16px;
  line-height: 1.45;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 54px;
}

.support-logos {
  display: flex;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  justify-content: flex-end;
  align-items: center;
}

.logo-box {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid #e3eef3;
  border-radius: 18px;
  background: white;
  box-shadow: 0 12px 32px rgba(35,74,98,.08);
}

.logo-box img {
  max-height: 105px;
  width: 100%;
  object-fit: contain;
}

.logo-box.purple { background: #7b00ff; }

.footer {
  padding: 32px 0;
  border-top: 1px solid #dfeaf0;
  background: linear-gradient(90deg, #eef9fe, #fff);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.footer strong {
  color: var(--blue-deep);
  text-transform: uppercase;
}

.footer p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  font-weight: 700;
}

.footer-links a:hover { color: var(--blue); }

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

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 700px;
  }

  .hero-visual {
    min-height: 620px;
  }

  .features,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-card > div:nth-child(2) { border-right: 0; }
  .legal-card > div:nth-child(-n+2) { border-bottom: 1px solid #d6e8f1; }

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .header-inner { min-height: 72px; }

  .brand img { width: 96px; }

  .hero {
    padding-top: 36px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .hero-blob {
    width: 520px;
    height: 520px;
  }

  .phone {
    width: 175px;
    height: 352px;
    left: 2px;
    top: 44px;
    border-radius: 28px;
  }

  .phone-screen {
    padding: 30px 11px 13px;
    border-radius: 21px;
  }

  .phone-label { margin-top: 18px; }
  .bpm { font-size: 29px; }
  .ecg-card { margin-top: 15px; }
  .timer-label { margin-top: 10px; }

  .hero-device {
    width: 390px;
    right: -70px;
    bottom: 34px;
  }

  .ecg-line {
    width: 450px;
    right: -170px;
    top: 85px;
  }

  .section { padding: 64px 0; }

  .features,
  .gallery,
  .team-grid,
  .legal-card,
  .support-logos {
    grid-template-columns: 1fr;
  }

  .feature-card {
    display: grid;
    grid-template-columns: 62px 1fr;
    column-gap: 15px;
  }

  .feature-icon {
    grid-row: 1 / span 2;
    width: 58px;
    height: 58px;
  }

  .feature-card h3 {
    margin-top: 6px;
  }

  .person-card {
    min-height: 0;
  }

  .legal-card > div,
  .legal-card > div:nth-child(2),
  .legal-card > div:nth-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid #d6e8f1;
  }

  .legal-card > div:last-child {
    border-bottom: 0;
  }

  .support-logos {
    grid-template-columns: 1fr 1fr;
  }

  .logo-box:last-child {
    grid-column: 1 / -1;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 460px) {
  .hero-visual {
    min-height: 450px;
  }

  .phone {
    width: 150px;
    height: 305px;
  }

  .phone-top strong {
    font-size: 9px;
  }

  .phone-actions {
    display: none;
  }

  .hero-device {
    width: 330px;
    right: -95px;
  }

  .support-logos {
    grid-template-columns: 1fr;
  }

  .logo-box:last-child {
    grid-column: auto;
  }
}


/* Реальный скриншот приложения внутри макета телефона */
.phone {
  overflow: hidden;
  padding: 10px;
}

.phone::before {
  content: "";
  position: absolute;
  z-index: 9;
  width: 82px;
  height: 20px;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  background: #171717;
  border-radius: 0 0 13px 13px;
  pointer-events: none;
}

.phone-screen {
  height: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 27px;
  background: #fbf5fb;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 760px) {
  .phone-screen {
    padding: 0;
    border-radius: 21px;
  }

  .phone::before {
    width: 62px;
    height: 15px;
    top: 8px;
  }
}

@media (max-width: 460px) {
  .phone::before {
    width: 54px;
    height: 13px;
  }
}

.avatar {
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.contact-card {
  width: fit-content;
  max-width: 100%;
  margin: 18px 0 0 auto;
  padding: 20px 26px;

  display: flex;
  flex-direction: column;

  border: 1px solid #dceef7;
  border-radius: 18px;
  background: #eef9fe;
}

.contact-card span {
  margin-bottom: 8px;

  color: #7894a4;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contact-card a {
  width: fit-content;

  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;

  transition: color .2s ease;
}

.contact-card a:hover {
  color: var(--blue);
}