
:root {
  --bg: #f4f1ea;
  --surface: #ffffff;
  --ink: #26282b;
  --muted: #6a6e73;
  --accent: #8a5a2b;
  --accent-dark: #5e3b17;
  --accent-soft: #f3e9dc;
  --line: #e4ddd0;
  --dark: #2b2118;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
.site-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--accent-dark) 100%);
  color: #fff;
  padding: 64px 20px 90px;
  text-align: center;
  position: relative;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: var(--accent);
}
.site-header h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(1.7rem, 4.5vw, 2.8rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.wrap {
  max-width: 900px;
  margin: -50px auto 0;
  padding: 0 18px 60px;
  position: relative;
}
article {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 44px 48px;
  box-shadow: 0 10px 35px rgba(43, 33, 24, 0.10);
  overflow-wrap: break-word;
}
article h2, article h3, article h4 {
  color: var(--accent-dark);
  line-height: 1.3;
  margin: 1.8em 0 0.6em;
}
article h2 {
  font-size: 1.6rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-soft);
}
article h3 { font-size: 1.3rem; }
article h4 { font-size: 1.1rem; }
article > :first-child { margin-top: 0; }
article p { margin-bottom: 1.2em; }
article ul, article ol { margin: 0 0 1.2em 1.5em; }
article li { margin-bottom: 0.4em; }
article a { color: var(--accent); text-decoration: underline; }
article img { max-width: 100%; height: auto; border-radius: 10px; }
article blockquote {
  margin: 1.5em 0;
  padding: 14px 20px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  color: var(--accent-dark);
}
.transition {
  margin-top: 28px;
  padding: 28px 32px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-wrap: break-word;
}
.transition p { margin-bottom: 1em; }
.transition p:last-child { margin-bottom: 0; }
.links-block {
  margin-top: 28px;
  padding: 32px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 6px 22px rgba(43, 33, 24, 0.06);
  overflow: hidden;
}
.links-block h3 {
  color: var(--accent-dark);
  font-size: 1.2rem;
  margin: 1.4em 0 0.6em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.links-block h3:first-child { margin-top: 0; }
.links-block ul {
  list-style: none;
  columns: 2;
  column-gap: 40px;
  margin-bottom: 0.5em;
}
.links-block li {
  break-inside: avoid;
  padding: 6px 0 6px 18px;
  position: relative;
  overflow-wrap: anywhere;
}
.links-block li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.links-block a {
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.links-block a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.site-footer {
  background: var(--dark);
  color: #cdbfae;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.95rem;
  border-top: 4px solid var(--accent);
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .site-header { padding: 44px 16px 74px; }
  article { padding: 28px 22px; }
  .transition { padding: 22px 20px; }
  .links-block { padding: 24px 20px; }
}
@media (max-width: 560px) {
  .links-block ul { columns: 1; }
  .wrap { padding: 0 12px 40px; }
}
