/* ==========================================================================
   Good Luck Global – site styles
   ========================================================================== */

:root {
  --navy: #0b2a3a;
  --navy-2: #123b4f;
  --teal: #0e7c86;
  --teal-d: #0a5a63;
  --teal-l: #e6f3f4;
  --gold: #c9a24b;
  --gold-l: #f0d58a;
  --rose: #e9a8ae;
  --ink: #1b2a33;
  --muted: #5d6e78;
  --line: #e4e9ec;
  --bg: #fbfaf7;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 42, 58, .08);
  --shadow-lg: 0 20px 50px rgba(11, 42, 58, .14);
  --font: "Noto Sans JP", "Poppins", system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Poppins", "Noto Sans JP", system-ui, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.lang-en { font-family: var(--font-en); line-height: 1.75; }
img, svg { max-width: 100%; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-d); }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .6em; color: var(--navy); font-weight: 700; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
.icon { flex: none; vertical-align: middle; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.container.narrow { width: min(900px, 100% - 40px); }
.center { text-align: center; }
.mt { margin-top: 40px; }

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

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  font: 600 15px/1 var(--font); letter-spacing: .03em; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(14, 124, 134, .3); }
.btn-primary:hover { background: var(--teal-d); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold-l), var(--gold)); color: var(--navy); box-shadow: 0 8px 20px rgba(201, 162, 75, .35); }
.btn-gold:hover { color: var(--navy); box-shadow: 0 12px 26px rgba(201, 162, 75, .5); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(11, 42, 58, .08); border-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-logo { height: 48px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font: 700 18px/1.2 var(--font-en); letter-spacing: .02em; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: .04em; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) {
  display: block; padding: 8px 14px; color: var(--ink); font-weight: 500; font-size: 15px; border-radius: 999px; position: relative;
}
.main-nav a:not(.btn):hover { color: var(--teal); background: var(--teal-l); }
.main-nav a.is-active { color: var(--teal); background: var(--teal-l); font-weight: 700; }
.nav-cta { margin-left: 8px; }

.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--navy); font-size: 13px; font-weight: 600; background: #fff;
}
.lang-switch:hover { border-color: var(--teal); color: var(--teal); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--teal-l); color: var(--teal-d); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .i-close { display: none; }
body.nav-open .nav-toggle .i-open { display: none; }
body.nav-open .nav-toggle .i-close { display: inline; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #082230 0%, #0b2a3a 45%, #0c5560 100%);
  padding: clamp(64px, 9vw, 120px) 0 clamp(96px, 11vw, 150px);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 15%, rgba(240, 213, 138, .22), transparent 60%),
    radial-gradient(500px 400px at 5% 95%, rgba(233, 168, 174, .18), transparent 60%),
    radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.5px) 0 0 / 26px 26px;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.hero h1 {
  color: #fff; font-size: clamp(32px, 5vw, 56px); line-height: 1.25; letter-spacing: .02em; margin-bottom: 24px;
  font-weight: 700;
}
body.lang-ja .hero h1 { font-family: "Noto Serif JP", var(--font); }
.hero .lead { font-size: clamp(15px, 1.6vw, 18px); color: rgba(255, 255, 255, .85); max-width: 580px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.globe-wrap { position: relative; width: 100%; max-width: 540px; margin-left: auto; aspect-ratio: 1; }
/* CSS-only sphere shown until the canvas globe is ready (or if JS is off) */
.globe-wrap::before {
  content: ""; position: absolute; inset: 14.5%; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #2fb0c0, #126477 45%, #06202d 100%);
  box-shadow: 0 0 80px rgba(94, 214, 228, .25);
}
.globe-wrap.is-ready::before { display: none; }
.globe-wrap canvas { position: relative; display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.globe-wrap canvas.is-drag { cursor: grabbing; }

.eyebrow {
  display: inline-block; font: 600 13px/1 var(--font-en); letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 16px; position: relative; padding-left: 36px;
}
.eyebrow::before { content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 2px; background: currentColor; }
.eyebrow-light { color: var(--gold-l); }

/* ---------- Stats ---------- */
.stats { margin-top: -60px; position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 30px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-value { font: 700 clamp(34px, 4vw, 48px)/1 var(--font-en); color: var(--teal); }
.stat-value small { font-size: 15px; margin-left: 4px; color: var(--navy); font-weight: 600; }
.stat-label { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-tint { background: linear-gradient(180deg, #f1f7f7, #f7faf9); }
.section-dark { background: linear-gradient(135deg, #082230, #0d3a4a); color: #fff; position: relative; overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 100% 0, rgba(240, 213, 138, .14), transparent 60%);
}
.section-dark .container { position: relative; }
.section-dark .section-title { color: #fff; }
.section-dark .section-lead { color: rgba(255, 255, 255, .75); }

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head .eyebrow { padding-left: 0; }
.section-head .eyebrow::before { display: none; }
.section-title { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 18px; }
body.lang-ja .section-title { letter-spacing: .04em; }
.section-lead { color: var(--muted); font-size: 17px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.about-grid p { color: #36474f; }
.fact-card {
  background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--radius); padding: 14px 32px;
  box-shadow: var(--shadow-lg); position: relative;
}
.fact-card::after {
  content: ""; position: absolute; right: -14px; bottom: -14px; width: 100%; height: 100%; border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1;
}
.fact-card dl { margin: 0; }
.fact-card dl > div { padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.fact-card dl > div:last-child { border: 0; }
.fact-card dt { font-size: 12px; letter-spacing: .12em; color: var(--gold-l); margin-bottom: 4px; }
.fact-card dd { margin: 0; font-size: 18px; font-weight: 600; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); border: 1px solid transparent;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(14, 124, 134, .25); }
.card h3 { font-size: 19px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 16px; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--teal-l), #d3ebed); color: var(--teal-d);
}
.card-icon-lg { width: 84px; height: 84px; border-radius: 22px; margin: 0; }

/* ---------- Philosophy (home) ---------- */
.phil-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.phil-card {
  position: relative; padding: 38px 30px 34px; border-radius: var(--radius); background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(4px);
  transition: transform .3s, background .3s;
}
.phil-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .1); }
.phil-card h3 { color: #fff; font-size: 18px; margin: 18px 0 0; }
.phil-no { position: absolute; right: 24px; top: 16px; font: 700 44px/1 var(--font-en); color: rgba(240, 213, 138, .28); }
.phil-icon {
  display: inline-flex; width: 54px; height: 54px; border-radius: 50%; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-l), var(--gold)); color: var(--navy);
}

/* ---------- Offices ---------- */
.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.office-grid-2 { grid-template-columns: repeat(2, 1fr); margin: 20px 0 28px; }
.office-card {
  background: #fff; border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative;
  border-top: 4px solid var(--teal);
}
.office-card:nth-child(2) { border-top-color: var(--gold); }
.office-card:nth-child(3) { border-top-color: var(--rose); }
.office-card h3 { font-size: 19px; margin: 12px 0 18px; }
.office-card .addr { line-height: 1.9; color: var(--muted); margin: 0; }
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .06em;
  background: var(--teal-l); color: var(--teal-d);
}
.badge-gold { background: #fbf1d3; color: #7b5d12; }

.contact-list li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; color: var(--muted); font-size: 15px; word-break: break-word; }
.contact-list .icon { color: var(--teal); margin-top: 5px; }
.contact-list a { color: var(--ink); font-weight: 500; }
.contact-list a:hover { color: var(--teal); }
.contact-list-lg li { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.contact-list-lg li:last-child { border: 0; }
.contact-list-lg strong { display: block; font-size: 12px; letter-spacing: .08em; color: var(--teal-d); margin-bottom: 2px; }
.contact-list-lg li > span { color: var(--ink); }

/* ---------- News ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.news-list { margin: 18px 0 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.news-list li + li { border-top: 1px solid var(--line); }
.news-list a {
  display: grid; grid-template-columns: 110px 1fr 20px; gap: 14px; align-items: center; padding: 20px 24px; color: var(--ink);
  transition: background .2s, padding-left .2s;
}
.news-list a:hover { background: var(--teal-l); padding-left: 30px; color: var(--teal-d); }
.news-list time { font: 600 14px/1 var(--font-en); color: var(--teal); }
.news-list .icon { color: var(--teal); }
.news-list-lg { margin-top: 0; }

.recruit-card {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 40px 36px; color: #fff;
  background: linear-gradient(145deg, var(--teal), var(--navy)); box-shadow: var(--shadow-lg);
}
.recruit-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -60px; bottom: -80px; border-radius: 50%; background: rgba(240, 213, 138, .18); }
.recruit-card h2 { color: #fff; font-size: 26px; }
.recruit-card p { color: rgba(255, 255, 255, .85); }
.recruit-card .btn { position: relative; z-index: 1; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, #082230, #0c5560); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin-bottom: 6px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .8); }
.cta-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cta-phone { display: inline-flex; align-items: center; gap: 10px; color: #fff; font: 600 20px/1 var(--font-en); }
.cta-phone:hover { color: var(--gold-l); }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; color: #fff; padding: 64px 0 72px; overflow: hidden;
  background: linear-gradient(135deg, #082230, #0c5560);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 280px at 90% 0, rgba(240, 213, 138, .22), transparent 60%),
              radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.5px) 0 0 / 26px 26px;
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); margin: 0; }
.page-hero .eyebrow { color: var(--gold-l); }
.breadcrumb { font-size: 13px; color: rgba(255, 255, 255, .7); margin-bottom: 24px; display: flex; gap: 8px; }
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover { color: var(--gold-l); }

/* ---------- Tables / lists ---------- */
.table-card, .job-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 20px 28px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 220px; background: #f4f9f9; color: var(--teal-d); font-weight: 700; font-size: 15px; white-space: nowrap; }
.spec-table td { color: #33444d; }

.tick-list li { display: flex; gap: 10px; align-items: flex-start; padding: 3px 0; }
.tick-list .icon { color: var(--teal); margin-top: 6px; flex: none; }
.tick-list li > span { flex: 1; }

/* ---------- Services page ---------- */
.service-list { display: grid; gap: 28px; }
.service-row {
  display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: center; background: #fff; border-radius: 22px; padding: 36px 44px;
  box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s;
}
.service-row:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-badge { display: flex; align-items: center; gap: 22px; }
.service-no { font: 700 54px/1 var(--font-en); color: var(--gold); opacity: .55; }
.service-body h2 { font-size: 24px; margin-bottom: 10px; }
.service-body p { margin: 0; color: var(--muted); }
.service-row.is-flip { background: linear-gradient(135deg, #f4f9f9, #fff); }

/* ---------- Philosophy page ---------- */
.phil-list { display: grid; gap: 28px; }
.phil-item { display: grid; grid-template-columns: 120px 1fr; gap: 32px; background: #fff; padding: 40px; border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.phil-item-head { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.phil-item-no { font: 700 56px/1 var(--font-en); color: var(--gold); opacity: .6; }
.phil-item .card-icon { margin: 0; }
.phil-item h2 { font-size: 22px; margin-bottom: 16px; }
.phil-item .tick-list li { color: #3a4b54; padding: 5px 0; }

/* ---------- Recruiting ---------- */
.job-card { margin-top: 34px; }
.job-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 26px 28px; background: linear-gradient(135deg, var(--navy), var(--teal-d)); }
.job-head h2 { color: #fff; margin: 0; font-size: 22px; }
.job-foot { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding: 24px 28px; background: #f4f9f9; }
.job-tel { display: inline-flex; gap: 8px; align-items: center; font: 600 17px/1 var(--font-en); color: var(--navy); }

/* ---------- Article ---------- */
.article { background: #fff; padding: clamp(28px, 5vw, 52px); border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.article h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 24px; padding-bottom: 20px; border-bottom: 2px solid var(--teal-l); }
.article h3 { font-size: 18px; margin: 28px 0 12px; padding-left: 14px; border-left: 4px solid var(--gold); }
.article-date { font: 600 14px/1 var(--font-en); color: var(--teal); display: block; margin-bottom: 12px; }
.article .note { color: #8a3b3b; font-weight: 600; background: #fdf1f1; padding: 12px 16px; border-radius: 10px; }
.link-url { margin-left: 12px; color: var(--muted); font-size: 14px; }
.article .office-card { box-shadow: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }
.info-card { background: #fff; border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.info-card h2 { font-size: 18px; margin-bottom: 8px; }
.map { margin-top: 24px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 280px; border: 0; }

.form-card { background: #fff; border-radius: 22px; padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); border-top: 5px solid var(--gold); }
.form-card h2 { font-size: 24px; margin-bottom: 24px; }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--navy); }
.field label em { font-style: normal; font-size: 11px; background: #fde8e8; color: #b42318; padding: 2px 8px; border-radius: 999px; margin-left: 6px; font-weight: 600; }
.field label em.opt { background: #eef2f4; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid #d6dee2; border-radius: 12px; background: #fcfdfd; font: 400 16px/1.5 var(--font); color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14, 124, 134, .15); background: #fff; }
.field textarea { resize: vertical; min-height: 150px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; margin-bottom: 24px; }
.alert p, .alert ul { margin: 4px 0 0; }
.alert ul { padding-left: 18px; list-style: disc; }
.alert-ok { background: #e8f6ee; color: #14633a; border: 1px solid #b9e3cb; }
.alert-err { background: #fdf0ef; color: #9c2a1e; border: 1px solid #f3c6c1; }

/* ---------- Footer ---------- */
.site-footer { background: #071b26; color: rgba(255, 255, 255, .75); padding-top: 64px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .6fr 1.6fr; gap: 48px; padding-bottom: 48px; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: var(--gold-l); }
/* Logo has dark text, so it sits on a white plate in the dark footer. */
.brand-light { display: inline-flex; background: #fff; padding: 10px 16px; border-radius: 14px; }
.brand-light .brand-logo { height: 44px; }
.footer-brand p { margin-top: 18px; line-height: 1.8; }
.footer-title { color: #fff; font-size: 14px; letter-spacing: .14em; margin-bottom: 18px; text-transform: uppercase; font-family: var(--font-en); }
.footer-links li { padding: 5px 0; }
.footer-offices address { font-style: normal; display: block; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); line-height: 1.7; }
.footer-offices address:first-of-type { padding-top: 0; }
.footer-offices address:last-child { border: 0; }
.footer-offices strong { display: block; color: #fff; }
.footer-offices span { display: block; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.footer-credit { margin-left: auto; font-size: 13px; }
.footer-credit a { color: var(--gold-l); font-weight: 600; }
.footer-credit a:hover { text-decoration: underline; }
.to-top { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(255, 255, 255, .1); }

/* ---------- Reveal animation (only when JS is available) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0ms); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; background: #fff; padding: 12px 20px 28px;
    border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(11, 42, 58, .12);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s;
    max-height: calc(100vh - var(--header-h)); overflow: auto;
  }
  body.nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a:not(.btn) { padding: 14px 16px; border-radius: 12px; }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { width: 100%; }
  .header-tools { margin-left: auto; }

  .hero-grid { grid-template-columns: 1fr; }
  .globe-wrap { max-width: 420px; margin: 8px auto 0; }
  .about-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .card-grid, .phil-grid, .office-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .fact-card::after { display: none; }
}

@media (max-width: 720px) {
  :root { --header-h: 68px; }
  body { font-size: 15px; }
  .brand-logo { height: 40px; }
  .lang-switch span { display: none; }
  .lang-switch { padding: 10px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .card-grid, .phil-grid, .office-grid, .office-grid-2, .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .service-row { grid-template-columns: 1fr; padding: 28px 24px; gap: 18px; }
  .service-no { font-size: 42px; }
  .card-icon-lg { width: 68px; height: 68px; }
  .phil-item { grid-template-columns: 1fr; padding: 28px 24px; gap: 14px; }
  .phil-item-head { flex-direction: row; align-items: center; }
  .spec-table th, .spec-table td { display: block; width: 100%; padding: 14px 20px; }
  .spec-table th { border-bottom: 0; padding-bottom: 6px; white-space: normal; }
  .spec-table td { padding-top: 6px; }
  .news-list a { grid-template-columns: 1fr 20px; gap: 6px 10px; padding: 16px 18px; }
  .news-list time { grid-column: 1 / -1; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .link-url { display: block; margin: 8px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
