/* ==========================================================================
   True Chain Infrastructure Company — public site stylesheet
   Brand: #17579E (chain blue) · #0B1B33 (deep navy) · crisp white
   ========================================================================== */

:root {
  --blue: #17579E;
  --blue-dark: #114478;
  --blue-bright: #2E7CD6;
  --blue-soft: #EAF1F9;
  --navy: #0B1B33;
  --navy-2: #0E2240;
  --ink: #182A45;
  --body: #3C4B63;
  --muted: #64748B;
  --line: #E4EAF2;
  --bg: #FFFFFF;
  --bg-soft: #F5F8FC;
  --white: #FFFFFF;
  --ok: #157F3D;
  --err: #B42318;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 51, .05), 0 2px 8px rgba(11, 27, 51, .04);
  --shadow-md: 0 6px 24px rgba(11, 27, 51, .09);
  --shadow-lg: 0 18px 50px rgba(11, 27, 51, .16);
  --font-head: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .55em;
  font-weight: 700;
  letter-spacing: -.015em;
}
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.tc-icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-head);
  font-weight: 600; font-size: 15.5px; line-height: 1;
  padding: 15px 28px; border-radius: 12px; border: 1.5px solid transparent;
  cursor: pointer; transition: all .22s ease; text-decoration: none;
}
.btn .tc-icon { width: 1.1em; height: 1.1em; transition: transform .22s ease; }
.btn:hover .tc-icon { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(23, 87, 158, .28); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .42); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .14); }
.btn-sm { padding: 11px 20px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 17px 34px; font-size: 16.5px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 24px rgba(11, 27, 51, .07); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand-logo { height: 46px; width: auto; }
.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 10px 15px; border-radius: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink);
  transition: color .18s, background .18s;
}
.main-nav a:hover { color: var(--blue); background: var(--blue-soft); }
.main-nav a.active { color: var(--blue); }
.main-nav a.active { position: relative; }
.main-nav a.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2.5px;
  background: var(--blue); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle .tc-icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-menu { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }
.nav-cta-mobile { display: none; }

/* ---------- Hero slider ---------- */
.hero {
  position: relative; background: var(--navy); color: #fff; overflow: hidden;
  min-height: clamp(540px, 72vh, 720px);
}
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  background-size: cover; background-position: center right;
  opacity: 0; transition: opacity .9s ease; pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; position: relative; }
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7, 17, 33, .82) 18%, rgba(7, 17, 33, .45) 55%, rgba(7, 17, 33, .12) 85%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: 110px 0 130px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: #9DC4EE;
  margin-bottom: 22px;
}
.hero-kicker::before { content: ""; width: 34px; height: 2px; background: var(--blue-bright); border-radius: 2px; }
.hero h1 {
  color: #fff; font-size: clamp(34px, 4.6vw, 58px); font-weight: 800;
  letter-spacing: -.02em; margin-bottom: 22px;
}
.hero-sub { font-size: clamp(16.5px, 1.5vw, 19.5px); color: #C8D6EA; max-width: 600px; margin-bottom: 38px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-controls {
  position: absolute; z-index: 5; bottom: 36px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; pointer-events: none;
}
.hero-dots { display: flex; gap: 10px; pointer-events: auto; }
.hero-dot {
  width: 34px; height: 4px; border-radius: 3px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .28); transition: background .25s; padding: 0;
}
.hero-dot.active { background: var(--blue-bright); }
.hero-arrows { display: flex; gap: 10px; pointer-events: auto; }
.hero-arrow {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06);
  color: #fff; display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.hero-arrow:hover { background: var(--blue-bright); border-color: var(--blue-bright); }
.hero-arrow .tc-icon { width: 20px; height: 20px; }

/* ---------- Section scaffolding ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 14px;
}
.kicker::before { content: ""; width: 30px; height: 2px; background: var(--blue); border-radius: 2px; }
.section-head.center .kicker::after { content: ""; width: 30px; height: 2px; background: var(--blue); border-radius: 2px; }
.section-title { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; }
.section-sub { font-size: 17.5px; color: var(--muted); }

/* ---------- Home: intro split ---------- */
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.intro-copy .section-head { margin-bottom: 28px; }
.intro-points { display: grid; gap: 18px; margin-top: 34px; }
.intro-point { display: flex; gap: 16px; align-items: flex-start; }
.intro-point .tc-icon { width: 22px; height: 22px; color: var(--blue); margin-top: 4px; }
.intro-point strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 16px; margin-bottom: 2px; }
.intro-point span { font-size: 15px; color: var(--muted); }

.intro-visual { position: relative; }
.org-chart {
  background: linear-gradient(160deg, var(--navy), #133865 90%);
  border-radius: 22px; padding: 44px 38px; color: #fff; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.org-chart::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px;
  border-radius: 50%; background: radial-gradient(circle, rgba(46, 124, 214, .35), transparent 70%);
}
.org-root {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px; padding: 18px 22px; text-align: center; position: relative; z-index: 2;
}
.org-root strong { font-family: var(--font-head); font-size: 17px; display: block; color: #fff; }
.org-root span { font-size: 13px; color: #9DC4EE; letter-spacing: .08em; text-transform: uppercase; }
.org-line { width: 2px; height: 26px; background: rgba(255, 255, 255, .25); margin: 0 auto; position: relative; z-index: 2; }
.org-children { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; z-index: 2; }
.org-child {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px; padding: 16px 12px; text-align: center; transition: all .25s;
}
.org-child:hover { background: rgba(46, 124, 214, .22); border-color: rgba(46, 124, 214, .55); transform: translateY(-3px); }
.org-child .tc-icon { width: 26px; height: 26px; color: #7FB4EC; margin: 0 auto 10px; }
.org-child strong { display: block; font-family: var(--font-head); font-size: 13.5px; color: #fff; line-height: 1.35; }
.org-child span { font-size: 11.5px; color: #8FA9C9; }
.org-note { margin: 18px 4px 0; font-size: 12.5px; color: #8FA9C9; text-align: center; position: relative; z-index: 2; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--navy); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.stats-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(23, 87, 158, .25), transparent 60%);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; position: relative; }
.stat-item { text-align: center; padding: 0 10px; }
.stat-value {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(38px, 4vw, 54px); color: #fff; letter-spacing: -.02em; line-height: 1.05;
}
.stat-label { display: block; margin-top: 10px; font-size: 14.5px; color: #9DB4D4; }

/* ---------- Companies grid ---------- */
.companies-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.company-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 30px; display: flex; flex-direction: column;
  transition: all .28s ease; position: relative; overflow: hidden;
}
.company-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.company-card:hover { border-color: #C8D8EC; box-shadow: var(--shadow-md); transform: translateY(-5px); }
.company-card:hover::before { transform: scaleX(1); }
.company-icon {
  width: 58px; height: 58px; border-radius: 15px; background: var(--blue-soft);
  color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.company-icon .tc-icon { width: 30px; height: 30px; }
.company-cat {
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; font-family: var(--font-head);
}
.company-card h3 { font-size: 20px; margin-bottom: 10px; }
.company-card p { font-size: 15px; color: var(--muted); flex: 1; margin-bottom: 20px; }
.company-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--blue);
}
.company-link .tc-icon { width: 17px; height: 17px; transition: transform .2s; }
.company-card:hover .company-link .tc-icon { transform: translateX(4px); }

/* ---------- Ecosystem flow ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; margin-top: 10px; }
.flow-step { position: relative; text-align: center; padding: 0 18px; }
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 33px; left: calc(50% + 44px); right: calc(-50% + 44px);
  height: 2px; background: linear-gradient(90deg, var(--line), #C9DAEE);
}
.flow-icon {
  width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  transition: all .3s; position: relative; z-index: 2;
}
.flow-icon .tc-icon { width: 30px; height: 30px; }
.flow-step:hover .flow-icon { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(23, 87, 158, .3); }
.flow-step h3 { font-size: 16.5px; margin-bottom: 6px; }
.flow-step p { font-size: 13.8px; color: var(--muted); margin: 0; }
.flow-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  color: var(--blue); text-transform: uppercase; font-family: var(--font-head); margin-bottom: 8px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, #133E74 70%, var(--blue) 100%);
  border-radius: 26px; color: #fff; padding: 76px 64px;
  display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-band::after {
  content: ""; position: absolute; right: -90px; bottom: -120px; width: 340px; height: 340px;
  border: 2px solid rgba(255, 255, 255, .1); border-radius: 50%;
}
.cta-band::before {
  content: ""; position: absolute; right: 60px; top: -130px; width: 280px; height: 280px;
  border: 2px solid rgba(255, 255, 255, .08); border-radius: 50%;
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.cta-band p { color: #C8D6EA; font-size: 16.5px; margin: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 2; }

/* ---------- Inner page hero ---------- */
.page-hero {
  background:
    radial-gradient(900px 420px at 85% -60%, rgba(46, 124, 214, .35), transparent),
    linear-gradient(135deg, var(--navy), #10305B 85%);
  color: #fff; padding: 86px 0 70px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(125, 170, 220, .18) 1px, transparent 1px);
  background-size: 38px 38px;
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: #8FA9C9; margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a { color: #B7CCE8; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin-bottom: 10px; max-width: 800px; }
.page-hero .page-sub { color: #C8D6EA; font-size: 17.5px; max-width: 680px; margin: 0; }

/* ---------- Prose (CMS content) ---------- */
.prose { max-width: 800px; }
.prose .lead { font-size: 19.5px; color: var(--ink); font-weight: 500; line-height: 1.65; }
.prose h2 {
  font-size: 26px; margin-top: 1.9em; padding-top: .2em; position: relative;
}
.prose h2::before {
  content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 3px;
  background: var(--blue); border-radius: 2px;
}
.prose h3 { font-size: 20px; margin-top: 1.6em; }
.prose ul li, .prose ol li { margin-bottom: .55em; }
.prose li::marker { color: var(--blue); }
.prose img { border-radius: var(--radius-sm); }
.prose blockquote {
  margin: 1.6em 0; padding: 18px 26px; border-left: 4px solid var(--blue);
  background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink); font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--bg-soft); font-family: var(--font-head); }

.page-body { padding: 72px 0 96px; }
.page-body .prose { margin-inline: auto; }

/* ---------- Companies page ---------- */
.company-hero-icon {
  width: 76px; height: 76px; border-radius: 19px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  color: #9DC4EE; display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.company-hero-icon .tc-icon { width: 38px; height: 38px; }
.company-meta { display: flex; gap: 12px; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; font-family: var(--font-head);
  letter-spacing: .04em; padding: 7px 14px; border-radius: 999px;
}
.badge-live { background: rgba(36, 161, 88, .16); color: #5BD894; border: 1px solid rgba(91, 216, 148, .35); }
.badge-soon { background: rgba(255, 184, 0, .12); color: #FFD168; border: 1px solid rgba(255, 209, 104, .3); }
.badge-cat { background: rgba(255, 255, 255, .1); color: #C8D6EA; border: 1px solid rgba(255, 255, 255, .18); }

.company-layout { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: start; }
.company-aside { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 20px; }
.aside-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.aside-card h4 { font-size: 15px; margin-bottom: 12px; }
.aside-card .btn { width: 100%; justify-content: center; }
.aside-card .note { font-size: 13px; color: var(--muted); margin: 10px 0 0; text-align: center; }
.aside-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.aside-list a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 9px; color: var(--ink); font-size: 14.5px; font-weight: 500;
}
.aside-list a:hover { background: #fff; color: var(--blue); }
.aside-list .tc-icon { width: 18px; height: 18px; color: var(--blue); }

/* ---------- Leadership ---------- */
.leaders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.leader-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .28s;
}
.leader-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.leader-photo { aspect-ratio: 1 / .92; background: var(--bg-soft); position: relative; overflow: hidden; }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-initials {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--navy), #16498A);
  color: #fff; font-family: var(--font-head); font-size: 52px; font-weight: 700; letter-spacing: .04em;
}
.leader-body { padding: 24px 26px 26px; }
.leader-body h3 { font-size: 19px; margin-bottom: 3px; }
.leader-role { color: var(--blue); font-size: 14px; font-weight: 600; font-family: var(--font-head); margin-bottom: 14px; }
.leader-bio { font-size: 14.8px; color: var(--muted); }
.leader-bio.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.leader-more { font-size: 14px; font-weight: 600; font-family: var(--font-head); color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer; margin-top: 10px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact-info h2 { font-size: 26px; }
.contact-cards { display: grid; gap: 16px; margin-top: 30px; }
.contact-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 22px; transition: all .25s;
}
.contact-card:hover { border-color: #C8D8EC; box-shadow: var(--shadow-sm); }
.contact-card .ci {
  width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-card .ci .tc-icon { width: 22px; height: 22px; }
.contact-card strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.contact-card span, .contact-card a { font-size: 15px; color: var(--muted); word-break: break-word; }
.contact-card a:hover { color: var(--blue); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 7px; font-family: var(--font-head); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; font: inherit; font-size: 15px; color: var(--ink);
  border: 1.5px solid #D5DEEA; border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23, 87, 158, .12);
}
.field textarea { min-height: 150px; resize: vertical; }
.field .err-text { color: var(--err); font-size: 13px; margin-top: 5px; display: block; }
.field.invalid input, .field.invalid textarea { border-color: var(--err); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert { border-radius: 12px; padding: 16px 20px; margin-bottom: 24px; font-size: 15px; display: flex; gap: 12px; align-items: flex-start; }
.alert .tc-icon { width: 21px; height: 21px; margin-top: 2px; }
.alert-ok { background: #EFFBF3; border: 1px solid #BFE8CC; color: #11663B; }
.alert-err { background: #FDF0EF; border: 1px solid #F3C6C2; color: var(--err); }

/* ---------- 404 / maintenance ---------- */
.error-section { text-align: center; padding: 120px 0; }
.error-code {
  font-family: var(--font-head); font-size: clamp(80px, 14vw, 150px); font-weight: 800;
  background: linear-gradient(120deg, var(--navy), var(--blue-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1;
}
.error-section h1 { font-size: 28px; margin: 18px 0 10px; }
.error-section p { color: var(--muted); max-width: 480px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #AFC2DC; padding: 76px 0 0; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 48px; padding-bottom: 56px; }
.footer-logo { height: 44px; width: auto; margin-bottom: 22px; }
.footer-about { font-size: 14.5px; line-height: 1.75; color: #8FA9C9; max-width: 320px; }
.footer-about p { margin-bottom: .8em; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14);
  display: flex; align-items: center; justify-content: center; color: #AFC2DC; transition: all .2s;
}
.footer-social a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.footer-social .tc-icon { width: 19px; height: 19px; }
.footer-col h4 {
  color: #fff; font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 20px; font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: #AFC2DC; font-size: 14.5px; transition: color .18s; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.footer-contact .tc-icon { width: 18px; height: 18px; color: var(--blue-bright); margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 26px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: #7D93B5;
}
.footer-bottom p { margin: 0; }

.back-to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 48px; height: 48px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--blue); color: #fff; box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--blue-dark); }
.back-to-top .tc-icon { width: 20px; height: 20px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .companies-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .flow-step:nth-child(3)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .company-layout { grid-template-columns: 1fr; }
  .company-aside { position: static; }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .nav-cta-mobile { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(11, 27, 51, .12);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  body.nav-open .main-nav { max-height: 480px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 12px 24px 20px; }
  .main-nav a { padding: 13px 10px; border-radius: 8px; font-size: 16px; }
  .main-nav a.active::after { display: none; }
  .intro-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .cta-band { grid-template-columns: 1fr; padding: 56px 40px; }
  .cta-actions { justify-content: flex-start; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .companies-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 8px; }
  .flow-step { display: grid; grid-template-columns: 66px 1fr; text-align: left; gap: 0 18px; padding: 14px 0; }
  .flow-step::after { display: none !important; }
  .flow-icon { margin: 0; grid-row: span 3; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .hero-content { padding: 90px 0 120px; }
  .hero-controls .hero-arrows { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .container { width: calc(100% - 40px); }
  .org-children { grid-template-columns: 1fr; }
  .back-to-top { right: 16px; bottom: 16px; }
}
