:root {
  --bg: #eeebe4;
  --surface: #ffffff;
  --surface-hover: #f7f5ef;
  --tag-bg: #e6f0e9;

  --text: #1e1e1e;
  --text-2: rgba(30, 30, 30, 0.6);
  --text-3: rgba(30, 30, 30, 0.5);

  --brand: #2f8b5c;
  --brand-hover: #256f48;

  --cta-rustore: #0077ff;
  --cta-rustore-hover: #0259aa;
  --cta-contact: #f6522e;
  --cta-contact-hover: #d84521;

  --border: rgba(30, 30, 30, 0.1);
  --border-strong: rgba(30, 30, 30, 0.16);
  --shadow-soft: 1px 1px 4px 0 rgba(43, 43, 43, 0.4);

  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 32px;
  --r-pill: 120px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

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

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 16px 48px;
}

.hero__logo {
  width: 140px;
  height: auto;
  margin-bottom: 8px;
}

.hero__title {
  font-size: 48px;
  line-height: 52px;
  font-weight: 700;
  letter-spacing: -0.48px;
  color: var(--brand);
  margin-bottom: 16px;
}

.hero__sub {
  font-size: 18px;
  line-height: 24px;
  color: var(--text-2);
  margin-bottom: 24px;
  max-width: 420px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero__os {
  font-size: 13px;
  line-height: 16px;
  color: var(--text-3);
  margin-top: 4px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-pill);
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--rustore {
  background: var(--cta-rustore);
}
.btn--rustore:hover {
  background: var(--cta-rustore-hover);
}

.btn--contact {
  background: var(--cta-contact);
}
.btn--contact:hover {
  background: var(--cta-contact-hover);
}

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

.screens {
  position: relative;
  padding-block: 32px 48px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  display: flex;
  justify-content: center;
  isolation: isolate;
}

.screens__wave {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  width: 100%;
  height: auto;
  aspect-ratio: 2143 / 569;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}

.screens__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: calc(100% - 24px);
  max-width: 1080px;
  align-items: start;
}

.screens__image {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Features ---------- */

.features {
  padding-block: 16px 48px;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card__tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--tag-bg);
  border: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.48px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 4px;
}

.card__title {
  font-size: 24px;
  line-height: 28px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.24px;
}

.card__title-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: help;
}

.card__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  background: var(--bg);
}

.card__tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 280px;
  padding: 12px 16px;
  background: var(--text);
  color: #ffffff;
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 2;
}

.card__title-inner:hover .card__tooltip,
.card__title-inner:focus-within .card__tooltip {
  opacity: 1;
}

.card__body {
  font-size: 16px;
  line-height: 20px;
  color: var(--text-2);
}

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

.footer {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  line-height: 18px;
  color: var(--text-3);
}

.footer__vk {
  display: inline-flex;
  align-items: center;
  width: 22px;
  height: 22px;
}

.footer__dot {
  color: var(--text-3);
}

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

/* ---------- Breakpoints ---------- */

@media (min-width: 541px) {
  .page {
    padding: 48px 24px 80px;
  }
  .hero__title {
    font-size: 56px;
    line-height: 54px;
    letter-spacing: -0.56px;
  }
  .hero__sub {
    font-size: 20px;
    line-height: 26px;
  }
  .hero__logo {
    width: 160px;
  }
  .btn {
    padding: 16px 28px;
    font-size: 18px;
  }
  .screens__grid {
    gap: 16px;
  }
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (min-width: 768px) {
  .page {
    max-width: 880px;
    padding: 64px 32px 96px;
  }
  .hero {
    padding-block: 24px 64px;
  }
  .hero__logo {
    width: 180px;
    margin-bottom: 16px;
  }
  .hero__title {
    font-size: 72px;
    line-height: 68px;
    letter-spacing: -0.72px;
  }
  .screens {
    padding-block: 32px 64px;
  }
  .screens__grid {
    gap: 24px;
  }
  .features {
    padding-block: 24px 64px;
  }
}

@media (min-width: 1024px) {
  .page {
    max-width: 1080px;
    padding: 80px 40px 120px;
  }
  .hero__title {
    font-size: 84px;
    line-height: 76px;
    letter-spacing: -0.84px;
  }
  .hero__logo {
    width: 200px;
  }
}

@media (min-width: 1280px) {
  .page {
    max-width: 1200px;
  }
}
