:root {
  --brand: #E85D3D;
  --brand-dark: #C94A2E;
  --brand-light: #FF8A6B;
  --brand-soft: rgba(232, 93, 61, 0.12);
  --accent: #2E8B8B;
  --accent-light: #5FBFBF;
  --bg: #FFF9F6;
  --bg-alt: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --text: #2B2320;
  --text-secondary: #6B5F58;
  --text-muted: #9A8D85;
  --border: rgba(43, 35, 32, 0.08);
  --border-strong: rgba(43, 35, 32, 0.14);
  --shadow-sm: 0 2px 8px rgba(43, 35, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(43, 35, 32, 0.08);
  --shadow-lg: 0 16px 48px rgba(43, 35, 32, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.7);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-h: 68px;
  --max-w: 1180px;
  --transition: 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  --grad-hero: linear-gradient(135deg, #FFE9E0 0%, #FFD9C9 28%, #F7C9BC 55%, #E9E4F5 100%);
  --grad-brand: linear-gradient(135deg, #E85D3D 0%, #F0814F 50%, #E85D3D 100%);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #FF7A57;
    --brand-dark: #E85D3D;
    --brand-light: #FF9F82;
    --brand-soft: rgba(255, 122, 87, 0.14);
    --accent: #5FBFBF;
    --accent-light: #8FD9D9;
    --bg: #14100E;
    --bg-alt: #1C1714;
    --bg-elevated: #241E1A;
    --text: #F3EBE7;
    --text-secondary: #C0B2A9;
    --text-muted: #8C7F77;
    --border: rgba(243, 235, 231, 0.08);
    --border-strong: rgba(243, 235, 231, 0.16);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
    --glass-bg: rgba(36, 30, 26, 0.6);
    --glass-border: rgba(243, 235, 231, 0.1);
    --grad-hero: linear-gradient(135deg, #2A1C16 0%, #3A2119 30%, #2C1E2A 60%, #1A1620 100%);
  }
}

*,
*::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: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--brand-dark);
}

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

h1 { font-size: clamp(1.7rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); }

p {
  margin: 0 0 1.1em;
  color: var(--text-secondary);
}

ul, ol {
  margin: 0 0 1.1em;
  padding-left: 1.4em;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.5em;
}

strong {
  color: var(--text);
  font-weight: 600;
}

blockquote {
  margin: 1.4em 0;
  padding: 1.2em 1.4em;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

blockquote p {
  margin: 0;
  color: var(--text-secondary);
  font-style: italic;
}

details {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.9em;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

details:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

details[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-soft);
}

summary {
  cursor: pointer;
  padding: 1.05em 3em 1.05em 1.3em;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
  transition: background var(--transition), color var(--transition);
}

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

summary::after {
  content: "+";
  position: absolute;
  right: 1.2em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4em;
  font-weight: 300;
  color: var(--brand);
  transition: transform var(--transition);
  line-height: 1;
}

details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

summary:hover {
  background: var(--brand-soft);
}

details p {
  padding: 0 1.3em 1.2em;
  margin: 0;
  font-size: 0.95rem;
}

/* ============ HEADER ============ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition), box-shadow var(--transition);
}

#site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
}

.logo:hover {
  color: var(--brand);
}

.logo svg {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(232, 93, 61, 0.32);
  transition: transform var(--transition), box-shadow var(--transition);
}

.logo:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 6px 18px rgba(232, 93, 61, 0.45);
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

#site-header nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 999px;
  white-space: nowrap;
  position: relative;
  transition: color var(--transition), background var(--transition);
}

.nav-list a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--brand-soft);
  transform: scale(0.7);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
  z-index: -1;
}

.nav-list a:hover {
  color: var(--brand);
}

.nav-list a:hover::before {
  transform: scale(1);
  opacity: 1;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.menu-toggle:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.menu-toggle:active {
  transform: scale(0.94);
}

/* ============ MAIN LAYOUT ============ */
main {
  padding-top: var(--header-h);
}

main > section,
.breadcrumb,
.anchor-nav {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

main > section {
  padding-top: 56px;
  padding-bottom: 56px;
}

main > section > h2 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 1.2em;
}

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

/* ============ HERO ============ */
.hero {
  position: relative;
  max-width: 100%;
  padding: 0;
  background: var(--grad-hero);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  background: rgba(232, 93, 61, 0.5);
  top: -160px;
  right: -80px;
  animation: floatBlob 14s ease-in-out infinite;
}

.hero::after {
  width: 340px;
  height: 340px;
  background: rgba(95, 191, 191, 0.45);
  bottom: -140px;
  left: -60px;
  animation: floatBlob 18s ease-in-out infinite reverse;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.12); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 20px 80px;
  text-align: center;
}

.hero h1 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, var(--text) 0%, var(--brand-dark) 70%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero-lead {
  max-width: 780px;
  margin: 0 auto 2.2em;
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  color: var(--text-secondary);
  animation: fadeUp 0.8s 0.1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 0 auto 2.4em;
  animation: fadeUp 0.8s 0.2s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.stat {
  padding: 20px 12px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat .num {
  display: block;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat .label {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  will-change: transform;
}

.btn-primary {
  color: #fff;
  background: var(--grad-brand);
  background-size: 180% 180%;
  box-shadow: 0 8px 22px rgba(232, 93, 61, 0.38);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(232, 93, 61, 0.48);
  background-position: 100% 0;
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
  color: var(--text);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  color: var(--brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active {
  transform: translateY(-1px) scale(0.98);
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  padding-top: 20px;
  padding-bottom: 4px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--text-muted);
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

/* ============ ANCHOR NAV ============ */
.anchor-nav {
  padding-top: 12px;
  padding-bottom: 12px;
  position: sticky;
  top: var(--header-h);
  z-index: 90;
}

.anchor-nav ul {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  scrollbar-width: none;
}

.anchor-nav ul::-webkit-scrollbar {
  display: none;
}

.anchor-nav li {
  margin: 0;
  flex-shrink: 0;
}

.anchor-nav a {
  display: block;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 999px;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.anchor-nav a:hover {
  background: var(--brand);
  color: #fff;
}

/* ============ CARDS / SECTIONS ============ */
#brand,
#products,
#solutions,
#applications,
#cases,
#reviews,
#news,
#articles,
#knowledge,
#faq,
#howto,
#contact,
#sitemap,
#links,
#privacy,
#disclaimer,
#about-author {
  position: relative;
}

#brand,
#solutions,
#reviews,
#articles,
#faq,
#sitemap,
#privacy,
#about-author {
  background: var(--bg-alt);
}

#products,
#applications,
#news,
#knowledge,
#howto,
#links,
#disclaimer {
  background: var(--bg);
}

#cases,
#contact {
  background:
    radial-gradient(circle at 0% 0%, var(--brand-soft) 0%, transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(95, 191, 191, 0.1) 0%, transparent 45%),
    var(--bg-alt);
}

#brand > *,
#products > *,
#solutions > *,
#applications > *,
#cases > *,
#reviews > *,
#news > *,
#articles > *,
#knowledge > *,
#faq > *,
#howto > *,
#contact > *,
#sitemap > *,
#links > *,
#privacy > *,
#disclaimer > *,
#about-author > * {
  max-width: 100%;
}

/* Article cards */
#articles article {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#articles article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-soft);
}

#articles article h3 {
  margin-bottom: 0.4em;
  transition: color var(--transition);
}

#articles article:hover h3 {
  color: var(--brand);
}

#articles article .meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.9em;
}

#articles article > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brand);
}

#articles article > a::after {
  content: "→";
  transition: transform var(--transition);
}

#articles article > a:hover::after {
  transform: translateX(4px);
}

/* News list */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.news-list li {
  margin: 0;
  padding: 22px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.news-list li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-soft);
}

.news-list h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5em;
}

.news-list p {
  margin: 0;
  font-size: 0.92rem;
}

/* Contact */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.contact-list li {
  margin: 0;
  padding: 16px 20px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-size: 0.94rem;
  color: var(--text-secondary);
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-list li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.contact-list strong {
  color: var(--text);
}

/* Sitemap & friend links */
.sitemap-list,
.friend-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sitemap-list li,
.friend-links li {
  margin: 0;
}

.sitemap-list a,
.friend-links a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
}

.sitemap-list a:hover,
.friend-links a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

/* ============ FOOTER ============ */
#site-footer {
  background: linear-gradient(160deg, #2B2320 0%, #1C1714 100%);
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 20px 32px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-brand svg {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 1rem;
}

#site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#site-footer nav li {
  margin: 0;
}

#site-footer nav a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  transition: color var(--transition);
}

#site-footer nav a:hover {
  color: var(--brand-light);
}

.copyright {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============ BACK TO TOP ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 900;
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-brand);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(232, 93, 61, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), box-shadow var(--transition);
}

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

#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(232, 93, 61, 0.5);
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

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

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

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .nav-list a {
    padding: 8px 9px;
    font-size: 0.85rem;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  #site-header nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    justify-content: flex-start;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  #site-header nav.open {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 14px 20px 22px;
    gap: 2px;
  }

  .nav-list a {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-list a::before {
    border-radius: var(--radius-sm);
  }

  .hero-inner {
    padding: 52px 20px 60px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  main > section {
    padding-top: 44px;
    padding-bottom: 44px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 60px;
    --radius-lg: 18px;
    --radius-xl: 24px;
  }

  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 0 14px;
    gap: 10px;
  }

  .logo svg {
    width: 34px;
    height: 34px;
  }

  .logo-text {
    font-size: 1.02rem;
  }

  main > section,
  .breadcrumb,
  .anchor-nav {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-inner {
    padding: 42px 14px 50px;
  }

  .hero-lead {
    font-size: 0.94rem;
  }

  .hero-stats {
    gap: 10px;
  }

  .stat {
    padding: 16px 8px;
  }

  .stat .label {
    font-size: 0.74rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 13px 24px;
  }

  main > section {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  main > section > h2::after {
    width: 48px;
    height: 3px;
  }

  #articles article {
    padding: 20px 18px;
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }

  summary {
    padding: 0.95em 2.6em 0.95em 1.05em;
    font-size: 0.95rem;
  }

  details p {
    padding: 0 1.05em 1.05em;
    font-size: 0.9rem;
  }

  blockquote {
    padding: 1em 1.1em;
  }

  #site-footer {
    padding: 40px 14px 26px;
  }

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

@media (max-width: 380px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* ============ PRINT ============ */
@media print {
  #site-header,
  .anchor-nav,
  #back-to-top,
  .hero-actions,
  .menu-toggle {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  main {
    padding-top: 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}