:root {
  --navy: #003870;
  --navy-deep: #002850;
  --blue: #0870c0;
  --sky: #80c0e0;
  --ice: #e8f6f8;
  --paper: #f5f8fb;
  --white: #ffffff;
  --ink: #1c2833;
  --muted: #586068;
  --line: #d5e4ec;
  --shadow: 0 16px 40px rgba(0, 56, 112, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, .brand, .btn, .footer-brand {
  font-family: Manrope, "Source Sans 3", sans-serif;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6rem; }
p { margin: 0 0 0.8rem; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 0.92rem;
}
.topbar-inner {
  display: flex;
  justify-content: flex-end;
  gap: 1.4rem;
  padding: 0.45rem 0;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
}
.topbar-item:hover { color: var(--sky); }
.topbar svg, .info-card h3::before { width: 16px; height: 16px; fill: currentColor; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 40, 80, 0.05);
}
.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--blue) 55%, var(--sky));
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 92px;
}
.brand img { height: 78px; width: auto; }
.nav { display: flex; align-items: center; gap: 0.3rem; }
.nav a {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
}
.nav a.is-active,
.nav a:hover {
  background: var(--ice);
  color: var(--blue);
}
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 11px 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.hero {
  width: 100%;
  background:
    radial-gradient(circle at 12% 110%, rgba(128, 192, 224, 0.35), transparent 42%),
    linear-gradient(160deg, var(--navy-deep), var(--navy) 48%, var(--blue));
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  min-height: 460px;
}
.hero-copy {
  padding: 64px 40px 64px 0;
  color: #fff;
}
.hero-copy h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); max-width: 11ch; }
.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.hero-copy .eyebrow { color: var(--sky); }
.lead { font-size: 1.25rem; max-width: 28ch; color: #e7f3f8; }
.hero-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 48px 0;
  padding: 20px 24px;
  background: #fff;
  border-radius: 24px;
}
.hero-panel img { width: min(100%, 380px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.6rem;
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover { background: var(--navy); color: #fff; }
.hero-copy .btn { background: #fff; color: var(--navy); }
.hero-copy .btn:hover { background: var(--sky); color: var(--navy-deep); }

.section { padding: 64px 0; }
.section-ice { background: linear-gradient(180deg, transparent, #fff 18%); }
.section-head { max-width: 680px; margin-bottom: 1.6rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--navy); }
.section-head .eyebrow a { color: inherit; }
.section-action { margin-top: 1.4rem; }

.unit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.unit-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.3rem;
  border-top: 6px solid var(--blue);
  box-shadow: var(--shadow);
}
.unit-card:nth-child(2) { border-top-color: var(--navy); }
.unit-card:nth-child(3) { border-top-color: var(--sky); }
.unit-card h3 {
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.unit-company { color: var(--blue); font-weight: 700; }
.unit-card p { color: var(--muted); font-size: 0.98rem; }
.unit-phone { font-weight: 700; }

.info-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 16px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 0.6rem;
}
.info-card h3 { color: var(--navy); font-size: 1rem; }
.info-card p { color: var(--muted); }

.page-band {
  background: var(--navy);
  color: #fff;
}
.page-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  padding: 34px 0 28px;
}
.page-band h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.page-band p { margin: 0; color: var(--sky); }
.page-band a { color: #fff; }

.about-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}
.about-lead { font-size: 1.28rem; color: var(--navy); font-weight: 600; }
.about-aside {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
}
.about-aside .eyebrow { color: var(--sky); }
.about-aside h2 { font-size: 1.5rem; }
.aside-list { margin: 0.4rem 0 0; padding: 0; list-style: none; }
.aside-list li {
  padding: 0.55rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}
.home-cta h2 { color: var(--navy); }
.home-cta p:last-child { margin-bottom: 0; color: var(--muted); }

.carousel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.carousel-status { margin: 0; color: var(--muted); font-weight: 700; }
.carousel-controls { display: flex; gap: 8px; }
.carousel-btn {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover { background: var(--blue); }
.carousel-btn svg { width: 22px; height: 22px; fill: currentColor; }
.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex;
  gap: 18px;
  transition: transform 0.45s ease;
}
.carousel-card {
  position: relative;
  flex: 0 0 calc((100% - 36px) / 3);
  min-height: 220px;
  margin: 0;
  padding: 1.4rem 1.3rem 2.6rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.carousel-card.is-service { background: var(--navy); color: #fff; }
.carousel-type {
  margin: 0 0 0.7rem;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.carousel-card.is-service .carousel-type { color: var(--sky); }
.carousel-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.15rem;
}
.carousel-card.is-service h3 { color: #fff; }
.carousel-index {
  position: absolute;
  left: 1.3rem;
  bottom: 1rem;
  color: var(--sky);
  font-family: Manrope, sans-serif;
  font-weight: 800;
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

.catalog {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 18px;
}
.catalog-col {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1rem;
  box-shadow: var(--shadow);
}
.catalog-col h3 { color: var(--navy); }
.catalog-col-alt { background: var(--navy); color: #fff; }
.catalog-col-alt h3 { color: #fff; }
.catalog ol { margin: 0; padding: 0; list-style: none; counter-reset: item; }
.catalog li {
  counter-increment: item;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.6rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.catalog-col-alt li { border-top-color: rgba(255, 255, 255, 0.16); color: #e7f3f8; }
.catalog li::before {
  content: counter(item, decimal-leading-zero);
  color: var(--blue);
  font-weight: 700;
  font-family: Manrope, sans-serif;
}
.catalog-col-alt li::before { color: var(--sky); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.map-frame, .contact-form {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
.contact-form { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.contact-form label { display: block; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--sky);
  border-color: var(--blue);
  background: #fff;
}
.hp { position: absolute; left: -9999px; }
.form-success, .form-error {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
}
.form-success { background: #e5f6ea; color: #146c36; }
.form-error { background: #fdecec; color: #9b1c1c; }

.site-footer { background: var(--navy-deep); color: #d5e6ef; margin-top: 10px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 24px;
  padding: 42px 0 18px;
}
.footer-brand { color: #fff; font-size: 1.5rem; font-weight: 800; margin-bottom: 0.4rem; }
.site-footer h2 { color: #fff; font-size: 1rem; }
.site-footer a { color: var(--sky); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.35rem 0; }
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0 1.3rem;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .hero-grid, .unit-grid, .info-grid, .about-layout, .catalog, .contact-layout, .footer-grid {
    grid-template-columns: 1fr;
  }
  .home-cta { display: block; }
  .carousel-card { flex-basis: 100%; }
  .hero-copy { padding: 36px 24px; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 96px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.6rem;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .header-inner { position: relative; }
  .page-band-inner, .topbar-inner, .form-row { display: block; }
  .topbar-item { display: flex; margin: 0.2rem 0; }
  .page-band p { margin-top: 0.4rem; }
}
