:root {
  --bg: #f6efe4;
  --bg-deep: #efe2cf;
  --ink: #3a271c;
  --muted: #6e5748;
  --accent: #9d4322;
  --accent-deep: #7c3016;
  --gold: #c9843a;
  --panel: #fffaf4;
  --line: #e3d0b8;
  --night: #2a1812;
  --night-soft: #3d241b;
  --radius: 22px;
  --max: 1120px;
  --shadow: 0 16px 40px rgba(58, 39, 28, 0.08);
  --header: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(201, 132, 58, 0.18), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(157, 67, 34, 0.08), transparent 55%),
    var(--bg);
  font: 16.5px/1.7 "Segoe UI", system-ui, sans-serif;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-deep); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--night);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.age-bar {
  background: var(--night);
  color: #f6e7d4;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.age-bar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.age-bar strong { color: #ffd7a8; font-weight: 700; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 239, 228, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { position: relative; }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--header);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}
.brand img {
  height: 46px;
  width: auto;
  display: block;
}
.site-footer .brand img { height: 40px; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  padding: 8px 12px;
  font: inherit;
  color: var(--ink);
}
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: flex-end; flex: 1; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 6px 2px;
}
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }

.hero { padding: 42px 0 18px; }
.hero-panel, .hero-split, .media-editorial, .media-block {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}
.hero-panel > *, .hero-split > *, .media-editorial > *, .media-block > * { min-width: 0; }
.hero h1, .page-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  font-weight: 650;
}
.lead { font-size: 1.05rem; color: var(--muted); margin: 0 0 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff8f3; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #c9b194; }
.btn-ghost:hover { background: var(--panel); color: var(--ink); }
.art-frame {
  position: relative;
  background: #080B12;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 0;
}
.art-frame picture,
.art-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

section { padding: 22px 0; }
.block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.block h2, .plain h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.intro { color: var(--muted); margin-top: 0; }
.prose p { margin: 0 0 12px; }
.prose p:last-child { margin-bottom: 0; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
.facts div {
  background: #fbf3e8;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--line);
}
.facts dt { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 750; }
.facts dd { margin: 6px 0 0; }

.grid-3, .cards-inset, .cards-divided { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-3 article, .cards-inset article, .cards-divided article, .gallery article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.cards-inset article { background: #fbf6ee; border-left: 4px solid var(--accent); }
.cards-divided article { border-top: 4px solid var(--gold); }
.grid-3 h3, .cards-inset h3, .cards-divided h3, .gallery h3, .steps h3 { margin: 0 0 8px; font-size: 1.05rem; }
.grid-3 p, .cards-inset p, .cards-divided p, .gallery p, .steps p { margin: 0; color: var(--muted); }

.gallery { display: grid; gap: 12px; }
.gallery article { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: center; padding: 12px; }
.gallery .art-frame { aspect-ratio: auto; height: 132px; min-height: 0; box-shadow: none; }
.gallery .art-frame picture,
.gallery .art-frame img { border-radius: 14px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; position: relative; padding-bottom: 16px; }
.steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 4px;
  width: 2px;
  background: #e7d3bb;
}
.step-no {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--night);
  color: #ffe7cc;
  font-weight: 750;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { color: var(--muted); margin: 8px 0 4px; }

.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }

.site-footer {
  margin: 28px auto 24px;
  width: min(var(--max), calc(100% - 32px));
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 22px; }
.site-footer h2 { font-size: 0.95rem; margin: 0 0 10px; }
.site-footer nav { display: grid; gap: 6px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-intro p { color: var(--muted); font-size: 0.95rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 14px;
  font-size: 0.92rem;
}
.footer-bottom nav { display: flex; gap: 14px; flex-wrap: wrap; }
.legal-note { color: var(--muted); font-size: 0.88rem; margin: 12px 0 0; }

@media (max-width: 980px) {
  .hero-panel, .hero-split, .media-editorial, .media-block, .facts, .grid-3, .cards-inset, .cards-divided, .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    flex-direction: column;
    box-shadow: var(--shadow);
    z-index: 12;
  }
  .site-nav.is-open { display: flex; }
}
@media (max-width: 760px) {
  .hero-panel, .hero-split, .media-editorial, .media-block,
  .facts, .grid-3, .cards-inset, .cards-divided, .footer-grid, .gallery article {
    grid-template-columns: 1fr;
  }
  .gallery .art-frame { height: 180px; }
  .block { padding: 20px; }
  .age-bar .wrap { font-size: 12.5px; }
}
