:root {
  --c1: #1a5490;
  --c2: #2e8bc0;
  --c3: #f5a623;
  --c4: #0d3b66;
  --bg: #ffffff;
  --fg: #1f2933;
  --muted: #5b6770;
  --line: #e3e8ee;
  --card: #f7f9fc;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow-sm: 0 2px 8px rgba(13, 59, 102, 0.06);
  --shadow-md: 0 10px 26px rgba(13, 59, 102, 0.1);
  --shadow-lg: 0 18px 48px rgba(13, 59, 102, 0.16);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: light;
}

html[data-theme="dark"],
html.dark {
  --bg: #0f1720;
  --fg: #e3e8ee;
  --muted: #9fb4c7;
  --line: #233140;
  --card: #16212c;
  --glass: rgba(22, 33, 44, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 26px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

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

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

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

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

a:hover {
  color: var(--c3);
}

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

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

::selection {
  background: rgba(245, 166, 35, 0.35);
  color: var(--fg);
}

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

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

header.site-header:hover {
  box-shadow: var(--shadow-sm);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--c4);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

html[data-theme="dark"] .brand,
html.dark .brand {
  color: var(--fg);
}

.brand:hover {
  transform: translateY(-1px);
  color: var(--c1);
}

.brand svg {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  transition: transform 0.4s var(--ease);
}

.brand:hover svg {
  transform: rotate(-6deg) scale(1.05);
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  font-size: 15px;
}

.nav-links a {
  position: relative;
  color: var(--fg);
  padding: 4px 0;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c2), var(--c3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--c1);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

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

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

.search-box:focus-within {
  border-color: var(--c2);
  box-shadow: 0 0 0 3px rgba(46, 139, 192, 0.15);
}

.search-box input {
  border: none;
  outline: none;
  font-size: 14px;
  width: 120px;
  background: transparent;
  color: var(--fg);
}

.search-box input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.btn {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  background: var(--c1);
  color: #fff;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 84, 144, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn.ghost {
  background: transparent;
  color: var(--c1);
  border: 1px solid var(--c1);
}

html[data-theme="dark"] .btn.ghost,
html.dark .btn.ghost {
  color: var(--c2);
  border-color: var(--c2);
}

.btn.ghost:hover {
  background: rgba(26, 84, 144, 0.08);
  color: var(--c1);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--c4);
  padding: 4px 8px;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

html[data-theme="dark"] .menu-toggle,
html.dark .menu-toggle {
  color: var(--fg);
}

.menu-toggle:hover {
  color: var(--c1);
  transform: scale(1.1);
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

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

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

.breadcrumb span {
  margin: 0 6px;
  opacity: 0.6;
}

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, #0d3b66 0%, #1a5490 48%, #2e8bc0 100%);
  color: #fff;
  padding: 74px 0 64px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  left: -160px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 139, 192, 0.45), transparent 70%);
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.28), transparent 68%);
  animation: floatOrb 12s ease-in-out infinite;
  z-index: -1;
}

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

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

.hero h1 {
  font-size: 34px;
  line-height: 1.35;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  animation: heroRise 0.7s var(--ease) both;
}

.hero h1 em {
  font-style: normal;
  color: var(--c3);
  position: relative;
  display: inline-block;
}

.hero p {
  font-size: 16px;
  color: #dbe9f5;
  margin-bottom: 22px;
  animation: heroRise 0.7s 0.1s var(--ease) both;
}

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

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: heroRise 0.7s 0.2s var(--ease) both;
}

.hero-actions .btn {
  background: var(--c3);
  color: #3a2600;
  font-weight: 600;
  padding: 11px 22px;
}

.hero-actions .btn:hover {
  background: #ffb733;
  box-shadow: 0 8px 22px rgba(245, 166, 35, 0.4);
}

.hero-actions .btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero-actions .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.hero-figure {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 18px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  animation: heroRise 0.7s 0.15s var(--ease) both;
}

.hero-figure:hover {
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.hero-figure svg {
  border-radius: 10px;
  width: 100%;
}

.hero-figure figcaption {
  font-size: 13px;
  color: #cfe2f2;
  margin-top: 10px;
  text-align: center;
}

/* ============ Sections ============ */
section {
  padding: 64px 0;
  position: relative;
}

.section-alt {
  background: var(--card);
  transition: background-color 0.35s var(--ease);
}

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: 27px;
  color: var(--c4);
  margin-bottom: 12px;
  position: relative;
  padding-left: 16px;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

html[data-theme="dark"] .section-head h2,
html.dark .section-head h2 {
  color: var(--fg);
}

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--c2), var(--c3));
}

.section-head p {
  color: var(--muted);
  font-size: 15px;
}

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

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

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

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46, 139, 192, 0.06), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(46, 139, 192, 0.4);
}

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

.card h3 {
  font-size: 18px;
  color: var(--c4);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

html[data-theme="dark"] .card h3,
html.dark .card h3 {
  color: var(--fg);
}

.card p {
  color: var(--muted);
  font-size: 14.5px;
  position: relative;
  z-index: 1;
}

.card svg {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  transition: transform 0.35s var(--ease);
  border-radius: 10px;
}

.card:hover svg {
  transform: scale(1.08) rotate(-4deg);
}

/* ============ Stats ============ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

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

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 166, 35, 0.5);
}

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

html[data-theme="dark"] .stat .num,
html.dark .stat .num {
  color: var(--c2);
}

.stat .lbl {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 4px;
}

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

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

.article-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--c2), var(--c3));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}

.article-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(46, 139, 192, 0.35);
}

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

.article-item .meta {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.article-item .meta span:first-child {
  color: var(--c1);
  font-weight: 600;
}

html[data-theme="dark"] .article-item .meta span:first-child,
html.dark .article-item .meta span:first-child {
  color: var(--c2);
}

.article-item h3 {
  font-size: 17px;
  color: var(--c4);
  line-height: 1.5;
  transition: color 0.25s var(--ease);
}

html[data-theme="dark"] .article-item h3,
html.dark .article-item h3 {
  color: var(--fg);
}

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

.article-item p {
  font-size: 14px;
  color: var(--muted);
}

.read-more {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c1);
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}

.article-item:hover .read-more {
  gap: 8px;
  color: var(--c3);
}

/* ============ FAQ ============ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
}

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

.faq-item:hover {
  border-color: rgba(46, 139, 192, 0.4);
}

.faq-item.open {
  box-shadow: var(--shadow-sm);
  border-color: rgba(46, 139, 192, 0.5);
}

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

html[data-theme="dark"] .faq-q,
html.dark .faq-q {
  color: var(--fg);
}

.faq-q:hover {
  color: var(--c1);
  background: rgba(46, 139, 192, 0.05);
}

.faq-q .icon {
  transition: transform 0.3s var(--ease), color 0.25s var(--ease);
  color: var(--c3);
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item.open .icon {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 14.5px;
  display: none;
  animation: faqFade 0.35s var(--ease);
}

.faq-item.open .faq-a {
  display: block;
}

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

/* ============ Steps ============ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 900px;
  counter-reset: step;
}

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

.step:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--c3);
}

.step h4 {
  color: var(--c4);
  font-size: 16px;
  margin-bottom: 8px;
}

html[data-theme="dark"] .step h4,
html.dark .step h4 {
  color: var(--fg);
}

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

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

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

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

.case-card .thumb {
  background: linear-gradient(135deg, #1a5490, #2e8bc0 60%, #f5a623 160%);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: filter 0.35s var(--ease);
}

.case-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s var(--ease);
}

.case-card:hover .thumb::after {
  transform: translateX(100%);
}

.case-card:hover .thumb {
  filter: saturate(1.2);
}

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

.case-card h3 {
  font-size: 16px;
  color: var(--c4);
  margin-bottom: 8px;
}

html[data-theme="dark"] .case-card h3,
html.dark .case-card h3 {
  color: var(--fg);
}

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

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

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

.quote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 166, 35, 0.45);
}

.quote::before {
  content: "\201C";
  position: absolute;
  top: 2px;
  left: 14px;
  font-size: 56px;
  color: var(--c3);
  opacity: 0.4;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
}

.quote p {
  font-size: 14.5px;
  color: var(--fg);
  margin-bottom: 14px;
  padding-top: 18px;
}

.quote .who {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* ============ News ============ */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(46, 139, 192, 0.4);
}

.news-date {
  color: var(--c1);
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

html[data-theme="dark"] .news-date,
html.dark .news-date {
  color: var(--c2);
}

.news-item h3 {
  font-size: 16px;
  color: var(--c4);
  margin-bottom: 6px;
}

html[data-theme="dark"] .news-item h3,
html.dark .news-item h3 {
  color: var(--fg);
}

.news-item p {
  font-size: 14px;
  color: var(--muted);
}

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.contact-line:hover {
  background: rgba(46, 139, 192, 0.07);
  transform: translateX(4px);
}

.contact-line svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--c2);
  margin-top: 4px;
}

.contact-line strong {
  color: var(--c4);
  display: block;
  font-size: 14.5px;
}

html[data-theme="dark"] .contact-line strong,
html.dark .contact-line strong {
  color: var(--fg);
}

.contact-line span {
  color: var(--muted);
  font-size: 14px;
}

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

.contact-form:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(46, 139, 192, 0.35);
}

.contact-form label {
  display: block;
  font-size: 13.5px;
  color: var(--c4);
  font-weight: 600;
  margin-bottom: 6px;
}

html[data-theme="dark"] .contact-form label,
html.dark .contact-form label {
  color: var(--fg);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 14px;
  font-family: inherit;
  outline: none;
  background: var(--bg);
  color: var(--fg);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--c2);
  box-shadow: 0 0 0 3px rgba(46, 139, 192, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.contact-form .btn {
  width: 100%;
  padding: 11px;
  font-size: 15px;
}

/* ============ Tags ============ */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: rgba(46, 139, 192, 0.1);
  color: var(--c1);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
  cursor: default;
}

html[data-theme="dark"] .tag,
html.dark .tag {
  color: var(--c2);
  background: rgba(46, 139, 192, 0.16);
}

.tag:hover {
  transform: translateY(-2px);
  background: var(--c1);
  color: #fff;
}

/* ============ Sitemap ============ */
.sitemap-list {
  columns: 2;
  column-gap: 32px;
  list-style: none;
  font-size: 14px;
}

.sitemap-list li {
  margin-bottom: 8px;
  break-inside: avoid;
}

.sitemap-list a {
  display: inline-block;
  padding: 2px 0;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.sitemap-list a:hover {
  transform: translateX(4px);
}

/* ============ Legal ============ */
.legal {
  background: var(--card);
  padding: 40px 0;
  transition: background-color 0.35s var(--ease);
}

.legal h2 {
  font-size: 22px;
  color: var(--c4);
  margin-bottom: 12px;
}

html[data-theme="dark"] .legal h2,
html.dark .legal h2 {
  color: var(--fg);
}

.legal h3 {
  font-size: 17px;
  color: var(--c4);
  margin: 20px 0 8px;
}

html[data-theme="dark"] .legal h3,
html.dark .legal h3 {
  color: var(--fg);
}

.legal p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* ============ Footer ============ */
footer.site-footer {
  background: linear-gradient(160deg, #0d3b66 0%, #123f6b 60%, #0d3b66 100%);
  color: #c9d8e6;
  padding: 56px 0 24px;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

footer.site-footer::before {
  content: "";
  position: absolute;
  right: -100px;
  top: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 139, 192, 0.22), transparent 70%);
  pointer-events: none;
}

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

footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 8px;
}

footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--c3);
}

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

footer a {
  color: #c9d8e6;
  display: inline-block;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

footer a:hover {
  color: var(--c3);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #9fb4c7;
  position: relative;
  z-index: 1;
}

/* ============ Back to top ============ */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--c1);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: none;
  z-index: 99;
  box-shadow: 0 6px 18px rgba(13, 59, 102, 0.3);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.back-top.show {
  display: block;
  animation: popIn 0.3s var(--ease);
}

.back-top:hover {
  background: var(--c3);
  color: #3a2600;
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 24px rgba(245, 166, 35, 0.4);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

/* ============ Scroll animations ============ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .hero h1 { font-size: 30px; }
  .nav-links { gap: 16px; font-size: 14px; }
  .search-box input { width: 96px; }
}

@media (max-width: 900px) {
  .hero-inner,
  .grid-3,
  .grid-2,
  .article-grid,
  .case-grid,
  .quote-grid,
  .contact-grid,
  .footer-grid,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    gap: 14px;
    box-shadow: var(--shadow-md);
    animation: menuDrop 0.3s var(--ease);
  }

  .nav-links.open {
    display: flex;
  }

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

  .menu-toggle { display: block; }
  .search-box { display: none; }

  .hero { padding: 52px 0 48px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }

  section { padding: 48px 0; }
  .section-head h2 { font-size: 23px; }
  .section-head { margin-bottom: 28px; }

  .sitemap-list { columns: 1; }
  .news-item { grid-template-columns: 1fr; }
  .stat-row { gap: 14px; }
  .stat { padding: 18px; }
  .stat .num { font-size: 26px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .brand { font-size: 16px; }
  .brand svg { width: 30px; height: 30px; }
  .hero h1 { font-size: 22px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-figure { padding: 12px; }
  .card { padding: 20px; }
  .article-item { padding: 18px; }
  .article-item h3 { font-size: 16px; }
  .section-head h2 { font-size: 21px; }
  .contact-form { padding: 20px; }
  .back-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
  .footer-grid { gap: 24px; }
  .footer-bottom { flex-direction: column; }
  .faq-q { font-size: 15px; padding: 14px 16px; }
  .faq-a { padding: 0 16px 16px; }
  .step { padding: 16px 18px; }
  .step:hover { transform: none; }
}

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

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ============ Print ============ */
@media print {
  header.site-header,
  .back-top,
  .hero-figure,
  .contact-form,
  footer.site-footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  section {
    padding: 16px 0;
    page-break-inside: avoid;
  }

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