:root {
  --blue: #0a4f9d;
  --blue-dark: #073d7b;
  --orange: #ff8d1f;
  --ink: #0a2c58;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: "Trebuchet MS", Arial, sans-serif; background: #0a4f9d; color: #fff; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  min-height: 184px;
  display: grid;
  grid-template-columns: minmax(560px, 43%) 1fr;
  background: linear-gradient(110deg, #2f78bd 0%, #0b57a3 62%, #0a4a91 100%);
  position: relative;
  z-index: 10;
}
.brand-panel {
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 83% 100%, 0 100%);
  display: flex;
  align-items: center;
  padding: 0 62px;
  overflow: hidden;
}
.brand-panel img { width: min(90%, 610px); height: auto; display: block; }
.header-right { padding: 20px 38px 18px 54px; display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.main-nav { display: flex; justify-content: flex-end; align-items: center; gap: 42px; font-size: 19px; }
.main-nav a { white-space: nowrap; }
.main-nav a:hover { opacity: .8; }
.lang { border: 0; background: transparent; color: white; cursor: pointer; font-size: 18px; padding: 0; }
.tools-row { display: flex; align-items: center; justify-content: flex-end; gap: 34px; }
.search-box { width: min(430px, 52vw); height: 45px; display: flex; border: 1px solid rgba(255,255,255,.8); background: rgba(0,42,94,.18); }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; color: #fff; padding: 0 14px; font-size: 16px; }
.search-box input::placeholder { color: #e9a152; }
.search-box button { width: 48px; border: 0; background: transparent; color: #fff; font-size: 28px; cursor: pointer; }
.socials { display: flex; gap: 12px; }
.socials a { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #4b91d2; display: grid; place-items: center; font-weight: 700; }

.hero {
  position: relative;
  min-height: calc(100vh - 184px);
  background: url("images/hero.png") center center / cover no-repeat;
  overflow: hidden;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(25,110,189,.23) 0%, rgba(17,86,158,.14) 36%, rgba(0,21,57,.06) 100%); }
.hero-content { position: relative; z-index: 2; min-height: calc(100vh - 184px); display: flex; flex-direction: column; align-items: center; padding: 118px 24px 74px; }
h1 { margin: 0; font-size: clamp(46px, 5vw, 78px); font-weight: 500; letter-spacing: .3px; text-shadow: 0 2px 12px rgba(0,0,0,.12); }
.service-grid { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(250px, 280px)); gap: 16px; align-items: stretch; }
.service-card { min-height: 265px; padding: 23px 22px 14px; border-radius: 18px; background: rgba(255,255,255,.98); color: var(--ink); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(0,0,0,.22); transition: transform .18s ease, box-shadow .18s ease; }
.service-card:hover { transform: translateY(-7px); box-shadow: 0 18px 36px rgba(0,0,0,.28); }
.service-icon { width: 136px; height: 136px; margin-bottom: 11px; }
.service-icon svg { width: 100%; height: 100%; display: block; }
.service-card h2 { margin: 0; font-size: 24px; line-height: 1.1; font-weight: 500; }
.service-card p { margin: 8px 0 0; font-size: 19px; }
.bottom-ribbon { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: linear-gradient(120deg,#ff891f,#f7a029 55%,#ff8c1b); z-index: 3; }
.help-bubble { position: absolute; right: 22px; bottom: 19px; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.help-bubble span { background: white; color: #555; padding: 7px 10px; border-radius: 4px; font-size: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.mini-seal { width: 66px; height: 66px; border-radius: 50%; background: white; border: 5px solid white; box-shadow: 0 3px 10px rgba(0,0,0,.22); display: grid; place-items: center; color: #1b74b6; font-weight: 800; font-size: 28px; }

@media (max-width: 1150px) {
  .site-header { grid-template-columns: 42% 58%; min-height: 154px; }
  .brand-panel { padding: 0 34px; }
  .header-right { padding: 16px 24px; gap: 18px; }
  .main-nav { gap: 22px; font-size: 16px; }
  .hero { min-height: calc(100vh - 154px); }
  .hero-content { min-height: calc(100vh - 154px); padding-top: 82px; }
}
@media (max-width: 900px) {
  .site-header { display: block; min-height: auto; }
  .brand-panel { clip-path: none; padding: 16px 24px; justify-content: center; }
  .brand-panel img { max-width: 620px; }
  .header-right { padding: 14px 18px 18px; }
  .main-nav { justify-content: center; flex-wrap: wrap; gap: 16px 24px; }
  .tools-row { justify-content: center; flex-wrap: wrap; }
  .search-box { width: min(600px, 90vw); }
  .hero { min-height: auto; }
  .hero-content { min-height: auto; padding: 72px 18px 80px; }
  .service-grid { margin-top: 70px; grid-template-columns: 1fr; width: min(410px, 92vw); }
  .service-card { min-height: 235px; }
  h1 { text-align: center; }
}
@media (max-width: 560px) {
  .main-nav a:nth-child(1), .main-nav a:nth-child(2), .main-nav a:nth-child(4) { display: none; }
  .socials { display: none; }
  .brand-panel img { width: 100%; }
  h1 { font-size: 42px; }
  .service-card h2 { font-size: 22px; }
  .help-bubble { display: none; }
}
