/* ==========================================================================
   Euromaster boiler repair standalone CSS
   Current: v30-desktop-telegram-hero-title-lines

   Changelog:
   - v30 desktop-telegram-hero-title-lines:
     added support for the desktop Telegram messenger icon next to Viber while keeping Telegram hidden in the mobile header;
     stabilized the Hero H1 as three semantic lines through .em-hero-title spans so “в Минске” stays together on all screen widths;
     preserved v29 header/menu/CTA polish, v27 Final CTA, stable bottom sheet/FAQ, gallery, hamburger tap-safe and clean kicker.
   - v29 header-hero-cta-polish:
     refined desktop header balance after removing the duplicated header CTA;
     centered the navigation between the logo and contact block;
     softened desktop navigation typography to 14px / 400;
     polished Hero CTA buttons on mobile and added support for a phone icon inside the phone CTA;
     improved the mobile master card rhythm with a larger photo and cleaner text spacing;
     enlarged mobile Hero fact icons without changing the markup structure;
     preserved v28 navigation, v27 Final CTA, v25 bottom sheet/FAQ, gallery, hamburger tap-safe and kicker fixes.
   - v28 header-hero-cta-nav:
     rebuilt the header navigation for the real resource structure with a desktop repair dropdown
     and mobile details submenu;
     removed the duplicated desktop header CTA from the intended markup flow;
     kept the Hero phone action visible on mobile and prepared the light Hero button for the real phone number;
     preserved v27 Final CTA, v25 bottom sheet/FAQ, gallery and hamburger fixes.
   - v27 final-cta-neutral-service-card:
     removed the warm/yellow background washes from the Final CTA;
     kept the orange accent line, service-card depth, form surface and all v26/v25 fixes.
   - v26 final-cta-service-card:
     refreshed the Final CTA as a separate service card zone;
     added a soft section background, layered inner card, accent phone action
     and a cleaner form surface;
     kept bottom sheet / gallery / FAQ / hamburger / kicker fixes from v25.
   - v25 stable-sheet-kicker-tap-safe:
     restored the stable bottom sheet / problem sheet / FAQ CSS from v20;
     kept gallery grid from v17 (desktop 6 columns, mobile 3 columns);
     kept hamburger tap-safe from v22;
     kept clean service-style kicker from v24.
   - v24 kicker-clean-service:
     replaced the promo-style yellow kicker with a cleaner white service label;
     removed the lightning icon from .em-kicker.
   - v23 gallery-restore-hamburger-safe:
     restored the photo gallery grid and kept hamburger double-tap protection.
   - v22 hamburger-tap-safe:
     added tap-safety rules for .em-burger only.
   - v20 faq-height-animation-stability:
     stable bottom sheet scrolling, close button layering and FAQ height animation.

   Rule for future edits:
   do not append random patches to the end of the file; update the relevant
   section and describe the version change here.
   ========================================================================== */
:root {
  --em-text: #20242c;
  --em-muted: #66707e;
  --em-soft: #f6f7f8;
  --em-line: rgba(32,36,44,.11);
  --em-dark: #121a26;
  --em-accent: #ff8a00;
  --em-accent-2: #ffc23d;
  --em-radius: 26px;
  --em-shadow: 0 24px 70px rgba(28, 33, 42, .10);
  --em-shadow-soft: 0 14px 38px rgba(28, 33, 42, .07);
  --em-container: 1260px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--em-text);
  background: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.45;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
::placeholder { color: rgba(76,85,98,.43); opacity: 1; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--em-shadow-soft);
}
.skip-link:focus { transform: translateY(0); }

.em-container {
  width: min(var(--em-container), calc(100% - 40px));
  margin-inline: auto;
}

.em-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(32,36,44,.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.em-header__inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 2.2vw, 36px);
}
.em-brand img { width: 220px; }
.em-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 1.7vw, 26px);
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}
.em-nav a { white-space: nowrap; }
.em-nav__item {
  position: relative;
  display: flex;
  align-items: center;
}
.em-nav__link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: inherit;
  white-space: nowrap;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.em-nav__link--parent::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: .52;
  transform: rotate(45deg);
  transition: transform .16s ease, opacity .16s ease;
}
.em-nav__item:hover .em-nav__link--parent::after,
.em-nav__item:focus-within .em-nav__link--parent::after {
  opacity: .86;
  transform: rotate(45deg) translate(2px, 2px);
}
.em-nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: -18px;
  z-index: 120;
  min-width: 282px;
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(32,36,44,.10);
  border-radius: 20px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 20px 52px rgba(28,33,42,.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}
.em-nav__dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.em-nav__item:hover .em-nav__dropdown,
.em-nav__item:focus-within .em-nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.em-nav__dropdown a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 13px;
  color: #2a303a;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .14s ease, color .14s ease;
}
.em-nav__dropdown a:hover,
.em-nav__dropdown a:focus-visible {
  background: #f5f6f8;
  color: #111722;
  outline: none;
}
.em-header__actions {
  min-width: max-content;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: 0;
}
.em-phone {
  white-space: nowrap;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: .02em;
}
.em-messenger {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.13);
}
.em-messenger svg { width: 22px; height: 22px; fill: currentColor; }
.em-messenger--tg { background: #06a9e9; }
.em-messenger--vb { background: #6e35a8; }

.em-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 15px;
  background: #f4f5f6;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.em-burger span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: #232832;
  border-radius: 4px;
  pointer-events: none;
}
.em-mobile-menu {
  position: fixed;
  inset: 82px 0 auto;
  z-index: 99;
  padding: 12px 20px 20px;
}
.em-mobile-menu__panel {
  display: grid;
  gap: 4px;
  max-width: 460px;
  margin-left: auto;
  padding: 14px;
  border: 1px solid var(--em-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--em-shadow);
}
.em-mobile-menu__panel a {
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 750;
}
.em-mobile-menu__panel a:hover { background: #f6f7f8; }
.em-mobile-menu__group {
  margin: 0;
  border: 0;
}
.em-mobile-menu__group summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  color: var(--em-text);
  font-weight: 850;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.em-mobile-menu__group summary::-webkit-details-marker {
  display: none;
}
.em-mobile-menu__group summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: .48;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease, opacity .16s ease;
}
.em-mobile-menu__group[open] summary {
  background: #f6f7f8;
}
.em-mobile-menu__group[open] summary::after {
  opacity: .74;
  transform: rotate(-135deg) translate(-2px, -1px);
}
.em-mobile-menu__submenu {
  display: grid;
  gap: 2px;
  padding: 2px 0 8px 12px;
}
.em-mobile-menu__submenu a {
  min-height: 42px;
  padding: 11px 14px;
  color: #4f5968;
  font-size: 14px;
  font-weight: 750;
}


/* Header mobile controls
   Чистый mobile-header слой: без отдельной фиолетовой подложки у Viber,
   без конфликтующих flex/absolute правил у hamburger и с точечной
   защитой hamburger от double-tap zoom/viewport jump на мобильных.
*/
@media (max-width: 760px) {
  .em-header {
    background: rgba(255, 255, 255, .98);
  }

  .em-header__inner {
    min-height: 64px !important;
    width: min(100% - 22px, var(--em-container)) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .em-brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .em-brand img {
    width: clamp(150px, 43vw, 168px) !important;
    height: auto !important;
  }

  .em-header__actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 0 0 auto;
    margin-left: auto !important;
  }

  .em-header__actions .em-phone,
  .em-header__actions .em-header__cta,
  .em-header__actions .em-messenger--tg {
    display: none !important;
  }

  .em-header__actions .em-messenger--vb {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .em-header__actions .em-messenger--vb img {
    display: block !important;
    width: 44px !important;
    height: 44px !important;
    object-fit: contain !important;
  }

  .em-header__actions .em-burger {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 1px solid rgba(20, 25, 34, .08) !important;
    border-radius: 15px !important;
    background: #f4f5f6 !important;
    box-shadow: none !important;
    line-height: 1 !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
  }

  .em-header__actions .em-burger span {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: #171d27 !important;
    opacity: 1;
    pointer-events: none !important;
    transform-origin: 50% 50% !important;
    transition: transform .2s ease, opacity .16s ease !important;
  }

  .em-header__actions .em-burger span:nth-child(1) {
    transform: translate(-50%, -50%) translateY(-7px) !important;
  }

  .em-header__actions .em-burger span:nth-child(2) {
    transform: translate(-50%, -50%) !important;
  }

  .em-header__actions .em-burger span:nth-child(3) {
    transform: translate(-50%, -50%) translateY(7px) !important;
  }

  .em-header__actions .em-burger[aria-expanded="true"] span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg) !important;
  }

  .em-header__actions .em-burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0 !important;
    transform: translate(-50%, -50%) scaleX(.45) !important;
  }

  .em-header__actions .em-burger[aria-expanded="true"] span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
  }

  .em-mobile-menu {
    inset: 64px 0 auto !important;
  }
}


.em-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-weight: 850;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.em-btn:hover { transform: translateY(-1px); }
.em-btn--primary {
  background: linear-gradient(135deg, var(--em-accent-2), var(--em-accent));
  color: #1c1b18;
  box-shadow: 0 16px 34px rgba(255,138,0,.24);
}
.em-btn--light {
  background: #fff;
  border-color: var(--em-line);
  color: var(--em-text);
}
.em-btn--large { min-height: 58px; padding-inline: 32px; }
.em-btn--block { width: 100%; }

.em-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  padding: 8px 14px 8px 12px;
  border: 1px solid rgba(255,138,0,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: #c56d00;
  box-shadow: 0 10px 28px rgba(28,33,42,.07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 850;
}
.em-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--em-accent-2), var(--em-accent));
  box-shadow: 0 0 0 4px rgba(255,138,0,.12);
}

.em-hero {
  background: #fff;
}
.em-hero__stage {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #f8f5ef;
}
.em-hero__stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff);
  pointer-events: none;
  z-index: 1;
}
.em-hero__media {
  position: absolute;
  inset: 0;
}
.em-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.95) 28%, rgba(255,255,255,.62) 50%, rgba(255,255,255,.10) 76%),
    linear-gradient(180deg, rgba(255,255,255,0) 56%, rgba(255,255,255,.96) 100%);
}
.em-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.em-hero__inner {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 590px) minmax(340px, 1fr);
  gap: 48px;
  align-items: center;
}
.em-hero__content h1 {
  margin: 28px 0 22px;
  font-size: clamp(54px, 5.6vw, 86px);
  line-height: .98;
  letter-spacing: -.055em;
}
 .em-hero-title span {
  display: block;
}
.em-hero-title span:last-child {
  white-space: nowrap;
}
.em-hero__content p {
  max-width: 560px;
  margin: 0;
  color: #424b58;
  font-size: 23px;
  line-height: 1.55;
}
.em-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}
.em-master-card {
  align-self: end;
  justify-self: end;
  width: min(520px, 100%);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 72px;
  padding: 18px 22px;
  border: 1px solid rgba(32,36,44,.08);
  border-radius: 22px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--em-shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.em-master-card__avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--em-accent-2), var(--em-accent));
  color: #1f232b;
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}
.em-master-card strong {
  display: block;
  margin-bottom: 3px;
  font-size: 18px;
}
.em-master-card span {
  color: var(--em-muted);
}
.em-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 850px;
  margin: -26px auto 0;
  position: relative;
  z-index: 4;
}
.em-fact {
  padding: 22px 24px;
  border: 1px solid var(--em-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--em-shadow-soft);
}
.em-fact svg {
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  fill: var(--em-accent);
}
.em-fact strong { display: block; font-size: 17px; }
.em-fact span { color: var(--em-muted); }

.em-section {
  padding: 78px 0;
}
.em-section-head {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}
.em-section-head--left { margin-left: 0; text-align: left; }
.em-section-head--row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}
.em-section-head h2 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 4vw, 64px);
  line-height: 1.03;
  letter-spacing: -.045em;
}
.em-section-head p {
  margin: 0;
  color: var(--em-muted);
  font-size: 19px;
}

.em-problem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.em-problem-card {
  overflow: hidden;
  border: 1px solid var(--em-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--em-shadow-soft);
}
.em-problem-card__media {
  height: 150px;
  overflow: hidden;
}
.em-problem-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.em-problem-card__body {
  padding: 20px;
}
.em-problem-card h3 {
  margin: 0 0 9px;
  font-size: 25px;
  line-height: 1.08;
}
.em-problem-card p {
  margin: 0 0 16px;
  color: var(--em-muted);
}
.em-problem-card button,
.em-link-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: #c56d00;
  font-weight: 900;
}
.em-problem-card button::after,
.em-link-btn::after { content: " →"; }

.em-prices__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 40px;
  align-items: start;
}
.em-price-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--em-line);
  border-radius: 24px;
  background: #fff;
}
.em-price-table div {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-right: 1px solid rgba(32,36,44,.07);
  border-bottom: 1px solid rgba(32,36,44,.07);
}
.em-price-table div:nth-child(2n) { border-right: 0; }
.em-price-table span { color: #303744; }
.em-price-table strong {
  white-space: nowrap;
  font-size: 19px;
}
.em-note {
  margin: 16px 0 14px;
  color: var(--em-muted);
}
.em-side-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px 16px;
  align-items: start;
  padding: 28px;
  border: 1px solid rgba(255,138,0,.18);
  border-radius: 28px;
  background: linear-gradient(180deg, #fff7e8, #fff);
  box-shadow: var(--em-shadow-soft);
}
.em-side-card__mark {
  grid-column: 1;
  grid-row: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,138,0,.13);
  color: #c56d00;
  font-weight: 950;
}
.em-side-card h3 {
  grid-column: 2;
  margin: 8px 0 2px;
  font-size: 26px;
}
.em-side-card ul {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  gap: 10px;
  padding: 2px 0 0;
  margin: 0;
  list-style: none;
}
.em-side-card li {
  position: relative;
  padding-left: 22px;
  color: #404956;
  font-size: 17px;
  line-height: 1.48;
}
.em-side-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .08em;
  color: var(--em-accent);
  font-weight: 900;
}
.em-side-card .em-btn,
.em-side-card__phone {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 8px;
}
.em-side-card__phone {
  white-space: nowrap;
}

.em-season-card {
  min-height: 410px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  overflow: hidden;
  border-radius: 34px;
  background: #fff6e6;
  box-shadow: var(--em-shadow-soft);
}
.em-season-card__content {
  padding: clamp(32px, 5vw, 58px);
  align-self: center;
}
.em-season-card h2 {
  margin: 18px 0 18px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.em-season-card p {
  max-width: 520px;
  color: #4d5663;
  font-size: 18px;
}
.em-season-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 14px;
}
.em-season-card__note {
  max-width: 420px !important;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  font-size: 15px !important;
}
.em-season-card__media {
  position: relative;
  min-height: 410px;
  overflow: hidden;
}
.em-season-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.em-season-card__media span {
  position: absolute;
  left: 28px;
  bottom: 28px;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--em-shadow-soft);
  font-weight: 900;
}

.em-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.em-steps-grid article {
  padding: 26px;
  border: 1px solid var(--em-line);
  border-radius: 24px;
  background: #fff;
}
.em-steps-grid span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff1d5;
  color: #c56d00;
  font-weight: 950;
}
.em-steps-grid h3 { margin: 28px 0 10px; }
.em-steps-grid p { margin: 0; color: var(--em-muted); }

/* Gallery: desktop 6 columns, mobile 3 columns; button reset for Gallery extra */
.em-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.em-gallery figure {
  position: relative;
  overflow: hidden !important;
  aspect-ratio: 1 / 1;
  margin: 0;
  border-radius: 22px;
  background: #f1f2f3;
  cursor: zoom-in;
  box-shadow: var(--em-shadow-soft);
  transform: translateZ(0);
}
.em-gallery__button {
  position: relative;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  color: inherit !important;
  overflow: hidden !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  cursor: zoom-in;
}
.em-gallery img,
.em-gallery__button img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: inherit !important;
}
.em-gallery figcaption {
  display: none !important;
}

/* ===== v16 gallery-clean =====
   - кнопка внутри карточки сброшена до чистой full-card области;
   - фото заполняют скруглённые карточки без native button padding/border;
   - подписи с именами файлов убраны из визуального интерфейса.
*/
.em-works .em-gallery figure {
  overflow: hidden !important;
  border-radius: 22px;
  background: #f1f2f3;
}
.em-works .em-gallery__button {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  overflow: hidden !important;
  appearance: none;
  -webkit-appearance: none;
}
.em-works .em-gallery__button img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: inherit !important;
}
.em-works .em-gallery figcaption {
  display: none !important;
}

@media (max-width: 760px) {
  .em-works .em-gallery figure {
    border-radius: 14px;
  }
}

.em-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}
.em-faq-grid details {
  border: 1px solid var(--em-line);
  border-radius: 20px;
  background: #fff;
}
.em-faq-grid summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}
.em-faq-grid summary::-webkit-details-marker { display: none; }
.em-faq-grid summary::after {
  content: "+";
  color: #d87900;
  font-size: 24px;
  line-height: 1;
}
.em-faq-grid details[open] summary::after { content: "−"; }
.em-faq-grid p {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--em-muted);
}

.em-final {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 8vw, 104px);
  background: #f6f8fb;
}
.em-final::before {
  display: none;
}
.em-final__inner {
  position: relative;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(34px, 4vw, 58px);
  align-items: center;
  overflow: hidden;
  padding: clamp(38px, 5vw, 64px);
  border: 1px solid rgba(32,36,44,.10);
  border-radius: 36px;
  background:
    linear-gradient(rgba(255,255,255,.92), rgba(255,255,255,.92)),
    url("../img/boiler-repair/maintenance-boiler.png") right center / auto 105% no-repeat,
    #fff;
  box-shadow: 0 28px 76px rgba(28,33,42,.10);
}
.em-final__inner::before {
  content: "";
  position: absolute;
  inset: 24px auto 24px 0;
  width: 5px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--em-accent-2), var(--em-accent));
}
.em-final__inner > div,
.em-final .em-form {
  position: relative;
  z-index: 1;
}
.em-final h2 {
  max-width: 520px;
  margin: 20px 0 18px;
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.em-final p {
  max-width: 530px;
  margin: 0 0 24px;
  color: #5f6977;
  font-size: 18px;
  line-height: 1.58;
}
.em-final__inner > div > a {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px 13px 14px;
  border: 1px solid rgba(32,36,44,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  color: #18202c;
  box-shadow: 0 14px 34px rgba(28,33,42,.07);
  font-size: 20px;
  font-weight: 900;
}
.em-final__inner > div > a::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--em-accent-2), var(--em-accent));
  box-shadow: 0 0 0 5px rgba(255,138,0,.12);
}

.em-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--em-line);
  border-radius: 24px;
  background: rgba(255,255,255,.92);
}
.em-form label {
  display: grid;
  gap: 7px;
  color: #556071;
  font-size: 14px;
  font-weight: 800;
}
.em-form input,
.em-form textarea {
  width: 100%;
  border: 1px solid rgba(32,36,44,.12);
  border-radius: 15px;
  background: #fff;
  color: var(--em-text);
  outline: none;
  font-weight: 650;
}
.em-form input {
  height: 54px;
  padding: 0 16px;
}
.em-form textarea {
  min-height: 105px;
  resize: vertical;
  padding: 16px;
}
.em-form input:focus,
.em-form textarea:focus {
  border-color: rgba(255,138,0,.65);
  box-shadow: 0 0 0 4px rgba(255,138,0,.10);
}
.em-form p,
.em-form-policy {
  margin: 0;
  color: #7a8491;
  font-size: 13px;
  text-align: center;
}

.em-footer {
  padding: 48px 0 calc(48px + env(safe-area-inset-bottom));
  background: #151d2b;
  color: #fff;
}
.em-footer__inner {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(420px, 1.2fr);
  gap: 40px;
}
.em-footer p { color: rgba(255,255,255,.72); }
.em-footer nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 26px;
}
.em-footer nav a { color: rgba(255,255,255,.82); }

.em-mobile-actions {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 90;
  display: none;
  overflow: hidden;
  border-radius: 20px;
  background: #111925;
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
}
.em-mobile-actions a,
.em-mobile-actions button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-rows: 24px auto;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 8px 6px 7px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.em-mobile-actions button {
  background: linear-gradient(135deg, var(--em-accent-2), var(--em-accent));
  color: #1c1b18;
}
.em-mobile-actions__icon,
.em-mobile-actions img {
  display: block;
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
  flex: 0 0 24px;
}
.em-mobile-actions span {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}

.em-sheet[hidden], .em-lightbox[hidden] { display: none; }
.em-sheet {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: end center;
}
.em-sheet__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,12,18,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.em-sheet__panel {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 28px));
  max-height: min(88svh, 720px);
  margin-bottom: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 18px 34px 34px;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,.24);
}
.em-sheet__handle {
  width: 56px;
  height: 5px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: rgba(32,36,44,.18);
}
.em-sheet__close {
  position: sticky;
  top: 0;
  float: right;
  width: 44px;
  height: 44px;
  margin: 0 -8px 0 10px;
  border: 0;
  border-radius: 50%;
  background: #f2f3f4;
  color: #20242c;
  font-size: 28px;
  line-height: 1;
  z-index: 5;
}
.em-sheet__header {
  margin-bottom: 22px;
  padding-right: 52px;
}
.em-sheet__header h2 {
  margin: 0 0 8px;
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.08;
}
.em-sheet__header p {
  margin: 0;
  color: var(--em-muted);
  font-size: 17px;
}
.em-sheet__actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.em-price-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.em-price-groups section {
  overflow: hidden;
  border: 1px solid var(--em-line);
  border-radius: 20px;
  background: #fff;
}
.em-price-groups h3 {
  margin: 0;
  padding: 16px 18px;
  background: #f7f8f9;
}
.em-price-groups div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-top: 1px solid rgba(32,36,44,.07);
}
.em-price-groups strong { white-space: nowrap; }
.em-price-groups p {
  margin: 0;
  color: var(--em-muted);
}
.em-sheet-block {
  min-width: 0;
}
.em-problem-sheet {
  display: grid;
  gap: 16px;
}
.em-problem-sheet__media {
  overflow: hidden;
  border-radius: 20px;
  background: #f4f5f6;
}
.em-problem-sheet img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 20px;
}
.em-problem-sheet h2 {
  margin: 2px 0 0;
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.em-problem-sheet > p {
  margin: 0;
  color: #303744;
  font-size: 18px;
  line-height: 1.55;
}
.em-problem-sheet__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  margin-top: 0;
  color: #303744;
  font-size: 17px;
  line-height: 1.35;
}
.em-problem-sheet__price span {
  color: #303744;
}
.em-problem-sheet__price strong {
  color: var(--em-text);
  font-size: 18px;
  font-weight: 950;
}
.em-problem-sheet h3 {
  margin: 6px 0 -2px;
  font-size: 21px;
  line-height: 1.2;
}
.em-problem-sheet ul {
  margin: 0;
  padding-left: 21px;
  color: var(--em-muted);
  line-height: 1.55;
}
.em-problem-sheet li + li {
  margin-top: 2px;
}
.em-problem-sheet .em-btn {
  margin-top: 4px;
}
.em-estimate-box {
  padding: 18px;
  border-radius: 18px;
  background: #fff7e8;
}
.em-estimate-box span,
.em-estimate-box small {
  display: block;
  color: var(--em-muted);
}
.em-estimate-box strong {
  display: block;
  margin: 4px 0;
  font-size: 30px;
  color: #d33636;
}

.em-lightbox {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 58px 72px;
  background: rgba(8,12,18,.88);
}
.em-lightbox figure {
  width: min(1040px, 100%);
  margin: 0;
}
.em-lightbox img {
  width: 100%;
  max-height: calc(100svh - 150px);
  object-fit: contain;
  border-radius: 18px;
}
.em-lightbox figcaption {
  margin-top: 14px;
  color: #fff;
  text-align: center;
  font-weight: 850;
}
.em-lightbox__close,
.em-lightbox__nav {
  position: fixed;
  border: 0;
  background: rgba(255,255,255,.14);
  color: #fff;
}
.em-lightbox__close {
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 34px;
}
.em-lightbox__nav {
  top: 50%;
  width: 54px;
  height: 76px;
  transform: translateY(-50%);
  border-radius: 18px;
  font-size: 56px;
}
.em-lightbox__nav--prev { left: 18px; }
.em-lightbox__nav--next { right: 18px; }

@media (max-width: 1100px) {
  .em-nav, .em-phone, .em-header__cta { display: none; }
  .em-burger { display: block; }
  .em-header__actions { margin-left: auto; }
  .em-problem-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .em-prices__grid { grid-template-columns: 1fr; }
  .em-steps-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  body { padding-bottom: 78px; }
  .em-container { width: min(100% - 28px, var(--em-container)); }
  .em-header__inner { min-height: 74px; }
  .em-brand img { width: 170px; }
  .em-messenger--vb { display: grid; }
  .em-messenger { width: 38px; height: 38px; }
  .em-mobile-menu { inset: 74px 0 auto; }

  .em-hero__stage {
    min-height: 622px;
    border-radius: 0 0 30px 30px;
  }
  .em-hero__stage::after { height: 180px; }
  .em-hero__media::after {
    background:
      linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.86) 48%, rgba(255,255,255,.12) 86%),
      linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.26) 58%, #fff 100%);
  }
  .em-hero__media img {
    object-position: 60% 0;
  }
  .em-hero__inner {
    min-height: 622px;
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 38px;
  }
  .em-hero__content {
    max-width: 318px;
  }
  .em-hero__content h1 {
    margin: 16px 0 12px;
    font-size: clamp(40px, 12vw, 56px);
  }
  .em-hero__content p {
    font-size: 16px;
  }
  .em-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 22px;
  }
  .em-hero__actions .em-btn--light {
    display: inline-flex;
    background: rgba(255,255,255,.88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .em-hero__actions .em-btn {
    min-height: 52px;
    border-radius: 16px;
  }
  .em-master-card {
    align-self: end;
    justify-self: stretch;
    width: 100%;
    margin: 0 0 22px;
    padding: 14px 16px;
  }
  .em-master-card__avatar {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 23px;
    border-radius: 15px;
  }
  .em-master-card strong { font-size: 15px; }
  .em-master-card span { font-size: 13px; }
  .em-hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: -8px;
  }
  .em-fact {
    min-height: 92px;
    padding: 12px 8px;
    text-align: center;
  }
  .em-fact svg {
    width: 24px;
    height: 24px;
    margin: 0 auto 8px;
  }
  .em-fact strong {
    font-size: 12px;
    line-height: 1.15;
  }
  .em-fact span { display: none; }

  .em-section { padding: 52px 0; }
  .em-section-head { margin-bottom: 24px; text-align: left; }
  .em-section-head h2 { font-size: 36px; }
  .em-section-head p { font-size: 16px; }

  .em-problem-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .em-problem-card {
    display: grid;
    grid-template-columns: 112px minmax(0,1fr);
    min-height: 132px;
    border-radius: 20px;
  }
  .em-problem-card__media {
    height: 100%;
  }
  .em-problem-card__body {
    padding: 16px;
  }
  .em-problem-card h3 {
    font-size: 22px;
  }
  .em-problem-card p {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .em-price-table {
    grid-template-columns: 1fr;
  }
  .em-price-table div {
    min-height: 62px;
    padding: 14px 16px;
    border-right: 0;
  }
  .em-side-card {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px 14px;
    padding: 22px;
    border-radius: 24px;
  }
  .em-side-card__mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }
  .em-side-card ul {
    gap: 9px;
    padding-top: 1px;
  }
  .em-side-card li {
    font-size: 16px;
    line-height: 1.45;
  }
  .em-side-card .em-btn,
  .em-side-card__phone {
    min-height: 56px;
    margin-top: 10px;
  }

  .em-season-card {
    min-height: 0;
    grid-template-columns: 1fr;
  }
  .em-season-card__content {
    padding: 26px;
  }
  .em-season-card h2 {
    font-size: 34px;
  }
  .em-season-card p {
    font-size: 16px;
  }
  .em-season-card__media {
    min-height: 210px;
    max-height: 230px;
  }
  .em-season-card__actions {
    display: grid;
  }

  .em-steps-grid {
    grid-template-columns: 1fr;
  }
  .em-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .em-gallery figure {
    border-radius: 14px;
  }

  .em-faq-grid {
    grid-template-columns: 1fr;
  }
  .em-faq-grid summary {
    padding: 18px;
  }
  .em-faq-grid p {
    padding: 0 18px 18px;
  }

  .em-final {
    padding-block: 58px;
    background: #f6f8fb;
  }
  .em-final::before {
    display: none;
  }
  .em-final__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
    border-radius: 28px;
    background: #fff;
  }
  .em-final__inner::before {
    inset: 0 20px auto;
    width: auto;
    height: 4px;
    border-radius: 0 0 999px 999px;
  }
  .em-final__inner > div > a {
    width: 100%;
    justify-content: center;
  }
  .em-form {
    padding: 18px;
  }

.em-mobile-actions {
  display: flex;
}

  .em-sheet {
    place-items: end center;
  }
  .em-sheet__panel {
    width: calc(100% - 16px);
    max-height: 88svh;
    margin-bottom: 8px;
    padding: 14px 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: 28px 28px 20px 20px;
  }
  .em-sheet__handle {
    margin-bottom: 14px;
  }
  .em-sheet__close {
    position: absolute;
    top: 24px;
    right: 20px;
    float: none;
    width: 42px;
    height: 42px;
    margin: 0;
  }
  .em-sheet__header {
    padding-right: 46px;
  }
  .em-sheet__header h2 {
    font-size: 32px;
  }
  .em-problem-sheet {
    gap: 12px;
    padding-inline: 0;
  }
  .em-problem-sheet__media {
    border-radius: 22px;
  }
  .em-problem-sheet__media img {
    height: min(32svh, 230px);
    max-height: none;
    border-radius: 22px;
    object-fit: cover;
  }
  .em-problem-sheet .em-kicker {
    max-width: calc(100% - 58px);
    margin-top: 0;
    padding: 8px 13px;
    font-size: 13px;
  }
  .em-problem-sheet h2 {
    margin-top: 4px;
    padding-right: 46px;
    font-size: 31px;
    line-height: 1.1;
    letter-spacing: -.035em;
  }
  .em-problem-sheet > p {
    font-size: 17px;
    line-height: 1.48;
  }
  .em-problem-sheet__price {
    gap: 6px;
    margin-top: 2px;
    font-size: 16px;
    line-height: 1.35;
  }
  .em-problem-sheet__price strong {
    font-size: 17px;
  }
  .em-problem-sheet h3 {
    margin: 10px 0 0;
    font-size: 20px;
  }
  .em-problem-sheet ul {
    padding-left: 20px;
    font-size: 16px;
    line-height: 1.45;
  }
  .em-problem-sheet li + li {
    margin-top: 1px;
  }
  .em-problem-sheet .em-btn {
    width: 100%;
    min-height: 56px;
    margin-top: 8px;
    border-radius: 16px;
  }
  .em-price-groups {
    grid-template-columns: 1fr;
  }
  .em-price-groups section:last-child {
    grid-column: auto;
  }
  .em-sheet__actions {
    display: grid;
  }

  .em-lightbox {
    padding: 44px 14px 34px;
  }
  .em-lightbox img {
    max-height: calc(100svh - 120px);
  }
  .em-lightbox__nav {
    display: none;
  }

  .em-footer__inner,
  .em-footer nav {
    grid-template-columns: 1fr;
  }
}

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

/* ===== v7 polish ===== */

/* Header: less compressed desktop layout */
.em-header__inner {
  gap: 22px;
}
.em-nav {
  gap: clamp(18px, 1.85vw, 30px);
}
.em-header__actions {
  gap: 10px;
  margin-left: 14px;
}
.em-messenger {
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}
.em-messenger img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.em-messenger svg {
  display: none;
}
.em-header__cta {
  min-width: 162px;
}


/* Problem cards: restore enough image height without making cards huge */
.em-problem-card__media {
  height: 182px;
}
.em-problem-card__media img {
  object-position: center;
}

/* Forms: softer placeholders + proper consent */
.em-form input,
.em-form textarea {
  font-weight: 600;
}
.em-form input::placeholder,
.em-form textarea::placeholder {
  color: rgba(76,85,98,.36);
  font-weight: 500;
}
.em-consent {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px !important;
  align-items: start;
  color: #596474 !important;
  font-size: 13px !important;
  line-height: 1.45;
  font-weight: 600 !important;
}
.em-consent input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 2px 0 0;
  accent-color: var(--em-accent);
}
.em-consent a {
  color: #1267c4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Smooth FAQ accordion */
.em-faq-grid details {
  display: none;
}
.em-faq-item {
  border: 1px solid var(--em-line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  transform: translateZ(0);
}
.em-faq-question {
  width: 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border: 0;
  background: transparent;
  color: var(--em-text);
  text-align: left;
  font-weight: 850;
  -webkit-tap-highlight-color: transparent;
}
.em-faq-sign {
  width: 18px;
  height: 18px;
  position: relative;
  flex: 0 0 18px;
}
.em-faq-sign::before,
.em-faq-sign::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #d87900;
  transform: translate(-50%, -50%);
  transition: transform .22s ease;
}
.em-faq-sign::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.em-faq-item.is-open .em-faq-sign::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.em-faq-answer {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height .26s ease, opacity .18s ease;
  will-change: height;
}
.em-faq-item.is-open .em-faq-answer {
  opacity: 1;
}
.em-faq-answer p {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--em-muted);
}

/* Steps: tighter and less decorative */
.em-steps {
  padding-top: 56px;
  padding-bottom: 58px;
}
.em-steps .em-section-head {
  margin-bottom: 26px;
}
.em-steps .em-section-head h2 {
  margin-top: 14px;
}
.em-steps-grid {
  gap: 14px;
}
.em-steps-grid article {
  padding: 22px;
  border-radius: 22px;
  box-shadow: none;
}
.em-steps-grid span {
  width: auto;
  height: auto;
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(216,121,0,.22);
  background: rgba(255,194,61,.10);
  color: #b86800;
  font-size: 13px;
  line-height: 1;
}
.em-steps-grid h3 {
  margin: 18px 0 8px;
}

/* Prices sheet: compact two-column grouping */
.em-price-groups {
  align-items: start;
}
.em-price-groups section {
  align-self: start;
}
.em-price-groups section:nth-child(3) {
  grid-column: auto;
}
.em-price-groups div {
  min-height: 52px;
  align-items: center;
}

/* Problem sheet media normalization */
.em-problem-sheet img {
  object-fit: cover;
}

/* Mobile sticky actions: compact real SVG/icon sizing */
.em-mobile-actions a,
.em-mobile-actions button {
  display: grid;
  grid-template-rows: 24px auto;
  align-content: center;
  justify-items: center;
  gap: 4px;
}
.em-mobile-actions__icon,
.em-mobile-actions img {
  display: block;
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
}

/* Mobile refinements */
@media (max-width: 760px) {
  .em-messenger img {
    width: 38px;
    height: 38px;
  }
  .em-problem-card {
    grid-template-columns: 128px minmax(0, 1fr);
    min-height: 148px;
  }
  .em-problem-card__media {
    height: 100%;
  }
  .em-faq-question {
    min-height: 62px;
    padding: 17px 18px;
  }
  .em-faq-answer p {
    padding: 0 18px 18px;
  }
  .em-steps {
    padding-top: 44px;
    padding-bottom: 46px;
  }
  .em-price-groups {
    grid-template-columns: 1fr;
  }
  .em-price-groups section:nth-child(3) {
    grid-column: auto;
  }
}

/* Avoid header overcrowding on medium desktop */
@media (min-width: 1101px) and (max-width: 1280px) {
  .em-brand img {
    width: 190px;
  }
  .em-nav {
    gap: 18px;
    font-size: 14px;
  }
  .em-phone {
    font-size: 15px;
  }
  .em-header__cta {
    min-width: 144px;
    padding-inline: 18px;
  }
}


/* ===== v8 focused polish: header, timeline, FAQ, final CTA, footer ===== */

/* safer horizontal overflow */
html,
body,
.em-page {
  max-width: 100%;
  overflow-x: clip;
}

/* Footer logo and dark footer readability */
.em-footer img {
  width: 190px;
  height: auto;
}
.em-footer p,
.em-footer nav a {
  color: rgba(255,255,255,.78);
}
.em-footer nav a:hover {
  color: #fff;
}

/* Messenger icons: use uploaded files cleanly */
.em-messenger {
  background: transparent !important;
  box-shadow: none !important;
}
.em-messenger img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}


/* FAQ starts closed, then opens smoothly */
.em-faq-item {
  contain: layout paint;
}
.em-faq-question {
  -webkit-tap-highlight-color: transparent;
}
.em-faq-answer {
  transform: translateZ(0);
  backface-visibility: hidden;
}
.em-faq-item:not(.is-open) .em-faq-answer {
  opacity: 0;
}
.em-faq-item:not(.is-open) .em-faq-sign::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.em-faq-item.is-open .em-faq-sign::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

/* Final CTA service card: neutral surface, no warm/yellow background wash */
.em-final .em-form {
  padding: clamp(22px, 2.4vw, 30px);
  border-color: rgba(32,36,44,.10);
  border-radius: 28px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 22px 54px rgba(28,33,42,.08);
}
.em-final .em-form input,
.em-final .em-form textarea {
  border-color: rgba(32,36,44,.12);
  background: rgba(255,255,255,.98);
}
.em-final .em-consent {
  font-size: 13px !important;
  line-height: 1.45;
  text-align: left;
}
.em-final .em-consent a,
.em-form .em-consent a {
  color: #1267c4 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: 800 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.em-final .em-consent input,
.em-form .em-consent input {
  margin-top: 2px;
}

/* Modern timeline instead of old card grid */
.em-steps {
  padding-top: 68px;
  padding-bottom: 70px;
}
.em-steps .em-section-head {
  text-align: center;
  margin-bottom: 40px;
}
.em-steps-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 28px;
}
.em-steps-grid::before {
  content: "";
  position: absolute;
  left: 11%;
  right: 11%;
  top: 25px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,138,0,.18), rgba(255,138,0,.55), rgba(255,138,0,.18));
}
.em-steps-grid article {
  position: relative;
  z-index: 1;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}
.em-steps-grid article::after {
  content: "";
  display: block;
  max-width: 250px;
  min-height: 132px;
  margin: 18px auto 0;
  padding: 26px 22px;
  border: 1px solid var(--em-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(28,33,42,.045);
  pointer-events: none;
}
.em-steps-grid article > span {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 0;
  border: 2px solid rgba(255,138,0,.42);
  border-radius: 50%;
  background: #fff;
  color: #d87900;
  font-size: 16px;
  font-weight: 950;
  box-shadow: 0 0 0 8px #fff;
}
.em-steps-grid article > h3,
.em-steps-grid article > p {
  position: relative;
  z-index: 2;
  max-width: 210px;
  margin-left: auto;
  margin-right: auto;
}
.em-steps-grid article > h3 {
  margin-top: -108px;
  margin-bottom: 8px;
  font-size: 18px;
}
.em-steps-grid article > p {
  margin-bottom: 0;
  color: var(--em-muted);
  font-size: 15px;
}

/* Price sheet: avoid one long heavy left column */
.em-price-groups {
  gap: 16px;
}
.em-price-groups section {
  overflow: hidden;
}
.em-price-groups div {
  min-height: 48px;
  padding-block: 12px;
}
.em-price-groups h3 {
  background: #f7f8f9;
}

@media (max-width: 760px) {
  .em-header {
    background: rgba(255,255,255,.98);
  }
  .em-header__inner {
    min-height: 64px !important;
    gap: 8px;
    width: min(100% - 22px, var(--em-container));
  }
  .em-brand {
    min-width: 0;
    flex: 1 1 auto;
  }
  .em-brand img {
    width: clamp(128px, 42vw, 156px) !important;
    height: auto;
  }
  .em-header__actions {
    flex: 0 0 auto;
    gap: 7px;
    margin-left: auto !important;
  }
  .em-messenger {
    width: 34px !important;
    height: 34px !important;
  }
  .em-messenger img {
    width: 34px;
    height: 34px;
  }
  .em-burger {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid !important;
    place-items: center;
    padding: 0;
    border-radius: 12px;
    background: #f1f2f4;
  }
  .em-burger span {
    width: 18px;
    height: 2px;
    margin: 2px auto;
  }
  .em-mobile-menu {
    inset: 64px 0 auto;
  }

  /* Hero: keep CTA and card readable after header fix */
  .em-hero__stage {
    min-height: 604px;
  }
  .em-hero__inner {
    min-height: 604px;
    padding-top: 32px;
  }

  /* Mobile sticky actions: compact bottom bar */
  .em-mobile-actions {
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    border-radius: 18px;
  }
  .em-mobile-actions a,
  .em-mobile-actions button {
    min-height: 58px;
    grid-template-rows: 24px auto;
    gap: 5px;
    padding: 8px 6px 7px;
    font-size: 12px;
    letter-spacing: .01em;
  }
  .em-mobile-actions__icon,
  .em-mobile-actions img {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
  }

  /* Mobile timeline */
  .em-steps {
    padding-top: 46px;
    padding-bottom: 50px;
  }
  .em-steps .em-section-head {
    text-align: left;
    margin-bottom: 24px;
  }
  .em-steps-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
    padding-left: 14px;
  }
  .em-steps-grid::before {
    left: 28px;
    right: auto;
    top: 20px;
    bottom: 20px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(255,138,0,.20), rgba(255,138,0,.55), rgba(255,138,0,.20));
  }
  .em-steps-grid article {
    min-height: 0;
    padding-left: 34px;
    text-align: left;
  }
  .em-steps-grid article::after {
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 18px 18px 18px 22px;
    border-radius: 20px;
  }
  .em-steps-grid article > span {
    position: absolute;
    left: 0;
    top: 18px;
    width: 30px;
    height: 30px;
    font-size: 12px;
    box-shadow: 0 0 0 6px #fff;
  }
  .em-steps-grid article > h3,
  .em-steps-grid article > p {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
  .em-steps-grid article > h3 {
    margin-top: -98px;
    font-size: 17px;
  }
  .em-steps-grid article > p {
    font-size: 14px;
  }

  .em-final__inner {
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 18px 46px rgba(28,33,42,.08);
  }
  .em-final h2 {
    margin-top: 18px;
    font-size: 36px;
  }
  .em-final p {
    margin-bottom: 18px;
    font-size: 16px;
  }
  .em-final .em-form {
    padding: 18px;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(28,33,42,.06);
  }
  .em-final .em-consent {
    grid-template-columns: 20px minmax(0, 1fr);
    font-size: 12px !important;
  }
  .em-final .em-consent a,
  .em-form .em-consent a {
    font-size: inherit !important;
  }

  .em-price-groups {
    grid-template-columns: 1fr;
  }
  .em-price-groups div {
    min-height: 46px;
  }
}

/* Keep old mobile rules from overriding v8 timeline */
@media (max-width: 1100px) and (min-width: 761px) {
  .em-steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* ===== v9 final repair: stable timeline, clean burger, mobile problem swipe ===== */

/* 1) Header hamburger: classic compact 3-line icon */
.em-burger {
  position: relative !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 1px solid rgba(20, 25, 34, .08) !important;
  background: #f4f5f6 !important;
  box-shadow: none !important;
  line-height: 1 !important;
}
.em-burger span {
  display: block !important;
  width: 18px !important;
  height: 2px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  background: #171d27 !important;
  transform: none;
}

.em-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg) !important;
}
.em-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.em-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg) !important;
}

/* 2) Timeline desktop: remove broken pseudo-card hack and build a real timeline */
.em-steps {
  padding-top: clamp(64px, 7vw, 108px) !important;
  padding-bottom: clamp(64px, 7vw, 108px) !important;
}
.em-steps .em-section-head {
  max-width: 760px;
  margin: 0 auto 42px !important;
  text-align: center !important;
}
.em-steps .em-section-head h2 {
  margin-left: auto;
  margin-right: auto;
}
.em-steps-grid {
  position: relative !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
}
.em-steps-grid::before {
  content: "" !important;
  position: absolute !important;
  left: calc(12.5% + 26px) !important;
  right: calc(12.5% + 26px) !important;
  top: 25px !important;
  width: auto !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(255,138,0,.16), rgba(255,138,0,.55), rgba(255,138,0,.16)) !important;
}
.em-steps-grid article {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  min-height: 220px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center !important;
}
.em-steps-grid article::after {
  display: none !important;
  content: none !important;
}
.em-steps-grid article > span {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 52px !important;
  width: 52px !important;
  height: 52px !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
  border: 2px solid rgba(255,138,0,.42) !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #dc7900 !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  box-shadow: 0 0 0 8px #fff !important;
}
.em-steps-grid article > h3,
.em-steps-grid article > p {
  position: static !important;
  z-index: auto !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.em-steps-grid article > h3 {
  width: 100% !important;
  margin: 0 !important;
  padding: 28px 22px 0 !important;
  border: 1px solid var(--em-line) !important;
  border-bottom: 0 !important;
  border-radius: 24px 24px 0 0 !important;
  background: #fff !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  box-shadow: 0 18px 42px rgba(28,33,42,.045) !important;
}
.em-steps-grid article > p {
  width: 100% !important;
  flex: 1 1 auto !important;
  margin: 0 !important;
  padding: 10px 22px 28px !important;
  border: 1px solid var(--em-line) !important;
  border-top: 0 !important;
  border-radius: 0 0 24px 24px !important;
  background: #fff !important;
  color: var(--em-muted) !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  box-shadow: 0 18px 42px rgba(28,33,42,.045) !important;
}

/* 3) Problem cards: desktop remains grid, mobile becomes horizontal swipe */
.em-problem-grid {
  overflow: visible;
}
.em-problem-card__media {
  min-height: 0;
}
.em-problem-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* tablet safety */
@media (max-width: 1100px) and (min-width: 761px) {
  .em-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px !important;
  }
  .em-steps-grid::before {
    display: none !important;
  }
  .em-steps-grid article {
    min-height: 200px !important;
  }
}

/* mobile */
@media (max-width: 760px) {
  html,
  body,
  .em-page {
    overflow-x: clip !important;
  }

  .em-header__inner {
    min-height: 64px !important;
    width: min(100% - 22px, var(--em-container)) !important;
    display: flex !important;
    align-items: center !important;
  }
  .em-header__actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
  }
  .em-burger {
    display: flex !important;
    flex-direction: column !important;
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    border-radius: 14px !important;
  }

  /* mobile problem swipe, not a vertical service grid */
  .em-problems {
    overflow: hidden !important;
  }
  .em-problem-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 14px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    overscroll-behavior-x: contain !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    margin-left: calc(var(--em-section-x, 0px) * -1) !important;
    margin-right: calc(var(--em-section-x, 0px) * -1) !important;
    padding: 2px var(--em-section-x, 20px) 20px !important;
    scrollbar-width: none !important;
  }
  .em-problem-grid::-webkit-scrollbar {
    display: none !important;
  }
  .em-problem-card {
    flex: 0 0 min(78vw, 316px) !important;
    max-width: min(78vw, 316px) !important;
    scroll-snap-align: start !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    border-radius: 22px !important;
  }
  .em-problem-card__media {
    height: 148px !important;
    flex: 0 0 148px !important;
  }
  .em-problem-card__body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    padding: 18px !important;
  }
  .em-problem-card__body h3 {
    font-size: 21px !important;
    line-height: 1.12 !important;
    margin-bottom: 8px !important;
  }
  .em-problem-card__body p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  .em-problem-card__body button {
    margin-top: auto !important;
    align-self: flex-start !important;
  }

  /* mobile timeline: clean vertical line with real cards */
  .em-steps {
    padding-top: 50px !important;
    padding-bottom: 54px !important;
  }
  .em-steps .em-section-head {
    text-align: left !important;
    margin-bottom: 24px !important;
  }
  .em-steps-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding-left: 18px !important;
  }
  .em-steps-grid::before {
    display: block !important;
    left: 14px !important;
    right: auto !important;
    top: 22px !important;
    bottom: 22px !important;
    width: 2px !important;
    height: auto !important;
    background: linear-gradient(180deg, rgba(255,138,0,.18), rgba(255,138,0,.56), rgba(255,138,0,.18)) !important;
  }
  .em-steps-grid article {
    position: relative !important;
    display: block !important;
    min-height: 0 !important;
    padding: 0 0 0 28px !important;
    text-align: left !important;
  }
  .em-steps-grid article > span {
    position: absolute !important;
    left: -18px !important;
    top: 18px !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    margin: 0 !important;
    font-size: 12px !important;
    box-shadow: 0 0 0 6px #fff !important;
  }
  .em-steps-grid article > h3 {
    width: auto !important;
    margin: 0 !important;
    padding: 18px 18px 6px !important;
    border-radius: 20px 20px 0 0 !important;
    font-size: 17px !important;
    text-align: left !important;
  }
  .em-steps-grid article > p {
    width: auto !important;
    padding: 4px 18px 18px !important;
    border-radius: 0 0 20px 20px !important;
    font-size: 14px !important;
    text-align: left !important;
  }
}


/* ===== v10 hero-real-master-refine =====
   Цель: добавить реальность в hero без переделки всей страницы.
   - реальное фото Павла только в компактной master-card;
   - отдельная карточка про сложный доступ к бойлеру;
   - hero-facts стали конкретнее: Минск / сложный доступ / гарантия;
   - мобильный hero не превращается в тёмный лендинг и не ломает v9.
*/

.em-master-card__avatar--photo {
  overflow: hidden !important;
  padding: 0 !important;
  background: #f4f5f7 !important;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .06) !important;
}
.em-master-card__avatar--photo img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: 54% 42% !important;
}

/* compact trust card about difficult access */
.em-hard-access {
  padding-top: clamp(34px, 4vw, 60px) !important;
  padding-bottom: clamp(34px, 5vw, 78px) !important;
}
.em-hard-access__card {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  padding: clamp(18px, 2.8vw, 30px);
  border: 1px solid var(--em-line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 184, 52, .13), transparent 34%),
    #fff;
  box-shadow: 0 28px 72px rgba(24, 30, 40, .065);
}
.em-hard-access__media {
  overflow: hidden;
  min-height: 250px;
  border-radius: 24px;
  background: #f4f5f6;
}
.em-hard-access__media img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  display: block;
  object-fit: cover;
  object-position: 50% 48%;
}
.em-hard-access__content {
  max-width: 660px;
}
.em-hard-access__content h2 {
  max-width: 620px;
  margin: 14px 0 14px;
  font-size: clamp(32px, 3.7vw, 56px);
  line-height: .98;
  letter-spacing: -.055em;
}
.em-hard-access__content p {
  max-width: 620px;
  margin: 0 0 20px;
  color: var(--em-muted);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.65;
}
.em-hard-access__content .em-link-btn {
  color: var(--em-orange-dark);
}

/* make the factual row work with the stronger "hard access" fact */
.em-hero-facts {
  text-align: left;
}
.em-fact span {
  line-height: 1.35;
}

/* mobile: hero feels more collected, master card is real but not heavy */
@media (max-width: 760px) {
  .em-hero__stage {
    background:
      linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.74) 42%, rgba(255,255,255,.96) 100%),
      #fff !important;
  }
  .em-hero__media {
    opacity: .9 !important;
  }
  .em-master-card {
    align-items: center !important;
    padding: 12px !important;
    gap: 12px !important;
  }
  .em-master-card__avatar--photo {
    width: 52px !important;
    height: 52px !important;
    flex: 0 0 52px !important;
    border-radius: 16px !important;
  }
  .em-master-card strong {
    font-size: 14px !important;
    line-height: 1.18 !important;
  }
  .em-master-card span:not(.em-master-card__avatar) {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .em-hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .em-fact {
    min-width: 0 !important;
    padding: 12px 8px !important;
    border-radius: 16px !important;
    text-align: center !important;
  }
  .em-fact svg {
    width: 18px !important;
    height: 18px !important;
    margin: 0 auto 8px !important;
  }
  .em-fact strong {
    font-size: 11px !important;
    line-height: 1.15 !important;
  }
  .em-fact span {
    margin-top: 4px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  .em-hard-access {
    padding-top: 28px !important;
    padding-bottom: 46px !important;
  }
  .em-hard-access__card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 14px !important;
    border-radius: 24px !important;
    box-shadow: 0 18px 44px rgba(24, 30, 40, .055) !important;
  }
  .em-hard-access__media {
    min-height: 170px !important;
    border-radius: 18px !important;
  }
  .em-hard-access__media img {
    min-height: 170px !important;
    object-position: 50% 48% !important;
  }
  .em-hard-access__content {
    padding: 2px 2px 4px !important;
  }
  .em-hard-access__content h2 {
    margin: 10px 0 10px !important;
    font-size: 28px !important;
    line-height: 1.03 !important;
    letter-spacing: -.045em !important;
  }
  .em-hard-access__content p {
    margin-bottom: 14px !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
  }
}


/* ===== v11 structure-logo-refine =====
   - блок "Сложный доступ" перенесён после цен, чтобы не перебивать основной сценарий;
   - логотип в header приведён ближе к текущему сайту: темнее wordmark и компактнее размер;
   - без изменения hero/таймлайна/галереи/форм/JS.
*/

.em-brand {
  flex: 0 0 auto;
}

.em-brand img {
  width: clamp(172px, 12.6vw, 190px) !important;
  height: auto !important;
  display: block;
  filter: contrast(1.12) saturate(.98);
}

.em-header__inner {
  min-height: 74px;
}

.em-hard-access {
  padding-top: clamp(54px, 6vw, 96px) !important;
}

@media (max-width: 760px) {
  .em-brand img {
    width: 168px !important;
  }

  .em-hard-access {
    padding-top: 42px !important;
  }
}

@media (max-width: 420px) {
  .em-brand img {
    width: 156px !important;
  }
}

/* ===== v29 header-hero-cta-polish =====
   - desktop header navigation is balanced between the logo and contact actions;
   - navigation typography is lighter and closer to the legacy site rhythm;
   - Hero phone CTA supports an inline phone icon;
   - mobile Hero CTA buttons are collected into a centered full-width action group;
   - mobile master card photo/text spacing and Hero fact icons are refined.
*/

@media (min-width: 1101px) {
  .em-header__inner {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: clamp(24px, 2.4vw, 42px) !important;
  }

  .em-nav {
    min-width: 0 !important;
    justify-content: center !important;
    margin: 0 !important;
    gap: clamp(18px, 1.65vw, 28px) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
  }

  .em-nav__link {
    min-height: 44px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
  }

  .em-nav__dropdown a {
    font-size: 14px !important;
    font-weight: 500 !important;
  }

  .em-header__actions {
    justify-self: end !important;
    margin-left: 0 !important;
  }
}

.em-hero__actions .em-btn--light {
  gap: 10px;
}

.em-hero__phone-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: block;
  fill: currentColor;
}

@media (max-width: 760px) {
  .em-hero__content {
    max-width: min(100%, 430px) !important;
  }

  .em-hero__actions {
    width: 100% !important;
    max-width: 390px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-top: 22px !important;
  }

  .em-hero__actions .em-btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 56px !important;
    padding-inline: 22px !important;
    border-radius: 18px !important;
  }

  .em-hero__actions .em-btn--light {
    display: inline-flex !important;
    background: rgba(255, 255, 255, .92) !important;
    color: #1d232c !important;
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
  }

  .em-hero__phone-icon {
    width: 18px !important;
    height: 18px !important;
    flex-basis: 18px !important;
  }

  .em-master-card {
    align-items: center !important;
    gap: 14px !important;
    padding: 14px !important;
    border-radius: 22px !important;
  }

  .em-master-card > div {
    min-width: 0 !important;
  }

  .em-master-card__avatar--photo {
    width: 64px !important;
    height: 64px !important;
    flex: 0 0 64px !important;
    border-radius: 18px !important;
  }

  .em-master-card strong {
    margin-bottom: 4px !important;
    font-size: 15px !important;
    line-height: 1.18 !important;
    letter-spacing: -.01em !important;
  }

  .em-master-card span:not(.em-master-card__avatar) {
    display: block !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  .em-fact svg {
    width: 24px !important;
    height: 24px !important;
    margin: 0 auto 9px !important;
  }

  .em-fact strong {
    font-size: 12px !important;
    line-height: 1.16 !important;
  }
}



/* ===== v30 desktop-telegram-hero-title-lines =====
   - Telegram messenger is intentionally shown only in desktop header; mobile header stays Viber + burger.
   - Hero H1 line breaks are controlled by .em-hero-title spans, not by extra TVs.
*/
@media (min-width: 1101px) {
  .em-header__actions .em-messenger--tg {
    display: grid !important;
  }
}

.em-hero-title span {
  display: block;
}

.em-hero-title span:last-child {
  white-space: nowrap;
}
