:root {
  --brand: #E63946;
  --brand-dark: #B71C2C;
  --brand-light: #FF6B7A;
  --brand-soft: rgba(230, 57, 70, 0.1);
  --brand-soft-strong: rgba(230, 57, 70, 0.18);
  --accent: #6A4C93;
  --accent-2: #2A9D8F;
  --accent-3: #E76F51;
  --bg: #ffffff;
  --bg-alt: #f7f7f9;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-strong: rgba(255, 255, 255, 0.88);
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --text-soft: #8a8a92;
  --border: #e5e5ea;
  --border-soft: rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.12);
  --shadow-brand: 0 10px 30px rgba(230, 57, 70, 0.28);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1180px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad-brand: linear-gradient(135deg, #E63946 0%, #FF6B7A 55%, #FF9A8B 100%);
  --grad-hero: linear-gradient(135deg, #fff5f5 0%, #ffe8ea 45%, #fff0f3 100%);
  --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
  --grad-text: linear-gradient(120deg, #E63946 0%, #FF6B7A 60%, #F4A261 100%);
}

[data-theme="dark"] {
  --bg: #121214;
  --bg-alt: #1a1a1e;
  --bg-glass: rgba(26, 26, 30, 0.72);
  --bg-glass-strong: rgba(26, 26, 30, 0.9);
  --text: #e9e9ee;
  --text-muted: #a2a2ac;
  --text-soft: #7a7a84;
  --border: #2c2c33;
  --border-soft: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.6);
  --shadow-brand: 0 10px 30px rgba(230, 57, 70, 0.35);
  --brand-soft: rgba(230, 57, 70, 0.16);
  --brand-soft-strong: rgba(230, 57, 70, 0.26);
  --grad-hero: linear-gradient(135deg, #2a1416 0%, #1a0e10 50%, #1e1216 100%);
  --grad-glass: linear-gradient(135deg, rgba(40, 40, 46, 0.9), rgba(26, 26, 30, 0.6));
}

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

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

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

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

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
}

::selection {
  background: var(--brand-soft-strong);
  color: var(--brand-dark);
}

[data-theme="dark"] ::selection {
  color: #fff;
}

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

header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

header.site-header.scrolled {
  box-shadow: var(--shadow);
  background: var(--bg-glass-strong);
  border-bottom-color: var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  letter-spacing: 0.2px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.logo:hover {
  transform: scale(1.03);
  color: var(--text);
}

.logo svg {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 4px 10px rgba(230, 57, 70, 0.35));
  transition: transform 0.5s var(--ease);
}

.logo:hover svg {
  transform: rotate(-8deg);
}

.logo .brand-name {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

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

nav.main-nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}

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

nav.main-nav a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

nav.main-nav a:hover::after {
  width: 55%;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

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

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

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

.search-box input::placeholder {
  color: var(--text-soft);
}

.search-box button {
  border: none;
  background: var(--grad-brand);
  color: #fff;
  border-radius: 16px;
  padding: 5px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
    filter 0.25s var(--ease);
}

.search-box button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(230, 57, 70, 0.35);
  filter: brightness(1.05);
}

.search-box button:active {
  transform: translateY(0);
}

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

.icon-btn:hover {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand-soft-strong);
  transform: rotate(15deg) scale(1.06);
  box-shadow: var(--shadow-sm);
}

.icon-btn:active {
  transform: scale(0.96);
}

.menu-toggle {
  display: none;
}

.breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-muted);
}

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

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
}

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

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

.hero {
  position: relative;
  background: var(--grad-hero);
  padding: 56px 0 52px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.22), transparent 68%);
  filter: blur(20px);
  z-index: -1;
  animation: floatBlob 14s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -180px;
  left: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 76, 147, 0.18), transparent 68%);
  filter: blur(24px);
  z-index: -1;
  animation: floatBlob 18s ease-in-out infinite reverse;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.hero h1 {
  font-size: 36px;
  line-height: 1.28;
  margin-bottom: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  animation: fadeUp 0.7s var(--ease) both;
}

.hero h1 .hl {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero p.lead {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 24px;
  animation: fadeUp 0.7s var(--ease) 0.08s both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s var(--ease) 0.16s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 80%
  );
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.28);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-brand);
}

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

.btn-ghost:hover {
  background: var(--bg);
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s var(--ease) 0.24s both;
}

.stat .num {
  font-size: 30px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.stat .label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-alt);
  animation: fadeUp 0.8s var(--ease) 0.2s both;
  border: 1px solid var(--border-soft);
}

.carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.slides {
  position: relative;
  height: 320px;
}

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

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(0, 0, 0, 0.28) 100%
  );
  z-index: 0;
}

.slide > * {
  position: relative;
  z-index: 1;
}

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

.slide h3 {
  font-size: 23px;
  margin-bottom: 8px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.slide p {
  font-size: 14px;
  opacity: 0.94;
  line-height: 1.7;
  max-width: 92%;
}

.slide-1 {
  background: linear-gradient(135deg, #E63946 0%, #FF6B7A 100%);
}

.slide-2 {
  background: linear-gradient(135deg, #2A9D8F 0%, #4ECDC4 100%);
}

.slide-3 {
  background: linear-gradient(135deg, #6A4C93 0%, #9D7BD8 100%);
}

.slide-4 {
  background: linear-gradient(135deg, #F4A261 0%, #E76F51 100%);
}

.carousel-dots {
  position: absolute;
  bottom: 16px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

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

.carousel-dots button:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

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

section {
  padding: 64px 0;
  position: relative;
}

section.alt {
  background: var(--bg-alt);
}

section.alt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border),
    transparent
  );
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 44px;
}

.section-head h2 {
  font-size: 29px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.4px;
  line-height: 1.35;
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-brand);
  margin: 14px auto 0;
}

.section-head p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
}

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

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

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

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

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  border-radius: 3px 3px 0 0;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-soft-strong);
  background: var(--bg-glass-strong);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.45;
  transition: color 0.3s var(--ease);
}

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

.card p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.card .icon {
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  transition: transform 0.4s var(--ease);
}

.card:hover .icon {
  transform: scale(1.1) rotate(-4deg);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

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

.grid-3 > .reveal:nth-child(2),
.grid-2 > .reveal:nth-child(2),
.grid-4 > .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.grid-3 > .reveal:nth-child(3),
.grid-2 > .reveal:nth-child(3),
.grid-4 > .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.grid-3 > .reveal:nth-child(4),
.grid-2 > .reveal:nth-child(4),
.grid-4 > .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

.grid-3 > .reveal:nth-child(5),
.grid-2 > .reveal:nth-child(5) {
  transition-delay: 0.32s;
}

.grid-3 > .reveal:nth-child(6),
.grid-2 > .reveal:nth-child(6) {
  transition-delay: 0.4s;
}

.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--brand);
  max-width: 820px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--brand),
    var(--brand-light),
    transparent
  );
}

.timeline-item {
  position: relative;
  padding: 0 0 30px 22px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 4px var(--brand-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.timeline-item:hover::before {
  transform: scale(1.25);
  box-shadow: 0 0 0 6px var(--brand-soft-strong);
}

.timeline-item h3 {
  font-size: 17px;
  margin-bottom: 6px;
  font-weight: 700;
  transition: color 0.3s var(--ease);
}

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

.timeline-item .year {
  display: inline-block;
  color: #fff;
  background: var(--grad-brand);
  font-weight: 700;
  font-size: 13px;
  padding: 2px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.timeline-item p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.article-card {
  position: relative;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.article-card .tag {
  display: inline-block;
  font-size: 12px;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  align-self: flex-start;
  font-weight: 600;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.article-card:hover .tag {
  background: var(--brand);
  color: #fff;
}

.article-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  line-height: 1.5;
  font-weight: 700;
  transition: color 0.3s var(--ease);
}

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

.article-card .meta {
  font-size: 12.5px;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.article-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
  flex: 1;
}

.article-card .read-more {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}

.article-card:hover .read-more {
  gap: 10px;
}

.faq-list {
  max-width: 880px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}

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

.faq-item.open {
  border-color: var(--brand);
  box-shadow: 0 8px 26px rgba(230, 57, 70, 0.12);
  background: var(--bg);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 20px 22px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  line-height: 1.6;
  transition: color 0.25s var(--ease);
}

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

.faq-item.open .faq-q {
  color: var(--brand);
}

.faq-q .arrow {
  transition: transform 0.4s var(--ease), color 0.25s var(--ease);
  color: var(--brand);
  flex-shrink: 0;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
}

.faq-item.open .faq-q .arrow {
  transform: rotate(180deg);
  background: var(--brand);
  color: #fff;
}

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

.faq-item.open .faq-a {
  max-height: 640px;
  padding-bottom: 20px;
}

.faq-a p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.85;
}

.howto-steps {
  counter-reset: step;
  max-width: 880px;
  margin: 0 auto;
}

.howto-step {
  position: relative;
  padding: 0 0 28px 60px;
  border-left: 2px dashed var(--border);
  margin-left: 20px;
  transition: border-color 0.3s var(--ease);
}

.howto-step:hover {
  border-left-color: var(--brand);
}

.howto-step:last-child {
  border-left: none;
  padding-bottom: 0;
}

.howto-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -21px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.3);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.howto-step:hover::before {
  transform: scale(1.12) rotate(-6deg);
  box-shadow: var(--shadow-brand);
}

.howto-step h3 {
  font-size: 17px;
  margin-bottom: 8px;
  font-weight: 700;
  padding-top: 6px;
  transition: color 0.3s var(--ease);
}

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

.howto-step p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.85;
}

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

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

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

.testimonial:hover::before {
  color: var(--brand-soft-strong);
  transform: scale(1.1);
}

.testimonial .quote {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 18px;
  font-style: italic;
  line-height: 1.85;
  position: relative;
  z-index: 1;
}

.testimonial .author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial .avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s var(--ease);
}

.testimonial:hover .avatar {
  transform: scale(1.08);
}

.testimonial .author .name {
  font-weight: 700;
  font-size: 14.5px;
}

.testimonial .author .role {
  font-size: 12.5px;
  color: var(--text-muted);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.news-item:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
  border-color: var(--brand-soft-strong);
}

.news-date {
  flex-shrink: 0;
  width: 68px;
  text-align: center;
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 10px 0;
  transition: background 0.3s var(--ease), transform 0.35s var(--ease);
}

.news-item:hover .news-date {
  background: var(--brand-soft);
  transform: scale(1.04);
}

.news-date .day {
  font-size: 23px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.1;
}

.news-date .month {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.news-content h3 {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.55;
  transition: color 0.3s var(--ease);
}

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

.news-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.contact-info-list li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--brand-soft-strong);
}

.contact-info-list .ci-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    transform 0.35s var(--ease);
}

.contact-info-list li:hover .ci-icon {
  background: var(--brand);
  color: #fff;
  transform: scale(1.06);
}

.contact-info-list .ci-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-info-list .ci-value {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  word-break: break-word;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-form input,
.contact-form textarea {
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-soft);
}

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

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.7;
}

.contact-form .btn {
  align-self: flex-start;
  padding: 13px 34px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.team-member {
  text-align: center;
  padding: 28px 22px;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

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

.team-member .avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.team-member:hover .avatar {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px rgba(230, 57, 70, 0.22);
}

.team-member h3 {
  font-size: 16px;
  margin-bottom: 4px;
  font-weight: 700;
}

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

.team-member p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
}

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

.sitemap-col {
  padding: 22px;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.sitemap-col:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--brand-soft-strong);
}

.sitemap-col h3 {
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--brand);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sitemap-col h3::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--grad-brand);
}

.sitemap-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sitemap-col a {
  font-size: 14px;
  color: var(--text-muted);
  display: inline-block;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.sitemap-col a:hover {
  color: var(--brand);
  transform: translateX(4px);
}

footer.site-footer {
  background: #161618;
  color: #b4b4bc;
  padding: 56px 0 28px;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

footer.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
}

footer.site-footer::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.16), transparent 70%);
  pointer-events: none;
}

footer.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

footer.site-footer h3 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

footer.site-footer h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}

footer.site-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer.site-footer a {
  color: #b4b4bc;
  font-size: 13.5px;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

footer.site-footer a:hover {
  color: #fff;
  padding-left: 4px;
}

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

footer.site-footer .footer-brand .logo {
  color: #fff;
}

footer.site-footer .footer-bottom {
  border-top: 1px solid #2a2a30;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #888890;
  position: relative;
  z-index: 1;
}

footer.site-footer .footer-bottom a {
  color: #a0a0aa;
  font-size: 13px;
}

footer.site-footer .footer-bottom a:hover {
  color: #fff;
  padding-left: 0;
}

.back-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    box-shadow 0.3s var(--ease);
  z-index: 999;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-top:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 12px 30px rgba(230, 57, 70, 0.55);
}

.back-top:active {
  transform: translateY(-1px) scale(0.98);
}

.anchor-nav {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 26px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.anchor-nav a {
  font-size: 13.5px;
  padding: 7px 15px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.anchor-nav a:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.prose {
  max-width: 880px;
  margin: 0 auto;
}

.prose h3 {
  font-size: 20px;
  margin: 32px 0 14px;
  font-weight: 700;
  position: relative;
  padding-left: 16px;
  line-height: 1.5;
}

.prose h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--grad-brand);
}

.prose h3:first-child {
  margin-top: 0;
}

.prose h4 {
  font-size: 16px;
  margin: 22px 0 10px;
  font-weight: 700;
}

.prose p {
  color: var(--text-muted);
  font-size: 15.5px;
  margin-bottom: 16px;
  line-height: 1.9;
}

.prose ul,
.prose ol {
  margin: 0 0 18px 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.85;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 10px;
}

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

.prose a {
  font-weight: 600;
  border-bottom: 1px dashed var(--brand-light);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.prose a:hover {
  border-bottom-style: solid;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.badge {
  font-size: 13px;
  padding: 7px 18px;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.25s var(--ease), background 0.25s var(--ease);
}

.badge:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-2px);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 32px;
  }
  .grid-3 {
    gap: 20px;
  }
  .grid-4,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .slides {
    height: 300px;
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero {
    padding: 40px 0 44px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .grid-3,
  .grid-4,
  .team-grid,
  .sitemap-links {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  footer.site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  nav.main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-glass-strong);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 16px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.25s var(--ease);
  }
  nav.main-nav.open {
    display: block;
  }
  nav.main-nav ul {
    flex-direction: column;
    gap: 2px;
  }
  nav.main-nav a {
    display: block;
    padding: 13px 14px;
    border-radius: 10px;
  }
  nav.main-nav a::after {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .search-box {
    display: none;
  }
  .hero::before,
  .hero::after {
    opacity: 0.6;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }
  .container {
    padding: 0 16px;
  }
  section {
    padding: 48px 0;
  }
  .grid-3,
  .grid-4,
  .team-grid,
  .sitemap-links,
  footer.site-footer .footer-grid {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 32px 0 40px;
  }
  .hero h1 {
    font-size: 26px;
    letter-spacing: -0.3px;
  }
  .hero p.lead {
    font-size: 15.5px;
  }
  .hero-actions {
    gap: 10px;
  }
  .hero-actions .btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 18px;
  }
  .hero-stats {
    gap: 20px;
    margin-top: 26px;
  }
  .stat .num {
    font-size: 26px;
  }
  .section-head {
    margin-bottom: 32px;
  }
  .section-head h2 {
    font-size: 23px;
  }
  .section-head p {
    font-size: 15px;
  }
  .slides {
    height: 250px;
  }
  .slide {
    padding: 22px;
  }
  .slide h3 {
    font-size: 20px;
  }
  .slide p {
    font-size: 13.5px;
  }
  .card,
  .article-card,
  .testimonial {
    padding: 20px;
  }
  .news-item {
    flex-direction: row;
    padding: 16px;
    gap: 14px;
  }
  .news-date {
    width: 58px;
    padding: 8px 0;
  }
  .news-date .day {
    font-size: 20px;
  }
  .contact-form {
    padding: 20px;
  }
  .contact-form .btn {
    width: 100%;
  }
  .anchor-nav {
    padding: 12px 14px;
    gap: 6px;
  }
  .anchor-nav a {
    font-size: 12.5px;
    padding: 6px 12px;
  }
  .timeline {
    padding-left: 22px;
  }
  .timeline-item {
    padding-left: 18px;
  }
  .timeline-item::before {
    left: -32px;
  }
  .howto-step {
    padding-left: 50px;
    margin-left: 16px;
  }
  .howto-step::before {
    width: 36px;
    height: 36px;
    left: -19px;
    font-size: 15px;
  }
  .faq-q {
    padding: 16px 18px;
    font-size: 15px;
  }
  .faq-a {
    padding: 0 18px;
  }
  .faq-item.open .faq-a {
    padding-bottom: 16px;
  }
  .back-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
  footer.site-footer {
    padding: 40px 0 24px;
  }
  footer.site-footer .footer-grid {
    gap: 24px;
  }
  .prose h3 {
    font-size: 18px;
  }
  .prose p {
    font-size: 15px;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 23px;
  }
  .hero-actions .btn {
    min-width: 100%;
  }
  .stat .num {
    font-size: 23px;
  }
}

@media print {
  header.site-header,
  .back-top,
  .carousel-dots,
  .anchor-nav,
  footer.site-footer {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}