@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,560;700&family=Manrope:wght@400;500;600;700&family=Noto+Serif+SC:wght@560;700&display=swap");

:root {
  --paper: #f3efe4;
  --cream: #fffaf3;
  --ink: #1a2a22;
  --pine: #1e4634;
  --moss: #3e6b50;
  --copper: #b8612d;
  --copper-deep: #8d4318;
  --line: #e4d8c6;
  --muted: #5d6b62;
  --shadow: 0 18px 40px rgba(26, 42, 34, 0.08);
  --serif: "Fraunces", "Noto Serif SC", serif;
  --sans: "Manrope", "Noto Serif SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 90% -10%, rgba(184, 97, 45, 0.14), transparent 60%),
    linear-gradient(180deg, #efe6d4 0%, var(--paper) 280px);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 560; line-height: 1.25; margin: 0 0 0.4em; }
p { margin: 0 0 0.8em; }

.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  color: var(--muted);
  font-size: 13px;
}
.topbar a { margin-left: 14px; text-decoration: none; }
.topbar a:hover { color: var(--copper-deep); }
.mast {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 8px 0 18px;
}
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; min-width: 240px; }
.mark {
  width: 46px; height: 46px; border-radius: 50% 50% 46% 54%;
  background: var(--pine);
  color: #f3e2cf;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 20px;
}
.brand b { display: block; font-family: var(--serif); font-size: 20px; letter-spacing: 0.02em; }
.brand small { color: var(--muted); letter-spacing: 0.14em; font-size: 11px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 4px; flex: 1; }
.nav a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--pine);
}
.nav a.active, .nav a:hover { background: var(--pine); color: #f7f1e6; }
button.nav-toggle { display: none; }
.btn, .btn-line {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border: 0; cursor: pointer;
  padding: 11px 18px; border-radius: 999px;
}
.btn { background: var(--copper); color: #fffaf3; }
.btn:hover { background: var(--copper-deep); }
.btn-line { background: transparent; border: 1px solid var(--pine); color: var(--pine); }
.btn-line:hover { background: var(--pine); color: #fff; }
.btn.slim { padding: 8px 14px; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: end;
  padding: 12px 0 36px;
}
.kicker { letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper-deep); font-size: 12px; font-weight: 700; }
.hero h1 { font-size: clamp(40px, 5vw, 68px); letter-spacing: -0.03em; margin: 8px 0 14px; }
.lede { font-size: 18px; max-width: 38em; color: #314239; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { height: 460px; width: 100%; object-fit: cover; border-radius: 180px 28px 120px 28px; }
.hero-photo figcaption {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(255, 250, 243, 0.92);
  padding: 8px 12px; border-radius: 999px; font-size: 13px;
}

.ring-row, .card-grid, .service-grid, .news-grid { display: grid; gap: 14px; }
.ring-row { grid-template-columns: repeat(4, 1fr); margin-bottom: 28px; }
.ring, .card, .panel, .service, .message-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.ring { padding: 18px 18px 16px; }
.ring em { font-style: normal; font-family: var(--serif); color: var(--copper); font-size: 28px; }
.ring b { display: block; margin: 4px 0; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 10px 0 14px; }
.section-head a { color: var(--copper-deep); }
.split { display: grid; grid-template-columns: 1.35fr 0.75fr; gap: 18px; margin-bottom: 28px; }
.card { overflow: hidden; }
.card img, .service img, .message-card img { height: 170px; width: 100%; object-fit: cover; }
.card-grid { grid-template-columns: 1fr 1fr; }
.card-body, .service-body, .pad { padding: 14px 16px 16px; }
.meta { color: var(--muted); font-size: 13px; }
.tag {
  display: inline-block; margin: 0 6px 6px 0; padding: 2px 8px;
  border-radius: 999px; background: #f3e4d4; color: var(--copper-deep); font-size: 12px;
}
.side-list { list-style: none; margin: 0; padding: 8px 8px 12px; }
.side-list a { display: block; text-decoration: none; padding: 10px 10px; border-bottom: 1px solid var(--line); }
.side-list a:hover { background: #f7f0e4; }
.side-list small { display: block; color: var(--muted); }

.about-band {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px;
  background: var(--pine); color: #f6f0e6; border-radius: 28px; overflow: hidden; margin: 10px 0 36px;
}
.about-band img { height: 100%; min-height: 280px; object-fit: cover; }
.about-copy { padding: 32px; }
.about-copy a { color: #f2c7a4; }

.page { padding-bottom: 40px; }
.crumb { color: var(--muted); font-size: 13px; margin: 6px 0 14px; }
.crumb a { color: var(--moss); }
.page-hero { margin-bottom: 18px; max-width: 760px; }
.page-hero h1 { font-size: clamp(32px, 4vw, 52px); }

.filters {
  display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr auto auto;
  gap: 10px; align-items: end; margin-bottom: 16px;
}
.filters label, .form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.filters input, .filters select, .form input, .form select, .form textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px;
}
.form textarea { min-height: 120px; resize: vertical; }
.form { display: grid; gap: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.span-2 { grid-column: 1 / -1; }
.count { font-size: 12px; color: var(--muted); }
.result { padding: 12px 14px; border-radius: 14px; background: #f6efe4; }
.result.bad { background: #fde8df; color: #7a3114; }
.result.ok { background: #e7f2ea; color: #1e4634; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink); }
.list-card { display: grid; grid-template-columns: 220px 1fr; gap: 0; margin-bottom: 12px; text-decoration: none; }
.list-card img { height: 100%; min-height: 160px; object-fit: cover; }
.empty { display: none; padding: 24px; text-align: center; color: var(--muted); }

.article { display: grid; grid-template-columns: 1fr 280px; gap: 18px; }
.article-main { background: var(--cream); border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }
.article-main img.cover { width: 100%; height: 360px; object-fit: cover; }
.article-main .pad h1 { font-size: 36px; }
.facts { width: 100%; border-collapse: collapse; font-size: 14px; }
.facts th, .facts td { border-bottom: 1px solid var(--line); text-align: left; padding: 8px 6px; vertical-align: top; }
.facts th { color: var(--muted); font-weight: 600; width: 88px; }
.related a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }

.auth {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0;
  background: var(--cream); border-radius: 28px; overflow: hidden; border: 1px solid var(--line);
}
.auth-visual { min-height: 420px; background-size: cover; background-position: center; position: relative; }
.auth-visual span {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  color: #fff; font-family: var(--serif); font-size: 28px; text-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.auth-form { padding: 32px; }
.service-grid { grid-template-columns: 1fr 1fr; }
.service h3 { font-size: 24px; }
.timeline { display: grid; gap: 12px; }
.timeline div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; }
.timeline b { color: var(--copper-deep); }

.site-footer { background: #14261c; color: #e7dece; padding: 36px 0 22px; margin-top: 10px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.site-footer a { color: #f2c7a4; }
.legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 18px; padding-top: 12px; font-size: 13px; color: #cbbfaa; }
.user-chip { color: var(--pine); font-weight: 700; }

@media (max-width: 900px) {
  .hero, .split, .about-band, .article, .auth, .foot-grid, .ring-row, .card-grid, .service-grid, .form-grid { grid-template-columns: 1fr; }
  .topbar span:first-child { display: none; }
  .list-card { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .hero-photo img, .article-main img.cover { height: 240px; border-radius: 24px; }
  .mast { flex-wrap: wrap; }
  button.nav-toggle { display: inline-flex; margin-left: auto; }
  .nav { display: none; width: 100%; }
  .nav.open { display: flex; }
  .about-band img { min-height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
