:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --ink: #1c2522;
  --muted: #61706b;
  --line: #d9ddd7;
  --accent: #1f7a68;
  --accent-dark: #145b4d;
  --clay: #b66a47;
  --soft: #eaf1ee;
  --dark: #17211e;
  --shadow: 0 18px 40px rgba(28, 37, 34, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(246, 243, 238, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 190px;
}

.brand-logo {
  display: block;
  width: 188px;
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.header-phone {
  font-weight: 700;
  white-space: nowrap;
}

.menu-button {
  display: none;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.menu-button span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px auto;
  border-radius: 3px;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  column-gap: clamp(28px, 5vw, 72px);
  row-gap: 42px;
  align-items: center;
  align-content: center;
  min-height: min(820px, calc(100vh - 72px));
  padding: clamp(34px, 5vw, 70px) clamp(18px, 4vw, 56px) 34px;
}

.hero > * {
  min-width: 0;
}

.hero-content,
.section {
  max-width: 1180px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

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

.lead {
  max-width: 680px;
  color: #40504b;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

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

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

.button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.button.light {
  background: #fff;
}

.hero-metrics {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin: 0;
}

.hero-metrics div {
  min-height: 108px;
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-metrics dt {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.hero-metrics dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.hero-media img {
  width: 100%;
  max-height: 520px;
  aspect-ratio: 1.46;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  margin: 0 auto;
  padding: 64px clamp(18px, 4vw, 56px);
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.object-grid,
.service-grid,
.gallery-grid,
.team-roles,
.quality-grid,
.geo-grid {
  display: grid;
  gap: 16px;
}

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

.object-grid article,
.service-card,
.estimate-box,
.team-roles article,
.quality-grid article,
.geo-grid a,
.faq-list details,
.lead-form,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.object-grid article {
  padding: 20px;
}

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

.geo-grid a {
  display: grid;
  min-height: 116px;
  align-content: start;
  gap: 8px;
  padding: 18px;
}

.geo-grid strong {
  font-size: 20px;
}

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

.geo-grid a:hover {
  border-color: rgba(31, 122, 104, 0.55);
  box-shadow: var(--shadow);
}

.object-grid p,
.service-card p,
.diagnosis p,
.quality p,
.partner-panel p,
.request-copy p {
  color: var(--muted);
}

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

.service-card {
  padding: 24px;
  background: #fff;
}

.service-card.featured {
  border-color: rgba(31, 122, 104, 0.45);
  box-shadow: var(--shadow);
}

.service-top {
  display: flex;
  min-height: 82px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.service-top span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 8px;
  background: rgba(31, 122, 104, 0.1);
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.service-card ul,
.estimate-box ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.diagnosis,
.request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.estimate-box {
  padding: 24px;
  background: var(--soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

.steps li {
  min-height: 180px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  font-weight: 800;
}

.steps strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.steps p {
  color: var(--muted);
}

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

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gallery-grid figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.team-roles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.team-roles article,
.quality-grid article {
  padding: 18px;
}

.partners {
  max-width: none;
  padding-left: clamp(18px, 4vw, 56px);
  padding-right: clamp(18px, 4vw, 56px);
}

.partner-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px;
  background: var(--dark);
  color: #fff;
  border-radius: 8px;
}

.partner-panel p,
.partner-panel .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  font-weight: 800;
  cursor: pointer;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.contact-card {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding: 20px;
}

.contact-card a,
.contact-card span {
  color: var(--muted);
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input[type="file"] {
  padding: 10px;
  background: #fdfbf7;
}

.field-hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(31, 122, 104, 0.22);
  border-color: var(--accent);
}

.form-button {
  width: 100%;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.form-status.error {
  color: #9b2c2c;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  background: var(--dark);
  color: #fff;
}

.footer p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer-legal {
  display: grid;
  gap: 4px;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .nav {
    position: fixed;
    inset: 63px 14px auto 14px;
    display: none;
    flex-direction: column;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .menu-button {
    display: block;
  }

  .header-phone {
    justify-self: end;
  }

  .hero,
  .diagnosis,
  .request {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .object-grid,
    .geo-grid,
    .service-grid,
    .steps,
    .quality-grid,
    .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 12px;
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 156px;
  }

  .header-phone {
    display: none;
  }

  h1 {
    font-size: 31px;
    line-height: 1.08;
  }

  h2 {
    font-size: 29px;
  }

  .hero {
    padding-top: 42px;
    max-width: 100vw;
    overflow: hidden;
  }

  .hero-content {
    width: 100%;
    max-width: 340px;
  }

  .eyebrow {
    white-space: normal;
  }

  .lead {
    font-size: 18px;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
  }

  .button {
    width: 100%;
    min-height: 50px;
  }

  .hero-media {
    display: none;
  }

  .hero-metrics,
  .object-grid,
  .geo-grid,
  .service-grid,
  .steps,
  .quality-grid,
  .gallery-grid,
  .team-roles {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .partner-panel,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
