/* Редакция /gwd/: плотная подача каталога по образцу больших сайтов
   загородного строительства. Вёрстка и стили собственные. */
:root {
  --ink: #16211c;
  --ink-soft: #55635c;
  --line: #dfe4e0;
  --paper: #ffffff;
  --sand: #f4f3ef;
  --moss: #94c11f;
  --moss-dark: #6f9312;
  --deep: #1d2b24;
  --radius: 14px;
  --shell: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.mgw {
  margin: 0;
  font: 400 17px/1.6 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
.mgw img { max-width: 100%; height: auto; display: block; }
.mgw a { color: inherit; }
.mgw-shell { width: min(100% - 32px, var(--shell)); margin-inline: auto; }
.mgw h1, .mgw h2, .mgw h3 { margin: 0; line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
.mgw h1 { font-size: clamp(34px, 5vw, 62px); }
.mgw h2 { font-size: clamp(27px, 3.4vw, 42px); }
.mgw h3 { font-size: clamp(19px, 1.6vw, 23px); }
.mgw p { margin: 0 0 14px; }
.mgw-kicker {
  margin: 0 0 12px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--moss-dark);
}
.mgw-lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); max-width: 62ch; }
.mgw-section { padding: clamp(52px, 7vw, 96px) 0; }
.mgw-section--sand { background: var(--sand); }
.mgw-section--deep { background: var(--deep); color: #eef1ed; }
.mgw-section--deep .mgw-lead, .mgw-section--deep .mgw-muted { color: #b3c0b7; }
.mgw-head { max-width: 780px; margin-bottom: clamp(26px, 3vw, 44px); }
.mgw-muted { color: var(--ink-soft); font-size: 15px; }

/* кнопки */
.mgw .mgw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--moss); color: #12200a; font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s;
}
.mgw .mgw-btn:hover { background: var(--moss-dark); color: #fff; transform: translateY(-1px); }
.mgw .mgw-btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.mgw .mgw-btn--ghost:hover { background: rgba(255,255,255,.14); color: inherit; }
.mgw .mgw-btn--dark { background: var(--deep); color: #fff; border-color: var(--deep); }
.mgw .mgw-btn--dark:hover { background: #0f1a15; color: #fff; }
.mgw .mgw-btn--sm { padding: 10px 18px; font-size: 15px; }

/* шапка */
.mgw-header {
  position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.mgw-header__row { display: flex; align-items: center; gap: 24px; height: 72px; }
.mgw-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.mgw-brand span[aria-hidden] {
  width: 30px; height: 30px; border-radius: 8px; background: var(--moss);
  display: grid; place-items: center; color: #12200a; font-size: 15px;
}
.mgw-nav { display: flex; gap: 20px; margin-left: auto; font-size: 15px; }
.mgw-nav a { text-decoration: none; color: var(--ink-soft); white-space: nowrap; }
.mgw-nav a:hover { color: var(--ink); }
.mgw-nav .is-accent { color: var(--moss-dark); font-weight: 600; }
.mgw-header__actions { display: flex; align-items: center; gap: 14px; }
.mgw-phone { font-weight: 600; text-decoration: none; white-space: nowrap; }
.mgw-burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

/* первый экран */
.mgw-hero { position: relative; color: #fff; }
.mgw-hero img { width: 100%; height: clamp(440px, 72vh, 760px); object-fit: cover; }
.mgw-hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,20,16,.82) 0%, rgba(12,20,16,.45) 52%, rgba(12,20,16,.1) 100%);
}
.mgw-hero__body { position: absolute; inset: 0; display: flex; align-items: center; }
.mgw-hero__copy { max-width: 620px; }
.mgw-hero h1 { color: #fff; }
.mgw-hero h1 b { color: var(--moss); font-weight: 650; }
.mgw-hero p { color: #dfe6df; font-size: clamp(16px, 1.5vw, 19px); margin: 18px 0 26px; }
.mgw-hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mgw-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: 1px solid var(--line); }
.mgw-facts div { padding: 22px 8px 22px 0; }
.mgw-facts b { display: block; font-size: 27px; font-weight: 650; }
.mgw-facts span { color: var(--ink-soft); font-size: 15px; }

/* преимущества */
.mgw-usp { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.mgw-usp article {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 8px;
}
.mgw-usp b { font-size: 30px; color: var(--moss-dark); font-weight: 650; line-height: 1; }
.mgw-usp h3 { font-size: 19px; }
.mgw-usp p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* линейки */
.mgw-lines { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.mgw-line {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--paper); display: flex; flex-direction: column;
}
.mgw-line img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.mgw-line__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mgw-line__body p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.mgw-line__meta { margin-top: auto; padding-top: 12px; font-size: 15px; color: var(--ink-soft); }
.mgw-line__meta b { color: var(--ink); }

/* каталог */
.mgw-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.mgw-tab {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font: inherit; font-size: 15px; cursor: pointer;
}
.mgw-tab[aria-pressed="true"] { background: var(--deep); color: #fff; border-color: var(--deep); }
.mgw-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.mgw-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  overflow: hidden; display: flex; flex-direction: column;
}
.mgw-card img { aspect-ratio: 3 / 2; object-fit: cover; background: var(--sand); }
.mgw-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mgw-card__title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mgw-card__title span { color: var(--ink-soft); font-size: 15px; white-space: nowrap; }
.mgw-params { display: flex; flex-wrap: wrap; gap: 6px; }
.mgw-params li {
  list-style: none; padding: 5px 11px; border-radius: 999px;
  background: var(--sand); font-size: 14px; color: var(--ink-soft);
}
.mgw-price { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.mgw-price div { display: flex; justify-content: space-between; font-size: 15px; padding: 3px 0; }
.mgw-price b { font-weight: 650; }
.mgw-card__actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* display у карточек и кнопок перебивает [hidden], поэтому скрываем явно */
.mgw [hidden] { display: none !important; }

/* выбор линейки и площади */
.mgw-picker { display: grid; gap: 18px; }
.mgw-tab small { display: block; font-size: 13px; opacity: .6; font-weight: 400; margin-top: 2px; }
.mgw-picker__about { margin: 0; color: var(--ink-soft); max-width: 70ch; }
.mgw-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.mgw-size {
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; font: inherit; font-size: 15px; cursor: pointer;
}
.mgw-size[aria-pressed="true"] { border-color: var(--moss-dark); background: var(--moss); color: #12200a; font-weight: 600; }
.mgw-detail {
  display: grid; grid-template-columns: minmax(320px, 1.15fr) 1fr;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.mgw-detail img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; background: var(--sand); }
.mgw-detail__body { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; }
.mgw-detail__prices { display: grid; gap: 6px; }
.mgw-detail__prices div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mgw-detail__prices b { font-size: 20px; }
.mgw-all { margin-top: 28px; }
.mgw-all summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.mgw-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 8px; }
.mgw-table th, .mgw-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.mgw-table th { font-weight: 600; color: var(--ink-soft); font-size: 14px; }
.mgw-table td:last-child, .mgw-table th:last-child { text-align: right; white-space: nowrap; }

/* техническое устройство: слева список этапов, справа раскрытый состав */
.mgw-acc { --rows: 8; display: grid; grid-template-columns: minmax(260px, 360px) 1fr;
           column-gap: 18px; row-gap: 10px; }
.mgw-acc__item { display: contents; }
.mgw-acc__head {
  grid-column: 1; display: flex; align-items: baseline; gap: 12px; width: 100%;
  text-align: left; font: inherit; cursor: pointer; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: background .15s, border-color .15s;
}
.mgw-acc__head:hover { border-color: var(--moss-dark); }
.mgw-acc__head span { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--moss-dark); }
.mgw-acc__head b { font-size: 18px; font-weight: 600; }
.mgw-acc__head[aria-expanded="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }
.mgw-acc__head[aria-expanded="true"] span { color: var(--moss); }
.mgw-acc__body {
  grid-column: 2; grid-row: 1 / span var(--rows);
  /* панель по высоте содержимого, а не по всему списку слева, и едет за прокруткой */
  align-self: start; position: sticky; top: 96px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 30px);
}
.mgw-acc__body h3 { margin-bottom: 6px; }
.mgw-acc__body > p { color: var(--ink-soft); margin-bottom: 18px; }
.mgw-acc__body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.mgw-acc__body li { position: relative; padding-left: 26px; }
.mgw-acc__body li::before {
  content: ''; position: absolute; left: 0; top: 10px; width: 10px; height: 2px; background: var(--moss);
}
.mgw-acc__note {
  margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-soft);
}

/* шаги */
.mgw-steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.mgw-steps article { border-top: 3px solid var(--moss); padding-top: 16px; }
.mgw-steps h3 { margin-bottom: 6px; }
.mgw-steps p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.mgw-steps span {
  counter-increment: step; display: block; font-size: 14px; font-weight: 600;
  color: var(--moss-dark); margin-bottom: 6px;
}
.mgw-steps span::before { content: '0' counter(step); }

/* двухколонники */
.mgw-split { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; }
.mgw-split img { width: 100%; border-radius: var(--radius); }
.mgw-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.mgw-list li { padding-left: 26px; position: relative; color: var(--ink-soft); }
.mgw-list li::before {
  content: ''; position: absolute; left: 0; top: 9px; width: 10px; height: 10px;
  border-radius: 3px; background: var(--moss);
}

/* ипотека */
.mgw-calc {
  background: #fff; border-radius: var(--radius); padding: clamp(22px, 3vw, 32px);
  color: var(--ink); display: grid; gap: 16px;
}
.mgw-calc label { display: block; font-size: 15px; color: var(--ink-soft); margin-bottom: 6px; }
.mgw-calc input[type="range"] { width: 100%; accent-color: var(--moss); }
.mgw-calc output { font-size: clamp(30px, 4vw, 44px); font-weight: 650; display: block; }
.mgw-calc__note { font-size: 14px; color: var(--ink-soft); }

/* форма */
.mgw-form { display: grid; gap: 14px; background: #fff; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); color: var(--ink); }
.mgw-form input, .mgw-form textarea, .mgw-form select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; background: #fff;
}
.mgw-form textarea { min-height: 96px; resize: vertical; }
.mgw-form__row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mgw-form__agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.mgw-form__status { font-size: 15px; min-height: 22px; }

/* подвал */
.mgw-footer { background: var(--deep); color: #cdd6cf; padding: 56px 0 34px; font-size: 15px; }
.mgw-footer a { color: #eef1ed; text-decoration: none; }
.mgw-footer__grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.mgw-footer h4 { margin: 0 0 12px; font-size: 15px; color: #fff; }
.mgw-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.mgw-footer__bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); color: #93a298; font-size: 13px; }

.mgw-note {
  border-left: 3px solid var(--moss); background: var(--sand);
  padding: 14px 18px; border-radius: 0 10px 10px 0; font-size: 15px; color: var(--ink-soft);
}

@media (max-width: 960px) {
  .mgw-nav { display: none; }
  .mgw-burger { display: block; }
  .mgw-nav.is-open {
    display: grid; position: absolute; left: 16px; right: 16px; top: 72px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px; gap: 14px; box-shadow: 0 18px 40px rgba(20,32,26,.12);
  }
  .mgw-phone { display: none; }
  .mgw-acc { grid-template-columns: 1fr; }
  .mgw-acc__body { grid-column: 1; grid-row: auto; position: static; }
  .mgw-detail { grid-template-columns: 1fr; }
  .mgw-detail img { min-height: 220px; }
  .mgw-table { font-size: 14px; }
  .mgw-table th:nth-child(3), .mgw-table td:nth-child(3) { display: none; }
  .mgw-hero__veil { background: linear-gradient(180deg, rgba(12,20,16,.35) 0%, rgba(12,20,16,.85) 70%); }
  .mgw-hero__body { align-items: flex-end; padding-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mgw-btn { transition: none; }
}

/* плавающая кнопка «6%» и модальная анкета */
.mgw-orbit {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 116px; height: 116px; border: 0; border-radius: 50%;
  background: var(--moss); color: #12200a; cursor: pointer;
  display: grid; align-content: center; justify-items: center; gap: 2px;
  box-shadow: 0 10px 30px rgba(20, 40, 20, .28);
  transition: transform .18s, box-shadow .18s;
}
.mgw-orbit:hover, .mgw-orbit:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20, 40, 20, .34); }
.mgw-orbit b { font-size: 30px; font-weight: 700; line-height: 1; }
.mgw-orbit span { font-size: 12px; line-height: 1.25; font-weight: 600; text-align: center; }

.mgw-dialog {
  width: min(560px, calc(100vw - 32px)); max-height: 90svh; overflow: auto;
  border: 0; border-radius: var(--radius); padding: clamp(22px, 3vw, 32px);
  color: var(--ink); background: #fff;
}
.mgw-dialog::backdrop { background: rgba(12, 20, 16, .55); }
.mgw-dialog h2 { margin-bottom: 8px; padding-right: 40px; }
.mgw-dialog__close { position: absolute; top: 14px; right: 16px; }
.mgw-dialog__close button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink-soft);
}
.mgw-dialog .mgw-form { padding: 0; margin-top: 18px; }
.mgw-dialog label { display: block; font-size: 15px; color: var(--ink-soft); }
.mgw-dialog label input, .mgw-dialog label select, .mgw-dialog label textarea { margin-top: 6px; color: var(--ink); }
.mgw-dialog select { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.mgw-dialog__family { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 0; display: grid; gap: 12px; }
.mgw-dialog__family legend { font-size: 15px; font-weight: 600; color: var(--ink); padding: 0 6px; }

@media (max-width: 900px) {
  .mgw-orbit { width: 92px; height: 92px; right: 14px; bottom: 14px; }
  .mgw-orbit b { font-size: 25px; }
  .mgw-orbit span { font-size: 11px; }
}

/* появление блоков при прокрутке */
.mgw-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.mgw-reveal.is-visible { opacity: 1; transform: none; }

/* слайдер в карточке проекта: фасад и планировка */
.mgw-gallery { position: relative; overflow: hidden; background: var(--sand); }
.mgw-gallery img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; transition: transform .5s ease, opacity .25s ease; }
.mgw-gallery img[data-shot="plan"] { object-fit: contain; background: #fff; padding: 12px; }
.mgw-gallery:hover img[data-shot="cover"] { transform: scale(1.03); }
.mgw-gallery.is-switching img { opacity: 0; }
.mgw-gallery__tabs {
  position: absolute; left: 16px; bottom: 16px; display: flex; gap: 6px;
  background: rgba(255,255,255,.9); border-radius: 999px; padding: 4px;
  backdrop-filter: blur(6px);
}
.mgw-gallery__tabs button {
  border: 0; background: transparent; font: inherit; font-size: 14px;
  padding: 7px 14px; border-radius: 999px; cursor: pointer; color: var(--ink-soft);
}
.mgw-gallery__tabs button[aria-pressed="true"] { background: var(--deep); color: #fff; }

/* мягкое увеличение картинок в карточках */
.mgw-card img, .mgw-split img { transition: transform .5s ease; }
.mgw-card:hover img { transform: scale(1.03); }
.mgw-card { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .mgw-reveal { opacity: 1; transform: none; transition: none; }
  .mgw-gallery img, .mgw-card img, .mgw-split img { transition: none; }
  .mgw-card:hover img, .mgw-gallery:hover img[data-shot="cover"] { transform: none; }
}

/* страница проекта */
.mgw-crumbs { font-size: 14px; color: var(--ink-soft); margin-bottom: 22px; }
.mgw-crumbs a { text-decoration: none; }
.mgw-crumbs a:hover { color: var(--moss-dark); }
.mgw-plan { background: #fff; padding: 18px; border: 1px solid var(--line); }
.mgw-floors__tabs { margin-bottom: 14px; }
.mgw-floors [data-floor-pane] img { width: 100%; height: auto; }
.mgw-card--link { text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.mgw-card--link:hover { border-color: var(--moss-dark); transform: translateY(-2px); }

/* шапка страницы проекта: плотнее по вертикали */
.mgw-section h1 + .mgw-lead { margin-top: 12px; }
.mgw-params + .mgw-hero__buttons { margin-top: 0; }

/* слайдер подборок и линеек: кадр слева, описание справа, лента миниатюр */
.mgw-coll__stage { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: center; }
.mgw-coll__image {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px;
  transition: opacity .2s ease;
}
.mgw-coll.is-switching .mgw-coll__image { opacity: .25; }
.mgw-coll__info { position: relative; padding-right: 130px; }
.mgw-coll__info h3 { font-size: clamp(26px, 2.6vw, 36px); }
.mgw-coll__count { margin: 8px 0 12px; color: var(--ink-soft); font-size: 17px; }
.mgw-coll__info .mgw-muted { max-width: 44ch; margin-bottom: 22px; }
.mgw-coll__arrows { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; gap: 12px; }
.mgw-coll__arrows button {
  width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid #b9d3a0;
  background: transparent; color: var(--moss-dark); font-size: 22px; cursor: pointer;
  transition: background .15s, color .15s;
}
.mgw-coll__arrows button:hover { background: var(--moss); color: #12200a; border-color: var(--moss); }
.mgw-coll__strip {
  position: relative; z-index: 2; display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr); gap: 16px;
  margin: -120px 0 0 9%; padding: 0 0 8px; overflow-x: auto; scrollbar-width: thin;
}
.mgw-coll__thumb {
  display: grid; gap: 6px; text-align: left; font: inherit; color: var(--ink);
  background: #fff; border: 0; border-radius: 16px; padding: 10px 10px 14px; cursor: pointer;
  box-shadow: 0 10px 28px rgba(20, 40, 25, .10); transition: transform .2s, background .2s;
}
.mgw-coll__thumb:hover { transform: translateY(-3px); }
.mgw-coll__thumb[aria-selected="true"] { background: #eaf3e1; }
.mgw-coll__thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.mgw-coll__thumb b { font-weight: 600; font-size: 16px; line-height: 1.25; padding: 0 4px; }
.mgw-coll__thumb span { color: var(--ink-soft); font-size: 14px; padding: 0 4px; }

/* плитки проектов с появлением */
.mgw-tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-top: 36px; }
.mgw-tile {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit;
  animation: mgw-tile-in .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.mgw-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(20, 40, 25, .12); border-color: #b9d3a0; }
.mgw-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.mgw-tile:hover img { transform: scale(1.05); }
.mgw-tile__body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.mgw-tile__body b { font-size: 17px; font-weight: 650; }
.mgw-tile__body span { color: var(--ink-soft); font-size: 14px; }
.mgw-tile__body strong { font-size: 16px; font-weight: 650; margin-top: 4px; }
@keyframes mgw-tile-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.mgw-table a { text-decoration: none; font-weight: 600; }
.mgw-table a:hover { color: var(--moss-dark); }

@media (max-width: 960px) {
  .mgw-coll__stage { grid-template-columns: 1fr; }
  .mgw-coll__info { padding-right: 0; }
  .mgw-coll__arrows { position: static; transform: none; margin-top: 18px; }
  .mgw-coll__strip { margin: 20px 0 0; grid-auto-columns: 72%; }
}
@media (prefers-reduced-motion: reduce) {
  .mgw-tile { animation: none; }
  .mgw-tile, .mgw-tile img, .mgw-coll__thumb, .mgw-coll__image { transition: none; }
}

/* четыре линейки квадратами: диапазон площадей на фото */
.mgw-lines4 { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mgw-line4 {
  display: flex; flex-direction: column; text-align: left; font: inherit; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0;
  overflow: hidden; cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.mgw-line4:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(20, 40, 25, .14); border-color: #b9d3a0; }
.mgw-line4__media { position: relative; display: block; overflow: hidden; }
.mgw-line4__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .6s ease; }
.mgw-line4:hover .mgw-line4__media img { transform: scale(1.06); }
.mgw-line4__badge, .mgw-tile__badge {
  position: absolute; left: 14px; bottom: 14px; padding: 7px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 14px; font-weight: 600;
  backdrop-filter: blur(6px);
}
.mgw-line4__body { display: grid; gap: 4px; padding: 16px 18px 20px; }
.mgw-line4__body b { font-size: 22px; font-weight: 650; letter-spacing: .01em; }
.mgw-line4__body span { color: var(--ink-soft); font-size: 15px; }

/* раскрываемый каталог всех проектов */
.mgw-catalog { margin-top: 30px; }
.mgw-catalog__toggle {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  font: inherit; font-size: 18px; font-weight: 600; color: var(--ink); cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px;
}
.mgw-catalog__toggle i {
  font-style: normal; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--moss); color: #12200a; font-size: 22px; transition: transform .25s;
}
.mgw-catalog__toggle[aria-expanded="true"] i { transform: rotate(45deg); }
.mgw-catalog__panel { padding-top: 22px; }
.mgw-catalog__panel .mgw-tiles { margin-top: 18px; }
.mgw-catalog__close { display: flex; margin: 26px auto 0; }
.mgw-tile__media { position: relative; display: block; overflow: hidden; }
.mgw-tile.is-replay { animation: none; }

@media (max-width: 1100px) { .mgw-lines4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mgw-lines4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mgw-line4__body b { font-size: 18px; } .mgw-line4__badge { font-size: 12px; left: 8px; bottom: 8px; } }
@media (prefers-reduced-motion: reduce) {
  .mgw-line4, .mgw-line4__media img, .mgw-catalog__toggle i { transition: none; }
}

/* типографика Manrope: чуть плотнее цифры и подписи */
.mgw b, .mgw strong { font-weight: 700; }
.mgw-kicker { font-weight: 700; letter-spacing: .16em; }
.mgw .mgw-btn { font-weight: 700; letter-spacing: -.005em; }
.mgw-line4__body b { font-weight: 800; letter-spacing: .02em; }
.mgw-facts b, .mgw-usp b { font-weight: 800; letter-spacing: -.02em; }

/* при наведении фасад плавно сменяется планировкой */
.mgw-flip { position: relative; display: block; overflow: hidden; }
.mgw-card__media { display: block; }
.mgw-flip__plan {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  background: #fff; padding: 12px; opacity: 0; transform: scale(1.06);
  transition: opacity .5s ease, transform .7s cubic-bezier(.2, .7, .2, 1); pointer-events: none;
}
.mgw-line4__badge, .mgw-tile__badge { z-index: 2; }
@media (hover: hover) {
  .mgw-line4:hover .mgw-flip__plan, .mgw-tile:hover .mgw-flip__plan, .mgw-card--link:hover .mgw-flip__plan,
  .mgw-line4:focus-visible .mgw-flip__plan, .mgw-tile:focus-visible .mgw-flip__plan, .mgw-card--link:focus-visible .mgw-flip__plan {
    opacity: 1; transform: none;
  }
}
@media (prefers-reduced-motion: reduce) { .mgw-flip__plan { transition: none; transform: none; } }
/* планировка в линейках и плитках — целиком, по центру, с полями. Правила «.mgw-line4__media img» и «.mgw-tile img»
   (cover для фасада) специфичнее и обрезали план по краям */
.mgw-line4__media img.mgw-flip__plan, .mgw-tile img.mgw-flip__plan {
  inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; object-position: 50% 50%;
  padding: 7%; box-sizing: border-box; background: #fff;
}

/* лента подборок: без полосы прокрутки, плавно и с примагничиванием карточек */
.mgw-coll__strip {
  scroll-behavior: smooth; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 12px 40px 22px 4px; scroll-padding-left: 4px;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 64px), transparent 100%);
          mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 64px), transparent 100%);
}
.mgw-coll__strip::-webkit-scrollbar { display: none; }
.mgw-coll__thumb { scroll-snap-align: start; transition: transform .35s cubic-bezier(.2, .7, .2, 1), background .3s, box-shadow .3s; }
.mgw-coll__thumb[aria-selected="true"] { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(20, 40, 25, .16); }
.mgw-coll__thumb img { transition: transform .6s ease; }
.mgw-coll__thumb:hover img { transform: scale(1.05); }
.mgw-coll__thumb { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .mgw-coll__strip { scroll-behavior: auto; }
  .mgw-coll__thumb, .mgw-coll__thumb img { transition: none; }
  .mgw-coll__thumb[aria-selected="true"] { transform: none; }
}

/* кнопка «Подробнее» в карточках услуг и шапка страницы услуги */
.mgw .mgw-usp__more { align-self: flex-start; margin-top: auto; }
.mgw-usp article p { margin-bottom: 14px; }
.mgw-service-hero { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 44px); align-items: start; }
.mgw-service-hero__mark {
  width: clamp(92px, 11vw, 150px); aspect-ratio: 1 / 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--moss); color: #12200a; font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; letter-spacing: -.03em;
}
@media (max-width: 700px) { .mgw-service-hero { grid-template-columns: 1fr; } }

/* таймлайн строительства: две дорожки этапов и шкала месяцев */
.mgw-timeline { overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.mgw-tl__lanes, .mgw-tl__axis { min-width: 820px; position: relative; }
.mgw-tl__lanes {
  height: 268px;
  background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(100% / var(--weeks) - 1px),
    rgba(29, 43, 36, .06) calc(100% / var(--weeks) - 1px), rgba(29, 43, 36, .06) calc(100% / var(--weeks)));
}
.mgw-tl__bar {
  position: absolute; left: calc(100% * var(--start) / var(--weeks)); width: calc(100% * var(--len) / var(--weeks) - 3px);
  top: calc((1 - var(--lane)) * 136px); height: 124px;
  display: flex; flex-direction: column; justify-content: space-between; padding: 12px 12px 14px;
  border-radius: 12px; color: #fff; overflow: hidden;
  transform-origin: left center; transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .2s;
  transition-delay: calc(var(--i) * 90ms);
}
.mgw-tl__bar.is-light { color: var(--ink); }
.mgw-tl__bar span { font-size: 13px; opacity: .8; white-space: nowrap; }
.mgw-tl__bar b { font-size: 15px; font-weight: 700; line-height: 1.2; }
.mgw-tl__bar:hover { filter: brightness(1.06); }
.mgw-reveal.mgw-timeline .mgw-tl__bar { transform: scaleX(.02); }
.mgw-reveal.mgw-timeline.is-visible .mgw-tl__bar { transform: none; }
.mgw-tl__axis { height: 44px; border-top: 2px solid var(--ink); margin-top: 12px; }
.mgw-tl__axis span {
  position: absolute; left: calc(100% * var(--at) / var(--weeks)); top: 0; transform: translateX(-50%);
  padding-top: 14px; font-size: 14px; color: var(--ink-soft); white-space: nowrap;
}
.mgw-tl__axis span::before { content: ''; position: absolute; left: 50%; top: 0; width: 2px; height: 10px; background: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .mgw-tl__bar { transition: none; }
  .mgw-reveal.mgw-timeline .mgw-tl__bar { transform: none; }
}

/* страницы услуг: первый экран, вводный блок, вопросы, этапы, плашки */
.mgw-hero--page img { height: clamp(420px, 64vh, 680px); }
.mgw-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(20px, 4vw, 64px); align-items: start; }
.mgw-intro .mgw-lead { max-width: none; }
.mgw-faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.mgw-faq details { border-bottom: 1px solid var(--line); }
.mgw-faq summary {
  list-style: none; cursor: pointer; display: flex; gap: 18px; align-items: baseline;
  padding: 20px 4px; font-size: 18px; font-weight: 600;
}
.mgw-faq summary::-webkit-details-marker { display: none; }
.mgw-faq summary span { font-size: 28px; font-weight: 700; color: #b9d3a0; min-width: 46px; }
.mgw-faq summary::after { content: '+'; margin-left: auto; color: var(--moss-dark); font-size: 26px; transition: transform .25s; }
.mgw-faq details[open] summary::after { transform: rotate(45deg); }
.mgw-faq details p { margin: -6px 0 20px 64px; color: var(--ink-soft); }
.mgw-flow { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.mgw-flow article { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 22px; }
.mgw-flow b { display: block; font-size: 44px; font-weight: 800; color: var(--moss); line-height: 1; margin-bottom: 14px; }
.mgw-flow h3 { color: #fff; margin-bottom: 10px; }
.mgw-flow p { color: #b3c0b7; font-size: 15px; }
.mgw-flow small { display: block; margin-top: 12px; color: #d9e8c0; font-size: 14px; }
.mgw-banner {
  background: linear-gradient(135deg, var(--deep), #34512e); color: #fff; border-radius: 22px;
  padding: clamp(28px, 4vw, 52px); text-align: center; display: grid; justify-items: center; gap: 12px;
}
.mgw-banner h2 { color: #fff; }
.mgw-banner p { color: #cfdcc9; max-width: 60ch; margin: 0 0 8px; }

/* сравнение «сами или с нами» и карточки этапов */
.mgw-compare { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mgw-compare__card { background: #fff; border-radius: 18px; padding: 26px; box-shadow: 0 10px 30px rgba(20, 40, 25, .07); }
.mgw-compare__card ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.mgw-compare__card li { color: var(--ink-soft); font-size: 15px; display: grid; }
.mgw-compare__card li b { color: var(--ink); font-size: 16px; }
.mgw-compare__tag { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; margin: 0; }
.mgw-compare__tag.is-minus { background: #fbe4e1; color: #a2382b; }
.mgw-compare__tag.is-plus { background: #e6f1d6; color: var(--moss-dark); }
.mgw-compare__card.is-accent { background: linear-gradient(160deg, #6f9312, #3f5f1f); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.mgw-compare__card.is-accent h3 { color: #fff; font-size: clamp(20px, 2vw, 26px); }
.mgw .mgw-compare__card.is-accent .mgw-btn { background: #fff; color: var(--ink); }
.mgw-phases { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mgw-phases--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mgw-phases article { background: linear-gradient(160deg, #4f6d18, #1d2b24); color: #fff; border-radius: 18px; padding: 26px; min-height: 230px; }
.mgw-phases article.is-light { background: #eef4e4; color: var(--ink); }
.mgw-phases h3 { text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; color: inherit; }
.mgw-phases ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.mgw-phases li { padding-left: 22px; position: relative; font-size: 15px; }
.mgw-phases li::before { content: '+'; position: absolute; left: 0; color: var(--moss); font-weight: 700; }

/* направления проектирования, команда, офис, ипотечный консультант */
.mgw-features { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mgw-features article { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.mgw-features img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mgw-features div { padding: 20px 22px 24px; }
.mgw-features p { color: var(--ink-soft); font-size: 15px; margin: 8px 0 0; }
.mgw-team { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mgw-team figure { margin: 0; border-radius: 18px; overflow: hidden; background: #fff; }
.mgw-team img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s ease; }
.mgw-team figure:hover img { transform: scale(1.04); }
.mgw-office { display: grid; gap: 16px; grid-template-columns: 1.3fr 1fr 1fr; margin-top: 16px; }
.mgw-office img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; }
.mgw-consult { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); background: var(--sand); border-radius: 22px; overflow: hidden; align-items: stretch; }
.mgw-consult img { width: 100%; height: auto; display: block; align-self: center; }
.mgw-consult > div { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
@media (max-width: 960px) { .mgw-consult img { max-height: 70vh; width: auto; margin: 0 auto; } }
.mgw-consult .mgw-btn { align-self: flex-start; margin-top: 8px; }

@media (max-width: 960px) {
  .mgw-intro, .mgw-compare, .mgw-consult { grid-template-columns: 1fr; }
  .mgw-phases, .mgw-phases--3, .mgw-features { grid-template-columns: 1fr 1fr; }
  .mgw-team { grid-template-columns: 1fr 1fr; }
  .mgw-office { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .mgw-phases, .mgw-phases--3, .mgw-features { grid-template-columns: 1fr; }
  .mgw-faq details p { margin-left: 0; }
}

/* галочка согласия: не растягиваем чекбокс на всю ширину, как текстовые поля */
.mgw .mgw-form .mgw-form__agree { display: flex; grid-template-columns: none; }
.mgw .mgw-form .mgw-form__agree input { width: 18px; height: 18px; min-height: 0; flex: 0 0 18px; padding: 0; margin: 2px 0 0; accent-color: var(--moss-dark); }
.mgw-form__row label { display: grid; gap: 6px; }

.mgw-team figcaption { padding: 14px 18px 18px; display: grid; gap: 2px; }
.mgw-team figcaption b { font-size: 18px; }
.mgw-team figcaption span { color: var(--ink-soft); font-size: 15px; }

/* три карточки внизу проекта: разбор плана, офис, инженер */
.mgw-meet { display: grid; grid-template-columns: 1.9fr 1fr 1fr; gap: 20px; }
.mgw-meet__big, .mgw-meet__card { position: relative; overflow: hidden; border-radius: 22px; min-height: 500px; }
.mgw-meet__big { color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 3vw, 40px); }
.mgw-meet__big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.mgw-meet__big::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,28,22,.78) 0%, rgba(20,28,22,.25) 55%, rgba(20,28,22,.55) 100%); }
.mgw-meet__big:hover img { transform: scale(1.04); }
.mgw-meet__body, .mgw-meet__big .mgw-btn { position: relative; z-index: 2; }
.mgw-meet__kicker { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.75); }
.mgw-meet__big h2 { color: #fff; max-width: 14ch; margin-bottom: 14px; }
.mgw-meet__big p:not(.mgw-meet__kicker) { max-width: 36ch; color: rgba(255,255,255,.9); font-size: 17px; margin: 0; }
.mgw .mgw-meet__big .mgw-btn { align-self: flex-start; background: #fff; color: var(--ink); }
.mgw .mgw-meet__big .mgw-btn:hover { background: var(--moss); }
.mgw-meet__card {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative; overflow: hidden; border-radius: 22px; min-height: 500px;
  display: flex; flex-direction: column; padding: clamp(24px, 2.4vw, 34px); color: #fff;
  background: linear-gradient(165deg, #4b6d22 0%, #2f4a1f 100%); font-family: inherit;
}
.mgw-meet__arrow {
  width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--deep); display: grid; place-items: center;
  font-size: 22px; margin-bottom: 36px; transition: transform .3s ease, background .3s ease;
}
.mgw-meet__card:hover .mgw-meet__arrow { transform: translateX(6px); background: var(--moss); }
.mgw-meet__card:focus-visible { outline: 3px solid var(--moss); outline-offset: 3px; }
.mgw-meet__card h3 { color: #fff; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; margin: 0 0 14px; }
.mgw-meet__card p { color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.5; margin: 0; position: relative; z-index: 2; }
/* фото снизу карточки уходит в зелёный фон */
.mgw-meet__card img {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 52%; object-fit: cover; object-position: center 35%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 38%); mask-image: linear-gradient(180deg, transparent 0%, #000 38%);
  transition: transform .8s ease;
}
.mgw-meet__card img.is-portrait {
  height: 44%; object-position: center 30%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%); mask-image: linear-gradient(180deg, transparent 0%, #000 14%);
}
/* на телефоне карточка выше и текст длиннее — фото опускаем, чтобы не резало лицо */
@media (max-width: 760px) {
  .mgw-meet__card { min-height: 560px; }
  .mgw-meet__card img { height: 46%; }
  .mgw-meet__card img.is-portrait { height: 40%; object-position: center 28%; }
}
.mgw-meet__card:hover img { transform: scale(1.05); }
@media (max-width: 1100px) {
  .mgw-meet { grid-template-columns: 1fr 1fr; }
  .mgw-meet__big { grid-column: 1 / -1; min-height: 440px; }
}
@media (max-width: 640px) {
  .mgw-meet { grid-template-columns: 1fr; }
  .mgw-meet__big, .mgw-meet__card { min-height: 420px; }
}

/* узкий этап таймлайна (1 неделя): подпись справа от полосы, как у Good Wood */
.mgw-tl__bar.is-narrow { overflow: visible; }
.mgw-tl__bar.is-narrow span, .mgw-tl__bar.is-narrow b { position: absolute; left: calc(100% + 10px); width: 150px; color: var(--ink); white-space: normal; }
.mgw-tl__bar.is-narrow span { top: 14px; }
.mgw-tl__bar.is-narrow b { bottom: 14px; }
/* запас справа под последнюю подпись шкалы «7,5 мес.» */
.mgw-tl__lanes, .mgw-tl__axis { margin-right: 44px; }

/* «Изменить планировку» с фото сотрудника */

/* этапы: карточки чуть покачиваются и светятся сзади */
.mgw-section--deep .mgw-flow { perspective: 900px; }
.mgw-flow article {
  position: relative; transform-origin: 50% 0%;
  animation: mgw-swing 6.5s ease-in-out infinite;
  will-change: transform;
}
.mgw-flow article::before {
  content: ''; position: absolute; inset: -14px; border-radius: 26px; z-index: -1;
  background: radial-gradient(60% 55% at 50% 50%, rgba(148, 193, 31, .55), rgba(148, 193, 31, 0) 72%);
  filter: blur(26px); opacity: .28;
  animation: mgw-glow 6.5s ease-in-out infinite;
}
.mgw-flow article:hover { animation-play-state: paused; }
.mgw-flow article:hover::before { opacity: .6; }
.mgw-flow article:nth-child(2), .mgw-flow article:nth-child(2)::before { animation-delay: -.8s; }
.mgw-flow article:nth-child(3), .mgw-flow article:nth-child(3)::before { animation-delay: -1.6s; }
.mgw-flow article:nth-child(4), .mgw-flow article:nth-child(4)::before { animation-delay: -2.4s; }
.mgw-flow article:nth-child(5), .mgw-flow article:nth-child(5)::before { animation-delay: -3.2s; }
.mgw-flow article:nth-child(6), .mgw-flow article:nth-child(6)::before { animation-delay: -4s; }
.mgw-flow article:nth-child(7), .mgw-flow article:nth-child(7)::before { animation-delay: -4.8s; }
@keyframes mgw-swing {
  0%, 100% { transform: rotate(-0.7deg) translateY(0); }
  50% { transform: rotate(0.7deg) translateY(-6px); }
}
@keyframes mgw-glow {
  0%, 100% { opacity: .18; }
  50% { opacity: .42; }
}
@media (prefers-reduced-motion: reduce) {
  .mgw-flow article, .mgw-flow article::before { animation: none; }
}

/* блок проектирования: текст на фото, фон медленно наезжает */
.mgw-design { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.mgw-design__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  filter: saturate(.85);
  animation: mgw-kenburns 26s ease-in-out infinite alternate; will-change: transform;
}
.mgw-design::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(14,22,16,.93) 0%, rgba(14,22,16,.82) 42%, rgba(14,22,16,.55) 100%);
}
.mgw-design .mgw-kicker { color: var(--moss); }
.mgw-design h2 { color: #fff; }
.mgw-design .mgw-lead { color: rgba(255,255,255,.88); }
.mgw-design .mgw-steps article { border-top-color: var(--moss); background: rgba(255,255,255,.07); border-radius: 0 0 16px 16px; padding: 18px 20px 22px; backdrop-filter: blur(4px); }
.mgw-design .mgw-steps h3 { color: #fff; }
.mgw-design .mgw-steps p { color: rgba(255,255,255,.78); }
.mgw-design .mgw-steps article span { color: var(--moss); }
.mgw .mgw-design .mgw-btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.mgw .mgw-design .mgw-btn--ghost:hover { background: #fff; color: var(--ink); }
@keyframes mgw-kenburns {
  from { transform: scale(1.06) translate3d(-1.5%, 0, 0); }
  to { transform: scale(1.16) translate3d(1.5%, -2%, 0); }
}
@media (prefers-reduced-motion: reduce) { .mgw-design__bg { animation: none; } }

/* «Пять шагов»: карточки с крупным номером и растущей линией */
.mgw-section:not(.mgw-design) .mgw-steps article {
  position: relative; border-top: none; padding: 26px 24px 28px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.mgw-section:not(.mgw-design) .mgw-steps article::before {
  content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 38%;
  background: linear-gradient(90deg, var(--moss), var(--moss-dark)); border-radius: 0 4px 4px 0;
  transition: width .45s ease;
}
.mgw-section:not(.mgw-design) .mgw-steps article:hover {
  transform: translateY(-6px); border-color: transparent;
  box-shadow: 0 18px 40px rgba(20, 40, 25, .12);
}
.mgw-section:not(.mgw-design) .mgw-steps article:hover::before { width: 100%; }
.mgw-section:not(.mgw-design) .mgw-steps article::after {
  content: ''; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(148, 193, 31, .22), transparent 70%); opacity: 0; transition: opacity .35s ease;
}
.mgw-section:not(.mgw-design) .mgw-steps article:hover::after { opacity: 1; }
.mgw-section:not(.mgw-design) .mgw-steps span {
  display: block; font-size: 40px; font-weight: 800; line-height: 1;
  color: #d8e8bb; margin-bottom: 10px; transition: color .3s ease;
}
.mgw-section:not(.mgw-design) .mgw-steps article:hover span { color: var(--moss-dark); }
.mgw-section:not(.mgw-design) .mgw-steps h3 { font-size: 20px; }

/* в карточках нижнее фото не должно срезать голову */
.mgw-meet__card img { object-position: center 30%; }
@media (max-width: 760px) { .mgw-meet__card img { height: 42%; } }

/* блок четырёх услуг сразу под первым экраном — на песочном фоне */
.mgw-section--sand .mgw-usp article { background: #fff; }

/* тёмный блок этапов: фото на заднике с медленным движением */
.mgw-deep { position: relative; overflow: hidden; isolation: isolate; }
.mgw-deep__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  filter: saturate(.85);
  animation: mgw-kenburns 30s ease-in-out infinite alternate; will-change: transform;
}
.mgw-deep::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(16,26,19,.93), rgba(16,26,19,.88));
}
@media (prefers-reduced-motion: reduce) { .mgw-deep__bg { animation: none; } }

/* «Для нас важно» — короткая мысль крупно */
.mgw-intro .mgw-lead { font-size: clamp(22px, 2.3vw, 32px); font-weight: 600; line-height: 1.32; color: var(--ink); }

/* фирменный логотип в шапке вместо буквенной заглушки */
.mgw-brand img { height: 32px; width: auto; display: block; }
.mgw-brand span[aria-hidden] { display: none; }
@media (max-width: 640px) { .mgw-brand img { height: 26px; } }

/* варианты оплаты */
.mgw-pay__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 60px); align-items: end; margin-bottom: 34px; }
.mgw-pay__head .mgw-lead { margin-bottom: 18px; }
.mgw-pay { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mgw-pay article {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px 30px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.mgw-pay article:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 18px 40px rgba(20,40,25,.12); }
.mgw-pay b {
  width: 52px; height: 52px; border-radius: 50%; background: #eaf3d8; color: var(--moss-dark);
  display: grid; place-items: center; font-size: 20px; font-weight: 800; margin-bottom: 8px;
}
.mgw-pay p { color: var(--ink-soft); font-size: 15px; margin: 0 0 6px; }
.mgw-pay .mgw-btn { align-self: flex-start; margin-top: auto; }
.mgw-footer__bottom a { text-decoration: underline; }
@media (max-width: 960px) { .mgw-pay { grid-template-columns: 1fr; } .mgw-pay__head { grid-template-columns: 1fr; align-items: start; } }

/* карта с офисом перед подвалом */
.mgw-map { position: relative; overflow: hidden; height: clamp(360px, 46vh, 520px); }
/* виджет выше блока: нижнюю полосу с рекламой Яндекса прячем за край */
.mgw-map iframe { display: block; width: 100%; height: calc(clamp(360px, 46vh, 520px) + 190px); border: 0; filter: grayscale(.25); }
.mgw-map__card {
  position: absolute; left: clamp(16px, 6vw, 90px); top: 50%; transform: translateY(-50%);
  background: #fff; border-radius: 20px; padding: 28px 30px; max-width: 360px;
  box-shadow: 0 18px 44px rgba(20, 40, 25, .18); display: grid; gap: 8px;
}
.mgw-map__card h3 { font-size: 24px; margin-bottom: 6px; }
.mgw-map__card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.mgw-map__card b { color: var(--ink); font-weight: 600; }
.mgw-map__card a { color: var(--moss-dark); text-decoration: underline; }
.mgw-map__links { display: flex; gap: 16px; }
.mgw-map__card .mgw-btn { justify-self: start; margin-top: 8px; }
@media (max-width: 720px) {
  .mgw-map { display: grid; height: auto; }
  .mgw-map iframe { height: 490px; margin-bottom: -190px; }
  .mgw-map__card { position: static; transform: none; max-width: none; border-radius: 0; box-shadow: none; }
}

/* фото участка в карточке сравнения */
.mgw-compare__card { display: flex; flex-direction: column; }
.mgw-compare__photo { width: calc(100% + 52px); margin: -26px -26px 20px; border-radius: 18px 18px 0 0; aspect-ratio: 4 / 3; object-fit: cover; }

/* кнопки и поля не наследуют шрифт страницы — задаём явно */
.mgw button, .mgw input, .mgw select, .mgw textarea, .mgw .mgw-btn, .mgw-orbit, .mgw-sound {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.mgw-orbit b, .mgw-orbit span { font-family: inherit; }

/* уведомление о cookie */
.mgw-cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; margin: 0 auto; max-width: 880px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px;
  box-shadow: 0 18px 44px rgba(20, 40, 25, .18);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.mgw-cookie p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); flex: 1 1 380px; }
.mgw-cookie a { color: var(--moss-dark); text-decoration: underline; }
.mgw-cookie__buttons { display: flex; gap: 10px; flex: 0 0 auto; }
@media (max-width: 640px) {
  .mgw-cookie { padding: 16px 18px; gap: 14px; }
  .mgw-cookie__buttons { width: 100%; }
  .mgw-cookie__buttons .mgw-btn { flex: 1; justify-content: center; }
}

/* карточки оплаты: тёмно-зелёный металлик */
.mgw-pay article {
  position: relative; overflow: hidden; border: 0; color: #fff;
  background:
    linear-gradient(140deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 38%),
    linear-gradient(145deg, #2c4a30 0%, #1d3321 42%, #35553a 68%, #15241a 100%);
  box-shadow: 0 14px 34px rgba(12, 24, 15, .28), inset 0 1px 0 rgba(255,255,255,.12);
}
.mgw-pay article::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.14) 48%, transparent 58%);
  transform: translateX(-30%); transition: transform .9s ease;
}
.mgw-pay article:hover::after { transform: translateX(30%); }
.mgw-pay article:hover { box-shadow: 0 22px 46px rgba(12, 24, 15, .38), inset 0 1px 0 rgba(255,255,255,.18); }
.mgw-pay h3 { color: #fff; position: relative; z-index: 1; }
.mgw-pay p { color: rgba(255,255,255,.80); position: relative; z-index: 1; }
.mgw-pay b {
  position: relative; z-index: 1; color: #d7ea9f;
  background: linear-gradient(150deg, rgba(255,255,255,.18), rgba(255,255,255,.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.mgw .mgw-pay .mgw-btn { position: relative; z-index: 1; background: #fff; color: var(--ink); }
.mgw .mgw-pay .mgw-btn:hover { background: var(--moss); color: #12200a; }

/* иконки услуг вместо символов */
.mgw-icon { width: 30px; height: 30px; display: block; }
.mgw-usp b, .mgw-pay b { color: var(--moss-dark); }
.mgw-usp b { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #eef4e4; }
.mgw-pay b .mgw-icon { width: 26px; height: 26px; }
.mgw-service-hero__mark .mgw-icon { width: 38px; height: 38px; }
/* баннер cookie: на телефоне одной полосой, не на пол-экрана */
@media (max-width: 640px) {
  .mgw-cookie { padding: 12px 14px; gap: 10px; border-radius: 16px 16px 0 0; }
  .mgw-cookie p { font-size: 13px; line-height: 1.4; }
  .mgw-cookie__buttons { gap: 8px; }
  .mgw-cookie .mgw-btn { padding: 9px 12px; font-size: 13px; }
}

/* карточки комплектаций: цена — крупным текстом, а не иконкой в квадрате */
.mgw-usp--price b {
  width: auto; height: auto; background: none; border-radius: 0; display: block;
  font-size: clamp(22px, 2vw, 27px); white-space: nowrap; color: var(--ink); margin-bottom: 10px;
}

/* галочка согласия: подпись в одну строку рядом с квадратиком */
.mgw .mgw-form .mgw-form__agree { align-items: center; gap: 8px; }
.mgw .mgw-form .mgw-form__agree span { font-size: 13.5px; line-height: 1.25; }
@media (max-width: 420px) { .mgw .mgw-form .mgw-form__agree span { font-size: 12.5px; } }

/* блок про камин: тёплый тёмный фон с фото дома */
.mgw-fire { position: relative; overflow: hidden; isolation: isolate; color: #fff; }
.mgw-fire__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mgw-fire::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(18,22,18,.95) 0%, rgba(18,22,18,.86) 48%, rgba(30,26,18,.6) 100%);
}
.mgw-fire__inner > div { max-width: 640px; }
.mgw-fire h2 { color: #fff; }
.mgw-fire .mgw-kicker { color: #f0b35a; }
.mgw-fire .mgw-lead { color: rgba(255,255,255,.88); }
.mgw-fire__list { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; gap: 14px; }
.mgw-fire__list li { display: grid; gap: 2px; padding-left: 22px; position: relative; }
.mgw-fire__list li::before {
  content: ''; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; border-radius: 50%;
  background: #f0b35a; box-shadow: 0 0 12px rgba(240,179,90,.8);
}
.mgw-fire__list b { color: #fff; font-size: 17px; }
.mgw-fire__list span { color: rgba(255,255,255,.72); font-size: 15px; }

/* акцент на камине в первом экране проектов Норден */
.mgw-params li.is-fire { background: #fdf1de; color: #8a5a18; border-color: #f3d9ae; }
.mgw-fire-note { margin: 0 0 20px; font-size: 15px; color: var(--ink-soft); max-width: 46ch; }
.mgw-fire-note a { color: #a5701f; text-decoration: underline; font-weight: 600; }

/* фото в зелёных карточках: аккуратный кадр со скруглением вместо растворения в фоне */
.mgw-meet__card img, .mgw-meet__card img.is-portrait {
  left: 18px; right: 18px; bottom: 18px; width: auto; height: 46%;
  border-radius: 16px; object-position: center 28%;
  -webkit-mask-image: none; mask-image: none;
}
@media (max-width: 760px) {
  .mgw-meet__card img, .mgw-meet__card img.is-portrait { height: 42%; }
}

/* команда: карточки подстраиваются под число сотрудников (их стало пять) */
.mgw-team { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
/* шапка на телефоне: кнопка в одну строку, логотип не поджимается */
@media (max-width: 640px) {
  .mgw-header__actions { gap: 8px; }
  .mgw-header__actions .mgw-btn { padding: 10px 14px; font-size: 13px; white-space: nowrap; }
  .mgw-brand img { height: 24px; }
  .mgw-orbit { width: 74px; height: 74px; right: 10px; bottom: 10px; }
  .mgw-orbit b { font-size: 21px; }
  .mgw-orbit span { font-size: 9.5px; }
}

/* цена не разрывается переносом строки */
.mgw-nowrap { white-space: nowrap; }

/* два блока подряд на одном фоне: не удваиваем отступ между ними */
.mgw-section--sand + .mgw-section--sand { padding-top: 0; }
.mgw-section--deep + .mgw-section--deep { padding-top: 0; }

/* полоса-захват между двумя тёмными блоками */
.mgw-pick__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.mgw-pick__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 30px); }
@media (max-width: 860px) { .mgw-pick__inner { grid-template-columns: 1fr; } }

/* значки мессенджеров в шапке */
.mgw-msgr {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  text-decoration: none; font-size: 12px; font-weight: 800; letter-spacing: .02em;
  transition: transform .2s ease, filter .2s ease;
}
.mgw-msgr:hover { transform: translateY(-2px); filter: brightness(1.05); }
.mgw-msgr--max { background: #7d5cff; color: #fff; }
.mgw-msgr--tg { background: #2aa3ef; color: #fff; }
.mgw-msgr svg { width: 22px; height: 22px; }
@media (max-width: 640px) { .mgw-msgr { width: 36px; height: 36px; border-radius: 10px; font-size: 11px; } .mgw-msgr svg { width: 18px; height: 18px; } }

/* этапы работы с участком: матовые карточки на фоне земли */
.mgw-phases-bg { position: relative; overflow: hidden; isolation: isolate; color: #fff; }
.mgw-phases-bg__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mgw-phases-bg::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18,26,20,.82), rgba(18,26,20,.72)); }
.mgw-phases-bg h2 { color: #fff; }
.mgw-phases--glass article, .mgw-phases--glass article.is-light {
  background: linear-gradient(150deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.28); color: #fff;
  backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 12px 30px rgba(10,20,12,.25);
}
.mgw-phases--glass li { color: rgba(255,255,255,.88); }
.mgw-phases--glass li::before { color: #cbe58a; }

/* шапка на телефоне: логотип не сжимается, кнопка укорачивается */
.mgw-brand { flex: 0 0 auto; }
.mgw-brand img { flex: none; width: auto; max-width: none; }
.mgw-header__row { gap: 10px; }
.mgw-header__actions { flex-wrap: nowrap; }
@media (max-width: 560px) {
  .mgw-hide-sm { display: none; }
  .mgw-header__actions .mgw-btn { padding: 10px 13px; font-size: 13px; }
  .mgw-brand img { height: 22px; }
}

/* значки мессенджеров: настоящие логотипы, круглая форма */
.mgw-msgr { border-radius: 50%; overflow: hidden; }
.mgw-msgr--max { background: #fff; padding: 0; }
.mgw-msgr--max img { width: 100%; height: 100%; display: block; }
.mgw-msgr--tg { background: #2aabee; }
.mgw-msgr--tg svg { width: 21px; height: 21px; margin-right: 1px; }

/* интерьеры на странице проекта */
.mgw-interior { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mgw-interior figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.mgw-interior img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s ease; }
.mgw-interior figure:hover img { transform: scale(1.03); }
.mgw-interior figcaption { padding: 16px 20px 20px; display: grid; gap: 4px; }
.mgw-interior figcaption b { font-size: 18px; }
.mgw-interior figcaption span { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 760px) { .mgw-interior { grid-template-columns: 1fr; } }

/* ипотечный брокер: компактный блок, а не полотно на пол-экрана */
.mgw-consult { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: stretch; }
.mgw-consult img { height: 100%; width: 100%; max-height: 300px; object-fit: cover; object-position: center 18%; align-self: stretch; }
.mgw-consult > div { padding: clamp(20px, 2.4vw, 34px) clamp(22px, 3vw, 44px); gap: 8px; }
.mgw-consult h2 { font-size: clamp(22px, 2.2vw, 30px); }
.mgw-consult .mgw-lead { font-size: 16px; line-height: 1.5; max-width: 62ch; }
.mgw-consult .mgw-btn { margin-top: 4px; }
@media (max-width: 960px) {
  .mgw-consult { grid-template-columns: 1fr; }
  .mgw-consult img { max-height: 220px; width: 100%; margin: 0; object-position: center 15%; }
}

/* «Изменить планировку»: компактнее — фото меньше, отступы плотнее */

/* задник блока «Изменить планировку»: план этого же дома, приглушённый */

/* в блоке камина фон — короткое видео с живым огнём */
video.mgw-fire__bg { object-fit: cover; }


/* брокер на телефоне: кадр по лицу, портрет читается целиком */
@media (max-width: 960px) {
  .mgw-consult img { max-height: 280px; object-position: center 26%; }
}

/* интерьеры: вертикальные кадры, до трёх в ряд */
.mgw-interior { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.mgw-interior img { aspect-ratio: 4 / 5; }
@media (max-width: 760px) { .mgw-interior { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mgw-interior figcaption { padding: 12px 14px 16px; }
  .mgw-interior figcaption b { font-size: 16px; }
  .mgw-interior figcaption span { font-size: 13px; }
}

/* первый экран услуг с инфографикой справа */
.mgw-service-hero--info { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(280px, 380px); gap: clamp(20px, 3vw, 44px); align-items: start; }
.mgw-infocard { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-self: center; }
.mgw-infocard > div {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px;
  display: grid; gap: 4px; transition: transform .3s ease, box-shadow .3s ease;
}
.mgw-infocard > div:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20,40,25,.10); }
.mgw-infocard b { font-size: clamp(20px, 2vw, 26px); font-weight: 800; color: var(--moss-dark); line-height: 1.1; }
.mgw-infocard span { font-size: 13.5px; color: var(--ink-soft); line-height: 1.35; }
.mgw-infocard i { display: block; font-style: normal; font-size: 12.5px; color: var(--moss-dark); font-weight: 600; margin-top: 2px; }
.mgw-infocard--steps b {
  width: 34px; height: 34px; border-radius: 50%; background: #eef4e4; color: var(--moss-dark);
  display: grid; place-items: center; font-size: 16px;
}
.mgw-infocard--steps > div { grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
.mgw-infocard p { grid-column: 1 / -1; margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); }

/* путь клиента: нумерованные шаги, соединённые линией */
.mgw-road { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; position: relative; }
.mgw-road article { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px 26px; }
.mgw-road article::after {
  content: ''; position: absolute; right: -16px; top: 46px; width: 16px; height: 2px; background: var(--line);
}
.mgw-road article:last-child::after { display: none; }
.mgw-road b {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--moss); color: #14200a; font-size: 18px; font-weight: 800; margin-bottom: 14px;
}
.mgw-road h3 { font-size: 19px; margin-bottom: 6px; }
.mgw-road p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* годы стройки: точки на линии времени */
.mgw-phases--road article { position: relative; }
.mgw-phases--road article::before {
  content: ''; position: absolute; left: 26px; top: -14px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--moss); box-shadow: 0 0 0 4px rgba(148,193,31,.25);
}
@media (max-width: 1100px) {
  .mgw-service-hero--info { grid-template-columns: auto minmax(0, 1fr); }
  .mgw-infocard { grid-column: 1 / -1; }
  .mgw-road article::after { display: none; }
}
@media (max-width: 560px) { .mgw-infocard { grid-template-columns: 1fr; } }

/* анимация в первом экране услуги: над плиткой с цифрами */
.mgw-service-hero--info { grid-template-rows: auto auto; }
.mgw-hero-anim { grid-column: 3; align-self: start; }
.mgw-hero-anim video { width: 100%; height: auto; display: block; border-radius: 18px; background: var(--sand); }
.mgw-service-hero--info .mgw-infocard { grid-column: 3; margin-top: 14px; align-self: start; }

@media (max-width: 1100px) {
  .mgw-hero-anim { grid-column: 1 / -1; max-width: 360px; margin: 0 auto; }
  .mgw-service-hero--info .mgw-infocard { grid-column: 1 / -1; }
}

/* доводы под кнопками в первом экране услуги */
.mgw-hero-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; max-width: 54ch; }
.mgw-hero-points li { position: relative; padding-left: 30px; color: var(--ink); font-size: 16px; line-height: 1.45; }
.mgw-hero-points li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #eef4e4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f9312' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/11px no-repeat;
}
/* первый экран услуги компактнее по высоте */
.mgw-service-hero--info { align-items: start; }


/* первый экран услуги во всю ширину: видео или фото на заднике, текст поверх */
.mgw-film { position: relative; isolation: isolate; overflow: hidden; background: #1D2B24; }
.mgw-film__media { position: absolute; inset: 0; z-index: -2; }
.mgw-film__media img,
.mgw-film__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mgw-film__media video { z-index: 1; }
.mgw-film__media .is-zoom { animation: mgw-film-zoom 24s ease-in-out infinite alternate; }
@keyframes mgw-film-zoom { from { transform: scale(1); } to { transform: scale(1.09); } }
.mgw-film::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(14,24,18,.86) 0%, rgba(14,24,18,.72) 46%, rgba(14,24,18,.42) 100%);
}
.mgw-film__body {
  position: relative; z-index: 1; color: #fff;
  padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 6vw, 84px);
  min-height: clamp(560px, 78vh, 760px); display: flex; flex-direction: column; justify-content: center;
}
.mgw-film__crumbs { font-size: 13.5px; color: rgba(255,255,255,.72); margin-bottom: 18px; }
.mgw-film__crumbs a { color: rgba(255,255,255,.86); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.mgw-film__crumbs a:hover { color: #fff; }
.mgw-film__kicker {
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  color: var(--moss); margin-bottom: 14px;
}
.mgw-film h1 { color: #fff; max-width: 19ch; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.06; }
.mgw-film__lead { margin-top: 22px; max-width: 58ch; font-size: clamp(16px, 1.25vw, 19px); color: rgba(255,255,255,.86); }
.mgw-film__buttons { margin-top: 28px; }
.mgw-btn--light { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.mgw-btn--light:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

/* путь клиента прямо в первом экране */
.mgw-film__steps {
  list-style: none; margin: clamp(34px, 5vw, 56px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.mgw-film__steps li {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  padding: 16px 18px; border-radius: 16px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.mgw-film__steps b {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--moss); color: #14200a; font-size: 14px; font-weight: 800;
}
.mgw-film__steps span { font-size: 15.5px; font-weight: 700; line-height: 1.25; }
.mgw-film__steps i { display: block; font-style: normal; font-weight: 500; font-size: 13.5px; color: rgba(255,255,255,.76); margin-top: 4px; }

/* полоса под первым экраном: анимация и цифры */
.mgw-section--tight { padding-top: clamp(28px, 3vw, 44px); }
.mgw-factbar { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: center; }
.mgw-factbar__anim { border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.mgw-factbar__anim video { display: block; width: 100%; height: auto; }

/* карточки сравнения: без фото, с галочками и крестиками */
.mgw-compare__card--plus { border-color: rgba(148,193,31,.55); box-shadow: 0 14px 34px rgba(20,40,25,.07); }
.mgw-compare__card--minus li::before,
.mgw-compare__card--plus li::before {
  position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
}
.mgw-compare__card--minus li,
.mgw-compare__card--plus li { position: relative; padding-left: 30px; }
.mgw-compare__card--minus li::before { content: '✕'; background: #fbe9e6; color: #b8452c; }
.mgw-compare__card--plus li::before { content: '✓'; background: #eef4e4; color: var(--moss-dark); }

@media (max-width: 1100px) {
  .mgw-film__steps { grid-template-columns: repeat(2, 1fr); }
  .mgw-factbar { grid-template-columns: 1fr; }
  .mgw-factbar__anim { max-width: 320px; }
}
@media (max-width: 640px) {
  .mgw-film__body { min-height: 0; padding-bottom: 34px; }
  .mgw-film h1 { max-width: none; }
  .mgw-film__steps { grid-template-columns: 1fr; gap: 10px; }
  .mgw-film__steps li { padding: 13px 15px; }
}

/* цифры в зелёной карточке сравнения */
.mgw-compare__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 0; }
.mgw-compare__facts div { border-top: 1px solid rgba(255,255,255,.28); padding-top: 10px; }
.mgw-compare__facts dt { font-size: clamp(17px, 1.5vw, 21px); font-weight: 800; color: #fff; line-height: 1.1; }
.mgw-compare__facts dd { margin: 4px 0 0; font-size: 12.5px; color: rgba(255,255,255,.78); line-height: 1.3; }
.mgw-compare__card.is-accent { display: flex; flex-direction: column; }
.mgw-compare__card.is-accent .mgw-btn { margin-top: auto; }
@media (max-width: 560px) { .mgw-compare__facts { grid-template-columns: 1fr 1fr; } }

/* текст + иллюстрация в две колонки */
.mgw-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.mgw-split--solo { grid-template-columns: 1fr; }
.mgw-split--solo .mgw-lead { max-width: 74ch; }
.mgw-split--solo .mgw-split__list { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.mgw-split__list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.mgw-split__list li { position: relative; padding-left: 30px; font-size: 15px; color: var(--ink-soft); line-height: 1.45; }
.mgw-split__list li::before {
  content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: #eef4e4; color: var(--moss-dark); display: grid; place-items: center; font-size: 11px; font-weight: 800;
}
.mgw-split__list b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.mgw-split__figure { margin: 0; }
.mgw-split__figure img { display: block; width: 100%; height: auto; border-radius: 22px; }
.mgw-split__figure figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-soft); text-align: center; }
@media (max-width: 900px) { .mgw-split { grid-template-columns: 1fr; } }

/* другие услуги: карточки с фотографией */
.mgw-others { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.mgw-others__card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.mgw-others__card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(20,40,25,.12); border-color: rgba(148,193,31,.5); }
.mgw-others__photo { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.mgw-others__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mgw-others__card:hover .mgw-others__photo img { transform: scale(1.05); }
.mgw-others__photo b {
  position: absolute; left: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 14px;
  background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 8px 18px rgba(20,40,25,.16);
}
.mgw-others__photo b svg { width: 22px; height: 22px; }
.mgw-others__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; flex: 1; }
.mgw-others__body h3 { font-size: 19px; margin: 0; }
.mgw-others__text { font-size: 14.5px; color: var(--ink-soft); line-height: 1.45; }
.mgw-others__more {
  margin-top: auto; padding-top: 12px; font-size: 14.5px; font-weight: 700; color: var(--moss-dark);
  display: inline-flex; align-items: center; gap: 6px;
}
.mgw-others__more::after { content: '→'; transition: transform .3s ease; }
.mgw-others__card:hover .mgw-others__more::after { transform: translateX(4px); }

/* левая колонка блока вопросов */
.mgw-faq__aside { margin-top: 14px; font-size: 15px; color: var(--ink-soft); line-height: 1.5; max-width: 34ch; }

.mgw-split__figure video { display: block; width: 100%; height: auto; border-radius: 22px; background: #efece4; }

/* блок «другие услуги» на тёмном фоне: белые карточки перестают сливаться */
.mgw-section--deep .mgw-kicker { color: var(--moss); }
.mgw-section--deep .mgw-others__card { background: #fff; border-color: rgba(255,255,255,.14); color: var(--ink); }
.mgw-section--deep .mgw-others__card h3 { color: var(--ink); }
.mgw-section--deep .mgw-others__text { color: var(--ink-soft); }
.mgw-section--deep .mgw-others__more { color: var(--moss-dark); }
.mgw-others__photo b { color: var(--ink); }
.mgw-section--deep .mgw-others__card:hover { box-shadow: 0 22px 44px rgba(0,0,0,.35); }

/* при выключенных анимациях системы видео не играет само — даём кнопку включить */
.mgw-fire, .mgw-hero-anim, .mgw-split__figure, .mgw-factbar__anim { position: relative; }
.mgw-videoplay {
  position: absolute; right: 14px; bottom: 14px; z-index: 4;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.94); color: var(--ink); font: 600 14px/1 'Manrope', sans-serif;
  box-shadow: 0 10px 24px rgba(20,40,25,.18);
}
.mgw-videoplay::before { content: '▶'; font-size: 11px; color: var(--moss-dark); }
.mgw-videoplay:hover { background: #fff; }

/* карточка ипотечного брокера: белая, отделяется рамкой, а не заливкой */
.mgw-consult { background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 36px rgba(20,40,25,.06); }
.mgw-section--sand .mgw-consult { box-shadow: 0 16px 36px rgba(20,40,25,.08); }

/* планировка в карточке «с чем приходят»: показываем целиком, не обрезая */
.mgw-features img.is-plan { object-fit: contain; background: #fff; padding: 6px 10px; }

/* нумерованные карточки состава проекта */
.mgw-grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.mgw-grid-cards article {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 24px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.mgw-grid-cards article:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(20,40,25,.10); }
.mgw-grid-cards b { display: block; font-size: 13px; font-weight: 800; color: var(--moss-dark); letter-spacing: .08em; margin-bottom: 10px; }
.mgw-grid-cards h3 { font-size: 18px; margin: 0 0 6px; }
.mgw-grid-cards p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.45; }

/* принципы проектирования: текстовая сетка с линиями */
.mgw-principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(20px, 3vw, 40px); }
.mgw-principles article { border-top: 2px solid var(--moss); padding-top: 18px; }
.mgw-principles h3 { font-size: 19px; margin: 0 0 8px; }
.mgw-principles p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }

/* примеры планировок */
.mgw-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.mgw-plans__item {
  display: block; text-decoration: none; color: inherit; background: #fff;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.mgw-plans__item:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(20,40,25,.12); border-color: rgba(148,193,31,.5); }
.mgw-plans__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; padding: 8px; }
.mgw-plans__item span { display: grid; gap: 2px; padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.mgw-plans__item b { font-size: 16px; }
.mgw-plans__item i { font-style: normal; font-size: 13.5px; color: var(--ink-soft); }

/* полоса крупных цифр под первым экраном */
.mgw-numbers { background: var(--deep); color: #eef1ed; padding: clamp(26px, 3.4vw, 44px) 0; }
.mgw-numbers__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(18px, 3vw, 40px); }
.mgw-numbers__grid > div { display: grid; gap: 8px; align-content: start; }
.mgw-numbers b { font-size: clamp(30px, 3.6vw, 52px); font-weight: 800; line-height: 1; color: #fff; }
.mgw-numbers span { font-size: 14.5px; line-height: 1.45; color: #b7c4bb; max-width: 30ch; }

/* широкий кадр с текстом поверх */
.mgw-wide { padding: clamp(70px, 9vw, 130px) 0; }
.mgw-wide__text { max-width: 46ch; }
.mgw-wide__text h2 { color: #fff; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; margin: 12px 0 18px; }
.mgw-wide__text p { color: #c7d2c9; font-size: 17px; line-height: 1.6; margin: 0 0 26px; }

/* крупная витрина домов: первый кадр во всю ширину, остальные втроём */
.mgw-showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mgw-showcase figure { margin: 0; position: relative; border-radius: 22px; overflow: hidden; background: #000; }
.mgw-showcase figure.is-lead { grid-column: 1 / -1; }
.mgw-showcase img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; transition: transform .7s ease; }
.mgw-showcase figure.is-lead img { aspect-ratio: 21 / 9; }
.mgw-showcase figure:hover img { transform: scale(1.04); }
.mgw-showcase figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 20px; display: grid; gap: 4px; color: #fff;
  background: linear-gradient(180deg, rgba(10,18,13,0), rgba(10,18,13,.82));
}
.mgw-showcase figcaption b { font-size: clamp(17px, 1.8vw, 22px); }
.mgw-showcase figcaption span { font-size: 14px; color: rgba(255,255,255,.82); line-height: 1.4; }
@media (max-width: 900px) { .mgw-showcase { grid-template-columns: 1fr 1fr; } .mgw-showcase figure.is-lead img { aspect-ratio: 16 / 9; } }
@media (max-width: 560px) { .mgw-showcase { grid-template-columns: 1fr; } }

/* планировки крупнее: ровно три в ряд, шесть карточек ложатся двумя рядами */
.mgw-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .mgw-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .mgw-plans { grid-template-columns: 1fr; } }

/* ——— раскладка страницы услуги: крупная типографика и строки вместо карточек ——— */
.mgw-topline { padding-bottom: clamp(30px, 4vw, 50px); }
.mgw-film__crumbs--dark { color: var(--ink-soft); margin-bottom: 26px; }
.mgw-film__crumbs--dark a { color: var(--ink); border-bottom-color: var(--line); }
.mgw-topline__title { font-size: clamp(32px, 5.2vw, 72px); line-height: 1.03; max-width: 18ch; margin: 0 0 clamp(24px, 3vw, 40px); }
.mgw-topline__row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(20px, 4vw, 60px); align-items: end; }
.mgw-topline__row p { margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.6; max-width: 56ch; }

/* широкий кадр между секциями */
.mgw-shot { margin: 0; }
.mgw-shot img { display: block; width: 100%; height: clamp(260px, 52vh, 620px); object-fit: cover; }

/* «подпись слева — контент справа» */
.mgw-aside { display: grid; grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.mgw-aside--wide { grid-template-columns: minmax(240px, 420px) minmax(0, 1fr); align-items: center; }
.mgw-aside__head h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.1; margin: 10px 0 0; }
.mgw-aside__note { margin: 16px 0 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; max-width: 34ch; }
.mgw-aside__head .mgw-btn { margin-top: 24px; }
.mgw-aside__big { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.06; margin: 0 0 clamp(26px, 3vw, 44px); max-width: 16ch; }

/* строки состава работ */
.mgw-rows { display: grid; }
.mgw-rows article {
  display: grid; grid-template-columns: 56px minmax(0, 260px) minmax(0, 1fr); gap: 20px; align-items: start;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.mgw-rows article:last-child { border-bottom: 1px solid var(--line); }
.mgw-rows b { font-size: 13px; font-weight: 700; color: var(--moss-dark); letter-spacing: .06em; padding-top: 4px; }
.mgw-rows h3 { font-size: 19px; margin: 0; }
.mgw-rows p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

/* нумерованные шаги строками */
.mgw-steps-list { list-style: none; margin: 0; padding: 0; display: grid; }
.mgw-steps-list li {
  display: grid; grid-template-columns: 56px minmax(0, 280px) minmax(0, 1fr); gap: 20px; align-items: start;
  padding: 24px 0; border-top: 1px solid var(--line);
}
.mgw-steps-list li:last-child { border-bottom: 1px solid var(--line); }
.mgw-steps-list b { font-size: 13px; font-weight: 700; color: var(--moss-dark); letter-spacing: .06em; padding-top: 5px; }
.mgw-steps-list h3 { margin: 0; font-size: 20px; }
.mgw-steps-list p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

/* цифры в тёмном блоке */
.mgw-stats { margin: 0; display: grid; gap: 22px; }
.mgw-stats div { border-top: 1px solid rgba(255,255,255,.22); padding-top: 14px; }
.mgw-stats dt { font-size: clamp(26px, 2.8vw, 40px); font-weight: 800; color: #fff; line-height: 1; }
.mgw-stats dd { margin: 6px 0 0; font-size: 14.5px; color: #b7c4bb; line-height: 1.4; max-width: 28ch; }
.mgw-stats__text h2 { color: #fff; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.1; margin: 0 0 18px; max-width: 20ch; }
.mgw-stats__text p { color: #c7d2c9; font-size: 16.5px; line-height: 1.6; margin: 0 0 26px; max-width: 60ch; }

/* витрина: карточки стали ссылками */
.mgw-showcase figure a { display: block; position: relative; color: inherit; text-decoration: none; height: 100%; }

@media (max-width: 900px) {
  .mgw-topline__row { grid-template-columns: 1fr; align-items: start; }
  .mgw-aside, .mgw-aside--wide { grid-template-columns: 1fr; }
  .mgw-rows article, .mgw-steps-list li { grid-template-columns: 44px 1fr; }
  .mgw-rows p, .mgw-steps-list p { grid-column: 2; }
}

/* фотографии к строкам «что входит в проектирование» */
.mgw-rows__shot { margin: 28px 0 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.mgw-rows__shot img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .35s ease; }

.mgw-rows article img.mgw-rows__inline { display: none; }
@media (max-width: 900px) {
  .mgw-rows__shot { display: none; }
  .mgw-rows article img.mgw-rows__inline { display: block; grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; margin-top: 12px; }
}
.mgw-shot--short img { height: clamp(220px, 38vh, 420px); }

/* страница услуги: крупнее текст, больше воздуха между строками */
.mgw-rows h3, .mgw-steps-list h3 { font-size: clamp(19px, 1.7vw, 23px); }
.mgw-rows p, .mgw-steps-list p { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.5; }
.mgw-rows article { padding: 28px 0; }
.mgw-steps-list li { padding: 30px 0; }
.mgw-principles h3 { font-size: clamp(20px, 1.8vw, 24px); }
.mgw-principles p { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.55; }
.mgw-principles { gap: clamp(26px, 3.4vw, 48px); }
.mgw-aside__note { font-size: 16.5px; }
.mgw-topline__row p { font-size: clamp(17px, 1.4vw, 21px); }
.mgw-plans__item b { font-size: 17px; }
.mgw-plans__item i { font-size: 15px; }

/* фирменные детали в строках и шагах: зелёная метка вместо голой линии */
.mgw-rows article, .mgw-steps-list li { position: relative; }
.mgw-rows article::before, .mgw-steps-list li::before {
  content: ''; position: absolute; left: 0; top: -1px; width: 34px; height: 2px; background: var(--moss);
}
.mgw-rows b, .mgw-steps-list b { color: var(--moss-dark); font-weight: 800; }
.mgw-principles article { border-top-width: 3px; }
.mgw-rows__shot { border-radius: 22px; }
.mgw-shot img { border-radius: 0; }

/* ——— широкий режим страницы услуги: контент почти во всю ширину, крупные лёгкие заголовки ——— */
.mgw-widepage { background: #f8f8f7; }
.mgw-widepage .mgw-shell { width: min(100% - 48px, 1720px); }
.mgw-widepage .mgw-section { padding-top: clamp(50px, 6vw, 96px); padding-bottom: clamp(50px, 6vw, 96px); }
.mgw-widepage .mgw-section--sand { background: #fff; }
.mgw-widepage h2 { font-size: clamp(32px, 4.4vw, 60px); font-weight: 600; line-height: 1.0; letter-spacing: -0.035em; }
.mgw-widepage .mgw-aside__big { font-size: clamp(34px, 4.6vw, 62px); font-weight: 600; line-height: 1.0; letter-spacing: -0.035em; }
.mgw-widepage .mgw-aside { grid-template-columns: minmax(280px, 520px) minmax(0, 1fr); gap: clamp(28px, 4vw, 90px); }
.mgw-widepage .mgw-aside--wide { grid-template-columns: minmax(260px, 460px) minmax(0, 1fr); }
.mgw-widepage .mgw-rows article { grid-template-columns: 64px minmax(0, 320px) minmax(0, 1fr); }
.mgw-widepage .mgw-steps-list li { grid-template-columns: 64px minmax(0, 340px) minmax(0, 1fr); }
.mgw-widepage .mgw-head h2 { max-width: 20ch; }
.mgw-widepage .mgw-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .mgw-widepage .mgw-shell { width: min(100% - 32px, 1720px); }
  .mgw-widepage .mgw-aside, .mgw-widepage .mgw-aside--wide { grid-template-columns: 1fr; }
  .mgw-widepage .mgw-rows article, .mgw-widepage .mgw-steps-list li { grid-template-columns: 44px 1fr; }
}

/* результат шага — отдельной строкой под описанием */
.mgw-steps-list p small { display: block; margin-top: 8px; font-size: 14px; color: var(--moss-dark); font-weight: 600; }
/* форма расчёта внутри блока о стоимости */
.mgw-form--inline { margin-top: clamp(28px, 3vw, 44px); background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 2.6vw, 34px); }
.mgw-form--inline h3 { font-size: 22px; margin: 0 0 6px; }
.mgw-widepage .mgw-compare { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.mgw-compare__card .mgw-btn { margin-top: 20px; align-self: flex-start; }
.mgw-compare__card--plus { display: flex; flex-direction: column; }
.mgw-compare__card--plus ul { flex: 1; }

/* карточка «нужен индивидуальный»: признаки, а не минусы — нейтральная метка */
.mgw-compare__card--mark { display: flex; flex-direction: column; border-color: rgba(148,193,31,.55); }
.mgw-compare__card--mark ul { flex: 1; }
.mgw-compare__card--mark li { position: relative; padding-left: 30px; }
.mgw-compare__card--mark li::before {
  content: '→'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: #eef4e4; color: var(--moss-dark); display: grid; place-items: center; font-size: 11px; font-weight: 800;
}

/* строка условий под первым экраном поэтапного строительства */
.mgw-offer-line {
  margin: 0 0 clamp(20px, 2.4vw, 32px); padding-bottom: clamp(18px, 2vw, 26px);
  border-bottom: 1px solid var(--line); font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 600; color: var(--ink); line-height: 1.5;
}

/* оговорка рядом с цифрами: заметна, но не спорит с контентом */
.mgw-disclaimer { margin: 18px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); max-width: 90ch; }
.mgw-section--deep .mgw-disclaimer, .mgw-film .mgw-disclaimer { color: rgba(255,255,255,.66); }

/* главная форма посадки */
.mgw-offer-form select, .mgw-offer-form input[type=text] { width: 100%; }
.mgw-offer-form > label { display: grid; gap: 6px; font-weight: 600; margin-bottom: 14px; }
.mgw-entries .mgw-others__photo { aspect-ratio: 16 / 9; }

/* «Изменить планировку» на телефоне: одна колонка. Стоит в конце файла намеренно —
   выше по файлу десктопная сетка без медиазапроса перебивала мобильную */

/* «Изменить планировку под себя» — единственный набор правил блока.
   Фон однотонный, Наталья стоит на нижней грани блока; плашка с именем привязана к фигуре. */
.mgw-replan { background: var(--sand); }
.mgw-replan__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 64px); align-items: end;
  padding-top: clamp(36px, 4vw, 56px); padding-bottom: 0;
}
.mgw-replan__text { align-self: center; padding-bottom: clamp(36px, 4vw, 56px); }
.mgw-replan__text h2 { max-width: 18ch; margin: 0 0 14px; font-size: clamp(24px, 2.4vw, 32px); }
.mgw-replan__text p { max-width: 56ch; margin: 0 0 20px; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.mgw-replan__person { position: relative; margin: 0; align-self: end; justify-self: end; }
.mgw-replan__person img { display: block; height: clamp(300px, 30vw, 420px); width: auto; max-width: 100%; }
.mgw-replan__person figcaption {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 16px);
  display: grid; gap: 2px; text-align: center;
  padding: 10px 16px 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.mgw-replan__person figcaption b { font-size: 15px; }
.mgw-replan__person figcaption span { font-size: 13px; color: var(--ink-soft); }
@media (max-width: 760px) {
  .mgw-replan__inner { grid-template-columns: 1fr; gap: 20px; }
  .mgw-replan__text { padding-bottom: 0; }
  .mgw-replan__text h2 { max-width: none; }
  .mgw-replan__person { justify-self: center; max-width: 100%; }
  .mgw-replan__person img { height: 300px; }
}

/* технический план под основной планировкой — раскрывается по клику */
.mgw-drawing { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.mgw-drawing summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 15px; color: var(--ink); list-style: none; }
.mgw-drawing summary::-webkit-details-marker { display: none; }
.mgw-drawing summary::after { content: '+'; float: right; color: var(--moss-dark); font-weight: 800; }
.mgw-drawing[open] summary::after { content: '−'; }
.mgw-drawing img { display: block; width: 100%; height: auto; border-top: 1px solid var(--line); }
.mgw-drawing p { margin: 0; padding: 10px 16px 14px; font-size: 13px; color: var(--ink-soft); }


/* Наталия: новый портрет 2:3 на прозрачном фоне — показываем без растяжения и без обрезки */
.mgw-replan__person img { object-fit: contain; aspect-ratio: 2 / 3; }
