:root {
  --emerald-900: #064E3B;
  --emerald-800: #0B5D4C;
  --emerald-700: #0F766E;
  --emerald-200: #D1FAE5;
  --bg: #ffffff;
  --surface: #ffffff;
  --tint: #F7FAF9;
  --graphite: #1E2430;
  --muted: #5B6472;
  --border: rgba(30, 36, 48, 0.12);
  --shadow: 0 18px 40px rgba(30, 36, 48, 0.10);
  --radius: 18px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html, body { height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--graphite);
  background: var(--bg);
  line-height: 1.45;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: all .12s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-900));
  color: #fff;
  box-shadow: 0 10px 20px rgba(6, 78, 59, 0.15);
}
.btn--ghost { background: #fff; border-color: var(--border); }

.pill {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 10px 16px; border: 1px solid var(--border);
  border-radius: 999px; background: #fff; font-weight: 700;
}
.pill svg { width: 16px; height: 16px; fill: var(--emerald-900); }

/* --- Header & Brand --- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 44px; width: auto; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: ui-serif, Georgia, serif; font-size: 19px; font-weight: 800; color: var(--emerald-900); text-transform: uppercase; }
.brand__tagline { font-size: 11px; font-weight: 600; color: var(--muted); font-style: italic; }

.nav { display: flex; gap: 20px; color: var(--muted); font-weight: 700; }
.nav a:hover { color: var(--emerald-900); }
.header__cta { display: flex; gap: 10px; align-items: center; }

.menuBtn {
  display: none; width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--border); background: #fff; padding: 5px;
}
.menuBtn span { display: block; height: 2px; background: var(--graphite); margin: 5px 0; border-radius: 2px; }

/* --- Hero --- */
.hero { position: relative; padding: 80px 0; overflow: hidden; }
.hero__inner { position: relative; z-index: 3; }
.hero h1 { font-family: ui-serif, Georgia, serif; font-size: 54px; line-height: 1.1; margin: 20px 0; }
.lead { font-size: 18px; color: var(--muted); margin-bottom: 30px; max-width: 50ch; }
.hero__buttons { display: flex; gap: 15px; }
.hero__bg { position: absolute; inset: 0; z-index: 1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: right; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(90deg, #fff 0%, #fff 35%, rgba(255,255,255,0.7) 60%, transparent 100%);
}

/* --- Grids & Cards --- */
.section { padding: 80px 0; }
.section--tint { background: var(--tint); }
.section__head { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.section__head h2 { font-family: ui-serif, Georgia, serif; font-size: 36px; }

.grid { display: grid; gap: 20px; }
.grid--services, .grid--why, .grid--reviews { grid-template-columns: repeat(3, 1fr); }

.card, .review, .step { 
  background: #fff; padding: 24px; border-radius: var(--radius); 
  border: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,0.03); 
}

/* --- Steps (How it works) --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding-top: 40px; }
.step__num { 
  position: absolute; top: -15px; left: 24px; 
  width: 36px; height: 36px; background: var(--emerald-900); 
  color: #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 800; 
}

/* --- Reviews --- */
.stars { color: #f59e0b; margin-bottom: 10px; font-size: 14px; }
.review__name { font-weight: 800; margin-top: 15px; display: block; }

/* --- Area & Map --- */
.area { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px; align-items: start; }
.map-image { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius); }
.pillList { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pillList li { padding: 8px 14px; background: var(--emerald-200); color: var(--emerald-900); border-radius: 999px; font-weight: 700; font-size: 12px; }

/* --- Form --- */
.form { display: grid; gap: 15px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form input, .form select, .form textarea { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--border); font-size: 16px; }

/* --- Footer --- */
.footer { padding: 60px 0 30px; border-top: 1px solid var(--border); }
.footer__inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.footer__col { display: flex; flex-direction: column; }
.social { display: flex; gap: 12px; margin-top: 15px; }
.social a { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: var(--emerald-900); }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
/* --- Секция заказа с фоном --- */
/* --- Quote Hero Style (Full Width) --- */
/* --- Quote Hero Style (Centered) --- */
.quote-hero {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center; /* Центрируем форму внутри контейнера */
  width: 100%;
}

.quote-hero__formWrap {
  max-width: 560px; 
  background: #fff;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
  text-align: center; /* Центрируем заголовки внутри формы */
}

/* Центрируем подписи (labels) внутри формы, если нужно */
.quote-hero__formWrap .section__head--left {
  text-align: center;
  margin-bottom: 30px;
}

.quote-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.quote-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* Картинка теперь по центру */
}

/* Радиальный градиент: в центре почти белый, к краям проявляется картинка */
.quote-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(
    circle, 
    rgba(255,255,255,0.95) 0%, 
    rgba(255,255,255,0.8) 40%, 
    rgba(255,255,255,0.3) 100%
  );
}

/* Адаптив */
@media (max-width: 768px) {
  .quote-hero { padding: 60px 0; }
  .quote-hero__formWrap { padding: 30px 20px; border-radius: 0; }
  .quote-hero::before {
    background: rgba(255,255,255,0.85); /* Плотный фон на мобиле для читаемости */
  }
}
/* --- RESPONSIVE (ФИНАЛЬНЫЙ ИСПРАВЛЕННЫЙ) --- */

@media (max-width: 980px) {
  .nav { display: none; }
  .menuBtn { display: block; }
  .header__inner { padding: 10px 20px; }
  
  .grid--services, .grid--why, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid--reviews, .area, .footer__inner { grid-template-columns: 1fr; }
  
  .footer__col { text-align: center; align-items: center; }
  .social { justify-content: center; }
}

@media (max-width: 640px) {
  .header__inner { padding: 10px 15px; }
  .brand__logo { height: 34px; }
  .brand__name { font-size: 15px; }
  .brand__tagline { display: none; }
  .header__cta .pill { display: none; }
  
  .hero { padding: 40px 0; text-align: center; }
  .hero h1 { font-size: 32px; }
  .hero__buttons { flex-direction: column; }
  .hero::before { background: linear-gradient(180deg, #fff 0%, #fff 60%, rgba(255,255,255,0.8) 100%); }
  
  .section { padding: 50px 20px; }
  .grid--services, .grid--why, .grid--reviews, .steps { grid-template-columns: 1fr; }
  
  /* Чиним How It Works на мобиле */
  .step { text-align: center; padding: 40px 20px 20px; }
  .step__num { left: 50%; transform: translateX(-50%); }

  /* Чиним отзывы и соцсети */
  .review { text-align: center; }
  .stars { justify-content: center; display: flex; }
  .social { display: flex; flex-direction: row; justify-content: center; }

  .form__row { grid-template-columns: 1fr; }
  .map-image { height: 280px; }
  .footer__bottom { flex-direction: column; align-items: center; gap: 10px; }
}