/* Version 5: desktop layout corrections, preserving the approved colours. */
html, body { width: 100%; max-width: 100%; overflow-x: clip; }
.wrap { width: min(100%, 1320px); margin-inline: auto; padding-inline: clamp(22px, 3vw, 48px); }
.site-header .header-inner { min-height: 104px; gap: clamp(20px, 2.2vw, 38px); }
.site-header .brand { flex: 0 1 auto; min-width: 315px; }
.site-header .brand-name { min-width: 0; }
.site-header .brand-name strong { font-size: clamp(12px, 1.08vw, 15px); }
.site-header .main-nav { margin-left: auto; gap: clamp(12px, 1.5vw, 23px); flex-shrink: 0; }
.site-header .main-nav > a { font-size: 13px; white-space: nowrap; }
.site-header .main-nav .nav-portal { padding: 13px 17px; }
.hero { min-height: 650px; height: auto; isolation: isolate; }
.hero-visual { inset: 0; width: 100%; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-shade { background: linear-gradient(90deg, rgba(10,20,39,.98) 0%, rgba(10,20,39,.94) 33%, rgba(10,20,39,.72) 57%, rgba(10,20,39,.25) 100%); }
.hero-content { min-height: 650px; max-width: 1320px; padding-top: 70px; padding-bottom: 118px; }
.hero-content > * { position: relative; }
.hero h1 { font-size: clamp(39px, 4.2vw, 60px); max-width: 760px; text-wrap: balance; }
.hero-description { max-width: 575px; }
.hero-actions { gap: 25px; }
.hero-bottom { z-index: 2; }
.welcome-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(35px, 6vw, 95px); }
.portal-grid { grid-template-columns: minmax(0, 1fr) minmax(380px, .95fr); gap: clamp(35px, 5vw, 85px); }
.section-heading > div, .section-heading > p { min-width: 0; }
.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1140px) {
  .site-header .brand { min-width: 0; }
  .site-header .header-inner { min-height: 86px; }
  .site-header .brand-logo { width: 54px; height: 54px; }
  .site-header .brand-name strong { font-size: 12px; }
  .site-header .menu-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 42px; background: #fff; border: 1px solid #d4dae4; flex: none; cursor: pointer; }
  .site-header .menu-toggle span { background: #101c32; width: 21px; height: 2px; }
  .site-header .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 10; background: #fff; padding: 18px clamp(22px, 3vw, 48px) 25px; border-top: 1px solid #e8ebf0; box-shadow: 0 14px 25px rgba(10,22,41,.11); flex-direction: column; align-items: stretch; gap: 0; }
  .site-header .main-nav.open { display: flex; }
  .site-header .main-nav > a { padding: 12px 8px; font-size: 15px; }
  .site-header .main-nav > a.nav-portal { margin-top: 6px; text-align: center; }
}
@media (min-width: 1141px) and (max-width: 1280px) {
  .site-header .brand { min-width: 285px; }
  .site-header .brand-logo { width: 60px; height: 60px; }
}
@media (max-width: 900px) {
  .hero { min-height: 610px; }
  .hero-content { min-height: 610px; }
  .hero-shade { background: linear-gradient(90deg,rgba(10,20,39,.96),rgba(10,20,39,.62)); }
  .welcome-grid,.portal-grid { grid-template-columns: 1fr; gap: 32px; }
  .portal-panel { width: min(100%, 590px); }
}
@media (max-width: 760px) {
  .wrap { padding-inline: 19px; }
  .hero, .hero-content { min-height: 650px; }
  .hero-content { padding-top: 70px; padding-bottom: 115px; }
  .hero h1 { font-size: clamp(32px, 8vw, 46px); }
  .hero-shade { background: linear-gradient(90deg,rgba(9,20,38,.96),rgba(9,20,38,.72)),linear-gradient(0deg,rgba(9,20,38,.6),transparent); }
  .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 480px) {
  .site-header .brand { gap: 9px; }
  .site-header .brand-name strong { font-size: 10px; }
  .site-header .brand-name small { font-size: 8px; }
  .site-header .brand-logo { width: 46px; height: 46px; }
  .hero h1 { font-size: clamp(30px,8vw,39px); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .hero .btn { gap: 12px; padding: 13px 17px; max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
