.technology {
  position: relative;
  padding: clamp(48px, 7vw, 112px) var(--gutter);
}

.technology-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, .76fr);
  grid-template-areas:
    "heading stage details"
    "views stage details";
  grid-template-rows: 1fr auto;
  gap: 24px clamp(16px, 2.8vw, 44px);
  padding-block: clamp(30px, 5vw, 78px);
}

.technology-heading {
  grid-area: heading;
}

.technology-heading h2 {
  font-size: clamp(46px, 7.8vw, 124px);
  line-height: .94;
  letter-spacing: -.075em;
}

.technology-heading p {
  max-width: 26ch;
  margin: 22px 0 0 auto;
  color: #4a4a46;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.26;
}

.technology-stage {
  grid-area: stage;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: clamp(360px, 40vw, 600px);
}

.technology-view {
  position: relative;
  width: 100%;
  margin: 0;
}

.technology-view-device {
  width: min(74%, 390px);
}

.technology-view-applicators {
  width: min(88%, 460px);
}

.technology-view > img {
  display: block;
  width: 100%;
  height: auto;
}

.technology-tag {
  position: absolute;
  top: var(--tag-y);
  left: var(--tag-x);
  padding: 7px 10px;
  border: 1px solid #deded9;
  border-radius: 2px;
  background: #f6f6f5f2;
  color: #252522;
  font-size: clamp(11px, 1vw, 14px);
  line-height: 1;
  white-space: nowrap;
}

.technology-tag-screen { --tag-x: 60%; --tag-y: 12%; }
.technology-tag-applicators { --tag-x: -10%; --tag-y: 49%; }
.technology-tag-booster { --tag-x: -5%; --tag-y: 47%; }
.technology-tag-linear { --tag-x: 62%; --tag-y: 35%; }

.technology-views {
  grid-area: views;
  align-self: end;
}

.technology-views:not([hidden]) {
  display: flex;
  gap: 9px;
}

.technology-view-button {
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 80px;
  padding: 7px 5px 6px;
  border: 1px solid #d7d7d2;
  border-radius: 2px;
  background: #eeeee9;
  color: var(--ink);
  font-size: 12px;
  line-height: 1;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.technology-view-button:hover,
.technology-view-button[aria-pressed="true"] {
  border-color: var(--ink);
  background: #fff;
}

.technology-view-button img {
  display: block;
  width: 54px;
  height: 48px;
  object-fit: contain;
}

.technology-details {
  grid-area: details;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  align-items: start;
  min-width: 0;
}

.technology-model h3 {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 60px);
  line-height: .95;
  font-weight: 400;
  letter-spacing: -.05em;
}

.technology-model p {
  margin-top: 5px;
  color: #4a4a46;
  font-size: 14px;
}

.technology-points {
  align-self: center;
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 16px;
  color: #454541;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.25;
}

.technology-points strong {
  color: var(--ink);
  font-weight: 500;
}

.technology-details .cta-actions {
  align-self: end;
}

.technology-details .booking-button,
.technology-details .treatment-button {
  font-size: 15px;
}

.technology-details .booking-button-face {
  gap: 8px;
  padding-inline: 12px;
}

@media (max-width: 1000px) {
  .technology-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas:
      "heading heading"
      "stage details"
      "views details";
    grid-template-rows: auto 1fr auto;
  }

  .technology-heading p {
    margin-left: 0;
  }
}

@media (max-width: 650px) {
  .technology-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "stage" "views" "details";
    grid-template-rows: auto;
    gap: 22px;
    padding-block: 26px;
  }

  .technology-heading h2 {
    font-size: clamp(44px, 12vw, 74px);
  }

  .technology-heading p {
    margin-top: 14px;
  }

  .technology-stage {
    min-height: clamp(285px, 93vw, 440px);
  }

  .technology-view-device {
    width: min(72%, 300px, 60vw);
  }

  .technology-view-applicators {
    width: min(88%, 360px);
  }

  .technology-views {
    justify-self: center;
  }

  .technology-details {
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid #d7d7d2;
  }

}
