:root {
  --navy: #002c40;
  --footer: #243044;
  --green: #04ac30;
  --olive: #507800;
  --olive-dark: #3f6000;
  --text: #555555;
  --heading: #222222;
  --muted: #777777;
  --line: #e6e6e6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; }
ul { list-style: none; }

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: var(--navy);
  color: #fff;
  min-height: 38px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  font-size: 12.5px;
}
.topbar-contacts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 26px;
  flex: 1;
  min-width: 0;
  padding: 7px 18px 7px max(18px, calc((100vw - 1140px) / 2));
}
.topbar-address { flex: 1 1 100%; }
.topbar-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
}
.topbar-contacts svg { flex: none; }
.topbar-tag {
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.site-header {
  background: #fff;
  position: relative;
  z-index: 40;
  border-bottom: 1px solid #f3f3f3;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 20px;
}
.logo img { height: 64px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #002c40;
  text-transform: uppercase;
}
.main-nav a:hover,
.main-nav a.active { color: var(--olive); }
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #e2e2e2;
  background: #fff;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--navy); }

.hero {
  position: relative;
  height: clamp(380px, 36vw, 520px);
  background: #0b1c28;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.slide.active { opacity: 1; z-index: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(8, 22, 34, 0.42);
}
.hero-caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 24px 20px 48px;
}
.hero-caption h1 {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  margin-bottom: 12px;
  max-width: 920px;
}
.hero-caption p {
  max-width: 680px;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.65;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.dots button.active { background: #3ec6e8; border-color: #3ec6e8; }

.welcome { padding: 68px 0 62px; background: #fff; }
.welcome-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 46px;
  align-items: center;
}
.kicker {
  font-size: 16px;
  font-weight: 400;
  color: #666;
  margin-bottom: 2px;
}
.welcome h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.25;
  margin-bottom: 14px;
}
.welcome p,
.prose p {
  font-size: 13.5px;
  color: #555;
  line-height: 1.8;
}
.welcome .btn { margin-top: 20px; }
.welcome-art img { width: 100%; height: auto; }

.btn {
  display: inline-block;
  background: var(--olive);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
}
.btn:hover { background: var(--olive-dark); }

.services {
  background: var(--navy);
  color: #fff;
  padding: 52px 0 58px;
}
.services-head {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 26px;
}
.services h2 {
  font-size: 30px;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
}
.services-head p {
  font-size: 13.5px;
  line-height: 1.75;
  color: #f3f7f8;
  font-weight: 400;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service-card {
  background: var(--green);
  color: #fff;
  padding: 16px 16px 18px;
  min-height: 248px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.service-card h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
}
.service-card ul { list-style: disc; padding-left: 18px; }
.service-card li { font-size: 13px; line-height: 1.55; }

.expertise { background: #fff; padding: 62px 0 78px; }
.expertise h2,
.section-title {
  text-align: center;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #3a3a3a;
  text-transform: uppercase;
}
.rule {
  width: 56px;
  height: 3px;
  background: var(--green);
  margin: 12px auto 40px;
}
.expert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.expert-card {
  background: #fff;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  padding: 30px 18px 28px;
  text-align: center;
}
.expert-card .icon {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.expert-card h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #222;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.expert-card.plain h3 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 16px;
}
.expert-card p { font-size: 13px; color: #777; line-height: 1.75; }

.site-footer {
  background: var(--footer);
  color: #d5dbe3;
  text-align: center;
  padding: 16px 64px;
  font-size: 13.5px;
}
.footer-address { margin-bottom: 4px; }
.footer-address a:hover { color: #fff; }
#toTop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  background: #28b064;
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 70;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}
#toTop.show { display: flex; }
#toTop:hover { background: #219656; }

.page-hero {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  background: var(--navy) center / cover no-repeat;
  background-image: url("../images/hero-1.jpg");
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 32, 48, 0.72);
}
.page-hero .container { position: relative; z-index: 1; color: #fff; padding: 36px 0; }
.page-hero h1 { font-size: 34px; font-weight: 600; letter-spacing: 0.4px; }
.crumb { margin-top: 6px; font-size: 13px; color: #e7eef2; }
.crumb a { color: #b7e38a; }

.page-section { padding: 62px 0; }
.page-section.alt { background: #f7f8f9; }
.prose { max-width: 860px; }
.prose p + p { margin-top: 14px; }
.prose h2 {
  color: var(--navy);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 12px;
}

.highlights, .steps, .process-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.highlights { grid-template-columns: repeat(3, 1fr); }
.steps { grid-template-columns: repeat(3, 1fr); }
.process-grid { grid-template-columns: repeat(5, 1fr); }
.highlight, .step, .process-card {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 22px 18px;
}
.highlight { border-bottom: 3px solid var(--olive); }
.step { border-top: 3px solid var(--green); }
.highlight h3, .step h3, .process-card h3 {
  color: var(--navy);
  font-size: 17px;
  margin: 8px 0;
}
.highlight p, .step p, .process-card p { font-size: 13.5px; color: #666; line-height: 1.7; }
.num {
  width: 34px;
  height: 34px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: start;
}
.info-box { background: var(--navy); color: #fff; padding: 28px 26px; }
.info-box h2 { font-size: 24px; font-weight: 600; margin-bottom: 10px; }
.info-box p { font-size: 14px; color: #e7eef2; margin-bottom: 16px; }
.info-line { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 14px; }
.info-line a:hover { color: #b7e38a; }
.form-card {
  background: #fff;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.07);
  padding: 28px;
}
.form-card h2 { color: var(--navy); font-size: 22px; margin-bottom: 14px; }
.form-card label { display: block; font-size: 13px; color: #444; margin-bottom: 6px; }
.form-card input,
.form-card textarea {
  width: 100%;
  border: 1px solid #d9d9d9;
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 14px;
  outline: none;
}
.form-card input:focus,
.form-card textarea:focus { border-color: var(--olive); }
.form-note {
  background: #eef8ef;
  border: 1px solid #8bcf7a;
  color: #246016;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 14px;
}
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }

@media (max-width: 1080px) {
  .topbar { flex-direction: column; }
  .topbar-contacts { padding: 8px 16px; flex-wrap: wrap; gap: 6px 16px; }
  .topbar-tag { justify-content: center; padding: 8px 12px; white-space: normal; text-align: center; }
  .menu-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 20px 16px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
    gap: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 11px 0; border-bottom: 1px solid #f2f2f2; }
  .welcome-grid,
  .services-head,
  .contact-grid { grid-template-columns: 1fr; }
  .service-grid,
  .expert-grid,
  .highlights,
  .steps { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .services h2 { margin-bottom: 4px; }
}

@media (max-width: 680px) {
  .container { width: min(1140px, calc(100% - 28px)); }
  .hero { height: 440px; }
  .hero-caption { padding: 20px 16px 46px; }
  .hero-caption h1 { font-size: 20px; letter-spacing: 0.2px; line-height: 1.35; }
  .hero-caption p { font-size: 13.5px; }
  .service-grid,
  .expert-grid,
  .highlights,
  .steps,
  .process-grid,
  .two { grid-template-columns: 1fr; }
  .header-inner { min-height: 74px; }
  .logo img { height: 52px; }
  .welcome { padding: 42px 0; }
  .welcome h2 { font-size: 24px; }
  .page-hero h1 { font-size: 28px; }
  .site-footer { padding: 16px 58px 16px 16px; }
}
