/* ==========================================================================
   ANDUN Protective Technology - design system
   Minimal, spacious, corporate. Navy + safety-orange.
   ========================================================================== */

:root {
  --navy: #0c2340;
  --navy-2: #12335a;
  --ink: #0f1b2a;
  --ink-soft: #33465c;
  --muted: #6b7d90;
  --line: #e6ebf1;
  --line-strong: #d3dce6;
  --bg: #ffffff;
  --bg-soft: #f7f9fb;
  --bg-mute: #eef2f6;
  --accent: #e8552b;
  --accent-dark: #cc431c;
  --accent-soft: #fdf1ec;
  --ok: #1c8a5c;
  --err: #c93a2c;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(12, 35, 64, .05);
  --shadow: 0 10px 30px -14px rgba(12, 35, 64, .22);
  --shadow-lg: 0 30px 60px -30px rgba(12, 35, 64, .32);
  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: system-ui, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", 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(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.22; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.4rem); letter-spacing: -.03em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

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

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 48px, 860px); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -18px rgba(12, 35, 64, .45); }

.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: .98rem; letter-spacing: -.01em; color: var(--navy); }
.brand-sub { font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  position: relative; padding: 9px 15px; border-radius: 999px;
  font-size: .93rem; color: var(--ink-soft); transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--navy); background: var(--bg-mute); }
.main-nav a.is-active { color: var(--navy); font-weight: 600; }
.main-nav a.is-active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

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

.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 7px; padding: 8px 12px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: #fff; font-size: .86rem; color: var(--ink-soft);
  transition: border-color .2s, color .2s;
}
.lang-btn:hover { border-color: var(--navy); color: var(--navy); }
.lang-btn svg { width: 12px; height: 12px; opacity: .6; }
.lang-panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: 340px; max-height: 60vh; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; display: none;
  grid-template-columns: 1fr 1fr; gap: 2px;
}
.lang-panel.is-open { display: grid; }
.lang-panel button {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 11px; border-radius: 8px; font-size: .87rem;
  color: var(--ink-soft); text-align: left;
}
.lang-panel button:hover { background: var(--bg-mute); color: var(--navy); }
.lang-panel button.is-current { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.lang-panel code { font-size: .7rem; color: var(--muted); letter-spacing: .04em; }

.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--navy); border-radius: 2px;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-size: .93rem; font-weight: 600;
  letter-spacing: -.01em; transition: all .22s var(--ease); white-space: nowrap;
  border: 1px solid transparent;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -14px rgba(232, 85, 43, .9); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); background: var(--bg-soft); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-sm { padding: 9px 18px; font-size: .87rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: .92rem; color: var(--accent);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .22s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------------------------------------------------------------- layout */
.section { padding: clamp(64px, 8vw, 116px) 0; }
.section-tight { padding: clamp(48px, 5vw, 72px) 0; }
.section-soft { background: var(--bg-soft); }
.section-line { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { font-size: 1.03rem; }
.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-bottom: clamp(36px, 4vw, 56px); flex-wrap: wrap;
}
.section-head-row .section-head { margin-bottom: 0; }

.lead { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--ink-soft); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: var(--bg-soft); }
.hero-grid {
  display: grid; grid-template-columns: 1.02fr .98fr; align-items: center;
  gap: clamp(32px, 5vw, 72px); padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 104px);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 11px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: .8rem; color: var(--ink-soft); margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.hero-badge i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px rgba(28, 138, 92, .16); flex: 0 0 7px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 1.06rem; max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-visual .frame {
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3; background: var(--bg-mute);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-chip {
  position: absolute; left: -18px; bottom: -20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 20px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px;
}
.hero-chip .num { font-size: 1.5rem; font-weight: 700; color: var(--navy); line-height: 1; letter-spacing: -.03em; }
.hero-chip .lbl { font-size: .76rem; color: var(--muted); line-height: 1.35; }

/* ---------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: #fff; padding: 30px 26px; }
.stat .num { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; color: var(--navy); letter-spacing: -.04em; line-height: 1; }
.stat .num small { font-size: .5em; font-weight: 600; color: var(--accent); margin-left: 4px; letter-spacing: 0; }
.stat .lbl { font-size: .84rem; color: var(--muted); margin-top: 10px; }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: all .28s var(--ease);
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-3px); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .93rem; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  color: var(--accent);
}
.card-icon svg { width: 21px; height: 21px; }

/* ------------------------------------------------------------- products */
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: all .28s var(--ease);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.product-media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-mute); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.045); }
.product-badge {
  position: absolute; left: 14px; top: 14px; padding: 5px 11px;
  background: rgba(12, 35, 64, .9); color: #fff; font-size: .69rem;
  letter-spacing: .04em; border-radius: 999px; backdrop-filter: blur(6px);
}
.product-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product-model { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.product-body h3 { font-size: 1.06rem; margin-bottom: 10px; }
.product-body p { font-size: .9rem; flex: 1; margin-bottom: 18px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 34px; }
.chip {
  padding: 9px 17px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: #fff; font-size: .88rem; color: var(--ink-soft); transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.search-box { position: relative; margin-left: auto; }
.search-box input {
  width: 230px; padding: 10px 15px 10px 38px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff; outline: none;
  font-size: .88rem; transition: border-color .2s, box-shadow .2s;
}
.search-box input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(12, 35, 64, .07); }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }

/* ---------------------------------------------------------------- split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; background: var(--bg-mute); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-caption { font-size: .8rem; color: var(--muted); margin-top: 12px; }

.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 11px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; font-size: .93rem; color: var(--ink-soft); }
.check-list svg { width: 17px; height: 17px; color: var(--accent); flex: 0 0 17px; margin-top: 4px; }

/* ----------------------------------------------------------- milestones */
.timeline { position: relative; display: grid; gap: 0; }
.timeline-item {
  display: grid; grid-template-columns: 118px 1fr; gap: 28px;
  padding: 26px 0; border-top: 1px solid var(--line); align-items: start;
}
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline-year { font-size: 1.32rem; font-weight: 700; color: var(--navy); letter-spacing: -.03em; line-height: 1.2; }
.timeline-year::after { content: ""; display: block; width: 26px; height: 2px; background: var(--accent); margin-top: 10px; }
.timeline-body { font-size: .96rem; color: var(--ink-soft); }

/* --------------------------------------------------------------- certs */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cert { background: #fff; padding: 26px 24px; }
.cert code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; color: var(--accent-dark); font-weight: 600; }
.cert p { font-size: .87rem; margin: 8px 0 0; }

/* ----------------------------------------------------------------- news */
.news-item {
  display: grid; grid-template-columns: 132px 1fr auto; gap: 26px; align-items: center;
  padding: 26px 0; border-top: 1px solid var(--line); transition: padding-left .28s var(--ease);
}
.news-item:last-child { border-bottom: 1px solid var(--line); }
.news-item:hover { padding-left: 10px; }
.news-item > div:last-child svg { width: 18px; height: 18px; color: var(--accent); }
.news-date { font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-body h3 { font-size: 1.02rem; margin-bottom: 7px; }
.news-body p { font-size: .89rem; }
.news-tag { display: inline-block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 7px; }

/* ------------------------------------------------------------------ cta */
.cta-band {
  background: var(--navy); color: #fff; border-radius: 20px;
  padding: clamp(40px, 5vw, 68px) clamp(28px, 5vw, 68px);
  display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(232, 85, 43, .38), transparent 68%);
}
.cta-band h2 { color: #fff; margin-bottom: 10px; position: relative; }
.cta-band p { color: rgba(255, 255, 255, .74); margin: 0; position: relative; max-width: 560px; }
.cta-band .btn { position: relative; }

/* ----------------------------------------------------------------- pages */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: clamp(52px, 6vw, 84px) 0 clamp(44px, 5vw, 68px); }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { max-width: 680px; font-size: 1.05rem; }
.breadcrumb { display: flex; gap: 9px; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------------------------------------------------------------- forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.field label .req { color: var(--accent); margin-left: 3px; }
.field input, .field select, .field textarea {
  padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; outline: none; font-size: .94rem; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 132px; line-height: 1.65; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy); box-shadow: 0 0 0 3px rgba(12, 35, 64, .07);
}
.field .hint { font-size: .78rem; color: var(--muted); }
.field .error { font-size: .78rem; color: var(--err); display: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--err); }
.field.has-error .error { display: block; }

.notice {
  display: flex; gap: 12px; padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: .88rem; line-height: 1.6; border: 1px solid;
}
.notice svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 3px; }
.notice-info { background: #f2f7fd; border-color: #d6e4f5; color: #1c4670; }
.notice-warn { background: #fdf6ec; border-color: #f4e2c4; color: #8a5a12; }
.notice-ok { background: #f0f9f4; border-color: #cfe9db; color: #16624a; }
.notice-err { background: #fdf1ef; border-color: #f5d5cf; color: #a3301f; }
.notice[hidden] { display: none; }

.form-status { margin-top: 20px; }

/* ----------------------------------------------------------------- info */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.info-list li { display: grid; grid-template-columns: 26px 1fr; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: start; }
.info-list li:last-child { border-bottom: 0; }
.info-list svg { width: 18px; height: 18px; color: var(--accent); margin-top: 4px; }
.info-list .k { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.info-list .v { font-size: .95rem; color: var(--ink); }

.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-mute); aspect-ratio: 16 / 9; position: relative; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px;
  background:
    linear-gradient(rgba(12,35,64,.045) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(12,35,64,.045) 1px, transparent 1px) 0 0 / 34px 34px,
    var(--bg-soft);
  color: var(--muted); font-size: .9rem;
}
.map-placeholder svg { width: 30px; height: 30px; color: var(--accent); }

/* ----------------------------------------------------------------- auth */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: var(--navy); color: #fff; padding: clamp(40px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside::after { content: ""; position: absolute; left: -120px; bottom: -140px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(232,85,43,.34), transparent 66%); }
.auth-aside h2 { color: #fff; position: relative; }
.auth-aside p { color: rgba(255,255,255,.72); position: relative; }
.auth-aside ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 13px; position: relative; }
.auth-aside li { display: flex; gap: 11px; font-size: .92rem; color: rgba(255,255,255,.85); }
.auth-aside li svg { width: 16px; height: 16px; color: var(--accent); flex: 0 0 16px; margin-top: 4px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(36px, 5vw, 72px) 24px; }
.auth-card { width: 100%; max-width: 424px; }
.auth-card h1 { font-size: 1.9rem; margin-bottom: 10px; }
.auth-card > p { margin-bottom: 26px; }
.auth-form { display: grid; gap: 17px; margin-top: 24px; }
.auth-foot { margin-top: 22px; font-size: .89rem; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--accent); font-weight: 600; }
.auth-divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .78rem; margin: 4px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------------------------------------------------------------- admin */
.admin-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 30px; flex-wrap: wrap; }
.admin-tab { padding: 12px 18px; font-size: .9rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-tab.is-active { color: var(--navy); font-weight: 600; border-bottom-color: var(--accent); }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .89rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg-soft); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.pill-new { background: var(--accent-soft); color: var(--accent-dark); }
.pill-processing { background: #eef4fd; color: #1c4670; }
.pill-done { background: #eef8f2; color: #16624a; }
.pill-archived { background: var(--bg-mute); color: var(--muted); }
.thumb { width: 54px; height: 54px; border-radius: 9px; object-fit: cover; border: 1px solid var(--line); }

/* --------------------------------------------------------------- states */
.skeleton { background: linear-gradient(90deg, var(--bg-mute) 25%, #f6f8fa 50%, var(--bg-mute) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-state svg { width: 34px; height: 34px; color: var(--line-strong); margin-bottom: 14px; }

/* -------------------------------------------------------------- skeleton */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .68); padding: clamp(52px, 6vw, 76px) 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: rgba(255, 255, 255, .45); }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; font-size: .9rem; }
.site-footer ul li { display: flex; align-items: flex-start; gap: 9px; line-height: 1.6; }
.site-footer ul svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 5px; color: rgba(255, 255, 255, .42); }
.site-footer a:hover { color: #fff; }
.footer-about { font-size: .9rem; max-width: 320px; margin-top: 18px; color: rgba(255, 255, 255, .62); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0 28px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: .82rem; color: rgba(255, 255, 255, .5);
}
.footer-bottom a:hover { color: #fff; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .pd-grid { grid-template-columns: 1fr !important; }
  #pdBody { padding: 26px !important; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 12px 24px 22px; margin: 0;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .24s var(--ease), transform .24s var(--ease);
  }
  .main-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
  .main-nav a.is-active::after { display: none; }
  .main-nav a.is-active { color: var(--accent); }
  .nav-toggle { display: flex; }
  .header-actions .btn-contact { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-chip { left: auto; right: 12px; bottom: -16px; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .cta-band { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .lang-panel { width: min(340px, calc(100vw - 40px)); }
}

@media (max-width: 640px) {
  .container, .container-narrow { width: calc(100% - 36px); }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 10px; }
  .news-item { grid-template-columns: 1fr; gap: 10px; }
  .search-box { margin-left: 0; width: 100%; }
  .search-box input { width: 100%; }
  .brand-sub { display: none; }
  .hero-actions .btn { flex: 1; }
}
