:root {
  --brand: #6C5CE7;
  --brand-dark: #5546c9;
  --brand-light: #a29bfe;
  --accent: #00B894;
  --accent-warm: #E17055;
  --accent-blue: #0984E3;
  --bg: #f7f6fb;
  --bg-alt: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.65);
  --bg-glass-strong: rgba(255, 255, 255, 0.82);
  --text: #2d3436;
  --text-soft: #5a6169;
  --text-muted: #7f8a94;
  --border: rgba(108, 92, 231, 0.14);
  --border-soft: rgba(45, 52, 54, 0.08);
  --shadow-sm: 0 2px 8px rgba(45, 52, 54, 0.06);
  --shadow-md: 0 8px 24px rgba(45, 52, 54, 0.09);
  --shadow-lg: 0 18px 48px rgba(45, 52, 54, 0.14);
  --shadow-brand: 0 10px 30px rgba(108, 92, 231, 0.28);
  --grad-hero: linear-gradient(135deg, #6C5CE7 0%, #8e7dff 42%, #00B894 100%);
  --grad-brand: linear-gradient(135deg, #6C5CE7, #a29bfe);
  --grad-warm: linear-gradient(135deg, #E17055, #fab1a0);
  --grad-cool: linear-gradient(135deg, #0984E3, #74b9ff);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --space-xs: 0.5rem;
  --space-sm: 0.85rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;
  color-scheme: light dark;
}

html[data-theme="dark"] {
  --bg: #10101a;
  --bg-alt: #181826;
  --bg-glass: rgba(28, 28, 44, 0.6);
  --bg-glass-strong: rgba(32, 32, 50, 0.85);
  --text: #eef0f6;
  --text-soft: #c3c8d4;
  --text-muted: #8f96a8;
  --border: rgba(162, 155, 254, 0.22);
  --border-soft: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
  --grad-hero: linear-gradient(135deg, #3b2f8f 0%, #5a4bc9 45%, #0b7a63 100%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(108, 92, 231, 0.1), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(0, 184, 148, 0.09), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(225, 112, 85, 0.07), transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

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

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

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

html[data-theme="dark"] a:hover,
html[data-theme="dark"] a:focus-visible {
  color: var(--brand-light);
}

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

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

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3rem);
  margin: 0 0 var(--space-md);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem);
  margin: 0 0 var(--space-md);
  position: relative;
  padding-left: 1rem;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  box-shadow: 0 0 14px rgba(108, 92, 231, 0.5);
}

h3 {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  margin: var(--space-lg) 0 var(--space-sm);
}

p {
  margin: 0 0 var(--space-md);
  color: var(--text-soft);
}

ul,
ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.4rem;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.45rem;
}

li::marker {
  color: var(--brand);
}

time {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  padding: 0.15rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-sm);
}

blockquote {
  margin: var(--space-md) 0;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

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

figure {
  margin: var(--space-lg) 0;
  padding: var(--space-sm);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

figure:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

figure svg {
  border-radius: var(--radius-md);
}

figcaption {
  margin-top: var(--space-sm);
  padding: 0 var(--space-sm) var(--space-xs);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition), box-shadow var(--transition);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.65rem var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  flex-shrink: 0;
}

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

.brand svg {
  border-radius: 12px;
  box-shadow: var(--shadow-brand);
  transition: transform var(--transition);
}

.brand:hover svg {
  transform: rotate(-8deg) scale(1.06);
}

.brand-name {
  letter-spacing: 0.02em;
}

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

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  position: relative;
  transition: color var(--transition), background-color var(--transition), transform var(--transition);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  transform: translateX(-50%);
  transition: width var(--transition);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--brand);
  background: rgba(108, 92, 231, 0.08);
  transform: translateY(-1px);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  width: 60%;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.25rem 0.2rem 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.site-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.15);
}

.site-search input {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
  padding: 0.3rem 0;
  width: 170px;
  outline: none;
}

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

.site-search button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-brand);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  transition: filter var(--transition), transform var(--transition);
}

.site-search button:hover {
  filter: brightness(1.1);
  transform: scale(1.03);
}

#theme-toggle,
#menu-toggle {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

#theme-toggle:hover,
#menu-toggle:hover {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
}

#menu-toggle {
  display: none;
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) var(--space-2xl);
}

main > section,
main > nav {
  margin-bottom: var(--space-xl);
}

.breadcrumb {
  font-size: 0.85rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0.6rem 1rem;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  width: fit-content;
}

.breadcrumb li {
  margin: 0;
  color: var(--text-muted);
}

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

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

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

#hero {
  position: relative;
  padding: clamp(1.6rem, 1rem + 3vw, 3.5rem);
  border-radius: var(--radius-xl);
  background: var(--grad-hero);
  background-size: 200% 200%;
  animation: gradientShift 14s ease infinite;
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}

#hero::before,
#hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

#hero::before {
  width: 340px;
  height: 340px;
  top: -140px;
  right: -80px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 70%);
  animation: floatBlob 12s ease-in-out infinite;
}

#hero::after {
  width: 260px;
  height: 260px;
  bottom: -120px;
  left: -60px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
  animation: floatBlob 16s ease-in-out infinite reverse;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

#hero h1 {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

#hero .lead {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.08rem);
  max-width: 62ch;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.12);
}

#hero a {
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 1px;
  transition: border-color var(--transition), opacity var(--transition);
}

#hero a:hover {
  color: #fff;
  border-color: #fff;
}

.hero-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: var(--space-md);
  overflow-x: auto;
  padding: var(--space-sm) 0.25rem var(--space-md);
  margin: var(--space-md) 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.hero-carousel::-webkit-scrollbar {
  height: 6px;
}

.hero-carousel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-pill);
}

.hero-carousel .slide {
  scroll-snap-align: start;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.hero-carousel .slide:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.hero-carousel .slide h2 {
  padding-left: 0;
  margin-bottom: var(--space-xs);
  font-size: 1.15rem;
  color: #fff;
}

.hero-carousel .slide h2::before {
  display: none;
}

.hero-carousel .slide p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  margin-bottom: var(--space-sm);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--space-sm);
  margin: var(--space-lg) 0 var(--space-md);
}

.stat {
  text-align: center;
  padding: var(--space-md) var(--space-sm);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform var(--transition), background-color var(--transition);
}

.stat:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(255, 255, 255, 0.26);
}

.stat .num {
  display: block;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.stat .label {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.86);
  margin-top: 0.2rem;
}

#hero figure {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

#hero figcaption {
  color: rgba(255, 255, 255, 0.88);
}

.anchor-nav {
  position: sticky;
  top: 74px;
  z-index: 50;
  padding: 0.45rem;
  background: var(--bg-glass-strong);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  scrollbar-width: none;
}

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

.anchor-nav ul {
  display: flex;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: max-content;
}

.anchor-nav li {
  margin: 0;
}

.anchor-nav a {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.anchor-nav a:hover,
.anchor-nav a:focus-visible {
  background: var(--grad-brand);
  color: #fff;
  transform: translateY(-1px);
}

main > section {
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 1rem + 1.6vw, 2.25rem);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), background-color var(--transition);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

main > section:not(#hero):hover {
  box-shadow: var(--shadow-md);
}

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

main > section:nth-of-type(1) { animation-delay: 0.02s; }
main > section:nth-of-type(2) { animation-delay: 0.06s; }
main > section:nth-of-type(3) { animation-delay: 0.1s; }
main > section:nth-of-type(4) { animation-delay: 0.14s; }
main > section:nth-of-type(5) { animation-delay: 0.18s; }
main > section:nth-of-type(6) { animation-delay: 0.22s; }
main > section:nth-of-type(7) { animation-delay: 0.26s; }
main > section:nth-of-type(8) { animation-delay: 0.3s; }
main > section:nth-of-type(9) { animation-delay: 0.34s; }
main > section:nth-of-type(10) { animation-delay: 0.38s; }
main > section:nth-of-type(11) { animation-delay: 0.42s; }
main > section:nth-of-type(12) { animation-delay: 0.46s; }

@supports (animation-timeline: view()) {
  main > section {
    animation: revealOnScroll linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
  @keyframes revealOnScroll {
    from {
      opacity: 0;
      transform: translateY(30px) scale(0.99);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

main > section article {
  position: relative;
  padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 4px);
  margin-bottom: var(--space-md);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}

main > section article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity var(--transition);
}

main > section article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

main > section article:hover::before {
  opacity: 1;
}

main > section article h3 {
  margin-top: 0;
}

main > section article:last-child {
  margin-bottom: 0;
}

main > section article a {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(108, 92, 231, 0.1);
  color: var(--brand);
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

main > section article a:hover {
  background: var(--grad-brand);
  color: #fff;
  transform: translateX(3px);
}

#news article {
  border-left: 4px solid var(--accent);
}

#news article::before {
  background: linear-gradient(180deg, var(--accent), #55efc4);
}

#articles article {
  border-left: 4px solid var(--brand);
}

#articles article:nth-of-type(3n + 2) {
  border-left-color: var(--accent-blue);
}

#articles article:nth-of-type(3n + 2)::before {
  background: var(--grad-cool);
}

#articles article:nth-of-type(3n) {
  border-left-color: var(--accent-warm);
}

#articles article:nth-of-type(3n)::before {
  background: var(--grad-warm);
}

#cases blockquote {
  border-left-color: var(--accent-warm);
  background: linear-gradient(135deg, rgba(225, 112, 85, 0.08), var(--bg-glass));
}

#testimonials blockquote {
  border-left-color: var(--accent);
}

details {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  padding: 0 var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition), background-color var(--transition);
}

details[open] {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

details:hover {
  border-color: var(--border);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-sm) 2rem var(--space-sm) 0;
  font-weight: 600;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
}

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

summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  line-height: 1.5rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}

details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: var(--grad-warm);
}

summary:hover {
  color: var(--brand);
}

details p {
  padding-bottom: var(--space-sm);
  margin: 0;
  animation: fadeUp 0.4s ease both;
}

#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: var(--space-sm) var(--space-sm) var(--space-sm) 3.2rem;
  margin-bottom: var(--space-sm);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.8rem;
  height: 1.8rem;
  line-height: 1.8rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: var(--grad-brand);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.35);
}

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

#knowledge ul,
#products ul,
#advantages ul,
#howto ul,
#contact ul,
#sitemap ul,
#links ul,
footer ul {
  list-style: none;
  padding-left: 0;
}

#advantages ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-sm);
}

#advantages li {
  position: relative;
  padding: var(--space-sm) var(--space-sm) var(--space-sm) 2.4rem;
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#advantages li::before {
  content: "✓";
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.3rem;
  height: 1.3rem;
  line-height: 1.3rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}

#advantages li:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

#knowledge ul li::before,
#howto ul li::before,
#contact ul li::before,
footer ul li::before {
  content: "•";
  color: var(--brand);
  font-weight: 700;
  margin-right: 0.5rem;
}

#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  font-size: 0.88rem;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  transition: background-color var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
}

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

address {
  font-style: normal;
}

#contact address ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

#contact address li {
  margin: 0;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text-soft);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

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

footer {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-top: 1px solid var(--border-soft);
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  max-width: 100%;
}

footer > section {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

footer > section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

footer h2 {
  font-size: 1.1rem;
  padding-left: 0.85rem;
}

footer h2::before {
  width: 4px;
}

footer h3 {
  font-size: 0.98rem;
  margin-top: var(--space-md);
  color: var(--brand);
}

footer p,
footer li {
  font-size: 0.88rem;
  color: var(--text-muted);
}

footer ul {
  margin: 0;
}

footer ul li {
  padding: 0.2rem 0;
}

#back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-brand);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-brand);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), filter var(--transition);
}

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

#back-to-top:hover {
  filter: brightness(1.12);
  box-shadow: 0 14px 36px rgba(108, 92, 231, 0.45);
}

@media (max-width: 1024px) {
  .header-inner {
    gap: var(--space-sm);
  }
  .nav-list a {
    padding: 0.35rem 0.55rem;
    font-size: 0.85rem;
  }
  .site-search input {
    width: 130px;
  }
  .anchor-nav {
    top: 68px;
  }
}

@media (max-width: 860px) {
  #site-header nav {
    order: 5;
    flex-basis: 100%;
    display: none;
  }
  #site-header.nav-open nav {
    display: block;
    animation: fadeUp 0.3s ease both;
  }
  #site-header.nav-open .nav-list {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-soft);
    margin-top: 0.4rem;
  }
  #site-header.nav-open .nav-list a {
    display: block;
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
  }
  #menu-toggle {
    display: inline-block;
    margin-left: auto;
  }
  .site-search {
    order: 4;
    flex: 1 1 auto;
  }
  .site-search input {
    width: 100%;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .anchor-nav {
    top: 64px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  main {
    padding: var(--space-md) var(--space-sm) var(--space-xl);
  }
  .header-inner {
    padding: 0.55rem var(--space-sm);
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .site-search {
    order: 6;
    flex-basis: 100%;
    margin-top: 0.35rem;
  }
  #hero {
    border-radius: var(--radius-lg);
  }
  .hero-carousel {
    grid-auto-columns: minmax(240px, 86%);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  main > section {
    border-radius: var(--radius-md);
    padding: var(--space-md);
  }
  main > section article {
    padding: var(--space-sm) var(--space-sm) var(--space-sm) calc(var(--space-sm) + 4px);
  }
  #contact address ul,
  #advantages ul {
    grid-template-columns: 1fr;
  }
  .anchor-nav {
    top: 60px;
    border-radius: var(--radius-md);
  }
  footer {
    padding: var(--space-lg) var(--space-sm);
    gap: var(--space-md);
  }
  #back-to-top {
    padding: 0.6rem 0.95rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  .stats {
    grid-template-columns: 1fr;
  }
  h2 {
    padding-left: 0.8rem;
  }
  h2::before {
    width: 4px;
  }
}

@media (hover: none) {
  .hero-carousel .slide:hover,
  .stat:hover,
  blockquote:hover,
  figure:hover,
  main > section article:hover,
  #advantages li:hover,
  #contact address li:hover,
  footer > section:hover {
    transform: none;
  }
}

@media print {
  #site-header,
  .anchor-nav,
  #back-to-top,
  .site-search,
  #theme-toggle,
  #menu-toggle {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  main > section,
  main > section article,
  details,
  footer > section {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}