/*
 * Mosgorvanna home concept v3: confident, bright and precisely structured.
 * Presentation only: URLs and SEO data stay untouched. Benefits copy is a local owner-approved draft.
 */

body.home {
  --mg-canvas: #f6f4ee;
  --mg-surface: #fffefa;
  --mg-surface-soft: #e6f4f2;
  --mg-surface-blue: #caedf0;
  --mg-ink: #12343a;
  --mg-muted: #5c7074;
  --mg-accent: #14b8c6;
  --mg-accent-deep: #087d89;
  --mg-white: #fff;
  --mg-shadow: 0 28px 80px rgba(18, 52, 58, .14);
  --mg-shadow-soft: 0 16px 44px rgba(18, 52, 58, .08);
  --mg-container: min(1200px, calc(100vw - 64px));
  margin: 0;
  color: var(--mg-ink);
  background: var(--mg-canvas);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

body.home.menu-open { overflow: hidden; }

body.home .legacy-container {
  width: var(--mg-container);
  max-width: none;
  padding-inline: 0;
}

body.home a,
body.home button,
body.home input {
  transition: color .55s cubic-bezier(.32, .72, 0, 1), background-color .55s cubic-bezier(.32, .72, 0, 1), border-color .55s cubic-bezier(.32, .72, 0, 1), box-shadow .55s cubic-bezier(.32, .72, 0, 1), transform .55s cubic-bezier(.32, .72, 0, 1);
}

body.home a:focus-visible,
body.home button:focus-visible,
body.home input:focus-visible {
  outline: 3px solid rgba(55, 109, 109, .55);
  outline-offset: 4px;
}

body.home .legacy-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: auto;
  min-width: 190px;
  min-height: 56px;
  max-width: none;
  padding: 8px 9px 8px 22px;
  color: var(--mg-white);
  background: var(--mg-accent);
  border: 0;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .055em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.home .legacy-button::after {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--mg-accent-deep);
  background: rgba(255, 255, 255, .92);
  border-radius: 50%;
  content: "\2197";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  transition: transform .55s cubic-bezier(.32, .72, 0, 1);
}

body.home .legacy-button:hover,
body.home .legacy-button:focus-visible {
  color: var(--mg-white);
  background: var(--mg-accent-deep);
  box-shadow: 0 16px 32px rgba(8, 125, 137, .24);
  transform: translateY(-2px);
}

body.home .legacy-button:hover::after,
body.home .legacy-button:focus-visible::after { transform: translate(2px, -2px) rotate(5deg); }
body.home .legacy-button:active { transform: translateY(0) scale(.985); }

body.home .legacy-button--outline {
  color: var(--mg-ink);
  background: rgba(255, 255, 255, .58);
  box-shadow: inset 0 0 0 1px rgba(23, 50, 54, .1);
}

body.home .legacy-button--outline::after {
  color: var(--mg-white);
  background: var(--mg-ink);
}

body.home .legacy-button--outline:hover,
body.home .legacy-button--outline:focus-visible {
  color: var(--mg-white);
  background: var(--mg-ink);
}

/* Open photographic first screen: the original brand sits with the navigation. */
body.home .legacy-header--home {
  position: relative;
  height: auto;
  min-height: 0;
  padding: 0;
  color: var(--mg-ink);
  background: var(--mg-canvas);
}

body.home .legacy-header--home::before,
body.home .legacy-header--home::after { display: none; }
body.home .legacy-top-panel { position: absolute; z-index: 30; top: 0; right: 0; left: 0; }

body.home .legacy-top-panel__grid {
  grid-template-columns: 272px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: min(1440px, calc(100vw - 148px));
  min-height: 92px;
  padding: 9px 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

body.home .primary-navigation { grid-column: 2; justify-self: center; margin-top: 0; }
body.home .primary-navigation ul,
body.home .legacy-footer ul { padding: 0; margin: 0; list-style: none; }

body.home .primary-navigation > ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(14px, 1.55vw, 25px);
}

body.home .primary-navigation li { margin-right: 0; }

body.home .primary-navigation > ul > li > a {
  position: relative;
  display: block;
  padding: 16px 0;
  color: var(--mg-ink);
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: -.01em;
  text-transform: none;
}

body.home .primary-navigation > ul > li > a::after {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 2px;
  background: var(--mg-accent);
  border-radius: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s cubic-bezier(.32, .72, 0, 1);
}

body.home .primary-navigation .current-menu-item > a,
body.home .primary-navigation a:hover,
body.home .primary-navigation a:focus-visible { color: var(--mg-ink); }

body.home .primary-navigation > ul > li > a:hover::after,
body.home .primary-navigation > ul > li > a:focus-visible::after,
body.home .primary-navigation > ul > .current-menu-item > a::after { transform: scaleX(1); }

body.home .primary-navigation .sub-menu {
  top: 100%;
  width: 310px;
  padding: 12px;
  background: rgba(251, 252, 248, .98);
  border: 0;
  border-radius: 22px;
  box-shadow: var(--mg-shadow);
}

body.home .primary-navigation .sub-menu li { padding: 0; margin: 0; }
body.home .primary-navigation .sub-menu li:hover { border-left: 0; }

body.home .primary-navigation .sub-menu a {
  display: block;
  padding: 11px 12px;
  color: var(--mg-ink);
  border-radius: 13px;
  font-size: .84rem;
  font-weight: 500;
}

body.home .primary-navigation .sub-menu a:hover,
body.home .primary-navigation .sub-menu a:focus-visible { background: var(--mg-surface-soft); }

body.home .legacy-header-contact {
  grid-column: 3;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 1px 16px;
  min-width: 0;
  padding: 4px 7px 4px 13px;
  background: rgba(13, 48, 54, .75);
  border-radius: 15px;
  text-align: left;
}

body.home .legacy-header-contact__phone {
  grid-column: 1;
  color: var(--mg-white);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.025em;
}

body.home .legacy-header-contact__phone:hover { color: var(--mg-accent-deep); }

body.home .legacy-header-contact__callback {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 145px;
  min-height: 46px;
  margin: 0;
  padding: 7px 8px 7px 18px;
  color: var(--mg-white);
  background: var(--mg-accent);
  font-size: .66rem;
}

body.home .legacy-header-contact__callback::after { width: 34px; height: 34px; flex-basis: 34px; }

body.home .legacy-header-contact p {
  grid-column: 1;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: .61rem;
  font-weight: 550;
  letter-spacing: .035em;
  text-transform: uppercase;
}

body.home .legacy-hero {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: clamp(670px, 100dvh, 900px);
  margin-top: 0;
  padding: clamp(142px, 15vh, 165px) max(42px, calc((100vw - 1292px) / 2)) 100px;
  overflow: hidden;
  color: var(--mg-ink);
  text-align: left;
  background-color: #f6f3ed;
  background-image: linear-gradient(180deg, rgba(246, 243, 237, .97) 0%, rgba(246, 243, 237, .92) 80px, transparent 145px), linear-gradient(90deg, rgba(246, 243, 237, .95) 0%, rgba(246, 243, 237, .82) 23%, rgba(246, 243, 237, .48) 41%, transparent 67%), url(img/hero-bathroom-luxury-v1.jpg);
  background-image: linear-gradient(180deg, rgba(246, 243, 237, .97) 0%, rgba(246, 243, 237, .92) 80px, transparent 145px), linear-gradient(90deg, rgba(246, 243, 237, .95) 0%, rgba(246, 243, 237, .82) 23%, rgba(246, 243, 237, .48) 41%, transparent 67%), var(--mg-hero-photo, image-set(url(img/hero-bathroom-luxury-v1.webp) type("image/webp"), url(img/hero-bathroom-luxury-v1.jpg) type("image/jpeg")));
  background-position: center, center;
  background-size: cover;
  border-radius: 0;
  box-shadow: none;
}

body.home .legacy-hero::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: url(img/hero-sweep.svg) center / 100% 100% no-repeat;
  content: "";
}

body.home .legacy-hero::before {
  position: absolute;
  z-index: 0;
  top: 24px;
  left: max(42px, calc((100vw - 1292px) / 2));
  width: 272px;
  height: 57px;
  background: rgba(18, 52, 58, .91);
  border-radius: 7px;
  content: "";
}

body.home .legacy-hero > * { position: relative; z-index: 1; min-width: 0; }

body.home .legacy-hero__logo {
  position: absolute;
  top: 24px;
  left: max(42px, calc((100vw - 1292px) / 2));
  width: 272px;
  max-height: none;
  margin: 0;
  padding: 7px 10px;
  content: normal;
  filter: url(img/hero-logo-tone.svg#brand-tone);
}

body.home .legacy-hero h1 {
  margin: 0;
  color: var(--mg-ink);
  max-width: 950px;
  font-size: clamp(1.55rem, 2.25vw, 2rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.25;
  text-transform: none;
}

body.home .legacy-hero h1 br { display: none; }
body.home .legacy-hero h1 br.mg-hero-main-break { display: inline; }

body.home .mg-hero-title-main {
  display: block;
  max-width: 950px;
  margin-bottom: 22px;
  font-size: clamp(4.1rem, 5.5vw, 5.25rem);
  font-weight: 470;
  letter-spacing: -.06em;
  line-height: .98;
  text-wrap: balance;
}

body.home .mg-hero-title-support {
  display: block;
  max-width: 700px;
}

body.home .legacy-hero p {
  margin: 0;
  max-width: 660px;
  color: var(--mg-ink);
  font-family: inherit;
  font-size: clamp(1.55rem, 2.25vw, 2rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.25;
  text-transform: none;
}

body.home .legacy-hero__button {
  min-width: 292px;
  min-height: 62px;
  margin: 36px 0 0;
  padding-left: 28px;
  color: var(--mg-white);
  background: var(--mg-accent);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(4, 41, 46, .16);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -.01em;
  text-transform: none;
}

body.home .legacy-hero__button::after { width: auto; height: auto; flex-basis: auto; color: var(--mg-white); background: transparent; content: "→"; font-size: 1.6rem; }
body.home .legacy-hero__button:hover,
body.home .legacy-hero__button:focus-visible { color: var(--mg-white); background: var(--mg-accent-deep); }

/* Services: strict, stable three-by-two grid */
body.home .legacy-services { padding: 120px 0 144px; background: var(--mg-canvas); }

body.home .legacy-services .legacy-container {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 0 48px;
}

body.home .legacy-services__title {
  align-self: end;
  margin: 0;
  color: var(--mg-ink);
  font-size: clamp(3.2rem, 5.6vw, 5.6rem);
  font-weight: 590;
  letter-spacing: -.065em;
  line-height: .94;
  text-align: left;
  text-transform: none;
  text-wrap: balance;
}

body.home .legacy-services__intro {
  align-self: end;
  margin: 0 0 8px;
  padding: 30px;
  color: var(--mg-ink);
  background: var(--mg-surface-blue);
  border-radius: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
  font-family: ui-serif, Georgia, serif;
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}

body.home .legacy-services__intro p { margin: 0; }

body.home .legacy-services h2 {
  grid-column: 1 / -1;
  margin: 72px 0 28px;
  color: var(--mg-muted);
  font-size: .74rem;
  font-weight: 650;
  letter-spacing: .11em;
  line-height: 1.4;
  text-align: left;
  text-transform: uppercase;
}

body.home .legacy-services__grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 22px;
  padding: 0;
}

body.home .legacy-service-card {
  grid-column: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  gap: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: var(--mg-surface);
  border: 1px solid rgba(18, 52, 58, .06);
  border-radius: 17px;
  box-shadow: 0 8px 28px rgba(18, 52, 58, .045);
}

body.home .legacy-service-card:nth-child(2),
body.home .legacy-service-card:nth-child(3),
body.home .legacy-service-card:nth-child(6) { grid-column: auto; }

body.home .legacy-service-card:hover {
  box-shadow: 0 15px 38px rgba(18, 52, 58, .095);
  transform: none;
}

body.home .legacy-service-card__image {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1.52;
  overflow: hidden;
  background: #e8eeeb;
  border-radius: 16px 16px 12px 12px;
}

body.home .legacy-service-card__image img {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  object-fit: cover;
  filter: none;
  transition: transform .7s cubic-bezier(.32, .72, 0, 1);
}

body.home .legacy-service-card:hover .legacy-service-card__image img { transform: scale(1.035); }

body.home .legacy-service-card__title {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  height: auto;
  min-height: 3.35rem;
  margin: 22px 22px 8px;
  overflow: visible;
}

body.home .legacy-service-card__title h3 {
  margin: 0;
  color: var(--mg-ink);
  font-size: clamp(1.3rem, 1.55vw, 1.55rem);
  font-weight: 670;
  letter-spacing: -.045em;
  line-height: 1.16;
  text-transform: none;
  text-wrap: balance;
}

body.home .legacy-service-card__description {
  grid-column: 1;
  grid-row: 3;
  height: auto;
  align-self: start;
  margin: 0 22px 21px;
  padding-left: 14px;
  overflow: hidden;
  border-left: 2px solid var(--mg-accent);
}

body.home .legacy-service-card__description p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  max-height: 4.56em;
  margin: 0;
  overflow: hidden;
  color: var(--mg-muted);
  font-size: .89rem;
  font-weight: 420;
  line-height: 1.52;
  text-wrap: pretty;
}

body.home .legacy-service-card .legacy-button {
  grid-column: 1;
  grid-row: 4;
  justify-self: start;
  align-self: end;
  min-width: 160px;
  min-height: 47px;
  margin: 0 22px 22px;
  padding: 7px 8px 7px 18px;
  color: var(--mg-white);
  background: var(--mg-ink);
  font-size: .72rem;
  letter-spacing: 0;
  text-transform: none;
}

body.home .legacy-service-card .legacy-button::after { width: 34px; height: 34px; flex-basis: 34px; }
body.home .legacy-service-card .legacy-button:hover,
body.home .legacy-service-card .legacy-button:focus-visible { color: var(--mg-white); background: var(--mg-accent-deep); }

/* Benefits */
body.home .legacy-benefits {
  width: 100%;
  margin: 0;
  padding: 108px 0 110px;
  color: var(--mg-white);
  text-align: left;
  background-color: #003b43;
  background-image: radial-gradient(circle at 55% 46%, rgba(8, 98, 105, .4), transparent 54%), linear-gradient(135deg, rgba(0, 32, 38, .5), transparent 50%);
  border-radius: 0;
  box-shadow: none;
}

body.home .legacy-benefits .legacy-container { width: min(1480px, calc(100vw - 80px)); }

body.home .legacy-benefits h2 {
  max-width: 1430px;
  margin: 0 0 68px;
  color: var(--mg-white);
  font-size: clamp(2.8rem, 4.8vw, 4.9rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.04;
  text-transform: uppercase;
  text-wrap: balance;
}

body.home .legacy-benefits__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 30px);
}

body.home .legacy-benefit {
  grid-column: auto;
  display: grid;
  grid-template-rows: 205px auto;
  gap: 0;
  width: auto;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

body.home .legacy-benefit:nth-child(4),
body.home .legacy-benefit:nth-child(5) { grid-column: auto; min-height: 0; }

body.home .legacy-benefit__icon {
  display: grid;
  width: 100%;
  height: 205px;
  margin: 0 0 22px;
  place-items: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

body.home .legacy-benefit__icon img {
  width: min(100%, 220px);
  height: 205px;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
  filter: none;
}

body.home .legacy-benefit p {
  width: auto;
  max-width: none;
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: .98rem;
  font-weight: 400;
  line-height: 1.5;
}

body.home .legacy-benefit p strong,
body.home .legacy-benefit p span { display: block; }
body.home .legacy-benefit p strong {
  min-height: 3.2em;
  margin-bottom: 13px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.35;
  text-transform: uppercase;
}

/* Steps: a single open editorial composition, not four boxed cards. */
body.home .legacy-steps { padding: 110px 0 132px; text-align: left; background: var(--mg-canvas); }

body.home .legacy-steps h2 {
  max-width: 950px;
  margin: 0 0 16px;
  color: var(--mg-ink);
  font-size: clamp(4.4rem, 7.5vw, 7.6rem);
  font-weight: 690;
  letter-spacing: -.075em;
  line-height: .86;
  text-transform: none;
}

body.home .legacy-steps h2 span { display: block; }
body.home .legacy-steps h2 .mg-steps-heading__accent { color: var(--mg-accent); }

body.home .legacy-reviews h2 {
  max-width: 850px;
  margin: 0 0 58px;
  color: var(--mg-ink);
  font-size: clamp(2.8rem, 4.7vw, 4.8rem);
  font-weight: 590;
  letter-spacing: -.06em;
  line-height: .96;
  text-transform: none;
  text-wrap: balance;
}

body.home .legacy-steps__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

body.home .legacy-steps__grid::before {
  position: absolute;
  top: 102px;
  right: calc((var(--mg-container) - 100vw) / 2);
  left: calc((var(--mg-container) - 100vw) / 2);
  height: 108px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 108' preserveAspectRatio='none'%3E%3Cpath d='M0 60 C80 5 145 109 226 53 S355 4 436 52 S555 105 637 52 S759 5 840 52 S960 104 1042 52 S1160 4 1242 51 S1360 104 1441 52 S1540 18 1600 53' fill='none' stroke='%2314b8c6' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
}

body.home .legacy-step {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

body.home .legacy-step:nth-child(even) { transform: none; }

body.home .legacy-step__image {
  position: relative;
  display: grid;
  height: 240px;
  place-items: end center;
  background: transparent;
  border-radius: 0;
}

body.home .legacy-step__image::before { display: none; }

body.home .legacy-step__image img {
  width: 100%;
  height: 235px;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
  filter: none;
}

body.home .legacy-step__image span { display: none; }
body.home .mg-step__text { padding: 4px 2px 0; }
body.home .mg-step__number {
  display: block;
  color: var(--mg-accent);
  font-size: clamp(3.7rem, 5.6vw, 5.4rem);
  font-weight: 260;
  letter-spacing: -.09em;
  line-height: 1;
}
body.home .mg-step__title {
  min-height: 2.3em;
  margin: 12px 0 14px;
  color: var(--mg-ink);
  font-size: clamp(1.45rem, 1.85vw, 1.95rem);
  font-weight: 680;
  letter-spacing: -.04em;
  line-height: 1.14;
}

body.home .legacy-step p.mg-step__description {
  max-width: 27ch;
  margin: 0;
  color: var(--mg-muted);
  font-size: .98rem;
  font-weight: 420;
  line-height: 1.52;
}

/* Long-form copy: editorial split instead of one continuous canvas */
body.home .legacy-description {
  width: 100%;
  margin: 0;
  padding: 118px 0 126px;
  border: 0;
  background: var(--mg-surface);
  border-radius: 0;
  box-shadow: none;
}

body.home .site-main > .legacy-description:nth-child(7) { background: var(--mg-surface-soft); }
body.home .legacy-description::before,
body.home .legacy-description::after { display: none; }
body.home .legacy-description .legacy-container {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  gap: 0 100px;
  width: var(--mg-container);
}

body.home .legacy-description .legacy-container > *:not(h2) { grid-column: 2; }

body.home .legacy-description h2 {
  grid-column: 1;
  grid-row: 1 / span 20;
  align-self: start;
  margin: 0;
  padding-top: 24px;
  color: var(--mg-ink);
  border-top: 5px solid var(--mg-accent);
  font-family: inherit;
  font-size: clamp(2.35rem, 3.75vw, 4rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.02;
  text-align: left;
  text-transform: none;
  text-wrap: balance;
}

body.home .legacy-description p,
body.home .legacy-description li {
  color: var(--mg-muted);
  font-size: 1rem;
  font-weight: 420;
  line-height: 1.72;
}

body.home .legacy-description p {
  margin: 0;
  padding: 0 0 24px;
  border-bottom: 1px solid rgba(18, 52, 58, .11);
  text-align: left;
}

body.home .legacy-description p + p { padding-top: 24px; }
body.home .legacy-description p:last-child { border-bottom: 0; }
body.home .legacy-description p em {
  display: block;
  margin-top: 2px;
  padding: 26px 28px;
  color: var(--mg-ink);
  background: var(--mg-surface-blue);
  border-radius: 22px;
  font-family: ui-serif, Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.58;
}

body.home .legacy-description ul {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

body.home .legacy-description li {
  position: relative;
  padding: 20px 22px 20px 52px;
  background: rgba(255, 255, 255, .76);
  border-radius: 18px;
}

body.home .legacy-description li::before {
  position: absolute;
  top: 27px;
  left: 22px;
  width: 14px;
  height: 4px;
  background: var(--mg-accent);
  border-radius: 4px;
  content: "";
}
body.home .legacy-description a { color: var(--mg-accent-deep); text-decoration: underline; text-decoration-color: rgba(55, 109, 109, .3); text-underline-offset: 4px; }

/* Quiet CTA */
body.home .legacy-callback {
  width: var(--mg-container);
  margin: 32px auto;
  padding: 74px 7vw;
  color: var(--mg-ink);
  text-align: left;
  background: var(--mg-surface-blue);
  border-radius: 42px;
}

body.home .legacy-callback .legacy-container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr);
  align-items: center;
  gap: 72px;
  width: 100%;
}

body.home .legacy-callback h3 {
  margin: 0;
  color: var(--mg-ink);
  font-size: clamp(2rem, 3.35vw, 3.45rem);
  font-weight: 590;
  letter-spacing: -.05em;
  line-height: 1;
  text-transform: none;
  text-wrap: balance;
}

body.home .legacy-callback .legacy-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  height: auto;
  padding: 10px;
  background: rgba(255, 255, 255, .48);
  border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}

body.home .legacy-form input {
  position: static;
  width: 100%;
  max-width: none;
  min-height: 54px;
  padding: 14px 18px;
  color: var(--mg-ink);
  background: var(--mg-white);
  border: 0;
  border-radius: 18px;
  font-size: .82rem;
  font-weight: 500;
  text-align: left;
  transform: none;
}

body.home .legacy-form input::placeholder { color: var(--mg-muted); text-align: left; text-transform: none; opacity: .78; }

body.home .legacy-callback .legacy-form .legacy-button {
  position: static;
  grid-column: 2;
  width: 100%;
  max-width: none;
  min-height: 54px;
  transform: none;
}

/* Portfolio: equal photo cells in a balanced four-plus-three grid */
body.home .legacy-portfolio {
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--mg-surface-soft);
  border-radius: 0;
  box-shadow: none;
}

body.home .legacy-portfolio__intro { padding: 112px max(32px, calc((100vw - 1200px) / 2)) 82px; background: transparent; }

body.home .legacy-portfolio__intro h2 {
  max-width: 760px;
  margin: 0 0 28px;
  color: var(--mg-ink);
  font-size: clamp(3rem, 5.4vw, 5.5rem);
  font-weight: 590;
  letter-spacing: -.065em;
  line-height: .94;
  text-transform: none;
  text-wrap: balance;
}

body.home .legacy-portfolio__intro p { max-width: 650px; margin: 0 0 34px; color: var(--mg-muted); font-size: 1.02rem; font-weight: 420; line-height: 1.65; }
body.home .legacy-portfolio__intro .legacy-button { margin-left: 0; }

body.home .legacy-portfolio__grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-auto-rows: clamp(220px, 20vw, 340px);
  gap: 8px;
  padding: 8px;
  background: var(--mg-ink);
}

body.home .legacy-portfolio-item {
  grid-column: span 2;
  grid-row: auto;
  height: auto;
  min-height: 280px;
  overflow: hidden;
  background-color: var(--mg-surface-blue);
  border-radius: 20px;
  filter: saturate(.9) contrast(1.02);
}

body.home .legacy-portfolio-item:nth-child(1),
body.home .legacy-portfolio-item:nth-child(5),
body.home .legacy-portfolio-item:nth-child(6),
body.home .legacy-portfolio-item:last-child { grid-column: span 2; }
body.home .legacy-portfolio-item:nth-child(5) { grid-column: 2 / span 2; }
body.home .legacy-portfolio-item:nth-child(3) { grid-row: auto; }

body.home .legacy-portfolio-item__overlay {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: var(--mg-white);
  background: linear-gradient(to top, rgba(18, 49, 52, .82), rgba(18, 49, 52, 0) 70%);
  opacity: 0;
  transition: opacity .65s cubic-bezier(.32, .72, 0, 1);
}

body.home .legacy-portfolio-item:hover .legacy-portfolio-item__overlay,
body.home .legacy-portfolio-item:focus-within .legacy-portfolio-item__overlay { opacity: 1; }

body.home .legacy-portfolio-item h4 { margin: 0 0 8px; padding: 0; color: var(--mg-white); font-size: 1.15rem; font-weight: 620; letter-spacing: -.025em; line-height: 1.25; text-transform: none; }
body.home .legacy-portfolio-item p { margin: 0; color: rgba(255, 255, 255, .78); font-size: .8rem; font-weight: 420; }

/* Reviews */
body.home .legacy-reviews { padding: 138px 0 130px; text-align: left; background: var(--mg-canvas); }
body.home .legacy-reviews h2 { margin-bottom: 20px; }

body.home .legacy-reviews h3 {
  max-width: 680px;
  margin: 0 0 54px;
  color: var(--mg-muted);
  font-family: ui-serif, Georgia, serif;
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.5;
}

body.home .legacy-reviews__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

body.home .legacy-testimonial-card {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-content: start;
  gap: 4px 24px;
  height: auto;
  min-height: 270px;
  padding: 18px;
  overflow: hidden;
  background: var(--mg-surface);
  border-radius: 30px;
  box-shadow: var(--mg-shadow-soft);
}

body.home .legacy-testimonial-card::after { display: none; }

body.home .legacy-testimonial-card__image {
  grid-row: 1 / span 2;
  width: 94px;
  height: 112px;
  margin: 0;
  overflow: hidden;
  background: var(--mg-surface-soft);
  border-radius: 20px;
}

body.home .legacy-testimonial-card__image img { width: 100%; height: 100%; object-fit: cover; }
body.home .legacy-testimonial-card strong { height: auto; margin: 16px 18px 10px 0; overflow: visible; color: var(--mg-ink); font-size: 1rem; font-weight: 630; letter-spacing: -.018em; line-height: 1.35; text-transform: none; }
body.home .legacy-testimonial-card p { margin: 0 18px 16px 0; color: var(--mg-muted); font-size: .86rem; font-weight: 420; line-height: 1.52; }

body.home .legacy-client-count {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  align-items: center;
  gap: 24px;
  margin: 48px 0 0;
  padding: 20px;
  background: var(--mg-surface-soft);
  border-radius: 30px;
}

body.home .legacy-client-count > div { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 0 16px; text-align: left; }
body.home .legacy-client-count > div::before,
body.home .legacy-client-count > div::after { display: none; }
body.home .legacy-client-count p { margin: 0; color: var(--mg-muted); font-size: .7rem; font-weight: 650; letter-spacing: .07em; line-height: 1.25; text-transform: uppercase; }
body.home .legacy-client-count__digits { grid-row: 1 / span 2; }
body.home .legacy-client-count__digits span { display: inline-block; padding: 0; margin: 0; color: var(--mg-accent-deep); background: transparent; font-size: 3.8rem; font-weight: 650; letter-spacing: -.085em; line-height: .9; }

/* Contacts */
body.home .legacy-contacts {
  width: var(--mg-container);
  min-height: 720px;
  margin: 32px auto;
  padding: 42px;
  overflow: hidden;
  background-color: var(--mg-surface-blue);
  background-image: var(--mg-map-photo, url(legacy/img/maps_img.jpg?v=svobody-35-2));
  background-position: center;
  background-size: cover;
  border-radius: 46px;
  box-shadow: var(--mg-shadow-soft);
}

body.home .legacy-contacts__panel {
  display: flex;
  flex-direction: column;
  float: none;
  width: min(460px, 100%);
  min-height: 636px;
  height: auto;
  margin-left: auto;
  padding: 42px;
  color: var(--mg-ink);
  background: rgba(251, 252, 248, .94);
  border-radius: 34px;
  box-shadow: var(--mg-shadow), inset 0 1px 0 rgba(255, 255, 255, .95);
}

body.home .legacy-contacts__panel h2 { margin: 0 0 30px; color: var(--mg-ink); font-size: clamp(2.1rem, 3.6vw, 3.7rem); font-weight: 590; letter-spacing: -.055em; line-height: .98; text-transform: none; }
body.home .legacy-contacts__panel p,
body.home .legacy-contacts__panel p a { margin-bottom: 11px; color: var(--mg-muted); font-size: .94rem; font-weight: 450; }
body.home .legacy-contacts__panel p a { color: var(--mg-accent-deep); font-weight: 650; }
body.home .legacy-contacts__panel h4 { margin: 28px 0 16px; color: var(--mg-ink); font-size: .86rem; font-weight: 650; letter-spacing: .045em; line-height: 1.45; text-transform: uppercase; }
body.home .legacy-contacts__panel .legacy-form--stacked { margin-top: auto; }
body.home .legacy-contacts__panel .legacy-form--stacked input,
body.home .legacy-contacts__panel .legacy-form--stacked .legacy-button { position: static; width: 100%; max-width: none; margin: 0 0 10px; transform: none; }

/* Footer */
body.home .legacy-footer {
  width: var(--mg-container);
  margin: 32px auto 24px;
  padding: 72px 7vw 64px;
  background: var(--mg-ink);
  border-radius: 42px;
}

body.home .legacy-footer__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; width: 100%; }
body.home .legacy-footer__logo { margin-bottom: 34px; }
body.home .legacy-footer__logo img { width: 250px; }
body.home .legacy-footer__services li { margin-bottom: 8px; }
body.home .legacy-footer__services a { color: rgba(255, 255, 255, .55); font-size: .88rem; font-weight: 420; }
body.home .legacy-footer__services a:hover,
body.home .legacy-footer__services a:focus-visible { color: var(--mg-white); }
body.home .legacy-footer__menu h3 { margin: 0 0 22px; padding: 0 0 14px; color: rgba(255, 255, 255, .55); border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: .69rem; font-weight: 650; letter-spacing: .11em; }
body.home .legacy-footer__menu li { width: 49%; margin-bottom: 12px; }
body.home .legacy-footer__menu a,
body.home .legacy-footer__social p { color: rgba(255, 255, 255, .88); font-size: .93rem; font-weight: 480; }
body.home .legacy-footer__social { margin-top: 42px; }
body.home .legacy-footer__social p { font-size: .7rem; font-weight: 650; letter-spacing: .07em; }

/* The second half of the homepage continues the approved visual language. */
body.home .site-main > .legacy-description.mg-description--intro,
body.home .site-main > .legacy-description.mg-description--pricing { background: var(--mg-canvas); }
body.home .site-main > .legacy-description.mg-description--guide { background: var(--mg-surface); }
body.home .legacy-description .legacy-container { gap: 0 clamp(52px, 8vw, 118px); }
body.home .legacy-description h2 { padding-top: 22px; border-top-width: 3px; }
body.home .legacy-description p { max-width: 660px; padding-bottom: 22px; border-bottom: 0; }
body.home .legacy-description p + p { padding-top: 0; }
body.home .legacy-description p:first-of-type { color: var(--mg-ink); font-size: 1.08rem; }
body.home .legacy-description p em { max-width: 660px; margin-top: 14px; background: var(--mg-surface-blue); }
body.home .mg-description--intro p em {
  margin: 0;
  padding: 0;
  color: var(--mg-muted);
  background: transparent;
  border-radius: 0;
  font-family: inherit;
  font-size: .96rem;
}
body.home .mg-description--guide p { border-bottom: 0; }
body.home .mg-description--pricing ul { gap: 0; max-width: 660px; border-top: 1px solid rgba(18, 52, 58, .15); }
body.home .mg-description--pricing li {
  padding: 22px 20px 22px 38px;
  background: transparent;
  border-bottom: 1px solid rgba(18, 52, 58, .15);
  border-radius: 0;
}
body.home .mg-description--pricing li::before { top: 34px; left: 7px; width: 18px; height: 2px; }

body.home .legacy-callback {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 88px max(32px, calc((100vw - 1200px) / 2));
  overflow: hidden;
  background: radial-gradient(circle at 13% 15%, rgba(255, 255, 255, .65), transparent 35%), var(--mg-surface-blue);
  border-radius: 0;
}
body.home .legacy-callback::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--mg-accent);
  content: "";
}
body.home .legacy-callback .legacy-container { position: relative; z-index: 1; grid-template-columns: minmax(0, 1fr) minmax(390px, .95fr); }
body.home .legacy-callback h3 { max-width: 570px; }
body.home .legacy-callback .legacy-form { padding: 0; background: transparent; border-radius: 0; box-shadow: none; }
body.home .legacy-callback .legacy-form input { box-shadow: 0 1px 0 rgba(18, 52, 58, .08); }

body.home .legacy-portfolio { background: var(--mg-surface); }
body.home .legacy-portfolio__intro { padding-top: 114px; padding-bottom: 72px; }
body.home .legacy-portfolio__intro .legacy-container {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 0 clamp(48px, 8vw, 110px);
}
body.home .legacy-portfolio__intro h2 { grid-row: 1 / span 2; max-width: 500px; margin: 0; }
body.home .legacy-portfolio__intro p { max-width: 580px; margin: 5px 0 24px; }
body.home .legacy-portfolio__intro .legacy-button { justify-self: start; }
body.home .legacy-portfolio__grid {
  width: var(--mg-container);
  margin: 0 auto;
  padding: 0 0 118px;
  gap: 12px;
  background: transparent;
}
body.home .legacy-portfolio-item { min-height: 0; border-radius: 22px; filter: none; }
body.home .legacy-portfolio-item__overlay { padding: 26px; opacity: 1; background: linear-gradient(to top, rgba(8, 42, 46, .86), rgba(8, 42, 46, 0) 70%); }
body.home .legacy-portfolio-item h4 { max-width: 280px; font-size: 1.05rem; }

body.home .legacy-reviews { padding: 122px 0 118px; background: var(--mg-canvas); }
body.home .legacy-reviews h3 { margin-bottom: 62px; }
body.home .legacy-reviews__grid { gap: 0 44px; border-top: 1px solid rgba(18, 52, 58, .18); }
body.home .legacy-testimonial-card {
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 0;
  padding: 30px 0 34px;
  background: transparent;
  border-bottom: 1px solid rgba(18, 52, 58, .18);
  border-radius: 0;
  box-shadow: none;
}
body.home .legacy-testimonial-card__image { width: 72px; height: 72px; border-radius: 18px; }
body.home .legacy-testimonial-card strong { margin: 0 0 10px; }
body.home .legacy-testimonial-card p { margin: 0; font-size: .94rem; line-height: 1.66; }
body.home .legacy-client-count {
  grid-template-columns: 1fr auto 1fr;
  margin-top: 52px;
  padding: 26px 0 0;
  background: transparent;
  border-top: 1px solid rgba(18, 52, 58, .18);
  border-radius: 0;
}
body.home .legacy-client-count > a:last-child { justify-self: end; }
body.home .legacy-client-count__digits span { font-size: 2.75rem; }

body.home .legacy-contacts {
  position: relative;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: var(--mg-surface-soft);
  border-radius: 0;
  box-shadow: none;
}
body.home .legacy-contacts::before {
  position: absolute;
  inset: 0 52% 0 0;
  background: var(--mg-map-photo, url(legacy/img/maps_img.jpg?v=svobody-35-2)) center/cover no-repeat;
  content: "";
}
body.home .legacy-contacts .legacy-container { display: grid; grid-template-columns: 48% 52%; width: 100%; max-width: none; }
body.home .legacy-contacts__panel {
  grid-column: 2;
  width: min(100%, 640px);
  min-height: 0;
  margin: 0;
  padding: 86px clamp(32px, 6vw, 92px) 92px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
body.home .legacy-contacts__panel h2 { margin-bottom: 36px; }
body.home .legacy-contacts__panel h4 { margin-top: 36px; }

body.home .legacy-footer {
  width: 100%;
  margin: 0;
  padding: 88px max(32px, calc((100vw - 1200px) / 2)) 80px;
  border-radius: 0;
}
body.home .legacy-footer__grid { width: 100%; max-width: 1200px; margin: 0 auto; }

/* Scroll reveals: progressive enhancement only */
body.home.motion-ready .mg-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s cubic-bezier(.32, .72, 0, 1), transform .9s cubic-bezier(.32, .72, 0, 1);
}

body.home.motion-ready .mg-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) {
  body.home { --mg-container: min(960px, calc(100vw - 48px)); }
  body.home .legacy-top-panel__grid { width: calc(100vw - 48px); }
  body.home .legacy-header-contact__callback { display: none; }
  body.home .legacy-header-contact { display: block; }
  body.home .legacy-hero { padding-inline: 24px; }
  body.home .legacy-hero__logo { left: 24px; }
  body.home .legacy-hero::before { left: 24px; }
  body.home .mg-hero-title-main { font-size: clamp(3.6rem, 6vw, 4.7rem); }
  body.home .legacy-services .legacy-container { grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); gap: 0 42px; }
  body.home .legacy-benefits { padding-inline: 0; }
  body.home .legacy-callback .legacy-container { gap: 44px; }
}

@media (max-width: 1020px) {
  body.home { --mg-container: calc(100vw - 48px); }
  body.home .legacy-top-panel__grid { grid-template-columns: 1fr auto; min-height: 72px; padding-left: 70px; }
  body.home .menu-toggle { top: 21px; left: 24px; display: block; }
  body.home .menu-toggle span:not(.screen-reader-text) { background: var(--mg-ink); border-radius: 3px; }
  body.home .primary-navigation { position: fixed; z-index: 100; inset: 0; display: none; margin: 0; overflow-y: auto; padding: 110px 32px 44px; background: rgba(243, 244, 239, .97); backdrop-filter: blur(24px); }
  body.home .primary-navigation.is-open { display: block; }
  body.home .primary-navigation > ul { display: block; max-width: 760px; margin: 0 auto; }
  body.home .primary-navigation > ul > li > a { display: block; padding: 13px 0; color: var(--mg-ink); font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; text-transform: none; }
  body.home .primary-navigation .sub-menu { position: static; display: block; width: auto; padding: 0 0 12px 20px; background: transparent; border-radius: 0; box-shadow: none; }
  body.home .primary-navigation .sub-menu a { color: var(--mg-muted); background: transparent; }
  body.home .legacy-header-contact { grid-column: 2; }
  body.home .legacy-hero { min-height: 680px; padding: 180px 24px 60px; }
  body.home .legacy-hero__logo { top: 82px; }
  body.home .legacy-hero::before { top: 82px; }
  body.home .legacy-hero h1 { max-width: 690px; margin: 0; }
  body.home .legacy-hero__button { margin-top: 28px; }
  body.home .legacy-services .legacy-container { grid-template-columns: minmax(0, 1fr); }
  body.home .legacy-services__title,
  body.home .legacy-services__intro { grid-column: 1; }
  body.home .legacy-services__intro { margin-top: 32px; }
  body.home .legacy-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home .legacy-service-card,
  body.home .legacy-service-card:nth-child(2),
  body.home .legacy-service-card:nth-child(3),
  body.home .legacy-service-card:nth-child(6) { grid-column: auto; grid-template-columns: 1fr; }
  body.home .legacy-service-card:nth-child(3) .legacy-service-card__image,
  body.home .legacy-service-card:nth-child(4) .legacy-service-card__image,
  body.home .legacy-service-card__image { grid-column: 1; grid-row: 1; min-height: 0; height: auto; }
  body.home .legacy-service-card:nth-child(3) .legacy-service-card__title,
  body.home .legacy-service-card:nth-child(3) .legacy-service-card__description,
  body.home .legacy-service-card:nth-child(3) .legacy-button,
  body.home .legacy-service-card:nth-child(4) .legacy-service-card__title,
  body.home .legacy-service-card:nth-child(4) .legacy-service-card__description,
  body.home .legacy-service-card:nth-child(4) .legacy-button,
  body.home .legacy-service-card__title,
  body.home .legacy-service-card__description,
  body.home .legacy-service-card .legacy-button { grid-column: 1; }
  body.home .legacy-service-card__title { margin: 20px 20px 7px; }
  body.home .legacy-service-card__description { margin: 0 20px 18px; }
  body.home .legacy-service-card .legacy-button { margin: 0 20px 20px; }
  body.home .legacy-benefit,
  body.home .legacy-benefit:nth-child(3),
  body.home .legacy-benefit:nth-child(4),
  body.home .legacy-benefit:nth-child(5) { grid-column: auto; }
  body.home .legacy-benefits .legacy-container { width: var(--mg-container); }
  body.home .legacy-benefits__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 32px; }
  body.home .legacy-benefit { grid-template-rows: 170px auto; }
  body.home .legacy-benefit__icon,
  body.home .legacy-benefit__icon img { height: 170px; }
  body.home .legacy-description .legacy-container { grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr); gap: 0 52px; }
  body.home .legacy-steps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
  body.home .legacy-steps__grid::before { display: none; }
  body.home .legacy-callback .legacy-container { grid-template-columns: 1fr; }
  body.home .legacy-portfolio__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 320px; }
  body.home .legacy-portfolio-item,
  body.home .legacy-portfolio-item:nth-child(1),
  body.home .legacy-portfolio-item:nth-child(5),
  body.home .legacy-portfolio-item:nth-child(6),
  body.home .legacy-portfolio-item:last-child { grid-column: auto; }
  body.home .legacy-portfolio-item:nth-child(3) { grid-row: span 1; }
  body.home .legacy-footer__grid { grid-template-columns: 1fr 1fr; gap: 44px; }
}

@media (max-width: 700px) {
  body.home { --mg-container: calc(100vw - 28px); font-size: 16px; }
  body.home .legacy-header--home { padding: 0; }
  body.home .legacy-top-panel { background: rgba(246, 243, 237, .95); }
  body.home .legacy-top-panel__grid { width: calc(100vw - 28px); min-height: 68px; padding: 8px 12px 8px 58px; border-radius: 0; }
  body.home .menu-toggle { top: 20px; left: 18px; }
  body.home .legacy-header-contact { padding: 0; background: transparent; border-radius: 0; }
  body.home .legacy-header-contact__phone { color: var(--mg-ink); }
  body.home .legacy-header-contact__phone { font-size: .93rem; }
  body.home .legacy-header-contact p { color: var(--mg-muted); }
  body.home .legacy-header-contact p { font-size: .51rem; }
  body.home .legacy-hero { display: block; width: 100%; min-height: 0; margin-top: 0; padding: clamp(405px, 105vw, 485px) 20px 48px; background-image: linear-gradient(180deg, transparent 0%, transparent 33%, rgba(246, 243, 237, .55) 41%, #f6f3ed 49%, #f6f3ed 100%), url(img/hero-bathroom-luxury-v1.jpg); background-image: linear-gradient(180deg, transparent 0%, transparent 33%, rgba(246, 243, 237, .55) 41%, #f6f3ed 49%, #f6f3ed 100%), var(--mg-hero-photo, image-set(url(img/hero-bathroom-luxury-v1.webp) type("image/webp"), url(img/hero-bathroom-luxury-v1.jpg) type("image/jpeg"))); background-position: center, 70% top; background-size: 100% 100%, auto clamp(380px, 100vw, 470px); background-repeat: no-repeat; border-radius: 0; }
  body.home .legacy-hero::after { display: none; }
  body.home .legacy-hero::before { top: 88px; left: 20px; width: 224px; height: 52px; }
  body.home .legacy-hero__logo { top: 88px; left: 20px; width: 224px; }
  body.home .legacy-hero h1 { max-width: 510px; margin: 0; font-size: 1.1rem; line-height: 1.25; }
  body.home .mg-hero-title-main { max-width: 510px; margin-bottom: 16px; font-size: clamp(2.15rem, 9.6vw, 2.65rem); line-height: 1.02; }
  body.home .mg-hero-main-break { display: none; }
  body.home .mg-hero-title-support { max-width: 510px; }
  body.home .legacy-hero p { margin-top: 0; font-size: 1.1rem; }
  body.home .legacy-hero__button { min-width: 230px; min-height: 56px; margin-top: 28px; }
  body.home .legacy-services,
  body.home .legacy-steps,
  body.home .legacy-reviews { padding: 88px 0 100px; }
  body.home .legacy-services__title,
  body.home .legacy-portfolio__intro h2 { font-size: 2.85rem; }
  body.home .legacy-services__intro { padding: 24px; border-radius: 22px; }
  body.home .legacy-services h2 { margin-top: 46px; }
  body.home .legacy-services__grid { display: block; }
  body.home .legacy-service-card,
  body.home .legacy-service-card:nth-child(2),
  body.home .legacy-service-card:nth-child(3),
  body.home .legacy-service-card:nth-child(6) { min-height: 0; height: auto; margin-bottom: 18px; border-radius: 17px; }
  body.home .legacy-service-card__title { min-height: 0; }
  body.home .legacy-benefits { width: 100%; padding: 78px 0 68px; border-radius: 0; }
  body.home .legacy-benefits h2,
  body.home .legacy-steps h2,
  body.home .legacy-reviews h2 { margin-bottom: 40px; font-size: 2.45rem; }
  body.home .legacy-steps h2 { margin-bottom: 32px; font-size: clamp(3.15rem, 13vw, 4.4rem); line-height: .9; }
  body.home .legacy-benefits__grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
  body.home .legacy-benefit,
  body.home .legacy-benefit:nth-child(3),
  body.home .legacy-benefit:nth-child(4),
  body.home .legacy-benefit:nth-child(5) { grid-template-columns: 108px minmax(0, 1fr); grid-template-rows: auto; gap: 18px; min-height: 0; margin: 0; padding: 0; border-radius: 0; }
  body.home .legacy-benefit__icon { grid-row: 1; width: 108px; height: 108px; margin: 0; }
  body.home .legacy-benefit__icon img { width: 108px; height: 108px; }
  body.home .legacy-benefit p { grid-column: 2; grid-row: 1; font-size: .91rem; }
  body.home .legacy-benefit p strong { min-height: 0; margin-bottom: 7px; font-size: .98rem; }
  body.home .legacy-steps__grid { grid-template-columns: 1fr; gap: 0; }
  body.home .legacy-step,
  body.home .legacy-step:nth-child(even) {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 18px;
    min-height: 0;
    padding: 26px 0;
    transform: none;
  }
  body.home .legacy-step + .legacy-step { border-top: 1px solid rgba(18, 52, 58, .12); }
  body.home .legacy-step__image { height: 135px; align-self: start; }
  body.home .legacy-step__image img { height: 130px; }
  body.home .mg-step__text { padding: 0; }
  body.home .mg-step__number { font-size: 3.3rem; }
  body.home .mg-step__title { min-height: 0; margin: 6px 0 9px; font-size: 1.37rem; }
  body.home .legacy-step p.mg-step__description { max-width: none; font-size: .9rem; line-height: 1.5; }
  body.home .legacy-description { width: 100%; margin: 0; padding: 82px 0 88px; border-radius: 0; }
  body.home .legacy-description .legacy-container { display: block; width: var(--mg-container); }
  body.home .legacy-description h2 { margin-bottom: 42px; font-size: 2.35rem; }
  body.home .legacy-description p em { padding: 22px; border-radius: 18px; }
  body.home .legacy-description li { padding: 18px 18px 18px 46px; }
  body.home .legacy-description li::before { top: 25px; left: 18px; }
  body.home .legacy-callback { width: var(--mg-container); margin-block: 20px; padding: 62px 24px; border-radius: 30px; }
  body.home .legacy-callback h3 { font-size: 2.15rem; }
  body.home .legacy-callback .legacy-form { grid-template-columns: 1fr; padding: 8px; border-radius: 24px; }
  body.home .legacy-callback .legacy-form .legacy-button { grid-column: 1; }
  body.home .legacy-portfolio { width: 100%; margin: 0; border-radius: 0; }
  body.home .legacy-portfolio__intro { padding: 70px 24px 60px; }
  body.home .legacy-portfolio__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 6px; padding: 6px; }
  body.home .legacy-portfolio-item { min-height: 210px; margin: 0; border-radius: 18px; }
  body.home .legacy-portfolio-item__overlay { opacity: 1; }
  body.home .legacy-reviews__grid { grid-template-columns: 1fr; }
  body.home .legacy-testimonial-card { grid-template-columns: 76px minmax(0, 1fr); min-height: 0; border-radius: 26px; }
  body.home .legacy-testimonial-card__image { width: 76px; height: 92px; border-radius: 17px; }
  body.home .legacy-client-count { grid-template-columns: 1fr; gap: 18px; padding: 16px; border-radius: 26px; }
  body.home .legacy-client-count > div { grid-template-columns: 1fr; }
  body.home .legacy-client-count__digits { grid-row: auto; }
  body.home .legacy-client-count > a { justify-self: start; }
  body.home .legacy-contacts { width: var(--mg-container); min-height: 0; margin-block: 20px; padding: 14px; background-position: 41% center; border-radius: 32px; }
  body.home .legacy-contacts__panel { min-height: 590px; padding: 32px 24px; border-radius: 25px; }
  body.home .legacy-contacts__panel h2 { font-size: 2.5rem; }
  body.home .legacy-footer { width: var(--mg-container); margin-block: 20px 14px; padding: 60px 24px 54px; border-radius: 30px; }
  body.home .legacy-footer__grid { grid-template-columns: 1fr; gap: 46px; }
  body.home .legacy-footer__menu li { display: block; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  body.home *,
  body.home *::before,
  body.home *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  body.home.motion-ready .mg-reveal { opacity: 1; transform: none; }
}

@media (max-width: 1020px) {
  body.home .legacy-portfolio__intro .legacy-container { grid-template-columns: 1fr; gap: 26px; }
  body.home .legacy-portfolio__intro h2 { grid-row: auto; max-width: 760px; }
  body.home .legacy-portfolio__intro p { margin: 0; }
  body.home .legacy-contacts::before { right: 58%; }
  body.home .legacy-contacts .legacy-container { grid-template-columns: 42% 58%; }
  body.home .legacy-contacts__panel { padding: 68px 40px 72px; }
}

@media (max-width: 700px) {
  body.home .legacy-description p:first-of-type { font-size: 1rem; }
  body.home .legacy-description .legacy-container { width: var(--mg-container); }
  body.home .mg-description--pricing li { padding: 18px 8px 18px 34px; }
  body.home .mg-description--pricing li::before { top: 29px; left: 4px; }

  body.home .legacy-callback { width: 100%; margin: 0; padding: 72px 20px 78px; border-radius: 0; }
  body.home .legacy-callback h3 { max-width: 480px; }

  body.home .legacy-portfolio__intro { padding: 82px 20px 52px; }
  body.home .legacy-portfolio__grid { width: calc(100vw - 40px); grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 12px; padding: 0 0 82px; }
  body.home .legacy-portfolio-item,
  body.home .legacy-portfolio-item:nth-child(1),
  body.home .legacy-portfolio-item:nth-child(5),
  body.home .legacy-portfolio-item:nth-child(6),
  body.home .legacy-portfolio-item:last-child { grid-column: 1; min-width: 0; min-height: 220px; aspect-ratio: auto; }
  body.home .legacy-portfolio-item:nth-child(5) { grid-column: 1; }
  body.home .legacy-portfolio-item__overlay { padding: 22px; }

  body.home .legacy-reviews { padding: 88px 0 90px; }
  body.home .legacy-reviews h3 { margin-bottom: 42px; }
  body.home .legacy-reviews__grid { gap: 0; }
  body.home .legacy-testimonial-card { grid-template-columns: 64px minmax(0, 1fr); gap: 4px 16px; padding: 26px 0 30px; }
  body.home .legacy-testimonial-card__image { width: 64px; height: 64px; border-radius: 16px; }
  body.home .legacy-testimonial-card p { font-size: .88rem; }
  body.home .legacy-client-count { gap: 18px; padding-top: 28px; }
  body.home .legacy-client-count > a:last-child { justify-self: start; }

  body.home .legacy-contacts { width: 100%; margin: 0; padding: 0; border-radius: 0; }
  body.home .legacy-contacts::before { inset: 0 0 auto; height: 290px; background-position: center; }
  body.home .legacy-contacts .legacy-container { display: block; width: 100%; padding-top: 290px; }
  body.home .legacy-contacts__panel { width: 100%; min-height: 0; padding: 62px 24px 72px; border-radius: 0; }

  body.home .legacy-footer { width: 100%; margin: 0; padding: 68px 24px 64px; border-radius: 0; }
}

@media (max-width: 370px) {
  body.home .legacy-benefits h2 { font-size: 1.9rem; }
  body.home .legacy-benefit,
  body.home .legacy-benefit:nth-child(3),
  body.home .legacy-benefit:nth-child(4),
  body.home .legacy-benefit:nth-child(5) { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; }
  body.home .legacy-benefit__icon,
  body.home .legacy-benefit__icon img { width: 84px; height: 84px; }
}
