:root {
  --brand: #c0392b;
  --brand-dark: #8e1f16;
  --brand-light: #f7e9e7;
  --brand-glow: rgba(192, 57, 43, 0.28);
  --accent: #f39c12;
  --accent-2: #8e44ad;
  --ink: #1f2328;
  --ink-soft: #4a5158;
  --ink-mute: #7a828a;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-elev: #ffffff;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.55);
  --line: #e5e7eb;
  --line-soft: #eef0f3;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.14);
  --shadow-glow: 0 10px 30px rgba(192, 57, 43, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --brand: #e05a4b;
  --brand-dark: #c0392b;
  --brand-light: #2a1d1b;
  --brand-glow: rgba(224, 90, 75, 0.3);
  --accent: #f5b041;
  --accent-2: #a569bd;
  --ink: #e8eaed;
  --ink-soft: #b3b8bf;
  --ink-mute: #8a9199;
  --bg: #14171a;
  --bg-soft: #1c2024;
  --bg-elev: #1f2429;
  --glass: rgba(28, 32, 36, 0.62);
  --glass-border: rgba(255, 255, 255, 0.08);
  --line: #2c3238;
  --line-soft: #252a2f;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 10px 30px rgba(224, 90, 75, 0.24);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

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

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  z-index: 9999;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
}

/* ============ Header ============ */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: 0.2px;
}

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

.logo .logo-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  box-shadow: 0 4px 14px var(--brand-glow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.logo:hover .logo-mark {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 8px 22px var(--brand-glow);
}

.logo small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.5px;
  line-height: 1.4;
}

nav.main-nav {
  margin-left: auto;
}

nav.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2px;
}

nav.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

nav.main-nav a:hover {
  background: var(--brand-light);
  color: var(--brand);
  text-decoration: none;
  transform: translateY(-1px);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  background: var(--bg-soft);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-glow);
  background: var(--bg-elev);
}

.search-box input {
  border: 0;
  background: transparent;
  outline: none;
  color: var(--ink);
  width: 130px;
  font-size: 14px;
  font-family: inherit;
}

.search-box input::placeholder {
  color: var(--ink-mute);
}

.search-box button {
  border: 0;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

.search-box button:hover {
  background: var(--brand-dark);
  transform: scale(1.08);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease), background 0.25s ease;
}

.icon-btn:hover {
  color: var(--brand);
  border-color: var(--brand);
  transform: rotate(12deg) scale(1.06);
  background: var(--brand-light);
}

.menu-toggle {
  display: none;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  background: var(--bg);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--ink-mute);
}

/* ============ Hero ============ */
.hero {
  background:
    radial-gradient(1200px 480px at 8% -10%, var(--brand-glow), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(142, 68, 173, 0.16), transparent 55%),
    linear-gradient(135deg, var(--brand-light), var(--bg-soft) 55%, var(--bg));
  padding: 52px 0 44px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background 0.35s ease;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.35;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 34px;
  line-height: 1.35;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  background: linear-gradient(120deg, var(--ink) 30%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
  -webkit-text-fill-color: var(--brand);
  position: relative;
}

.hero p.lead {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.hero-tags span {
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  transition: transform 0.25s var(--ease), color 0.25s ease, border-color 0.25s ease;
}

.hero-tags span:hover {
  transform: translateY(-2px);
  color: var(--brand);
  border-color: var(--brand);
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px var(--brand-glow);
}

.btn-ghost {
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--brand);
  border-color: var(--brand);
}

.btn-ghost:hover {
  background: var(--brand-light);
  text-decoration: none;
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
}

/* ============ Carousel ============ */
.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-elev);
  border: 1px solid var(--glass-border);
}

.carousel-track {
  position: relative;
  height: 280px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
  transform: scale(1.02);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.slide h3 {
  font-size: 19px;
  margin-bottom: 6px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  position: relative;
}

.slide p {
  font-size: 13.5px;
  opacity: 0.94;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  position: relative;
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  right: 18px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: width 0.3s var(--ease), background 0.3s ease;
}

.carousel-dots button:hover {
  background: rgba(255, 255, 255, 0.85);
}

.carousel-dots button.active {
  background: #fff;
  width: 22px;
  border-radius: 6px;
}

/* ============ Stats ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.stat {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 18px 12px;
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

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

.stat .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat .label {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ============ Sections ============ */
section.block {
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.35s ease;
}

section.block:nth-child(even) {
  background: var(--bg-soft);
}

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-head .kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-light);
  border: 1px solid var(--line);
}

.section-head h2 {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ============ Grids & Cards ============ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.5;
}

.card h4 {
  font-size: 15.5px;
  margin: 14px 0 6px;
  font-weight: 700;
  color: var(--brand);
}

.card p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.card .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-light), var(--bg-soft));
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.card:hover .icon-wrap {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 8px 20px var(--brand-glow);
}

/* ============ Article list ============ */
.article-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.article-item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
}

.article-item::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.article-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.article-item:hover::after {
  transform: scaleX(1);
}

.article-item .meta {
  font-size: 12.5px;
  color: var(--ink-soft);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.article-item .meta span {
  position: relative;
}

.article-item .meta span + span::before {
  content: "·";
  margin-right: 12px;
  color: var(--ink-mute);
}

.article-item h3 {
  font-size: 17.5px;
  margin-bottom: 8px;
  line-height: 1.55;
  transition: color 0.25s ease;
}

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

.article-item p {
  font-size: 14.5px;
  color: var(--ink-soft);
  flex: 1;
}

.article-item .read-more {
  margin-top: 14px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.25s ease;
}

.article-item:hover .read-more {
  gap: 10px;
  text-decoration: none;
}

/* ============ FAQ ============ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.faq-item.open {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-family: inherit;
  transition: color 0.25s ease, background 0.25s ease;
}

.faq-q:hover {
  color: var(--brand);
  background: var(--brand-light);
}

.faq-q .chev {
  flex: 0 0 auto;
  transition: transform 0.35s var(--ease);
  color: var(--brand);
  font-size: 14px;
}

.faq-item.open .faq-q .chev {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 0 20px;
}

.faq-item.open .faq-a {
  max-height: 700px;
  padding-bottom: 18px;
}

.faq-a p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ============ HowTo ============ */
.howto-steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.howto-step {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px 20px 64px;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

.howto-step:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}

.howto-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 12px var(--brand-glow);
}

.howto-step h3 {
  font-size: 16.5px;
  margin-bottom: 6px;
}

.howto-step p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ============ Cases ============ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
}

.case-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0.55;
  transition: opacity 0.35s ease;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.case-card:hover::before {
  opacity: 1;
}

.case-card .case-body {
  padding: 20px;
}

.case-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.case-card p {
  font-size: 14px;
  color: var(--ink-soft);
}

.case-card .case-tag {
  display: inline-block;
  font-size: 12px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 10px;
  font-weight: 600;
  border: 1px solid var(--line);
}

/* ============ Testimonials ============ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testimonial {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 18px;
  font-size: 56px;
  color: var(--brand-light);
  font-family: Georgia, serif;
  line-height: 1;
  transition: color 0.35s ease, transform 0.35s var(--ease);
}

.testimonial:hover::before {
  color: var(--brand-glow);
  transform: scale(1.12);
}

.testimonial p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.testimonial .who {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.testimonial .who span {
  display: block;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 12.5px;
}

/* ============ News ============ */
.news-list {
  display: grid;
  gap: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 22px;
}

.news-row {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  transition: background 0.25s ease, padding-left 0.25s ease;
}

.news-row:last-child {
  border-bottom: 0;
}

.news-row:hover {
  padding-left: 6px;
}

.news-row .date {
  flex: 0 0 92px;
  font-size: 13px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.news-row a {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.25s ease;
}

.news-row a:hover {
  color: var(--brand);
  text-decoration: none;
}

.news-row .tag {
  font-size: 12px;
  color: var(--brand);
  background: var(--brand-light);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

/* ============ Team ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.team-card .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 12px;
  overflow: hidden;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--brand-light), 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}

.team-card:hover .avatar {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 0 0 3px var(--brand), 0 12px 26px var(--brand-glow);
}

.team-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 8px;
}

.team-card p {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
}

.contact-info {
  display: grid;
  gap: 14px;
  align-content: start;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}

.contact-item .ci-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-light);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  transition: transform 0.3s var(--ease);
}

.contact-item:hover .ci-icon {
  transform: rotate(-8deg) scale(1.06);
}

.contact-item h3 {
  font-size: 15px;
  margin-bottom: 2px;
}

.contact-item p {
  font-size: 14px;
  color: var(--ink-soft);
  word-break: break-all;
}

.contact-form {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.contact-form:focus-within {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
}

.contact-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 14px;
}

.contact-form label:first-child {
  margin-top: 0;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-glow);
  background: var(--bg-elev);
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-form .btn {
  margin-top: 18px;
  width: 100%;
  justify-content: center;
}

/* ============ Sitemap ============ */
.sitemap-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sitemap-cols h3 {
  font-size: 15px;
  margin-bottom: 12px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-light);
}

.sitemap-cols ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.sitemap-cols a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.25s ease, padding-left 0.25s ease;
  display: inline-block;
}

.sitemap-cols a:hover {
  color: var(--brand);
  padding-left: 4px;
  text-decoration: none;
}

/* ============ Anchor nav ============ */
.anchor-nav {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  box-shadow: var(--shadow);
}

.anchor-nav a {
  font-size: 13.5px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}

.anchor-nav a:hover {
  background: var(--brand-light);
  color: var(--brand);
  border-color: var(--brand);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ============ Trust bar ============ */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-top: 26px;
}

.trust-bar .trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

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

.trust-bar .trust-item svg {
  flex: 0 0 22px;
  color: var(--brand);
}

/* ============ Notice ============ */
.notice {
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 22px 0 0;
  line-height: 1.85;
}

.notice strong {
  color: var(--brand);
}

/* ============ Search results ============ */
.search-results {
  display: none;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 12px;
  box-shadow: var(--shadow);
  animation: dropIn 0.3s var(--ease);
}

.search-results.show {
  display: block;
}

.search-results h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.search-results ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.search-results a {
  font-size: 14px;
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ Footer ============ */
footer.site-footer {
  background: #1a1d21;
  color: #c3c8ce;
  padding: 52px 0 24px;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

footer.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--accent-2), var(--brand));
  background-size: 300% 100%;
  animation: gradientShift 8s linear infinite;
}

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

[data-theme="dark"] footer.site-footer {
  background: #0d0f11;
}

footer.site-footer a {
  color: #c3c8ce;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

footer.site-footer a:hover {
  color: #fff;
  text-decoration: none;
  padding-left: 3px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
  margin-bottom: 36px;
}

.footer-grid h3 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 14px;
  font-weight: 700;
}

.footer-grid ul {
  list-style: none;
  display: grid;
  gap: 9px;
}

.footer-brand p {
  font-size: 13.5px;
  color: #9aa1a9;
  margin-top: 12px;
  line-height: 1.85;
}

.footer-bottom {
  border-top: 1px solid #2c3238;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: #8a9199;
}

.footer-bottom .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============ Back to top ============ */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
  z-index: 900;
}

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

.back-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 36px var(--brand-glow);
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

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

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .grid-3,
  .case-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

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

@media (max-width: 768px) {
  html {
    scroll-padding-top: 76px;
  }

  nav.main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px;
    box-shadow: var(--shadow-lg);
    animation: dropIn 0.3s var(--ease);
  }

  nav.main-nav.open {
    display: block;
  }

  nav.main-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  nav.main-nav a {
    padding: 12px;
  }

  .menu-toggle {
    display: flex;
  }

  .search-box {
    display: none;
  }

  .hero {
    padding: 36px 0 32px;
  }

  .hero h1 {
    font-size: 25px;
  }

  .hero p.lead {
    font-size: 15.5px;
  }

  .carousel-track {
    height: 220px;
  }

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

  section.block {
    padding: 44px 0;
  }

  .grid-3,
  .grid-2,
  .article-list,
  .case-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .sitemap-cols {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .news-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .news-row .tag {
    margin-left: 0;
  }

  .news-list {
    padding: 6px 16px;
  }

  .section-head h2 {
    font-size: 22px;
  }

  .section-head p {
    font-size: 14.5px;
  }

  .anchor-nav {
    padding: 12px 14px;
    gap: 8px;
  }

  .trust-bar {
    padding: 16px;
    gap: 12px;
  }

  .back-top {
    right: 16px;
    bottom: 18px;
    width: 42px;
    height: 42px;
  }

  .card,
  .article-item,
  .contact-form {
    padding: 20px;
  }

  .howto-step {
    padding: 18px 18px 18px 60px;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .stat .num {
    font-size: 24px;
  }

  .logo {
    font-size: 17px;
  }

  .logo small {
    font-size: 10px;
  }

  .btn {
    padding: 10px 18px;
    font-size: 14px;
  }
}

/* ============ Reduced motion ============ */
@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;
  }
}

/* ============ Print ============ */
@media print {
  header.site-header,
  .anchor-nav,
  .back-top,
  footer.site-footer,
  .hero-visual,
  .carousel-dots {
    display: none !important;
  }

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

  section.block {
    padding: 20px 0;
    page-break-inside: avoid;
  }

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