/* Локальные правки страницы «Антереал ГИС». */
.antereal-gis-page [aria-label="Наверх"] {
  display: none !important;
}

.agis-scroll-top {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 50;
  display: flex;
  width: 70px;
  height: 70px;
  align-items: center;
  justify-content: center;
  border: 2px solid #c8362f;
  border-radius: 50%;
  background: #c8362f;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
  box-shadow: 0 10px 32px rgba(27, 50, 42, 0.25);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.28s ease, transform 0.28s ease, background-color 0.2s ease, color 0.2s ease;
}

.agis-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.agis-scroll-top:hover {
  background: #fff;
  color: #c8362f;
}

body.agis-system-preview-open {
  overflow: hidden;
}

.agis-system-preview {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  padding: 40px;
  align-items: center;
  justify-content: center;
  background: rgba(12, 29, 24, 0.82);
}

.agis-system-preview.is-open {
  display: flex;
}

.agis-system-preview__image {
  display: block;
  max-width: min(1200px, calc(100vw - 80px));
  max-height: calc(100vh - 80px);
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.agis-system-preview__close {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  width: 48px;
  height: 48px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 2px solid #c8362f;
  border-radius: 50%;
  background: #c8362f;
  color: #fff;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.agis-system-preview__close:hover {
  background: #fff;
  color: #c8362f;
}

@media (min-width: 1024px) {
  .antereal-gis-page main > .flex-1 > section:first-child > div.relative.z-10 > div:first-child > h1 {
    position: absolute;
    top: 260px;
    left: 42px;
    width: 436px;
    max-width: calc(100% - 84px);
    margin: 0;
  }

  .antereal-gis-page main > .flex-1 > section:first-child > div.relative.z-10 > div:first-child > p {
    position: absolute;
    top: 470px;
    left: 42px;
    margin: 0;
  }

  .antereal-gis-page main > .flex-1 > section:first-child > div.relative.z-10 > div:first-child > div.mt-9 {
    position: absolute;
    top: 670px;
    left: 42px;
    margin: 0;
  }

  /* Три серые карточки справа имеют одинаковую высоту. */
  .antereal-gis-page #features > div > div:nth-child(2) > div > div:nth-child(2) {
    min-height: 0 !important;
    height: auto !important;
    flex: 1 1 0 !important;
  }

  .antereal-gis-page #features > div > div:nth-child(2) > div > div:nth-child(2) > div:first-child,
  .antereal-gis-page #features > div > div:nth-child(2) > div > div:nth-child(2) > div:nth-child(2) {
    min-height: 0 !important;
    height: calc((100% - 20px) / 2) !important;
    flex: 0 0 calc((100% - 20px) / 2) !important;
  }

  .antereal-gis-page #features > div > div:nth-child(2) > div > div:nth-child(2) > div:nth-child(2) > div {
    min-height: 0;
    flex: 1 1 0;
  }
}

/* Mobile: place the compact header inside the hero and preserve whole screenshots. */
@media (max-width: 1023px) {
  .antereal-gis-page main > div.relative:first-child > div.absolute {
    top: 40px !important;
    padding-top: 16px !important;
  }

  .antereal-gis-page #system .agis-system-card__media {
    overflow: hidden !important;
    border-radius: 8px !important;
  }

  .antereal-gis-page #system img.agis-system-screenshot {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
  }
}

#system img.agis-system-screenshot {
  display: block;
  width: min(100%, 1000px) !important;
  height: auto !important;
  aspect-ratio: 2 / 1;
  object-fit: contain;
}

/* Все скриншоты в составе системы имеют единый формат 1000 × 500 px.
   На меньших экранах они уменьшаются вместе с колонкой без горизонтальной
   прокрутки. */
@media (min-width: 1840px) {
  #system .lg\:flex-row > :last-child {
    width: 1000px !important;
    max-width: 1000px !important;
    flex: 0 0 1000px !important;
  }

  #system img.agis-system-screenshot {
    width: 1000px !important;
    height: 500px !important;
    max-width: none !important;
  }
}

.agis-hero-brand {
  color: hsl(var(--foreground));
  text-shadow: none;
}

.agis-hero-line {
  display: block;
}

.agis-hero-system {
  display: block;
  text-shadow: 0 0 6px rgba(215, 33, 35, 0.38), 0 0 14px rgba(215, 33, 35, 0.2);
}

.agis-red-glow {
  text-shadow: 0 0 6px rgba(215, 33, 35, 0.38), 0 0 14px rgba(215, 33, 35, 0.2);
}

/* Описания в карточках «Ключевых возможностей». */
.agis-feature-description {
  margin-top: auto;
}

.agis-feature-description p {
  margin: 0;
}

.agis-feature-card--static {
  justify-content: flex-start !important;
  cursor: default !important;
  pointer-events: none;
}

.agis-feature-card--static > h3 {
  margin-top: 0.25rem !important;
  margin-bottom: 0.25rem !important;
  font-size: 1.375rem !important;
  line-height: 1.02 !important;
}

.agis-feature-card--static,
.agis-feature-card--static:hover,
.agis-feature-card--static::before,
.agis-feature-card--static::after,
.agis-feature-card--static * {
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

.agis-feature-card--static > .agis-feature-description {
  position: static !important;
  display: block !important;
  margin-top: auto;
  padding: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  letter-spacing: -0.02em;
}

.agis-feature-card--static > .agis-feature-description h3 {
  display: none;
}

.agis-feature-card--static > .agis-feature-description strong {
  font-weight: inherit;
}

.agis-feature-card--analytics > :first-child {
  transform: scale(1.12);
  transform-origin: top left;
}

.agis-feature-card--access > h3 {
  font-size: 2.125rem !important;
  line-height: 1.05 !important;
}

.agis-feature-card--access > .agis-feature-description {
  font-size: 1.5rem !important;
  line-height: 1.4 !important;
  letter-spacing: -0.03em;
}

.agis-feature-card--integration > .agis-feature-description,
.agis-feature-card--storage > .agis-feature-description {
  font-size: 18px !important;
  line-height: 1.05 !important;
}

/* Нумерация списка не меняет текстовые узлы, которыми управляет React. */
#system .lg\:flex-row > :first-child ul > li {
  font-size: calc(var(--fs-body-sm) + 2px) !important;
}

#system .lg\:flex-row > :first-child ul > li > span:first-child {
  font-size: calc(var(--fs-body-sm) + 2px) !important;
}

#system .lg\:flex-row > :first-child ul > li > span:last-child {
  font-size: 20px !important;
}

#system .lg\:flex-row > :first-child ul > li[data-agis-number] > span:first-child {
  font-size: 0 !important;
}

#system .lg\:flex-row > :first-child ul > li[data-agis-number] > span:first-child::after {
  content: attr(data-agis-number);
  font-size: calc(var(--fs-body-sm) + 2px);
}

/* Стабильные кнопки переключателя без привязки к анимируемым React-узлам. */
#system div.relative.shrink-0 > button[aria-label="Предыдущий"],
#system div.relative.shrink-0 > button[aria-label="Следующий"] {
  visibility: visible !important;
  pointer-events: auto !important;
}

#system .agis-safe-system-controls {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  display: none !important;
}

#system .agis-safe-system-control {
  position: absolute;
  top: 50%;
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border: 2px solid hsl(var(--primary));
  border-radius: 9999px;
  background: hsl(var(--primary));
  color: #fff;
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 10px 32px rgba(27, 50, 42, 0.25);
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-50%);
}

#system .agis-safe-system-control--previous { left: -28px; }
#system .agis-safe-system-control--next { right: -28px; }

.agis-economic-main {
  justify-content: flex-start !important;
  height: 26.25rem !important;
  min-height: 26.25rem !important;
}

.agis-economic-main > svg {
  transform: scale(1.15);
  transform-origin: top left;
}

.agis-economic-main > .agis-economic-description {
  margin-top: auto;
}

.agis-economic-card {
  height: 12.5rem !important;
  min-height: 0 !important;
  max-height: 12.5rem !important;
  flex: 0 0 12.5rem !important;
  padding: 0.75rem !important;
  padding-left: 30px !important;
  padding-bottom: 30px !important;
  justify-content: flex-start !important;
  cursor: default !important;
  pointer-events: none;
}

.agis-economic-card,
.agis-economic-card:hover,
.agis-economic-card::before,
.agis-economic-card::after,
.agis-economic-card * {
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

.agis-economic-card > h3 {
  margin: 0.25rem 0 !important;
  font-size: 1.125rem !important;
  line-height: 1 !important;
}

.agis-economic-card > div:first-child svg {
  width: 2.25rem !important;
  height: 2.25rem !important;
}

.agis-economic-card > .agis-economic-description {
  position: static !important;
  display: block !important;
  margin-top: auto;
  width: 100%;
  margin-right: 0;
  margin-left: 0;
  padding: 0 !important;
  color: hsl(var(--foreground)) !important;
  font-size: 0.75rem !important;
  line-height: 1 !important;
  letter-spacing: -0.02em;
  opacity: 1 !important;
}

.agis-economic-card > .agis-economic-description > div {
  font-size: inherit !important;
  line-height: 1.1 !important;
  color: hsl(var(--foreground)) !important;
}

.agis-economic-card > .agis-economic-description h3 {
  display: none;
}

.agis-economic-card--financial > h3 {
  position: relative;
  top: 6px;
  margin: 0 !important;
  font-size: 2.125rem !important;
  line-height: 0.6 !important;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.agis-economic-card--financial {
  padding-bottom: 16px !important;
}

.agis-economic-card--financial > .agis-economic-description > div {
  font-size: 1.5rem !important;
  line-height: 1.4 !important;
}

.agis-economic-card--lower {
  flex: 1 1 0 !important;
  width: 0 !important;
  padding: 1.5rem !important;
  padding-left: 30px !important;
  padding-top: 0.75rem !important;
  padding-bottom: 30px !important;
}

.agis-economic-card--lower > h3 {
  margin: 6px 0 0 !important;
  font-size: 1.375rem !important;
  line-height: 1.02 !important;
}

.agis-economic-card--lower > .agis-economic-description {
  width: auto;
  margin-right: 0;
  margin-left: 0;
}

.agis-economic-card--lower > .agis-economic-description > div {
  font-size: 18px !important;
  line-height: 0.95 !important;
}

.agis-economic-card--lower:last-child > .agis-economic-description > div {
  line-height: 0.85 !important;
}

/* Антереал ГИС — оформление только правой части раздела «Состав системы».
   Геометрия карточки сохраняется, меняется исключительно визуальный слой. */
.antereal-gis-page #system .agis-system-card {
  background: transparent !important;
  box-shadow: none !important;
}

.antereal-gis-page #system .agis-system-card__media,
.antereal-gis-page #system .agis-system-card__media > div:first-child,
.antereal-gis-page #system .agis-system-card__media > div:first-child > div:first-child,
.antereal-gis-page #system img.agis-system-screenshot {
  border-radius: 8px !important;
}

.antereal-gis-page #system .agis-system-card__media > div:first-child,
.antereal-gis-page #system .agis-system-card__media > div:first-child > div:first-child {
  overflow: hidden !important;
}

.antereal-gis-page #system .agis-system-card__media {
  box-shadow: 0 22px 50px rgba(20, 34, 30, 0.11) !important;
}

.antereal-gis-page #system img.agis-system-screenshot {
  box-shadow: none !important;
}

@media (min-width: 1024px) {
  #system > .relative.z-10 {
    width: calc(100vw - 80px) !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 40px !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  #system .lg\:flex-row > :first-child {
    width: 830px !important;
    max-width: 830px !important;
    height: 740px !important;
    min-height: 740px !important;
    max-height: 740px !important;
    flex: 0 0 830px !important;
    overflow-y: auto;
  }

  #system .lg\:flex-row > :first-child ul,
  #system .lg\:flex-row > :first-child li {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Сам список занимает всю заданную высоту 740 px: без пустого остатка
     после последнего пункта. */
  #system .lg\:flex-row > :first-child ul {
    display: flex !important;
    height: 740px !important;
    min-height: 740px !important;
    max-height: 740px !important;
    flex-direction: column !important;
  }

  #system .lg\:flex-row > :first-child li {
    height: auto !important;
    min-height: 0 !important;
    flex: 1 1 0 !important;
  }

  /* Правая часть «Состава системы» — единая карточка со скриншотом и описанием. */
  #system .lg\:flex-row {
    align-items: flex-start !important;
  }

  #system .agis-system-card {
    position: relative !important;
    align-items: stretch !important;
    width: min(100%, 1000px) !important;
    max-width: 1000px !important;
    /* Одинаковая высота правой карточки во всех пунктах состава системы. */
    /* Карточка масштабируется до 94 %, поэтому 851 px дают
       фактическую высоту 800 px на странице. */
    height: 851px !important;
    min-height: 851px !important;
    margin-left: auto !important;
    transform: translate(-15px, -40px) scale(0.94);
    transform-origin: top right;
    padding: 20px !important;
    gap: 0 !important;
    overflow: visible !important;
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(22, 42, 35, 0.1);
  }

  #system .agis-system-card__media {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 1;
    overflow: visible !important;
    border-radius: 0 !important;
  }

  #system .agis-system-card__media--preview {
    cursor: pointer;
  }

  /* Скриншот и описание не должны смещаться при смене активного пункта:
     положение управляющих стрелок остаётся неизменным. */
  #system .agis-system-card__media,
  #system .agis-system-card__info {
    transform: none !important;
  }

  #system .agis-system-card__media > div,
  #system .agis-system-card__info,
  #system .agis-system-card__info > *,
  #system .agis-system-card__body,
  #system .agis-system-card__body > * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  #system .agis-system-card__media > div:first-child,
  #system .agis-system-card__media img.agis-system-screenshot {
    width: 100% !important;
    height: 100% !important;
    overflow: visible !important;
    border-radius: 0 !important;
  }

  #system .agis-system-card__media img.agis-system-screenshot {
    max-width: none !important;
    aspect-ratio: auto;
    object-fit: contain;
  }

  #system .agis-system-card__media button[aria-label="Предыдущий"],
  #system .agis-system-card__media button[aria-label="Следующий"] {
    position: absolute !important;
    top: 50% !important;
    z-index: 3 !important;
    display: flex !important;
    /* Правая карточка масштабируется до 94%; это даёт видимый диаметр 56px. */
    width: 59.574px !important;
    height: 59.574px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #c8362f !important;
    border-radius: 50% !important;
    background: #c8362f !important;
    color: #ffffff !important;
    box-shadow: 0 10px 32px rgba(27, 50, 42, 0.25) !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    transform: translateY(-50%) !important;
    will-change: auto !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  #system .agis-system-card__media button[aria-label="Предыдущий"]:hover,
  #system .agis-system-card__media button[aria-label="Следующий"]:hover {
    background: #ffffff !important;
    color: #c8362f !important;
  }

  #system .agis-system-card__media button[aria-label="Предыдущий"] > svg,
  #system .agis-system-card__media button[aria-label="Следующий"] > svg {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
  }

  #system .agis-system-card__media button[aria-label="Предыдущий"]::before,
  #system .agis-system-card__media button[aria-label="Следующий"]::before {
    content: none;
    display: none;
  }

  /* Неподвижный слой управления каруселью: он расположен относительно
     белой карточки, а не заменяемого контейнера изображения. */
  #system .agis-system-card__controls {
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
  }

  #system .agis-system-card__fixed-arrow {
    position: absolute !important;
    top: var(--agis-system-arrow-center, 162px) !important;
    display: flex !important;
    width: 56px !important;
    height: 56px !important;
    align-items: center;
    justify-content: center;
    border: 2px solid #c8362f !important;
    border-radius: 9999px !important;
    background: #c8362f !important;
    color: #ffffff !important;
    box-shadow: 0 10px 28px rgba(200, 54, 47, 0.28) !important;
    pointer-events: auto !important;
    transition: none !important;
    transform: translateY(-50%) !important;
  }

  #system .agis-system-card__fixed-arrow-icon {
    display: block;
    color: currentColor !important;
    font-family: Arial, sans-serif;
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
  }

  #system .agis-system-card__fixed-arrow--previous {
    left: -28px !important;
  }

  #system .agis-system-card__fixed-arrow--previous .agis-system-card__fixed-arrow-icon {
    transform: rotate(-90deg);
  }

  #system .agis-system-card__fixed-arrow--next {
    right: -28px !important;
  }

  #system .agis-system-card__fixed-arrow--next .agis-system-card__fixed-arrow-icon {
    transform: rotate(90deg);
  }

  #system .agis-system-card__media button[aria-label="Предыдущий"] {
    /* 20px card padding + half of the 59.574px control diameter. */
    left: -49.787px !important;
  }

  #system .agis-system-card__media button[aria-label="Следующий"] {
    right: -49.787px !important;
  }

  #system div.relative.shrink-0.agis-system-card__media > button.agis-system-native-control {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  #system .agis-system-card--cta-on-media .agis-system-card__cta {
    z-index: 4 !important;
  }

  #system .agis-system-card__info {
    display: flex !important;
    position: relative !important;
    width: 100% !important;
    min-height: 0;
    margin-top: 16px;
    padding: 92px 28px 22px !important;
    align-items: stretch !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    border-radius: 22px !important;
    background: #fbe9e9 !important;
  }

  #system .agis-system-card__info::before {
    content: attr(data-system-index);
    position: absolute;
    top: 24px;
    left: 28px;
    z-index: 1;
    width: 46px;
    height: 54px;
    border-bottom: 1px solid rgba(200, 54, 47, 0.55);
    color: #c8362f;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
  }

  #system .agis-system-card__info::after {
    content: attr(data-system-title);
    position: absolute;
    top: 20px;
    right: 28px;
    left: 74px;
    z-index: 1;
    min-height: 58px;
    padding-bottom: 14px;
    overflow: hidden;
    border-bottom: 1px solid rgba(200, 54, 47, 0.55);
    color: hsl(var(--foreground));
    font-size: clamp(20px, 1.55vw, 28px);
    font-weight: 700;
    line-height: 1.15;
  }

  #system .agis-system-card__header {
    display: flex;
    gap: 18px;
    align-items: baseline;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(200, 54, 47, 0.55);
  }

  #system .agis-system-card__index {
    color: #c8362f;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
  }

  #system .agis-system-card__title {
    margin: 0;
    color: hsl(var(--foreground));
    font-size: clamp(22px, 1.7vw, 30px);
    font-weight: 700;
    line-height: 1.15;
  }

  #system .agis-system-card__body {
    display: flex;
    width: 100%;
    max-width: none;
    margin-top: 0;
    flex: 1 1 auto;
    flex-direction: column;
    color: hsl(var(--foreground));
    font-size: 16px;
    line-height: 1.45;
  }

  #system .agis-system-card__body p {
    max-width: none;
  }

  #system .agis-system-card__cta {
    align-self: flex-end;
    margin-top: auto;
    margin-left: auto;
  }

  #system .agis-system-card--route-service .agis-system-card__cta {
    transform: translate(1px, 6px) !important;
  }

  #system .agis-system-card__body--replaced {
    visibility: hidden !important;
  }

  #system .agis-system-card__cluster-copy {
    position: absolute;
    top: 92px;
    right: 28px;
    bottom: 22px;
    left: 28px;
    color: hsl(var(--foreground));
    font-size: 16px;
    line-height: 1.45;
  }

  #system .agis-system-card__cluster-copy ul {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    padding: 0;
    list-style: none;
  }

  #system .agis-system-card__cluster-copy li {
    position: relative;
    padding-left: 16px;
  }

  #system .agis-system-card__cluster-copy li::before {
    content: "";
    position: absolute;
    top: 0.58em;
    left: 2px;
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: #c8362f;
  }

  #system .agis-system-card > [aria-hidden="true"] {
    display: none !important;
  }
}

.agis-system-controls-layer {
  position: absolute;
  /* Navigation is always above the system controls when content scrolls under it. */
  z-index: 20;
  height: 0;
  pointer-events: none;
}

/* The arrows are an overlay outside the React section. On wider screens they
   enter with the same gentle reveal as the rest of the system section. */
@media (min-width: 768px) {
  .agis-system-controls-layer {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(30px);
    transition: opacity .7s cubic-bezier(.2, .8, .2, 1), filter .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1);
  }

  .agis-system-controls-layer.is-revealed {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .agis-system-controls-layer {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

#system,
#system * {
  overflow-anchor: none;
}

.agis-system-layer-arrow {
  position: absolute;
  top: 0;
  display: flex;
  width: 56px;
  height: 56px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 2px solid #c8362f;
  border-radius: 50%;
  background: #c8362f;
  color: #fff;
  box-shadow: 0 10px 32px rgba(27, 50, 42, 0.25);
  pointer-events: auto;
  transform: translateY(-50%);
}

.agis-system-layer-arrow--previous {
  left: -28px;
}

.agis-system-layer-arrow--next {
  right: -28px;
}

.agis-system-layer-arrow span {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.agis-system-layer-arrow--previous span {
  transform: rotate(-90deg);
}

.agis-system-layer-arrow--next span {
  transform: rotate(90deg);
}

.agis-system-layer-arrow:hover {
  background: #fff;
  color: #c8362f;
}

@media (min-width: 1600px) {
  #system .lg\:flex-row {
    column-gap: 10px !important;
    justify-content: space-between !important;
  }
}

@media (min-width: 1600px) and (max-width: 1919px) {
  #system .lg\:flex-row > :first-child {
    width: calc(100vw - 1090px) !important;
    max-width: calc(100vw - 1090px) !important;
    flex-basis: calc(100vw - 1090px) !important;
  }
}

/* На компактных desktop-экранах даём карточке достаточно места, не меняя
   структуру списка и механику переключения. */
@media (min-width: 1024px) and (max-width: 1599px) {
  #system .lg\:flex-row > :first-child {
    width: min(44vw, 830px) !important;
    max-width: min(44vw, 830px) !important;
    flex: 0 0 min(44vw, 830px) !important;
  }
}

/* «Бизнес задачи»: возвращаем нейтральные карточки для задач работы
   с активами и контроля. */
#business .grid > div:nth-child(2),
#business .grid > div:nth-child(4) {
  background-color: #f7f8fc !important;
}

/* Херо страницы «Антереал ГИС»: обработанное видео на весь баннер. */
.agis-hero-banner {
  isolation: isolate;
  overflow: hidden;
  background: #07100d !important;
}

.agis-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.agis-hero-video-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 12, 9, 0.88) 0%, rgba(3, 12, 9, 0.76) 42%, rgba(3, 12, 9, 0.42) 72%, rgba(3, 12, 9, 0.3) 100%),
    linear-gradient(180deg, rgba(3, 12, 9, 0.2), rgba(3, 12, 9, 0.36));
}

.agis-hero-banner > div.relative.z-10 {
  grid-template-columns: minmax(0, 1fr) !important;
}

.agis-hero-banner > div.relative.z-10 > div:nth-child(2) {
  display: none;
}

.agis-hero-banner h1,
.agis-hero-banner .agis-hero-brand,
.agis-hero-banner p {
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

/* Заголовок херо показывается сразу, без подъёма снизу. */
.agis-hero-banner > div.relative.z-10 > div:first-child {
  opacity: 1 !important;
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

.agis-hero-banner h1,
.agis-hero-banner h1 * {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

.agis-hero-banner .agis-hero-system {
  color: #e33c3d !important;
  text-shadow: 0 0 6px rgba(227, 60, 61, 0.5), 0 0 16px rgba(227, 60, 61, 0.3);
}

.agis-hero-line,
.agis-hero-system {
  white-space: nowrap;
}

/* Кнопка презентации в херо: прозрачная до наведения, как на главной странице. */
.agis-hero-presentation-button {
  display: inline-flex !important;
  opacity: 1 !important;
  transform: none !important;
  border: 1px solid #fff !important;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
}

.agis-hero-presentation-button:hover,
.agis-hero-presentation-button:focus-visible {
  background: #fff !important;
  color: hsl(var(--foreground)) !important;
}

.antereal-gis-page .agis-trust {
  height: auto !important;
  padding: 100px 0;
}

@media (min-width: 1024px) {
  .antereal-gis-page main > .flex-1 > section:not(:first-child),
  .antereal-gis-page main > .flex-1 > div > section {
    padding-top: 110px !important;
    padding-bottom: 110px !important;
  }

  .antereal-gis-page .agis-trust {
    padding-top: 110px !important;
    padding-bottom: 110px !important;
  }
}

.agis-trust__inner {
  width: min(100% - 32px, 1800px);
  margin: 0 auto;
}

.agis-trust__title {
  margin: 0 0 40px;
  color: hsl(var(--foreground));
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.1;
}

.agis-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.agis-trust__media {
  position: relative;
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 28px;
  border-radius: 40px;
  background-color: #c8362f;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.agis-trust__media::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(30, 10, 10, 0.55), rgba(30, 10, 10, 0.38));
}

.agis-trust__media--gazprom-project { background-image: url("/assets/clients/gazprom-project-photo.webp"); }
.agis-trust__media--gazprom-neft { background-image: url("/assets/clients/gazprom-neft-photo.webp"); }
.agis-trust__media--rosneft { background-image: url("/assets/clients/rosneft.webp"); }
.agis-trust__media--rn-yugansk { background-image: url("/assets/clients/rn-yugansk-photo.jpg"); }
.agis-trust__media--empty::before { display: none; }

.agis-trust__media img {
  position: relative;
  z-index: 1;
  width: min(100%, 210px);
  max-height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.54));
}

.agis-trust__card h3 {
  margin: 20px 0 14px;
  color: hsl(var(--foreground));
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.2;
}

.agis-trust__card p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: var(--fs-body-sm);
  line-height: 1.5;
}

/* Match the desktop header placement used by the other product pages. */
@media (min-width: 1280px) {
  .antereal-gis-page main > div.relative:first-child > div.absolute {
    top: 80px !important;
    right: 80px !important;
    left: 80px !important;
    padding: 0 !important;
  }
}

@media (max-width: 1023px) {
  .antereal-gis-page main > .flex-1 > section:first-child > div.relative.z-10 > div:first-child > h1 {
    width: calc(100vw - 80px);
    max-width: calc(100vw - 80px);
    font-size: clamp(30px, 6.5vw, 46px) !important;
    line-height: 1.08;
  }

  .antereal-gis-page .agis-trust { padding: 72px 0; }
  .agis-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .agis-trust__grid { grid-template-columns: 1fr; }
  .agis-trust__media { min-height: 190px; }

  .agis-hero-video-shade {
    background: rgba(3, 12, 9, 0.72);
  }
}

/* Final scoped override: keep all system screenshots subtly rounded. */
.antereal-gis-page #system .agis-system-card .agis-system-card__media,
.antereal-gis-page #system .agis-system-card .agis-system-card__media > div:first-child,
.antereal-gis-page #system .agis-system-card .agis-system-card__media > div:first-child > div:first-child,
.antereal-gis-page #system .agis-system-card .agis-system-card__media img.agis-system-screenshot {
  border-radius: 8px !important;
}

@media (max-width: 767px) {
  .antereal-gis-page .agis-hero-banner > .relative.z-10 > div:first-child > div.mt-9 {
    position: absolute !important;
    right: 16px;
    bottom: 48px;
    left: 16px;
    margin-top: 0 !important;
  }
}

.agis-native-menu--suppressed {
  display: none !important;
}

@media (max-width: 767px) {
  /* Use the same compact header frame as the home page. */
  .antereal-gis-page main > div.relative:first-child > div.absolute {
    top: 29px !important;
    right: 20px !important;
    left: 20px !important;
    padding: 0 !important;
  }

  /* The home page has a logo pill and a separate round menu control. */
  .antereal-gis-page main > div.relative:first-child > div.absolute > div {
    position: relative;
    display: block !important;
    width: 100%;
    min-height: 54px;
  }

  .antereal-gis-page main > div.relative:first-child > div.absolute > div > div[class~="xl:hidden"] {
    position: static;
    display: inline-flex !important;
    width: auto !important;
    min-height: 54px;
    padding: 0 14px !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 32px rgba(27, 50, 42, 0.18) !important;
  }

  .antereal-gis-page main > div.relative:first-child > div.absolute > div > div[class~="xl:hidden"] a {
    min-width: 0;
  }

  .antereal-gis-page main > div.relative:first-child > div.absolute > div > div[class~="xl:hidden"] a img:first-child {
    display: none !important;
  }

  .antereal-gis-page main > div.relative:first-child > div.absolute > div > div[class~="xl:hidden"] a img:nth-child(2) {
    display: block !important;
    width: auto;
    max-width: 100%;
    height: 24px !important;
  }

  .antereal-gis-page main > div.relative:first-child > div.absolute > div > div[class~="xl:hidden"] button {
    position: absolute !important;
    top: 0;
    right: 0;
    width: 54px !important;
    height: 54px !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: 0 10px 32px rgba(27, 50, 42, 0.18) !important;
  }

  .agis-mobile-menu {
    position: fixed;
    top: 99px;
    right: 20px;
    left: 20px;
    z-index: 60;
    display: none;
    max-height: calc(100vh - 142px);
    padding: 12px;
    overflow-y: auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(27, 50, 42, 0.18);
  }

  .agis-mobile-menu.is-open {
    display: flex;
    flex-direction: column;
  }

  .agis-mobile-menu > a,
  .agis-mobile-menu__trigger,
  .agis-mobile-menu__submenu a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    color: #1b322a;
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    background: transparent;
    border: 0;
    border-radius: 999px;
  }

  .agis-mobile-menu__trigger {
    justify-content: space-between;
    cursor: pointer;
  }

  .agis-mobile-menu__trigger::after {
    content: '+';
    font-size: 24px;
    font-weight: 400;
  }

  .agis-mobile-menu__group.is-open .agis-mobile-menu__trigger::after {
    content: '−';
  }

  .agis-mobile-menu__submenu {
    display: none;
    padding: 4px 0 6px 12px;
  }

  .agis-mobile-menu__group.is-open .agis-mobile-menu__submenu {
    display: grid;
    gap: 2px;
  }

  .agis-mobile-menu > a:hover,
  .agis-mobile-menu > a:focus-visible,
  .agis-mobile-menu__trigger:hover,
  .agis-mobile-menu__trigger:focus-visible,
  .agis-mobile-menu__submenu a:hover,
  .agis-mobile-menu__submenu a:focus-visible {
    background: #edf4f1;
    outline: none;
  }

  @media (max-width: 359px) {
    .antereal-gis-page main > div.relative:first-child > div.absolute > div > div[class~="xl:hidden"] {
      padding: 0 10px !important;
    }

    .antereal-gis-page main > div.relative:first-child > div.absolute > div > div[class~="xl:hidden"] a img:nth-child(2) {
      height: 22px !important;
    }
  }

  /* Match the mobile type scale used on the About and detail pages. */
  .antereal-gis-page main h1,
  .antereal-gis-page main h2 {
    font-size: clamp(26px, 7.7vw, 30px) !important;
    line-height: 1.08 !important;
    overflow-wrap: normal;
    word-break: normal;
  }

  .antereal-gis-page main h3 {
    font-size: clamp(22px, 6.2vw, 24px) !important;
    line-height: 1.15 !important;
    overflow-wrap: normal;
    word-break: normal;
  }

  /* The system controls use the same outlined arrow glyphs as desktop. */
  .agis-system-layer-arrow svg {
    display: block;
    width: 24px;
    height: 24px;
  }

  .agis-system-layer-arrow span {
    display: none;
  }

  /* Match the mobile scroll-to-top control used by the home page. */
  .agis-scroll-top {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
    font-size: 24px;
  }
}

/* Apply the mobile arrow treatment to every control variant used below 1280 px. */
@media (max-width: 1279px) {
  .agis-system-layer-arrow,
  .agis-system-controls-layer button,
  #system button[aria-label="Предыдущий"],
  #system button[aria-label="Следующий"] {
    border: 2px solid #c8362f !important;
    border-radius: 50% !important;
    background: #c8362f !important;
    color: #fff !important;
    box-shadow: 0 10px 32px rgba(27, 50, 42, 0.25) !important;
  }

  .agis-system-layer-arrow:hover,
  .agis-system-controls-layer button:hover,
  #system button[aria-label="Предыдущий"]:hover,
  #system button[aria-label="Следующий"]:hover {
    background: #c8362f !important;
    color: #fff !important;
  }

  #system button[aria-label="Предыдущий"] svg,
  #system button[aria-label="Следующий"] svg {
    display: none !important;
  }

  #system button[aria-label="Предыдущий"]::before,
  #system button[aria-label="Следующий"]::before {
    content: '↑';
    display: block;
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
  }

  #system button[aria-label="Предыдущий"]::before {
    transform: rotate(-90deg);
  }

  #system button[aria-label="Следующий"]::before {
    transform: rotate(90deg);
  }
}

/* The main page uses the same two-part header on tablets. */
@media (min-width: 768px) and (max-width: 1023px) {
  .antereal-gis-page main > div.relative:first-child > div.absolute {
    top: 20px !important;
    right: 24px !important;
    left: 24px !important;
    padding: 0 !important;
  }

  .antereal-gis-page main > div.relative:first-child > div.absolute > div {
    position: relative;
    display: block !important;
    width: 100%;
    min-height: 58px;
  }

  .antereal-gis-page main > div.relative:first-child > div.absolute > div > div[class~="xl:hidden"] {
    position: static;
    display: inline-flex !important;
    width: auto !important;
    min-height: 58px;
    padding: 0 18px !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 32px rgba(27, 50, 42, 0.18) !important;
  }

  .antereal-gis-page main > div.relative:first-child > div.absolute > div > div[class~="xl:hidden"] a img:first-child {
    display: none !important;
  }

  .antereal-gis-page main > div.relative:first-child > div.absolute > div > div[class~="xl:hidden"] a img:nth-child(2) {
    display: block !important;
    width: auto;
    height: 26px !important;
  }

  .antereal-gis-page main > div.relative:first-child > div.absolute > div > div[class~="xl:hidden"] button {
    position: absolute !important;
    top: 0;
    right: 0;
    width: 58px !important;
    height: 58px !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: 0 10px 32px rgba(27, 50, 42, 0.18) !important;
  }

  .agis-mobile-menu {
    position: fixed;
    top: 90px;
    right: 24px;
    left: 24px;
    z-index: 60;
    display: none;
    max-height: calc(100vh - 110px);
    padding: 12px;
    overflow-y: auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(27, 50, 42, 0.18);
  }

  .agis-mobile-menu.is-open {
    display: flex;
    flex-direction: column;
  }

  .agis-mobile-menu > a,
  .agis-mobile-menu__trigger,
  .agis-mobile-menu__submenu a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    color: #1b322a;
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    background: transparent;
    border: 0;
    border-radius: 999px;
  }

  .agis-mobile-menu__trigger {
    justify-content: space-between;
    cursor: pointer;
  }

  .agis-mobile-menu__trigger::after {
    content: '+';
    font-size: 24px;
    font-weight: 400;
  }

  .agis-mobile-menu__group.is-open .agis-mobile-menu__trigger::after {
    content: '−';
  }

  .agis-mobile-menu__submenu {
    display: none;
    padding: 4px 0 6px 12px;
  }

  .agis-mobile-menu__group.is-open .agis-mobile-menu__submenu {
    display: grid;
    gap: 2px;
  }

  .agis-mobile-menu > a:hover,
  .agis-mobile-menu > a:focus-visible,
  .agis-mobile-menu__trigger:hover,
  .agis-mobile-menu__trigger:focus-visible,
  .agis-mobile-menu__submenu a:hover,
  .agis-mobile-menu__submenu a:focus-visible {
    background: #edf4f1;
    outline: none;
  }
}

/* Final mobile position for the hero presentation action. */
@media (max-width: 767px) {
  .antereal-gis-page main > .flex-1 > section:first-child.agis-hero-banner > .agis-hero-presentation-action {
    position: absolute !important;
    right: 16px !important;
    bottom: 48px !important;
    left: 16px !important;
    z-index: 20;
    margin: 0 !important;
  }

  .antereal-gis-page main > .flex-1 > section:first-child.agis-hero-banner > div.relative.z-10 > div:first-child > div.mt-9 {
    position: absolute !important;
    top: auto !important;
    right: 16px !important;
    bottom: 48px !important;
    left: 16px !important;
    margin: 0 !important;
  }
}

/* System arrows use the exact same round control as the scroll-to-top button. */
.agis-system-layer-arrow {
  width: 70px;
  height: 70px;
}

.agis-system-layer-arrow--previous {
  left: -35px;
}

.agis-system-layer-arrow--next {
  right: -35px;
}

.agis-system-layer-arrow span {
  display: block !important;
  font-family: Arial, sans-serif;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
}

.agis-system-layer-arrow svg {
  display: none !important;
}

.agis-system-layer-arrow,
.agis-system-layer-arrow:hover,
.agis-system-layer-arrow:focus-visible {
  background: #c8362f !important;
  color: #fff !important;
}

@media (max-width: 767px) {
  .agis-system-layer-arrow {
    width: 52px;
    height: 52px;
  }

  .agis-system-layer-arrow--previous {
    left: -26px;
  }

  .agis-system-layer-arrow--next {
    right: -26px;
  }

  .agis-system-layer-arrow span {
    font-size: 24px;
  }
}

/* Mobile: both the native and replacement system controls match the scroll button. */
@media (max-width: 767px) {
  .agis-system-layer-arrow,
  .agis-system-controls-layer button,
  #system .agis-system-native-control {
    display: flex !important;
    width: 52px !important;
    height: 52px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #c8362f !important;
    border-radius: 50% !important;
    background: #c8362f !important;
    color: #fff !important;
    box-shadow: 0 10px 32px rgba(27, 50, 42, 0.25) !important;
  }

  .agis-system-layer-arrow:hover,
  .agis-system-layer-arrow:focus-visible,
  .agis-system-controls-layer button:hover,
  .agis-system-controls-layer button:focus-visible,
  #system .agis-system-native-control:hover,
  #system .agis-system-native-control:focus-visible {
    background: #c8362f !important;
    color: #fff !important;
  }

  .agis-system-layer-arrow svg,
  .agis-system-controls-layer button svg,
  #system .agis-system-native-control svg {
    display: none !important;
  }

  .agis-system-layer-arrow span {
    display: block !important;
    font-family: Arial, sans-serif !important;
    font-size: 24px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
  }

  #system .agis-system-native-control::before {
    content: '↑';
    display: block;
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
  }

  #system .agis-system-native-control[aria-label="Предыдущий"]::before {
    transform: rotate(-90deg);
  }

  #system .agis-system-native-control[aria-label="Следующий"]::before {
    transform: rotate(90deg);
  }
}

/* Mobile React controls: both directions use the same filled red control as scroll-to-top. */
@media (max-width: 767px) {
  #system button[aria-label="Предыдущий компонент"],
  #system button[aria-label="Следующий компонент"] {
    display: flex !important;
    width: 44px !important;
    height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #c8362f !important;
    border-radius: 50% !important;
    background: #c8362f !important;
    color: #fff !important;
    box-shadow: 0 10px 32px rgba(27, 50, 42, 0.25) !important;
  }

  #system button[aria-label="Предыдущий компонент"] svg,
  #system button[aria-label="Следующий компонент"] svg {
    display: none !important;
  }

  #system button[aria-label="Предыдущий компонент"]::before,
  #system button[aria-label="Следующий компонент"]::before {
    content: '↑';
    display: block;
    font-family: Arial, sans-serif;
    font-size: 21px;
    font-weight: 300;
    line-height: 1;
  }

  #system button[aria-label="Предыдущий компонент"]::before { transform: rotate(-90deg); }
  #system button[aria-label="Следующий компонент"]::before { transform: rotate(90deg); }
}

/* The header that appears after the hero keeps the same two separate mobile blocks. */
@media (max-width: 767px) {
  .antereal-gis-page main > div.relative > div.fixed.top-4 {
    top: 16px !important;
    right: 32px !important;
    left: 32px !important;
    padding: 0 !important;
  }

  .antereal-gis-page main > div.relative > div.fixed.top-4 > div {
    position: relative;
    display: block !important;
    width: 100%;
    min-height: 54px;
  }

  .antereal-gis-page main > div.relative > div.fixed.top-4 > div > div[class~="xl:hidden"] {
    position: static;
    display: inline-flex !important;
    width: auto !important;
    min-height: 54px;
    padding: 0 14px !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 32px rgba(27, 50, 42, 0.18) !important;
  }

  .antereal-gis-page main > div.relative > div.fixed.top-4 > div > div[class~="xl:hidden"] button {
    position: absolute !important;
    top: 0;
    right: 0;
    width: 54px !important;
    height: 54px !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: 0 10px 32px rgba(27, 50, 42, 0.18) !important;
  }
}

@media (max-width: 639px) {
  .antereal-gis-page main > div.relative > div.fixed.top-4 > div > div[class~="xl:hidden"] a img:first-child {
    display: none !important;
  }

  .antereal-gis-page main > div.relative > div.fixed.top-4 > div > div[class~="xl:hidden"] a img:nth-child(2) {
    display: block !important;
    width: auto;
    max-width: 100%;
    height: 24px !important;
  }
}

/* «Полностью российская разработка»: four readable cards in one mobile column. */
@media (max-width: 767px) {
  .antereal-gis-page .min-\[360px\]\:grid-cols-2 {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Match the mobile hero-banner height of the main Antereal page. */
@media (max-width: 767px) {
  .antereal-gis-page .agis-hero-banner {
    min-height: 678px !important;
  }

  .antereal-gis-page .agis-hero-banner > div.relative.z-10 {
    padding-top: 116px !important;
  }

  .antereal-gis-page main > .flex-1 > section:first-child.agis-hero-banner > div.relative.z-10 > div:first-child > h1 {
    margin-bottom: 30px !important;
    font-size: 37.05px !important;
    line-height: 40.014px !important;
  }

  .antereal-gis-page .agis-hero-banner p {
    font-size: 18.72px !important;
    line-height: 27.7056px !important;
  }
}

/* Restore the product page's native mobile header and menu behaviour. */
@media (max-width: 1023px) {
  .antereal-gis-page main > div.relative:first-child > div.absolute {
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    padding: 16px !important;
  }

  .antereal-gis-page main > div.relative:first-child > div.absolute > div {
    position: static;
    display: flex !important;
    width: auto;
    min-height: 0;
  }

  .antereal-gis-page main > div.relative:first-child > div.absolute > div > div[class~="xl:hidden"] {
    position: static;
    display: flex !important;
    width: 100% !important;
    min-height: 0;
    padding: 8px 12px !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 28px rgba(27, 50, 42, 0.18) !important;
  }

  .antereal-gis-page main > div.relative:first-child > div.absolute > div > div[class~="xl:hidden"] button {
    position: static !important;
    width: 40px !important;
    height: 40px !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}

@media (max-width: 639px) {
  .antereal-gis-page main > div.relative:first-child > div.absolute > div > div[class~="xl:hidden"] a img:first-child {
    display: block !important;
  }

  .antereal-gis-page main > div.relative:first-child > div.absolute > div > div[class~="xl:hidden"] a img:nth-child(2) {
    display: none !important;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .antereal-gis-page main > div.relative:first-child > div.absolute > div > div[class~="xl:hidden"] a img:first-child {
    display: none !important;
  }

  .antereal-gis-page main > div.relative:first-child > div.absolute > div > div[class~="xl:hidden"] a img:nth-child(2) {
    display: block !important;
    height: 32px !important;
  }
}

/* Revert the subsequent mobile-header experiments. */
@media (max-width: 767px) {
  .antereal-gis-page main > div.relative:first-child > div.absolute {
    top: 56px !important;
    right: 32px !important;
    left: 32px !important;
    padding: 0 !important;
  }

  .antereal-gis-page main > div.relative:first-child > div.absolute > div {
    position: relative;
    display: block !important;
    width: 100%;
    min-height: 54px;
  }

  .antereal-gis-page main > div.relative:first-child > div.absolute > div > div[class~="xl:hidden"] {
    position: static;
    display: inline-flex !important;
    width: auto !important;
    min-height: 54px;
    padding: 0 14px !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 32px rgba(27, 50, 42, 0.18) !important;
  }

  .antereal-gis-page main > div.relative:first-child > div.absolute > div > div[class~="xl:hidden"] a img:first-child {
    display: none !important;
  }

  .antereal-gis-page main > div.relative:first-child > div.absolute > div > div[class~="xl:hidden"] a img:nth-child(2) {
    display: block !important;
    width: auto;
    max-width: 100%;
    height: 24px !important;
  }

  .antereal-gis-page main > div.relative:first-child > div.absolute > div > div[class~="xl:hidden"] button {
    position: absolute !important;
    top: 0;
    right: 0;
    width: 54px !important;
    height: 54px !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: 0 10px 32px rgba(27, 50, 42, 0.18) !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .antereal-gis-page main > div.relative:first-child > div.absolute {
    top: 40px !important;
    right: 0 !important;
    left: 0 !important;
    padding: 16px 16px 0 !important;
  }

  .antereal-gis-page main > div.relative:first-child > div.absolute > div,
  .antereal-gis-page main > div.relative:first-child > div.absolute > div > div[class~="xl:hidden"] {
    position: static;
    display: flex !important;
    width: 100% !important;
    min-height: 0;
  }
}
