/* «Проверено вручную» — оформление:
   белое полотно, системный шрифт, один столбец 720 px, большие вертикальные отступы,
   акцент — системный синий. Внешних шрифтов, скриптов и счётчиков нет. */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { color-scheme: light only; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2.5rem 8rem;
  line-height: 1.6;
  background: #fff;
  color: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 8rem 0 3rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 3rem 0 1rem;
}

p {
  font-size: 1.25rem;
  line-height: 1.5;
  color: #1d1d1f;
  margin-bottom: 2rem;
}

.tagline {
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.3;
  color: #6e6e73;
  margin-bottom: 1.25rem;
}

.stamp {
  font-size: 0.8125rem;
  color: #6e6e73;
  margin-bottom: 5rem;
}

a { color: #06c; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus { outline: 2px solid #007aff; outline-offset: 2px; }

strong { font-weight: 700; color: #000; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.4;
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
  border-radius: 4px;
  padding: 1px 5px;
  color: #1d1d1f;
}

/* ---------- примеры-переписка ---------- */

.example-section { margin: 4rem 0; }

.section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 1.5rem;
}

.section-label::before {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  font-size: 1.375rem;
  font-weight: 700;
}

.section-label.bad::before { content: '\2715'; color: #ff3b30; }
.section-label.good::before { content: '\2713'; color: #34c759; }

.chat-window {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.chat-message { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
.chat-message:last-child { margin-bottom: 0; }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  flex-shrink: 0;
  background-color: #f5f5f7;
  background-size: cover;
  background-position: center;
}

.avatar-q { background-image: url("/img/avatar-question.svg"); }
.avatar-a { background-image: url("/img/avatar-answer.svg"); }

.message-content { flex: 1; min-width: 0; }

.message-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.username { font-size: 0.9375rem; font-weight: 700; color: #000; }
.timestamp { font-size: 0.75rem; color: #6e6e73; }

.message-text {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #1d1d1f;
  overflow-wrap: break-word;
}

.message-text.slop { font-size: 0.875rem; line-height: 1.6; color: #6e6e73; }
.message-text.slop p { font-size: 0.875rem; line-height: 1.6; color: #6e6e73; margin-bottom: 0.75rem; }
.message-text.slop p:last-child { margin-bottom: 0; }

.chat-note {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #6e6e73;
  margin: 0.75rem 0 0;
}

/* ---------- разделители и крупные тезисы ---------- */

.divider { height: 1px; background: #d2d2d7; border: none; margin: 8rem 0; }

.principle {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #000;
  text-align: center;
  margin: 10rem 0;
}

.principle-sm { font-size: 1.75rem; margin: 6rem 0; }

.quote {
  font-style: italic;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #6e6e73;
  max-width: 600px;
  margin: 4rem auto 0;
}

/* ---------- нумерованные вопросы ---------- */

ol.big { list-style: none; counter-reset: q; margin: 0 0 2rem; }

ol.big li {
  counter-increment: q;
  position: relative;
  padding-left: 3.25rem;
  margin-bottom: 2.5rem;
  font-size: 1.25rem;
  line-height: 1.5;
  color: #1d1d1f;
}

ol.big li::before {
  content: counter(q);
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
  color: #007aff;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: calc(2rem - 2px);
  text-align: center;
}

ul.plain { list-style: none; margin: 0 0 2rem; }

ul.plain li {
  font-size: 1.25rem;
  line-height: 1.5;
  color: #1d1d1f;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  position: relative;
}

ul.plain li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d2d2d7;
}

/* ---------- «почему это болит» ---------- */

dl.causes dt {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
  margin: 3rem 0 0.5rem;
  letter-spacing: -0.01em;
}

dl.causes dd { font-size: 1.25rem; line-height: 1.5; color: #1d1d1f; margin: 0; }

/* ---------- призыв поделиться ---------- */

.share-cta { text-align: center; margin: 4rem 0 2rem; }
.share-cta p { font-size: 1.125rem; color: #000; margin-bottom: 1.25rem; }

.share-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #007aff;
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.share-link:hover { background-color: #f5f5f7; text-decoration: none; }
.share-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- подвал ---------- */

footer {
  margin-top: 8rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e5e5e7;
  text-align: center;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

footer nav a { color: #06c; }
footer nav .here { color: #1d1d1f; font-weight: 600; }
footer p { font-size: 0.75rem; line-height: 1.5; color: #6e6e73; margin-bottom: 0.5rem; }
footer p:last-child { margin-bottom: 0; }

/* ---------- узкие экраны ---------- */

@media (max-width: 734px) {
  body { padding: 4rem 2rem 6rem; }
  h1 { font-size: 3rem; }
  .tagline { font-size: 1.375rem; }
  h2 { font-size: 2rem; margin: 5rem 0 2rem; }
  .principle { font-size: 1.75rem; margin: 6rem 0; }
  .quote { margin-top: 3rem; }
  .divider { margin: 5rem 0; }
  ol.big li, dl.causes dd, ul.plain li { font-size: 1.0625rem; }
  .chat-window { padding: 1rem; }
  .avatar { width: 32px; height: 32px; }
}

@media print {
  body { max-width: none; padding: 0; }
  .share-cta { display: none; }
  h2 { margin: 3rem 0 1.5rem; }
  p, li { color: #000; }
}

/* ---------- «наклейка» над заголовком и акцент ---------- */

.kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1;
  color: #6e6e73;
  margin-bottom: 1.75rem;
}

.kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0a7cff;
  flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
  .kicker::before { animation: none; }
}

.accent { color: #0a7cff; font-style: italic; }

/* ---------- пары «так не делай / делай так» ---------- */

.pair-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6e6e73;
  border-bottom: 1px solid #e5e5ea;
  padding-bottom: 0.75rem;
  margin: 0 0 2rem;
}

.pair { margin: 0 0 6rem; }
.pair:last-of-type { margin-bottom: 4rem; }

/* ---------- манифест ---------- */

.manifesto { list-style: none; counter-reset: m; margin: 0; padding: 0; border-top: 1px solid #e5e5ea; }

.manifesto li {
  counter-increment: m;
  position: relative;
  padding: 2rem 0 2rem 5rem;
  border-bottom: 1px solid #e5e5ea;
  font-size: 1.25rem;
  line-height: 1.5;
  color: #1d1d1f;
}

.manifesto li::before {
  content: counter(m, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2.15rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  color: #0a7cff;
}

.manifesto strong {
  display: block;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #000;
  margin-bottom: 0.625rem;
}

@media (max-width: 734px) {
  .manifesto li { padding: 1.5rem 0 1.5rem 3.25rem; font-size: 1.0625rem; }
  .manifesto li::before { top: 1.65rem; }
  .manifesto strong { font-size: 1.375rem; }
  .pair { margin-bottom: 4rem; }
}

