/* ===== Palette & tokens ===== */
:root {
  --bg: #0b1f35;
  --brand: #1f5fbf;
  --brand-600: #1a56ad;
  --ink: #002245;
  --text: #233044;
  --muted: #6b7790;
  --card: #ffffff;
  --card-tint: #f8f9fb;
  --border: #e6ecf5;
  --shadow: 0 8px 24px rgba(9, 30, 66, 0.08),
    0 2px 8px rgba(9, 30, 66, 0.04);
  --radius: 16px;
  --container: 1120px;
}

/* ===== Reset (safe for 2020) ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial,
    sans-serif;
  color: var(--text);
  background: #fff;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.5rem;
}
p {
  margin: 0.5rem 0 0;
}

/* ===== Helpers ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container--fluid {
  max-width: none;
  margin: 0;
  padding: 0;
} /* �+��� �?�'�?�'�?���?�? ���? ��?���?�? */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
}
.btn:hover {
  background: var(--brand-600);
}
.btn:active {
  transform: translateY(1px);
}
.btn-ghost {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-ghost:hover {
  color: #fff;
}
.btn:hover, .btn-ghost:hover {
  text-decoration: none;
}

/* ===== Header (full-bleed) ===== */
header.site-header {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--card-tint);
}
.header-logo-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 0;
}
.logo {
  width: 25vw;
  max-width: 320px;
  min-width: 160px;
}
.header-nav-row {
  width: 100%;
  background: #002245;
  color: #fff;
}
.header-nav-row .nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
  position: relative;
  gap: 12px;
}
.header-nav-row .menu {
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: center;
}
.header-nav-row .menu a {
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
}

/* Burger */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0 8px;
  border: 0;
  background: transparent;
  color: #fff;
  position: relative;
  cursor: pointer;
}
.burger:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
/* SVG icons inside burger */
.burger svg {
  width: 26px;
  height: 26px;
  display: block; /* ensure icon is centered inside flex */
}
.burger .burger-icon { display: inline-block; }
.burger .close-icon { display: none; }
.header-nav-row.open .burger .burger-icon { display: none; }
.header-nav-row.open .burger .close-icon { display: inline-block; }
/* Force icons to follow currentColor */
.burger .burger-icon path { stroke: currentColor !important; }
.burger .close-icon path { stroke: currentColor !important; }

/* ===== Sections ===== */
section {
  padding: 48px 0;
}
.section-title {
  font-size: 26px;
  text-align: center;
  margin-bottom: 24px;
}

/* Hero */
.hero {
  background: var(--card-tint);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 10px;
}
@supports (font-size: clamp(28px, 3.2vw, 36px)) {
  .hero h1 {
    font-size: clamp(28px, 3.2vw, 36px);
  }
}
.hero p {
  color: var(--muted);
  text-align: center;
  max-width: 760px;
  margin: 0.25rem auto 1.25rem;
}
.hero .cta {
  display: flex;
  justify-content: center;
}

/* Cards & grids */
.grid {
  display: grid;
  gap: 24px;
}
.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.card-container {
  position: relative;
}
.card {
  position: absolute;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  background-color: #f1f5ff;
}
.card-decorator {
  height: 100%;
  position: absolute;
  background: linear-gradient(
    180deg,
    #164a96 0%,
    #1f5fbf 60%,
    #56a8ff 100%
  );
  border-radius: var(--radius);
  width: 100%;
  z-index: -1;
  left: -3px;
}
.card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.card p {
  font-size: 15px;
  color: var(--text);
}

/* Contacts */
.contacts {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: var(--radius);
}
.contact-cta {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
.icon {
  width: 22px;
  height: 22px;
  color: var(--brand);
}
.icon svg {
  width: 100%;
  height: 100%;
}

/* Footer */
footer {
  background: var(--bg);
  color: #c6d4ef;
  margin-top: 40px;
}
footer .foot {
  padding: 26px 0;
}
.foot-top {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.brand {
  display: flex;
  justify-content: center;
}
.brand img {
  width: 25%;
}
.foot small {
  display: block;
  text-align: center;
  color: #9fb1d6;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid.cols-3 {
    grid-template-columns: 1fr 1fr;
  }
  .contacts {
    grid-template-columns: 1fr;
  }
  .logo {
    width: 36vw;
  }
}
@media (max-width: 640px) {
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 56px 0 40px;
  }
  .header-nav-row .nav-inner {
    padding: 4px 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 4px auto 0; /* center horizontally */
    align-self: center;  /* override stretch to center the button */
  }
  .header-nav-row .menu {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .header-nav-row .menu a {
    padding: 10px 8px;
  }
  .header-nav-row.open .menu {
    display: flex;
  }
  /* Make cards participate in normal flow on mobile */
  .card {
    position: relative; /* override absolute from desktop */
    z-index: 1;
  }
  .card-decorator {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: -3px;
    z-index: 0;
  }
}
