/* =========================
   RESULT SCREEN
========================= */

.result-wrapper {
    height: 100%;
}

.result {
  margin: 0 auto;
  height: 100%;
  padding: 4.5rem 2rem;

  /* "белый экран" результата */
  background: var(--white-color);
  border-radius: 2.5rem;
  box-shadow: var(--shadow);

  position: relative;
  overflow: hidden;
}

/* декоративные мягкие круги как в фигме */
.result::before {
  content: '';
  position: absolute;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  background: rgba(0, 172, 134, 0.14);
  left: -18rem;
  bottom: -18rem;
  pointer-events: none;
}

.result::after {
  content: '';
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: rgba(0, 172, 134, 0.14);
  right: -16rem;
  top: -16rem;
  pointer-events: none;
}

.result__card {
  /* карточка таблицы внутри белого экрана */
  position: relative;
  z-index: 1;

  max-width: 920px;
  margin: 0 auto;

  background: var(--white-color);
  border-radius: 2rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ===== TABLE ===== */

.result__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

/* шапка таблицы как в фигме */
.result__table thead th {
  background: var(--accent-color);
  color: var(--white-color);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.4rem;

  padding: 2.2rem 2.4rem;
}

.result__table thead th:first-child {
  border-top-left-radius: 2rem;
}

.result__table thead th:last-child {
  border-top-right-radius: 2rem;
}

/* строки */
.result__table tbody td {
  padding: 2rem 2.4rem;
  font-size: 1.6rem;
  color: var(--black-color);
  text-align: center;
  background: var(--white-color);
}

/* разделители строк — тонкие зелёные линии */
.result__table tbody tr td {
  border-bottom: 1px solid rgba(0, 172, 134, 0.45);
}

.result__table tbody tr:last-child td {
  border-bottom: none;
  border-bottom-left-radius: 2rem;
  border-bottom-right-radius: 2rem;
}

/* выравнивание второго столбца (значение) */
.result__table td:last-child {
  text-align: right;
  font-weight: 700;
  text-align: center;
  color: var(--black-color);
}

/* небольшой отступ внутри карточки (как в фигме — воздух) */
.result__card .result__table {
  box-shadow: none;
}

/* ===== ACTIONS (кнопки как на макете) ===== */

.result__actions {
  position: relative;
  z-index: 1;

  max-width: 920px;
  margin: 3rem auto 0;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
}

.result__actions .accent__btn {
  /* крупные кнопки */
  padding: 2.2rem 0;
  border-radius: 1.4rem;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow);
}

.accent__btn:disabled {
  background-color: var(--pdf-bg) !important;
  color: #4e4e4e !important;
  cursor: not-allowed;
}

/* на узких экранах — кнопки столбиком */
@media (max-width: 820px) {
  .result {
    padding: 3.5rem 1.5rem;
    border-radius: 2rem;
  }

  .result__actions {
    grid-template-columns: 1fr;
  }
}
