
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --coffee-dark: #1f1411;
  --coffee: #3b2a22;
  --cream: #f8f4ee;
  --cream-deep: #efe7db;
  --accent: #ff0000;
  --accent-dark: #c40000;
  --text: #2b2420;
  --muted: #6c6058;
  --border: #e2d8ca;
  --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(31, 20, 17, 0.06);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--coffee-dark);
  text-transform: uppercase;
}
.brand span { color: var(--accent); }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coffee);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover {
  background: var(--cream-deep);
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 0, 0, 0.18), transparent 45%),
    linear-gradient(135deg, var(--coffee-dark) 0%, var(--coffee) 100%);
  color: #fff;
  padding: 72px 24px 80px;
  text-align: center;
}
.hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 24px auto 0;
  background: var(--accent);
  border-radius: 2px;
}

/* ---------- Main content ---------- */
main {
  max-width: 920px;
  margin: -36px auto 0;
  padding: 0 20px 60px;
  position: relative;
}

article {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 48px;
  box-shadow: 0 12px 40px rgba(31, 20, 17, 0.08);
  overflow-wrap: anywhere;
}
article h2,
article h3,
article h4,
article h5,
article h6 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--coffee-dark);
  line-height: 1.3;
  margin: 1.8em 0 0.6em;
}
article h2 { font-size: 1.9rem; }
article h3 { font-size: 1.5rem; }
article h4 { font-size: 1.25rem; }
article h2:first-child,
article h3:first-child { margin-top: 0; }
article h2 {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cream-deep);
}
article p { margin: 0 0 1.2em; }
article ul,
article ol { padding-left: 1.4em; margin: 0 0 1.2em; }
article li { margin-bottom: 0.4em; }
article a { color: var(--accent-dark); }
article a:hover { color: var(--accent); }
article img { max-width: 100%; height: auto; }
article table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; }
article th,
article td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
article th { background: var(--cream-deep); }
article blockquote {
  margin: 1.5em 0;
  padding: 14px 22px;
  background: var(--cream);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
}

/* ---------- Transition paragraph ---------- */
.transition {
  margin-top: 32px;
  padding: 30px 36px;
  background: var(--cream-deep);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  color: var(--coffee);
  overflow-wrap: anywhere;
}
.transition p { margin: 0 0 1em; }
.transition p:last-child { margin-bottom: 0; }

/* ---------- Links block ---------- */
.links-block {
  margin-top: 32px;
  background: var(--coffee-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 44px 28px;
  box-shadow: 0 12px 40px rgba(31, 20, 17, 0.18);
}
.links-block h3 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 2px solid var(--accent);
}
.links-block ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  column-count: 2;
  column-gap: 40px;
}
.links-block li {
  break-inside: avoid;
  margin: 0 0 4px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow-wrap: anywhere;
}
.links-block a {
  color: #f0e3d3;
  text-decoration: none;
  transition: color 0.2s;
}
.links-block a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--coffee-dark);
  color: #e8dccd;
  border-top: 4px solid var(--accent);
  padding: 52px 24px 44px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
.footer-col h4 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li { margin-bottom: 6px; }
.footer-col a {
  color: #d9cbb9;
  text-decoration: none;
  font-size: 0.93rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .header-inner { padding: 12px 16px; justify-content: center; }
  .main-nav ul { justify-content: center; }
  .hero { padding: 48px 18px 64px; }
  main { padding: 0 12px 40px; margin-top: -28px; }
  article { padding: 28px 20px; }
  .transition { padding: 22px 20px; }
  .links-block { padding: 28px 20px 18px; }
  .links-block ul { column-count: 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
