/* ==========================================================================
   Hangyang International Freight Forwarding — Design System
   Palette: deep navy + paper white + brass accent
   ========================================================================== */

:root {
  /* ---- Brand / Ink -------------------------------------------------- */
  --ink-900: #06121E;
  --ink-800: #0A1D30;
  --ink-700: #0D2740;
  --navy-600: #12395C;
  --navy-500: #17496F;
  --brand-600: #10589A;
  --brand-500: #1568AE;
  --brand-400: #2E86C8;
  --brand-300: #7BB6DF;
  --brand-100: #E3EEF7;

  /* ---- Accent ------------------------------------------------------- */
  --brass-600: #B07D22;
  --brass-500: #C9952F;
  --brass-400: #E0AE45;
  --brass-100: #F7EBD2;

  /* ---- Neutrals ----------------------------------------------------- */
  --paper: #FFFFFF;
  --sand-50: #FAF9F6;
  --sand-100: #F3F1EC;
  --sand-200: #E7E4DC;
  --line: #E2E6EB;
  --line-dark: rgba(255, 255, 255, 0.14);
  --gray-500: #5A6979;
  --gray-400: #7C8A99;
  --gray-300: #A6B2BE;

  /* ---- Semantic ----------------------------------------------------- */
  --bg: var(--paper);
  --bg-subtle: var(--sand-50);
  --bg-inverse: var(--ink-900);
  --text: var(--ink-800);
  --text-muted: var(--gray-500);
  --text-inverse: #FFFFFF;
  --text-inverse-muted: rgba(255, 255, 255, 0.68);
  --border: var(--line);
  --accent: var(--brass-500);

  /* ---- Type scale --------------------------------------------------- */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, "Menlo", monospace;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: clamp(2rem, 3.2vw, 2.75rem);
  --fs-4xl: clamp(2.5rem, 5vw, 4rem);
  --fs-5xl: clamp(3rem, 6.4vw, 5rem);

  --lh-tight: 1.14;
  --lh-snug: 1.32;
  --lh-body: 1.72;

  --ls-tight: -0.022em;
  --ls-wide: 0.14em;

  /* ---- Space scale (8pt) -------------------------------------------- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* ---- Layout ------------------------------------------------------- */
  --container: 1200px;
  --container-wide: 1360px;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;

  /* ---- Elevation ---------------------------------------------------- */
  --shadow-xs: 0 1px 2px rgba(6, 18, 30, 0.06);
  --shadow-sm: 0 2px 8px rgba(6, 18, 30, 0.06);
  --shadow-md: 0 12px 28px -12px rgba(6, 18, 30, 0.22);
  --shadow-lg: 0 28px 60px -24px rgba(6, 18, 30, 0.34);
  --shadow-brand: 0 18px 40px -18px rgba(21, 104, 174, 0.5);

  /* ---- Motion ------------------------------------------------------- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 520ms;

  /* ---- Gradients ---------------------------------------------------- */
  --grad-navy: linear-gradient(148deg, #06121e 0%, #0b2238 46%, #123a5c 100%);
  --grad-brand: linear-gradient(135deg, #1568ae 0%, #2e86c8 100%);
  --grad-hair: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
}

/* ==========================================================================
   Reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}

html[lang="zh-CN"] body {
  line-height: 1.85;
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--ink-900);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-4xl);
}
h2 {
  font-size: var(--fs-3xl);
}
h3 {
  font-size: var(--fs-xl);
  letter-spacing: -0.012em;
}
h4 {
  font-size: var(--fs-lg);
  letter-spacing: -0.008em;
}

p {
  margin: 0 0 1em;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--brand-600);
  color: #fff;
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding-block: clamp(64px, 8vw, 112px);
}

.section--tight {
  padding-block: clamp(48px, 6vw, 80px);
}

.section--subtle {
  background: var(--bg-subtle);
  border-block: 1px solid var(--line);
}

.section--ink {
  background: var(--grad-navy);
  color: var(--text-inverse);
}

.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink h4 {
  color: var(--text-inverse);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--sp-7);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--brand-600);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brass-500);
}

.section-head--center .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brass-500);
}

.section--ink .eyebrow {
  color: var(--brand-300);
}

.lede {
  margin-top: var(--sp-4);
  font-size: var(--fs-lg);
  line-height: 1.7;
  color: var(--text-muted);
}

.section--ink .lede {
  color: var(--text-inverse-muted);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  --btn-bg: var(--brand-600);
  --btn-fg: #fff;
  --btn-bd: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 13px 26px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    box-shadow var(--dur) var(--ease), border-color var(--dur-fast) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  --btn-bg: var(--brand-600);
  box-shadow: var(--shadow-brand);
}

.btn--primary:hover {
  --btn-bg: #0d4c88;
}

.btn--brass {
  --btn-bg: var(--brass-500);
  --btn-fg: var(--ink-900);
  box-shadow: 0 16px 34px -18px rgba(201, 149, 47, 0.9);
}

.btn--brass:hover {
  --btn-bg: var(--brass-400);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink-800);
  --btn-bd: var(--line);
}

.btn--outline:hover {
  --btn-bd: var(--ink-800);
  --btn-bg: var(--ink-900);
  --btn-fg: #fff;
}

.btn--ghost-light {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}

.btn--ghost-light:hover {
  --btn-bg: rgba(255, 255, 255, 0.16);
  --btn-bd: rgba(255, 255, 255, 0.5);
}

.btn--sm {
  padding: 9px 18px;
  font-size: var(--fs-xs);
}

.btn--lg {
  padding: 16px 34px;
  font-size: var(--fs-base);
}

.btn--block {
  width: 100%;
}

.btn-arrow {
  transition: transform var(--dur) var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand-600);
}

.link-arrow svg {
  transition: transform var(--dur) var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(6, 18, 30, 0.5);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.brand__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}

.brand__sub {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-left: auto;
}

.nav__link {
  position: relative;
  padding: 10px var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-700);
  border-radius: var(--radius-sm);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: var(--sp-4);
  right: var(--sp-4);
  bottom: 4px;
  height: 1.5px;
  background: var(--brand-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__link.is-active {
  color: var(--brand-700, var(--brand-600));
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-left: var(--sp-4);
  border-left: 1px solid var(--line);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--sand-100);
  border-radius: 999px;
}

.lang-switch a {
  padding: 5px 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--gray-500);
  border-radius: 999px;
  transition: all var(--dur-fast) var(--ease);
}

.lang-switch a:hover {
  color: var(--ink-800);
}

.lang-switch a.is-active {
  background: var(--paper);
  color: var(--brand-600);
  box-shadow: var(--shadow-xs);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: clamp(600px, 82vh, 780px);
  display: flex;
  align-items: center;
  background: var(--grad-navy);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      100deg,
      rgba(6, 18, 30, 0.94) 0%,
      rgba(6, 18, 30, 0.78) 42%,
      rgba(6, 18, 30, 0.38) 76%,
      rgba(6, 18, 30, 0.52) 100%
    ),
    radial-gradient(
      120% 90% at 78% 6%,
      rgba(21, 104, 174, 0.42),
      transparent 62%
    );
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(80% 70% at 30% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero__inner {
  padding-block: clamp(96px, 12vw, 148px);
  color: var(--text-inverse);
  max-width: 760px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  padding: 7px 16px 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
}

.hero__badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass-400);
  box-shadow: 0 0 0 3px rgba(224, 174, 69, 0.2);
}

.hero h1 {
  color: #fff;
  font-size: var(--fs-5xl);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.06;
}

.hero h1 em {
  font-style: normal;
  color: var(--brass-400);
}

.hero__desc {
  max-width: 560px;
  margin-top: var(--sp-5);
  font-size: var(--fs-lg);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.78);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-7);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.72);
}

.hero__meta-item svg {
  color: var(--brass-400);
  flex-shrink: 0;
}

/* ==========================================================================
   Stats strip
   ========================================================================== */

.stats {
  position: relative;
  z-index: 2;
  margin-top: -56px;
}

.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.stat {
  padding: var(--sp-6) var(--sp-5);
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat__value {
  display: block;
  font-size: clamp(1.75rem, 2.6vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}

.stat__value sup {
  font-size: 0.55em;
  top: -0.7em;
  color: var(--brass-500);
  font-weight: 600;
}

.stat__label {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   Cards / Services
   ========================================================================== */

.grid {
  display: grid;
  gap: var(--sp-5);
}

.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 {
  position: relative;
  padding: var(--sp-6);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.service-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-800);
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.service-card:hover .service-card__media img {
  transform: scale(1.045);
}

.service-card__index {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  background: rgba(6, 18, 30, 0.62);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums;
}

.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
}

.service-card__body h3 {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-lg);
}

.service-card__body p {
  font-size: var(--fs-sm);
  line-height: 1.72;
  color: var(--text-muted);
}

.service-card__foot {
  margin-top: auto;
  padding-top: var(--sp-4);
}

/* Feature list card */
.feature {
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--line);
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--sp-4);
  border-radius: var(--radius);
  background: var(--brand-100);
  color: var(--brand-600);
}

.feature h3 {
  margin-bottom: var(--sp-2);
  font-size: var(--fs-lg);
}

.feature p {
  font-size: var(--fs-sm);
  line-height: 1.72;
  color: var(--text-muted);
}

/* ==========================================================================
   Split section (about)
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.split--reverse .split__media {
  order: 2;
}

.split__media {
  position: relative;
}

.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
}

.split__badge {
  position: absolute;
  right: -18px;
  bottom: -18px;
  padding: var(--sp-5);
  min-width: 168px;
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.split__badge strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brass-400);
}

.split__badge span {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

.checklist {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.checklist li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--ink-700);
}

.checklist svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--brand-600);
}

/* ==========================================================================
   Process steps
   ========================================================================== */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  counter-reset: step;
}

.process__item {
  position: relative;
  padding-top: var(--sp-6);
  border-top: 2px solid rgba(255, 255, 255, 0.16);
}

.process__item::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--brass-400);
}

.process__num {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brass-400);
  font-variant-numeric: tabular-nums;
}

.process__item h3 {
  margin: var(--sp-3) 0 var(--sp-2);
  font-size: var(--fs-lg);
  color: #fff;
}

.process__item p {
  font-size: var(--fs-sm);
  line-height: 1.72;
  color: var(--text-inverse-muted);
}

/* ==========================================================================
   News
   ========================================================================== */

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.news-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sand-100);
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.news-card:hover .news-card__media img {
  transform: scale(1.04);
}

.news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--sp-5);
}

.news-card__date {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-600);
}

.news-card h3 {
  margin: var(--sp-3) 0 var(--sp-2);
  font-size: var(--fs-lg);
  line-height: 1.42;
}

.news-card p {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-muted);
}

.news-card__foot {
  margin-top: auto;
  padding-top: var(--sp-4);
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 7vw, 88px);
  background: var(--grad-brand);
  color: #fff;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.16),
    transparent 68%
  );
  pointer-events: none;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-7);
  flex-wrap: wrap;
}

.cta-band h2 {
  color: #fff;
  font-size: var(--fs-3xl);
}

.cta-band p {
  margin-top: var(--sp-3);
  max-width: 520px;
  color: rgba(255, 255, 255, 0.82);
}

.cta-band__actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-700);
}

.field label .req {
  color: #c0392b;
  margin-left: 2px;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: var(--fs-sm);
  color: var(--ink-800);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--gray-300);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(21, 104, 174, 0.14);
}

.textarea {
  min-height: 132px;
  resize: vertical;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235A6979' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.form-note {
  margin-top: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.form-status {
  margin-top: var(--sp-4);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-ok {
  background: #eaf7ef;
  border: 1px solid #b7e4c7;
  color: #1e6b3a;
}

.form-status.is-error {
  background: #fdf0ee;
  border: 1px solid #f3c4bd;
  color: #a4341f;
}

/* Contact panel */
.contact-panel {
  padding: var(--sp-6);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-item {
  display: flex;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-top: 1px solid var(--line);
}

.contact-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.contact-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--brand-100);
  color: var(--brand-600);
}

.contact-item h4 {
  margin-bottom: 2px;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.contact-item p,
.contact-item a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

.contact-item a:hover {
  color: var(--brand-600);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding-top: clamp(56px, 7vw, 88px);
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: var(--sp-7);
  padding-bottom: var(--sp-8);
}

.footer-brand .brand__name {
  color: #fff;
}

.footer-brand .brand__sub {
  color: rgba(255, 255, 255, 0.42);
}

.footer-brand p {
  margin-top: var(--sp-4);
  max-width: 300px;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.58);
}

.footer-col h4 {
  margin-bottom: var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.footer-col li {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-sm);
}

.footer-contact li {
  display: flex;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.footer-contact svg {
  flex-shrink: 0;
  margin-top: 5px;
  color: var(--brass-400);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-block: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.44);
}

.footer-bottom__links {
  display: flex;
  gap: var(--sp-5);
}

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */

.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 9vw, 116px);
  background: var(--grad-navy);
  color: #fff;
  isolation: isolate;
}

.page-head__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.24;
}

.page-head__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(6, 18, 30, 0.9),
    rgba(6, 18, 30, 0.55)
  );
}

.page-head h1 {
  color: #fff;
  font-size: var(--fs-4xl);
}

.page-head p {
  max-width: 620px;
  margin-top: var(--sp-4);
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.76);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a:hover {
  color: #fff;
}

/* ==========================================================================
   Article / prose
   ========================================================================== */

.prose {
  max-width: 780px;
  font-size: var(--fs-base);
  line-height: 1.85;
  color: var(--ink-700);
}

.prose h2 {
  margin: var(--sp-7) 0 var(--sp-4);
  font-size: var(--fs-2xl);
}

.prose h3 {
  margin: var(--sp-6) 0 var(--sp-3);
}

.prose p {
  margin-bottom: var(--sp-4);
}

.prose ul {
  margin: var(--sp-4) 0;
  padding-left: var(--sp-5);
  list-style: disc;
}

.prose li {
  margin-bottom: var(--sp-2);
}

.prose img {
  border-radius: var(--radius);
  margin-block: var(--sp-5);
}

.prose blockquote {
  margin: var(--sp-5) 0;
  padding: var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--brass-500);
  background: var(--sand-50);
  color: var(--ink-700);
}

/* ==========================================================================
   Admin
   ========================================================================== */

.admin-body {
  background: var(--sand-100);
  min-height: 100vh;
}

.login-wrap {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: var(--sp-5);
  background: var(--grad-navy);
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: var(--sp-7);
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.login-card h1 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-2);
}

.login-card .sub {
  margin-bottom: var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-side {
  padding: var(--sp-5);
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.72);
}

.admin-side .brand {
  margin-bottom: var(--sp-6);
}

.admin-side .brand__name {
  color: #fff;
}

.admin-side .brand__sub {
  color: rgba(255, 255, 255, 0.4);
}

.admin-nav {
  display: grid;
  gap: 2px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 11px 14px;
  font-size: var(--fs-sm);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.7);
}

.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.admin-nav a.is-active {
  background: var(--brand-600);
  color: #fff;
  font-weight: 600;
}

.admin-main {
  padding: var(--sp-6);
  min-width: 0;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.admin-topbar h1 {
  font-size: var(--fs-2xl);
}

.admin-panel {
  padding: var(--sp-6);
  margin-bottom: var(--sp-5);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.admin-panel h2 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.admin-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.admin-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--sand-200);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table tr:hover td {
  background: var(--sand-50);
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.badge--new {
  background: #fdf4e3;
  color: var(--brass-600);
}
.badge--done {
  background: #eaf7ef;
  color: #1e6b3a;
}
.badge--on {
  background: #e8f2fb;
  color: var(--brand-600);
}
.badge--off {
  background: var(--sand-200);
  color: var(--gray-500);
}

.thumb {
  width: 64px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.alert {
  padding: 12px 16px;
  margin-bottom: var(--sp-4);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
}

.alert--ok {
  background: #eaf7ef;
  border: 1px solid #b7e4c7;
  color: #1e6b3a;
}

.alert--error {
  background: #fdf0ee;
  border: 1px solid #f3c4bd;
  color: #a4341f;
}

.row-actions {
  display: flex;
  gap: var(--sp-2);
}

.btn--danger {
  --btn-bg: #fdf0ee;
  --btn-fg: #a4341f;
  --btn-bd: #f3c4bd;
}

.btn--danger:hover {
  --btn-bg: #a4341f;
  --btn-fg: #fff;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.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;
}

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}
.mt-4 {
  margin-top: var(--sp-4);
}
.mt-5 {
  margin-top: var(--sp-5);
}
.mt-6 {
  margin-top: var(--sp-6);
}
.mt-7 {
  margin-top: var(--sp-7);
}

.mb-0 {
  margin-bottom: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .nav {
    gap: 0;
  }
  .nav__link {
    padding: 10px 12px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
  }
}

@media (max-width: 920px) {
  .nav,
  .header-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-actions {
    padding-left: 0;
    border-left: 0;
  }

  .site-header.is-open .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 2px;
    padding: var(--sp-4) var(--sp-5) var(--sp-5);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .site-header.is-open .nav__link {
    padding: 13px var(--sp-3);
    border-radius: var(--radius-sm);
  }

  .site-header.is-open .nav__link::after {
    display: none;
  }

  .site-header.is-open .nav__link.is-active {
    background: var(--brand-100);
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__media {
    order: 0;
  }

  .split__badge {
    right: var(--sp-4);
    bottom: -14px;
  }

  .grid--4,
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6) var(--sp-5);
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-side {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    overflow-x: auto;
    padding: var(--sp-4);
  }

  .admin-side .brand {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .admin-nav {
    display: flex;
    gap: var(--sp-2);
  }

  .admin-nav a {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  :root {
    --fs-4xl: clamp(2rem, 8vw, 2.5rem);
    --fs-5xl: clamp(2.25rem, 9vw, 3rem);
  }

  .container {
    padding-inline: var(--sp-4);
  }

  .grid--4,
  .grid--3,
  .grid--2,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero__meta {
    gap: var(--sp-4);
  }

  .stats {
    margin-top: -32px;
  }

  .stat {
    padding: var(--sp-4) var(--sp-3);
  }

  .process {
    grid-template-columns: 1fr;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-main {
    padding: var(--sp-4);
  }

  .admin-panel {
    padding: var(--sp-4);
    overflow-x: auto;
  }

  .contact-layout,
  .article-layout {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Media picker (admin)
   ========================================================================== */

.media-field {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-4);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--sand-50);
}

.media-field__preview {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
}

.media-field__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-field__body {
  min-width: 0;
}

@media (max-width: 640px) {
  .media-field {
    grid-template-columns: 1fr;
  }

  .media-field__preview {
    max-width: 180px;
  }
}
