:root {
  --bg: #f7fbfb;
  --surface: #ffffff;
  --surface-strong: #e8f5f6;
  --text: #172326;
  --muted: #5c6d72;
  --line: #dce8ea;
  --brand: #0f7c8a;
  --brand-dark: #095a64;
  --accent: #f0a526;
  --shadow: 0 18px 45px rgba(17, 55, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(247, 251, 251, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.logo__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-size: 13px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

.main-nav a,
.header-phone,
.site-footer a {
  text-decoration: none;
}

.main-nav a:hover,
.header-phone:hover,
.site-footer a:hover {
  color: var(--brand);
}

.header-phone {
  font-weight: 700;
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 64px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  min-height: calc(100vh - 72px);
  padding-top: clamp(40px, 7vw, 86px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

.hero__lead {
  max-width: 640px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
}

.hero__actions,
.cta-band {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 20px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 26px rgba(15, 124, 138, 0.2);
}

.button--primary:hover {
  background: var(--brand-dark);
}

.button--secondary {
  color: var(--brand-dark);
  background: var(--surface);
  border-color: var(--line);
}

.hero__side {
  display: grid;
  gap: 18px;
}

.hero__image {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
}

.hero__panel {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero__panel > div {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.hero__panel > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hero__number,
.hero__caption {
  display: block;
}

.hero__number {
  font-size: 25px;
  font-weight: 800;
}

.hero__caption {
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 18px;
}

.services-grid,
.benefits-grid {
  display: grid;
  gap: 18px;
}

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

.service-card,
.benefit,
.contact-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.service-card__top {
  min-height: 84px;
}

.service-card__top p {
  color: var(--brand);
  font-size: 22px;
  font-weight: 800;
}

.service-card ul {
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
}

.service-card li + li {
  margin-top: 8px;
}

.cta-band {
  justify-content: space-between;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 8px;
  color: #fff;
  background: var(--brand-dark);
}

.cta-band p {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.cta-band .button--primary {
  color: var(--text);
  background: var(--accent);
  box-shadow: none;
}

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

.benefit {
  padding: 22px;
}

.benefit p {
  margin-bottom: 0;
  color: var(--muted);
}

.contacts {
  background: var(--surface-strong);
}

.contacts__layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-item {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.contact-item span {
  color: var(--muted);
  font-size: 14px;
}

.contact-item a,
.contact-item strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 64px);
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin-bottom: 0;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero,
  .services-grid,
  .benefits-grid,
  .contacts__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .services-grid,
  .benefits-grid,
  .contacts__layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__actions .button,
  .cta-band .button {
    width: 100%;
  }

  .cta-band {
    align-items: stretch;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .section {
    padding-left: 14px;
    padding-right: 14px;
  }

  h1 {
    font-size: 37px;
  }

  .main-nav {
    gap: 12px;
    font-size: 14px;
  }

  .service-card,
  .benefit,
  .contact-item,
  .hero__panel {
    padding: 18px;
  }
}
