/* ============================================================
   page-actions-main.css — продакшен
   Объединяет page-actions-main.css + page-actions-main-adaptive.css.
   Фиксированные значения заменены на clamp/cqi.
   ============================================================ */

/* ===== Секция ===== */
.page-actions__main {
  margin: clamp(24px, 4.4cqi, 64px) 0;
}

.page-actions__main-wrapper {
  display: grid;
  grid-template-columns: 316fr 664fr 316fr;
  gap: clamp(20px, 2.4cqi, 32px);
  align-items: start;
}

/* ===== Общие свойства колонок ===== */
.page-actions__main-col {
  min-width: 0;
  position: relative; /* обязательно для theiaStickySidebar */
}

.page-actions__main-col--left {
  padding-right: clamp(16px, 2.4cqi, 32px);
}

.page-actions__main-col--right {
  padding-left: clamp(16px, 2.4cqi, 32px);
}

.page-actions__main-col--center {
  /* пусто */
}

/* ===== Theia Sticky Sidebar — обязательные стили ===== */
.page-actions__main-col--left,
.page-actions__main-col--right {
  will-change: min-height;
}

.page-actions__main-col--left .theiaStickySidebar,
.page-actions__main-col--right .theiaStickySidebar {
  transform: translate(0, 0);
  transform: translate3d(0, 0, 0);
  will-change: position, transform;
}

.page-actions__main-col-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4cqi, 32px);
}

.page-actions__block {
  background: #f3f4f6;
  border-radius: clamp(16px, 1.8cqi, 26px);
  padding: 10px;

  font-weight: 500;
  font-size: clamp(13px, 1.1cqi, 14px);
  color: #4b5563;
}

.page-actions__block-padding {
  padding: clamp(20px, 2.4cqi, 32px);
}

.page-actions__block-title {
  font-weight: 600;
  font-size: clamp(16px, 1.4cqi, 18px);
  color: #111827;

  margin-bottom: clamp(8px, 1cqi, 12px);
}

.page-actions__navigation {
  margin: 0;
  padding: 0;
  list-style: none;

  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.6cqi, 8px);
}

.page-actions__navigation a,
.page-actions__navigation-current {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.6cqi, 8px);

  border-radius: clamp(12px, 1.2cqi, 16px);
  padding: clamp(12px, 1.3cqi, 16px) clamp(14px, 1.4cqi, 18px);

  font-weight: 500;
  font-size: clamp(14px, 1.2cqi, 16px);
  color: #4b5563;
}

.page-actions__navigation li.active .page-actions__navigation-current span {
  opacity: 1;
}

.page-actions__navigation-current {
  cursor: default;
}

.page-actions__navigation a span {
  /*opacity: 0.3;*/
}

.page-actions__navigation a:hover,
.page-actions__navigation li.active a,
.page-actions__navigation li.active .page-actions__navigation-current {
  background: #fff;
}

.page-actions__navigation a:hover span,
.page-actions__navigation li.active a span {
  opacity: 1;
}

.page-actions__navigation-icon {
  flex-shrink: 0;
  display: block;
  width: clamp(16px, 1.5cqi, 20px);
  height: clamp(16px, 1.5cqi, 20px);
}

.page-actions__col-title {
  padding: 0 0 0 clamp(0px, 0.5cqi, 6px);
  font-weight: 500;
  font-size: clamp(18px, 1.8cqi, 24px);
  line-height: 100%;
  letter-spacing: -0.01em;
  color: #111827;

  margin-bottom: clamp(10px, 1.2cqi, 15px);
}

.page-actions__hot {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.6cqi, 8px);
}

.page-actions__hot-date {
  font-weight: 600;
  font-size: clamp(16px, 1.4cqi, 18px);
  color: #111827;

  display: flex;
  align-items: center;
  gap: clamp(6px, 0.6cqi, 8px);
}

.page-actions__hot-date-icon {
  display: inline-block;
  width: clamp(13px, 1.1cqi, 15px);
  height: clamp(13px, 1.1cqi, 15px);

  background-image: url("../actions-images/icon-calendar.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.page-actions__hot-time {
  font-weight: 500;
  font-size: clamp(13px, 1.1cqi, 14px);
  color: #4b5563;
}

.page-actions__hot-time a {
  color: #3b89e4;
  text-decoration: underline;
  margin-left: clamp(6px, 0.9cqi, 12px);
}

.page-actions__hot-time a:hover,
.page-actions__hot-time a:focus,
.page-actions__hot-time a:active {
  text-decoration: none;
}

.page-actions__divider {
  height: 1px;
  background: #d9d9d9;
  margin: clamp(12px, 1.2cqi, 16px) 0;
}

.page-actions__doctor {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 0.9cqi, 12px);
}

.page-actions__doctor-card {
  display: flex;
  gap: clamp(8px, 0.9cqi, 12px);
  align-items: center;
}

.page-actions__doctor-card-avatar {
  flex-shrink: 0;
  width: clamp(48px, 4.4cqi, 60px);
  height: clamp(48px, 4.4cqi, 60px);
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.page-actions__doctor-card-text {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.6cqi, 8px);
}

.page-actions__doctor-card-text a {
  font-weight: 500;
  font-size: clamp(13px, 1.1cqi, 14px);
  text-decoration: underline;
  color: #111827;
}

.page-actions__doctor-card-text a:hover,
.page-actions__doctor-card-text a:focus,
.page-actions__doctor-card-text a:active {
  text-decoration: none;
}

.page-actions__doctor-card-text span {
  font-weight: 400;
  font-size: clamp(11px, 0.9cqi, 12px);
  color: #4b5563;
}

.page-actions__doctor-card-text .page-actions__doctor-card-name {
  font-weight: 500;
  font-size: clamp(13px, 1.1cqi, 14px);
  color: #111827;
}

.page-actions__doctor-place {
  font-weight: 500;
  font-size: clamp(13px, 1.1cqi, 14px);
  color: #4b5563;
}

.page-actions__btn {
  margin-top: clamp(20px, 2.4cqi, 32px);
}

.button-actions__block {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: clamp(48px, 4.2cqi, 57px);

  padding: clamp(12px, 1.4cqi, 18px) clamp(16px, 1.8cqi, 24px);

  border: 1px solid rgba(59, 137, 228, 0.15);
  border-radius: clamp(12px, 1.2cqi, 16px);

  background-color: rgba(59, 137, 228, 0.1);

  font-family: inherit;
  font-weight: 500;
  font-size: clamp(15px, 1.4cqi, 18px);
  line-height: 1.2;
  text-align: center;

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, border-color .15s ease;
}

.button-actions__block__text {
  background-image: linear-gradient(180deg, #3b89e4 0%, #336edc 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

.button-actions__block:hover {
  background-color: rgba(59, 137, 228, 0.16);
  border-color: rgba(59, 137, 228, 0.25);
}

.button-actions__block:active {
  background-color: rgba(59, 137, 228, 0.22);
}

.button-actions__block:focus-visible {
  outline: 2px solid #3b89e4;
  outline-offset: 2px;
}

.page-actions__announcement {
  font-weight: 600;
  font-size: clamp(16px, 1.4cqi, 18px);
  color: #111827;
}

.page-actions__announcement p {
  margin-bottom: 1rem;
}

.page-actions__announcement p:last-child {
  margin: 0;
}

.page-actions__block-form {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 0.8cqi, 10px);
}

.page-actions__block-form-item .form-group-checkbox {
  margin: 6px 0 0 0;
}

.page-actions__block-form-item input[type="text"],
.page-actions__block-form-item input[type="tel"] {
  display: block;
  width: 100%;
  min-height: clamp(48px, 4.2cqi, 57px);

  padding: clamp(12px, 1.4cqi, 18px) clamp(16px, 1.8cqi, 24px);

  border: 1px solid transparent;
  border-radius: clamp(12px, 1.2cqi, 16px);
  background: #fff;

  font-family: inherit;
  font-weight: 400;
  font-size: clamp(15px, 1.4cqi, 18px);
  line-height: 1.2;
  color: #4b5563;

  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
          appearance: none;
}

.page-actions__block-form-item input[type="text"]::placeholder,
.page-actions__block-form-item input[type="tel"]::placeholder {
  font-weight: 400;
  font-size: clamp(15px, 1.4cqi, 18px);
  color: rgba(75, 85, 99, 0.6);
  opacity: 1;
}

.page-actions__block-form-item input[type="text"]:hover,
.page-actions__block-form-item input[type="tel"]:hover {
  border-color: rgba(59, 137, 228, 0.25);
}

.page-actions__block-form-item input[type="text"]:focus,
.page-actions__block-form-item input[type="tel"]:focus {
  border-color: #3b89e4;
  box-shadow: 0 0 0 3px rgba(59, 137, 228, 0.15);
}

.page-actions__block ul:not([class]) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-actions__block ul:not([class]) li {
  display: flex;
  align-items: center;
  gap: clamp(8px, 0.9cqi, 12px);

  font-weight: 300;
  font-size: clamp(13px, 1.1cqi, 14px);
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #4b5563;
}

.page-actions__block ul:not([class]) li + li {
  margin-top: clamp(6px, 0.6cqi, 8px);
}

.page-actions__block ul:not([class]) li::before {
  content: '';
  flex-shrink: 0;

  width: clamp(6px, 0.6cqi, 8px);
  height: clamp(6px, 0.6cqi, 8px);

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8' fill='none'%3E%3Ccircle cx='4' cy='4' r='4' fill='%233B89E4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.page-actions__block-btn {
  margin-top: clamp(24px, 3.4cqi, 46px);
}

.page-actions__list {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4cqi, 32px);
}

.page-actions__item {
  border-radius: clamp(16px, 1.8cqi, 26px);
  padding: clamp(8px, 0.8cqi, 10px);
  background: linear-gradient(315.09deg, #e9eef3 0%, #cbe1f3 100%);

  display: flex;
  flex-direction: column;
  gap: clamp(8px, 0.8cqi, 10px);
}

.page-actions__item-hero {
  border-radius: clamp(12px, 1.2cqi, 16px) clamp(12px, 1.2cqi, 16px) clamp(10px, 1cqi, 12px) clamp(10px, 1cqi, 12px);
  background-color: #abcdeb;

  aspect-ratio: 644 / 220;

  position: relative;
  overflow: hidden;
}

.page-actions__item-hero::after {
  content: '';

  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: linear-gradient(180deg, rgba(21, 60, 106, 0) 68%, rgba(21, 60, 106, 0.2) 100%);
  z-index: 1;
}

.page-actions__item-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.page-actions__item-hero-badge {
  position: absolute;
  left: clamp(16px, 2.4cqi, 32px);
  bottom: clamp(12px, 1.2cqi, 16px);

  border-radius: clamp(6px, 0.6cqi, 8px);
  padding: clamp(4px, 0.5cqi, 6px) clamp(8px, 0.9cqi, 12px);
  background: #fff;

  z-index: 2;

  display: flex;
  align-items: center;
  gap: clamp(6px, 0.6cqi, 8px);

  font-weight: 500;
  font-size: clamp(12px, 1cqi, 14px);
  color: #4b5563;
}

.page-actions__item-card {
  border-radius: clamp(10px, 1cqi, 12px) clamp(10px, 1cqi, 12px) clamp(12px, 1.2cqi, 16px) clamp(12px, 1.2cqi, 16px);
  background: #fff;

  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(180px, 18cqi, 237px);
  gap: clamp(8px, 0.8cqi, 10px);
}

.page-actions__item-card-left {
  padding: clamp(20px, 2.4cqi, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(20px, 2.4cqi, 32px);
}

.page-actions__item-card-left-h {
  font-weight: 500;
  font-size: clamp(18px, 1.8cqi, 24px);
  line-height: 100%;
  letter-spacing: -0.01em;
  color: #111827;
}

.page-actions__item-card-left-b {
  font-weight: 400;
  font-size: clamp(14px, 1.4cqi, 18px);
  color: #4b5563;
}

.page-actions__item-card-left-b p:last-child {
  margin: 0;
}

.page-actions__item-card-right {
  padding: clamp(8px, 0.8cqi, 12px);
  display: flex;
}

.page-actions__item-card-right-inner {
  border-radius: clamp(10px, 1cqi, 12px) clamp(10px, 1cqi, 12px) clamp(12px, 1.2cqi, 16px) clamp(12px, 1.2cqi, 16px);
  padding: clamp(20px, 2.4cqi, 32px);

  width: 100%;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(12px, 1.2cqi, 16px);
}

.dashed {
  position: relative;
  box-sizing: border-box;
}

.dashed__outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 12px 12px 16px 16px;
  overflow: visible;
}

.page-actions__item-card-right-inner.dashed {
  width: 100%;
  min-height: 0;
  padding: clamp(20px, 2.4cqi, 32px);
}

.page-actions__item-card-right-inner-price {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.6cqi, 8px);

  text-align: center;

  font-weight: 500;
  font-size: clamp(24px, 2.5cqi, 36px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #111827;
}

.page-actions__item-card-right-inner-price > div:first-child {
  line-height: 1;
}

.page-actions__item-card-right-inner-price > div:last-child {
  line-height: 1;
  font-size: clamp(14px, 1.4cqi, 18px);
}

.page-actions__item-card-right-inner-price s {
  font-weight: 500;
  font-size: clamp(14px, 1.4cqi, 18px);
  text-decoration: line-through;
  color: #4b5563;
  opacity: 0.6;
}

.page-actions__item-card-right-inner-price span {
  font-weight: 500;
  font-size: clamp(14px, 1.4cqi, 18px);
  color: #3b89e4;
  margin-left: clamp(6px, 0.6cqi, 8px);
}

.action-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;

  margin-inline: auto;

  min-width: clamp(120px, 11cqi, 147px);
  min-height: clamp(48px, 4.2cqi, 57px);

  padding: clamp(12px, 1.4cqi, 18px) clamp(16px, 1.8cqi, 24px);

  border: 0;
  border-radius: clamp(12px, 1.2cqi, 16px);
  background: linear-gradient(180deg, #3b89e4 0%, #336edc 100%);

  font-family: inherit;
  font-weight: 500;
  font-size: clamp(15px, 1.4cqi, 18px);
  line-height: 1.2;
  color: #fff;
  text-align: center;

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: filter .15s ease, transform .1s ease;
}

.action-card__btn:hover {
  filter: brightness(1.05);
}

.action-card__btn:active {
  filter: brightness(0.95);
  transform: translateY(1px);
}

.action-card__btn:focus-visible {
  outline: 2px solid #3b89e4;
  outline-offset: 2px;
}

.action-card__btn:disabled,
.action-card__btn[disabled] {
  background: rgba(174, 184, 202, 0.5);
  cursor: not-allowed;
  pointer-events: auto;
  filter: none;
  transform: none;
}

.action-card__btn:disabled:hover,
.action-card__btn:disabled:active {
  filter: none;
  transform: none;
}

.page-actions__item-review {
  position: relative;

  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: clamp(12px, 1.2cqi, 16px);
  padding: clamp(20px, 2.4cqi, 32px);

  margin-top: clamp(16px, 1.6cqi, 22px);

  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.2cqi, 16px);
}

.page-actions__item-review-label {
  position: absolute;
  left: clamp(16px, 1.8cqi, 24px);
  top: 0;
  transform: translateY(-50%);

  padding: clamp(3px, 0.4cqi, 4px) clamp(6px, 0.6cqi, 8px);
  background: linear-gradient(90deg, #d7e6f3 0%, #dae8f3 100%);

  font-weight: 500;
  font-size: clamp(12px, 1cqi, 14px);
  color: #4b5563;

  width: fit-content;

  border-radius: clamp(6px, 0.6cqi, 8px);
}

.page-actions__item-review-label span {
  opacity: 0.6;
}

.page-actions__item-review-hero {
  display: flex;
  gap: clamp(8px, 0.9cqi, 12px);
  align-items: center;
}

.page-actions__item-review-ava {
  width: clamp(32px, 3cqi, 40px);
  height: clamp(32px, 3cqi, 40px);
}

.page-actions__item-review-ava > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-actions__item-review-auth {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-actions__item-review-auth > div:first-child {
  font-weight: 600;
  font-size: clamp(15px, 1.4cqi, 18px);
  color: #111827;
}

.page-actions__item-review-auth > div:last-child {
  font-weight: 400;
  font-size: clamp(12px, 1cqi, 14px);
  color: #4b5563;
}

.page-actions__item-review-rating {
  display: flex;
  gap: clamp(3px, 0.4cqi, 5px);
  margin-left: auto;
}

.page-actions__item-review-rating .icon-star-custom {
  width: clamp(14px, 1.4cqi, 19px);
  height: clamp(13px, 1.3cqi, 18px);
}

.page-actions__item-review-text {
  font-weight: 400;
  font-size: clamp(14px, 1.4cqi, 18px);
  color: #4b5563;
}

.page-actions__item-review-text p:last-child {
  margin: 0;
}

/* ===== Планшет: 601–900px ===== */
@media (max-width: 900px) {
  .page-actions__main-wrapper {
    grid-template-columns: 1fr;
  }

  .page-actions__main-col--center { order: 1; }
  .page-actions__main-col--left   { order: 2; padding-right: 0; }
  .page-actions__main-col--right  { order: 3; padding-left: 0; }

  .page-actions__main-col--center {
    min-width: 0;
  }

  .page-actions__main-col--left .theiaStickySidebar,
  .page-actions__main-col--right .theiaStickySidebar {
    transform: none !important;
    position: static !important;
    will-change: auto;
  }
}

/* ===== Мобильный: 350–600px ===== */
@media (max-width: 600px) {
  .page-actions__item-card {
    grid-template-columns: 1fr;
  }

  .page-actions__item-card-right {
    padding: clamp(8px, 2.3vw, 12px);
  }

  .page-actions__item-card-right-inner.dashed {
    min-height: 0;
  }

  .page-actions__item-hero-badge {
    left: clamp(12px, 3vw, 16px);
    bottom: clamp(10px, 2.5vw, 12px);
  }

  .page-actions__item-card-left-h {
    font-size: clamp(18px, 5vw, 22px);
  }

  .page-actions__col-title {
    font-size: clamp(18px, 5vw, 22px);
  }

  .page-actions__block-padding {
    padding: clamp(16px, 4.5vw, 24px);
  }

  .page-actions__block-title {
    font-size: clamp(15px, 4.5vw, 17px);
  }
}

/* ===== Узкий мобильный: до 400px ===== */
@media (max-width: 400px) {
  .page-actions__item-card-left {
    padding: 20px;
  }

  .page-actions__item-review {
    padding: 20px;
  }

  .page-actions__item-review-hero {
    flex-wrap: wrap;
  }

  .page-actions__item-review-rating {
    margin-left: 0;
    flex-basis: 100%;
  }
}

#consult-form .response-title,
#subscribe-hot-time-form .response-title,
#subscribe-actions-form .response-title {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}

#consult-form .response-title p,
#subscribe-hot-time-form .response-title p,
#subscribe-actions-form .response-title p {
  margin: 0;
}

/* Отступы между карточками виджета "Горящее время" */
.page-actions__col-title + .page-actions__block {
    margin-top: 16px;
}

.page-actions__block + .page-actions__block {
    margin-top: 24px;
}

/* Аватар врача в виджете "Горящее время".
   Фото вертикальные, кадрируем верхнюю часть (там голова). */
.page-actions__doctor-card-avatar {
    object-fit: cover;
    object-position: center top;
    width: 60px;
    height: 60px;
}

/* Виджет "Горящее время": слот (стиль V4 — строгий минимализм) */
.page-actions__hot-slot {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    padding: 16px;
    border-radius: 12px;
}

.page-actions__hot-slot + .page-actions__hot-slot {
    /*margin-top: 12px;*/
    margin-top: 0;
}

.page-actions__hot-slot-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-size: clamp(13px, 1.1cqi, 14px);
}

.page-actions__hot-slot-row + .page-actions__hot-slot-row {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}

.page-actions__hot-slot-label {
    color: #4b5563;
    font-size: clamp(12px, 1cqi, 13px);
}

.page-actions__hot-slot-value {
    font-weight: 600;
    color: #111827;
}

.page-actions__hot-slot-btn-row {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.page-actions__hot-countdown {
    font-weight: 700;
    font-size: clamp(14px, 1.2cqi, 16px);
    color: #111827;
    font-variant-numeric: tabular-nums;
}

.page-actions__hot-countdown.is-urgent {
    color: #E9585B;
}

.page-actions__hot-discount {
    font-size: clamp(12px, 1cqi, 13px);
    font-weight: 600;
    color: #3b89e4;
}

/* Кнопка "Пойду" — уменьшенный вариант action-card__btn */
.action-card__btn--sm {
    min-width: auto;
    min-height: auto;
    padding: 8px 20px;
    font-size: 14px;
    line-height: 1.2;
    border-radius: 10px;
    margin: 0;
}