﻿/* ============================================================
   ENYTECH corporate website — component styles
   Built on the ENYTECH design system tokens (styles.css).
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: var(--leading-normal);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--text-brand);
  display: inline-flex; align-items: center; gap: 8px;
}
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section--alt { background: var(--gray-50); }
.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.02em;
  line-height: 1.08; margin: 14px 0 16px;
}
.section-head p { font-size: var(--text-md); color: var(--text-secondary); margin: 0; line-height: 1.6; }
.lead { font-size: var(--text-md); color: var(--text-secondary); line-height: 1.65; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue-500); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  line-height: 1; padding: 13px 22px; border-radius: var(--radius-md);
  border: 1.5px solid var(--bd); background: var(--bg); color: var(--fg);
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
    transform var(--dur-fast), border-color var(--dur), color var(--dur);
}
.btn svg { width: 18px; height: 18px; }
.btn--primary:hover { --bg: var(--blue-600); box-shadow: var(--shadow-brand); }
.btn--primary:active { --bg: var(--blue-700); transform: translateY(1px); }
.btn--secondary { --bg: transparent; --fg: var(--blue-700); --bd: var(--blue-700); }
.btn--secondary:hover { --bg: var(--blue-50); }
.btn--ghost-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,0.28); }
.btn--ghost-light:hover { --bg: rgba(255,255,255,0.10); }
.btn--subtle { --bg: var(--blue-50); --fg: var(--blue-700); }
.btn--subtle:hover { --bg: var(--blue-100); }
.btn--lg { padding: 16px 28px; font-size: var(--text-base); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 72px; display: flex; align-items: center;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur), border-color var(--dur), box-shadow var(--dur);
}
.site-header.scrolled { background: rgba(255,255,255,0.92); border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; }
.brand img { height: 30px; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  font-size: var(--text-sm); font-weight: 600; color: var(--text-secondary);
  padding: 9px 14px; border-radius: var(--radius-sm); transition: color var(--dur), background var(--dur);
}
.main-nav a:hover { color: var(--blue-700); background: var(--blue-50); }
.main-nav a.active { color: var(--blue-700); }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* Language selector */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: transparent; border: 1.5px solid var(--border-strong); color: var(--text);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  padding: 8px 12px; border-radius: var(--radius-md); transition: border-color var(--dur), background var(--dur);
}
.lang-btn:hover { border-color: var(--blue-400); background: var(--blue-50); }
.lang-btn svg { width: 15px; height: 15px; }
.lang-btn .flag { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; display: block; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 168px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 6px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: opacity var(--dur), transform var(--dur), visibility var(--dur);
  z-index: 120;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  width: 100%; display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: transparent; border: 0; padding: 9px 11px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; color: var(--text); text-align: left;
}
.lang-menu button:hover { background: var(--gray-100); }
.lang-menu button.active { background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
.lang-menu .flag { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.lang-menu .code { margin-left: auto; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); }

.icon-link {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); color: var(--blue-700); background: transparent;
  border: 1.5px solid var(--border-strong); transition: all var(--dur);
}
.icon-link:hover { background: var(--blue-50); border-color: var(--blue-400); }
.icon-link svg { width: 19px; height: 19px; }

.nav-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid var(--border-strong); border-radius: var(--radius-md); cursor: pointer; color: var(--text); }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink-800); color: #fff; padding-top: 72px; }
.hero__bg { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0.5; }
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.85; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .hero__net { display: none; } }
.hero__scrim { position: absolute; inset: 0;
  background: linear-gradient(118deg, rgba(10,19,34,0.94) 0%, rgba(14,42,69,0.72) 52%, rgba(16,76,160,0.42) 100%); }
.hero__mark { position: absolute; right: -70px; bottom: -90px; width: 380px; opacity: 0.12; transform: rotate(8deg); pointer-events: none; }
.hero .container { position: relative; padding-top: clamp(72px, 10vw, 110px); padding-bottom: clamp(48px, 6vw, 72px); }
.hero__inner { max-width: 740px; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px;
  border: 1px solid rgba(255,255,255,0.22); border-radius: var(--radius-pill);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-wide);
  text-transform: uppercase; color: var(--cyan-300);
}
.hero .pill svg { width: 15px; height: 15px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(40px, 6.4vw, 66px); line-height: 1.03; margin: 22px 0 0; color: #fff;
}
.hero h1 .acc { color: var(--cyan-400); }
.hero__sub { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--text-on-dark); max-width: 580px; margin: 22px 0 0; }
.hero__cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 40px; margin-top: 52px; flex-wrap: wrap; }
.hero__stats .n { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 32px); line-height: 1; }
.hero__stats .l { font-size: var(--text-sm); color: var(--text-on-dark-dim); margin-top: 6px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero__chips span {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-pill); font-size: var(--text-sm); color: var(--text-on-dark);
}
.hero__chips svg { width: 15px; height: 15px; color: var(--cyan-400); }

/* ---------- Trust strip ---------- */
.trust { border-bottom: 1px solid var(--border); background: #fff; }
.trust .container { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 24px 28px; }
.trust .label { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-muted); }
.chip {
  display: inline-flex; align-items: center; padding: 7px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: #fff; color: var(--text-secondary);
  font-size: var(--text-sm); font-weight: 500;
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 5vw, 64px); align-items: center; }
.about-visual { position: relative; }
.about-visual .frame-img {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.about-visual .frame-img::after { content: ""; position: absolute; inset: 14px; border: 1.5px solid rgba(255,255,255,0.6); pointer-events: none; }
.about-visual .badge-float {
  position: absolute; left: -22px; bottom: 28px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 16px 20px; display: flex; gap: 13px; align-items: center;
}
.about-visual .badge-float .ic { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--grad-molecule);
  display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.about-visual .badge-float .ic svg { width: 22px; height: 22px; }
.about-visual .badge-float .n { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); line-height: 1; }
.about-visual .badge-float .l { font-size: var(--text-xs); color: var(--text-muted); margin-top: 3px; }
.about-list { display: grid; gap: 14px; margin-top: 28px; }
.about-item { display: flex; gap: 14px; align-items: flex-start; }
.about-item .ic {
  width: 42px; height: 42px; border-radius: var(--radius-md); flex: none;
  background: var(--blue-50); color: var(--blue-600); display: inline-flex; align-items: center; justify-content: center;
}
.about-item .ic svg { width: 21px; height: 21px; }
.about-item p { margin: 0; font-size: var(--text-base); color: var(--text); padding-top: 9px; }
.about-item p b { font-weight: 600; }
.about-goal { margin-top: 28px; padding: 20px 24px; border-left: 3px solid var(--blue-500);
  background: var(--blue-50); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.about-goal p { margin: 0; font-size: var(--text-md); font-weight: 500; color: var(--blue-900); font-style: italic; }

/* ---------- Services accordion ---------- */
.services-list { display: flex; flex-direction: column; gap: 14px; }
.service {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow var(--dur), border-color var(--dur);
}
.service.open { box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.service__head {
  width: 100%; display: flex; align-items: center; gap: 18px; cursor: pointer;
  background: transparent; border: 0; text-align: left; padding: 22px 24px; font-family: var(--font-body);
}
.service__num { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 600; color: var(--blue-400); flex: none; width: 28px; }
.service__ic {
  width: 46px; height: 46px; border-radius: var(--radius-md); flex: none;
  background: var(--blue-50); color: var(--blue-600); display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur), color var(--dur);
}
.service.open .service__ic { background: var(--grad-brand); color: #fff; }
.service__ic svg { width: 23px; height: 23px; }
.service__title { flex: 1; font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); letter-spacing: -0.01em; color: var(--text); }
.service__chev { flex: none; color: var(--text-muted); transition: transform var(--dur) var(--ease-out), color var(--dur); }
.service.open .service__chev { transform: rotate(180deg); color: var(--blue-600); }
.service__chev svg { width: 22px; height: 22px; }
.service__body { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease-in-out); }
.service__inner { padding: 4px 24px 26px 116px; }
.service__inner > .sub { font-size: var(--text-base); color: var(--text-secondary); margin: 0 0 18px; line-height: 1.6; }
.svc-block { margin-top: 18px; }
.svc-block:first-child { margin-top: 0; }
.svc-block h4 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); color: var(--blue-800); margin: 0 0 10px; }
.svc-block > p { margin: 0 0 10px; font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }
.svc-items { display: grid; gap: 9px; }
.svc-items li { display: flex; gap: 10px; font-size: var(--text-sm); color: var(--text); line-height: 1.5; }
.svc-items li svg { width: 17px; height: 17px; color: var(--blue-500); flex: none; margin-top: 2px; }
.svc-items li b { font-weight: 600; }
.svc-items .nested { margin: 6px 0 0 27px; display: grid; gap: 6px; }
.svc-items .nested li { color: var(--text-secondary); }
.svc-items .nested li::before { content: "–"; color: var(--blue-300); margin-right: 4px; }

/* ---------- Blog ---------- */
.blog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 44px; }
.view-all { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-sm); font-weight: 600; color: var(--blue-600); }
.view-all svg { width: 16px; height: 16px; transition: transform var(--dur); }
.view-all:hover svg { transform: translateX(3px); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-grid.all { gap: 26px; }
.post {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post__media { aspect-ratio: 16/10; overflow: hidden; background: var(--ink-800); position: relative; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.post:hover .post__media img { transform: scale(1.05); }
.post__cat { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: var(--radius-pill);
  background: rgba(14,22,46,0.78); color: #fff; font-size: var(--text-xs); font-weight: 600; backdrop-filter: blur(6px); }
.post__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post__date { font-size: var(--text-xs); color: var(--text-muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.post__date svg { width: 14px; height: 14px; }
.post__title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); line-height: 1.3; letter-spacing: -0.01em; margin: 10px 0 9px; color: var(--text); }
.post__sum { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.55; margin: 0 0 16px; flex: 1; }
.post__more { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-sm); font-weight: 600; color: var(--blue-600); align-self: flex-start; }
.post__more svg { width: 16px; height: 16px; transition: transform var(--dur); }
.post__more:hover svg { transform: translateX(3px); }

/* ---------- Stats band ---------- */
.stats-band { position: relative; overflow: hidden; background: var(--ink-900); color: #fff; }
.stats-band__bg { position: absolute; inset: 0; background: center/cover; opacity: 0.22; }
.stats-band .container { position: relative; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: var(--ink-700); border: 1px solid var(--border-dark); border-radius: var(--radius-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.stat__top { display: flex; align-items: center; justify-content: space-between; }
.stat__label { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--text-on-dark-dim); }
.stat__ic { width: 34px; height: 34px; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center;
  background: rgba(67,192,230,0.14); color: var(--cyan-400); }
.stat__ic svg { width: 19px; height: 19px; }
.stat__val { font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); line-height: 1; }
.stat__val span { font-size: var(--text-md); color: var(--text-on-dark-dim); font-weight: 600; }
.stat__trend { font-size: var(--text-sm); font-weight: 600; color: var(--cyan-400); display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); background: #fff; }
.contact-map { min-height: 460px; position: relative; background: var(--gray-100); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; position: absolute; inset: 0; }
.contact-info { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; }
.contact-info h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); letter-spacing: -0.01em; margin: 12px 0 22px; }
.info-cards { display: grid; gap: 14px; }
.info-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); transition: border-color var(--dur), box-shadow var(--dur); }
.info-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow-sm); }
.info-card .ic { width: 42px; height: 42px; border-radius: var(--radius-md); flex: none; background: var(--blue-50); color: var(--blue-600); display: inline-flex; align-items: center; justify-content: center; }
.info-card .ic svg { width: 20px; height: 20px; }
.info-card .k { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-muted); }
.info-card .v { font-size: var(--text-sm); color: var(--text); margin-top: 3px; line-height: 1.5; }
.info-card a.v:hover { color: var(--blue-600); }
.contact-cta { margin-top: auto; padding-top: 26px; }
.contact-cta__box { background: var(--grad-hero); border-radius: var(--radius-lg); padding: 26px; color: #fff; position: relative; overflow: hidden; }
.contact-cta__box img { position: absolute; right: -20px; bottom: -28px; width: 130px; opacity: 0.16; }
.contact-cta__box h4 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); margin: 0 0 16px; position: relative; color: #fff; }

/* ---------- Contact page form ---------- */
.cp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 56px); align-items: start; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--text); }
.field .control { display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 14px; background: #fff;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-md); transition: border-color var(--dur), box-shadow var(--dur); }
.field .control:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--focus-ring); }
.field .control svg { width: 18px; height: 18px; color: var(--text-muted); flex: none; }
.field input, .field textarea, .field select { flex: 1; border: 0; outline: 0; background: transparent; font-family: var(--font-body);
  font-size: var(--text-base); color: var(--text); width: 100%; min-width: 0; }
.field textarea { padding: 12px 14px; min-height: 120px; resize: vertical; line-height: 1.5; border: 1.5px solid var(--border-strong); border-radius: var(--radius-md); }
.field textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--focus-ring); outline: 0; }
.field .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: 18px; }
.consent input { width: 18px; height: 18px; accent-color: var(--blue-500); margin-top: 1px; }
.captcha-row { display: grid; grid-template-columns: minmax(110px, auto) 1fr 46px; gap: 10px; align-items: center; }
.captcha-question { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: var(--radius-md); background: var(--blue-50); border: 1px solid var(--border); color: var(--blue-900); font-family: var(--font-mono); font-weight: 700; white-space: nowrap; }
.captcha-refresh { width: 46px; height: 46px; border-radius: var(--radius-md); background: #fff; border-color: var(--border-strong); color: var(--blue-600); }
.captcha-refresh svg { width: 18px; height: 18px; }
.form-success { display: none; }
.form-success.show { display: block; }
.alert { display: flex; gap: 12px; padding: 16px; border-radius: var(--radius-md); background: var(--success-soft); border: 1px solid #b8e6cf; }
.alert svg { width: 20px; height: 20px; color: var(--success); flex: none; margin-top: 1px; }
.alert b { display: block; color: #0c7a4f; font-size: var(--text-sm); margin-bottom: 3px; }
.alert p { margin: 0; font-size: var(--text-sm); color: var(--text-secondary); }
.form-error { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-md); background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; font-size: var(--text-sm); line-height: 1.45; }
.form-error.show { display: block; }

/* ---------- CTA band ---------- */
.cta-band .container { }
.cta-box { position: relative; overflow: hidden; border-radius: var(--radius-2xl); background: var(--grad-hero); padding: clamp(40px, 6vw, 64px); color: #fff; }
.cta-box img { position: absolute; right: -40px; bottom: -50px; width: 280px; opacity: 0.14; }
.cta-box__inner { position: relative; max-width: 640px; }
.cta-box h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.02em; margin: 0 0 14px; color: #fff; }
.cta-box p { font-size: var(--text-md); color: rgba(255,255,255,0.88); line-height: 1.6; margin: 0 0 28px; }
.cta-box__btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #fff; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(220px, 1.25fr) minmax(300px, 1.8fr) minmax(120px, .75fr) minmax(180px, 1fr); gap: 40px; }
.footer-brand img { height: 30px; }
.footer-brand p { font-size: var(--text-sm); color: var(--text-on-dark-dim); line-height: 1.6; margin: 16px 0 0; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a { width: 38px; height: 38px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border-dark); color: #fff; transition: background var(--dur); }
.footer-social a:hover { background: rgba(255,255,255,0.16); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h5 { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--text-on-dark-dim); margin: 0 0 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: var(--text-sm); color: var(--text-on-dark); transition: color var(--dur); }
.footer-services a { line-height: 1.35; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--cyan-400); }
.footer-bottom { border-top: 1px solid var(--border-dark); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-bottom, .footer-bottom a { font-size: var(--text-sm); color: var(--text-on-dark-dim); }
.footer-bottom .links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--cyan-400); }

/* ---------- Back to top ---------- */
.back-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 48px; height: 48px;
  border-radius: var(--radius-pill); background: var(--blue-600); color: #fff; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all var(--dur) var(--ease-out);
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--blue-700); transform: translateY(-2px); }
.back-top svg { width: 22px; height: 22px; }

/* ---------- Page header (blog/contact pages) ---------- */
.page-hero { background: var(--ink-800); color: #fff; position: relative; overflow: hidden; padding-top: 72px; }
.page-hero__bg { position: absolute; inset: 0; background: center/cover; opacity: 0.4; }
.page-hero__scrim { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(10,19,34,0.92), rgba(16,76,160,0.45)); }
.page-hero .container { position: relative; padding: clamp(56px, 8vw, 88px) 28px; }
.page-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.02em; margin: 16px 0 12px; color: #fff; }
.page-hero p { font-size: var(--text-md); color: var(--text-on-dark); max-width: 560px; margin: 0; }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--text-on-dark-dim); }
.breadcrumb a:hover { color: #fff; }

/* ---------- Legal pages ---------- */
.legal .container { max-width: 840px; }
.legal__meta { display: flex; align-items: center; gap: 10px; font-size: var(--text-sm); color: var(--text-muted);
  padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1px solid var(--border); }
.legal__meta svg { width: 16px; height: 16px; color: var(--blue-500); }
.legal__lead { font-size: var(--text-md); line-height: 1.65; color: var(--text-secondary); margin: 0 0 30px; }
.legal__toc { background: var(--gray-100); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 24px; margin-bottom: 38px; }
.legal__toc h2 { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; letter-spacing: var(--tracking-wider);
  text-transform: uppercase; color: var(--text-muted); margin: 0 0 12px; }
.legal__toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 8px; }
.legal__toc li { counter-increment: toc; }
.legal__toc a { font-size: var(--text-sm); color: var(--text-secondary); display: flex; gap: 10px; }
.legal__toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); color: var(--blue-400); font-weight: 600; }
.legal__toc a:hover { color: var(--blue-600); }
.legal article { counter-reset: sec; }
.legal article > section { padding-top: 14px; margin-bottom: 30px; scroll-margin-top: 90px; }
.legal article h2 { counter-increment: sec; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.4vw, 26px);
  color: var(--ink-800); margin: 0 0 14px; display: flex; gap: 12px; align-items: baseline; }
.legal article h2::before { content: counter(sec, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--text-md);
  font-weight: 600; color: var(--blue-400); flex: none; }
.legal article h3 { font-size: var(--text-md); font-weight: 600; color: var(--ink-800); margin: 22px 0 8px; }
.legal article p { font-size: var(--text-base); line-height: 1.7; color: var(--text-secondary); margin: 0 0 14px; }
.legal article ul { margin: 0 0 14px; padding-left: 2px; display: grid; gap: 9px; list-style: none; }
.legal article ul li { position: relative; padding-left: 22px; font-size: var(--text-base); line-height: 1.6; color: var(--text-secondary); }
.legal article ul li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px;
  border-radius: 2px; background: var(--blue-400); }
.legal article a { color: var(--blue-600); font-weight: 500; }
.legal article a:hover { text-decoration: underline; }
.legal__contact { margin-top: 8px; padding: 22px 26px; border-left: 3px solid var(--blue-500);
  background: var(--blue-50); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.legal__contact p { margin: 0 0 6px; color: var(--blue-900); }
.legal__contact p:last-child { margin: 0; }
.legal__note { margin-top: 30px; font-size: var(--text-sm); line-height: 1.6; color: var(--text-muted); font-style: italic; }

/* ---------- 404 ---------- */
.not-found { text-align: center; max-width: 720px; margin: 0 auto; }
.not-found__code { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 700; color: var(--cyan-700); letter-spacing: var(--tracking-wider); text-transform: uppercase; margin-bottom: 12px; }
.not-found h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; color: var(--text-strong); }
.not-found p { margin: 18px auto 0; color: var(--text-muted); max-width: 560px; }
.not-found .btn { margin-top: 28px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .about-visual .badge-float { left: auto; right: 18px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { min-height: 320px; }
  .cp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .main-nav, .header-actions .btn, .lang-btn .label { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.nav-open .main-nav {
    display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--border); padding: 12px; gap: 4px; box-shadow: var(--shadow-lg);
  }
  .site-header.nav-open .main-nav a { padding: 13px 16px; }
  .blog-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .service__head { padding: 18px 18px; gap: 12px; }
  .service__num { display: none; }
  .service__inner { padding: 4px 20px 24px 20px; }
  .hero__stats { gap: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 440px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero__cta .btn, .cta-box__btns .btn { width: 100%; }
}

