.survey-result-open {
  overflow: hidden;
}

.survey-result {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: stretch;
  background: rgba(5, 23, 18, .76);
  backdrop-filter: blur(14px);
  animation: survey-result-fade .22s ease-out;
}

.survey-result__dialog {
  position: relative;
  width: 100%;
  max-height: 100dvh;
  overflow: auto;
  background: #f6f8f7;
  color: #102b23;
  scrollbar-color: #9bada7 transparent;
}

.survey-result__close {
  position: sticky;
  z-index: 5;
  top: 12px;
  float: right;
  width: 42px;
  height: 42px;
  margin: 12px 12px -54px 0;
  border: 1px solid rgba(16, 50, 40, .1);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #173d32;
  box-shadow: 0 8px 24px rgba(18, 53, 43, .12);
  font: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.survey-result__close:hover {
  background: #fff;
  transform: translateY(-1px);
}

.survey-result__hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 72px 20px 54px;
  overflow: hidden;
  border-bottom: 1px solid #dce8e3;
  background:
    radial-gradient(circle at 88% 8%, rgba(109, 212, 174, .22), transparent 31%),
    radial-gradient(circle at 4% 100%, rgba(245, 156, 84, .11), transparent 25%),
    linear-gradient(150deg, #fbfdfc 0%, #eef7f3 100%);
}

.survey-result__hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 290px;
  height: 290px;
  top: -155px;
  right: -135px;
  border: 1px solid rgba(20, 118, 90, .12);
  border-radius: 50%;
}

.survey-result__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 6px 10px;
  border: 1px solid #c5e4d8;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #0a7157;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.survey-result__hero-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: 22px;
  border: 1px solid #d2e7df;
  border-radius: 15px;
  background: #fff;
  color: #08735b;
  box-shadow: 0 12px 32px rgba(21, 76, 59, .1);
  font-size: 23px;
}

.survey-result__hero h2 {
  max-width: 860px;
  margin: 17px 0 12px;
  color: #092c23;
  font-size: clamp(36px, 10vw, 54px);
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.survey-result__hero p {
  max-width: 660px;
  margin: 0;
  color: #64766f;
  font-size: 16px;
  line-height: 1.5;
}

.survey-result__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  margin-top: 27px;
  padding: 17px 22px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(145deg, #0b7b5d, #08674f);
  color: #fff;
  box-shadow: 0 15px 34px rgba(8, 105, 80, .23);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.survey-result__cta::after {
  content: "→";
  font-size: 19px;
  line-height: 1;
}

.survey-result__cta:hover {
  background: linear-gradient(145deg, #0d8968, #075e49);
  box-shadow: 0 18px 40px rgba(8, 105, 80, .3);
  transform: translateY(-2px);
}

.survey-result__cta[data-button-position="result_hero"] {
  background: linear-gradient(145deg, #ff6a1f, #ed4b0b);
  box-shadow: 0 15px 34px rgba(222, 75, 12, .27);
}

.survey-result__cta[data-button-position="result_hero"]:hover {
  background: linear-gradient(145deg, #ff7938, #df4105);
  box-shadow: 0 18px 40px rgba(222, 75, 12, .34);
}

.survey-result__cta:focus-visible,
.survey-result__close:focus-visible {
  outline: 3px solid #f1a154;
  outline-offset: 3px;
}

.survey-result__content {
  width: min(100%, 1000px);
  margin: 0 auto;
  padding: 20px 14px 34px;
}

.survey-result__block {
  padding: 27px 20px;
  border: 1px solid #dce6e2;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(20, 55, 44, .035);
}

.survey-result__block + .survey-result__block,
.survey-result__conversion,
.survey-result__footer {
  margin-top: 14px;
}

.survey-result__block h3,
.survey-result__conversion h3 {
  margin: 0 0 21px;
  color: #112f27;
  font-size: clamp(24px, 6vw, 31px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.survey-result__why {
  border-color: #a9d8c7;
  background: linear-gradient(145deg, #fff 0%, #f1faf6 100%);
}

.survey-result__reason-grid {
  display: grid;
  gap: 10px;
}

.survey-result__reason {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 47px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(231, 246, 240, .78);
}

.survey-result__reason span,
.survey-result__expectation-card span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: none;
  border-radius: 50%;
  background: #d8f2e7;
  color: #08735b;
  font-size: 13px;
  font-weight: 900;
}

.survey-result__reason strong {
  color: #25453b;
  font-size: 14px;
  line-height: 1.3;
}

.survey-result__answer-grid {
  display: grid;
  gap: 11px;
}

.survey-result__answer-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e1e9e6;
  border-radius: 14px;
  background: #fafcfb;
}

.survey-result__answer-icon {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #e7f4ef;
  color: #08735b;
  font-size: 18px;
  font-weight: 800;
}

.survey-result__answer-card small {
  overflow: hidden;
  color: #788983;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.survey-result__answer-card strong {
  overflow: hidden;
  margin-top: 3px;
  color: #19372f;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.survey-result__expectation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.survey-result__expectation-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 11px;
  border: 1px solid #e1e9e6;
  border-radius: 12px;
  background: #fafcfb;
}

.survey-result__expectation-card strong {
  color: #29463d;
  font-size: 13px;
}

.survey-result__conversion {
  padding: 34px 20px;
  border: 1px solid #b9ddcf;
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 10%, rgba(82, 192, 151, .19), transparent 32%),
    #eaf7f2;
  text-align: center;
}

.survey-result__conversion small {
  color: #08735b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.survey-result__conversion h3 {
  margin: 9px auto 0;
  max-width: 720px;
}

.survey-result__conversion .survey-result__cta {
  margin-right: auto;
  margin-left: auto;
}

.survey-result__footer {
  padding: 22px 12px 4px;
  text-align: center;
}

.survey-result__footer-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 15px;
}

.survey-result__footer-trust span {
  color: #536961;
  font-size: 12px;
  font-weight: 750;
}

.survey-result__disclosure {
  display: block;
  max-width: 680px;
  margin: 13px auto 0;
  color: #8a9994;
  font-size: 9px;
  line-height: 1.4;
}

@keyframes survey-result-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 560px) {
  .survey-result {
    padding: 18px;
    place-items: center;
  }

  .survey-result__dialog {
    width: min(1100px, 100%);
    max-height: calc(100dvh - 36px);
    border: 1px solid rgba(214, 229, 223, .95);
    border-radius: 26px;
    box-shadow: 0 42px 130px rgba(0, 18, 13, .42);
  }

  .survey-result__close {
    top: 16px;
    margin: 16px 16px -58px 0;
  }

  .survey-result__hero {
    align-items: center;
    padding: 68px 44px 60px;
    text-align: center;
  }

  .survey-result__hero p {
    font-size: 17px;
  }

  .survey-result__cta {
    width: auto;
    min-width: 330px;
  }

  .survey-result__content {
    padding: 24px 22px 42px;
  }

  .survey-result__block {
    padding: 31px;
  }

  .survey-result__reason-grid,
  .survey-result__answer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .survey-result__expectation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .survey-result__conversion {
    padding: 43px 34px;
  }
}

@media (min-width: 900px) {
  .survey-result__hero {
    padding: 72px 70px 64px;
  }

  .survey-result__hero h2 {
    font-size: clamp(52px, 5.4vw, 68px);
  }

  .survey-result__reason-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .survey-result__reason {
    align-items: flex-start;
    min-height: 82px;
  }

  .survey-result__reason strong {
    padding-top: 3px;
  }

  .survey-result__answer-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .survey-result__answer-card {
    display:flex;
    min-height: 145px;
    flex-direction: column;
    align-items: flex-start;
  }

  .survey-result__answer-card small {
    width: 100%;
    margin-top: 15px;
  }

  .survey-result__answer-card strong {
    width: 100%;
    margin-top: 6px;
    overflow: visible;
    white-space: normal;
  }

  .survey-result__expectation-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .survey-result__expectation-card {
    min-height: 74px;
    flex-direction: column;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .survey-result,
  .survey-result__cta,
  .survey-result__close {
    animation: none;
    transition: none;
  }

  .survey-result__cta:hover,
  .survey-result__close:hover {
    transform: none;
  }
}
