:root {
  --paper: #f6f4f0;
  --ink: #141311;
  --body: #2e2a26;
  --muted: #6b6560;
  --line: #e6e1d8;
  --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: 18px;
  line-height: 1.6;
  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: var(--paper);
  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:not(.btn) { text-decoration: none; color: var(--body); }
.nav-links a:not(.btn):hover,
.nav-links a:not(.btn)[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: #fffaf7;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
}
a.btn:not(.btn-ghost),
a.btn:not(.btn-ghost):hover,
a.btn:not(.btn-ghost):focus,
a.btn:not(.btn-ghost):focus-visible,
button.btn:not(.btn-ghost),
button.btn:not(.btn-ghost):hover,
button.btn:not(.btn-ghost):focus,
button.btn:not(.btn-ghost):focus-visible {
  color: #fffaf7;
  background: var(--accent);
  border-color: var(--accent);
}
a.btn:not(.btn-ghost):hover,
a.btn:not(.btn-ghost):focus-visible,
button.btn:not(.btn-ghost):hover,
button.btn:not(.btn-ghost):focus-visible {
  background: #8e1c13;
  border-color: #8e1c13;
  color: #fffaf7;
}
.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.03em; line-height: 1.08; font-weight: 600; }
h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.05;
  margin: 0 0 16px;
  max-width: 9em;
  color: var(--ink);
}
.lead {
  max-width: 36ch;
  margin: 0;
  color: var(--body);
  font-size: 18px;
  line-height: 1.5;
}
.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:not(.btn), .doc a:not(.btn), .contact a:not(.btn) { 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;
  max-width: 100%;
  background: var(--white);
  border: 1px solid #e3ddd4;
  border-radius: 6px;
  box-shadow: 0 10px 28px -22px rgba(20, 19, 17, 0.45);
  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: 104px 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: 22px 0 36px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.footer p { margin: 0; line-height: 1.5; max-width: none; }
.footer a:not(.btn) { color: var(--ink); text-decoration: none; }
.footer a:not(.btn):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; font-size: 18px; line-height: 1.65; }
.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: 980px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "app" "buy";
    row-gap: 28px;
    padding-top: 36px;
  }
  .hero-text { padding-top: 0; }
  .steps, .sale, .path, .offer, .morning, .reads { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wrap { width: min(1120px, calc(100% - 32px)); }
  .nav { padding: 0 16px; }
  .nav-links { gap: 12px; }
  .nav-links a:not(.btn) { display: none; }
  .section { padding: 64px 0; }
  .tarifs, .prices { grid-template-columns: 1fr; }
  h1 { font-size: 40px; }
  .prices dd { font-size: 34px; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn, .actions .quiet { width: 100%; text-align: center; }
  .app .line, .kb-line { flex-direction: column; gap: 2px; }
  .kb-line span:last-child { text-align: left; }
  .doc h1 { font-size: 34px; }
}

@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 ol .line { animation: settle 0.45s ease both; }
  .app ol .line:nth-child(2) { animation-delay: 0.08s; }
  .app ol .line:nth-child(3) { animation-delay: 0.16s; }
}

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

a.btn:not(.btn-ghost),
a.btn:not(.btn-ghost):hover,
a.btn:not(.btn-ghost):focus,
a.btn:not(.btn-ghost):focus-visible,
.contact a.btn,
.contact a.btn:hover,
.contact a.btn:focus,
.footer a.btn,
.footer a.btn:hover,
.footer a.btn:focus,
.nav-links a.btn,
.nav-links a.btn:hover,
.nav-links a.btn:focus {
  color: #fff !important;
  background: #b42318 !important;
  border-color: #b42318 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  text-indent: 0 !important;
  overflow: visible !important;
}
a.btn:not(.btn-ghost):hover,
a.btn:not(.btn-ghost):focus-visible,
.contact a.btn:hover,
.footer a.btn:hover,
.nav-links a.btn:hover {
  background: #8e1c13 !important;
  border-color: #8e1c13 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
