.configurator-intro {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
  color: var(--white);
  background:
    radial-gradient(circle at 78% 35%, rgba(17, 112, 207, 0.25), transparent 31%),
    linear-gradient(115deg, #03101f 0%, #061a31 62%, #082541 100%);
}

.configurator-intro::after {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(75, 143, 204, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 143, 204, 0.22) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 0%, #000 64%, #000 100%);
}

.configurator-intro .shell {
  position: relative;
  z-index: 1;
  padding-block: 56px 64px;
}

.config-back-link {
  display: inline-flex;
  margin-bottom: 36px;
  color: #9bcdf8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.config-back-link:hover,
.config-back-link:focus-visible {
  color: #fff;
}

.configurator-intro h1 {
  max-width: 820px;
  margin: 7px 0 18px;
  font-family: var(--display);
  font-size: clamp(42px, 6.5vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.configurator-intro h1 span {
  color: var(--blue-bright);
}

.configurator-intro .shell > p:last-child {
  max-width: 690px;
  margin: 0;
  color: #c5d4e3;
  font-size: 17px;
  line-height: 1.65;
}

.configurator-stage {
  padding-block: 72px 84px;
  background: #e9eff5;
}

.configurator-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  gap: 34px;
  align-items: stretch;
}

.config-product-panel {
  position: relative;
  display: flex;
  min-height: 660px;
  flex-direction: column;
  border: 1px solid #cbd6e0;
  padding: 34px;
  background: linear-gradient(150deg, #06182c, #0b3155);
  box-shadow: 0 18px 42px rgba(4, 20, 38, 0.12);
}

.config-product-heading p {
  margin: 0 0 8px;
  color: #6db9fb;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.config-product-heading h2 {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.04;
  text-transform: uppercase;
}

.config-product-image {
  display: grid;
  min-height: 430px;
  flex: 1;
  margin-top: 30px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(193, 220, 245, 0.32);
  background: #fff;
}

.config-product-image img {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: contain;
}

.config-status {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 22px;
  border: 1px solid rgba(182, 210, 236, 0.45);
  padding: 8px 12px;
  color: #d6e4f2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.config-status.is-ready {
  border-color: rgba(81, 211, 163, 0.52);
  color: #8ef0c8;
  background: rgba(17, 106, 76, 0.22);
}

.config-status.is-quote {
  border-color: rgba(113, 187, 250, 0.62);
  color: #a5d7ff;
  background: rgba(19, 101, 172, 0.22);
}

.config-builder {
  border: 1px solid #cbd6e0;
  padding: 38px 42px 36px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(4, 20, 38, 0.08);
}

.config-builder-heading {
  display: flex;
  margin-bottom: 30px;
  align-items: flex-start;
  gap: 15px;
}

.config-builder-heading > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: var(--blue-deep);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
}

.config-builder-heading p {
  margin: 0 0 3px;
  color: var(--blue-deep);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.config-builder-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 31px;
  line-height: 1.05;
  text-transform: uppercase;
}

.config-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.config-field {
  margin-bottom: 17px;
}

.config-field label {
  display: block;
  margin-bottom: 8px;
  color: #23364b;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.config-field select,
.config-field input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #bfcbd7;
  border-radius: 0;
  padding: 10px 42px 10px 14px;
  color: #142337;
  background-color: #f8fafc;
  font: 600 14px/1.25 var(--body);
}

.config-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #275276 50%),
    linear-gradient(135deg, #275276 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 21px,
    calc(100% - 14px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.config-field select:focus,
.config-field input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(8, 121, 223, 0.14);
}

.config-field option:disabled {
  color: #9ba7b3;
}

.config-product-select-hidden {
  display: none;
}

.config-result {
  margin-top: 8px;
  border-left: 4px solid var(--blue);
  padding: 20px 22px;
  background: #eef5fb;
}

.config-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.72fr);
  gap: 24px;
}

.config-price-result {
  border-left: 1px solid #c3d3e2;
  padding-left: 24px;
}

.config-result p {
  margin: 0 0 8px;
  color: var(--blue-deep);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.config-result strong {
  display: block;
  overflow-wrap: anywhere;
  color: #07182b;
  font-family: var(--display);
  font-size: clamp(19px, 2.5vw, 28px);
  letter-spacing: 0.015em;
}

.config-result span {
  display: block;
  margin-top: 8px;
  color: #516173;
  font-size: 13px;
  line-height: 1.5;
}

.config-price-result small {
  display: block;
  margin-top: 8px;
  color: #516173;
  font-size: 12px;
  line-height: 1.45;
}

.config-price-result .config-offline-notice {
  color: #b42318;
  font-weight: 700;
}

.config-cart-note a {
  text-decoration: underline;
}

.config-order-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 15px;
  align-items: end;
  margin-top: 20px;
}

.config-quantity {
  margin: 0;
}

.config-quantity input {
  padding-right: 12px;
}

.config-order-button {
  min-height: 50px;
  border: 0;
  cursor: pointer;
}

.config-order-button:disabled {
  cursor: not-allowed;
  color: #778596;
  background: #d8e0e8;
}

.config-cart-note {
  margin: 16px 0 0;
  color: #657487;
  font-size: 12px;
  line-height: 1.55;
}

.config-resource-nav {
  border-block: 1px solid rgba(193, 217, 239, 0.32);
  color: #fff;
  background: #06182c;
}

.config-resource-nav .shell {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.config-resource-nav a {
  display: grid;
  min-height: 72px;
  place-items: center;
  border-right: 1px solid rgba(193, 217, 239, 0.27);
  padding: 14px;
  text-align: center;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.config-resource-nav a:first-child {
  border-left: 1px solid rgba(193, 217, 239, 0.27);
}

.config-resource-nav a:hover,
.config-resource-nav a:focus-visible {
  color: #fff;
  background: var(--blue-deep);
}

.config-resources {
  padding-block: 78px 90px;
  background: #fff;
}

.config-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.config-resource-grid article {
  scroll-margin-top: 24px;
  border: 1px solid var(--line-light);
  padding: 28px;
  background: #f7f9fb;
}

.config-resource-grid article > span {
  color: var(--blue);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
}

.config-resource-grid h3 {
  margin: 8px 0 22px;
  font-family: var(--display);
  font-size: 21px;
  text-transform: uppercase;
}

.technical-link {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #d4dde6;
  padding-block: 12px;
  color: #25384c;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.technical-link:last-child {
  border-bottom: 1px solid #d4dde6;
}

.technical-link strong {
  flex: 0 0 auto;
  color: var(--blue-deep);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.technical-link:hover span,
.technical-link:focus-visible span {
  color: var(--blue-deep);
}

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

  .config-product-panel {
    min-height: auto;
  }

  .config-product-image {
    min-height: 340px;
  }

  .config-product-image img {
    height: 340px;
  }

  .config-resource-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .configurator-intro .shell {
    padding-block: 38px 46px;
  }

  .config-back-link {
    margin-bottom: 26px;
  }

  .configurator-stage {
    padding-block: 42px 48px;
  }

  .config-product-panel,
  .config-builder {
    padding: 24px;
  }

  .config-product-image,
  .config-product-image img {
    min-height: 280px;
    height: 280px;
  }

  .config-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .config-resource-nav .shell {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .config-resource-nav a,
  .config-resource-nav a:first-child {
    border: 1px solid rgba(193, 217, 239, 0.2);
  }
}

@media (max-width: 480px) {
  .config-result-grid {
    grid-template-columns: 1fr;
  }

  .config-price-result {
    border-top: 1px solid #c3d3e2;
    border-left: 0;
    padding-top: 18px;
    padding-left: 0;
  }

  .config-order-row {
    grid-template-columns: 1fr;
  }

  .config-resource-nav .shell {
    grid-template-columns: 1fr;
  }
}
