:root {
  --paper: #f4f1ea;
  --ink: #1a1814;
  --body: #3a342c;
  --muted: #6d665c;
  --line: #e2dbd0;
  --white: #fffcf8;
  --accent: #b42318;
  --accent-ink: #fffaf7;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --nav: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: #f0d2cc; color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--nav);
  padding: 0 28px;
  background: #f4f1ea;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 16px;
}
.brand img { width: 22px; height: 22px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}
.nav-links a { text-decoration: none; color: var(--body); }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 10px 14px;
  text-decoration: none;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
}
.btn:hover { background: #8e1c13; border-color: #8e1c13; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.quiet {
  align-self: center;
  font-size: 14px;
  font-weight: 600;
  text-underline-offset: 3px;
}
.quiet:hover { color: var(--accent); }

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  grid-template-areas:
    "text app"
    "buy app";
  column-gap: 72px;
  row-gap: 28px;
  align-items: start;
  padding: 56px 0 28px;
  text-align: left;
}
.hero-text { grid-area: text; padding-top: 12px; }
.hero-buy { grid-area: buy; }
.app { grid-area: app; align-self: center; }

h1, h2, h3 { letter-spacing: -0.034em; line-height: 1.02; font-weight: 600; }
h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(52px, 6vw, 84px);
  line-height: 0.92;
  margin: 0 0 18px;
  max-width: 8em;
  color: var(--ink);
}
.lead {
  max-width: 34ch;
  margin: 0;
  color: var(--body);
  font-size: 18px;
  line-height: 1.45;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.fine { color: var(--muted); font-size: 14px; line-height: 1.45; max-width: 46ch; }
.fine a, .doc a, .contact a { color: var(--accent); }

.prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 0 0 14px;
}
.prices div { border-top: 1px solid var(--ink); padding-top: 10px; }
.prices dt { margin: 0; color: var(--muted); font-size: 13px; font-weight: 500; }
.prices dd {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.prices dd span { font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px; }

.app {
  margin: 0;
  background: var(--white);
  border: 1px solid #ddd6cb;
  border-radius: 10px;
  box-shadow: 0 30px 50px -36px rgba(26, 24, 20, 0.55), 0 1px 0 rgba(26, 24, 20, 0.04);
  overflow: hidden;
}
.app-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.app-bar span:first-child { color: var(--ink); font-weight: 600; }
.app-search { padding: 18px 18px 8px; }
.app-search > span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.typed {
  margin: 0;
  min-height: 1.45em;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hint { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.app-block { padding: 8px 18px 16px; }
.app-k {
  margin: 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.app ol { list-style: none; margin: 0; padding: 0; }
.app .line,
.kb-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.kb-line span:last-child { color: var(--muted); font-size: 13px; text-align: right; }

.section { padding: 88px 0; }
.section h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 12px;
  max-width: 16ch;
}
.sub { color: var(--body); max-width: 58ch; margin-top: 0; }

.steps, .sale, .path, .reads {
  display: grid;
  gap: 28px 48px;
  margin-top: 32px;
}
.steps, .sale { grid-template-columns: 1fr 1fr; }
.path, .reads { grid-template-columns: repeat(3, 1fr); }
.steps article,
.sale article,
.path article,
.quota,
.reads a,
.morning,
.offer,
.contact,
.glass {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.steps article,
.sale article,
.path article {
  border-top: 1px solid var(--line);
  padding: 16px 0 0;
}
.num {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0;
  text-shadow: none;
}
.sale h3, .steps h3, .quota h3 { margin: 0 0 8px; font-size: 22px; }
.sale p, .steps p, .path p, .quota li, .morning p, .reads p { color: var(--body); }
.path strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}
.k {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.quota { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 18px; }
.quota ul, .ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.quota li, .ticks li { position: static; padding: 0; color: var(--body); }
.quota li::before, .ticks li::before { content: none; }
.ticks li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); }

.morning {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
  padding: 0;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.morning h2 { max-width: 12ch; }
.morning ol { margin: 0; padding: 0; list-style: none; }
.morning li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  background: none;
  border-radius: 0;
}
.morning strong { color: var(--ink); font-weight: 600; }

.offer {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}
.price {
  font-family: var(--serif);
  font-size: 44px;
  letter-spacing: -0.03em;
  margin: 4px 0;
  line-height: 1;
  color: var(--ink);
}
.price small { font-family: var(--sans); font-size: 14px; color: var(--muted); letter-spacing: 0; }
.tarifs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 8px 0 16px;
  max-width: none;
  text-align: left;
}
.tarifs article { padding: 0; }
.tarifs p { margin: 0; color: var(--body); }

.reads a {
  display: block;
  padding: 16px 0 0;
  text-decoration: none;
  min-height: 0;
  border-top: 1px solid var(--line);
}
.reads h3 { margin: 8px 0; font-size: 22px; }
.reads a:hover h3 { color: var(--accent); }

.contact { text-align: left; padding: 0; border-top: 1px solid var(--line); padding-top: 28px; }
.contact h2 { max-width: 12ch; }
.contact .btn { margin-top: 8px; }

.catalog { display: grid; gap: 0; margin-top: 28px; }
.catalog a {
  display: block;
  padding: 22px 0;
  text-decoration: none;
  border-top: 1px solid var(--line);
}
.catalog h2 { font-size: 28px; max-width: none; margin: 6px 0; }
.catalog p { color: var(--body); margin: 0; max-width: 62ch; }
.catalog a:hover h2 { color: var(--accent); }

.footer {
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { color: var(--accent); }

.doc { padding: 0; background: none; border: 0; max-width: 980px; }
.doc h1 {
  font-size: clamp(36px, 4.4vw, 56px);
  max-width: 18em;
  margin: 8px 0 12px;
}
.doc h2 {
  font-size: 28px;
  margin: 36px 0 8px;
  max-width: none;
}
.doc p, .doc li { color: var(--body); }
.doc p { max-width: 68ch; }
.doc ul, .doc ol { padding-left: 18px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 10px 8px;
  vertical-align: top;
}
.doc th { color: var(--ink); font-weight: 600; }
.updated { color: var(--muted); font-size: 14px; }
.post h2 { font-size: 26px; }
.box {
  margin: 28px 0;
  padding: 16px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: none;
}
.box h2 { font-size: 22px; margin-top: 0; }

@media (max-width: 860px) {
  .wrap { width: min(1120px, calc(100% - 32px)); }
  .nav { padding: 0 16px; }
  .nav-links a:not(.btn) { display: none; }
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "app" "buy";
    row-gap: 22px;
    padding-top: 28px;
  }
  .hero-text { padding-top: 0; }
  .steps, .sale, .path, .offer, .morning, .reads, .tarifs, .prices { grid-template-columns: 1fr; }
  h1 { font-size: 46px; }
  .prices dd { font-size: 28px; }
  .app .line, .kb-line { flex-direction: column; gap: 2px; }
  .kb-line span:last-child { text-align: left; }
}

@media (max-width: 720px) {
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc table, .doc tbody, .doc tr, .doc th, .doc td { display: block; width: auto; }
  .doc tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .doc td { border: 0; padding: 3px 0; }
  .doc td:first-child { color: var(--ink); font-weight: 600; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .app .line,
  .kb-line {
    animation: settle 0.55s ease both;
  }
  .app .line:nth-child(1) { animation-delay: 0.85s; }
  .app .line:nth-child(2) { animation-delay: 1.25s; }
  .app .line:nth-child(3) { animation-delay: 1.65s; }
  .kb-line { animation-delay: 2.15s; }
}

@keyframes settle {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
