:root {
  --bg: #eef5ff;
  --bg-soft: #e1eeff;
  --surface: #ffffff;
  --surface-2: #f3f8ff;
  --line: #c9dbf3;
  --text: #10233d;
  --muted: #4b6587;
  --brand: #1767c7;
  --brand-dark: #114f9a;
  --accent: #3aa0ff;
  --success: #1f9c8b;
  --radius: 14px;
  --shadow: 0 14px 35px rgba(17, 79, 154, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 88% 8%, #dff0ff 0%, rgba(223, 240, 255, 0) 33%),
    radial-gradient(circle at 5% 58%, #c9e1ff 0%, rgba(201, 225, 255, 0) 26%),
    var(--bg);
  line-height: 1.7;
  animation: pageFade .45s ease-out;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.site-top {
  background: linear-gradient(120deg, #0d5cb8, #2d82e2, #4fa8ff);
  background-size: 180% 180%;
  animation: gradientFlow 9s ease infinite;
  color: #fff;
  font-size: 0.92rem;
}
.site-top .wrap {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.site-top a { color: #e7f3ff; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(7px);
}
.site-header::after {
  content: "";
  display: block;
  height: 4px;
  background: repeating-linear-gradient(
    45deg,
    #66b6ff 0 12px,
    #2f83e4 12px 24px
  );
}
.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 20px;
}
.brand {
  text-decoration: none;
}
.brand-title {
  display: block;
  color: var(--brand);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.brand-sub {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}
.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  color: #1d3f69;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover,
.nav a.active {
  background: #e8f2ff;
  color: var(--brand-dark);
}

.hero {
  position: relative;
  min-height: 68vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: -14px;
  background: url('../hero.webp') center/cover no-repeat;
  filter: blur(5px);
  transform: scale(1.03);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(8, 34, 67, 0.78), rgba(23, 103, 199, 0.52));
  z-index: 1;
}
.hero-body {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 760px;
  animation: rise .8s ease;
}
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  line-height: 1.12;
  margin: 0 0 16px;
}
.hero p { font-size: 1.08rem; margin: 0 0 26px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 10px;
  padding: 12px 18px;
  border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: #072748; }
.btn-secondary { border-color: #b9dcff; color: #fff; }
.btn-light { background: #fff; color: var(--brand-dark); }

.section { padding: 66px 0; }
.section.alt { background: var(--bg-soft); }
.section h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}
.section-intro {
  margin-top: 0;
  color: var(--muted);
  max-width: 780px;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.card h3 { margin-top: 6px; margin-bottom: 8px; }
.card p { margin: 0; color: #35557b; }
.card-image {
  width: 100%;
  height: 182px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}
.card-link {
  margin-top: 12px;
  display: inline-block;
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}
.card:hover {
  transform: translateY(-4px);
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 16px 34px rgba(23, 103, 199, 0.17);
}

.stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 26px;
}
.stat {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.stat strong {
  display: block;
  color: var(--brand-dark);
  font-size: 1.36rem;
}

.list { padding-left: 18px; margin: 0; }
.list li { margin-bottom: 7px; }

.page-hero {
  background: linear-gradient(120deg, #dcecff, #f0f7ff);
  border-bottom: 1px solid var(--line);
}
.page-hero .wrap { padding: 45px 0; }
.page-hero h1 { margin: 0 0 8px; }
.page-hero p { margin: 0; color: #365779; max-width: 820px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.contact-box iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 10px;
}

.footer {
  background: linear-gradient(160deg, #0e2f56, #103f74);
  color: #eaf3ff;
  margin-top: 50px;
}
.footer-top {
  padding: 42px 0 26px;
  border-bottom: 1px solid rgba(193, 223, 255, 0.25);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}
.footer h3,
.footer h4 { margin-top: 0; margin-bottom: 12px; color: #9fd0ff; }
.footer p,
.footer li,
.footer a { color: #d7e9ff; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #ffffff; }
.footer-bottom {
  padding: 14px 0;
  font-size: 0.87rem;
  color: #b8d6fa;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes pageFade {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header .wrap { align-items: flex-start; flex-direction: column; }
  .nav { gap: 8px; }
  .hero { min-height: 60vh; }
  .section { padding: 54px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
