:root {
  --navy: #0a2540;
  --ink: #12263a;
  --blue: #1d4f7a;
  --sky: #6fa8c9;
  --paper: #f4f8fb;
  --white: #ffffff;
  --shell: min(1480px, calc(100% - 48px));
  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1400px 560px at 8% -12%, #d9ebf5 0%, transparent 55%),
    radial-gradient(1000px 480px at 100% 0%, #e8f1f7 0%, transparent 52%),
    linear-gradient(180deg, #eef4f8 0%, var(--paper) 42%, #e8eef3 100%);
  font-family: var(--font-body);
  line-height: 1.5;
}

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

a {
  color: var(--blue);
}

.shell {
  width: var(--shell);
  max-width: 1480px;
  margin-inline: auto;
}

.shell--header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 18px 12px;
}

.site-header {
  position: relative;
  z-index: 40;
  width: 100%;
  background: rgba(244, 248, 251, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(18, 38, 58, 0.08);
  animation: rise 700ms ease both;
}

.brand img {
  width: 88px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px 28px;
}

.nav-link,
.nav-trigger {
  color: var(--navy);
  font: inherit;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 10px 4px;
  cursor: pointer;
}

.nav-link:hover,
.nav-trigger:hover,
.has-dropdown.is-open .nav-trigger {
  color: var(--blue);
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  opacity: 0.75;
  transition: transform 160ms ease;
}

.has-dropdown.is-open .nav-caret {
  transform: rotate(180deg);
}

.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 320px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--white);
  border: 1px solid rgba(18, 38, 58, 0.12);
  box-shadow: 0 14px 36px rgba(10, 37, 64, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  z-index: 50;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.35;
}

.dropdown a:hover {
  background: #eef5fa;
  color: var(--blue);
}

.dropdown__title {
  font-size: 0.98rem;
}

.dropdown__meta {
  font-size: 0.82rem;
  font-weight: 500;
  color: #5b7388;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(74vh, 720px);
  overflow: hidden;
  display: grid;
  align-items: center;
  animation: fade 900ms ease both;
}

.hero__media,
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  transform: scale(1.02);
  animation: ken 18s ease-in-out infinite alternate;
}

.hero__veil {
  background:
    linear-gradient(90deg, rgba(244, 248, 251, 0.92) 0%, rgba(244, 248, 251, 0.72) 42%, rgba(244, 248, 251, 0.16) 70%, rgba(10, 37, 64, 0.1) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(10, 37, 64, 0.06));
}

.hero__content {
  padding: 56px 0 64px;
}

.hero__title {
  max-width: min(52rem, 92%);
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
  animation: rise 800ms 120ms ease both;
}

.hero__icons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  animation: rise 800ms 220ms ease both;
}

.hex {
  display: grid;
  place-items: center;
  width: 52px;
  height: 58px;
  color: #5b9bc0;
  background: rgba(255, 255, 255, 0.58);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hex svg {
  width: 24px;
  height: 24px;
}

.site-footer {
  padding: 36px 0 56px;
  animation: rise 700ms 180ms ease both;
}

.contact-block {
  max-width: 460px;
  padding: 20px 22px;
  border: 1px solid #1a1a1a;
  background: var(--white);
  color: #1a1a1a;
  font-size: 1rem;
  line-height: 1.55;
}

.contact-block p {
  margin: 0 0 0.35rem;
}

.contact-block__name {
  font-weight: 700;
  margin-bottom: 0.55rem !important;
}

.contact-block a {
  color: #1d4f7a;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ken {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.2%, 0, 0); }
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 32px, 1480px);
  }

  .brand img {
    width: 72px;
  }

  .hero {
    min-height: 68vh;
  }

  .hero__veil {
    background:
      linear-gradient(180deg, rgba(244, 248, 251, 0.9) 0%, rgba(244, 248, 251, 0.78) 45%, rgba(244, 248, 251, 0.4) 100%);
  }

  .hero__title {
    max-width: 100%;
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .dropdown {
    right: auto;
    left: 0;
    min-width: min(320px, 86vw);
  }
}

@media (max-width: 560px) {
  .shell--header {
    flex-wrap: wrap;
    gap: 10px 18px;
    padding-block: 14px 10px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero__content {
    padding: 36px 0 44px;
  }
}

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