/* Набросок pagesout.com. Не продакшен. */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,520;9..144,640&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

:root {
  --paper: #f3efe6;
  --card: #fffdf8;
  --ink: #1c1916;
  --muted: #6f675f;
  --line: #ddd4c6;
  --stamp: #b8431f;
  --max: 1080px;
  --serif: Fraunces, "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.5 var(--sans);
}
a { color: inherit; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--card);
  padding: 6px 10px;
  z-index: 9;
}
.skip:focus { top: 12px; }

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 640;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}
.mark { width: 18px; height: 18px; flex: none; }
.nav { display: flex; gap: 18px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a[aria-current="page"],
.nav a:hover { color: var(--ink); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.langs {
  margin: 0;
  display: flex;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.langs a { text-decoration: none; }
.langs .soon { color: var(--muted); font-weight: 500; }

.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
}
.btn:hover { background: var(--stamp); }

a:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--stamp);
  outline-offset: 3px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 20px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--stamp);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, h2, .path-title, .path-size, .giant, .brand, .foot strong {
  font-family: var(--serif);
}
.hero h1 {
  margin: 0;
  font-weight: 520;
  font-size: clamp(2.5rem, 4.8vw, 4.15rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.lead { margin: 1.05rem 0 0; max-width: 38rem; font-size: 1.12rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
  margin-top: 1.5rem;
}
.quiet { font-weight: 500; }

.hero-fig { margin: 0; }
.stack { position: relative; height: 440px; }
.sheet {
  position: absolute;
  width: 262px;
  height: 348px;
  background: var(--card);
  border: 1px solid #e4dccb;
  box-shadow: 0 16px 36px rgba(48, 34, 14, 0.08);
}
.sheet-c { right: 0; top: 34px; transform: rotate(7deg); background: #e5ddd0; }
.sheet-b { right: 34px; top: 18px; transform: rotate(-3.5deg); background: #f6f2e9; }
.sheet-a {
  right: 62px;
  top: 40px;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
}
.shot {
  flex: 1;
  background: #f6f1e8;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ph {
  flex: 1;
  min-height: 160px;
  background:
    linear-gradient(#e4d9c8, #e4d9c8) center / 100% 1px no-repeat,
    linear-gradient(#e4d9c8, #e4d9c8) center / 1px 100% no-repeat,
    #efe6d8;
}
.ln { height: 7px; background: #e3d9c8; }
.ln.short { width: 58%; }
.sheet-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-fig figcaption {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

.paths { padding-top: 28px; }
.paths h2, .steps h2, .block h2, main > h2 {
  margin: 1.6rem 0 0;
  font-weight: 520;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
}
.paths ol, .steps ol { list-style: none; margin: 0; padding: 0; }
.paths ol { border-top: 1px solid var(--line); margin-top: 14px; }
.paths a {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "kicker size"
    "title size"
    "text size";
  gap: 0.1rem 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.path-kicker {
  grid-area: kicker;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.path-title {
  grid-area: title;
  font-size: 1.65rem;
  font-weight: 520;
  letter-spacing: -0.03em;
}
.path-text { grid-area: text; color: var(--muted); }
.path-size {
  grid-area: size;
  align-self: center;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 520;
  letter-spacing: -0.03em;
}
.paths a:hover .path-title { text-decoration: underline; text-underline-offset: 4px; }
.paths a:hover .path-size { color: var(--stamp); }

.steps { padding-top: 42px; }
.steps ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 14px;
}
.steps li { padding: 16px 22px 4px 0; }
.steps li + li { border-left: 1px solid var(--line); padding-left: 22px; }
.steps span {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--stamp);
}
.steps p { margin: 0.35rem 0 0; }

.limits {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.limits a, .prose a, .aside a, .related a { color: var(--ink); }

.page-head { padding: 42px 0 8px; }
.crumb { margin: 0 0 14px; color: var(--muted); font-size: 0.92rem; }
.crumb a { color: inherit; text-underline-offset: 3px; }
.page-head h1 {
  margin: 0;
  max-width: 16ch;
  font-weight: 520;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
}
.giant {
  margin: 0;
  font-weight: 520;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-align: right;
}
.giant span { display: block; }

.spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 28px 0 8px;
  border-top: 1px solid var(--line);
}
.spec div { padding: 14px 18px 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: 0.82rem; }
.spec dd { margin: 0.15rem 0 0; }

.aside { max-width: 62ch; color: var(--muted); }

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 32px 0 12px;
  padding: 22px 24px;
  background: var(--ink);
  color: var(--paper);
}
.cta-band h2 {
  margin: 0;
  font-weight: 520;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  letter-spacing: -0.03em;
}
.cta-band p { margin: 0.3rem 0 0; color: #d9d0c4; }
.cta-band .btn { background: var(--paper); color: var(--ink); flex: none; }
.cta-band .btn:hover { background: white; color: var(--stamp); }

.related { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 8px 0 0; list-style: none; }
.related a { text-underline-offset: 3px; }

.prose { width: min(68ch, 100%); padding-bottom: 12px; }
.prose h1 { max-width: none; }
.updated { margin: 0.8rem 0 0; color: var(--muted); }
.prose h2 {
  margin: 1.8rem 0 0.35rem;
  font-weight: 520;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.prose p { margin: 0.45rem 0 0; }
.prose ul { margin: 0.35rem 0 0; padding-left: 1.15rem; }

.operator {
  margin: 22px 0 4px;
  padding: 16px 18px;
  border: 1px solid var(--stamp);
  background: #fbf4ee;
}
.operator h2 { margin-top: 0; }

.faq { width: min(68ch, 100%); margin-top: 22px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0.95rem 0;
  cursor: pointer;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--stamp);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1rem; max-width: 62ch; }

.foot {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}
.foot-in {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
.foot strong { display: block; font-size: 1.25rem; font-weight: 640; letter-spacing: -0.03em; }
.foot p { margin: 0.35rem 0 0; color: var(--muted); }
.foot a { display: block; padding: 0.12rem 0; color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot nav { display: block; }

@media (max-width: 800px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .top-in { flex-wrap: wrap; gap: 10px 16px; min-height: 0; padding: 12px 0; }
  .nav { order: 3; width: 100%; }
  .top-end { margin-left: auto; }
  .hero, .steps ol, .foot-in, .spec, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; gap: 8px; }
  .stack { width: 280px; height: 390px; margin: 8px auto 0; }
  .sheet { width: 230px; height: 310px; }
  .sheet-a { right: 18px; top: 28px; }
  .sheet-b { right: 8px; }
  .sheet-c { right: 0; }
  .hero-fig figcaption { text-align: left; }
  .paths a {
    grid-template-columns: 1fr;
    grid-template-areas: "kicker" "title" "text" "size";
  }
  .path-size { margin-top: 4px; }
  .steps li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .giant { text-align: left; padding-top: 8px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
