:root {
  --green: #20a464;
  --green-dark: #168151;
  --ink: #151515;
  --muted: #707070;
  --surface: #f4f5f3;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.compact { width: min(760px, calc(100% - 40px)); text-align: center; }
.section { padding: 92px 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(34px, 5vw, 58px); line-height: 1.08; }
h2 { margin-bottom: 12px; text-align: center; font-size: clamp(30px, 4vw, 46px); line-height: 1.14; }
h3 { line-height: 1.28; }
.lead, .section-subtitle { color: var(--muted); font-size: 19px; text-align: center; }
.section-subtitle { margin-bottom: 46px; }

.hero { min-height: 560px; display: grid; place-items: center; background: var(--surface); }
.brand { display: inline-block; margin-bottom: 44px; color: var(--ink); font-size: 18px; font-weight: 800; letter-spacing: .13em; text-decoration: none; }
.brand span { color: var(--green); }
.open-form { position: relative; display: flex; justify-content: center; gap: 12px; margin: 38px auto 8px; }
.open-form input {
  width: 170px;
  height: 76px;
  padding: 0;
  border: 2px solid #d9ddd9;
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 39px;
  line-height: 72px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.open-form input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgb(32 164 100 / 14%); }
.open-form button, .button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.open-form button { min-width: 170px; height: 76px; padding: 0 30px; }
.open-form button:hover, .button:hover { background: var(--green-dark); transform: translateY(-1px); }
.form-hint { margin: 0; color: #888; font-size: 13px; }
.form-hint.error { color: #b22727; }

.map-section { padding-bottom: 34px; }
.map-section h2 { margin-bottom: 42px; }
.map-frame { position: relative; overflow: hidden; border: 1px solid #e5e5e5; border-radius: 14px; box-shadow: 0 12px 38px rgb(0 0 0 / 8%); }
.map-frame iframe { display: block; border: 0; background: #eef0ed; }
.test-map-marker {
  position: absolute;
  top: 36%;
  left: 64%;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #168bea;
  color: #fff;
  filter: drop-shadow(0 3px 5px rgb(0 0 0 / 28%));
  font-size: 18px;
  font-weight: 800;
  pointer-events: none;
  transform: translate(-50%, -100%) rotate(-45deg);
}
.test-map-marker span { transform: rotate(45deg); }

.steps { padding-top: 76px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { overflow: hidden; border-radius: 12px; background: var(--surface); }
.step-card img { width: 100%; aspect-ratio: 1.25 / 1; object-fit: cover; }
.step-copy { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; padding: 25px 24px 30px; }
.step-copy span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--green); color: white; font-weight: 700; }
.step-copy h3 { margin: 3px 0 0; font-size: 18px; }

.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 76px; }
.about-copy h2 { text-align: left; }
.about-copy p { margin-bottom: 20px; color: #494949; font-size: 18px; }
.about-image { width: 100%; min-height: 450px; border-radius: 12px; object-fit: cover; }

.pricing { background: var(--surface); }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 24px; }
.price-card { padding: 44px 38px 40px; border-radius: 12px; background: #fff; text-align: center; box-shadow: 0 10px 35px rgb(0 0 0 / 5%); }
.price { margin-bottom: 7px; font-size: 58px; font-weight: 800; line-height: 1; }
.price span { margin-left: 5px; font-size: 28px; }
.price-card h3 { margin-bottom: 28px; font-size: 20px; font-weight: 500; }
.button { min-width: 210px; padding: 0 25px; }

.contacts { position: relative; min-height: 500px; display: grid; place-items: center; background: #333 url("assets/contacts.jpg") center / cover no-repeat; color: #fff; text-align: center; }
.contacts::before { position: absolute; inset: 0; background: rgb(0 0 0 / 63%); content: ""; }
.contacts .container { position: relative; z-index: 1; }
.contacts h2 { margin-bottom: 32px; }
.contacts a { display: block; width: max-content; margin: 10px auto; font-size: 24px; text-decoration: none; }
.contacts a:hover { text-decoration: underline; }
.contacts p { margin: 24px 0 0; font-size: 18px; }

footer { padding: 38px 0; background: #111; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.7fr 1fr; gap: 26px; align-items: center; }
.footer-grid p { margin: 0; }
.footer-grid p:nth-child(2) { font-size: 12px; font-weight: 700; letter-spacing: .11em; text-align: center; text-transform: uppercase; }
.footer-grid a { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 820px) {
  .section { padding: 68px 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { display: grid; grid-template-columns: 44% 1fr; }
  .step-card img { height: 100%; aspect-ratio: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-copy h2 { text-align: center; }
  .about-image { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-grid a { text-align: center; }
}

@media (max-width: 560px) {
  .container, .compact { width: min(100% - 28px, 1160px); }
  .hero { min-height: 520px; }
  .brand { margin-bottom: 34px; }
  .open-form { flex-direction: column; align-items: center; }
  .open-form input, .open-form button { width: min(100%, 290px); }
  .step-card { display: block; }
  .step-card img { aspect-ratio: 1.35 / 1; }
  .price-grid { grid-template-columns: 1fr; }
  .price-card { padding-inline: 24px; }
  .map-frame iframe { height: 430px; }
  .contacts a { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
