body {
  grid-template-rows: minmax(min-content, 1fr) auto auto;
}

.home-main {
  width: 100%;
}

.home-main > .stage {
  margin-inline: auto;
}

.stage {
  --server-room-image: url("assets/server-room.webp");
}

@media (min-width: 768px) {
  html:not([data-site-view]) body > .stage {
    align-self: stretch;
    aspect-ratio: auto;
  }

  html:not([data-site-view]) body > .stage:not(.info-stage) {
    min-height: min(56.25vw, 864px);
  }
}

.he-link-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

html[lang="he"]:not([data-site-view="mobile"]) .stage > .nav.home {
  left: 65.55%;
}

html[data-site-view="mobile"] .service-nav,
.stage[data-page="home"] > .service-nav {
  display: none;
}

.service-nav {
  position: absolute;
  inset: 12.2% 4% auto;
  z-index: 8;
  display: flex;
  justify-content: center;
  gap: 2cqw;
}

html .stage[data-page] .service-nav > .card {
  position: relative;
  inset: auto;
  display: block;
  width: auto;
  height: auto;
  padding: .25cqw 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #edf1f5;
  font-size: 1.15cqw;
  font-weight: 500;
  text-decoration: none;
  text-shadow: none;
  transform: none;
}

.service-nav .card::before {
  content: attr(aria-label);
}

.service-nav .card .ru-label {
  display: none;
}

.service-nav .card:is(:hover, :focus-visible, [aria-current="page"])::before {
  text-decoration: underline #e22336;
  text-underline-offset: .25em;
}

.service-nav .card:focus-visible {
  outline: 2px solid #ff7d89;
  outline-offset: 2px;
}

.contact-methods :is(.contact-list, .socials) {
  gap: 8px;
  padding-inline: 0;
  margin-inline: 0;
}

.contact-methods .contact-row {
  gap: 10px;
  direction: inherit;
  font-size: clamp(.875rem, 1.25vw, 1rem);
  white-space: normal;
}

.contact-methods .contact-row bdi {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-methods .metal {
  width: 40px;
  height: 40px;
  border-radius: 5px;
}

.contact-methods .socials {
  margin-top: 12px;
  padding-top: 12px;
}

.service-contact {
  margin-top: 1.3em;
  padding-top: .2em;
  border-top: 1px solid #495361;
}

.service-contact .choice-options {
  gap: clamp(8px, 1.3cqw, 18px);
}

.service-contact .choice-action {
  padding: .65em .3em;
  font-size: inherit;
}

.service-contact .choice-action svg {
  width: 1.5em;
  height: 1.5em;
}

.info-stage {
  --info-shade-direction: to right;
  isolation: isolate;
  aspect-ratio: auto;
  background-size: 100% min(56.25vw, 864px);
  background-repeat: no-repeat;
}

.info-stage[dir="rtl"],
html[dir="rtl"] .info-stage {
  --info-shade-direction: to left;
}

html:not([data-site-view="mobile"]) .stage[data-page] > :is(.network-mask, .fiber-mask, .cameras-mask, .access-mask, .design-mask) {
  background:
    linear-gradient(180deg, #07111e80, #07111ed9),
    var(--server-room-image) center / cover no-repeat #07111e;
}

html:not([data-site-view="mobile"]) .stage[data-page] > :is(.network-photo, .fiber-photo, .cameras-photo, .access-photo, .design-photo) {
  background: none;
}

html:not([data-site-view="mobile"]) .stage[data-page] > :is(.network-photo, .fiber-photo, .cameras-photo, .access-photo, .design-photo) > img {
  display: none;
}

html:not([data-site-view="mobile"]) .stage.info-stage > :is(.projects-blank, .not-found-backdrop) {
  display: block;
  position: absolute;
  inset: 6.525cqw 0 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(var(--info-shade-direction), #07111ef5 10%, #07111ed9 55%, #07111e55),
    linear-gradient(0deg, #07111ecc, transparent 48%),
    var(--server-room-image) center top / cover no-repeat #07111e;
}

html:not([data-site-view="mobile"]) .info-stage > .nav { top: 1.46cqw; height: 3.94cqw; z-index: 8; }
html:not([data-site-view="mobile"]) .info-stage > .language { top: 1.74cqw; }
html:not([data-site-view="mobile"]) .info-stage > .phone-hit { top: 1.88cqw; height: 2.87cqw; }
html:not([data-site-view="mobile"]) .info-stage > .brand-replacement { top: .79cqw; height: 6.81cqw; }
html:not([data-site-view="mobile"]) .info-stage > .hide-old-line { top: min(4.19vw, 64.37px); height: min(.96vw, 14.69px); }
html:not([data-site-view="mobile"]) .info-stage > .service-nav { top: 6.86cqw; }

html:is([lang="ru"], [lang="en"]):not([data-site-view="mobile"]) .info-stage::after { height: 6.525cqw; }
html:is([lang="ru"], [lang="en"]):not([data-site-view="mobile"]) .info-stage > .nav { top: 1.35cqw; }
html:is([lang="ru"], [lang="en"]):not([data-site-view="mobile"]) .info-stage > .brand-replacement { top: .11cqw; height: 6.19cqw; }

.info-content {
  position: relative;
  z-index: 6;
  padding: 9cqw 4% 2.8cqw;
  color: #edf1f5;
  text-align: start;
  font-size: clamp(12px, 1.25cqw, 22px);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.info-title {
  margin: 0 0 .8em;
  padding-inline-start: .5em;
  border-inline-start: 3px solid #e22336;
}

.projects-intro {
  max-width: 76ch;
}

.info-stage[data-page="about"] {
  width: min(100%, 1536px);
}

.info-stage[data-page="about"] .info-content > h2 {
  margin: 1.4em 0 .4em;
  padding-inline-start: .5em;
  border-inline-start: 2px solid #e22336;
  font-size: 1.3em;
}

.info-stage[data-page="about"] .info-content a {
  color: inherit;
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
  max-width: 900px;
}

.contact-form {
  display: grid;
  gap: .4em;
}

.contact-intro {
  margin: 0 0 .7em;
}

.not-found-content {
  display: grid;
  align-content: center;
  min-height: max(29rem, 100%);
}

.not-found-code {
  margin: 0 0 .25em;
  color: #ff7d89;
  font-size: clamp(2rem, 4cqw, 4rem);
  font-weight: 700;
  line-height: 1;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.not-found-actions .choice-action {
  min-height: 44px;
  padding: .55em 1em;
  font-size: inherit;
  animation: none;
}

.not-found-actions .choice-action:first-child {
  background: #a91d2d;
  border-color: #d8505f;
}

.not-found-actions .choice-action:focus-visible {
  outline: 2px solid #ff7d89;
  outline-offset: 2px;
}

html[data-site-view="mobile"] .stage[data-page="not-found"] > .not-found-content {
  flex: 1;
  min-height: 16rem;
}

.contact-form :is(input, textarea) {
  width: 100%;
  min-height: 44px;
  margin-bottom: .6em;
  padding: .6em;
  border: 1px solid #60717e;
  border-radius: 5px;
  background: #121e2a;
  color: inherit;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .choice-action {
  min-height: 44px;
  padding: .65em .8em;
  font-family: inherit;
  font-size: inherit;
  animation: none;
  cursor: pointer;
}

.contact-form button:disabled {
  opacity: .65;
  cursor: wait;
}

.contact-status {
  margin: 0;
}

.contact-status:not(:empty) {
  margin-top: .8em;
}

.contact-status[role="alert"] {
  color: #ff7d89;
}

@media (max-width: 767px) {
  .contact-layout { grid-template-columns: 1fr; }
}

html:not([data-site-view="mobile"]) .mobile-contact-bar {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: clamp(8px, 5vw, 60px);
  background: #101b29;
  border-top: 1px solid #314254;
}

html:not([data-site-view="mobile"]) .mobile-contact-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding-inline: 5px;
  color: #edf1f5;
  font-size: .875rem;
  text-decoration: none;
}

html:not([data-site-view="mobile"]) .mobile-contact-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html:not([data-site-view="mobile"]) .mobile-contact-link:hover {
  color: #ff7d89;
}

html[data-site-view="mobile"] .home-main {
  flex: 1;
}

html[data-site-view="mobile"] .stage[data-page="home"] > .card {
  display: none;
}

.stage[data-page] > .info-content {
  --mobile-content-background:
    linear-gradient(180deg, #07111e99, #07111e clamp(150px, 49vw, 300px)),
    var(--server-room-image) center top / 100% auto no-repeat;
}

html[data-site-view="mobile"] .info-content {
  z-index: auto;
}

html[data-site-view="mobile"] .info-title {
  font-size: clamp(1.65rem, 6.4vw, 2.4rem);
}
