:root {
  --navy-950: #070b1a;
  --navy-900: #0a1024;
  --navy-800: #111a3a;
  --navy-700: #1b2654;
  --primary: #4f6bff;
  --primary-dark: #3a52e0;
  --accent: #22d3ee;
  --grad: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --surface: #f5f7fc;
  --card: #ffffff;
  --border: #e4e8f2;
  --on-dark: #e6ebff;
  --on-dark-muted: #9aa6cf;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
  --header-h: 72px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 28px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 15px; letter-spacing: .02em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-sm { height: 40px; padding: 0 20px; font-size: 14px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 45%, transparent); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Top bar */
.topbar { background: var(--navy-950); color: var(--on-dark-muted); font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar-info { display: flex; gap: 24px; overflow: hidden; white-space: nowrap; }
.topbar-info a:hover { color: #fff; }
.topbar { position: relative; z-index: 60; }
.lang-menu { position: relative; flex-shrink: 0; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid rgba(255, 255, 255, .2); color: #fff;
  border-radius: 999px; padding: 2px 10px 2px 8px; font-size: 12px; letter-spacing: .03em; line-height: 22px;
}
.lang-btn svg { width: 14px; height: 14px; }
.lang-btn .lang-caret { width: 10px; height: 10px; transition: transform .2s ease; }
.lang-btn:hover, .lang-menu.open .lang-btn { border-color: var(--accent); color: var(--accent); }
.lang-menu.open .lang-caret { transform: rotate(180deg); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px; padding: 6px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease;
}
.lang-menu.open .lang-list { opacity: 1; visibility: visible; transform: none; }
.lang-list button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: 0; padding: 9px 12px; border-radius: 8px;
  color: var(--text-2); font-size: 14px; text-align: left;
}
.lang-list button:hover { background: var(--surface); color: var(--primary); }
.lang-list button[aria-checked="true"] { color: var(--primary); font-weight: 600; }
.lang-list button[aria-checked="true"]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }

/* Latin and Cyrillic pages put Latin fonts first so accented letters and Cyrillic render cleanly */
html:not([lang^="zh"]) body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(10, 16, 36, .9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}
.header-inner { display: flex; align-items: center; height: var(--header-h); gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 19px; letter-spacing: .06em; }
.brand-text small { font-size: 10px; letter-spacing: .28em; color: var(--on-dark-muted); margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px; height: var(--header-h); padding: 0 14px;
  color: var(--on-dark); font-size: 15px; position: relative; transition: color .2s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 18px; height: 2px;
  background: var(--grad); border-radius: 2px; transform: scaleX(0); transition: transform .25s ease;
}
.nav-link:hover, .nav-item.active > .nav-link { color: #fff; }
.nav-item.active > .nav-link::after, .nav-link:hover::after { transform: scaleX(1); }
.nav-link .caret { width: 10px; height: 10px; transition: transform .2s ease; }
.nav-item:hover .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(var(--header-h) - 8px); left: 50%; min-width: 230px;
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px;
  transition: all .2s ease;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--text-2); font-size: 14px; }
.dropdown a:hover, .dropdown a.active { background: var(--surface); color: var(--primary); }
.header-cta { flex-shrink: 0; }
.nav-burger { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 8px; margin-left: auto; }
.nav-burger span { display: block; height: 2px; background: #fff; margin: 6px 0; border-radius: 2px; transition: .25s; }
.nav-open .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 80% -10%, color-mix(in srgb, var(--primary) 35%, transparent), transparent 60%),
              radial-gradient(800px 500px at 0% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
              var(--navy-900);
  padding: 120px 0 150px;
}
.hero-grid-bg {
  position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 15%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  color: #b9c5ff; font-size: 13px; letter-spacing: .08em;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero-inner > * { min-width: 0; }
.hero-slides { display: grid; margin-top: 24px; }
.hero-slide { grid-area: 1 / 1; opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; pointer-events: none; }
.hero-slide.active { opacity: 1; transform: none; pointer-events: auto; }
.hero-slide h1 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; letter-spacing: .01em; }
.hero-slide h1 .grad-text { display: block; }
html:not([lang^="zh"]) .hero-slide h1 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; letter-spacing: -.01em; }
html:not([lang^="zh"]) .hero-inner { grid-template-columns: 1.35fr .65fr; }
.hero-slide p { margin-top: 20px; font-size: 18px; color: var(--on-dark-muted); max-width: 560px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-dots { display: flex; gap: 8px; margin-top: 40px; }
.hero-dots button { width: 28px; height: 4px; border: 0; padding: 0; border-radius: 4px; background: rgba(255, 255, 255, .2); transition: .3s; }
.hero-dots button.active { width: 48px; background: var(--grad); }
.hero-visual { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: end; }
.hero-visual svg { width: 100%; height: 100%; overflow: visible; }
.orbit { transform-origin: 250px 250px; animation: spin 40s linear infinite; }
.orbit.rev { animation-direction: reverse; animation-duration: 60s; }
.pulse { animation: pulse 3s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* Stats */
.stats-wrap { position: relative; margin-top: -70px; z-index: 2; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 34px 24px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 28%; bottom: 28%; width: 1px; background: var(--border); }
.stat-num { font-size: 42px; font-weight: 800; line-height: 1; }
.stat-label { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* Sections */
.section { padding: 100px 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--navy-900); color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .kicker { color: var(--primary); font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.section-dark .section-head .kicker { color: var(--accent); }
.section-head h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; margin-top: 10px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.section-dark .section-head p { color: var(--on-dark-muted); }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  position: relative; display: flex; flex-direction: column; padding: 32px 26px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--border); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  overflow: hidden;
}
.product-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card:hover::before { transform: scaleX(1); }
.product-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, transparent), color-mix(in srgb, var(--accent) 12%, transparent)); color: var(--primary); }
.product-icon svg { width: 28px; height: 28px; }
.product-card h3 { margin-top: 22px; font-size: 20px; }
.product-card p { margin-top: 10px; color: var(--muted); font-size: 14.5px; flex: 1; }
.product-card .more { margin-top: 20px; color: var(--primary); font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; }

/* Why us */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-media { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy-800); }
.why-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.why-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 25%, transparent), transparent 55%); }
.why-badge {
  position: absolute; left: 24px; bottom: 24px; z-index: 1; background: rgba(10, 16, 36, .85); color: #fff;
  backdrop-filter: blur(10px); border-radius: 14px; padding: 16px 20px; display: flex; gap: 14px; align-items: center;
}
.why-badge b { font-size: 30px; line-height: 1; }
.why-badge span { font-size: 13px; color: var(--on-dark-muted); }
.why-list { display: grid; gap: 18px; margin-top: 32px; }
.why-item { display: flex; gap: 18px; padding: 20px; border-radius: 14px; background: #fff; border: 1px solid var(--border); transition: box-shadow .3s ease, transform .3s ease; }
.why-item:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.why-item .ico { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--surface); }
.why-item h4 { font-size: 17px; }
.why-item p { margin-top: 4px; color: var(--muted); font-size: 14.5px; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote {
  position: relative; padding: 32px 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column;
}
.quote::before { content: "\201C"; position: absolute; top: 8px; right: 22px; font-size: 80px; line-height: 1; font-family: Georgia, serif; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .7; }
.quote p { color: var(--on-dark); font-size: 15.5px; flex: 1; }
.quote-who { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); }
.quote-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.quote-who b { display: block; font-size: 14.5px; }
.quote-who span { font-size: 13px; color: var(--on-dark-muted); }
.quote:nth-child(4), .quote:nth-child(5) { grid-column: span 1; }
.quotes-tail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 24px; max-width: 800px; margin-left: auto; margin-right: auto; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 24px; padding: 64px; color: #fff; background: var(--navy-800); }
.cta-band .cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .25; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, color-mix(in srgb, var(--primary) 90%, transparent), rgba(10, 16, 36, .6) 70%); }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; }
.cta-inner p { margin-top: 10px; color: rgba(255, 255, 255, .85); }
.cta-inner .btn { background: #fff; color: var(--primary); box-shadow: none; }

/* Page hero (inner pages) */
.page-hero {
  position: relative; overflow: hidden; color: #fff; padding: 90px 0 80px;
  background: radial-gradient(900px 400px at 85% 0%, color-mix(in srgb, var(--primary) 40%, transparent), transparent 60%),
              radial-gradient(600px 300px at 0% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
              var(--navy-900);
}
.page-hero .hero-grid-bg { opacity: .25; }
.page-hero-inner { position: relative; }
.crumbs { font-size: 13px; color: var(--on-dark-muted); display: flex; gap: 8px; }
.crumbs a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin-top: 14px; }
.page-hero p { margin-top: 12px; color: var(--on-dark-muted); font-size: 17px; max-width: 640px; }

/* Software page */
.sw-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.sw-side { position: sticky; top: calc(var(--header-h) + 24px); background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 10px; }
.sw-side h4 { padding: 14px 16px 10px; font-size: 13px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.sw-side a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; color: var(--text-2); font-weight: 500; transition: .2s; }
.sw-side a .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: .2s; }
.sw-side a:hover { background: var(--surface); }
.sw-side a.active { background: var(--grad); color: #fff; }
.sw-side a.active .dot { background: #fff; }
.sw-main { min-width: 0; }
.sw-intro { background: #fff; border-radius: 20px; border: 1px solid var(--border); padding: 40px; }
.sw-label { color: var(--primary); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sw-intro h2 { font-size: 32px; margin-top: 8px; }
.sw-intro p { margin-top: 16px; color: var(--text-2); font-size: 16.5px; }
.sw-sub { font-size: 22px; margin: 48px 0 22px; display: flex; align-items: center; gap: 12px; }
.sw-sub::before { content: ""; width: 6px; height: 24px; border-radius: 3px; background: var(--grad); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { display: flex; gap: 16px; padding: 22px; border-radius: 14px; background: #fff; border: 1px solid var(--border); transition: .3s; }
.feature:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-3px); }
.feature-no { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; }
.feature h4 { font-size: 16.5px; }
.feature p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.scenario { position: relative; overflow: hidden; border-radius: 16px; padding: 30px 32px; background: var(--navy-900); color: var(--on-dark); }
.scenario::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%); }
.scenario p { position: relative; font-size: 16px; }
.sw-actions { margin-top: 32px; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service-card { position: relative; display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--navy-800); color: #fff; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 36, .05) 20%, rgba(10, 16, 36, .9)); }
.service-card:hover img { transform: scale(1.06); }
.service-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.service-body small { display: block; color: var(--accent); letter-spacing: .16em; text-transform: uppercase; font-size: 12px; font-weight: 700; }
.service-body h3 { font-size: 26px; margin-top: 6px; }
.service-go { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); transition: .3s; }
.service-card:hover .service-go { background: var(--grad); border-color: transparent; }
.service-index { position: absolute; top: 22px; left: 26px; z-index: 1; font-size: 13px; font-weight: 700; letter-spacing: .1em; padding: 4px 12px; border-radius: 999px; background: rgba(10, 16, 36, .55); backdrop-filter: blur(6px); }

/* News */
.news-tabs { display: inline-flex; gap: 6px; padding: 6px; background: var(--surface); border-radius: 999px; margin-bottom: 40px; }
.news-tabs button { border: 0; background: none; padding: 10px 22px; border-radius: 999px; color: var(--text-2); font-weight: 600; font-size: 14.5px; transition: .2s; }
.news-tabs button.active { background: #fff; color: var(--primary); box-shadow: 0 4px 14px rgba(15, 23, 42, .08); }
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.news-card { display: flex; gap: 22px; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); transition: .3s; }
.news-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-4px); }
.news-date { flex-shrink: 0; width: 76px; height: 82px; border-radius: 14px; background: var(--grad); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.news-date b { font-size: 28px; line-height: 1; }
.news-date span { font-size: 12px; margin-top: 6px; opacity: .9; }
.news-date.nodate { background: var(--surface); color: var(--primary); }
.news-date.nodate svg { width: 30px; height: 30px; }
.news-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); }
.tag.industry { background: color-mix(in srgb, var(--accent) 14%, transparent); color: #0e8aa3; }
.news-card h3 { font-size: 18px; margin-top: 10px; }
.news-card p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.news-more { text-align: center; margin-top: 40px; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: 24px; box-shadow: var(--shadow-lg); width: 100%; }
.about-years { position: absolute; right: -20px; bottom: -24px; background: var(--grad); color: #fff; border-radius: 18px; padding: 22px 26px; box-shadow: 0 16px 40px color-mix(in srgb, var(--primary) 40%, transparent); }
.about-years b { font-size: 40px; line-height: 1; display: block; }
.about-years span { font-size: 14px; opacity: .9; }
.about-text h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 10px; }
.about-text p { margin-top: 16px; color: var(--text-2); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.mini-stats div { padding: 18px; border-radius: 14px; background: var(--surface); text-align: center; }
.mini-stats b { display: block; font-size: 26px; }
.mini-stats span { font-size: 13px; color: var(--muted); }

.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.adv { padding: 30px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); text-align: center; transition: .3s; }
.adv:hover { background: rgba(255, 255, 255, .08); transform: translateY(-4px); }
.adv .ico { font-size: 34px; }
.adv h4 { margin-top: 14px; font-size: 18px; }
.adv p { margin-top: 8px; font-size: 14.5px; color: var(--on-dark-muted); }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc { padding: 30px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); transition: .3s; }
.svc:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-4px); }
.svc .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--surface); }
.svc h4 { margin-top: 18px; font-size: 19px; }
.svc p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.svc ul { margin-top: 16px; display: grid; gap: 8px; }
.svc li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.svc li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 100 16A8 8 0 008 0zm-1.2 11.4L3.4 8l1.1-1.1 2.3 2.3 4.7-4.7 1.1 1.1z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 100 16A8 8 0 008 0zm-1.2 11.4L3.4 8l1.1-1.1 2.3 2.3 4.7-4.7 1.1 1.1z'/%3E%3C/svg%3E") center / contain no-repeat; }

.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.case { position: relative; overflow: hidden; padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.case .tag { margin-bottom: 14px; }
.case h4 { font-size: 17px; }
.case p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.case::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--grad); opacity: .08; }

.client-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.client { padding: 24px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--border); text-align: center; font-size: 14px; color: var(--text-2); }
.client .ico { font-size: 30px; display: block; margin-bottom: 10px; }

/* Jobs */
.job { background: #fff; border-radius: 20px; border: 1px solid var(--border); overflow: hidden; }
.job-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 32px 40px; background: var(--surface); border-bottom: 1px solid var(--border); }
.job-head h2 { font-size: 26px; }
.job-tags { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.job-body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px; }
.job-body h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.job-body h3::before { content: ""; width: 6px; height: 20px; border-radius: 3px; background: var(--grad); }
.job-body ol { margin: 0; padding: 0; list-style: none; counter-reset: job; display: grid; gap: 12px; }
.job-body li { counter-increment: job; display: flex; gap: 12px; color: var(--text-2); font-size: 15px; }
.job-body li::before { content: counter(job, decimal-leading-zero); flex-shrink: 0; font-weight: 800; font-size: 13px; color: var(--primary); padding-top: 2px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: stretch; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-card { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); transition: .3s; }
.contact-card:hover { box-shadow: var(--shadow); }
.contact-card .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.contact-card .ico svg { width: 22px; height: 22px; }
.contact-card small { display: block; margin-top: 16px; font-size: 12px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.contact-card div.val { margin-top: 4px; font-size: 17px; font-weight: 600; word-break: break-all; }
.contact-panel { position: relative; overflow: hidden; border-radius: 20px; padding: 40px; color: #fff; background: var(--navy-900); display: flex; flex-direction: column; justify-content: space-between; min-height: 360px; }
.contact-panel .hero-grid-bg { opacity: .3; }
.contact-panel > * { position: relative; }
.contact-panel h3 { font-size: 26px; }
.contact-panel p { margin-top: 10px; color: var(--on-dark-muted); }
.map-pin { display: flex; align-items: center; gap: 14px; margin: 28px 0; }
.map-pin .pin { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 15%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); position: relative; }
.map-pin .pin::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); animation: pulse 2.4s ease-in-out infinite; }
.map-pin .pin svg { width: 24px; height: 24px; color: var(--accent); }
.map-pin b { font-size: 18px; display: block; }
.map-pin span { font-size: 13px; color: var(--on-dark-muted); }
.follow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--on-dark-muted); }
.follow .chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 13px; }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 48px; padding: 72px 24px 56px; }
.footer-title { color: #fff; font-size: 20px; font-weight: 700; }
.footer-brand p { margin-top: 12px; max-width: 340px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 8px; }
.footer-contact li > span:first-child { color: #66729b; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .06); padding: 22px 0; font-size: 13px; text-align: center; }

.back-top { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 40%, transparent); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; }
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top svg { width: 22px; height: 22px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-slide { transform: none; transition: none; }
  .reveal { opacity: 1; }
  .orbit, .pulse, .map-pin .pin::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1080px) {
  .product-grid, .adv-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .header-cta { display: none; }
}
@media (max-width: 900px) {
  .nav-burger { display: block; }
  .main-nav {
    position: fixed; top: calc(var(--header-h) + 38px); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 12px 24px 40px;
    background: var(--navy-900); overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
  }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .nav-link { height: auto; padding: 16px 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 16px; }
  .nav-link::after { display: none; }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; background: transparent; box-shadow: none; padding: 0 0 8px 12px; min-width: 0; }
  .nav-item:hover .dropdown { transform: none; }
  .dropdown a { color: var(--on-dark-muted); }
  .dropdown a:hover, .dropdown a.active { background: rgba(255, 255, 255, .06); color: #fff; }
  .hero { padding: 80px 0 130px; }
  .hero-inner, .why, .about, .contact-grid, .sw-layout, .job-body { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .sw-side { position: static; display: flex; overflow-x: auto; gap: 6px; }
  .sw-side h4 { display: none; }
  .sw-side a { white-space: nowrap; flex-shrink: 0; }
  .about-years { right: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .topbar-info a:nth-child(2) { display: none; }
  .section { padding: 72px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat { padding: 26px 12px; }
  .stat-num { font-size: 34px; }
  .product-grid, .adv-grid, .case-grid, .svc-grid, .quotes, .quotes-tail, .service-grid, .news-grid, .feature-grid, .contact-cards { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-slide p { font-size: 16px; }
  .cta-band { padding: 40px 24px; }
  .sw-intro, .job-head, .job-body { padding: 26px 20px; }
  .news-card { flex-direction: column; padding: 22px; }
  .news-date { width: 64px; height: 68px; }
  .news-tabs { display: flex; width: 100%; }
  .news-tabs button { flex: 1; padding: 10px 8px; }
  .service-body { padding: 22px; }
  .service-body h3 { font-size: 21px; }
  .contact-panel { padding: 28px 22px; }
  .footer-grid { padding: 56px 16px 40px; }
}

/* ---------- CMS-driven additions ---------- */
.boot { min-height: 70vh; display: grid; place-items: center; }
.boot-dot { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--primary); animation: spin 0.8s linear infinite; }
.boot-error { min-height: 60vh; display: grid; place-items: center; color: var(--muted); padding: 40px 16px; text-align: center; }
.empty-state { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 0; }

.ico-svg, .ico-img { display: inline-flex; width: 26px; height: 26px; flex-shrink: 0; }
.ico-svg svg { width: 100%; height: 100%; }
.ico-img { object-fit: contain; }
.ico-svg.sm, .ico-img.sm { width: 15px; height: 15px; }
.ico-svg.lg, .ico-img.lg { width: 34px; height: 34px; }
.ico-text { font-size: 22px; line-height: 1; }
.ico-text.sm { font-size: 14px; }
.ico-text.lg { font-size: 32px; }
.product-icon .ico-svg, .product-icon .ico-img { width: 28px; height: 28px; }
.why-item .ico, .svc .ico, .client .ico { color: var(--primary); }
.adv .ico { color: var(--accent); display: flex; justify-content: center; }
.contact-card .ico .ico-svg, .contact-card .ico .ico-img { width: 22px; height: 22px; }
.contact-card .val a:hover { color: var(--primary); }

.brand-logo { height: 40px; width: auto; max-width: 220px; object-fit: contain; }
.brand-logo.sm { height: 34px; max-width: 120px; }

.topbar-info { align-items: center; }
.topbar-info a, .topbar-info > span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-info .ico-svg { opacity: .8; }
.topbar-note { opacity: .85; }

.footer-contact li { align-items: center; flex-wrap: wrap; }
.footer-contact .ico-svg, .footer-contact .ico-img { color: var(--accent); }
.footer-contact .lbl { color: #66729b; }
.footer-contact .lbl::after { content: ":"; }

.follow a .chip { transition: background .2s ease; }
.follow a:hover .chip { background: rgba(255, 255, 255, .16); }
.follow .chip .ico-svg { color: var(--accent); }

.float-contact { position: fixed; right: 24px; bottom: 82px; z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.float-contact[hidden] { display: none; }
.float-btn { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 45%, transparent); }
.float-btn svg { width: 26px; height: 26px; grid-area: 1 / 1; transition: transform .25s ease, opacity .25s ease; }
.float-btn svg:last-child { opacity: 0; transform: rotate(-90deg); }
.float-contact.open .float-btn svg:first-child { opacity: 0; transform: rotate(90deg); }
.float-contact.open .float-btn svg:last-child { opacity: 1; transform: none; }
.float-panel { width: 280px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98); transform-origin: bottom right; transition: all .22s ease; }
.float-contact.open .float-panel { opacity: 1; visibility: visible; transform: none; }
.float-title { font-size: 13px; font-weight: 700; color: var(--muted); padding: 6px 10px 8px; letter-spacing: .04em; }
.float-panel a, .float-panel > span { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--text); }
.float-panel a:hover { background: var(--surface); }
.float-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); flex-shrink: 0; }
.float-ico .ico-svg { width: 20px; height: 20px; }
.float-txt { display: flex; flex-direction: column; min-width: 0; }
.float-txt b { font-size: 14px; }
.float-txt small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

a.news-card { color: inherit; }
.news-card .more { margin-top: 12px; color: var(--primary); font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; }
.news-body { min-width: 0; }
.news-cover { flex-shrink: 0; width: 150px; height: 110px; border-radius: 12px; overflow: hidden; background: var(--surface); }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }

.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.article { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 40px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.article h1 { font-size: clamp(24px, 3vw, 34px); margin-top: 12px; line-height: 1.35; }
.article-cover { margin-top: 24px; border-radius: 14px; overflow: hidden; }
.article-cover img { width: 100%; }
.article-body { margin-top: 24px; font-size: 16.5px; line-height: 1.9; color: var(--text-2); overflow-wrap: anywhere; }
.article-body > * + * { margin-top: 1em; }
.article-body h2, .article-body h3, .article-body h4 { color: var(--text); margin-top: 1.6em; }
.article-body img { border-radius: 10px; height: auto; }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body ul, .article-body ol { padding-left: 1.4em; list-style: revert; }
.article-body blockquote { margin: 0; padding: 12px 18px; border-left: 4px solid var(--primary); background: var(--surface); border-radius: 0 10px 10px 0; }
.article-body table { border-collapse: collapse; width: 100%; }
.article-body td, .article-body th { border: 1px solid var(--border); padding: 8px 10px; }
.article-body pre { background: var(--navy-900); color: var(--on-dark); padding: 14px; border-radius: 10px; overflow-x: auto; }
.related { position: sticky; top: calc(var(--header-h) + 24px); background: var(--surface); border-radius: 16px; padding: 20px; }
.related h4 { font-size: 15px; margin-bottom: 12px; }
.related-item { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--border); }
.related-item b { font-size: 14.5px; line-height: 1.5; }
.related-item:hover b { color: var(--primary); }
.related-item .tag { align-self: flex-start; }

.form-wrap { max-width: 900px; }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 40px; }
.form-head h2 { font-size: 26px; }
.form-head p { margin-top: 8px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.form-grid label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea { font: inherit; font-weight: 400; color: var(--text); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; width: 100%; resize: vertical; }
.form-grid input:focus, .form-grid textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent); }
.form-grid .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.form-msg { color: var(--muted); font-size: 14px; flex: 1; min-width: 200px; }
.form-msg.err { color: #dc2626; }
.form-foot .btn:disabled { opacity: .6; cursor: wait; }
.form-done { text-align: center; padding: 40px 0; }
.done-ico { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--grad); color: #fff; }
.done-ico svg { width: 32px; height: 32px; }
.form-done p { margin-top: 16px; font-size: 18px; font-weight: 600; }

.jobs { display: grid; gap: 28px; }
.case-img { margin: -28px -24px 16px; height: 140px; overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.client-logo { height: 40px; max-width: 120px; object-fit: contain; display: block; margin: 0 auto 10px; }
img.quote-avatar { object-fit: cover; }

html[dir="rtl"] .hero-inner, html[dir="rtl"] .footer-grid { direction: rtl; }

@media (max-width: 900px) {
  .article-wrap { grid-template-columns: 1fr; }
  .related { position: static; }
}
@media (max-width: 640px) {
  .float-contact { right: 16px; bottom: 78px; }
  .float-panel { width: min(280px, calc(100vw - 32px)); }
  .article, .contact-form { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .news-cover { width: 100%; height: 160px; }
  .back-top { right: 16px; }
}

/* ---------- live chat ---------- */
.float-chat { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--primary) 8%, transparent); color: var(--text); text-align: left; margin-bottom: 4px; }
.float-chat:hover { background: color-mix(in srgb, var(--primary) 14%, transparent); }
.float-chat .float-ico { background: var(--grad); color: #fff; }
.float-ico > svg { width: 20px; height: 20px; }
.btn > svg:first-child:not(.arrow) { width: 18px; height: 18px; }
.chat-cta { margin-top: 22px; }
.chat-cta-note { display: block; margin-top: 10px; font-size: 13px; color: var(--on-dark-muted); }
.chat-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: flex-end; padding: 24px; background: rgba(7, 11, 26, .35); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s; }
.chat-modal.open { opacity: 1; visibility: visible; }
.chat-box { width: 400px; height: min(640px, calc(100vh - 48px)); background: #fff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); transform: translateY(16px); transition: transform .25s ease; }
.chat-modal.open .chat-box { transform: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; background: var(--grad); color: #fff; }
.chat-title { display: flex; align-items: center; gap: 8px; font-weight: 700; flex: 1; min-width: 0; }
.chat-title svg { width: 20px; height: 20px; flex-shrink: 0; }
.chat-ext { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .18); white-space: nowrap; }
.chat-ext svg { width: 14px; height: 14px; }
.chat-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; display: grid; place-items: center; }
.chat-close svg { width: 18px; height: 18px; }
.chat-box iframe { flex: 1; width: 100%; border: 0; background: #f5f7fc; }
@media (max-width: 640px) {
  .chat-modal { padding: 0; }
  .chat-box { width: 100%; height: 100%; border-radius: 0; }
  .chat-ext span { display: none; }
}

/* ---------- download center ---------- */
.dl-tabs { margin-bottom: 32px; flex-wrap: wrap; justify-content: center; }
.dl-list { display: grid; gap: 16px; max-width: 980px; margin: 0 auto; }
.dl-card { display: flex; align-items: center; gap: 22px; padding: 22px 26px; background: #fff; border: 1px solid var(--border); border-radius: 16px; transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease; }
.dl-card:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-2px); }
.dl-icon { flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); color: var(--primary); }
.dl-body { flex: 1; min-width: 0; }
.dl-body h3 { font-size: 17px; }
.dl-body p { margin-top: 4px; color: var(--muted); font-size: 14.5px; }
.dl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.dl-action { flex-shrink: 0; }
.dl-action .btn svg { width: 16px; height: 16px; }
.file-badge { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; color: #64748b; }
.file-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.file-badge b { position: relative; margin-top: 30%; padding: 0 3px; border-radius: 3px; background: currentColor; font-size: 10px; line-height: 1.35; letter-spacing: .02em; }
.file-badge b { -webkit-text-fill-color: #fff; }
.file-badge.pdf { color: #dc2626; }
.file-badge.doc { color: #2563eb; }
.file-badge.xls { color: #16a34a; }
.file-badge.ppt { color: #ea580c; }
.file-badge.zip { color: #d97706; }
.file-badge.app { color: #7c3aed; }
.file-badge.media { color: #0891b2; }
@media (max-width: 1200px) { .nav-link { padding: 0 10px; } .main-nav { gap: 0; } }
@media (max-width: 640px) {
  .dl-card { flex-wrap: wrap; padding: 18px; gap: 14px; }
  .dl-action { width: 100%; }
  .dl-action .btn { width: 100%; }
}
