:root {
  --bg: #ffffff;
  --surface: #f6f7f5;
  --text: #17201d;
  --muted: #65706b;
  --line: #dfe4df;
  --brand: #1d6b56;
  --brand-strong: #124c3c;
  --accent: #c49a4a;
  --shadow: 0 18px 45px rgba(22, 32, 29, 0.09);
  --radius: 8px;
  --wrap: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.section-pad {
  padding: 96px 0;
}

.muted {
  background: var(--surface);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.91);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 28px;
}

.logo {
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

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

.nav-menu a:hover {
  color: var(--text);
}

.nav-cta {
  color: var(--brand) !important;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  padding-top: 62px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 56px;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  text-align: center;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-strong);
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--brand);
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  min-height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.stats div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.stats dt {
  color: var(--muted);
  font-size: 14px;
}

.stats dd {
  margin: 0 0 4px;
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.feature-grid,
.service-grid,
.portfolio-grid,
.review-grid,
.trust-grid {
  display: grid;
  gap: 18px;
}

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

.service-grid {
  grid-template-columns: repeat(5, 1fr);
}

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

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

.trust-grid {
  grid-template-columns: repeat(6, 1fr);
}

.feature-card,
.service-card,
.project-card,
.review-card,
.trust-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-card,
.service-card,
.review-card,
.trust-item {
  padding: 24px;
}

.feature-card,
.service-card,
.project-card,
.review-card {
  box-shadow: 0 10px 30px rgba(22, 32, 29, 0.04);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid rgba(29, 107, 86, 0.18);
  border-radius: var(--radius);
  color: var(--brand);
  background: #eef6f2;
}

.icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card p,
.service-card p,
.project-card p,
.review-card p,
.contacts p,
.estimate-copy p {
  color: var(--muted);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 268px;
}

.service-card .text-link {
  margin-top: auto;
}

.text-link {
  color: var(--brand);
  font-weight: 800;
}

.project-card {
  overflow: hidden;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-body {
  padding: 22px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.project-meta span,
.review-meta,
.trust-mini span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  position: relative;
  min-height: 150px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-number {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-weight: 850;
}

.estimate-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 52px;
  align-items: start;
}

.trust-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.estimate-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 8px;
}

.full {
  grid-column: 1 / -1;
}

label {
  color: var(--text);
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 13px 14px;
  color: var(--text);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 107, 86, 0.12);
}

.error {
  min-height: 18px;
  color: #a63d2f;
  font-size: 13px;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--brand);
  font-weight: 800;
}

.review-card {
  min-height: 230px;
}

.rating {
  color: var(--accent);
  font-weight: 850;
}

.review-meta {
  display: inline-flex;
  margin: 10px 0 16px;
}

.trust-band {
  background: #fbfaf7;
}

.trust-item {
  text-align: center;
  font-weight: 800;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 52px;
  align-items: stretch;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.contact-list p {
  margin: 0;
}

.contact-list strong {
  display: block;
  color: var(--text);
}

.city-panel {
  display: grid;
  grid-template-rows: minmax(280px, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.city-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.city-panel div {
  padding: 26px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.mobile-bar {
  display: none;
}

.reveal {
  transform: translateY(22px);
  opacity: 0;
  transition: transform 0.55s ease, opacity 0.55s ease;
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1120px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-list,
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .section-pad {
    padding: 72px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    inset: 76px 20px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

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

  .hero-grid,
  .estimate-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    min-height: 380px;
  }

  .feature-grid,
  .portfolio-grid,
  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .wrap {
    width: min(100% - 28px, var(--wrap));
  }

  body {
    padding-bottom: 68px;
  }

  .section-pad {
    padding: 58px 0;
  }

  h1 {
    font-size: 43px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-text {
    font-size: 18px;
  }

  .stats,
  .feature-grid,
  .service-grid,
  .portfolio-grid,
  .review-grid,
  .process-list,
  .trust-grid,
  .estimate-form {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-media img {
    min-height: 330px;
  }

  .service-card {
    min-height: auto;
  }

  .estimate-form {
    padding: 20px;
  }

  .mobile-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 62px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(22, 32, 29, 0.09);
  }

  .mobile-bar a {
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 10px 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 850;
    text-align: center;
  }

  .mobile-bar a:nth-child(3) {
    background: var(--brand);
    color: #fff;
  }
}
