:root {
  --navy-900: #013972;
  --blue-700: #014488;
  --blue-600: #0059a5;
  --blue-400: #2f80d8;
  --blue-100: #deeaf6;
  --ink: #0b1b3a;
  --text: #3a4556;
  --white: #fafafa;
  --radius: 20px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
section { padding-block: 72px; }

h1, h2, h3 { color: var(--ink); text-transform: uppercase; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; color: var(--navy-900); }
h3 { font-size: 1.05rem; font-weight: 700; overflow-wrap: anywhere; hyphens: auto; }

.pill {
  display: inline-block;
  background: var(--blue-700);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: 12px 28px;
  border-radius: 999px;
  margin: 0 auto 40px;
  display: block;
  width: fit-content;
  text-align: center;
}

.btn {
  display: inline-block;
  background: var(--blue-700);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  min-height: 44px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: background .2s;
}
.btn:hover { background: var(--blue-400); }

.icon {
  flex: none;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--blue-600);
  display: grid; place-items: center;
}
.icon svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
header {
  position: sticky; top: 0; z-index: 10;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(1, 57, 114, .1);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { height: 56px; width: auto; mix-blend-mode: multiply; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
nav a:hover { color: var(--blue-400); }
nav a.btn { color: #fff; padding: 10px 22px; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 26px; height: 3px; background: var(--navy-900); border-radius: 2px; content: ""; position: relative;
}
.menu-toggle span::before { position: absolute; top: -8px; }
.menu-toggle span::after { position: absolute; top: 8px; }

/* Hero */
.hero { padding-block: 24px 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.15rem; margin: 20px 0 32px; max-width: 30em; }
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover;
  border-radius: 55% 0 0 0 / 40% 0 0 0;
  box-shadow: -12px 0 0 var(--blue-600);
}
.badge {
  position: absolute; left: -12px; bottom: 24px;
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--blue-600); color: #fff;
  display: grid; place-items: center; align-content: center; text-align: center;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; line-height: 1.5;
}
.badge svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 4px; }

/* About */
.about p { max-width: 46em; font-size: 1.1rem; margin: 0 auto; text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }

/* Services */
.services-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 48px; }
.service { display: flex; gap: 20px; align-items: flex-start; }
.service > div { min-width: 0; }
.service h3 { margin-bottom: 6px; }
.service p { margin: 0; }

/* Benefits */
.benefits { background: var(--blue-100); }
.checks { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.checks li {
  flex: 0 0 calc((100% - 48px) / 4); min-height: 76px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: var(--radius);
  padding: 16px 14px; font-weight: 600; color: var(--ink); font-size: .95rem;
}
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px;
  border-radius: 50%; background: var(--blue-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.banner { background: var(--navy-900); color: #fff; padding-block: 40px; }
.banner p { margin: 0; text-align: center; font-size: clamp(1.1rem, 3vw, 1.6rem); font-weight: 800; text-transform: uppercase; line-height: 1.3; }

/* Contact */
.contact { background: var(--blue-100); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.contact-info { padding-top: 12px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list .icon { width: 48px; height: 48px; }
.contact-list .icon svg { width: 24px; height: 24px; }
.contact-list a, .contact-list strong, .contact-list address { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list small { display: block; color: var(--text); font-weight: 400; }
address { font-style: normal; }

form { background: #fff; padding: 28px; border-radius: var(--radius); display: grid; gap: 16px; }
label { font-weight: 600; color: var(--ink); font-size: .9rem; display: grid; gap: 6px; }
input, textarea {
  font: inherit; padding: 12px 14px; border: 2px solid #c5d5e8; border-radius: 12px; background: #fff; color: var(--ink);
}
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--blue-600); outline: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .85rem; }
.consent input { margin-top: 4px; width: 18px; height: 18px; padding: 0; }
.hp { position: absolute; left: -9999px; }
#form-status { margin: 0; font-weight: 600; }
#form-status.ok { color: var(--blue-600); }
#form-status.err { color: #b3261e; }

/* Footer */
footer { background: var(--navy-900); color: #fff; text-align: center; padding-block: 28px; }
footer p { margin: 0 0 8px; font-weight: 700; text-transform: uppercase; font-size: .9rem; }
footer nav { justify-content: center; gap: 20px; font-size: .85rem; }
footer a { color: #fff; font-weight: 400; opacity: .85; }

/* Legal pages */
.legal { padding-block: 48px; }
.legal h1 { font-size: 2rem; margin-bottom: 24px; }
.legal h2 { font-size: 1.1rem; margin: 28px 0 8px; }

@media (max-width: 820px) {
  section { padding-block: 48px; }
  .hero { padding-top: 24px; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-photo { max-width: 520px; margin-inline: auto; }
  .menu-toggle { display: block; }
  header nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--white);
    padding: 8px 16px 20px; box-shadow: 0 8px 16px rgba(1, 57, 114, .1);
  }
  header nav.open { display: flex; }
  header nav a { padding: 14px 4px; }
  header nav a.btn { text-align: center; margin-top: 8px; }
}

@media (max-width: 400px) {
  h3 { font-size: .95rem; }
  .icon { width: 52px; height: 52px; }
  .icon svg { width: 26px; height: 26px; }
  .service { gap: 14px; }
  .pill { padding: 10px 22px; font-size: .9rem; }
  .btn { width: 100%; text-align: center; }
  form { padding: 20px; }
  .badge { width: 112px; height: 112px; font-size: .6rem; left: -8px; }
}

@media (max-width: 1000px) { .checks li { flex-basis: calc((100% - 32px) / 3); } }
@media (max-width: 700px) { .checks li { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 480px) { .checks li { flex-basis: 100%; min-height: 0; } }
