*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #e63946;
  --red-dark: #c1121f;
  --navy: #1d3557;
  --navy-light: #457b9d;
  --yellow: #ffb703;
  --yellow-light: #fff3cd;
  --green: #2a9d8f;
  --green-light: #e8f6f4;
  --bg: #f8f9fb;
  --white: #ffffff;
  --text: #1a1a2e;
  --muted: #5c6370;
  --border: #e2e8f0;
  --shadow: 0 8px 30px rgba(29, 53, 87, 0.1);
  --shadow-lg: 0 20px 50px rgba(29, 53, 87, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Top bar */
.topbar {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 0.8rem;
  padding: 0.55rem 0;
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
}

.topbar-legal {
  opacity: 0.85;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-contact a {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 600;
}

.topbar-contact a:hover {
  color: #fff;
}

/* Navbar */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--red);
  background: #fef2f2;
}

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 0.6rem 1.25rem !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--red-dark) !important;
  color: var(--white) !important;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #264653 50%, var(--green) 100%);
  color: var(--white);
  padding: 4rem 0 5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 183, 3, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(230, 57, 70, 0.12) 0%, transparent 40%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
}

.hero-label-dot {
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero h1 span {
  color: var(--yellow);
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--yellow);
  color: var(--navy);
}

.btn-primary:hover {
  background: #ffc933;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 183, 3, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s;
}

.hero-card:hover {
  transform: translateY(-4px);
}

.hero-card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.hero-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.hero-card p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-card-wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-align: left;
  background: rgba(255, 183, 3, 0.15);
  border-color: rgba(255, 183, 3, 0.3);
}

.hero-card-wide .hero-card-icon {
  font-size: 2rem;
  margin: 0;
}

/* Promo strip */
.promo-strip {
  background: var(--yellow);
  padding: 1rem 0;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.promo-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.promo-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Departments */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.dept-card {
  background: var(--white);
  border-radius: 20px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.dept-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, var(--red));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.dept-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.dept-card:hover::before {
  transform: scaleX(1);
}

.dept-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  background: var(--icon-bg, #fef2f2);
}

.dept-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.dept-card p {
  font-size: 0.82rem;
  color: var(--muted);
}

.dept-card:nth-child(1) { --card-accent: #e63946; --icon-bg: #fef2f2; }
.dept-card:nth-child(2) { --card-accent: #2a9d8f; --icon-bg: #e8f6f4; }
.dept-card:nth-child(3) { --card-accent: #ffb703; --icon-bg: #fff8e6; }
.dept-card:nth-child(4) { --card-accent: #457b9d; --icon-bg: #eef4f8; }
.dept-card:nth-child(5) { --card-accent: #9b5de5; --icon-bg: #f5efff; }
.dept-card:nth-child(6) { --card-accent: #f15bb5; --icon-bg: #fef0f8; }
.dept-card:nth-child(7) { --card-accent: #00bbf9; --icon-bg: #e6f9ff; }
.dept-card:nth-child(8) { --card-accent: #06d6a0; --icon-bg: #e6fff8; }

/* Features */
.features {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature {
  text-align: center;
  padding: 2rem 1.5rem;
}

.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  color: var(--white);
}

.feature h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.about-card {
  background: var(--white);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.about-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 1.25rem;
}

.about-card dl {
  display: grid;
  gap: 1rem;
}

.about-card dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.about-card dd {
  font-size: 0.95rem;
  color: var(--text);
}

/* Contact */
.contact-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--green-light) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-card {
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 1.25rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-light);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-list span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.contact-list strong,
.contact-list a {
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--red);
}

.contact-phone-big {
  font-size: 1.5rem !important;
  font-weight: 700;
  color: var(--red) !important;
}

.map-placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 24px;
  padding: 2.5rem;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
}

.map-placeholder h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.map-placeholder p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.map-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-top: 1.25rem;
  width: fit-content;
}

/* Footer */
.footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .brand-name {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer dl {
  display: grid;
  gap: 0.65rem;
}

.footer dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.footer dd {
  font-size: 0.88rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.footer-legal {
  opacity: 0.7;
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .dept-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .dept-grid {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    flex-direction: column;
    text-align: center;
  }
}
