/* catalog/css/landing_pages.css */

/* ===== Landing lead ===== */
.landing-lead{
  margin-top: 10px;
  max-width: 920px;
  color: #6b7280;
  line-height: 1.5;
}

/* ===== Cards grid ===== */
.stage-landing{
  padding: 18px 0 10px;
}

.stage-landing__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stage-card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
  transition: transform .15s ease, box-shadow .15s ease;
}
.stage-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,.08);
}

.stage-card__img{
  aspect-ratio: 16 / 9;
  background: #f6f7f8;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.stage-card__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-card__ph{
  width: 100%;
  height: 100%;
  display:flex;
  align-items:flex-end;
  padding: 12px;
  background: radial-gradient(circle at 30% 25%, #ffffff, #f3f4f6);
}

.stage-card__ph-badge{
  display:inline-block;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.06);
  color: #6b7280;
}

.stage-card__body{
  padding: 14px 14px 16px;
}

.stage-card__title{
  margin: 0 0 6px;
  font-size: 18px;
}

.stage-card__text{
  margin: 0;
  color: #6b7280;
  line-height: 1.45;
}

/* ===== Offer block ===== */
.stage-offer{
  padding: 14px 0 40px;
}

.stage-offer__box{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
  padding: 16px;
}

.stage-offer__title{
  margin: 0 0 6px;
  font-size: 18px;
}

.stage-offer__lead{
  margin: 0 0 10px;
  color: #374151;
  line-height: 1.5;
}

.stage-offer__list{
  margin: 0;
  padding-left: 18px;
  color: #6b7280;
  line-height: 1.5;
}
.stage-offer__list li{ margin: 6px 0; }

.stage-offer__right{
  background: #f9fafb;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 14px;
  display:flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
}

.stage-offer__hint{
  color:#374151;
  font-size: 13px;
  line-height: 1.35;
}

.stage-offer__call{
  font-size: 13px;
  color: #6b7280;
}
.stage-link{
  color: #111;
  text-decoration: underline;
}
.stage-link:hover{ color:#000; }

/* ===== Buttons (фикс hover, т.к. базовый a:hover может менять цвет) ===== */
.stage-btn{
  appearance: none;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

.stage-btn--primary{
  background: linear-gradient(180deg, #1f1f1f, #0b0b0b);
  color: #fff;
  border-color: rgba(0,0,0,.25);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.stage-btn--primary:hover{
  filter: brightness(1.06);
  transform: translateY(-1px);
  color: #fff; /* фикс бага */
}
.stage-btn--primary:active{
  transform: translateY(0);
}

/* Гарантируем белый текст на hover/focus/active */
.stage-btn--primary,
.stage-btn--primary:hover,
.stage-btn--primary:active,
.stage-btn--primary:focus{
  color: #fff !important;
}

.stage-btn--ghost{
  background: #fff;
  color: #111;
  border-color: rgba(0,0,0,.14);
}
.stage-btn--ghost:hover{
  background: #f3f4f6;
}

/* ===========================
   MODAL (clean + polished)
   =========================== */

.stage-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(1px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 9999;
}
.stage-modal.is-open{ display:flex; }

body.stage-modal-open{ overflow: hidden; }

/* Окно */
.stage-modal__dialog{
  width: min(680px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  padding: 18px 18px 16px;
  position: relative;

  /* чтобы на маленьких экранах не вылезало */
  max-height: calc(100vh - 44px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Крестик */
.stage-modal__close{
  position:absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.stage-modal__close:hover{ background:#f3f4f6; }

/* Заголовки */
.stage-modal__title{
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.15;
}
.stage-modal__subtitle{
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.4;
}

/* Форма */
.stage-modal__form{
  display:flex;
  flex-direction: column;
  gap: 12px;
}

/* Поля */
.stage-field__label{
  display:block;
  font-size: 12px;
  font-weight: 800;
  color: #111;
  margin-bottom: 6px;
}
.stage-field__label b{ color:#ef4444; }

.stage-field input,
.stage-field textarea{
  width: 100%;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  padding: 11px 12px;
  outline: none;
  font-size: 14px;
  line-height: 1.3;
  background: #fff;
}

.stage-field input{
  min-height: 42px;
}

.stage-field textarea{
  resize: vertical;
  min-height: 96px;
}

.stage-field textarea[name="stage_params"]{
  min-height: 74px;
}

.stage-field input:focus,
.stage-field textarea:focus{
  border-color: rgba(0,0,0,.35);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

.stage-field__hint{
  display:block;
  margin-top: 6px;
  font-size: 12px;
  color: #9ca3af;
}

/* Сетка 2 колонки */
.stage-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

/* Ошибки/успех */
.stage-modal__error{
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff5f5;
  border: 1px solid rgba(239,68,68,.25);
  color: #b91c1c;
  font-size: 13px;
}
.stage-modal__success{
  padding: 10px 12px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid rgba(34,197,94,.22);
  color: #166534;
  font-size: 13px;
}

/* Кнопки */
.stage-modal__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
}
.stage-modal__actions .stage-btn{
  min-height: 42px;
  padding: 11px 14px;
  border-radius: 12px;
}

/* Футер */
.stage-modal__footer{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.06);
  font-size: 13px;
  color: #6b7280;
}

/* ===== Responsive ===== */
@media (max-width: 860px){
  .stage-landing__grid{ grid-template-columns: 1fr; }
  .stage-offer__box{ grid-template-columns: 1fr; }
  .stage-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .stage-modal{ padding: 12px; }
  .stage-modal__dialog{
    padding: 16px 14px 14px;
    border-radius: 16px;
    max-height: calc(100vh - 24px);
  }
  .stage-modal__actions{
    flex-direction: column;
    align-items: stretch;
  }
}
/* =========================================
   STAGE MODAL — как в корзине (без "уезда")
   ВСТАВЬ В САМЫЙ КОНЕЦ landing_pages.css
   ========================================= */

/* критично: убираем overflow из-за padding/border */
.stage-modal,
.stage-modal * ,
.stage-modal *::before,
.stage-modal *::after{
  box-sizing: border-box;
}

.stage-modal{
  position: fixed;
  inset: 0;
  display: none;          /* было flex — делаем как в корзине */
  place-items: center;    /* ровное центрирование */
  z-index: 9999;

  background: rgba(12, 12, 14, .55);
  backdrop-filter: saturate(120%) blur(2px);

  padding: 18px;
}

.stage-modal.is-open{ display: grid; }

body.stage-modal-open{
  overflow: hidden;
}

/* Окно */
.stage-modal__dialog{
  position: relative;
  width: min(640px, 94vw);  /* как у cartRequestModal */
  max-height: 90vh;
  overflow: auto;
  overflow-x: hidden;       /* важный фикс */

  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0,0,0,.22);

  padding: 26px 26px 20px;

  -webkit-overflow-scrolling: touch;
}

/* scrollbar аккуратный (не обязателен, но красиво) */
.stage-modal__dialog::-webkit-scrollbar{ width: 10px; }
.stage-modal__dialog::-webkit-scrollbar-thumb{
  background: #e6e8ec;
  border-radius: 8px;
}

/* Крестик как в корзине */
.stage-modal__close{
  position: absolute;
  top: 10px;
  right: 10px;

  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;

  border: 1px solid #e6e8ec;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;

  font-size: 20px;
  line-height: 1;
  color: #555;

  transition: background .12s, border-color .12s, color .12s, transform .08s;
}
.stage-modal__close:hover{
  background: #f7f8fa;
  border-color: #dfe3e8;
  color: #111;
}
.stage-modal__close:active{ transform: scale(.96); }

/* Заголовки */
.stage-modal__title{
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .2px;
}
.stage-modal__subtitle{
  margin: 0 0 14px;
  color: #67738a;
  font-size: 15px;
  line-height: 1.35;
}

/* Форма */
.stage-modal__form{
  display: grid;
  gap: 14px;
}

/* Лейблы */
.stage-field__label{
  display: block;
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 14px;
  color: #222;
}
.stage-field__label b{ color:#ef4444; }

/* Инпуты/текстари */
.stage-field input,
.stage-field textarea{
  width: 100%;
  font: inherit;

  border: 1px solid #e6e8ec;
  border-radius: 12px;
  background: #fff;

  padding: 12px 14px;
  transition: border-color .12s, box-shadow .12s;
}

.stage-field input{
  height: 52px;
}

.stage-field textarea{
  min-height: 120px;
  resize: vertical;
}

/* твой stage_params — чуть ниже */
.stage-field textarea[name="stage_params"]{
  min-height: 96px;
}

.stage-field input:focus,
.stage-field textarea:focus{
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 4px rgba(17, 17, 17, .07);
}

.stage-field__hint{
  margin-top: 6px;
  font-size: 12px;
  color: #7b8598;
}

/* Сетка 2 колонки — обязательно minmax(0,1fr), иначе может распирать */
.stage-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Кнопки снизу */
.stage-modal__actions{
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
  flex-wrap: wrap;
}

.stage-modal__actions .stage-btn{
  height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 700;
}

/* Футер */
.stage-modal__footer{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.06);
  font-size: 13px;
  color: #6b7280;
}

/* Mobile */
@media (max-width: 480px){
  .stage-modal{ padding: 12px; }
  .stage-modal__dialog{ padding: 18px 16px 14px; }
  .stage-grid{ grid-template-columns: 1fr; }
  .stage-modal__actions{
    flex-direction: column;
    align-items: stretch;
  }
}
