:root {
  --primary: #e94560;
  --primary-dark: #c92a44;
  --secondary: #533483;
  --accent: #f5a623;
  --bg: #f4f6fb;
  --bg-alt: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.65);
  --bg-glass-border: rgba(255, 255, 255, 0.45);
  --text: #1a1a2e;
  --text-soft: #4a4a63;
  --text-muted: #7a7a92;
  --border: rgba(26, 26, 46, 0.1);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 16px 48px rgba(26, 26, 46, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --header-h: 68px;
  --grad-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 45%, #533483 100%);
  --grad-primary: linear-gradient(135deg, #e94560 0%, #533483 100%);
  --grad-accent: linear-gradient(135deg, #f5a623 0%, #e94560 100%);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0d0d1a;
  --bg-alt: #16162b;
  --bg-glass: rgba(22, 22, 43, 0.7);
  --bg-glass-border: rgba(255, 255, 255, 0.08);
  --text: #f0f0f8;
  --text-soft: #c4c4d8;
  --text-muted: #8a8aa8;
  --border: rgba(255, 255, 255, 0.1);
  --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.5);
  --grad-hero: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 45%, #3a2360 100%);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--primary-dark);
}

ul,
ol {
  list-style: none;
}

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

h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); margin: 1.5rem 0 0.6rem; }
p { margin-bottom: 1rem; color: var(--text-soft); }

::selection {
  background: var(--primary);
  color: #fff;
}

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

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

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

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo:hover {
  filter: brightness(1.15);
  -webkit-text-fill-color: transparent;
}

#site-header nav {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-list::-webkit-scrollbar { display: none; }

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

.nav-list a:hover,
.nav-list a:focus-visible {
  background: var(--primary);
  color: #fff;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.18);
}

.search-form input {
  border: none;
  background: transparent;
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--text);
  width: 170px;
  outline: none;
}

.search-form input::placeholder { color: var(--text-muted); }

.search-form button {
  border: none;
  background: var(--grad-primary);
  color: #fff;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: filter var(--transition);
}

.search-form button:hover { filter: brightness(1.12); }

#theme-toggle,
#menu-toggle {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}

#theme-toggle:hover,
#menu-toggle:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

#menu-toggle { display: none; }

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

main > section,
main > nav.breadcrumb,
main > nav.anchor-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

main > section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

main > section:nth-child(even) {
  position: relative;
}

main > section:nth-child(even)::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: var(--bg-alt);
  z-index: -1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  padding-top: 1.2rem;
  padding-bottom: 0.4rem;
  font-size: 0.88rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

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

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

/* ============ HERO ============ */
.hero {
  position: relative;
  padding-top: 2.5rem !important;
  padding-bottom: 3.5rem !important;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--grad-hero);
  overflow: hidden;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.35), transparent 70%);
  top: -180px;
  right: -120px;
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
}

.hero > * {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #fff;
  text-align: center;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.hero-lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 900px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1.02rem;
}

/* ============ BANNER CAROUSEL ============ */
.banner-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.banner-carousel::-webkit-scrollbar { height: 6px; }
.banner-carousel::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 999px;
}

.banner-slide {
  flex: 0 0 min(560px, 88%);
  scroll-snap-align: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--bg-glass-border);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.banner-slide:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.banner-slide svg {
  width: 100%;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.banner-slide p {
  padding: 14px 18px;
  margin: 0;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

/* ============ STAT ROW ============ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 2.2rem;
}

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

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

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

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

/* ============ ANCHOR NAV ============ */
.anchor-nav {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.anchor-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.anchor-nav a {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  background: var(--bg-alt);
  color: var(--text-soft);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.anchor-nav a:hover,
.anchor-nav a:focus-visible {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ============ SECTION CONTENT ============ */
section > h2 {
  position: relative;
  padding-left: 18px;
  margin-bottom: 1.4rem;
}

section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1.4em;
  border-radius: 999px;
  background: var(--grad-primary);
}

section h3 {
  color: var(--text);
}

/* ============ CARDS (articles, news, cases) ============ */
#news article,
#articles article {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
  position: relative;
  overflow: hidden;
}

#news article::before,
#articles article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(233, 69, 96, 0.35);
}

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

#news article h3,
#articles article h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

#news article p,
#articles article p {
  margin-bottom: 0.6rem;
  font-size: 0.96rem;
}

#articles article a {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--grad-primary);
  color: #fff;
  transition: transform var(--transition), box-shadow var(--transition);
}

#articles article a:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  color: #fff;
}

/* ============ BLOCKQUOTES (reviews) ============ */
#reviews blockquote {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 18px 22px 18px 26px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

#reviews blockquote::before {
  content: "\201C";
  position: absolute;
  top: 4px;
  left: 10px;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.3;
  font-family: Georgia, serif;
}

#reviews blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

/* ============ FAQ ============ */
#faq dl {
  display: grid;
  gap: 12px;
}

#faq dt {
  font-weight: 700;
  color: var(--text);
  padding: 14px 18px 14px 44px;
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  transition: background var(--transition);
}

#faq dt::before {
  content: "Q";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

#faq dd {
  padding: 14px 18px 14px 44px;
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: background var(--transition);
}

#faq dd::before {
  content: "A";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

#faq dt:hover { background: rgba(233, 69, 96, 0.06); }

/* ============ HOWTO ============ */
#howto ol {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin: 1rem 0 1.5rem;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 58px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

#howto ol li:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

/* ============ CONTACT ============ */
#contact ul {
  display: grid;
  gap: 10px;
  margin: 1rem 0 1.5rem;
}

#contact ul li {
  padding: 12px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-soft);
  transition: border-color var(--transition), transform var(--transition);
}

#contact ul li:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

/* ============ SITEMAP & LINKS ============ */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap a,
#links a {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  background: var(--bg-alt);
  color: var(--text-soft);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

#sitemap a:hover,
#links a:hover {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* ============ FOOTER ============ */
footer {
  margin-top: 2rem;
  background: var(--grad-hero);
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 20px 2rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

footer > section {
  max-width: 1240px;
  margin: 0 auto 2rem;
}

footer h2 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
  padding-left: 14px;
  position: relative;
}

footer h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.1em;
  border-radius: 999px;
  background: var(--grad-accent);
}

footer p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}

.footer-meta {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6) !important;
  max-width: 1240px;
  margin: 0 auto;
}

/* ============ BACK TO TOP ============ */
#back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 900;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition);
}

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

#back-to-top:hover {
  filter: brightness(1.12);
  transform: translateY(-4px) scale(1.05);
}

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 24px) scale(1.08); }
}

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

.hero h1,
.hero-lead,
.banner-carousel,
.stat-row {
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-lead { animation-delay: 0.1s; }
.banner-carousel { animation-delay: 0.2s; }
.stat-row { animation-delay: 0.3s; }

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

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .nav-list a { font-size: 0.85rem; padding: 7px 10px; }
  .search-form input { width: 130px; }
}

@media (max-width: 900px) {
  .header-inner { gap: 10px; }
  #site-header nav { display: none; }
  #menu-toggle { display: inline-block; }

  #site-header.nav-open nav {
    display: block;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bg-glass-border);
    padding: 12px 16px;
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  #site-header.nav-open .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    overflow: visible;
  }

  #site-header.nav-open .nav-list a {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
  }

  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .banner-slide { flex-basis: 86%; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }

  body { font-size: 15px; }

  .header-inner { padding: 0 14px; gap: 8px; }
  .logo { font-size: 1.08rem; }

  .search-form { flex: 1; min-width: 0; }
  .search-form input { width: 100%; min-width: 0; padding: 7px 10px; font-size: 0.82rem; }
  .search-form button { padding: 7px 12px; font-size: 0.82rem; }

  #theme-toggle,
  #menu-toggle { padding: 7px 11px; font-size: 0.78rem; }

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

  .hero > * { padding-left: 14px; padding-right: 14px; }

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

  .banner-slide { flex-basis: 92%; }
  .banner-slide p { font-size: 0.9rem; padding: 12px 14px; }

  .stat-row { gap: 10px; margin-top: 1.6rem; }
  .stat { padding: 16px 8px; }
  .stat-label { font-size: 0.76rem; }

  .anchor-nav ul { gap: 7px; }
  .anchor-nav a { padding: 6px 12px; font-size: 0.8rem; }

  section > h2 { padding-left: 14px; }
  section > h2::before { width: 4px; }

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

  #faq dt { padding: 12px 14px 12px 40px; font-size: 0.94rem; }
  #faq dd { padding: 12px 14px 12px 40px; font-size: 0.9rem; }
  #faq dt::before,
  #faq dd::before { left: 11px; width: 20px; height: 20px; font-size: 0.7rem; }

  #howto ol li { padding: 12px 14px 12px 50px; font-size: 0.94rem; }
  #howto ol li::before { left: 11px; width: 26px; height: 26px; font-size: 0.82rem; }

  footer { padding: 2.2rem 14px 1.6rem; border-radius: var(--radius-md) var(--radius-md) 0 0; }

  #back-to-top { width: 46px; height: 46px; right: 14px; bottom: 16px; font-size: 0.66rem; }
}

@media (max-width: 380px) {
  .logo { font-size: 0.98rem; }
  .search-form input { padding: 6px 8px; }
  .search-form button { padding: 6px 10px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}