:root {
  --blue-deep: #00435c;
  --blue: #00729c;
  --blue-soft: #e9f5f8;
  --coral: #f47c51;
  --ink: #173541;
  --muted: #607984;
  --line: #d7e5ea;
  --white: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f3f8fa;
}

* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; background: radial-gradient(circle at top right, #dff2f7, transparent 36%), #f3f8fa; }
a { color: inherit; }

.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 64px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 54px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { width: 62px; height: auto; }
.brand span { display: grid; gap: 2px; }
.brand strong { color: var(--blue-deep); font-size: 17px; }
.brand small { color: var(--muted); font-size: 12px; }
.logout { border: 1px solid #bfd2da; border-radius: 999px; padding: 10px 16px; background: rgba(255,255,255,.8); color: var(--blue-deep); cursor: pointer; font-weight: 700; }
.logout:hover { border-color: var(--blue); background: var(--white); }

.loading, .error { max-width: 620px; margin: 14vh auto 0; padding: 48px; text-align: center; border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.92); box-shadow: 0 24px 70px rgba(0,67,92,.1); }
.loading h1, .error h1 { margin: 18px 0 8px; color: var(--blue-deep); font-size: clamp(26px, 4vw, 38px); }
.loading p, .error p { margin: 0; color: var(--muted); line-height: 1.65; }
.spinner { display: inline-block; width: 34px; height: 34px; border: 3px solid #dcebf0; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.error a { display: inline-flex; margin-top: 24px; border-radius: 12px; padding: 12px 18px; background: var(--blue); color: white; text-decoration: none; font-weight: 700; }

.content { animation: reveal .35s ease-out both; }
.intro { max-width: 760px; }
.eyebrow { display: inline-flex; margin-bottom: 12px; color: var(--coral); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.intro h1 { max-width: 700px; margin: 0; color: var(--blue-deep); font-size: clamp(34px, 6vw, 62px); line-height: 1.04; letter-spacing: -.04em; }
.intro p { max-width: 690px; margin: 20px 0 16px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.identity { display: inline-flex; align-items: center; min-height: 30px; border-radius: 999px; padding: 6px 11px; background: var(--blue-soft); color: var(--blue-deep); font-size: 12px; font-weight: 700; }

.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 42px; }
.service-card { position: relative; display: grid; min-height: 250px; grid-template-columns: 48px minmax(0, 1fr) 28px; gap: 20px; align-items: start; overflow: hidden; border: 1px solid var(--line); border-radius: 25px; padding: 32px; background: var(--white); text-decoration: none; box-shadow: 0 18px 48px rgba(0,67,92,.08); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.service-card::after { content: ""; position: absolute; right: -70px; bottom: -90px; width: 230px; height: 230px; border-radius: 50%; background: var(--blue-soft); opacity: .72; }
.service-card:hover { transform: translateY(-5px); border-color: #9fc3d0; box-shadow: 0 26px 60px rgba(0,67,92,.14); }
.service-card--network::after { background: #fff0e9; }
.service-card--helpdesk::after { background: #eef1ff; }
.service-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; background: var(--blue-deep); color: white; font-size: 20px; font-weight: 900; }
.service-card--network .service-icon { background: var(--coral); }
.service-card--helpdesk .service-icon { background: #5868b8; }
.service-copy { position: relative; z-index: 1; display: grid; gap: 10px; }
.service-copy small { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.service-copy strong { color: var(--blue-deep); font-size: 30px; line-height: 1.1; }
.service-copy span { max-width: 350px; color: var(--muted); line-height: 1.55; }
.arrow { position: relative; z-index: 1; color: var(--blue); font-size: 27px; font-weight: 700; }
.security-note { margin: 25px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

[hidden] { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 680px); padding-top: 18px; }
  .topbar { margin-bottom: 38px; }
  .brand small { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 210px; padding: 25px; }
  .loading, .error { padding: 34px 22px; }
}

@media (min-width: 761px) and (max-width: 1040px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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