:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --primary-light: #eaf2fe;
  --accent: #00c2ff;
  --accent-2: #7b61ff;
  --text: #1c2333;
  --text-soft: #4a5568;
  --text-muted: #6b7280;
  --bg: #f7f9fc;
  --bg-elev: #ffffff;
  --border: #e3e8f0;
  --shadow-sm: 0 2px 8px rgba(26, 115, 232, 0.06);
  --shadow-md: 0 8px 28px rgba(26, 115, 232, 0.10);
  --shadow-lg: 0 18px 50px rgba(26, 115, 232, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --header-h: 68px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --primary: #4d9bff;
  --primary-dark: #1a73e8;
  --primary-light: #16243a;
  --accent: #35d6ff;
  --accent-2: #9a83ff;
  --text: #e8eef8;
  --text-soft: #b6c2d4;
  --text-muted: #8b98ab;
  --bg: #0d131f;
  --bg-elev: #151d2c;
  --border: #24304a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.55);
  --glass-bg: rgba(21, 29, 44, 0.66);
  --glass-border: rgba(255, 255, 255, 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: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(26, 115, 232, 0.10), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(123, 97, 255, 0.08), transparent 55%);
  background-attachment: fixed;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
  overflow-x: hidden;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

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

h1 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.28rem); }

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

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
  color: var(--text-soft);
}

li { margin-bottom: 0.35em; }

main {
  display: block;
}

/* ============ Header ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--glass-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover { text-decoration: none; }

.logo svg {
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.logo:hover svg {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.5);
}

.logo-text {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--primary), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
  white-space: nowrap;
}

#main-nav {
  margin-left: auto;
  min-width: 0;
}

#main-nav ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

#main-nav ul::-webkit-scrollbar { display: none; }

#main-nav li { margin: 0; flex-shrink: 0; }

#main-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

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

#menu-toggle,
#theme-toggle {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#menu-toggle:hover,
#theme-toggle:hover {
  transform: translateY(-2px) rotate(6deg);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

#menu-toggle { display: none; }

/* ============ Layout sections ============ */
main > section,
main > nav.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

main > section {
  padding-top: 56px;
  padding-bottom: 56px;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

main > section + section {
  border-top: 1px solid var(--border);
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  padding-top: 20px;
  padding-bottom: 0;
  font-size: 0.85rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
}

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

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

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--primary); text-decoration: none; }

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

/* ============ Hero ============ */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  margin-top: 28px;
  padding: 56px 48px !important;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(26, 115, 232, 0.14) 0%, rgba(0, 194, 255, 0.10) 42%, rgba(123, 97, 255, 0.14) 100%),
    var(--bg-elev);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(0, 194, 255, 0.28), transparent 70%);
  filter: blur(20px);
  z-index: -1;
  animation: heroFloat 14s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -50% auto;
  width: 60%;
  height: 100%;
  background: radial-gradient(closest-side, rgba(123, 97, 255, 0.22), transparent 70%);
  filter: blur(24px);
  z-index: -1;
  animation: heroFloat 18s ease-in-out infinite alternate-reverse;
}

@keyframes heroFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4%, 6%, 0) scale(1.08); }
}

.hero-text h1 {
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
  margin-bottom: 0.5em;
}

.hero .lead {
  font-size: 1.02rem;
  color: var(--text-soft);
  max-width: 60ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  margin-bottom: 0;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent-2) 100%);
  box-shadow: 0 10px 24px rgba(26, 115, 232, 0.32);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(26, 115, 232, 0.42);
}

.btn-secondary {
  color: var(--primary);
  background: var(--glass-bg);
  border-color: var(--primary);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: #fff;
  text-decoration: none;
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(26, 115, 232, 0.3);
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-media svg {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.hero-media:hover svg {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 26px 60px rgba(26, 115, 232, 0.28);
}

/* ============ Anchor nav ============ */
.anchor-nav {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

.anchor-nav h2 {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.anchor-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.anchor-nav li { margin: 0; }

.anchor-nav a {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.28s var(--ease);
}

.anchor-nav a:hover,
.anchor-nav a:focus-visible {
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--accent-2));
  border-color: transparent;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(26, 115, 232, 0.28);
}

/* ============ Cards for content blocks ============ */
#about,
#history,
#culture,
#products,
#advantages,
#solutions,
#applications,
#cases,
#reviews,
#news,
#articles,
#knowledge,
#faq,
#howto,
#contact,
#sitemap,
#links,
#legal {
  position: relative;
}

#about > h3,
#history > h3,
#culture > h3,
#products > h3,
#advantages > h3,
#solutions > h3,
#applications > h3,
#cases > h3,
#knowledge > h3,
#howto > h3,
#legal > h3 {
  padding-left: 16px;
  position: relative;
  margin-top: 1.6em;
}

#about > h3::before,
#history > h3::before,
#culture > h3::before,
#products > h3::before,
#advantages > h3::before,
#solutions > h3::before,
#applications > h3::before,
#cases > h3::before,
#knowledge > h3::before,
#howto > h3::before,
#legal > h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  bottom: 0.28em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

/* ============ News & Articles cards ============ */
#news,
#articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  align-items: start;
}

#news > h2,
#articles > h2 {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

#news article,
#articles article {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.38s var(--ease), box-shadow 0.38s var(--ease),
    border-color 0.38s var(--ease);
  position: relative;
  overflow: hidden;
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 115, 232, 0.35);
}

#news article:hover::before,
#articles article:hover::before {
  transform: scaleX(1);
}

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

#news article h3 a,
#articles article h3 a {
  color: var(--text);
  text-decoration: none;
}

#news article h3 a:hover,
#articles article h3 a:hover {
  color: var(--primary);
  text-decoration: none;
}

#news time,
#articles time {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--primary-light);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

#news article p,
#articles article p {
  font-size: 0.92rem;
  margin-bottom: 0.7em;
}

#news article p:last-child,
#articles article p:last-child {
  margin-bottom: 0;
}

#news article a[href="#articles"],
#articles article a[href="#articles"] {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

#news article a[href="#articles"]::after,
#articles article a[href="#articles"]::after {
  content: "→";
  transition: transform 0.28s var(--ease);
}

#news article a[href="#articles"]:hover::after,
#articles article a[href="#articles"]:hover::after {
  transform: translateX(4px);
}

/* ============ Reviews ============ */
#reviews blockquote {
  margin: 0 0 18px;
  padding: 22px 24px 22px 56px;
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  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);
}

#reviews blockquote::before {
  content: "\201C";
  position: absolute;
  left: 18px;
  top: 6px;
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--primary);
  opacity: 0.35;
}

#reviews blockquote:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 115, 232, 0.35);
}

#reviews blockquote p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-soft);
}

/* ============ FAQ ============ */
#faq h3 {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 1rem;
  cursor: default;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
  padding-left: 44px;
}

#faq h3::before {
  content: "?";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#faq h3:hover {
  border-color: rgba(26, 115, 232, 0.4);
  box-shadow: var(--shadow-sm);
}

#faq h3 + p {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  margin: 0 0 6px;
  padding: 14px 18px;
  font-size: 0.94rem;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

#faq h3:hover + p {
  background: var(--primary-light);
  border-color: rgba(26, 115, 232, 0.25);
}

/* ============ HowTo ============ */
#howto h3 {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(26, 115, 232, 0.2);
  margin-top: 22px;
  margin-bottom: 10px;
}

#howto h3 + p {
  margin-top: 0;
}

/* ============ Contact ============ */
#contact p {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 10px;
  font-size: 0.94rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

#contact p:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(26, 115, 232, 0.3);
}

#contact a {
  font-weight: 600;
}

/* ============ Sitemap & links lists ============ */
#sitemap ul,
#links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#sitemap li,
#links li {
  margin: 0;
}

#sitemap a,
#links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-soft);
  text-decoration: none;
  transition: all 0.28s var(--ease);
}

#sitemap a::before,
#links a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  flex-shrink: 0;
  transition: transform 0.28s var(--ease);
}

#sitemap a:hover,
#links a:hover,
#sitemap a:focus-visible,
#links a:focus-visible {
  color: var(--primary);
  border-color: rgba(26, 115, 232, 0.4);
  background: var(--primary-light);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

#sitemap a:hover::before,
#links a:hover::before {
  transform: scale(1.5);
}

/* ============ Legal ============ */
#legal p:last-child {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: 0.84rem;
  color: var(--text-muted);
  text-align: center;
}

/* ============ Footer ============ */
footer {
  position: relative;
  margin-top: 40px;
  padding: 40px 24px 56px;
  text-align: center;
  background:
    linear-gradient(180deg, transparent, rgba(26, 115, 232, 0.06)),
    var(--bg-elev);
  border-top: 1px solid var(--border);
}

footer p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

footer p:first-child {
  font-weight: 600;
  color: var(--text-soft);
}

#back-to-top {
  margin-top: 16px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

#back-to-top:hover,
#back-to-top:focus-visible {
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--accent-2));
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(26, 115, 232, 0.32);
}

/* ============ Scroll animations ============ */
main > section,
.hero,
#news article,
#articles article,
#reviews blockquote {
  animation: fadeUp 0.7s var(--ease) both;
}

main > section:nth-of-type(odd) { animation-delay: 0.04s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    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;
  }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 44px 32px !important;
    text-align: left;
  }

  .hero-media {
    order: -1;
  }

  .hero-media svg {
    max-width: 520px;
    margin: 0 auto;
  }

  #main-nav a {
    padding: 8px 10px;
    font-size: 0.88rem;
  }
}

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

  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }

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

  #menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  #main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--glass-bg);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease);
    opacity: 0;
    pointer-events: none;
  }

  #main-nav.is-open {
    max-height: 80vh;
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
  }

  #main-nav ul {
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px 20px;
    overflow: visible;
  }

  #main-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
  }

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

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

  .hero {
    margin-top: 20px;
    padding: 32px 22px !important;
    border-radius: var(--radius-md);
  }

  .hero-cta {
    gap: 10px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 22px;
    font-size: 0.92rem;
    flex: 1 1 auto;
  }

  #news,
  #articles {
    grid-template-columns: 1fr;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.28rem; }
  h3 { font-size: 1.05rem; }

  .hero {
    padding: 26px 18px !important;
  }

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

  .hero-cta {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .anchor-nav ul {
    gap: 8px;
  }

  .anchor-nav a {
    font-size: 0.8rem;
    padding: 6px 13px;
  }

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

  #reviews blockquote {
    padding: 20px 18px 20px 46px;
  }

  #reviews blockquote::before {
    left: 12px;
    font-size: 2.4rem;
  }

  #faq h3 {
    padding: 12px 14px 12px 40px;
    font-size: 0.95rem;
  }

  #faq h3 + p {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  #contact p {
    font-size: 0.9rem;
    padding: 9px 14px;
  }

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

  footer {
    padding: 32px 18px 48px;
  }
}

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

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

  main > section {
    page-break-inside: avoid;
    border-top: none;
  }
}