@font-face {
  font-family: "Unbounded";
  src: url("/fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("/fonts/unbounded-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Golos Text";
  src: url("/fonts/golos-text-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("/fonts/golos-text-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

:root {
  --paper: #eef1f5;
  --sheet: #ffffff;
  --ink: #1a2233;
  --muted: #5c6676;
  --line: #cdd3dc;
  --pencil: #c2362b;
  --marker: #ffe45c;

  --display: "Unbounded", "Arial Black", sans-serif;
  --text: "Golos Text", "Segoe UI", Roboto, sans-serif;

  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-3: clamp(1.9rem, 1.3rem + 2.8vw, 3.4rem);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--text);
}

a { color: inherit; text-decoration-color: var(--pencil); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--pencil); }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}
.logo { font: 700 1.15rem/1 var(--display); text-decoration: none; letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.top nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }

.lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding-block: 2.5rem 4rem;
}
@media (min-width: 900px) {
  .lead { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; padding-top: 4rem; }
}

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; }
h1 { font-size: var(--step-3); font-weight: 600; line-height: 1.08; margin: 0 0 1.25rem; }
h2 { font-size: var(--step-1); font-weight: 600; margin: 0 0 1.5rem; }
h3 { font-size: 1.05rem; font-weight: 500; line-height: 1.35; margin: 0 0 0.4rem; }

.lead p { max-width: 34rem; color: var(--muted); margin: 0; }

/* Черновик модели и правка редактора: главная картинка сайта. */
.draft {
  position: relative;
  background: var(--sheet);
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 1px 0 var(--line), 12px 14px 0 -2px #dde2ea;
  transform: rotate(-0.6deg);
}
.draft .prompt { font-size: 0.9rem; color: var(--muted); margin: 0 0 1rem; padding-bottom: 0.9rem; border-bottom: 1px dashed var(--line); }
.draft .prompt b { color: var(--ink); font-weight: 500; }
.draft p.answer { margin: 0; line-height: 1.85; max-width: none; color: var(--ink); }
.draft del { color: #8a93a2; text-decoration: line-through 2px var(--pencil); }
.draft ins {
  text-decoration: none;
  color: var(--pencil);
  font-weight: 500;
  background: linear-gradient(transparent 60%, rgba(255, 228, 92, 0.75) 60%);
}
.draft .note {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--pencil);
}

.notes { padding-block: 3rem 4rem; border-top: 2px solid var(--ink); }
.feature { display: grid; gap: 0.5rem; padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .feature { grid-template-columns: 11rem minmax(0, 40rem); column-gap: 2rem; } }
.feature h3 { font-size: var(--step-1); font-weight: 600; }
.feature p { margin: 0; color: var(--muted); }

.short { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
@media (min-width: 900px) { .short { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4rem; } }
.short li { display: grid; gap: 0.25rem; }
.short p { margin: 0; color: var(--muted); max-width: 34rem; }
time { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.foot { padding-block: 2rem 3rem; font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); }

/* Страница статьи */
.article { max-width: 40rem; padding-block: 3rem 4rem; }
.article h1 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); }
.article h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; }
.article p, .article li { line-height: 1.7; }
.article blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--sheet);
  border-left: 4px solid var(--pencil);
  font-size: 0.95rem;
}
.article .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }

/* Форма обратной связи: лист бумаги, поля как строки бланка */
.contact { padding-block: 3rem 4rem; }
.contact-lead { max-width: 38rem; margin: 0 0 1.5rem; color: var(--muted); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; max-width: 46rem; padding: 1.75rem; background: var(--sheet); border: 1px solid var(--line); box-shadow: 6px 6px 0 var(--ink); }
.contact-form label { display: grid; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; }
.contact-form .contact-message { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { font: inherit; font-size: var(--step-0); font-weight: 400; color: var(--ink); background: transparent; border: 0; border-bottom: 2px solid var(--line); padding: 0.4rem 0; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--pencil); background: linear-gradient(transparent 70%, var(--marker) 70%); }
.contact-form button { justify-self: start; font: 600 0.95rem var(--display); color: var(--sheet); background: var(--ink); border: 0; padding: 0.8rem 1.4rem; cursor: pointer; }
.contact-form button:hover { background: var(--pencil); }
.contact-form button:active { transform: translate(2px, 2px); }
.contact-form button:focus-visible { outline: 3px solid var(--pencil); outline-offset: 3px; }
@media (max-width: 640px) { .contact-form { grid-template-columns: 1fr; padding: 1.25rem; box-shadow: 4px 4px 0 var(--ink); } }
