:root {
  --navy: #082f52;
  --navy-2: #0b456f;
  --blue: #0d6f9f;
  --green: #00d42f;
  --green-dark: #00ad27;
  --ink: #0b2740;
  --muted: #667381;
  --line: #dfe5e9;
  --soft: #f5f8fa;
  --white: #ffffff;
  --shadow: 0 16px 45px rgba(9, 47, 82, .10);
  --radius: 2px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.container { width: min(var(--max), calc(100% - 42px)); margin: 0 auto; }
.section { padding: 92px 0; }
.section-tight { padding: 66px 0; }
.bg-soft { background: var(--soft); }
.border-top { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  font-weight: 800;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.eyebrow.green { color: var(--green); }

h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(3rem, 6.2vw, 5.7rem); font-weight: 800; }
h2 { font-size: clamp(2.25rem, 4vw, 3.65rem); font-weight: 800; }
h3 { font-size: 1.24rem; font-weight: 760; }
p { margin: 0; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 780px; }
.lead-light { color: rgba(255,255,255,.82); font-size: 1.13rem; max-width: 700px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(10,39,64,.08);
  backdrop-filter: blur(14px);
}
.header-inner { height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { flex: 0 0 205px; height: 76px; display: flex; align-items: center; padding-right: 24px; border-right: 1px solid var(--line); }
.brand img { width: 112px; height: auto; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 34px; flex: 1; }
.main-nav a { text-decoration: none; font-weight: 700; font-size: .93rem; position: relative; padding: 27px 0 25px; }
.main-nav a::after { content:""; position:absolute; left:0; right:100%; bottom:17px; height:2px; background:var(--green); transition:.22s ease; }
.main-nav a:hover::after, .main-nav a.active::after { right:0; }
.header-actions { display: flex; align-items: center; gap: 20px; white-space: nowrap; }
.header-phone { color: #697581; text-decoration: none; font-size: .92rem; }
.header-phone svg { vertical-align: -3px; margin-right: 6px; }
.menu-toggle { display:none; background:none; border:0; color:var(--ink); width:42px; height:42px; cursor:pointer; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  font-size: .95rem;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline-light { border-color: rgba(255,255,255,.38); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: var(--green); color: var(--green); }
.btn-outline { border-color: #b8c5ce; color: var(--ink); background:#fff; }
.btn-small { min-height: 42px; padding: 0 18px; }

/* Blue grid treatment */
.blue-grid {
  color: #fff;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(115deg, var(--navy) 0%, var(--navy-2) 52%, var(--blue) 100%);
  background-size: 90px 90px, 90px 90px, auto;
}

/* Home hero */
.hero { min-height: 665px; display:flex; align-items:center; }
.hero-grid { display:grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items:center; padding: 74px 0; }
.hero h1 { max-width: 720px; }
.hero .lead-light { margin-top: 24px; }
.hero-actions { display:flex; gap:14px; margin-top:34px; flex-wrap:wrap; }
.hero-contact { display:inline-flex; align-items:center; gap:8px; margin-top:26px; color:rgba(255,255,255,.82); font-size:.92rem; text-decoration:none; }
.hero-visual { position:relative; }
.hero-visual::before { content:""; position:absolute; inset:-18px 18px 18px -18px; border:1px solid rgba(255,255,255,.16); }
.hero-visual img { position:relative; width:100%; aspect-ratio: 4/3; object-fit:cover; box-shadow:0 24px 60px rgba(0,0,0,.22); }

.stat-strip { display:grid; grid-template-columns:repeat(4,1fr); border-bottom:1px solid var(--line); }
.stat { padding: 28px 24px; border-right:1px solid var(--line); }
.stat:last-child { border-right:0; }
.stat strong { display:block; color:var(--blue); font-size:clamp(1.45rem,2.5vw,2rem); line-height:1.05; }
.stat span { color:#7b858e; font-size:.84rem; }

/* Cards */
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:0; border:1px solid var(--line); }
.approach-card { min-height: 270px; padding:30px; border-right:1px solid var(--line); transition: background .2s ease, transform .2s ease; }
.approach-card:last-child { border-right:0; }
.approach-card:hover { background:#eef3f6; }
.icon-row { display:flex; align-items:center; gap:12px; margin-bottom:20px; }
.icon-box { width:44px; height:44px; background:var(--blue); color:#fff; display:grid; place-items:center; }
.card-num { color:#a2adb5; font: 700 .72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.approach-card p, .sector-card p, .service-card p, .training-card p { color:var(--muted); margin-top:12px; }

.section-head { display:flex; justify-content:space-between; gap:50px; align-items:flex-end; margin-bottom:44px; }
.section-head .lead { max-width:520px; }
.sector-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.sector-card { border:1px solid var(--line); padding:30px; min-height:230px; background:#fff; transition:.2s ease; }
.sector-card:hover { border-color:#78adc8; transform:translateY(-3px); box-shadow:var(--shadow); }
.sector-card .icon-box { margin-bottom:22px; }

.split { display:grid; grid-template-columns: .9fr 1.1fr; gap:42px; align-items:stretch; }
.photo-panel { min-height:520px; overflow:hidden; }
.photo-panel img { width:100%; height:100%; object-fit:cover; }
.content-panel { padding:18px 0; }
.content-panel .feature { padding:27px 0; border-top:1px solid var(--line); }
.content-panel .feature:first-of-type { margin-top:22px; }
.quote-panel { margin-top:22px; padding:28px 30px; color:#fff; font-weight:700; font-size:1.16rem; font-style:italic; background:linear-gradient(120deg,var(--navy),var(--blue)); }

/* Page hero */
.page-hero { padding: 80px 0 82px; }
.page-hero h1 { font-size:clamp(2.8rem,5vw,4.7rem); max-width:850px; }
.page-hero .lead-light { margin-top:20px; }

/* Services */
.service-grid { display:grid; grid-template-columns:repeat(2,1fr); border-left:1px solid var(--line); border-top:1px solid var(--line); }
.service-card { padding:30px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); min-height:390px; }
.service-card .divider { height:1px; background:var(--line); margin:20px 0 16px; }
.check-list { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.check-list li { position:relative; padding-left:25px; color:#334b5e; }
.check-list li::before { content:"✓"; position:absolute; left:0; color:var(--green-dark); font-weight:900; }
.detail-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.detail-box { background:#fff; border:1px solid var(--line); padding:26px; min-height:220px; }
.detail-box small { color:var(--blue); text-transform:uppercase; letter-spacing:.14em; font-weight:800; }
.detail-box h3 { margin-top:12px; }
.detail-box p { color:var(--muted); margin-top:10px; }

/* Training */
.training-intro-grid { display:grid; grid-template-columns:repeat(3,1fr); border:1px solid var(--line); margin-top:42px; }
.training-intro-grid > div { padding:26px; border-right:1px solid var(--line); }
.training-intro-grid > div:last-child { border-right:0; }
.training-intro-grid h3 { margin-top:12px; }
.training-intro-grid p { color:var(--muted); margin-top:8px; font-size:.95rem; }
.training-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; margin:30px 0 28px; }
.filter-buttons { display:flex; gap:8px; flex-wrap:wrap; }
.filter-btn { border:1px solid var(--line); background:#fff; min-height:38px; padding:0 14px; color:#566574; font-weight:700; cursor:pointer; }
.filter-btn:hover, .filter-btn.active { background:var(--blue); border-color:var(--blue); color:#fff; }
.course-search { min-width:min(330px,100%); border:1px solid var(--line); padding:10px 14px; outline:none; }
.course-search:focus { border-color:var(--blue); }
.training-grid { display:grid; grid-template-columns:repeat(3,1fr); border-left:1px solid var(--line); border-top:1px solid var(--line); }
.training-card { padding:26px; min-height:265px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); display:flex; flex-direction:column; transition:background .2s ease; }
.training-card:hover { background:#f0f5f8; }
.training-card .mini-icon { width:42px; height:42px; border:1px solid var(--line); color:var(--blue); display:grid; place-items:center; margin-bottom:20px; }
.training-card h3 { font-size:1.03rem; line-height:1.35; }
.training-card p { font-size:.9rem; }
.training-card .category { margin-top:auto; border-top:1px solid var(--line); padding-top:14px; color:var(--blue); font-size:.75rem; font-weight:800; }
.training-card[hidden] { display:none !important; }
.catalog-note { color:var(--muted); font-size:.9rem; margin-top:22px; }

/* About */
.about-grid { display:grid; grid-template-columns:.9fr 1.1fr; gap:44px; align-items:start; }
.about-image { position:sticky; top:108px; }
.about-image img { width:100%; min-height:540px; object-fit:cover; }
.about-caption { margin-top:14px; font-size:.7rem; text-transform:uppercase; letter-spacing:.18em; color:#798692; }
.about-copy .feature { padding:28px 0; border-top:1px solid var(--line); }
.mission-box { padding:30px; background:linear-gradient(120deg,var(--navy),var(--blue)); color:#fff; font-size:1.2rem; font-style:italic; font-weight:700; }

/* Contact */
.contact-grid { display:grid; grid-template-columns: 1.15fr .85fr; gap:42px; }
.contact-card { border:1px solid var(--line); padding:36px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.field.full { grid-column:1/-1; }
label { display:block; font-size:.72rem; text-transform:uppercase; letter-spacing:.12em; font-weight:800; color:#6a7884; margin-bottom:7px; }
input, textarea, select { width:100%; border:1px solid var(--line); background:#fff; padding:14px; color:var(--ink); outline:none; border-radius:0; }
input:focus, textarea:focus, select:focus { border-color:var(--blue); box-shadow:0 0 0 2px rgba(13,111,159,.08); }
textarea { min-height:145px; resize:vertical; }
.form-status { margin-top:12px; color:var(--muted); font-size:.86rem; }
.contact-direct { padding:38px; min-height:100%; color:#fff; }
.contact-direct h2 { font-size:2rem; }
.contact-item { padding:22px 0; border-bottom:1px solid rgba(255,255,255,.16); }
.contact-item small { display:block; text-transform:uppercase; letter-spacing:.12em; color:rgba(255,255,255,.68); font-weight:700; }
.contact-item a, .contact-item strong { display:block; margin-top:5px; color:#fff; text-decoration:none; font-size:1.2rem; }
.contact-note { margin-top:24px; color:rgba(255,255,255,.78); font-style:italic; }

/* CTA + Footer */
.cta-wrap { padding:0 0 90px; }
.cta-panel { text-align:center; padding:62px 28px; }
.cta-panel h2 { max-width:720px; margin:0 auto; }
.cta-panel p { max-width:690px; margin:18px auto 28px; color:rgba(255,255,255,.83); }
.site-footer { padding:60px 0 24px; color:#fff; background:linear-gradient(115deg,var(--navy),#0c608e); }
.footer-grid { display:grid; grid-template-columns:1.25fr .65fr .85fr; gap:68px; }
.footer-logo { width:178px; background:#fff; padding:18px; margin-bottom:18px; }
.footer-copy { max-width:410px; color:rgba(255,255,255,.8); }
.footer-title { color:rgba(255,255,255,.62); text-transform:uppercase; letter-spacing:.2em; font-size:.7rem; font-weight:800; margin-bottom:14px; }
.footer-links { display:grid; gap:8px; }
.footer-links a { color:#fff; text-decoration:none; }
.footer-links a:hover { color:var(--green); }
.badges { display:flex; flex-wrap:wrap; gap:8px; margin-top:22px; }
.badge { border:1px solid rgba(255,255,255,.24); color:rgba(255,255,255,.75); padding:6px 9px; font-size:.62rem; text-transform:uppercase; letter-spacing:.1em; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.15); margin-top:42px; padding-top:20px; display:flex; justify-content:space-between; gap:20px; color:rgba(255,255,255,.6); font-size:.77rem; }

/* FAQ */
.faq { max-width:900px; margin:38px auto 0; border-top:1px solid var(--line); }
details { border-bottom:1px solid var(--line); padding:18px 0; }
summary { cursor:pointer; font-weight:800; list-style:none; padding-right:30px; position:relative; }
summary::-webkit-details-marker { display:none; }
summary::after { content:"+"; position:absolute; right:0; top:-2px; font-size:1.4rem; color:var(--blue); }
details[open] summary::after { content:"–"; }
details p { color:var(--muted); margin-top:12px; max-width:800px; }

/* Thanks */
.thanks { min-height:70vh; display:grid; place-items:center; padding:80px 20px; }
.thanks-card { max-width:650px; text-align:center; border:1px solid var(--line); padding:54px; box-shadow:var(--shadow); }
.thanks-card h1 { font-size:2.7rem; }
.thanks-card p { color:var(--muted); margin:16px 0 28px; }

.reveal { opacity:0; transform:translateY(16px); transition:opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .reveal { opacity:1; transform:none; transition:none; }
  .btn:hover, .sector-card:hover { transform:none; }
}

@media (max-width: 980px) {
  .header-phone { display:none; }
  .main-nav { gap:22px; }
  .hero-grid, .split, .about-grid, .contact-grid { grid-template-columns:1fr; }
  .hero-visual { max-width:720px; }
  .stat-strip { grid-template-columns:repeat(2,1fr); }
  .stat:nth-child(2) { border-right:0; }
  .stat:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .grid-3, .sector-grid, .detail-grid, .training-grid { grid-template-columns:repeat(2,1fr); }
  .grid-3 .approach-card:nth-child(2) { border-right:0; }
  .grid-3 .approach-card:last-child { border-top:1px solid var(--line); border-right:1px solid var(--line); }
  .training-intro-grid { grid-template-columns:1fr; }
  .training-intro-grid > div { border-right:0; border-bottom:1px solid var(--line); }
  .training-intro-grid > div:last-child { border-bottom:0; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .footer-grid > :first-child { grid-column:1/-1; }
  .about-image { position:relative; top:0; }
}

@media (max-width: 760px) {
  .container { width:min(100% - 30px, var(--max)); }
  .section { padding:68px 0; }
  .section-tight { padding:52px 0; }
  .header-inner { height:68px; }
  .brand { height:68px; flex-basis:auto; border-right:0; padding-right:0; }
  .brand img { width:104px; }
  .menu-toggle { display:grid; place-items:center; margin-left:auto; }
  .header-actions .btn { display:none; }
  .main-nav {
    display:none;
    position:absolute;
    top:68px;
    left:0;
    right:0;
    background:#fff;
    border-bottom:1px solid var(--line);
    padding:12px 20px 22px;
    flex-direction:column;
    align-items:stretch;
    gap:0;
  }
  .main-nav.open { display:flex; }
  .main-nav a { padding:14px 0; }
  .main-nav a::after { bottom:8px; }
  .hero { min-height:auto; }
  .hero-grid { padding:56px 0; gap:44px; }
  .hero h1 { font-size:clamp(2.8rem,15vw,4.4rem); }
  .hero-actions .btn { width:100%; }
  .hero-visual::before { inset:-10px 10px 10px -10px; }
  .section-head { display:block; }
  .section-head .lead { margin-top:16px; }
  .grid-3, .sector-grid, .service-grid, .detail-grid, .training-grid, .footer-grid { grid-template-columns:1fr; }
  .grid-3 { border-bottom:0; }
  .approach-card { border-right:0; border-bottom:1px solid var(--line); }
  .grid-3 .approach-card:nth-child(2), .grid-3 .approach-card:last-child { border-right:0; }
  .grid-3 .approach-card:last-child { border-top:0; }
  .stat-strip { grid-template-columns:1fr 1fr; }
  .stat { padding:22px 16px; }
  .service-grid { border-left:1px solid var(--line); }
  .training-toolbar { align-items:stretch; }
  .course-search { min-width:100%; }
  .form-grid { grid-template-columns:1fr; }
  .field.full { grid-column:auto; }
  .contact-card, .contact-direct { padding:26px; }
  .footer-grid { gap:34px; }
  .footer-grid > :first-child { grid-column:auto; }
  .footer-bottom { flex-direction:column; }
  .cta-wrap { padding-bottom:64px; }
}


/* Base44-inspired Safe Site Group corporate design */
:root {
  --max: 1170px;
  --green: #00dc2f;
  --green-dark: #00bd28;
  --navy: #0a3a60;
  --navy-2: #0b4d78;
  --blue: #0c76aa;
  --ink: #092a45;
  --muted: #687684;
  --line: #e0e5e8;
  --soft: #f7f9fa;
}
body { font-size: 16px; }
.container { width:min(var(--max), calc(100% - 48px)); }

h1 { font-size:clamp(3.2rem,5.25vw,4.65rem); }
h2 { font-size:clamp(2.15rem,3.25vw,2.85rem); }
h3 { font-size:1.18rem; }
.lead { font-size:1.05rem; line-height:1.7; }
.lead-light { font-size:1.08rem; line-height:1.55; }

.site-header { box-shadow:none; }
.header-inner { height:70px; gap:26px; }
.brand { flex:0 0 122px; height:70px; padding-right:18px; }
.brand img { width:82px; }
.main-nav { gap:34px; }
.main-nav a { font-size:.86rem; padding:25px 0 23px; }
.main-nav a::after { bottom:17px; height:2px; }
.header-phone { font-size:.84rem; }
.btn-small { min-height:40px; padding:0 18px; font-size:.84rem; }

.blue-grid {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(115deg, var(--navy) 0%, var(--navy-2) 56%, var(--blue) 100%);
  background-size: 106px 100%, auto;
}
.hero { min-height:755px; }
.hero-grid { grid-template-columns: 1.06fr .94fr; gap:84px; padding:86px 0; }
.hero h1 { max-width:570px; }
.hero .lead-light { max-width:650px; margin-top:27px; }
.hero-actions { margin-top:34px; }
.hero-contact { margin-top:28px; }
.hero-visual img { aspect-ratio: 1.31/1; object-fit:cover; box-shadow:0 22px 55px rgba(0,0,0,.20); }
.hero-visual::before { inset:-1px; border:1px solid rgba(255,255,255,.16); }

.stat-strip { max-width:none; }
.stat { padding:31px max(24px, calc((100vw - var(--max))/2 + 22px)); }
.stat strong { font-size:1.9rem; }
.stat span { font-size:.80rem; }

.section { padding:88px 0; }
.section-tight { padding:60px 0; }
.eyebrow { font-size:.70rem; margin-bottom:17px; }
.section-head { align-items:center; margin-bottom:42px; }

.grid-3 { border-color:var(--line); }
.approach-card { min-height:248px; padding:30px 28px; }
.approach-card:hover, .training-card:hover { background:#edf2f5; }
.sector-card { min-height:230px; padding:30px 28px; }
.sector-card:hover { transform:none; box-shadow:none; border-color:#8fb4c8; }

.page-hero { padding:83px 0 88px; }
.page-hero h1 { font-size:clamp(3rem,4.7vw,4.05rem); max-width:780px; }
.page-hero .lead-light { max-width:700px; margin-top:22px; }

.service-grid { gap:0; }
.service-card { min-height:338px; padding:29px 28px; }
.check-list { gap:8px; }
.check-list li { font-size:.91rem; }

.training-section-head { display:grid; grid-template-columns:1.6fr .8fr; gap:80px; align-items:end; margin-bottom:34px; }
.training-section-head h2 { max-width:650px; }
.training-toolbar { justify-content:flex-start; margin:0 0 36px; }
.filter-buttons { gap:7px; }
.filter-btn { min-height:37px; padding:0 15px; font-size:.82rem; }
.training-grid { grid-template-columns:repeat(3,1fr); }
.training-card { min-height:245px; padding:26px 24px; }
.training-card .mini-icon { width:42px; height:42px; }
.training-card h3 { font-size:1rem; }
.training-card p { font-size:.88rem; line-height:1.55; }
.training-card .category { font-size:.71rem; }

.about-grid { grid-template-columns:.78fr 1.12fr; gap:44px; }
.about-image { position:sticky; top:98px; }
.about-image img { width:100%; min-height:0; aspect-ratio:.804/1; object-fit:cover; }
.about-copy > p { margin-bottom:18px; }
.about-copy .feature { padding:24px 0; }
.focus-line { border-left:4px solid var(--green); padding-left:18px; color:var(--blue); font-weight:800; margin:22px 0; }
.mission-box { margin-top:20px; padding:30px; }

.contact-grid { grid-template-columns:1.16fr .84fr; gap:42px; }
.contact-card { padding:35px; }
.form-grid { grid-template-columns:1fr; gap:16px; }
.field.full { grid-column:auto; }
.contact-direct { padding:40px 36px; }
.contact-direct h2 { font-size:1.6rem; }

.cta-wrap { padding:0 0 100px; }
.cta-panel { padding:62px 28px; }
.cta-panel h2 { font-size:2.65rem; }
.site-footer { padding:56px 0 22px; }
.footer-grid { grid-template-columns:1.15fr .65fr .85fr; gap:76px; }
.footer-logo { width:178px; padding:18px; }
.footer-copy { font-size:.94rem; line-height:1.6; }

.reveal { opacity:1 !important; transform:none !important; transition:none !important; }

@media (max-width:980px) {
  .training-section-head { grid-template-columns:1fr; gap:18px; }
  .stat { padding:26px 24px; }
}
@media (max-width:760px) {
  .container { width:min(100% - 30px, var(--max)); }
  .brand img { width:92px; }
  .hero { min-height:auto; }
  .hero-grid { padding:58px 0; gap:38px; }
  h1 { font-size:clamp(2.8rem,14vw,4rem); }
  h2 { font-size:clamp(2rem,9vw,2.7rem); }
  .training-grid { grid-template-columns:1fr; }
  .contact-grid { gap:26px; }
}
/* Final page-hero type scale matched to the Base44 reference video */
.page-hero h1 { font-size:clamp(2.85rem,4vw,3.6rem); }
@media (max-width:760px) {
  .footer-grid { grid-template-columns:1fr; gap:34px; }
  .footer-grid > :first-child { grid-column:auto; }
  .footer-bottom { flex-direction:column; }
}

/* ==============================================================
   v4 WIDTH / STAT-STRIP FIX
   Keeps the four Base44-style safety highlights inside the viewport.
   The previous v3 rule applied desktop container padding to every stat,
   which made the grid wider than the browser window.
   ============================================================== */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Prevent grid/flex children from forcing page-wide horizontal overflow. */
main,
section,
header,
footer,
.container,
.hero-grid,
.stat-strip,
.grid-3,
.sector-grid,
.service-grid,
.detail-grid,
.training-grid,
.training-intro-grid,
.about-grid,
.contact-grid,
.footer-grid {
  max-width: 100%;
}

.hero-grid > *,
.stat-strip > *,
.grid-3 > *,
.sector-grid > *,
.service-grid > *,
.detail-grid > *,
.training-grid > *,
.training-intro-grid > *,
.about-grid > *,
.contact-grid > *,
.footer-grid > * {
  min-width: 0;
}

/* Match the original Base44 reference: one centered four-column row,
   with the white strip itself still running full browser width. */
.stat-strip {
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-inline: max(0px, calc((100% - var(--max)) / 2));
}

.stat {
  min-width: 0;
  padding: 31px 22px;
  overflow-wrap: normal;
  word-break: normal;
}

.stat strong,
.stat span {
  max-width: 100%;
}

/* Tablet: two balanced columns, no sideways page movement. */
@media (max-width: 980px) {
  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: 0;
  }
  .stat {
    padding: 26px clamp(18px, 4vw, 30px);
  }
}

/* Phone: retain the compact 2 x 2 treatment seen in the reference flow. */
@media (max-width: 520px) {
  .stat {
    padding: 22px 16px;
  }
  .stat strong {
    font-size: clamp(1.25rem, 6vw, 1.6rem);
  }
  .stat span {
    font-size: .76rem;
    line-height: 1.35;
  }
}
