:root {
  --brand-blue: #004ea8;
  --brand-red: #e4002b;
  --brand-ink: #172033;
  --brand-muted: #5d6b82;
  --brand-surface: #f6f9fd;
  --brand-line: #dde7f2;
  --shadow-soft: 0 22px 55px rgba(0, 78, 168, 0.12);
  --shadow-card: 0 14px 36px rgba(0, 78, 168, 0.09);
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
}

body::selection {
  background: rgba(0, 78, 168, 0.18);
}

.site-shell {
  background:
    radial-gradient(circle at 80% 10%, rgba(0, 78, 168, 0.12), transparent 28rem),
    radial-gradient(circle at 8% 40%, rgba(228, 0, 43, 0.055), transparent 22rem),
    linear-gradient(180deg, #ffffff 0%, var(--brand-surface) 58%, #ffffff 100%);
}

.background-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 78, 168, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 78, 168, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, transparent 92%);
}

.brand-logo {
  display: block;
  width: clamp(9.5rem, 20vw, 13.5rem);
  height: auto;
  border-radius: 0.6rem;
}

.footer-brand-logo {
  width: clamp(8rem, 16vw, 10.5rem);
}

.nav-social svg,
.primary-button svg,
.feature-icon svg,
.contact-item svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.nav-social {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--brand-blue);
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nav-social:hover,
.nav-social:focus-visible {
  border-color: rgba(228, 0, 43, 0.3);
  color: var(--brand-red);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
  outline: none;
}

.primary-button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 1rem;
  background: var(--brand-red);
  padding: 0.9rem 1.45rem;
  color: white;
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(228, 0, 43, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: #c90026;
  box-shadow: 0 20px 38px rgba(228, 0, 43, 0.28);
  transform: translateY(-2px);
  outline: none;
}

.secondary-link {
  color: var(--brand-blue);
  font-weight: 700;
  text-decoration-color: rgba(0, 78, 168, 0.25);
  text-decoration-line: underline;
  text-underline-offset: 0.35rem;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.secondary-link:hover,
.secondary-link:focus-visible {
  color: var(--brand-red);
  text-decoration-color: rgba(228, 0, 43, 0.4);
  outline: none;
}

.hero-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 2rem;
  background: white;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
}

.hero-banner::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(0, 78, 168, 0.2), rgba(0, 78, 168, 0.04) 46%, rgba(228, 0, 43, 0.1)),
    linear-gradient(180deg, transparent 62%, rgba(0, 78, 168, 0.16));
  content: "";
  pointer-events: none;
  display: none;
}

.hero-banner::after {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  width: min(42%, 13rem);
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-red) 0 80%, rgba(255, 255, 255, 0.64) 80%);
  box-shadow: 0 10px 26px rgba(228, 0, 43, 0.18);
  content: "";
  display: none;
}

.hero-banner iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-link {
  position: absolute;
  left: 1.25rem;
  bottom: 1.05rem;
  z-index: 3;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  color: var(--brand-blue);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.58rem 0.85rem;
  text-decoration: none;
  transition:
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.map-link:hover,
.map-link:focus-visible {
  color: var(--brand-red);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  outline: none;
  transform: translateY(-1px);
}

.progress-card,
.feature-card,
.contact-card {
  border: 1px solid var(--brand-line);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.progress-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 253, 0.9)),
    radial-gradient(circle at 92% 20%, rgba(0, 78, 168, 0.09), transparent 12rem);
}

.progress-meter {
  min-width: 0;
}

.progress-meter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: var(--brand-muted);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.progress-meter-header span {
  color: var(--brand-ink);
  font-weight: 800;
}

.progress-meter-header strong {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(228, 0, 43, 0.08);
  padding: 0.25rem 0.65rem;
  color: var(--brand-red);
  font-size: 0.75rem;
}

.progress-track {
  height: 0.62rem;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(180deg, #dbe5f1, #edf3fa);
  box-shadow: inset 0 1px 2px rgba(23, 32, 51, 0.08);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 45%),
    linear-gradient(90deg, var(--brand-red), #ff4966);
  box-shadow: 0 7px 18px rgba(228, 0, 43, 0.18);
  transition: width 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-ring {
  position: relative;
  width: clamp(4.25rem, 11vw, 5.25rem);
  height: clamp(4.25rem, 11vw, 5.25rem);
  justify-self: center;
  border-radius: 999px;
  background: white;
  box-shadow: 0 12px 30px rgba(0, 78, 168, 0.12);
}

.progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring circle {
  fill: none;
  stroke-width: 9;
}

.ring-bg {
  stroke: #e3ebf6;
}

.ring-value {
  stroke: var(--brand-red);
  stroke-linecap: round;
  stroke-dasharray: 301.59;
  stroke-dashoffset: 301.59;
  transition: stroke-dashoffset 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-ring strong {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  color: var(--brand-blue);
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.feature-card {
  padding: 1.4rem;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
  border-color: rgba(0, 78, 168, 0.22);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.feature-icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.15rem;
  place-items: center;
  border-radius: 1.25rem;
  background: #eaf2fb;
  color: var(--brand-blue);
}

.feature-icon.red-accent {
  background: rgba(228, 0, 43, 0.08);
  color: var(--brand-red);
}

.feature-icon svg {
  width: 2rem;
  height: 2rem;
}

.feature-icon img {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.feature-card h3 {
  color: var(--brand-ink);
  font-size: 1rem;
  font-weight: 800;
}

.feature-card p {
  margin-top: 0.65rem;
  color: var(--brand-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.contact-card {
  padding: 0.65rem;
}

.contact-grid {
  display: grid;
  gap: 0.8rem;
}

.contact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 4.75rem;
  gap: 0.08rem 0.75rem;
  align-items: center;
  border-radius: 1rem;
  border: 1px solid rgba(221, 231, 242, 0.78);
  background: rgba(246, 249, 253, 0.72);
  padding: 0.8rem 0.9rem;
  color: var(--brand-ink);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

a.contact-item:hover,
a.contact-item:focus-visible {
  border-color: rgba(0, 78, 168, 0.18);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 78, 168, 0.08);
  transform: translateY(-2px);
  outline: none;
}

.contact-item span {
  display: grid;
  grid-row: span 2;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border-radius: 999px;
  background: #eaf2fb;
  color: var(--brand-blue);
}

.contact-item small {
  color: var(--brand-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.contact-item strong {
  overflow-wrap: break-word;
  color: var(--brand-ink);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
}

.social-block {
  align-content: center;
  justify-items: start;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.social-links a {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  color: var(--brand-blue);
  font-weight: 800;
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: transparent;
  background: var(--brand-blue);
  color: white;
  transform: translateY(-2px);
  outline: none;
}

.footer-link {
  color: var(--brand-muted);
  transition: color 180ms ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--brand-red);
  outline: none;
}

.fade-in {
  animation: fade-in 700ms ease both;
}

.fade-in-up {
  animation: fade-in-up 750ms ease both;
}

.floating-illustration {
  animation: float 5s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (min-width: 768px) {
  .progress-card {
    grid-template-columns: minmax(18rem, 1fr) auto;
    gap: 2rem;
    padding: 1.4rem 1.75rem;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-item:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  header nav,
  main section > .mx-auto.max-w-7xl,
  footer > .mx-auto.max-w-7xl {
    max-width: min(56rem, calc(100vw - 4rem));
  }

  .hero-banner {
    min-height: 18rem;
    max-width: 100%;
    margin-inline: auto;
  }

  .progress-card,
  .contact-card {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  header nav,
  main section > .mx-auto.max-w-7xl,
  footer > .mx-auto.max-w-7xl {
    max-width: 42rem;
  }

  .hero-banner {
    max-width: 34rem;
  }
}

@media (min-width: 1200px) {
  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .contact-item:last-child {
    grid-column: auto;
  }

  .contact-item {
    min-height: 4.9rem;
    padding: 0.85rem 0.95rem;
  }
}

@media (max-width: 767px) {
  .hero-banner {
    aspect-ratio: 1 / 1;
    border-radius: 1.45rem;
  }

  .hero-banner::after {
    right: 1rem;
    bottom: 1rem;
    width: 9rem;
  }

  .progress-card {
    gap: 0.8rem;
    padding: 1rem;
  }

  .progress-meter-header {
    gap: 0.55rem;
    font-size: 0.78rem;
  }

  .progress-meter-header strong {
    padding: 0.22rem 0.48rem;
    font-size: 0.68rem;
  }

  .progress-track {
    height: 0.55rem;
  }

  .progress-ring {
    width: 4rem;
    height: 4rem;
  }

  .progress-ring strong {
    font-size: 1rem;
  }

  .contact-card {
    padding: 0.5rem;
  }

  .contact-item {
    min-height: auto;
    padding: 1rem;
  }

  .social-block {
    justify-items: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
