/* ===== Фото-шаблоны ===== */
.pr-page {
  position: relative;
  padding-bottom: 56px;
}
.pr-page [hidden],
/* Модалки лежат вне .pr-page, а внутри них наши display:flex/block
   перебивают браузерный [hidden]. Гасим явно. */
.pr-modal[hidden],
.pr-modal [hidden] {
  display: none !important;
}
.pr-page::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -40px;
  width: min(980px, 100vw);
  height: 460px;
  transform: translateX(-50%);
  background:
    radial-gradient(45% 55% at 50% 25%, rgba(226, 112, 112, 0.16), transparent 72%),
    radial-gradient(35% 40% at 78% 10%, rgba(112, 138, 226, 0.08), transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.pr-page > .container {
  position: relative;
  z-index: 1;
}

/* ---------- шапка ---------- */
.pr-head {
  position: relative;
  text-align: center;
  margin: 38px auto 24px;
  max-width: 760px;
}
.pr-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(226, 112, 112, 0.38);
  background: linear-gradient(180deg, rgba(226, 112, 112, 0.16), rgba(226, 112, 112, 0.06));
  color: #F09B9B;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 8px 26px -18px rgba(226, 112, 112, 0.9);
}
.pr-badge svg {
  width: 15px;
  height: 15px;
}
.pr-head h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.7em, 2.5vw, 2.4em);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-top: 16px;
  text-wrap: balance;
}
.pr-highlight {
  color: #E27070;
  background: linear-gradient(90deg, #F4A6A6, #E27070 55%, #C85C5C);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pr-head p {
  color: #9A9797;
  font-size: 0.98em;
  line-height: 1.6;
  max-width: 610px;
  margin: 12px auto 0;
}
.pr-head__stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.pr-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid #2D2D2D;
  background: rgba(37, 37, 37, 0.7);
  color: #8E8B8B;
  font-size: 0.76em;
  font-weight: 500;
}
.pr-stat b {
  color: #FFF;
  font-weight: 700;
}

/* ---------- панель над галереей ---------- */
.pr-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 auto 16px;
}
.pr-balance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  background: #232323;
  border: 1px solid #303030;
  color: #A6A3A3;
  font-size: 0.84em;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.pr-balance:hover {
  border-color: rgba(226, 112, 112, 0.6);
  color: #FFF;
}
.pr-balance img {
  width: 17px;
  height: 17px;
}
.pr-balance b {
  color: #FFF;
  font-size: 1.06em;
}
.pr-balance__plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 2px;
  border-radius: 50%;
  background: rgba(226, 112, 112, 0.16);
  color: #E27070;
  font-weight: 700;
  line-height: 1;
}
.pr-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #E27070;
  font-size: 0.86em;
  font-weight: 600;
}
.pr-link svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}
.pr-link:hover svg {
  transform: translateX(3px);
}

.pr-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 auto 16px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(226, 112, 112, 0.4);
  background: rgba(226, 112, 112, 0.1);
  color: #F3C6E4;
  font-size: 0.9em;
  font-weight: 500;
  line-height: 1.45;
}
.pr-alert--compact {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
}
.pr-alert__icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: #E27070;
}

/* ---------- фильтры ---------- */
.pr-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 auto 18px;
}
.pr-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid #2F2F2F;
  background: #232323;
  color: #A6A3A3;
  font-size: 0.84em;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.pr-chip span {
  color: #777474;
  font-size: 0.86em;
}
.pr-chip:hover {
  border-color: rgba(226, 112, 112, 0.55);
  color: #FFF;
}
.pr-chip_active {
  border-color: rgba(226, 112, 112, 0.9);
  background: linear-gradient(180deg, rgba(226, 112, 112, 0.2), rgba(226, 112, 112, 0.1));
  color: #FFF;
}
.pr-chip_active span {
  color: #F09B9B;
}

/* ---------- сетка ---------- */
.pr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
@media (min-width: 640px) {
  .pr-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (min-width: 960px) {
  .pr-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .pr-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
  }
}

.pr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: #202020;
  border: 1px solid #2E2E2E;
  border-radius: 18px;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.pr-card:hover,
.pr-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(226, 112, 112, 0.6);
  box-shadow: 0 22px 46px -24px rgba(226, 112, 112, 0.55), 0 16px 34px rgba(0, 0, 0, 0.42);
}
.pr-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(226, 112, 112, 0.12), transparent 65%),
    #1B1B1B;
}
.pr-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(15, 15, 15, 0.5));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.pr-card:hover .pr-card__media::after {
  opacity: 1;
}
.pr-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.pr-card:hover .pr-card__media img {
  transform: scale(1.05);
}
.pr-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
}
.pr-card__emoji {
  font-size: 2.6em;
  line-height: 1;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}
.pr-card__placeholder-text {
  color: #D7D4D4;
  font-size: 0.86em;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pr-card__tag {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #CFCBCB;
  font-size: 0.64em;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.pr-card__tag--ai {
  color: #F09B9B;
  border-color: rgba(226, 112, 112, 0.45);
  background: rgba(40, 20, 34, 0.62);
}
.pr-card__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px 13px;
}
.pr-card__info-text {
  display: block;
  min-width: 0;
}
.pr-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.86em;
  font-weight: 600;
  line-height: 1.28;
  color: #FFF;
}
.pr-card__desc {
  display: block;
  margin-top: 2px;
  color: #858181;
  font-size: 0.7em;
  line-height: 1.3;
}
.pr-card__price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(226, 178, 112, 0.1);
  color: #E7BC7C;
  font-size: 0.78em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pr-card__price img {
  width: 13px;
  height: 13px;
}

/* ---------- карточка «Свой промт» ---------- */
.pr-card--custom {
  border: 1px dashed rgba(226, 112, 112, 0.6);
  background:
    linear-gradient(160deg, rgba(226, 112, 112, 0.14), rgba(32, 27, 31, 0.9) 55%),
    #201C1F;
}
.pr-card--custom .pr-card__media {
  background:
    radial-gradient(80% 70% at 50% 25%, rgba(226, 112, 112, 0.28), transparent 70%),
    transparent;
}
.pr-card--custom .pr-card__media::after {
  display: none;
}
.pr-card--custom .pr-card__placeholder {
  gap: 6px;
}
.pr-card--custom .pr-card__placeholder::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(226, 112, 112, 0.3);
  border-radius: 14px;
  pointer-events: none;
}
.pr-card--custom .pr-card__emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 2px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.2), transparent 60%),
    rgba(226, 112, 112, 0.2);
  border: 1px solid rgba(226, 112, 112, 0.45);
  font-size: 1.75em;
  box-shadow: 0 12px 30px -14px rgba(226, 112, 112, 0.9);
}
.pr-card__placeholder-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(226, 112, 112, 0.35);
  background: rgba(226, 112, 112, 0.1);
  color: #F09B9B;
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
}
.pr-card--custom .pr-card__price {
  background: rgba(226, 112, 112, 0.14);
  color: #F09B9B;
}

/* На телефоне «Свой промт» — широкий баннер, а не пустая плитка. */
@media (max-width: 639px) {
  .pr-card--custom {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
  }
  .pr-card--custom .pr-card__media {
    flex: 0 0 44%;
    width: 44%;
    aspect-ratio: auto;
    min-height: 138px;
  }
  .pr-card--custom .pr-card__placeholder {
    padding: 12px;
  }
  .pr-card--custom .pr-card__placeholder::before {
    inset: 10px;
  }
  .pr-card--custom .pr-card__emoji {
    width: 46px;
    height: 46px;
    font-size: 1.3em;
  }
  .pr-card--custom .pr-card__tag {
    display: none;
  }
  .pr-card--custom .pr-card__info {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
  }
  .pr-card--custom .pr-card__title {
    font-size: 1em;
  }
  .pr-card--custom .pr-card__desc {
    font-size: 0.78em;
  }
}

.pr-empty-filter {
  padding: 28px 0 10px;
  text-align: center;
  color: #8A8787;
  font-size: 0.92em;
}
.pr-empty {
  max-width: 520px;
  margin: 20px auto 28px;
  padding: 34px 24px;
  text-align: center;
  background: #232323;
  border: 1px solid #2F2F2F;
  border-radius: 20px;
}
.pr-empty__icon {
  font-size: 2.8em;
}
.pr-empty h2 {
  margin-top: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 1.25em;
  font-weight: 700;
}
.pr-empty p {
  margin: 8px 0 18px;
  color: #8A8787;
  font-size: 0.9em;
  line-height: 1.5;
}

/* ---------- «как это работает» ---------- */
.pr-how {
  display: flex;
  justify-content: center;
  gap: 10px 26px;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 4px auto 0;
  padding: 15px 20px;
  border: 1px solid #2B2B2B;
  border-radius: 16px;
  background: rgba(35, 35, 35, 0.6);
  color: #8A8787;
  font-size: 0.84em;
}
.pr-how__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pr-how__item b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: rgba(226, 112, 112, 0.14);
  border: 1px solid rgba(226, 112, 112, 0.28);
  color: #F09B9B;
  font-size: 0.8em;
}

/* ---------- кнопки ---------- */
.pr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 13px;
  font-size: 0.92em;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.pr-btn svg {
  width: 18px;
  height: 18px;
}
.pr-btn--primary {
  background: linear-gradient(180deg, #EF8B8B, #E27070);
  color: #241010;
  box-shadow: 0 14px 30px -16px rgba(226, 112, 112, 0.9);
}
.pr-btn--primary:hover {
  background: linear-gradient(180deg, #F5A2A2, #E87A7A);
  transform: translateY(-1px);
}
.pr-btn--primary:disabled {
  background: #302A2E;
  border: 1px solid #3A3338;
  color: #857A7A;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.pr-btn--ghost {
  border: 1px solid #3A3A3A;
  color: #D9D6D6;
}
.pr-btn--ghost:hover {
  border-color: rgba(226, 112, 112, 0.6);
  color: #FFF;
}

/* ---------- модальное окно ---------- */
.pr-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.pr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pr-modal__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  width: min(900px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #1F1F1F;
  border: 1px solid #343434;
  border-radius: 22px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65);
}
@media (min-width: 760px) {
  .pr-modal__panel {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }
}
.pr-modal__close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(16, 16, 16, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFF;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.pr-modal__close:hover {
  background: rgba(226, 112, 112, 0.22);
  border-color: rgba(226, 112, 112, 0.55);
}
.pr-modal__close svg {
  width: 17px;
  height: 17px;
}
.pr-modal__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(226, 112, 112, 0.16), transparent 65%),
    #181818;
}
.pr-modal__media img {
  width: 100%;
  height: 100%;
  max-height: 600px;
  object-fit: cover;
}
.pr-modal__media-placeholder {
  font-size: 4em;
}
.pr-modal__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 22px 24px;
}
@media (min-width: 760px) {
  .pr-modal__body {
    padding: 30px 28px 28px;
  }
}
.pr-modal__mode {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  margin-bottom: 11px;
  border-radius: 999px;
  border: 1px solid rgba(226, 112, 112, 0.4);
  background: rgba(226, 112, 112, 0.08);
  color: #F09B9B;
  font-size: 0.66em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pr-modal__title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.pr-modal__hint {
  margin-top: 8px;
  color: #928E8E;
  font-size: 0.87em;
  line-height: 1.5;
}

/* ---------- свой промт ---------- */
.pr-modal__panel--custom {
  width: min(660px, 100%);
  grid-template-columns: 1fr;
}
.pr-modal__panel--custom .pr-modal__media {
  display: none;
}
.pr-modal__panel--custom .pr-modal__body {
  position: relative;
  padding: 30px 26px 28px;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(226, 112, 112, 0.13), transparent 68%),
    #1F1F1F;
}
.pr-modal__panel--custom .pr-modal__title {
  font-size: 1.7em;
}
.pr-custom {
  margin: 16px 0 4px;
}
.pr-custom__label {
  display: block;
  margin-bottom: 7px;
  color: #D9D6D6;
  font-size: 0.8em;
  font-weight: 600;
}
.pr-custom__input {
  width: 100%;
  min-height: 106px;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid #383838;
  background: #242424;
  color: #FFF;
  font-size: 0.9em;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pr-custom__input::placeholder {
  color: #6E6B6B;
}
.pr-custom__input:focus {
  border-color: rgba(226, 112, 112, 0.8);
  box-shadow: 0 0 0 3px rgba(226, 112, 112, 0.12);
  outline: none;
}
.pr-custom__row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.pr-custom__row .pr-custom__label {
  margin: 0;
  flex: 0 0 auto;
}
.pr-custom__select {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #383838;
  background: #242424;
  color: #FFF;
  font-size: 0.82em;
}
.pr-custom__counter {
  flex: 0 0 auto;
  color: #7E7A7A;
  font-size: 0.72em;
  font-variant-numeric: tabular-nums;
}
.pr-custom__examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}
.pr-custom__chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #383838;
  background: #262626;
  color: #B0ACAC;
  font-size: 0.76em;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.pr-custom__chip:hover {
  border-color: rgba(226, 112, 112, 0.6);
  background: rgba(226, 112, 112, 0.1);
  color: #FFF;
}

/* ---------- загрузка фото ---------- */
.pr-upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 168px;
  margin: 16px 0;
  padding: 16px;
  border: 1.5px dashed #3A3A3A;
  border-radius: 15px;
  background:
    radial-gradient(100% 90% at 50% 0%, rgba(226, 112, 112, 0.06), transparent 70%),
    #242424;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.pr-upload:hover,
.pr-upload:focus-within {
  border-color: rgba(226, 112, 112, 0.7);
  background: #282328;
}
.pr-upload_drag {
  border-color: #E27070;
  background: rgba(226, 112, 112, 0.1);
}
.pr-upload_filled {
  border-style: solid;
  border-color: rgba(226, 112, 112, 0.5);
  background: #242424;
}
.pr-upload__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  color: #8A8787;
}
.pr-upload__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: rgba(226, 112, 112, 0.12);
  border: 1px solid rgba(226, 112, 112, 0.28);
  color: #F09B9B;
}
.pr-upload__icon svg {
  width: 22px;
  height: 22px;
}
.pr-upload__title {
  color: #FFF;
  font-size: 0.95em;
  font-weight: 600;
}
.pr-upload__hint {
  font-size: 0.75em;
  color: #858181;
}
.pr-upload__note {
  margin-top: 2px;
  color: #C58B8B;
  font-size: 0.72em;
}
.pr-upload__cta {
  margin-top: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(226, 112, 112, 0.14);
  border: 1px solid rgba(226, 112, 112, 0.3);
  color: #F09B9B;
  font-size: 0.8em;
  font-weight: 600;
}
.pr-upload__filled {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
}
.pr-upload__filled img {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #3A3A3A;
}
.pr-upload__file {
  flex: 1 1 auto;
  min-width: 0;
  color: #D9D6D6;
  font-size: 0.84em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pr-upload__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid #3A3A3A;
  color: #B9B6B6;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.pr-upload__remove:hover {
  color: #FFF;
  background: rgba(226, 112, 112, 0.22);
  border-color: rgba(226, 112, 112, 0.5);
}
.pr-upload__remove svg {
  width: 15px;
  height: 15px;
}

.pr-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.pr-submit {
  width: 100%;
  min-height: 50px;
  justify-content: center;
  position: relative;
  font-size: 0.98em;
}
.pr-submit__price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(20, 12, 16, 0.2);
  font-size: 0.88em;
}
.pr-submit__price img {
  width: 14px;
  height: 14px;
}
.pr-submit__spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(36, 16, 25, 0.3);
  border-top-color: #241010;
  animation: pr-spin 0.7s linear infinite;
}
@keyframes pr-spin {
  to {
    transform: rotate(360deg);
  }
}
.pr-modal__note {
  color: #7E7A7A;
  font-size: 0.74em;
  line-height: 1.45;
  text-align: center;
}
.pr-modal_loading .pr-upload {
  pointer-events: none;
  opacity: 0.5;
}
.pr-modal_loading .pr-modal__note {
  color: #F09B9B;
}

/* ---------- результат ---------- */
.pr-modal__panel--result {
  width: min(620px, 100%);
  grid-template-columns: 1fr;
}
.pr-result__media {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 62vh;
  overflow: hidden;
  background: #161616;
}
.pr-result__media img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
}
.pr-result__body {
  padding: 22px 22px 24px;
  text-align: center;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(226, 112, 112, 0.12), transparent 70%),
    #1F1F1F;
}
.pr-result__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.pr-result__actions .pr-btn--primary {
  grid-column: 1 / -1;
}

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

@media (max-width: 520px) {
  .pr-head {
    margin-top: 24px;
  }
  .pr-head h1 {
    font-size: 1.55em;
  }
  .pr-head__stats {
    gap: 6px;
  }
  .pr-stat {
    font-size: 0.7em;
    padding: 5px 10px;
  }
  .pr-toolbar {
    margin-top: 4px;
  }
  .pr-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pr-filters::-webkit-scrollbar {
    display: none;
  }
  .pr-chip {
    flex: 0 0 auto;
  }
  .pr-modal {
    padding: 0;
    align-items: flex-end;
  }
  .pr-modal__panel {
    width: 100%;
    max-height: 94vh;
    border-radius: 22px 22px 0 0;
  }
  .pr-modal__media {
    min-height: 180px;
    max-height: 32vh;
  }
  .pr-modal__body,
  .pr-modal__panel--custom .pr-modal__body {
    padding: 20px 16px 22px;
  }
  .pr-modal__panel--custom .pr-modal__title {
    font-size: 1.4em;
  }
  .pr-custom__row {
    flex-wrap: wrap;
  }
  .pr-custom__select {
    flex: 1 1 140px;
  }
  .pr-how {
    gap: 8px 16px;
    padding: 13px 14px;
    font-size: 0.78em;
  }
}
