.connection-check {
  padding: 50px 0;
  background: #fff;
}

.connection-check__inner {
  position: relative;
  padding: 48px 410px 48px 56px;
  border: 1px solid #e0e7f2;
  border-radius: 18px;
  background: linear-gradient(110deg, #f8fbff 0%, #fff 72%);
}

.connection-check__content {
  min-width: 0;
}

.connection-check__visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 18px 18px 0;
}

.connection-check__visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.connection-check h2 {
  margin: 0;
  color: #151b2b;
  font-size: clamp(30px, calc(3vw + 2px), 44px);
  line-height: 1.1;
  letter-spacing: -1.7px;
}

.connection-check__lead {
  max-width: 701px;
  margin: 14px 0 27px;
  color: #596779;
  font-size: 18px;
}

.connection-check__form {
  display: block;
}

.connection-check__form-row {
  display: grid;
  grid-template-columns: minmax(205px, 1fr) minmax(230px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.connection-check__field {
  display: flex;
  align-items: center;
  height: 54px;
  padding: 0 17px;
  border: 1px solid #d7dfea;
  border-radius: 9px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.connection-check__field:focus-within {
  border-color: #1672f5;
  box-shadow: 0 0 0 3px #1672f51c;
}

.connection-check__field svg {
  flex: none;
  width: 21px;
  height: 21px;
  margin-right: 10px;
  fill: #7b8ba0;
}

.connection-check__field .connection-check__phone-icon {
  color: #7b8ba0;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.connection-check__field input {
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #151b2b;
}

.connection-check__field input:focus {
  border: 0;
  box-shadow: none;
}

.connection-check__form-row .button {
  min-height: 54px;
  padding: 14px 18px;
  font-size: 16px;
  white-space: nowrap;
}

.connection-check__consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  max-width: 650px;
  margin-top: 14px;
  color: #596779;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

.connection-check__consent input {
  flex: none;
  width: 17px;
  height: 17px;
  min-height: 0;
  margin: 1px 0 0;
  padding: 0;
  accent-color: #1672f5;
  cursor: pointer;
}

.connection-check__consent a {
  color: #1672f5;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.connection-check__hint {
  margin: 13px 0 0;
  color: #7c899b;
  font-size: 14px;
}

.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: 700px) {
  .connection-check {
    padding: 30px 0;
  }

  .connection-check__inner {
    padding: 34px 25px;
  }

  .connection-check__form-row {
    grid-template-columns: 1fr;
  }

  .connection-check__form-row .button {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .connection-check__inner {
    padding: 40px;
  }

  .connection-check__visual {
    position: static;
    width: min(280px, 100%);
    height: 210px;
    margin: 30px auto 0;
    overflow: visible;
    border-radius: 0;
  }

  .connection-check__visual img {
    height: 100%;
    object-fit: contain;
  }
}

@media (max-width: 800px) and (min-width: 701px) {
  .connection-check__form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .connection-check__form-row .button {
    grid-column: span 2;
    width: 100%;
  }
}

@media (max-width: 700px) {
  .connection-check__inner {
    padding: 34px 25px;
  }

  .connection-check__visual {
    width: calc(100% + 25px);
    margin: 30px -25px -34px auto;
    overflow: hidden;
    border-radius: 0 0 18px 0;
  }

  .connection-check__visual img {
    object-fit: contain;
  }
}

@media (max-width: 420px) {
  .connection-check__inner {
    padding: 29px 20px;
  }

  .connection-check__visual {
    width: calc(100% + 20px);
    margin-right: -20px;
    margin-bottom: -29px;
    border-radius: 0 0 14px 0;
  }

  .connection-check h2 {
    letter-spacing: -1.1px;
  }
}
