:root {
  --ink: #142321;
  --muted: #5f706d;
  --surface: #f7faf8;
  --surface-strong: #edf5f0;
  --white: #ffffff;
  --teal: #0b6f68;
  --teal-dark: #064842;
  --mint: #d9efe7;
  --copper: #b46a3c;
  --line: rgba(20, 35, 33, 0.12);
  --shadow: 0 24px 70px rgba(13, 50, 47, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px clamp(20px, 4vw, 56px);
  color: var(--white);
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.site-header.is-scrolled {
  padding-block: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 40px rgba(20, 35, 33, 0.1);
  backdrop-filter: blur(16px);
}

.brand,
.header-actions,
.main-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.15;
}

.brand small {
  color: currentColor;
  font-size: 12px;
  opacity: 0.72;
}

.main-nav {
  gap: clamp(18px, 3vw, 34px);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  opacity: 0.86;
}

.main-nav a:hover {
  opacity: 1;
}

.header-actions {
  gap: 14px;
  justify-content: flex-end;
  min-width: 190px;
}

.phone-link {
  font-size: 14px;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: currentColor;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: var(--white);
  background: var(--teal-dark);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(4, 34, 31, 0.92) 0%, rgba(4, 34, 31, 0.73) 38%, rgba(4, 34, 31, 0.16) 72%),
    linear-gradient(0deg, rgba(4, 34, 31, 0.3), rgba(4, 34, 31, 0.04));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 760px;
  grid-template-columns: minmax(0, 690px);
  align-content: center;
  gap: 48px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 128px 0 72px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(42px, 7vw, 82px);
}

.hero-text {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--teal);
}

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

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  display: grid;
  max-width: 690px;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.hero-panel div {
  padding: 22px;
}

.hero-panel div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-panel strong {
  display: block;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1;
}

.hero-panel span {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.intro-grid,
.contacts,
.trust {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}

.section h2 {
  font-size: clamp(34px, 5vw, 58px);
}

.section p {
  color: var(--muted);
  font-size: 17px;
}

.credentials {
  display: grid;
  gap: 14px;
}

.credentials div,
.service-card,
.timeline-item,
.quote,
.appointment-form,
.contact-list a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(20, 35, 33, 0.05);
}

.credentials div {
  padding: 22px;
}

.credentials span,
.contact-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.credentials strong,
.contact-list strong {
  display: block;
  margin-top: 7px;
  font-size: 18px;
  line-height: 1.35;
}

.services {
  width: 100%;
  padding-inline: max(20px, calc((100vw - 1180px) / 2));
  background: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 28px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 34px;
}

.section-heading p {
  margin: 0;
}

.service-grid {
  display: grid;
  max-width: 1180px;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0 auto;
}

.service-card {
  min-height: 260px;
  padding: 24px;
}

.service-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: var(--teal-dark);
  background: var(--mint);
  font-size: 26px;
  font-weight: 800;
}

.service-card h3,
.timeline-item h3 {
  margin: 24px 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.service-card p,
.timeline-item p {
  margin: 0;
  font-size: 15px;
}

.process h2 {
  max-width: 780px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.timeline-item {
  padding: 28px;
  background: linear-gradient(180deg, var(--white), var(--surface-strong));
}

.timeline-item span {
  color: var(--copper);
  font-size: 13px;
  font-weight: 800;
}

.trust {
  width: 100%;
  padding-inline: max(20px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background: var(--teal-dark);
}

.trust .section-kicker,
.trust p {
  color: rgba(255, 255, 255, 0.72);
}

.quote {
  padding: clamp(26px, 4vw, 42px);
  color: var(--ink);
}

.quote p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.25;
}

.quote span {
  display: block;
  margin-top: 24px;
  color: var(--muted);
  font-weight: 800;
}

.contact-info p {
  max-width: 580px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-list a {
  padding: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-list a:hover {
  border-color: rgba(11, 111, 104, 0.35);
  transform: translateY(-2px);
}

.appointment-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 36px);
}

.appointment-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.appointment-form input,
.appointment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 15px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  outline: none;
}

.appointment-form input:focus,
.appointment-form textarea:focus {
  border-color: var(--teal);
  background: var(--white);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--white);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--teal);
  font-weight: 800;
}

@media (max-width: 920px) {
  .site-header {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
  }

  .phone-link {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    display: none;
    width: min(280px, calc(100vw - 40px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 14px;
  }

  .hero,
  .hero-inner {
    min-height: 700px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(4, 34, 31, 0.93) 0%, rgba(4, 34, 31, 0.72) 55%, rgba(4, 34, 31, 0.24) 100%),
      linear-gradient(0deg, rgba(4, 34, 31, 0.32), rgba(4, 34, 31, 0.05));
  }

  .intro-grid,
  .contacts,
  .trust,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 14px;
  }

  .hero,
  .hero-inner {
    min-height: 720px;
  }

  .hero-media {
    object-position: 72% center;
  }

  .hero-inner {
    width: min(100% - 32px, 1180px);
    padding-top: 112px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-panel,
  .service-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-panel div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .section {
    width: min(100% - 32px, 1180px);
    padding: 70px 0;
  }

  .services,
  .trust {
    width: 100%;
    padding-inline: 16px;
  }

  .site-footer {
    flex-direction: column;
  }
}
