*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: transparent;
}

body {
  min-height: 100vh;
  direction: rtl;
  text-align: right;
  color: var(--color-neutral-11);
}

img,
svg {
  display: block;
}

.installer-network-page {
  width: 100%;
  padding: 0 24px;
}

.installer-network {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.installer-network__stage {
  position: relative;
  min-height: 454px;
  display: block;
  direction: ltr;
  isolation: isolate;
}

.installer-network__media {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--color-neutral-2);
  box-shadow: 0 18px 36px rgb(12 12 12 / 0.08);
}

.installer-network__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.installer-network__panel {
  position: absolute;
  inset-block: 9px;
  inset-inline-end: 9px;
  width: min(47%, 524px);
  padding: 16px 18px 16px 16px;
  border-radius: 18px;
  border: 1px solid rgb(227 225 222 / 0.9);
  background: rgb(245 245 245 / 0.9);
  box-shadow: 0 20px 40px rgb(12 12 12 / 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 0;
  direction: ltr;
  text-align: left;
}

.installer-network__header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  direction: rtl;
  text-align: right;
}

.installer-network__headline {
  margin: 0;
  min-height: 44px;
  padding: 8px 20px 8px 18px;
  border-radius: 8px;
  background: #432461;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  direction: rtl;
  text-align: right;
}

.installer-network__subtitle {
  margin: 0;
  align-self: flex-start;
  color: #432461;
  direction: rtl;
  text-align: right;
}

.installer-network__body {
  margin: 54px auto 0;
  max-width: 95%;
  color: var(--color-violet-700);
  text-align: right;
  direction: rtl;
}

.installer-network__cta {
  margin-top: auto;
  align-self: flex-start;
  min-height: 42px;
  padding: 2px;
  display: inline-flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  border: 0;
  border-radius: 8px;
  background: #432461;
  color: var(--color-white);
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.installer-network__cta:hover {
  transform: translateY(-1px);
}

.installer-network__cta:focus-visible {
  outline: 2px solid var(--color-violet-700);
  outline-offset: 2px;
}

.installer-network__cta-label {
  display: inline-flex;
  align-items: center;
  padding: 0 16px 0 14px;
  white-space: nowrap;
  color: inherit;
  direction: rtl;
  text-align: right;
}

.installer-network__cta-icon {
  position: relative;
  width: 38px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid var(--color-violet-500);
  background: var(--color-white);
  color: var(--color-violet-500);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.installer-network__cta-icon img {
  transition: opacity 160ms ease;
}

.installer-network__cta-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  content: "";
  background: url("../images/arrow-left-up-white.svg") center / contain no-repeat;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease;
  pointer-events: none;
}

.installer-network__cta:hover .installer-network__cta-icon {
  border-color: var(--color-green-500);
  background: var(--color-green-500);
}

.installer-network__cta:hover .installer-network__cta-icon img {
  opacity: 0;
}

.installer-network__cta:hover .installer-network__cta-icon::after {
  opacity: 1;
}

.installer-network__cta-icon .icon-arrow-up-left {
  width: 18px;
  height: 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .installer-network-page {
    padding: 40px 16px 32px;
  }

  .installer-network__stage {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .installer-network__media {
    position: relative;
    inset: auto;
    min-height: 300px;
    border-radius: 18px 18px 0 0;
  }

  .installer-network__panel {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: -18px;
    border-radius: 18px;
  }

  .installer-network__body {
    margin-top: 36px;
  }
}

@media (max-width: 767px) {
  .installer-network-page {
    padding: 24px 12px 24px;
  }

  .installer-network__stage {
    min-height: 0;
    display: block;
  }

  .installer-network__media {
    position: relative;
    inset: auto;
    aspect-ratio: 371 / 488;
    min-height: 0;
    border-radius: 12px;
    box-shadow: none;
  }

  .installer-network__panel {
    position: relative;
    inset: auto;
    width: calc(100% - 18px);
    margin: -37.2% 9px 0;
    padding: 18px 14px 16px;
    border: 0;
    border-radius: 10px;
    background: rgb(255 255 255 / 0.69);
    box-shadow: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
    z-index: 1;
  }

  .installer-network__header {
    gap: 0;
    align-items: center;
    text-align: center;
  }

  .installer-network__subtitle {
    align-self: flex-start;
    max-width: none;
    text-align: right;
  }

  .installer-network__body {
    max-width: none;
    margin: 10px auto 0;
    text-align: right;
  }

  .installer-network__headline{
    width: 100%;
    margin-bottom: 10px;
    border-radius: 10px;
    padding-top: 0;
    padding-bottom: 0;
    height: unset;
    min-height: unset;
    line-height: 30px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .installer-network__cta {
    position: relative;
    width: 100%;
    min-height: 40px;
    margin-top: 18px;
    padding: 4px;
    overflow: hidden;
    justify-content: center;
  }

  .installer-network__cta-label {
    width: 100%;
    padding: 0 44px;
    justify-content: flex-start;
    text-align: right;
  }

  .installer-network__cta-icon {
    position: absolute;
    top: 4px;
    inset-inline-end: 4px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 6px;
  }

  .installer-network__cta-icon::after {
    width: 16px;
    height: 16px;
  }

  .installer-network__cta-icon .icon-arrow-up-left {
    width: 16px;
    height: 16px;
  }
}
