:root {
  --c-primary: #c0392b;
  --c-primary-dark: #962d22;
  --c-primary-light: #e74c3c;
  --c-accent: #f6c445;
  --c-accent-soft: #f9d97a;
  --c-bg: #fdfaf6;
  --c-bg-alt: #f6efe7;
  --c-surface: #ffffff;
  --c-surface-glass: rgba(255, 255, 255, 0.72);
  --c-surface-glass-strong: rgba(255, 255, 255, 0.9);
  --c-text: #2b2320;
  --c-text-soft: #5d514b;
  --c-text-muted: #8a7c74;
  --c-border: rgba(192, 57, 43, 0.14);
  --c-border-soft: rgba(43, 35, 32, 0.08);
  --shadow-sm: 0 2px 8px rgba(43, 35, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(43, 35, 32, 0.1);
  --shadow-lg: 0 18px 48px rgba(43, 35, 32, 0.16);
  --gradient-hero: linear-gradient(135deg, #c0392b 0%, #e74c3c 42%, #f39c12 78%, #f6c445 100%);
  --gradient-accent: linear-gradient(120deg, #c0392b, #f39c12);
  --gradient-soft: linear-gradient(160deg, rgba(246, 196, 69, 0.16), rgba(192, 57, 43, 0.08));
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 72px;
}

html[data-theme="dark"] {
  --c-primary: #ff6b57;
  --c-primary-dark: #e74c3c;
  --c-primary-light: #ff8a75;
  --c-accent: #f6c445;
  --c-accent-soft: #ffd76e;
  --c-bg: #14100f;
  --c-bg-alt: #1b1614;
  --c-surface: #221c1a;
  --c-surface-glass: rgba(34, 28, 26, 0.7);
  --c-surface-glass-strong: rgba(34, 28, 26, 0.92);
  --c-text: #f4ece7;
  --c-text-soft: #cdbfb7;
  --c-text-muted: #9a8a81;
  --c-border: rgba(255, 138, 117, 0.22);
  --c-border-soft: rgba(244, 236, 231, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
  --gradient-hero: linear-gradient(135deg, #7a1f16 0%, #b3301f 40%, #a35a0a 78%, #8a6a12 100%);
  --gradient-soft: linear-gradient(160deg, rgba(246, 196, 69, 0.1), rgba(255, 107, 87, 0.08));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text);
  background-color: var(--c-bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(246, 196, 69, 0.12), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(192, 57, 43, 0.1), transparent 40%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--c-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1, h2, h3, h4 {
  line-height: 1.35;
  color: var(--c-text);
  margin: 0 0 0.6em;
  font-weight: 800;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.4rem); }
h4 { font-size: clamp(1rem, 1.8vw, 1.15rem); color: var(--c-text-soft); }

p { margin: 0 0 1em; color: var(--c-text-soft); }

ul, ol { margin: 0 0 1em; padding-left: 1.4em; color: var(--c-text-soft); }
li { margin-bottom: 0.4em; }

::selection {
  background: var(--c-accent);
  color: #2b2320;
}

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header ---------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-surface-glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--c-border-soft);
  box-shadow: var(--shadow-sm);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.brand-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-logo {
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 10px rgba(192, 57, 43, 0.28));
  transition: transform 0.4s var(--ease);
}

.brand-logo:hover { transform: rotate(-6deg) scale(1.06); }

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  margin-right: auto;
}

.brand-name strong {
  font-size: 1.18rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.02em;
}

.brand-name span {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  letter-spacing: 0.04em;
}

#main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#main-nav a {
  display: inline-block;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--c-text-soft);
  text-decoration: none;
  transition: background 0.28s var(--ease), color 0.28s var(--ease), transform 0.28s var(--ease);
}

#main-nav a:hover,
#main-nav a:focus-visible {
  background: var(--gradient-soft);
  color: var(--c-primary);
  transform: translateY(-2px);
  text-decoration: none;
}

.header-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-tools button {
  font: inherit;
  font-size: 0.85rem;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-border);
  background: var(--c-surface-glass-strong);
  color: var(--c-text-soft);
  cursor: pointer;
  transition: all 0.28s var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-tools button:hover {
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(192, 57, 43, 0.3);
}

#menu-toggle { display: none; }

#search-panel {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), padding 0.3s var(--ease);
}

#search-panel.is-open {
  max-height: 140px;
  opacity: 1;
  padding: 0 20px 16px;
}

#search-panel form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--c-surface-glass-strong);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#search-panel label {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  font-weight: 600;
}

#search-panel input[type="search"] {
  flex: 1 1 220px;
  min-width: 0;
  font: inherit;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-border-soft);
  background: var(--c-surface);
  color: var(--c-text);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#search-panel input[type="search"]:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.16);
}

#search-panel button {
  font: inherit;
  font-weight: 600;
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--gradient-accent);
  color: #fff;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#search-panel button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(192, 57, 43, 0.34);
}

/* ---------- Main / Sections ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 60px;
}

main > section {
  margin: 48px 0;
  padding: clamp(20px, 3.4vw, 40px);
  background: var(--c-surface-glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

main > section:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--c-border);
}

section > h2 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 22px;
}

section > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--gradient-accent);
}

/* ---------- Hero ---------- */
#hero {
  margin-top: 28px;
  padding: clamp(26px, 4.6vw, 56px);
  background: var(--gradient-hero);
  border: none;
  border-radius: var(--radius-lg);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.28), transparent 46%),
    radial-gradient(circle at 8% 88%, rgba(0, 0, 0, 0.22), transparent 50%);
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  top: -160px;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

#hero > * { position: relative; z-index: 1; }

#hero-title {
  color: #fff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.28);
  max-width: 22em;
}

#hero .hero-lead {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.95rem, 1.6vw, 1.06rem);
  max-width: 62em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 34px;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.btn-primary {
  background: #fff;
  color: var(--c-primary-dark);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: var(--c-primary-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
  text-decoration: none;
  color: #fff;
}

/* ---------- Hero slider ---------- */
.hero-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding: 6px 2px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.hero-slider::-webkit-scrollbar { height: 8px; }
.hero-slider::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-pill);
}
.hero-slider::-webkit-scrollbar-track { background: transparent; }

.hero-slider .slide {
  scroll-snap-align: start;
  background: var(--c-surface-glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.hero-slider .slide:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.hero-slider .slide svg {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.hero-slider .slide p {
  margin: 12px 4px 4px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--c-text-soft);
}

/* ---------- Breadcrumb ---------- */
#breadcrumb {
  margin: 22px 0 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

#breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  color: var(--c-text-muted);
}

#breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--c-text-muted);
  opacity: 0.6;
}

#breadcrumb a { color: var(--c-text-muted); }
#breadcrumb a:hover { color: var(--c-primary); }
#breadcrumb [aria-current="page"] { color: var(--c-primary); font-weight: 600; }

/* ---------- Articles / News cards ---------- */
#news article,
#articles article {
  position: relative;
  padding: 20px 22px;
  margin-bottom: 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: var(--radius-pill);
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-border);
}

#news article:hover::before,
#articles article:hover::before { opacity: 1; }

#news article h3,
#articles article h3 {
  margin-bottom: 6px;
  font-size: 1.08rem;
}

#articles article h3 a {
  color: var(--c-text);
  text-decoration: none;
  transition: color 0.28s var(--ease);
}

#articles article h3 a:hover { color: var(--c-primary); }

#news time,
#articles time {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--c-text-muted);
  background: var(--gradient-soft);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

#articles article > a:last-child {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-border);
  color: var(--c-primary);
  transition: all 0.28s var(--ease);
}

#articles article > a:last-child:hover {
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
  text-decoration: none;
  transform: translateX(3px);
}

/* ---------- FAQ ---------- */
#faq details {
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

#faq details[open] {
  border-color: var(--c-border);
  box-shadow: var(--shadow-md);
}

#faq summary {
  cursor: pointer;
  padding: 16px 48px 16px 20px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--c-text);
  list-style: none;
  position: relative;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

#faq summary::-webkit-details-marker { display: none; }

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gradient-soft);
  color: var(--c-primary);
  font-size: 1.15rem;
  font-weight: 700;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: var(--gradient-accent);
  color: #fff;
}

#faq summary:hover { background: var(--gradient-soft); }

#faq details p {
  padding: 0 20px 18px;
  margin: 0;
  font-size: 0.92rem;
  animation: fadeSlide 0.4s var(--ease);
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- HowTo ---------- */
#howto h4 {
  display: inline-block;
  padding: 5px 16px;
  margin-top: 18px;
  border-radius: var(--radius-pill);
  background: var(--gradient-soft);
  color: var(--c-primary);
  font-size: 0.95rem;
  border-left: 3px solid var(--c-primary);
}

#howto h3 {
  padding-left: 14px;
  border-left: 4px solid var(--c-accent);
}

/* ---------- Contact ---------- */
#contact address {
  font-style: normal;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 20px 0 26px;
}

#contact address p {
  margin: 0;
  padding: 14px 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#contact address p:hover {
  transform: translateY(-3px);
  border-color: var(--c-border);
  box-shadow: var(--shadow-md);
}

/* ---------- Sitemap ---------- */
#sitemap > ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin-bottom: 26px;
}

#sitemap > ul li { margin: 0; }

#sitemap > ul a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  font-size: 0.9rem;
  color: var(--c-text-soft);
  text-decoration: none;
  transition: all 0.3s var(--ease);
}

#sitemap > ul a:hover {
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
  transform: translateX(4px);
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(192, 57, 43, 0.24);
}

#sitemap h3 + ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
}

#sitemap h3 + ul a {
  font-size: 0.88rem;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--gradient-soft);
  color: var(--c-primary);
  text-decoration: none;
  transition: all 0.3s var(--ease);
}

#sitemap h3 + ul a:hover {
  background: var(--gradient-accent);
  color: #fff;
  text-decoration: none;
}

/* ---------- Legal ---------- */
#legal h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}

#legal h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-accent);
  flex: 0 0 auto;
}

/* ---------- Footer ---------- */
#site-footer {
  margin-top: 40px;
  padding: 40px 20px 28px;
  background: linear-gradient(180deg, var(--c-bg-alt), var(--c-bg));
  border-top: 1px solid var(--c-border-soft);
  text-align: center;
}

.footer-brand {
  max-width: var(--maxw);
  margin: 0 auto 20px;
}

.footer-brand strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}

.footer-brand p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--c-text-muted);
}

#site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  list-style: none;
  padding: 0;
  margin: 0 auto 22px;
  max-width: var(--maxw);
}

#site-footer nav a {
  font-size: 0.88rem;
  color: var(--c-text-soft);
  text-decoration: none;
  position: relative;
  padding: 4px 2px;
  transition: color 0.28s var(--ease);
}

#site-footer nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--gradient-accent);
  transition: width 0.3s var(--ease);
}

#site-footer nav a:hover { color: var(--c-primary); text-decoration: none; }
#site-footer nav a:hover::after { width: 100%; }

.footer-meta,
.footer-copy {
  max-width: var(--maxw);
  margin: 0 auto 8px;
  font-size: 0.8rem;
  color: var(--c-text-muted);
  line-height: 1.7;
}

.footer-copy { margin-top: 14px; }

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--gradient-accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(192, 57, 43, 0.36);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s var(--ease), box-shadow 0.3s var(--ease);
}

#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(192, 57, 43, 0.46);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  #main-nav ul { gap: 2px; }
  #main-nav a { padding: 6px 10px; font-size: 0.85rem; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }

  .brand-bar {
    padding: 10px 16px;
    gap: 10px;
  }

  .brand-name strong { font-size: 1.05rem; }
  .brand-name span { font-size: 0.72rem; }

  #menu-toggle { display: inline-block; }

  #main-nav {
    flex: 1 0 100%;
    order: 5;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), margin 0.3s var(--ease);
  }

  #main-nav.is-open {
    max-height: 520px;
    opacity: 1;
    margin-top: 6px;
  }

  #main-nav ul {
    flex-direction: column;
    gap: 4px;
    padding: 6px 0;
  }

  #main-nav a {
    display: block;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
  }

  .header-tools { margin-left: auto; }
  .header-tools button { padding: 7px 12px; font-size: 0.8rem; }

  main { padding: 0 14px 44px; }
  main > section { margin: 30px 0; }
  #hero { margin-top: 18px; }

  .hero-actions { margin: 20px 0 26px; }
  .btn-primary,
  .btn-secondary { padding: 11px 22px; font-size: 0.9rem; flex: 1 1 auto; text-align: center; }

  #contact address { grid-template-columns: 1fr; }
  #sitemap > ul { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media (max-width: 520px) {
  body { font-size: 15px; line-height: 1.75; }

  .brand-logo svg { width: 40px; height: 40px; }
  .brand-name span { display: none; }

  .header-tools { gap: 6px; }
  .header-tools button { padding: 6px 10px; font-size: 0.76rem; }

  #hero { padding: 22px 18px; border-radius: var(--radius-md); }
  #hero::after { width: 260px; height: 260px; right: -110px; top: -120px; border-width: 26px; }

  main > section { padding: 18px 16px; border-radius: var(--radius-md); }

  .hero-slider { grid-auto-columns: 86%; }

  #news article,
  #articles article { padding: 16px; }

  #faq summary { padding: 14px 44px 14px 16px; font-size: 0.92rem; }
  #faq details p { padding: 0 16px 16px; font-size: 0.88rem; }

  #sitemap > ul { grid-template-columns: 1fr 1fr; }

  #back-to-top { right: 14px; bottom: 16px; padding: 10px 14px; font-size: 0.76rem; }
}

/* ---------- Print ---------- */
@media print {
  #site-header,
  #back-to-top,
  .hero-slider,
  .hero-actions,
  .header-tools { display: none !important; }

  body { background: #fff; color: #000; }
  main > section { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
}