@font-face {
  font-family: Manrope;
  src: url("/assets/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --brand-ink: #263469;
  --brand-coral: #f4513c;
  --brand-pale: #f3f3fb;
  --text: #27304a;
  --text-muted: #626b82;
  --line: #e2e5f0;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--brand-pale);
  color: var(--brand-ink);
  font-family: Manrope, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 64px 32px;
}

.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: block; width: 192px; height: auto; }
.status { padding: 8px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--text-muted); font-size: 13px; font-weight: 600; line-height: 20px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: center; gap: 64px; padding: 88px 0; }
.eyebrow { margin: 0 0 24px; color: var(--text-muted); font-size: 13px; font-weight: 700; line-height: 20px; }
h1 { margin: 0; font-size: 56px; font-weight: 800; line-height: 1.14; letter-spacing: -.04em; }
h1 span { color: var(--brand-coral); }
.lead { margin: 32px 0 0; color: var(--text); font-size: 24px; font-weight: 600; line-height: 32px; letter-spacing: -.02em; }
.description { margin: 20px 0 0; color: var(--text-muted); font-size: 16px; line-height: 26px; }
.motif { display: grid; place-items: center; width: 320px; height: 320px; }
.motif img { display: block; width: 264px; height: auto; }
.footer { padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; line-height: 20px; }
.footer p { margin: 0; }
.promise { font-weight: 700; }
.opening { color: var(--text-muted); }
.features { max-width: 60ch; margin: 28px 0 0; padding-left: 16px; border-left: 3px solid var(--brand-coral); color: var(--text); font-size: 15px; line-height: 24px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
a { color: var(--brand-ink); text-decoration-color: rgba(38, 52, 105, .35); text-underline-offset: 3px; }
a:hover { color: var(--brand-coral); text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--brand-coral); outline-offset: 3px; border-radius: 4px; }
.footer .links a { color: var(--text-muted); text-decoration: none; }
.footer .links a:hover, .footer .links a[aria-current="page"] { color: var(--brand-ink); }
a.status { text-decoration: none; }
a.status:hover { border-color: var(--brand-ink); color: var(--brand-ink); }

/* документы: политика конфиденциальности, условия */
.doc-page { grid-template-rows: auto 1fr auto; }
.doc { width: 100%; max-width: 760px; padding: 64px 0 72px; color: var(--text); }
.doc h1 { font-size: 44px; line-height: 1.15; color: var(--brand-ink); }
.doc .doc-lead { margin: 20px 0 0; font-size: 18px; line-height: 28px; color: var(--text); }
.doc h2 { margin: 48px 0 12px; color: var(--brand-ink); font-size: 22px; font-weight: 800; line-height: 30px; letter-spacing: -.02em; scroll-margin-top: 24px; }
.doc p, .doc li { font-size: 15px; line-height: 25px; }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 20px; }
.doc li { margin: 0 0 8px; }
.doc li::marker { color: var(--brand-coral); }
.doc strong { color: var(--brand-ink); }
.doc-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }
.doc-toc a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text-muted); font-size: 13px; font-weight: 600; line-height: 20px; text-decoration: none; }
.doc-toc a:hover { border-color: var(--brand-ink); color: var(--brand-ink); }
.doc-en { margin-top: 56px; padding: 8px 28px 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.doc-en h2 { margin-top: 24px; scroll-margin-top: 24px; }

@media (max-width: 1000px) {
  .page { padding-right: 40px; padding-left: 40px; }
  .hero { grid-template-columns: minmax(0, 1fr) 200px; gap: 32px; padding: 80px 0; }
  .motif { width: 200px; height: 240px; }
  .motif img { width: 176px; }
  h1 { font-size: 44px; }
}

@media (max-width: 650px) {
  .page { padding: 28px 20px 24px; }
  .header { align-items: center; gap: 16px; }
  .logo { width: 160px; }
  .status { max-width: 108px; padding: 6px 10px; font-size: 11px; line-height: 16px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 64px 0 40px; }
  .eyebrow { margin-bottom: 20px; }
  h1 { font-size: 36px; line-height: 42px; }
  .lead { margin-top: 24px; font-size: 20px; line-height: 28px; }
  .desktop-break { display: none; }
  .description { max-width: 34ch; margin-top: 16px; font-size: 15px; line-height: 24px; }
  .motif { width: 96px; height: 96px; justify-self: end; }
  .motif img { width: 96px; }
  .footer { align-items: flex-start; flex-direction: column; gap: 8px; padding-top: 20px; }
  .features { margin-top: 20px; font-size: 14px; line-height: 22px; }
  .doc { padding: 40px 0 48px; }
  .doc h1 { font-size: 32px; line-height: 38px; }
  .doc .doc-lead { margin-top: 16px; font-size: 16px; line-height: 25px; }
  .doc h2 { margin-top: 36px; font-size: 19px; line-height: 26px; }
  .doc-en { padding: 4px 18px 12px; }
}

@media (max-width: 360px) {
  h1 { font-size: 32px; line-height: 38px; }
}
