:root {
  --brand: #c8102e;
  --brand-dark: #9e0b24;
  --brand-light: #ff4d6a;
  --accent: #ffe08a;
  --accent-2: #7c5cff;
  --bg: #f7f5f2;
  --bg-alt: #ffffff;
  --bg-elev: rgba(255, 255, 255, 0.72);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.7);
  --text: #1d1b22;
  --text-soft: #4a4653;
  --text-mute: #7a7484;
  --border: rgba(29, 27, 34, 0.1);
  --shadow-sm: 0 2px 8px rgba(29, 27, 34, 0.06);
  --shadow-md: 0 10px 30px rgba(29, 27, 34, 0.1);
  --shadow-lg: 0 24px 60px rgba(29, 27, 34, 0.16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --grad-hero: linear-gradient(135deg, #c8102e 0%, #7c1d5a 45%, #3a1c71 100%);
  --grad-accent: linear-gradient(120deg, #ff4d6a 0%, #c8102e 50%, #7c5cff 100%);
  --grad-soft: linear-gradient(135deg, rgba(200, 16, 46, 0.08), rgba(124, 92, 255, 0.08));
  --header-h: 0px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1180px;
  color-scheme: light;
}

[data-theme="dark"] {
  --brand: #ff4d6a;
  --brand-dark: #c8102e;
  --brand-light: #ff8095;
  --accent: #ffe08a;
  --accent-2: #9d86ff;
  --bg: #0e0d12;
  --bg-alt: #16151c;
  --bg-elev: rgba(30, 28, 38, 0.72);
  --glass: rgba(30, 28, 38, 0.55);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text: #f2f0f6;
  --text-soft: #c7c3d1;
  --text-mute: #8f8a9c;
  --border: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --grad-hero: linear-gradient(135deg, #4a0a1a 0%, #2c1040 45%, #14102b 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 77, 106, 0.12), rgba(157, 134, 255, 0.12));
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(200, 16, 46, 0.12), transparent 60%),
    radial-gradient(900px 500px at 10% 5%, rgba(124, 92, 255, 0.1), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--brand-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

h1 {
  font-size: clamp(1.7rem, 4.4vw, 2.7rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: var(--radius-pill);
  background: var(--grad-accent);
}

h3 {
  font-size: clamp(1.08rem, 2.2vw, 1.28rem);
  color: var(--text-soft);
}

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

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

li {
  margin-bottom: 0.45em;
}

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

time {
  font-size: 0.85em;
  color: var(--text-mute);
}

blockquote {
  margin: 0 0 1.2em;
  padding: 18px 22px;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

blockquote footer {
  font-size: 0.88em;
  color: var(--text-mute);
  font-style: normal;
}

details {
  margin: 0 0 14px;
  padding: 18px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

details:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 16, 46, 0.35);
  transform: translateY(-2px);
}

details[open] {
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 16, 46, 0.35);
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 32px;
  transition: color 0.25s var(--ease);
}

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

summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.35s var(--ease);
}

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

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

details p {
  margin: 14px 0 0;
}

.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-elev);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, var(--shadow-sm);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 20px;
  font-size: 0.82rem;
  color: var(--text-mute);
  background: var(--grad-hero);
  border-radius: 0 0 var(--radius) var(--radius);
  flex-wrap: wrap;
}

.top-bar p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
}

.top-bar nav {
  display: flex;
  gap: 18px;
}

.top-bar nav a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.top-bar nav a:hover {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

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

.logo svg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.4);
  transition: transform 0.5s var(--ease), box-shadow 0.4s var(--ease);
}

.logo:hover svg {
  transform: rotate(-12deg) scale(1.06);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.55);
}

.logo span {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

.site-search {
  display: flex;
  flex: 1 1 260px;
  max-width: 420px;
  gap: 0;
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.18);
}

.site-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 18px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
}

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

.site-search button {
  padding: 10px 22px;
  border: 0;
  background: var(--grad-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: filter 0.25s var(--ease), letter-spacing 0.25s var(--ease);
}

.site-search button:hover {
  filter: brightness(1.1);
  letter-spacing: 0.04em;
}

#theme-toggle,
#menu-toggle {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}

#theme-toggle:hover,
#menu-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  color: var(--brand);
}

#menu-toggle {
  display: none;
}

#main-nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px 8px;
}

#main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: var(--radius-pill);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#main-nav li {
  margin: 0;
}

#main-nav a {
  display: block;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-soft);
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

#main-nav a:hover {
  background: var(--grad-accent);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px 40px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 20px 0 8px;
  padding: 0;
  font-size: 0.84rem;
  color: var(--text-mute);
}

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

.breadcrumb li + li::before {
  content: "›";
  margin: 0 8px 0 0;
  color: var(--text-mute);
}

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

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

section {
  margin: 0 0 28px;
  padding: clamp(20px, 4vw, 38px);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fadeUp 0.8s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% cover 28%;
}

@supports not (animation-timeline: view()) {
  section {
    animation: fadeUp 0.7s var(--ease) both;
  }
}

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

#hero {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--grad-hero);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-lg);
  color: #fff;
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(255, 224, 138, 0.35), transparent 62%);
  filter: blur(10px);
  z-index: -1;
  animation: floatBlob 14s ease-in-out infinite alternate;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -45% -15%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.4), transparent 62%);
  filter: blur(10px);
  z-index: -1;
  animation: floatBlob 18s ease-in-out infinite alternate-reverse;
}

@keyframes floatBlob {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-40px, 30px, 0) scale(1.12);
  }
}

#hero h1,
#hero h2 {
  color: #fff;
}

#hero h1 {
  position: relative;
  padding-bottom: 0.3em;
}

#hero h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 96px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent), var(--brand-light));
}

#hero > p {
  max-width: 860px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.95rem, 1.6vw, 1.06rem);
}

#hero > p a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#hero > p a:hover {
  color: #fff;
}

.hero-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 26px 0;
}

.hero-carousel article {
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.16);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.hero-carousel article:hover {
  transform: translateY(-6px) scale(1.015);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.hero-carousel h2 {
  padding-left: 0;
  font-size: 1.12rem;
  color: #fff;
}

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

.hero-carousel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  list-style: none;
  margin: 8px 0 26px;
  padding: 0;
}

.hero-stats li {
  margin: 0;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  text-align: center;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.hero-stats li:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
}

.hero-stats strong {
  display: block;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

#intro,
#brand,
#advantages,
#scenes,
#reviews,
#howto,
#contact {
  background-image: var(--grad-soft);
}

#products ul,
#advantages ul,
#solutions ul,
#contact ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

#products ul li,
#advantages ul li,
#solutions ul li,
#contact ul li {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.94rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#products ul li:hover,
#advantages ul li:hover,
#solutions ul li:hover,
#contact ul li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 16, 46, 0.32);
}

#brand ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

#brand ul li {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border-left: 4px solid var(--brand);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#brand ul li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

#news article,
#articles article {
  padding: 22px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

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

#news article:hover,
#articles article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 16, 46, 0.3);
}

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

#news article p,
#articles article p {
  margin-bottom: 0.6em;
}

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

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--grad-accent);
  color: #fff;
  text-decoration: none;
  transition: filter 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

#articles article a:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.3);
  text-decoration: none;
}

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

#reviews blockquote {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

#howto ol,
#howto ul {
  padding-left: 1.3em;
}

#howto ol li {
  padding: 6px 0;
}

#howto ol li::marker {
  color: var(--brand);
  font-weight: 700;
}

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

#cases h3 {
  padding: 14px 0 4px;
  border-bottom: 1px dashed var(--border);
}

#cases h3::before {
  content: "◆ ";
  color: var(--brand);
  font-size: 0.8em;
}

#contact ul {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

#contact ul li {
  font-size: 0.92rem;
  word-break: break-word;
}

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

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

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

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

footer[role="contentinfo"] {
  margin-top: 20px;
  padding: clamp(28px, 4vw, 48px) 20px 30px;
  background: linear-gradient(180deg, transparent, rgba(200, 16, 46, 0.06));
  border-top: 1px solid var(--border);
}

footer[role="contentinfo"] > section {
  max-width: var(--container);
  margin: 0 auto 18px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

footer[role="contentinfo"] h2 {
  font-size: 1.05rem;
  padding-left: 14px;
}

footer[role="contentinfo"] h2::before {
  width: 4px;
}

footer[role="contentinfo"] h3 {
  font-size: 0.95rem;
  margin-top: 1em;
  color: var(--text);
}

footer[role="contentinfo"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 0.6em;
}

footer[role="contentinfo"] li {
  margin: 0;
}

footer[role="contentinfo"] p {
  font-size: 0.9rem;
  margin-bottom: 0.6em;
}

footer[role="contentinfo"] p:last-child {
  margin-bottom: 0;
}

#back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  font-size: 0;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(200, 16, 46, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, box-shadow 0.35s var(--ease);
}

#back-to-top::before {
  content: "↑";
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 34px rgba(200, 16, 46, 0.55);
}

#back-to-top:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: rgba(200, 16, 46, 0.25);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand), var(--accent-2));
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-dark);
}

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

  #main-nav {
    display: none;
    padding-bottom: 14px;
  }

  #main-nav.open {
    display: block;
    animation: fadeUp 0.4s var(--ease) both;
  }

  #main-nav ul {
    flex-direction: column;
    border-radius: var(--radius);
    padding: 10px;
  }

  #main-nav a {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
  }

  .brand-row {
    gap: 12px;
  }

  .site-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .top-bar {
    border-radius: 0;
    font-size: 0.78rem;
  }
}

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

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 16px;
  }

  .top-bar nav {
    gap: 14px;
  }

  .brand-row {
    padding: 12px 16px;
  }

  .logo {
    font-size: 1rem;
  }

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

  main {
    padding: 0 14px 30px;
  }

  section {
    padding: 20px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
  }

  #hero {
    padding: 26px 18px;
    border-radius: var(--radius);
  }

  .hero-carousel {
    grid-template-columns: 1fr;
  }

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

  #products ul,
  #advantages ul,
  #solutions ul,
  #contact ul {
    grid-template-columns: 1fr;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 5px;
  }

  blockquote {
    padding: 14px 16px;
  }

  details {
    padding: 14px 16px;
  }

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

  footer[role="contentinfo"] {
    padding: 24px 14px;
  }

  footer[role="contentinfo"] > section {
    padding: 18px 16px;
  }
}

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

  section {
    opacity: 1;
    transform: none;
  }
}

@media print {
  #site-header,
  #back-to-top,
  .site-search,
  #theme-toggle,
  #menu-toggle {
    display: none !important;
  }

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

  section,
  details,
  article {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}