:root {
  --primary: #00008e;
  --secondary: #017280;
  --text: #382933;
  --accent: #19456b;
  --light: #f6f7fb;
  --muted: #6d6d6d;
  --line: #e1e1e1;
  --yellow: #ffcc29;
  --teal: #2e8995;
  --shadow: 0 2px 25px rgba(0, 0, 142, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Rubik, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.topbar {
  background: var(--primary);
  color: #fff;
  font-size: 14px;
}

.topbar .wrap,
.nav .wrap,
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar .wrap {
  min-height: 40px;
}

.toplinks {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 142, 0.08);
}

.nav .wrap {
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.header-logo {
  width: 170px;
  height: auto;
}

.menu,
.lang {
  display: flex;
  align-items: center;
  gap: 22px;
}

.menu {
  flex: 1 1 auto;
  justify-content: center;
}

.menu a,
.lang a {
  font-family: Poppins, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
}

.menu a.active,
.menu a:hover,
.lang .active {
  color: var(--secondary);
}

.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  min-width: 300px;
  padding: 10px 0;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 35px rgba(0, 0, 142, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 30;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown-menu a {
  display: block;
  padding: 11px 18px;
  color: var(--accent);
  white-space: normal;
}

.dropdown-menu a:hover {
  background: var(--light);
  color: var(--secondary);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: #fff;
  border: 1px solid var(--line);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--primary);
}

.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--primary);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, var(--primary) 58%, var(--secondary) 75%);
  opacity: 0.68;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 760px;
  padding: 110px 0;
}

.eyebrow {
  font-family: Poppins, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: Poppins, Arial, sans-serif;
  line-height: 1.1;
}

h1 {
  color: #fff;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
}

h2 {
  font-size: clamp(32px, 4vw, 45px);
  font-weight: 800;
}

h3 {
  font-size: 28px;
  font-weight: 800;
}

p {
  margin: 0 0 16px;
}

.lead {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
}

.hero .lead {
  color: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 34px;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 0;
  font-family: Poppins, Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
}

.button:hover {
  background: var(--secondary);
}

.hero .button {
  background: #fff;
  color: #000;
}

.button.secondary {
  background: var(--secondary);
  color: #fff;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

section {
  padding: 90px 0;
}

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

.section-head p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 26px;
}

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

.service,
.feature,
.contact-card,
.content-card {
  padding: 34px;
  background: #fff;
  border: 1px solid #f0f0f5;
  box-shadow: var(--shadow);
}

.service {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service h3 {
  font-size: 24px;
}

.service p,
.feature p,
.contact-card p {
  color: var(--muted);
}

.service a {
  color: var(--secondary);
  font-family: Poppins, Arial, sans-serif;
  font-weight: 700;
}

.band {
  background: var(--light);
}

.partners-band {
  padding: 64px 0;
  background: var(--light);
}

.partners-head {
  margin-bottom: 24px;
  text-align: center;
}

.partners-head h2 {
  margin-top: 8px;
  margin-bottom: 0;
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.partner-logo {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid #f0f0f5;
  box-shadow: var(--shadow);
}

.partner-logo img {
  width: 100%;
  max-width: 155px;
  max-height: 46px;
  object-fit: contain;
}

.partner-logo.square-logo img {
  max-width: 118px;
  max-height: 58px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 52px;
  align-items: center;
}

.photo {
  box-shadow: var(--shadow);
}

.photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: -70px;
}

.stat {
  padding: 32px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--primary);
  font-family: Poppins, Arial, sans-serif;
  font-size: 42px;
}

.stat span {
  color: var(--muted);
}

.features {
  grid-template-columns: repeat(3, 1fr);
}

.feature-number {
  margin-bottom: 10px;
  color: #c0c0c042;
  font-family: Poppins, Arial, sans-serif;
  font-size: 70px;
  font-weight: 800;
  line-height: 1;
}

.subpage-hero {
  padding: 95px 0;
  color: #fff;
  background: linear-gradient(140deg, var(--primary) 58%, var(--secondary) 75%);
}

.subpage-hero h1 {
  font-size: clamp(36px, 4.5vw, 58px);
}

.subpage-hero p {
  max-width: 820px;
  color: #fff;
  font-size: 20px;
}

.content {
  max-width: none;
  display: grid;
  gap: 12px;
}

.content-card {
  display: grid;
  gap: 12px;
}

.content h2 {
  position: relative;
  padding-left: 18px;
  margin: 28px 0 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16em;
  width: 5px;
  height: 0.95em;
  background: linear-gradient(180deg, var(--yellow), var(--secondary));
}

.content h3 {
  margin: 22px 0 6px;
  color: var(--primary);
  font-size: 20px;
}

.content p {
  font-size: 18px;
  line-height: 1.7;
}

.content > p:first-of-type,
.content-card > p:first-of-type {
  color: var(--accent);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.65;
}

.list {
  margin: 18px 0 0;
  padding-left: 22px;
}

.form-shell {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 34px;
  align-items: start;
}

.contact-shell {
  display: block;
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 34px;
}

.contact-shell form {
  width: 100%;
}

form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 34px;
  background: #fff;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: #6d6d6d;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.form-status {
  display: none;
  padding: 14px 16px;
  font-weight: 700;
  line-height: 1.35;
  border: 1px solid transparent;
}

.form-status:not(:empty) {
  display: block;
}

.form-status--pending {
  color: var(--accent);
  background: #f6f7fb;
  border-color: var(--line);
}

.form-status--success {
  color: #155724;
  background: #d4edda;
  border-color: #c3e6cb;
}

.form-status--error {
  color: #721c24;
  background: #f8d7da;
  border-color: #f5c6cb;
}

button:disabled,
.button:disabled {
  cursor: wait;
  opacity: 0.72;
}

footer {
  padding: 58px 0 28px;
  color: #fff;
  background: linear-gradient(140deg, var(--primary) 58%, var(--secondary) 75%);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(160px, 1fr));
  align-items: flex-start;
}

.footer-logo {
  width: 190px;
  margin-bottom: 16px;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

footer p,
footer li {
  color: #eef;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.socials a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.socials a:hover {
  background: #fff;
  color: var(--primary);
}

.socials svg {
  display: block;
  width: 20px !important;
  height: 20px !important;
  max-width: 20px;
  max-height: 20px;
  fill: currentColor;
}

.copyright {
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 20px;
  color: #eef;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.copyright a {
  color: #fff;
  font-weight: 700;
}

.copyright a:hover {
  color: var(--yellow);
}

@media (max-width: 1100px) {
  .nav .wrap {
    flex-wrap: wrap;
  }

  .menu {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .form-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .topbar .wrap,
  .nav .wrap,
  .section-head,
  .split,
  .form-shell {
    display: grid;
  }

  .topbar .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 56px;
    padding: 8px 0;
    text-align: center;
    width: min(1140px, calc(100% - 40px));
  }

  .toplinks {
    justify-content: center;
    gap: 12px;
  }

  .nav .wrap {
    grid-template-columns: 1fr auto;
  }

  .header-logo {
    width: 145px;
  }

  .nav-toggle {
    display: block;
  }

  .menu,
  .lang {
    display: none;
  }

  .nav.open .menu,
  .nav.open .lang {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 18px;
  }

  .nav.open .menu {
    order: 3;
  }

  .nav.open .lang {
    order: 4;
    flex-direction: row;
    gap: 18px;
    padding-bottom: 18px;
  }

  .nav.open .dropdown {
    width: 100%;
    display: block;
  }

  .nav.open .dropdown-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 8px;
    padding: 6px 0;
    background: transparent;
    border: 0;
    border-left: 3px solid var(--secondary);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .form-shell {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .split .photo {
    order: 2;
  }

  .contact-grid,
  .services,
  .features,
  .stats,
  .partner-logos {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    justify-items: start;
  }

  .hero {
    min-height: auto;
  }

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

  form {
    grid-template-columns: 1fr;
  }
}
