:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --ink: #1d2433;
  --muted: #657085;
  --line: #d9ded8;
  --blue: #3154d4;
  --blue-dark: #203da8;
  --green: #2f7d63;
  --amber: #e8b34d;
  --rose: #d35b6f;
  --shadow: 0 20px 60px rgba(37, 47, 62, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
}

.top-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 15px;
}

.top-nav a,
.site-footer a {
  text-decoration: none;
}

.hero,
.section,
.legal-page {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
  gap: 48px;
  align-items: center;
  padding: 36px 0 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 800;
}

.button-primary {
  background: var(--blue);
  color: white;
}

.button-secondary {
  background: #e9ece5;
  color: var(--ink);
}

.phone-showcase {
  min-height: 560px;
  position: relative;
}

.phone {
  position: absolute;
  width: 270px;
  min-height: 540px;
  border-radius: 38px;
  padding: 24px;
  background: #111827;
  color: white;
  box-shadow: var(--shadow);
  border: 8px solid #252b38;
}

.phone-main {
  right: 120px;
  top: 0;
  transform: rotate(-4deg);
}

.phone-side {
  right: 0;
  top: 80px;
  transform: rotate(6deg);
  background: #fefefe;
  color: var(--ink);
}

.phone-bar {
  width: 72px;
  height: 6px;
  margin: 0 auto 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.phone-side .phone-bar {
  background: #d8dce6;
}

.screen-title {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 800;
}

.book-card,
.translate-card,
.plan-line,
.word-chip {
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}

.book-card {
  background: #243047;
}

.book-card.strong {
  background: #3551d4;
}

.translate-card {
  margin-top: 22px;
  background: #f3d17a;
  color: #241b08;
}

.translate-card span,
.mini-screen span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-line {
  border: 1px solid #d7ddeb;
}

.plan-line.accent {
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 800;
}

.word-chip {
  background: #eef4ef;
  color: var(--green);
  font-weight: 800;
}

.section {
  padding: 76px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
}

.feature-grid,
.plan-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.plan-card,
.info-card,
.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(37, 47, 62, 0.06);
}

.feature-card,
.plan-card,
.info-card,
.legal-card {
  padding: 24px;
}

.feature-card p,
.plan-card p,
.info-card p,
.legal-card p,
.legal-page li {
  color: var(--muted);
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: 1.12fr repeat(2, minmax(0, 0.94fr));
  gap: 18px;
  align-items: start;
}

.app-shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(37, 47, 62, 0.06);
  padding: 14px;
}

.app-shot-large {
  grid-row: span 2;
}

.app-shot img {
  width: 100%;
  aspect-ratio: 9 / 20;
  display: block;
  border-radius: 6px;
  object-fit: cover;
  object-position: top center;
  background: #eef2ff;
}

.app-shot figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
}

.plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-card.highlighted {
  border-color: #b8c4f5;
  background: #f9fbff;
}

.price {
  margin-bottom: 10px;
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  color: var(--blue);
}

.payment-note {
  margin-top: 18px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

.site-footer p {
  max-width: 560px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-page {
  padding: 48px 0 72px;
}

.legal-page header {
  max-width: 860px;
  margin-bottom: 32px;
}

.legal-page .lead {
  font-size: 18px;
}

.legal-card {
  margin-bottom: 16px;
}

.legal-card h2 {
  font-size: 28px;
}

.legal-card h3 {
  margin-top: 22px;
}

.legal-card ul,
.legal-card ol {
  padding-left: 22px;
}

.info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.requisites {
  display: grid;
  gap: 10px;
}

.requisites div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.requisites dt {
  color: var(--muted);
  font-weight: 700;
}

.requisites dd {
  margin: 0;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .phone-showcase {
    min-height: 520px;
  }

  .phone-main {
    left: 4%;
    right: auto;
  }

  .phone-side {
    right: 4%;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    gap: 10px 14px;
  }

  .hero {
    padding-top: 18px;
  }

  .phone-showcase {
    min-height: 450px;
    overflow: hidden;
  }

  .phone {
    width: 220px;
    min-height: 440px;
  }

  .phone-main {
    left: 0;
  }

  .phone-side {
    right: 0;
  }

  .feature-grid,
  .plan-grid,
  .screenshot-gallery,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .app-shot-large {
    grid-row: auto;
  }

  .requisites div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
