.program-detail,
.program-detail * {
  box-sizing: border-box;
}

.program-detail {
  color: #2f3b4a;
  font-size: 16px;
  line-height: 1.75;
  max-width: 100%;
}

.program-detail strong {
  font-weight: 700;
}

.program-detail h3 {
  margin: 0 0 18px !important;
  color: #153b67;
  font-size: 24px !important;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.program-detail p {
  margin: 0 0 16px;
}

.program-intro-text {
  margin: 0 0 34px;
  color: #32485f;
}

.program-results-lite {
  margin: 0 0 36px;
  padding: 0;
  max-width: 100%;
}

.program-results-lite ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 36px;
}

.program-results-lite li {
  position: relative;
  break-inside: avoid;
  margin: 0 0 14px;
  padding-left: 18px;
  color: #32485f;
}

.program-results-lite li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #da291c;
}

.program-plan {
  margin: 0 0 24px;
  padding: 24px 24px 22px;
  background: #fff;
  border: 1px solid rgba(0, 66, 136, 0.08);
  border-top: 3px solid #7fb2e6;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 66, 136, 0.06);
  max-width: 100%;
  overflow: hidden;
}

.prog-table {
  width: 100%;
  max-width: 100%;
  margin: 10px 0 0;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid rgba(0, 66, 136, 0.08);
  border-radius: 16px;
  overflow: hidden;
  table-layout: fixed;
}

.prog-table thead th {
  padding: 15px 18px;
  background: #edf5fc;
  color: #004288;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid rgba(0, 66, 136, 0.08);
}

.prog-table thead th:last-child {
  width: 120px;
  text-align: center;
}

.prog-table tbody td {
  padding: 15px 18px;
  font-size: 15px;
  color: #314255;
  border-bottom: 1px solid #edf2f7;
  vertical-align: middle;
  background: #fff;
  word-break: break-word;
}

.prog-table tbody tr:last-child td {
  border-bottom: none;
}

.prog-table tbody td:last-child {
  width: 120px;
  text-align: center;
  font-weight: 700;
  color: #004288;
  white-space: nowrap;
}

.program-price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 16px 18px;
  background: #f8fbff;
  border: 1px solid rgba(0, 66, 136, 0.06);
  border-radius: 14px;
  max-width: 100%;
}

.program-price-card__title {
  font-size: 16px;
  font-weight: 600;
  color: #153b67;
}

.program-price-card__value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 12px;
  max-width: 100%;
}

.program-price-card__current {
  font-size: 31px;
  line-height: 1;
  font-weight: 800;
  color: #004288;
}

.program-price-card__old {
  font-size: 15px;
  color: #98a3af;
  text-decoration: line-through;
}

.program-price-card__benefit {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(218, 41, 28, 0.08);
  color: #da291c;
  font-size: 13px;
  font-weight: 700;
}

.program-cta {
  margin-top: 28px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid rgba(0, 66, 136, 0.07);
  border-top: 3px solid #7fb2e6;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0, 66, 136, 0.05);
  max-width: 100%;
  overflow: hidden;
}

.program-cta p {
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #004288;
  line-height: 1.6;
}

.program-cta .page__btn {
  min-width: 220px;
  max-width: 100%;
  border-radius: 14px;
}

/* Форма */
.calendar_form {
  width: 100%;
  max-width: 520px;
  padding: 28px 24px !important;
  border-radius: 22px;
  box-sizing: border-box;
  color: #2f3b4a;
  overflow-x: hidden;
}

.calendar_form * {
  box-sizing: border-box;
  max-width: 100%;
}

.calendar_form .prog_form_block {
  width: 100%;
  max-width: 100%;
}

.calendar_form h2 {
  margin: 0 0 20px !important;
  color: #153b67;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.calendar_form table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse;
  table-layout: fixed;
}

.calendar_form tbody,
.calendar_form tr,
.calendar_form td {
  width: 100%;
  max-width: 100%;
}

.calendar_form td {
  display: block;
  padding: 0 !important;
  border: none !important;
}

.calendar_form p {
  margin: 0 0 14px !important;
  color: #41556b;
  font-size: 14px;
  line-height: 1.5;
}

.calendar_form td > p:first-child {
  margin-bottom: 8px !important;
  color: #153b67;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.calendar_form .inputtext,
.calendar_form input[type="text"],
.calendar_form input[type="tel"],
.calendar_form input[type="email"] {
  width: 100% !important;
  max-width: 100%;
  height: 54px;
  padding: 0 16px;
  background: #fbfdff;
  border: 1px solid #d9e5f2 !important;
  border-radius: 14px;
  color: #23364a;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  box-shadow: none;
}

.calendar_form .inputtextarea,
.calendar_form textarea {
  width: 100% !important;
  max-width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  background: #fbfdff;
  border: 1px solid #d9e5f2 !important;
  border-radius: 14px;
  color: #23364a;
  font-size: 15px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  box-shadow: none;
}

.calendar_form .inputtext:hover,
.calendar_form .inputtext:focus,
.calendar_form input[type="text"]:hover,
.calendar_form input[type="text"]:focus,
.calendar_form input[type="tel"]:hover,
.calendar_form input[type="tel"]:focus,
.calendar_form input[type="email"]:hover,
.calendar_form input[type="email"]:focus,
.calendar_form .inputtextarea:hover,
.calendar_form .inputtextarea:focus,
.calendar_form textarea:hover,
.calendar_form textarea:focus {
  background: #ffffff;
  border: 1px solid #7aa7d8 !important;
  box-shadow: 0 0 0 4px rgba(0, 66, 136, 0.08);
  outline: none;
}

.calendar_form input::placeholder,
.calendar_form textarea::placeholder {
  color: #92a0b0;
}

.calendar_form .polit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px !important;
  margin-bottom: 18px !important;
  color: #5b6b7d;
  font-size: 13px;
  line-height: 1.5;
}

.calendar_form .polit input[type="checkbox"] {
  margin: 3px 0 0;
  accent-color: #004288;
  flex: 0 0 auto;
}

.calendar_form .polit a {
  color: #004288;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 66, 136, 0.35);
  transition: border-color .2s ease, color .2s ease;
}

.calendar_form .polit a:hover {
  color: #0b4f99;
  border-bottom-color: rgba(11, 79, 153, 0.7);
}

.calendar_form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  max-width: 100%;
  min-height: 54px;
  padding: 0 24px !important;
  background: #004288 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 14px !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 12px 26px rgba(0, 66, 136, 0.18);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  cursor: pointer;
}

.calendar_form input[type="submit"]:hover {
  background: #0b4f99 !important;
  box-shadow: 0 16px 30px rgba(0, 66, 136, 0.22);
  transform: translateY(-1px);
}

.calendar_form input[type="submit"]:active {
  transform: translateY(0);
}

.calendar_form p[style*="text-align: center"] {
  margin-top: 10px !important;
  margin-bottom: 0 !important;
  text-align: left !important;
}

.calendar_form p.answer {
  margin: 12px 0 0 !important;
  padding: 14px 16px;
  background: #f4f9ff;
  border: 1px solid rgba(0, 66, 136, 0.12);
  border-radius: 14px;
  color: #004288 !important;
  font-size: 15px;
  font-weight: 600;
  text-align: center !important;
}

@media (max-width: 768px) {
  .program-detail {
    font-size: 15px;
    line-height: 1.65;
  }

  .program-detail h3 {
    font-size: 20px;
    margin-bottom: 14px !important;
  }

  .program-intro-text {
    margin-bottom: 28px;
  }

  .program-results-lite {
    margin-bottom: 28px;
  }

  .program-results-lite ul {
    columns: 1;
  }

  .program-plan,
  .program-cta {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .prog-table {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
  }

  .prog-table thead {
    display: none;
  }

  .prog-table tbody,
  .prog-table tr,
  .prog-table td {
    display: block;
    width: auto;
    max-width: 100%;
  }

  .prog-table tbody {
    padding: 8px;
  }

  .prog-table tr {
    margin-bottom: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid rgba(0, 66, 136, 0.08);
    border-radius: 12px;
    overflow: hidden;
  }

  .prog-table tr:last-child {
    margin-bottom: 0;
  }

  .prog-table tbody td {
    padding: 0;
    border: none;
    background: transparent;
  }

  .prog-table td + td {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0, 66, 136, 0.14);
  }

  .prog-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #004288;
  }

  .prog-table tbody td:last-child {
    text-align: left;
    width: auto;
    white-space: normal;
  }

  .program-price-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .program-price-card__value {
    justify-content: flex-start;
  }

  .program-price-card__current {
    font-size: 25px;
  }

  .program-cta .page__btn {
    width: 100%;
    min-width: 0;
  }

  .calendar_form {
    max-width: 100%;
    padding: 20px 16px !important;
    border-radius: 18px;
  }

  .calendar_form h2 {
    font-size: 24px;
    margin-bottom: 18px !important;
  }

  .calendar_form .inputtext,
  .calendar_form input[type="text"],
  .calendar_form input[type="tel"],
  .calendar_form input[type="email"] {
    height: 52px;
    font-size: 15px;
  }

  .calendar_form .inputtextarea,
  .calendar_form textarea {
    min-height: 110px;
  }

  .calendar_form input[type="submit"] {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .calendar_form {
    padding: 18px 14px !important;
  }

  .calendar_form h2 {
    font-size: 22px;
  }
}