:root {
  --blue-dark: #1f3c88;
  --yellow: #ffd400;
  --green: #1ea33b;
  --text-dark: #1c2f5a;
  --white: #fff;
  --gray-bg: #f3f5f8;
  --nav-dark: #143376;
  --shadow-soft: 0 8px 22px rgba(16, 40, 90, 0.16);
}

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

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans 3", sans-serif;
  color: #1a1a1a;
  background: #ffffff;
}

a {
  text-decoration: none;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(17, 44, 99, 0.2);
}

.top-strip {
  background: var(--blue-dark);
  min-height: 38px;
}

.top-strip-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 38px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-links a {
  color: var(--white);
  display: inline-flex;
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

.social-links svg {
  fill: currentColor;
  width: 100%;
  height: 100%;
}

.header-main {
  background: var(--gray-bg);
  border-bottom: 1px solid rgba(22, 51, 117, 0.08);
}

.header-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
}

.brand-logo-text {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(140deg, #1f3d88cb 0%, #c5a400cb 100%);
  box-shadow: 0 10px 20px rgba(17, 44, 99, 0.22);
}

.brand-icon svg {
  width: 30px;
  height: 30px;
  fill: #ffd400;
}

.brand-copy {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: "Roboto Condensed", sans-serif;
  color: var(--blue-dark);
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  letter-spacing: 0.03em;
}

.brand-copy small {
  color: #2a427a;
  font-weight: 700;
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  margin-top: 4px;
}

.phone-block {
  text-align: center;
}

.tagline {
  margin: 0 0 8px;
  color: #2f4477;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  font-weight: 600;
  line-height: 1.3;
}

.primary-phone {
  font-family: "Roboto Condensed", sans-serif;
  color: var(--blue-dark);
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0.015em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  box-shadow: 0 4px 12px rgba(26, 48, 90, 0.14);
  cursor: pointer;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  filter: brightness(1.02);
}

.cta-blue {
  background: var(--blue-dark);
  color: var(--white);
}

.cta-yellow {
  background: var(--yellow);
  color: #143376;
  text-transform: uppercase;
}

.cta-green {
  width: 105%;
  background: var(--green);
  color: var(--white);
  box-shadow: 0 6px 15px rgba(22, 132, 49, 0.3);
}

.main-nav {
  background: var(--nav-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 20px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  width: 34px;
  height: 28px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--white);
  border-radius: 3px;
  margin: 4px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  color: var(--white);
  font-weight: 700;
  display: block;
  padding: 18px 14px;
  transition: background-color 0.2s ease;
}

.nav-menu > li > a:hover {
  background: rgba(255, 255, 255, 0.09);
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 24px rgba(11, 34, 75, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.dropdown-menu a {
  color: #1c356f;
  display: block;
  padding: 10px 16px;
  font-weight: 600;
}

.dropdown-menu a:hover {
  background: #eef2f9;
}

@media (hover: hover) and (pointer: fine) {
  .has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.has-dropdown.is-open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-phone {
  color: var(--yellow);
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 700;
  white-space: nowrap;
}

.hero-banner {
  background:
    linear-gradient(rgba(31, 61, 136, 0.701), rgba(160, 155, 2, 0.74)),
    url("../img/hero.jpg") center / cover no-repeat;
  color: var(--white);
}

.hero-content {
  text-align: center;
  padding: 120px 0;
}

.hero-content h1 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(2rem, 6vw, 4.4rem);
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}

.hero-content p {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  font-weight: 600;
}

.section-pad {
  padding: 88px 0;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #2e56aa;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.88rem;
}

.section-head h2,
.about-copy h2,
.contact-info h2 {
  margin: 0;
  font-family: "Roboto Condensed", sans-serif;
  color: #122f6c;
  font-size: clamp(1.75rem, 4vw, 2.9rem);
  line-height: 1.1;
}

.home-section {
  position: relative;
  background: #ffffff;
  overflow: hidden;
}

.home-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(31, 60, 136, 0.82), rgba(31, 60, 136, 0.82)),
    url("../img/bg.jpg") center / cover no-repeat;
}

.home-section .container {
  position: relative;
  z-index: 1;
}

.home-section .eyebrow,
.home-section .section-head h2 {
  color: #ffffff;
}

.home-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.home-media-card {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(8, 21, 53, 0.32);
}

.home-media-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(219, 230, 255, 0.9);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 18px rgba(19, 45, 99, 0.2);
}

.feature-card h3,
.mission-card h3,
.service-card h3 {
  margin: 0 0 8px;
  color: #173a81;
  font-size: 1.25rem;
}

.feature-card p,
.mission-card p,
.service-card p,
.about-copy p,
.contact-info p {
  margin: 0;
  line-height: 1.65;
  color: #2c3f6d;
}

.about-section {
  background: #f7f9fd;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: center;
}

.about-media img {
  width: 100%;
  border-radius: 16px;
  display: block;
  box-shadow: 0 14px 28px rgba(20, 46, 98, 0.16);
}

.about-copy > p {
  margin: 0 0 22px;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mission-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  border-left: 4px solid var(--yellow);
  box-shadow: 0 8px 20px rgba(18, 47, 108, 0.1);
}

.services-section {
  background: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  background: #173a81;
  color: #fff;
  border-radius: 12px;
  padding: 22px 20px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.service-card h3,
.service-card p {
  color: #fff;
}

.service-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 212, 0, 0.18);
  margin-bottom: 12px;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  fill: #ffd400;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(13, 35, 82, 0.25);
  background: #1f4ba8;
}

.contact-section {
  background: linear-gradient(170deg, #f2f6ff 0%, #e9f0ff 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
}

.contact-info ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.contact-info li {
  margin-bottom: 10px;
  color: #253e73;
  line-height: 1.5;
}

.contact-info a {
  color: var(--blue-dark);
  font-weight: 700;
}

.contact-form {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 12px 26px rgba(20, 46, 98, 0.14);
  display: grid;
  gap: 9px;
}

.contact-form label {
  color: #16336e;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #bfd0f5;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  color: #16336e;
  background: #fbfdff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #2d59b8;
  outline: 2px solid rgba(45, 89, 184, 0.16);
}

.contact-form button {
  margin-top: 6px;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 8px 20px rgba(30, 163, 59, 0.25);
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 11px 24px rgba(30, 163, 59, 0.34);
  filter: brightness(1.02);
}

@media (max-width: 1024px) {
  .header-main-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: center;
    text-align: center;
  }

  .cta-block {
    width: 100%;
    align-items: center;
  }

  .brand-copy {
    align-items: center;
  }

  .cta-btn,
  .cta-green {
    width: min(460px, 100%);
  }

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

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

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-inner {
    flex-wrap: wrap;
    min-height: 58px;
    padding: 10px 0;
  }

  .menu-toggle {
    display: inline-block;
    order: 1;
  }

  .nav-phone {
    order: 2;
    margin-left: auto;
    font-size: 1.5rem;
  }

  .nav-menu {
    order: 3;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #102d68;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu > li > a {
    padding: 14px 16px;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: #21458e;
    padding: 0;
    min-width: 100%;
  }

  .has-dropdown.is-open > .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    color: #e5ecff;
    padding: 11px 24px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1200px, calc(100% - 20px));
  }

  .phone-block {
    display: none;
  }

  .social-links {
    gap: 12px;
  }

  .top-strip,
  .top-strip-inner {
    min-height: 35px;
  }

  .hero-content {
    padding: 80px 0;
  }

  .primary-phone {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .section-pad {
    padding: 64px 0;
  }

  .feature-grid,
  .mission-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .home-media-grid {
    grid-template-columns: 1fr;
  }
}

.form-message {
  margin: 8px 0 0;
  color: #0f2f6e;
  font-weight: 700;
  line-height: 1.5;
}

.site-footer {
  background: #102b63;
  border-top: 3px solid #ffd400;
}

.site-footer p {
  margin: 0;
  padding: 18px 0;
  text-align: center;
  color: #dbe7ff;
  font-weight: 600;
}
