:root {
  --primary: #f9450a;
  --primary-ink: #fcf9f4;
  --secondary: #712506;
  --brown: #8b1e07;
  --bg: #fcf9f4;
  --fg: #1a1410;
  --muted: #f5f0e8;
  --muted-fg: #6b5d4f;
  --card: #ffffff;
  --line: rgba(249, 69, 10, 0.15);
  --shadow: 0 10px 30px rgba(26, 20, 16, 0.08);
  --radius: 18px;
  --header: 76px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--fg);
  background: var(--bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header);
  display: flex; align-items: center;
  background: rgba(252, 249, 244, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 18px; width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.04em; }
.brand img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a, .nav button.linkish {
  background: transparent; border: 0; cursor: pointer;
  padding: 8px 12px; border-radius: 999px; color: var(--muted-fg); font-weight: 600;
}
.nav a.active, .nav a:hover { color: var(--primary); background: rgba(249, 69, 10, 0.08); }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: white; border-radius: 12px; padding: 8px 12px; }
.lang { position: relative; margin-left: 4px; }
.lang-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: white; color: var(--secondary);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.lang-toggle svg { width: 22px; height: 22px; }
.lang.open .lang-toggle, .lang-toggle:hover { color: var(--primary); border-color: var(--primary); }
.lang-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 50;
  min-width: 180px; margin: 0; padding: 8px;
  background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.lang.open .lang-menu { display: grid; }
.lang-menu button {
  border: 0; background: transparent; cursor: pointer; text-align: left;
  padding: 10px 12px; border-radius: 12px; font-weight: 700; color: var(--fg);
}
.lang-menu button:hover, .lang-menu button.on { background: rgba(249, 69, 10, 0.08); color: var(--primary); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 20px; border: 1px solid transparent;
  font-weight: 700; cursor: pointer; background: var(--primary); color: var(--primary-ink);
}
.btn.secondary { background: var(--secondary); }
.btn.ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn.block { width: 100%; }
.hero {
  position: relative; min-height: calc(100vh - var(--header));
  display: grid; place-items: center; color: white; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,20,16,.35), rgba(113,37,6,.72)); }
.hero-copy { position: relative; text-align: center; padding: 48px 16px 64px; }
.hero-copy img { width: 104px; height: 104px; margin: 0 auto 16px; border-radius: 28px; box-shadow: var(--shadow); }
.kicker { letter-spacing: .22em; font-size: 13px; font-weight: 700; }
h1, h2, h3 { letter-spacing: -0.04em; line-height: 1.15; margin: 0 0 10px; }
h1 { font-size: clamp(40px, 6vw, 68px); }
.lede { max-width: 560px; margin: 0 auto 22px; font-size: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.section { padding: 56px 0; }
.section h2 { font-size: 32px; }
.muted { color: var(--muted-fg); }
.grid { display: grid; gap: 16px; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card .pad { padding: 16px; }
.person { display: flex; gap: 12px; align-items: center; }
.avatar, .avatar-lg {
  border-radius: 50%; object-fit: cover; background: var(--muted);
}
.avatar { width: 56px; height: 56px; }
.avatar-lg { width: 112px; height: 112px; }
.ring { padding: 3px; border-radius: 50%; border: 2px solid var(--primary); }
.rings { display: flex; gap: 14px; overflow: auto; padding-bottom: 8px; }
.rings a { text-align: center; min-width: 76px; font-size: 12px; font-weight: 700; }
.place-photo { height: 160px; width: 100%; object-fit: cover; background: var(--muted); }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(249, 69, 10, 0.1); color: var(--primary);
  border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700;
}
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 22px; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="date"], textarea, select {
  width: 100%; min-height: 48px; border-radius: 16px; border: 1px solid rgba(249, 69, 10, 0.2);
  background: white; padding: 10px 14px;
}
textarea { min-height: 120px; }
label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.alert { padding: 12px 14px; border-radius: 14px; background: #fff4ef; color: var(--brown); margin-bottom: 14px; }
.ok { background: #eef8ef; color: #1d5c2a; }
.layout { display: grid; grid-template-columns: 280px 1fr; gap: 22px; }
.side a { display: block; padding: 10px 12px; border-radius: 12px; font-weight: 700; color: var(--muted-fg); }
.side a.active, .side a:hover { background: white; color: var(--primary); }
.chat { display: flex; flex-direction: column; gap: 10px; min-height: 420px; }
.bubble { max-width: min(70%, 520px); padding: 10px 14px; border-radius: 16px; background: white; border: 1px solid var(--line); }
.bubble.mine { margin-left: auto; background: var(--primary); color: white; border-color: transparent; }
.story-stage { position: relative; max-width: 460px; margin: 0 auto; background: #1a1410; border-radius: 24px; overflow: hidden; min-height: 70vh; }
.story-stage img, .story-stage video { width: 100%; height: 70vh; object-fit: cover; }
.map { height: 460px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.footer { background: #1a1410; color: #fcf9f4; padding: 36px 0; margin-top: 40px; }
.footer a { color: #fcf9f4; opacity: .85; }
.footer-row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.pager { display: flex; gap: 8px; margin-top: 18px; }
.pager a, .pager span { padding: 8px 12px; border-radius: 12px; background: white; border: 1px solid var(--line); }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; }
.prose { white-space: pre-wrap; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; margin-left: 8px; }
  .lang { margin-left: auto; }
  .nav { display: none; position: absolute; top: var(--header); left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 12px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .layout, .split { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
}
