body {
  font-family: "Inter", sans-serif;

  /* fix WBE70 */
  padding: unset !important;
  overflow: auto !important;
}

.btn.disabled {
  opacity: 1;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: url(../images/bg.jpg) center/cover no-repeat;
}

.site {
  flex-grow: 1;
  padding-top: 90px;
}

.list-unstyled a {
  color: #56CCF2;
}

.navbar-brand img:nth-child(2) {
  display: none;
}

.footer-logo img:nth-child(2) {
  display: none;
}

.main-section:not(.main-section-alt) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 88px);
  box-sizing: border-box;
}

.main-section:not(.main-section-alt).main-section-top {
  justify-content: flex-start;
}

.main-section.main-section-alt2 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: calc(100vh - 88px);
  box-sizing: border-box;
}

.main-section-centered {
  display: flex;
  justify-content: center;
  text-align: center;
}

.main-content-wrapper {
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.main-content-wrapper .main-section {
  flex-grow: 1;
}

.main-content-wrapper.main-content-wrapper-top {
  height: auto;
}

.header {
  background-color: rgba(255, 255, 255, 0.6);
}

.header .navbar {
  border-bottom: 1px solid #E5E5E7;
}

.btn-header {
  gap: 8px;
  border: 1px solid #990694;
  border-radius: 16px;
  font-size: 16px;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  padding-left: 24px;
  padding-right: 24px;
  color: #990694;
}

.btn-header:hover {
  color: #990694;
}

.navbar-toggler {
  border-radius: 16px;
  width: 56px;
  height: 56px;
  background: linear-gradient(to bottom, #3D87E3, #990694);
  color: #F9F9F9;
  border: none;
}

.image-compare {
  border-radius: 24px;
}

.image-compare .icv__label,
.preview-full .icv__label {
  bottom: auto;
  top: 1rem;
  font-size: 12px;
  font-weight: 600;
  background-color: rgba(7, 10, 18, 0.88);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 4px 10px;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}

.preview-full .icv__label {
  position: absolute;
  z-index: 9;
  left: 1rem;
}

/* Общий desktop-контракт плашек Index; мобильный вариант сохраняет свои размеры. */
@media (min-width: 768px) {
  .image-compare .icv__label {
    top: 10px;
    width: 92px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font: 400 16px/26px Inter, sans-serif;
    color: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgb(0 0 0 / 25%);
    border: 1px solid rgb(255 255 255 / 80%);
    box-shadow: none;
    text-shadow: none;
  }
}

.preview-full .preview-zoom-item {
  position: relative;
}

.image-compare:not(.icv) {
  position: relative;
  display: flex;
  overflow: hidden;
  aspect-ratio: 1696 / 920;
}

.image-examples {
  margin-top: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.image-examples-label {
  flex-shrink: 0;
}

.image-examples-list {
  display: flex;
  gap: 2px;
  flex-grow: 1;
}

.image-examples-item {
  flex-basis: calc((100% - 8px) / 5);
}

.image-examples-image {
  position: relative;
  padding-bottom: 100%;
}

.image-examples-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  border-radius: 8px;
}

.footer {
  background-color: rgba(255, 255, 255, 0.75);
  padding-top: 50px;
}

.footer-bottom {
  border-top: 1px solid #323539;
  font-size: 12px;
  color: #979AA0;
}

/* Платёжный бейдж общий для обычного и auth-подвала; на tablet уже колонки. */
.footer-main img[src$="/images/payment.svg"] {
  max-width: 100%;
  height: auto;
}

.footer-main ul {
  font-size: 14px;
}

.footer-main p {
  font-size: 14px;
}

.footer-main a {
  color: currentColor;
}

.image-loading img {
  max-width: 100%;
}

.dz-preview {
  display: none !important;
}

.image-loading img {
  border-radius: 24px;
}

.image-loading-progress {
  position: relative;
}

.image-loading-progress::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;

  background-image: var(--source);
  filter: blur(15px) brightness(0.7);
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
}
.image-loading-progress img {
  position: relative;
  z-index: 1;
}

.image-loading-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.image-loading-icon img.sandglass {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  -o-object-fit: contain;
     object-fit: contain;
}

.image-loading-icon img.spinner {
  width: 140px;
  height: 140px;
  -o-object-fit: contain;
     object-fit: contain;
}
.image-loading-icon img.spinner-opt {
  width: 140px;
  height: 140px;
  object-fit: contain;

  animation: gpu-spin 0.8s steps(16, end) infinite;
  will-change: transform;
}

@keyframes gpu-spin {
  to {
    transform: rotate(360deg);
  }
}

.image-loading-progress:has(.image-loading-error)::before {
  background-color: rgba(0, 0, 0, 0.7);
}

.image-loading-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 400px;
  width: 100%;
  padding: 16px;
  box-sizing: border-box;
  text-align: center;
  z-index: 4;
}

.image-loading-error-icon {
  margin-bottom: 8px;
}

.image-loading-error-icon img {
  width: 64px;
  height: 64px;
  -o-object-fit: contain;
     object-fit: contain;
}

.image-loading-error-title {
  font-size: 24px;
}

.image-loading-error-text {
  font-size: 14px;
  margin-top: 10px;
  color: rgb(151, 154, 160);
}


.badge {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 400;
  padding: 0.7em 1em;
  border-radius: 16px;
}

.badge.badge-success {
  background-color: #2EBF43;
}

.preview-zoom-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-zoom-image {
  position: relative;
  padding-bottom: 48%;
  overflow: hidden;
  border-radius: 24px;
}

.preview-zoom-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.preview-full-image {
  position: relative;
  padding-bottom: 70%;
  overflow: hidden;
  border-radius: 24px;
}

.preview-full-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.preview-full-handle {
  position: absolute;
  z-index: 2;
  top: calc(50% - (97px / 2));
  left: calc(50% - (212px / 2));
  background-color: rgba(15, 15, 15, 0.4);
  border-radius: 16px;
  border: 1px solid #323539;
  width: 212px;
  height: 97px;
  color: #fff;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid white;
}

.preview-full-handle svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transform: translateY(-10px);
}

.containment-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.img-zoom-lens {
  position: absolute;
  border: 1px solid #d4d4d4;
  /*set the size of the lens:*/
  width: 40px;
  height: 40px;
  z-index: 20;
}

.button-gradient {
  background: #728490 linear-gradient(to bottom, #3D87E3, #990694);
  border-radius: 16px;
  height: 48px;
  gap: 6px;
  padding-left: 24px;
  padding-right: 24px;
  justify-content: center;
  color: #fff;
  border: none;
  outline: none;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
}

.button-gradient.disabled {
  background-image: none;
}

.button-outline {
  display: inline-flex;
  outline: none;
  display: inline-flex;
  align-items: center;
  border: 1px solid #000;
  padding-left: 24px;
  padding-right: 24px;
  border-radius: 16px;
  height: 48px;
  gap: 6px;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.19);
  color: #000;
}

.button-outline.bg-transparent {
  background: transparent;
}

.button-outline.btn.border-none {
  border: none;
  color: #979AA0;
}

.button-success {
  height: 48px;
  display: inline-flex;
  align-items: center;
  border-radius: 16px;
  gap: 8px;
  padding-left: 24px;
  padding-right: 24px;
  background-color: #2EBF43;
  color: #fff;
}

.button-danger {
  height: 48px;
  display: inline-flex;
  align-items: center;
  border-radius: 16px;
  gap: 8px;
  padding-left: 24px;
  padding-right: 24px;
  background-color: #E33B32;
  color: #fff;
}

.button-danger.btn.bg-transparent {
  background: transparent;
  color: #E33B32;
}

#v-pills-tariff .dashboard-message ul {
  color: #fff;
}

.dashboard-message-gift {
  text-align: center;
}

.dashboard-message-gift-image img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  border-radius: 16px;
}

.dashboard-message-title {
  font-size: 36px;
  font-weight: 600;
}

.dashboard-message-text {
  font-size: 24px;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 60;
}

.header .navbar-collapse {
  background-color: rgba(255, 255, 255, 0.6);
}

.header-navbar {
  max-width: 448px;
  margin-left: auto;
  padding-top: 8px;
  padding-bottom: 24px;
}

.header-navbar .nav-link {
  color: currentColor;
  transition: 0.2s;
  background-color: transparent !important;
}

.header-navbar .nav-link span {
  flex-grow: 1;
}

.header-navbar .nav-link svg {
  flex-shrink: 0;
}

.header-navbar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.6) !important;
  color: #871EA3;
}

.navbar-toggler .navbar-toggler-icon {
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-width='2'  d='M6 6L24 23.9999M6 24L24 6.00015'/%3e%3c/svg%3e");
}

.theme-dark .link-icon {
  color: currentColor;
}

.link-icon {
  font-size: 14px;
  color: #990694;
  display: flex;
  align-items: center;
  gap: 6px;
}

.link-icon svg {
  width: 16px;
  height: 16px;
}

.dashboard .tab-content {
  height: 100%;
}

.dashboard .tab-pane {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  border: 1px solid #E5E5E7;
  height: 100%;
}

.dashboard-nav {
  text-align: left;
}

.dashboard-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.6);
}

.dashboard-nav .nav-link img {
  flex-shrink: 0;
}

.dashboard-nav .nav-link.border {
  border-color: #E5E5E7 !important;
}

.dashboard-nav .nav-link.rounded {
  border-radius: 16px !important;
}

.dashboard-nav .nav-link.active {
  color: #000;
  border: 1px solid #990694 !important;
  background: rgba(255, 255, 255, 0.6);
}

.dashboard-message {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.dashboard-message-content {
  text-align: center;
  max-width: 553px;
}

.dashboard-message-content ul {
  color: #979AA0;
}

.dashboard-message-checkbox {
  margin-top: 24px;
}

.dashboard-message-checkbox label {
  display: inline-flex;
  gap: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.dashboard-message-checkbox label input {
  flex-shrink: 0;
}

.dashboard-message-checkbox label span {
  color: #979AA0;
}

.dashboard-message-buttons {
  margin-top: 24px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-pane .h2 {
  font-size: 28px;
}

.tab-pane .h3 {
  font-size: 22px;
  margin-top: 24px;
}

.profile-tab-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.profile-tab-content-top {
  flex-grow: 1;
}

.profile-tab-content-bottom {
  flex-shrink: 0;
}

.list-grey {
  padding-left: 20px;
  color: #979AA0;
  font-size: 14px;
}

.dashboard-upload-placeholder {
  border: #323539;
  background-color: rgba(0, 0, 0, 0.5);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 87px;
  box-sizing: border-box;
  border-radius: 24px;
  border: 1px solid #323539;
}

.dashboard-upload-placeholder-text {
  margin-bottom: 40px;
  font-size: 22px;
  font-weight: 600;
}

.dashboard-upload-placeholder-image img {
  max-width: 382px;
  width: 100%;
  opacity: 0.5;
  height: auto;
}

/* api#419: светлая камера без чёрной подложки; тёмная тема сохраняет исходный вид. */
body:not(.theme-dark) .dashboard-upload-placeholder {
  background-color: rgba(255, 255, 255, 0.6);
  border-color: #E5E5E7;
}
.dashboard-upload-placeholder-image .dashboard-placeholder-light { display: none; }
body:not(.theme-dark) .dashboard-upload-placeholder-image .dashboard-placeholder-dark { display: none; }
body:not(.theme-dark) .dashboard-upload-placeholder-image .dashboard-placeholder-light { display: inline; opacity: 1; }

.profile {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.profile-item {
  flex-basis: calc((100% - 24px) / 2);
  padding: 24px 16px;
  box-sizing: border-box;
  border: 1px solid #E5E5E7;
  border-radius: 16px;
  display: flex;
  gap: 24px;
}

.profile-item.profile-item-success {
  border-color: #2EBF43;
}

.profile-item.profile-item-success .profile-message {
  color: #2EBF43;
}

.profile-item.profile-item-alert {
  border-color: #E33B32;
}

.profile-item.profile-item-alert .profile-message {
  color: #E33B32;
}

.profile-item.profile-item-neutral {
  border-color: #E5E5E7;
}

.profile-item.profile-item-neutral .profile-message {
  color: inherit;
}

.profile-icon {
  flex-shrink: 0;
}

.profile-icon img {
  width: 56px;
  height: 56px;
  display: block;
}

/* Длинные значения сжимаются внутри flex-строк и переносятся целиком, без обрезки. */
.profile-content,
.balance-stats-col {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-label {
  font-size: 16px;
  color: #979AA0;
}

.profile-value {
  font-size: 20px;
  font-weight: 500;
  margin-top: 4px;
}

.profile-message {
  margin-top: 16px;
  line-height: 1.5;
}

.profile-note {
  margin-top: 16px;
  line-height: 1.5;
}

.message {
  max-width: 400px;
  width: 100%;
}

.message-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  color: #2EBF43;
}

.message-icon img {
  width: 80px;
  height: 80px;
  -o-object-fit: contain;
     object-fit: contain;
}

.message-icon svg {
  width: 80px;
  height: 80px;
}

.message-icon.error {
  color: #E33B32;
}

.message-title {
  font-size: 28px;
  font-weight: 600;
}

.message-text {
  font-size: 18px;
  margin-top: 12px;
}

.message-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.message-buttons .btn {
  height: 56px;
  display: inline-flex;
  align-items: center;
  border-radius: 16px;
  gap: 8px;
  padding-left: 24px;
  padding-right: 24px;
}

/* Один контракт кнопок двух шагов Sign-in, высота как у загрузки на главной. */
.sign-in-message .message-buttons .sign-in-action {
  width: 320px;
  max-width: 100%;
  height: 48px;
  flex: 0 1 320px;
  box-sizing: border-box;
  justify-content: center;
  white-space: nowrap;
  gap: 10px;
  padding: 0 20px;
}

.sign-in-action.has-timer #resend-button-label {
  flex: 1;
  text-align: center;
}

.sign-in-action-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 6px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.sign-in-action-timer[hidden] {
  display: none;
}

.sign-in-action-timer svg {
  flex-shrink: 0;
}

/* api#291: резерв под пять точек сохраняет положение слова во всех фазах. */
.sign-in-message .sign-in-sending-dots {
  display: inline-block;
  width: 1.5em;
  text-align: left;
}

@media (max-width: 767.98px) {
  .sign-in-message .message-title {
    font-size: 21px;
  }

  .sign-in-message .sign-in-title-part {
    display: inline-block;
    white-space: nowrap;
  }

  .sign-in-message .support-resend-notice {
    font-size: 13px;
    line-height: 1.5;
  }
}

@media (max-width: 380px) {
  .sign-in-message .message-buttons .sign-in-action {
    padding: 0 12px;
    font-size: 14px;
    gap: 7px;
  }
  .sign-in-action-timer {
    padding-left: 8px;
  }
}

.message-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  margin-top: 24px;
}

.message-list a {
  display: inline-flex;
  gap: 10px;
  color: currentColor;
  text-align: none;
}

.message-form {
  margin-top: 24px;
}

.message-form .form-control {
  background-color: #F8F9FB;
  color: #000;
  border-color: #E5E5E7;
  height: 56px;
  box-sizing: border-box;
  border-radius: 16px;
}

.message-form .input-group-text {
  background-color: #F8F9FB;
  color: #000;
  border-color: #E5E5E7;
  border-radius: 16px;
}

.message-form .custom-select {
  background-color: #F8F9FB;
  color: #000;
  border-color: #E5E5E7;
  height: 56px;
  box-sizing: border-box;
  border-radius: 16px;
}

.message-form .dashboard-message-checkbox {
  text-align: left;
}

.message-form textarea.form-control {
  padding: 16px;
  padding-left: 62px;
  min-height: 216px;
}

.message-form .textarea-icon {
  position: relative;
}

/* Общий контракт только двух форм поддержки, без изменения остальных .message. */
.support-page .support-form {
  max-width: 470px;
}

.support-page .support-success {
  max-width: 800px;
}

.support-page .message-title {
  font-family: "Inter", sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 42px;
  margin: 0;
}

.support-page .message-text {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
}

.theme-dark .support-page .message-text {
  color: #F9F9F9;
}

.support-page .message-form textarea.form-control {
  padding: 16px;
  height: auto;
  min-height: 196px;
  max-height: none;
  line-height: 27px;
  resize: none;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.support-page .message-buttons .btn {
  height: 48px;
  max-width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

.support-page .support-positive-action {
  background: #3D87E3;
  border-color: #3D87E3;
  color: #fff;
}

.support-page .support-positive-action:hover {
  background: #2c74cc;
  border-color: #2c74cc;
  color: #fff;
}

.support-page .support-submit-error {
  margin-top: 16px;
  text-align: left;
  color: #E33B32;
}

@media (max-width: 767.98px) {
  .support-page .message-text {
    font-size: 16px;
    line-height: 24px;
  }
}

.message-form .textarea-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  position: absolute;
  left: 14px;
  top: 16px;
  background: url(../fonts/message.svg) center/contain no-repeat;
  display: block;
  z-index: 4;
}

.message-form .is-invalid.input-group .form-control {
  background-image: none;
  border-color: #dc3545 !important;
}

.message-form .is-invalid.input-group .input-group-text {
  border-color: #dc3545 !important;
}

.message-form .invalid-feedback {
  text-align: left;
  font-size: 12px;
  background: #FDDDDC;
  border-radius: 100px;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
}

.message-form .invalid-feedback svg,
.pin-container-invalid svg,
.message-refusal svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.custom-checkbox .custom-control-label::before {
  background-color: transparent !important;
  border-color: #323539 !important;
  border-width: 2px !important;
  box-shadow: none !important;
  outline: none !important;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23000' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e");
}

.message-centered-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 16px;
  padding: 0;
}

.message-valid {
  margin-top: 24px;
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 20px;
  color: #2EBF43;
}

.message-valid svg {
  width: 24px;
  height: 24px;
}

.subscription-text {
  color: #56CCF2;
}

.subscription-card {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.subscription-card-wrapper {
  width: 348px;
  height: 212px;
  position: relative;
}

.subscription-card-wrapper img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.subscription-card-form {
  display: flex;
  align-items: center;
  position: absolute;
  left: 20px;
  bottom: 56px;
}

.subscription-card-input {
  display: flex;
}

.subscription-card-input input {
  width: 18px;
  font-size: 22px;
  background: transparent;
  border: none;
  outline: none;
  text-align: center;
  font-weight: 400;
  height: 35px;
  line-height: 1;
  color: #fff;
}

.subscription-card-input input::-moz-placeholder {
  color: #fff;
}

.subscription-card-input input:-ms-input-placeholder {
  color: #fff;
}

.subscription-card-input input::placeholder {
  color: #fff;
}

.subscription-card-input input:disabled::-moz-placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.subscription-card-input input:disabled:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.subscription-card-input input:disabled::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.subscription-card-input-border {
  border: 1px solid #F7FAFE;
  border-radius: 8px;
}

.subscription-card-input-mr-1 {
  margin-left: 10px;
}

.modal-header {
  border: none;
}

.modal-footer {
  border: none;
}

.modal-payment .modal-content {
  background: #484848 linear-gradient(to bottom, rgba(61, 135, 227, 0.25) 0%, rgba(153, 6, 148, 0.25) 100%);
  color: #fff;
  border-radius: 24px;
}

.payment-modal {
  margin: 0 auto;
  max-width: 300px;
}

.payment-modal-title {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 24px;
}

.payment-modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.payment-modal-list-item:not(:last-child) {
  margin-bottom: 8px;
}

.payment-modal-link {
  background: rgba(11, 11, 16, 0.9);
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  box-sizing: border-box;
  min-height: 62px;
}

.payment-modal-link img {
  width: 30px;
  height: 30px;
  -o-object-fit: cover;
     object-fit: cover;
}

.payment-modal-link:hover {
  color: #fff;
  text-decoration: none;
}

.payment-modal-message {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.payment-modal-message-icon {
  flex-shrink: 0;
}

.payment-modal-message-icon svg {
  width: 24px;
  height: 24px;
}

.payment-modal-message-text {
  font-size: 14px;
  line-height: 1.2;
}

.payment-modal-message-text span {
  margin-top: 8px;
  display: block;
  color: #E5E5E7;
}

.modal-not-enough {
  text-align: center;
}

.modal-not-enough .payment-modal-title {
  line-height: 1.2;
  margin-bottom: 12px;
}

.modal-not-enough .modal-content {
  background: url(../images/modal-bg-2.svg) center/cover no-repeat;
}

.modal-not-enough-info {
  margin-top: 24px;
  display: flex;
  gap: 24px;
  max-width: 264px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.modal-not-enough-info-label.green {
  color: #2AA63C;
}

.modal-not-enough-info-label.red {
  color: #C8322B;
}

.modal-not-enough-info-value {
  font-size: 52px;
  font-weight: 600;
  line-height: 1.2;
}

.modal-button {
  margin-top: 24px;
}

.pin-container {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.pin-container.valid .pin-digit {
  color: #2EBF43;
  border-color: #2EBF43 !important;
}

.pin-container.invalid .pin-digit {
  color: #E33B32;
  border-color: #E33B32 !important;
}

.pin-digit {
  width: 62px;
  height: 56px;
  font-size: 16px;
  text-align: center;
  border: 1px solid #000;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.07);
  color: #000;
}

.pin-digit::-moz-placeholder {
  color: #000;
}

.pin-digit:-ms-input-placeholder {
  color: #000;
}

.pin-digit::placeholder {
  color: #000;
}

.pin-digit:focus {
  border-color: #000;
  outline: none;
}

/* #285: email, PIN и отказ используют один компактный визуальный контракт. */
.message-form .invalid-feedback.sign-in-invalid-feedback,
.pin-container-invalid,
.message-refusal {
  background-color: #FDDDDC;
  color: #EB5757;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  padding: 4px 16px;
  box-sizing: border-box;
  border-radius: 1px;
  margin-top: 12px;
  width: auto;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.gallery-item {
  border: 1px solid #323539;
  box-sizing: border-box;
  border-radius: 24px;
}

.gallery-item-image {
  padding-bottom: 64%;
  position: relative;
  overflow: hidden;
}

.gallery-item-image::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;

  background-color: rgba(0, 0, 0, 0.35); /* Мягкие 35% затемнения */
  background-image: var(--source);
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
}

.gallery-item-image .source {
  position: absolute;
    -o-object-fit: contain;
  object-fit: contain;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  flex-shrink: 0;
}

.gallery-item-content {
  text-align: center;
  padding: 16px;
}

.gallery-item-title {
  color: #979AA0;
  font-size: 14px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-item-info {
  margin-top: 16px;
  text-align: left;
}

.gallery-item-info.collapsed .gallery-item-info-row {
  justify-content: center;
}

.gallery-item-info.collapsed .gallery-item-info-col {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.gallery-item-info.collapsed .gallery-item-info-col .gallery-item-info-item:not(:last-child) {
  margin-bottom: 0;
}

.gallery-item-info.collapsed .gallery-item-info-col-arrow {
  display: none !important;
}

.gallery-item-info.collapsed .gallery-item-info-col-result {
  display: none !important;
}

.gallery-item-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-item-info-col-arrow {
  flex-shrink: 0;
}

.gallery-item-info-col-arrow svg {
  width: 37px;
  height: 24px;
}

.gallery-item-info-item {
  font-size: 14px;
}

.gallery-item-info-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.gallery-item-info-item span {
  color: #979AA0;
}

.gallery-item-info-item:not(:last-child) {
  margin-bottom: 8px;
}

.gallery-item-button {
  position: absolute;
  top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #fff;
  z-index: 10;
  border-radius: 50%;
}

.gallery-item-button.download {
  left: 16px;
}

.gallery-item-button.remove {
  right: 16px;
  color: #E33B32;
}

.gallery-item-button svg {
  width: 24px;
  height: 24px;
}

.gallery-item-progress {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 29px;
  border-top: 1px solid #3D87E3;
  border-bottom: 1px solid #990694;
  background-color: #000;
  overflow: hidden;
}

.gallery-item-progress-bar {
  height: 100%;
  background: linear-gradient(to bottom, #3D87E3 0%, #990694 100%), url(../fonts/progress-bg.svg) left center/27px 100% repeat-x;
  background: url(../fonts/progress-bg.svg) left center/27px 100% repeat-x, linear-gradient(to bottom, #3D87E3 0%, #990694 100%);
  border-radius: 0 100px 100px 0;
}

body:not(.theme-dark) .gallery-item-progress {
  background-color: #f1f2f6;
}

.page-item.active .page-link {
  color: #fff;
  background: #728490 linear-gradient(to bottom, #3D87E3, #990694);
}

.page-item.disabled .page-link {
  background: unset;
}

.page-link {
  padding: 0;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #979AA0;
  border: none;
  background-color: transparent;
  border-radius: 10px;
}

.page-link:hover {
  background-color: transparent;
  color: #979AA0;
}

.dropzone .dropzone-form-inner {
  pointer-events: none;
}

.dropzone-form {
  border-radius: 3px;
  /*background: transparent url(../fonts/dropzone-bg-2.svg) center/contain no-repeat;*/
  background: transparent;
  border: none;
  padding: 20px 20px;
}

.dropzone-form-inner {
  text-align: center;
  padding-top: 76px;
  padding-bottom: 76px;
}

.dropzone-form-icon {
  display: flex;
  justify-content: center;
}

.dropzone-form-icon img {
  max-width: 100%;
  height: auto;
}

.dropzone-form-text {
  font-size: 18px;
  line-height: 1.5;
  margin-top: 18px;
}

.dropzone-form-format {
  margin-top: 24px;
  display: flex;
  color: #979AA0;
  font-size: 12px;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.dropzone-form-format-label {
  color: #2B2D2F;
}

.dropzone-form-format-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dropzone-form-format-item {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid #E5E5E7;
  border-radius: 8px;
  background-color: #F8F9FB;
  color: #596574;
}

.dropzone-form-action {
  margin-top: 24px;
}

/* Пять мест сохраняются и в нулевом кадре анимации загрузки. */
.upload-loading-dots { display: inline-grid; text-align: left; }
.upload-loading-dots::before { content: '.....'; visibility: hidden; grid-area: 1 / 1; }
.upload-loading-dots > span { grid-area: 1 / 1; }

.dropzone-form-button {
  display: inline-flex;
  padding: 0 24px;
  height: 48px;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  border: none;
  box-sizing: border-box;
  background: linear-gradient(to bottom, #3D87E3, #990694);
  color: #fff;
  font-weight: 600;
  border-radius: 16px;
}

.dropzone-form-button:disabled {
  opacity: 0.6;
  cursor: progress;
  filter: grayscale(0.3);
}

.dropzone-form-button svg {
  width: 20px;
  height: 20px;
}

.dz-default {
  display: none;
}

.dropzone-form-loading .dropzone-form-inner {
  pointer-events: auto;
  padding: 86px 16px;
}

.dropzone-form-filename {
  font-size: 16px;
  color: #979AA0;
  margin-top: 10px;
}

.process-scale-note {
  margin-top: 10px;
}

.process-file-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
  margin-top: 24px;
}

.process-file-label {
  flex: 0 0 auto;
}

.process-file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropzone-form-loading-info {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropzone-form-loading-info-item {
  display: flex;
  gap: 8px;
}

.dropzone-form-loading-info-item:not(:last-child) {
  margin-bottom: 8px;
}

.dropzone-form-loading-info-icon {
  flex-shrink: 0;
}

.dropzone-form-loading-info-icon svg {
  width: 24px;
  height: 24px;
}

.dropzone-form-loading-info-text {
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.dropzone-form-loading-info-arrow {
  flex-basis: 54px;
}

.dropzone-form-loading-info-arrow svg {
  width: 37px;
  height: 24px;
}

.dropzone-form-loading-progress {
  margin-top: 24px;
  max-width: 368px;
  margin-left: auto;
  margin-right: auto;
}

.dropzone-form-loading-progress .progress {
  height: 29px;
  border-radius: 100px;
  background-color: transparent;
  border: 1px solid #fff;
  position: relative;
}

.dropzone-form-loading-progress .progress-bar {
  border-radius: 100px;
  background: linear-gradient(to bottom, #3D87E3, #990694);
  font-size: 16px;
}

.dropzone-form-loading-progress .progress-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: currentColor;
}

.dropzone-form-note {
  margin-top: 24px;
  font-size: 16px;
  color: #979AA0;
  font-weight: 500;
}

.dropzone-options {
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.dropzone-options-title {
  font-size: 28px;
  font-weight: 600;
}

.dropzone-options-text {
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.5;
}

.dropzone-options-row {
  margin-top: 24px;
  display: flex;
  gap: 24px;
}

.dropzone-options-col {
  flex-basis: calc((100% - 24px) / 2);
}

.dropzone-options-radio {
  display: flex;
  gap: 12px;
  text-align: left;
  align-items: flex-start;
}

.dropzone-options-radio-button {
  background-color: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: translateY(14px);
}

.dropzone-options-radio-button svg {
  width: 24px;
  height: 24px;
}

.dropzone-options-radio-button:not(.active) .dot {
  display: none;
}

.dropzone-options-radio-label {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.dropzone-options-radio-description {
  font-size: 16px;
  color: #C1C3C7;
}

.dropzone-options-buttons {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.dropzone-options-buttons .button-outline {
  background-color: transparent;
  border-color: #990694 !important;
}

.dropzone-form-options .dropzone-form-inner {
  padding-top: 62px;
  padding-bottom: 62px;
}

.dropzone-agreement {
  text-align: center;
  font-size: 12px;
  color: #979AA0;
  line-height: 1.5;
  margin-top: 16px;
  max-width: 368px;
  margin-left: auto;
  margin-right: auto;
}

.dropzone-agreement a {
  color: #fff;
  text-decoration: underline;
}

.tab-pane.balance {
  border-radius: 0;
  border: none;
  background-color: transparent;
}

.balance-stats {
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid #E5E5E7;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 14px;
}

.balance-stats:not(:last-child) {
  margin-bottom: 16px;
}

.balance-stats-col {
  flex-basis: calc((100% - 28px) / 3);
}

.balance-stats-col.color-success .balance-stats-label {
  color: #2EBF43;
}

.balance-stats-col.color-success .balance-stats-value {
  color: #2EBF43;
}

.balance-stats-label {
  font-size: 13px;
  color: #728490;
  line-height: 1.5;
}

.balance-stats-label:not(:last-child) {
  margin-bottom: 4px;
}

.balance-stats-value {
  color: #000;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
}

.balance-stats-value:not(:last-child) {
  margin-bottom: 4px;
}

.balance-history-item {
  background-color: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid #E5E5E7;
  padding: 8px;
  box-sizing: border-box;
}

.balance-history-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.balance-history-bottom {
  display: flex;
  gap: 8px;
}

.balance-history-media {
  flex-shrink: 0;
  flex-basis: 70px;
}

.balance-history-image {
  padding-bottom: 57%;
  position: relative;
  display: block;
}

.balance-history-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 6px;
}

.balance-history-info {
  flex-grow: 1;
  font-size: 13px;
  color: #728490;
  line-height: 1.5;
}

.balance-history-value span {
  color: inherit;
}

@media (max-width: 575px) {
  .balance-stats {
    flex-wrap: wrap;
  }
  .balance-stats-col {
    flex-basis: calc((100% - 14px) / 2);
  }
  .balance-stats-col:last-child {
    flex-basis: 100%;
  }
}

.balance-history-change {
  flex-shrink: 0;
  align-self: center;
  font-size: 14px;
  color: #2EBF43;
}

.balance-history-change.color-danger {
  color: #EB5757;
}

.balance-history .pagination {
  margin-top: 16px;
}

.tariffs-description p {
  color: #979AA0;
  font-size: 18px;
}

.tariffs-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.tariffs-item {
  flex-basis: calc((100% - 24px) / 2);
  position: relative;
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid #E5E5E7;
  padding: 40px 24px;
  box-sizing: border-box;
  border-radius: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.tariffs-item:not(.active) .tariffs-check .dot {
  display: none;
}

.tariffs-item.active {
  border-color: #990694 !important;
  box-shadow: 0 0 60px -10px #6831E1;
}

.tariffs-item.active .tariffs-badge {
  background: linear-gradient(to bottom, #3D87E3, #990694);
  border: none;
  color: #fff;
}

.tariffs-badge {
  font-size: 16px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3px 12px;
  box-sizing: border-box;
  border-radius: 100px;
  border: 1px solid #990694;
  text-transform: uppercase;
  position: absolute;
  top: 8px;
  right: 8px;
  color: #990694;
}

.tariffs-item-main {
  padding-bottom: 40px;
}

.tariffs-main-row {
  display: flex;
  gap: 12px;
}

.tariffs-check {
  flex-shrink: 0;
  transform: translateY(12px);
}

.tariffs-check svg {
  width: 24px;
  height: 24px;
}

.tariffs-price-value {
  font-size: 40px;
  font-weight: 600;
}

.tariffs-price-value sup {
  font-size: 22px;
  color: #2B2D2F;
  text-decoration: line-through;
  font-weight: 400;
}

.tariffs-price-label {
  font-size: 20px;
  color: #2B2D2F;
}

.tariffs-info {
  border-top: 1px solid #323539;
  padding-top: 24px;
  display: flex;
  gap: 24px;
}

.tariffs-info-item {
  flex-basis: calc((100% - 24px) / 2);
  display: flex;
  gap: 12px;
}

.tariffs-info-icon {
  flex-shrink: 0;
}

.tariffs-info-icon svg {
  width: 24px;
  height: 24px;
}

.tariffs-info-label {
  font-size: 14px;
  color: #979AA0;
}

.tariffs-info-value p {
  margin: 0;
}

.tariffs-info-value span {
  color: #B4B4B4;
}

.tariffs-action {
  margin-top: 40px;
  display: flex;
  gap: 24px;
}

.tariffs-button {
  flex-shrink: 0;
}

.tariffs-btn {
  background: #728490 linear-gradient(to bottom, #3D87E3, #990694);
  border-radius: 16px;
  height: 48px;
  gap: 6px;
  padding-left: 24px;
  padding-right: 24px;
  justify-content: center;
  color: #fff;
  border: none;
  outline: none;
  box-shadow: none;
}

.tariffs-btn.disable {
  background: #728490;
  background-image: none;
}

.tariffs-notification {
  display: flex;
  gap: 10px;
}

.tariffs-notification-icon {
  flex-shrink: 0;
}

.tariffs-notification-icon svg {
  width: 24px;
  height: 24px;
}

.tariffs-notification-text {
  font-size: 16px;
  line-height: 1.5;
}

.tariffs-conditions {
  margin-top: 24px;
}

.tariffs-conditions-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 13px;
  color: #979AA0;
}

.tariffs-conditions-item:not(:last-child) {
  margin-bottom: 24px;
}

.tariffs-conditions-item input {
  flex-shrink: 0;
  transform: translateY(4px);
}

.gradient-dashed-border {
  position: relative;
  border-radius: 24px;
}

.gradient-dashed-border::before {
  content: "";
  position: absolute;
  z-index: 10;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, #168cff 0%, #705cff 50%, #ed00c8 100%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Crect x='0.5' y='0.5' width='99' height='99' rx='6' ry='6' fill='none' stroke='white' stroke-width='1.5' stroke-dasharray='7 8' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Crect x='0.5' y='0.5' width='99' height='99' rx='6' ry='6' fill='none' stroke='white' stroke-width='1.5' stroke-dasharray='7 8' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}

body:not(.theme-dark) .theme-light-hidden {
  display: none;
}

.theme-dark {
  color: #F9F9F9;
}

.theme-dark button {
  color: #F9F9F9;
}

.theme-dark .theme-dark-hidden {
  display: none;
}

.theme-dark .btn {
  color: #F9F9F9;
}

.theme-dark .wrapper {
  background-image: url(../images/dark-bg.jpg);
}

.theme-dark .btn-header {
  border-color: #fff;
  color: #fff;
}

.theme-dark .btn-header:hover {
  color: #fff;
}

.theme-dark .navbar-brand img:nth-child(1) {
  display: none;
}

.theme-dark .navbar-brand img:nth-child(2) {
  display: block;
}

.theme-dark .footer-logo img:nth-child(1) {
  display: none;
}

.theme-dark .footer-logo img:nth-child(2) {
  display: block;
}

.theme-dark .header {
  background-color: transparent;
}

.theme-dark .header .navbar {
  border-color: #323539;
}

.theme-dark .header .navbar-collapse {
  background-color: rgba(1, 1, 3, 0.9);
}

.theme-dark .header .header-navbar .nav-link:hover {
  background-color: #0B0B10 !important;
}

.theme-dark .dropzone-form-format-label {
  color: #979AA0;
}

.theme-dark .dropzone-form-format-item {
  border-color: #323539;
  background-color: #0B0B10;
  color: #979AA0;
}

.theme-dark .footer {
  background-color: rgba(2, 2, 3, 0.5);
}

.theme-dark .footer-main a {
  color: currentColor;
}

.theme-dark .tariffs-item {
  background-color: rgba(11, 11, 16, 0.9);
  border-color: #323539;
}

.theme-dark .tariffs-price-value sup {
  color: #C1C3C7;
}

.theme-dark .tariffs-price-label {
  color: #C1C3C7;
}

.theme-dark .tariffs-badge {
  color: #fff;
}

.theme-dark .dashboard .tab-pane {
  background: rgba(11, 11, 16, 0.6);
}

.theme-dark .dashboard-nav .nav-link {
  background: rgba(11, 11, 16, 0.6);
}

.theme-dark .dashboard-nav .nav-link.active {
  color: #F9F9F9;
  border: 1px solid #990694 !important;
  background-color: transparent;
}

.theme-dark .profile-value {
  color: #FFFFFF;
}

.theme-dark .message-form .form-control {
  background-color: #0B0B10;
  color: #fff;
  border-color: #323539;
}

.theme-dark .message-form .input-group-text {
  background-color: #0B0B10;
  color: #fff;
  border-color: #323539;
}

.theme-dark .message-form .custom-select {
  background-color: #0B0B10;
  color: #fff;
  border-color: #323539;
}

.theme-dark .button-outline {
  border: 1px solid #fff;
  color: #fff;
}

.theme-dark .custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
  border-color: #fff !important;
}

.theme-dark .custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e");
}

.theme-dark .pin-digit {
  border: 1px solid #323539;
  background-color: rgba(255, 255, 255, 0.07);
  color: #F9F9F9;
}

.theme-dark .pin-digit::-moz-placeholder {
  color: #F9F9F9;
}

.theme-dark .pin-digit:-ms-input-placeholder {
  color: #F9F9F9;
}

.theme-dark .pin-digit::placeholder {
  color: #F9F9F9;
}

.theme-dark .pin-digit:focus {
  border-color: #F9F9F9;
}

.theme-dark .dashboard .tab-pane {
  background-color: transparent;
}

.theme-dark .balance-stats {
  background-color: rgba(11, 11, 16, 0.6);
  border-color: #323539;
}

.theme-dark .balance-stats-value {
  color: #F9F9F9;
}

.theme-dark .balance-history-item {
  background-color: rgba(11, 11, 16, 0.6);
  border-color: #323539;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1300px;
  }
}

@media (max-width: 1199.98px) {
  .profile-item {
    flex-basis: 100%;
  }

  .dropzone-options-title {
    font-size: 20px;
  }

  .dropzone-options-text {
    font-size: 16px;
  }

  .dropzone-form-options .dropzone-form-inner {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .dropzone-options-radio-label {
    font-size: 24px;
  }

  .dropzone-options-buttons {
    gap: 16px;
    margin-top: 16px;
  }

  .dropzone-options-row {
    margin-top: 16px;
  }
}

.nav-link-auth {
  display: none !important;
}

@media (max-width: 767.98px) {
  .process-dimensions-unit {
    display: none;
  }

  .nav-link-auth {
    display: inline-flex !important;
  }
  .site {
    padding-top: 60px;
  }

  .navbar-toggler {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 8px;
  }

.image-examples {
    display: block;
    text-align: center;
  }

  .image-examples-label {
    margin-bottom: 16px;
  }

  .image-loading-error-title {
    font-size: 18px;
  }

  .image-loading-error-text {
    margin-top: 8px;
    font-size: 13px;
  }

  .dropzone-form-inner {
    padding-top: 0;
    padding-bottom: 0;
  }

  .dropzone-form-text {
    font-size: 16px;
    margin-top: 8px;
  }

  .dropzone-form-format {
    margin-top: 8px;
    row-gap: 8px;
  }

  .dropzone-form-action {
    margin-top: 8px;
  }

  #dropzone-form, #preview {
    margin-top: 16px;
  }

  .footer {
    padding-top: 0px;
  }

  .navbar-brand img {
    max-width: 130px;
  }

  .footer-main ul {
    font-size: 13px;
  }

  .footer-main p {
    font-size: 13px;
  }

  .footer-main h5 {
    font-size: 16px;
  }

  .image-examples-image img {
    border-radius: 8px;
  }

  .footer-bottom {
    font-size: 10px;
  }

  .preview-zoom-row {
    flex-direction: row;
    gap: 4px;
    margin-top: 4px;
  }

  .preview-zoom-item {
    flex-basis: calc((100% - 4px) / 2);
  }

  .preview-zoom-image {
    padding-bottom: 65%;
  }

  .preview-full-handle {
    width: 89px;
    height: 59px;
    
    top: calc(50% - (59px / 2));
    left: calc(50% - (89px / 2));
    font-size: 0;
  }

  .preview-full-handle svg {
    position: absolute;
    right: 4px;
    bottom: 4px;
    transform: none;
  }

  .dashboard-message-content {
    text-align: left;
  }

  .dashboard-message-buttons {
    gap: 10px;
  }

  .dashboard-message-buttons .btn {
    flex-basis: 100%;
  }

  .profile-tab-content {
    min-height: 0;
  }

  .dashboard-upload-placeholder {
    padding: 40px 24px;
    margin-top: 24px;
  }

  .dashboard-upload-placeholder-text {
    font-size: 16px;
  }

  .profile {
    gap: 10px;
  }

  .profile-item {
    gap: 16px;
    padding: 10px;
  }

  .profile-icon img {
    width: 40px;
    height: 40px;
  }

  .profile-value {
    font-size: 18px;
  }

  .message-centered-list {
    padding-left: 20px;
    font-size: 13px;
  }

  .message-valid {
    font-size: 16px;
  }

  .payment-modal-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .payment-modal-link {
    min-height: 46px;
  }
  
  .dropzone-form-button {
    font-size: 14px;
    padding-left: 14px;
    padding-right: 14px;
    width: 100%;
  }

  .dropzone-form-loading .dropzone-form-inner {
    /*padding-top: 44px;*/
    padding-top: 0px;
    padding-bottom: 44px;
    padding-bottom: 0px;
  }

  .dropzone-form-loading-info {
    margin: 0 5%;
  }

  .main-section:not(.main-section-alt) {
    justify-content: unset;
  }

  .dropzone-form-filename {
    font-size: 14px;
  }

  .dropzone-form-loading-info-text {
    font-size: 13px;
  }

  .dropzone-form-note {
    font-size: 14px;
  }

  .dropzone-options-title {
    font-size: 18px;
  }

  .dropzone-options {
    max-width: 370px;
    margin-left: auto;
    margin-right: auto;
  }

  .dropzone-options-radio-description {
    font-size: 13px;
  }

  .tariffs-item {
    flex-basis: 100%;
    padding: 16px;
  }

  .tariffs-badge {
    font-size: 14px;
  }

  .tariffs-item-main {
    padding-bottom: 16px;
  }

  .tariffs-main-row {
    gap: 8px;
  }

  .tariffs-price-value sup {
    font-size: 18px;
  }

  .tariffs-price-value {
    font-size: 24px;
  }

  .tariffs-price-label {
    font-size: 14px;
  }

  .tariffs-info {
    padding-top: 16px;
  }

  .tariffs-info-item {
    gap: 8px;
  }

  .tariffs-info-label {
    font-size: 13px;
  }

  .tariffs-info-value {
    font-size: 14px;
  }

  .tariffs-action {
    flex-wrap: wrap;
    margin-top: 16px;
    gap: 16px;
  }

  .tariffs-button {
    width: 100%;
  }

  .tariffs-btn {
    width: 100%;
  }

  .tariffs-notification-text {
    font-size: 13px;
  }

  .tariffs-conditions-item {
    font-size: 13px;
  }

  .gradient-dashed-border {
    border-radius: 10px;
  }
}

.subscription-card-real-field {
  position: absolute;
  left: 20px;
  bottom: 56px;
}

.subscription-card-hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.subscription-card-visual {
  display: flex;
  align-items: center;
  gap: 12px;
}

.subscription-card-group {
  display: flex;
  align-items: center;
  gap: 3px;
}

.subscription-card-group-active {
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  padding: 4px 6px;
}

.subscription-card-group span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  height: 24px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  position: relative;
}

.subscription-card-group-disabled span {
  color: rgba(255, 255, 255, 0.25);
  cursor: default;
}

.subscription-card-group span.is-empty {
  color: rgba(255, 255, 255, 0.35);
}

.subscription-card-group span.is-active::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: -2px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}



@media (max-width: 480px) {
  .subscription-card-visual {
    gap: 6px;
  }

  .subscription-card-group {
    gap: 2px;
  }

  .subscription-card-group span {
    font-size: 16px;
    min-width: 12px;
  }
}

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
    -webkit-box-shadow: unset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/*
 * Белый текст подставленного браузером значения — только тёмным полям тёмной темы (фон #0B0B10,
 * см. .theme-dark .message-form .form-control). Светлые поля — модалка оплаты на /public/result,
 * .message-form в светлой теме (?theme=light), формы cpanel — получают цвет, который браузер
 * задаёт автозаполненному полю (в светлой схеме — чёрный). Глобальный белый делал их текст
 * белым на светлом.
 */
.theme-dark .message-form .form-control:-webkit-autofill,
.theme-dark .message-form .form-control:-webkit-autofill:hover,
.theme-dark .message-form .form-control:-webkit-autofill:focus,
.theme-dark .message-form .form-control:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
}

.preview-full-image,
.containment-wrapper,
#draggable {
    touch-action: none;
}

#preview-source {
  display: none;
}

@media (orientation: portrait) {
  .hide-on-pc {
    display: block;
  }
  .hide-on-mob {
    display: none;
  }
}

@media (orientation: landscape) {
  .hide-on-pc {
    display: none !important;
  }
  .hide-on-mob {
    display: block;
  }
}

/* Высота с раскрытыми панелями браузера: сохраняем компактность без скачков при скролле. */
@media (orientation: portrait), (max-aspect-ratio: 1/1) {

	.image-examples {
		max-width: calc(100svh / 3);
  		margin: 0 auto;
	}

	#dropzone-form {
		padding: 2svh 2.75svh;
	}

	.dropzone-form-icon {
		max-height: 8svh;
	}

	.dropzone-form-text, .image-examples-label {
		font-size: 2.45svh;
	}
	.dropzone-form-format-label, .dropzone-form-format-item {
		font-size: 1.8svh;
	}

	.main-section {
		padding-top: 2svh !important;
	}
}

/* api#283: утверждённый первый экран с раскрытыми панелями Яндекса. */
@media (max-width: 767.98px) {
  .index-mobile-fit { padding-top: 8px !important; }
  .index-mobile-fit #image-compare { width: 100%; container-type: inline-size; aspect-ratio: 1696 / 920; max-height: clamp(120px, calc(100svh - 440px), 240px); }
  /* Обе стороны одного масштаба и кадрирования при ограниченной высоте. */
  .index-mobile-fit #image-compare .icv__img { position: absolute; top: 0; bottom: 0; left: 0; width: 100cqw; height: 100%; object-fit: cover; object-position: center; }
  .index-mobile-fit #image-compare .icv__img-b { left: auto; right: 0; }
  .index-mobile-fit #image-compare.native-icv img { width: 100cqw !important; }
  .index-mobile-fit :is(#dropzone-form[data-mobile-upload], html[data-upload-device="mobile"] #dropzone-form, html[data-upload-device="android"] #dropzone-form) { padding: 12px; margin-top: 12px; }
  .index-mobile-fit :is(#dropzone-form[data-mobile-upload], html[data-upload-device="mobile"] #dropzone-form, html[data-upload-device="android"] #dropzone-form) .dropzone-form-icon img { width: 36px; height: 36px; }
  .index-mobile-fit :is(#dropzone-form[data-mobile-upload], html[data-upload-device="mobile"] #dropzone-form, html[data-upload-device="android"] #dropzone-form) .dropzone-form-text { margin-top: 6px; }
  .index-mobile-fit :is(#dropzone-form[data-mobile-upload], html[data-upload-device="mobile"] #dropzone-form, html[data-upload-device="android"] #dropzone-form) .dropzone-form-format { margin-top: 8px; }
  .index-mobile-fit :is(#dropzone-form[data-mobile-upload], html[data-upload-device="mobile"] #dropzone-form, html[data-upload-device="android"] #dropzone-form) .dropzone-form-action { margin-top: 10px; }
  .index-mobile-fit .image-examples { max-width: min(100%, 50svh); margin: 12px auto 0; }
  .index-mobile-fit .image-examples-label { display: none; }
  .index-mobile-fit .image-examples-list { gap: 8px; }
  .index-mobile-fit .image-examples-item { flex-basis: calc((100% - 32px) / 5); min-width: 0; }
  .index-mobile-fit #image-compare .icv__label { top: 4px; bottom: auto; margin: 0; width: 48px; height: 20px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; font: 600 9px/1.3 Inter, sans-serif; padding: 2px 5px; border: 1px solid rgb(255 255 255 / 65%); border-radius: 5px; background: rgb(67 72 82 / 72%); color: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 20%); text-shadow: 0 1px 1px rgb(0 0 0 / 35%); white-space: nowrap; }
  .index-mobile-fit #image-compare .icv__label-before { left: 24px; }
  .index-mobile-fit #image-compare .icv__label-after { right: 24px; }
}

/* api#284: общий контракт утверждённых шапки/подвала и мобильной обработки. */

.header .navbar{height:90px;padding-top:0!important;padding-bottom:0!important;}
.header .navbar>.container{height:100%;align-items:center;flex-wrap:nowrap;}
.header .navbar-brand{padding:0;margin-right:12px;min-width:0;flex:1 1 0;display:flex;align-items:center;}
.header .navbar-brand img{width:240px;max-width:100%;height:auto;}
.footer-logo img{width:160px;height:auto;max-width:100%;}
.header .btn-header{min-height:44px;height:44px;font-size:14px;line-height:20px;padding:0 16px;border-radius:12px;white-space:nowrap;gap:6px;}
@media(max-width:767.98px){
 .header .navbar{height:68px;} .header .navbar-brand img{width:180px;} .header .navbar-toggler{width:30px;height:30px;border-radius:8px;padding:0;display:inline-flex;align-items:center;justify-content:center;} .header .navbar-toggler-icon{width:20px;height:20px;background-size:20px;display:block;}
 .header .navbar-brand{margin-right:8px;}
 .header .btn-header{height:30px;min-height:30px;font-size:12px;padding:0 12px;border-radius:11px;}
 .header .btn-header svg{width:16px;height:16px;}
 .footer-logo img{width:130px;height:auto;}
 .site{padding-top:68px;}
 .index-mobile-fit #image-compare{max-height:clamp(120px,calc(100svh - 450px),240px);}
}
@media(max-width:767.98px){
 .tour-processing, .main-section:has(#process:not([style*="display: none"])) {padding-top:12px!important;padding-bottom:12px!important;min-height:0!important;}
 #process{padding:16px 12px;}
 #process .process-dimensions-unit{display:none;}
 #process .dropzone-form-inner{padding:0;}
 #process-title{margin:0;font-size:16px;line-height:24px;}
 #process-scale-note{margin:12px 0;font-size:13px;line-height:20px;text-align:center;}
 #process .dropzone-form-loading-info{margin:0;display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:4px;align-items:center;}
 #process .dropzone-form-loading-info-col{min-width:0;}
 #process .dropzone-form-loading-info-item{gap:4px;align-items:center;}
 #process .dropzone-form-loading-info-col:last-child .dropzone-form-loading-info-item{justify-content:flex-end;}
 #process .dropzone-form-loading-info-item:not(:last-child){margin-bottom:8px;}
 #process .dropzone-form-loading-info-icon svg{width:16px;height:16px;display:block;}
 #process .dropzone-form-loading-info-text{font-size:clamp(12px,3.6vw,13px);line-height:20px;white-space:nowrap;}
 #process .dropzone-form-loading-info-arrow{display:flex;justify-content:center;flex-basis:auto;opacity:.75;}
 #process .dropzone-form-loading-info-arrow svg{width:24px;}
 #process .dropzone-form-loading-progress{margin-top:16px;}
 #process .progress{height:24px;}
 #process .progress-label{font-size:12px;line-height:24px;}
 #process .process-file-line{margin-top:12px;font-size:12px;line-height:18px;}
 .tour-processing #preview, .main-section:has(#process:not([style*="display: none"])) #preview{height:clamp(220px,calc(100svh - 335px),380px)!important;margin-top:16px;}
}
@media(max-width:767.98px){.result-download-title{font-size:24px;line-height:1.2;}}


/* api#298: общий каркас API/Preland; синхронизировать этот блок в обоих репозиториях. */
html { scrollbar-gutter: stable; }
body { isolation: isolate; }
.wrapper {
  --site-header-height: 90px;
  --site-background: url(../images/bg.jpg);
  min-height: 100svh;
  background-image: none;
}
.theme-dark .wrapper { --site-background: url(../images/dark-bg.jpg); background-image: none; }
.wrapper::before {
  content: "";
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  background: var(--site-background) center / cover no-repeat;
  pointer-events: none;
}
.wrapper .main-section:not(.main-section-alt),
.wrapper .main-section.main-section-alt2,
.wrapper .main-content-wrapper { min-height: calc(100svh - var(--site-header-height)); }
.wrapper .main-content-wrapper { height: auto; }
.wrapper .main-content-wrapper > .main-section { min-height: 0; }
@media (min-width: 768px) {
  /* 520px — общий desktop-слот Index с фото и полосой примеров при контейнере 1300px.
     Верхняя граница не зависит от короткого/длинного содержимого текущего шага. */
  .wrapper .index-mobile-fit,
  .wrapper .tour-processing {
    justify-content: flex-start;
    padding-top: max(24px, calc((100svh - var(--site-header-height) - 520px) / 2)) !important;
  }
  :is(.index-mobile-fit, .tour-processing) :is(#dropzone-form, #process) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 456px;
  }
  :is(.index-mobile-fit, .tour-processing) :is(#dropzone-form, #process) .dropzone-form-inner {
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
  }
  /* Превью обработки заполняет колонку до низа левой панели; исходный Index не меняется. */
  :is(.index-mobile-fit, .tour-processing) #preview { height: 100%; aspect-ratio: auto; }
}
@media (max-width: 767.98px) { .wrapper { --site-header-height: 68px; } }
/* /api#298 */

/* api#301: геометрия примеров существует до загрузки изображений и viewer. */
.index-mobile-fit .dropzone-form-action { display: flex; justify-content: center; }
.index-mobile-fit #examples { position: relative; }
.index-mobile-fit #image-compare { position: relative; width: 100%; aspect-ratio: 1696 / 920; overflow: hidden; }
.index-mobile-fit #image-compare > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.index-mobile-fit #examples .examples-retry { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%); }
.index-mobile-fit #examples .examples-retry[hidden] { display: none; }
.index-mobile-fit #examples .image-examples-item { cursor: pointer; }
.index-mobile-fit #examples .image-examples-item.active { border-color: #007bff; }
/* /api#301 */
@media (min-width: 768px) {
  /* Обе колонки занимают свои ячейки и при частично полученном HTML. */
  .index-mobile-fit > .container > .row { display: grid; grid-template-columns: 5fr 7fr; }
  .index-mobile-fit > .container > .row > .col-md-5 { grid-column: 1; grid-row: 1; max-width: none; }
  .index-mobile-fit > .container > .row > .col-md-7 { grid-column: 2; grid-row: 1; max-width: none; }
}
/* Разметка может прийти частями: показываем только полностью полученную форму. */

@media (max-width: 767.98px) {
  /* Высоты существующего компактного вида: 243/201px контент + 24px padding. */
  html[data-upload-device=android] .index-mobile-fit #dropzone-form { min-height: 267px; }
  html[data-upload-device=mobile] .index-mobile-fit #dropzone-form { min-height: 225px; }
  html[data-upload-device=android] .index-mobile-fit .dropzone-form-action { min-height: 90px; }
}

/* Публичная отмена подписки: локальный контракт, не затрагивает PIN. */
.subscription { max-width:470px; width:100%; --subscription-result-bg:#f0edf6; --subscription-result-border:#d4cadd; }
.theme-dark .subscription { --subscription-result-bg:#201829; --subscription-result-border:#554263; }
.subscription .subscription-intro { margin:12px 0 24px; font-size:18px; line-height:27px; }
.subscription .subscription-bankcard { box-sizing:border-box; width:348px; max-width:100%; height:212px; margin:0 auto; border:1px solid #776c83; border-radius:18px; position:relative; overflow:hidden; background:linear-gradient(0deg,#66717b8c 0%,transparent 28%),repeating-radial-gradient(ellipse at 12% -20%,#17111d 0px,#17111d 9px,#302633 11px,#18121e 14px,#18121e 22px); box-shadow:inset 0 0 0 7px #15101b70; }
.subscription .subscription-chip { position:absolute; top:54px; left:20px; width:62px; height:46px; border-radius:10px; border:1px solid #b9bac1; background:linear-gradient(135deg,#e9e9eb,#a4a5ab 50%,#e5e5e7); }
.subscription .subscription-chip::after { content:""; position:absolute; inset:13px 0; border-top:1px solid #8a8b92; border-bottom:1px solid #8a8b92; background:linear-gradient(90deg,transparent 30%,#8a8b92 31%,transparent 32%,transparent 68%,#8a8b92 69%,transparent 70%); }
.subscription .subscription-contactless { position:absolute; top:65px; left:99px; color:#f3eef7; }
.subscription .subscription-number-row { position:absolute; left:18px; right:18px; bottom:44px; display:flex; align-items:flex-end; justify-content:center; gap:12px; text-align:left; }
.subscription .subscription-number-row label { display:flex; flex-direction:column; gap:7px; font-size:11px; line-height:1.2; color:#d5cddb; min-width:0; margin:0; }
.subscription .subscription-number-row input { box-sizing:border-box; height:40px; min-width:0; border:1px solid #bcb3c6; border-radius:6px; padding:4px 6px; background:#130e19aa; color:#fff; font:400 22px/1 'Courier New',monospace; font-variant-numeric:tabular-nums; letter-spacing:0; }
.subscription .subscription-last-label input { width:calc(4ch + 14px); }
.subscription .subscription-first-box { box-sizing:border-box; display:flex; align-items:center; height:40px; border:1px solid #bcb3c6; border-radius:6px; padding:0 6px; background:#130e19aa; font:400 22px/1 'Courier New',monospace; }
.subscription .subscription-first-box input { padding:0; background:transparent; border:0; border-radius:0; outline:none; width:7ch; height:36px; }
.subscription .subscription-first-box > span { width:2ch; color:#a99bb7; }
.subscription .subscription-first-box:focus-within { outline:2px solid #56ccf2; outline-offset:3px; }
/* Первое поле получает единственный контур на контейнере, последнее — на самом input. */
.subscription .subscription-last-label input:focus-visible { outline:2px solid #56ccf2; outline-offset:3px; }
.subscription .subscription-number-row input::placeholder { color:#b6aabd; opacity:.65; }
.subscription .subscription-number-row input:disabled { opacity:.72; }
.subscription .subscription-mask { color:#a99bb7; font:400 22px/1 'Courier New',monospace; padding-bottom:9px; white-space:nowrap; }
.subscription .subscription-help { font:400 16px/24px Inter,sans-serif; margin:16px 0 0; }
.subscription .subscription-feedback { margin-top:12px; }
.subscription .subscription-feedback:has([hidden]) { display:none; }
.subscription #subscription-notice p { margin:0; white-space:pre-line; overflow-wrap:anywhere; min-width:0; }
.subscription .subscription-result { position:relative; overflow:hidden; width:100%; padding:16px 18px 16px 20px; background:var(--subscription-result-bg); border:1px solid var(--subscription-result-border); border-radius:12px; text-align:left; box-shadow:0 6px 18px #00000018; }
.subscription .subscription-result::before { content:""; position:absolute; inset:0 auto 0 0; width:3px; background:linear-gradient(to bottom,#3d87e3,#990694); }
.subscription .subscription-result p { font:400 16px/24px Inter,sans-serif; }
.subscription .subscription-result .subscription-error-icon { display:none; }
.subscription .subscription-error { display:flex; align-items:flex-start; gap:8px; padding:4px 16px; border-radius:1px; color:#eb5757; background:#fddddc; text-align:left; }
.subscription .subscription-error p { font:400 16px/20px Inter,sans-serif; }
.subscription .subscription-error-icon { box-sizing:border-box; width:16px; height:16px; flex:0 0 16px; margin-top:2px; display:flex; align-items:center; justify-content:center; border:1.5px solid #c8322b; border-radius:50%; color:#c8322b; font:600 11px/1 Inter,sans-serif; }
.subscription .subscription-action { box-sizing:border-box; width:320px; max-width:100%; height:48px; margin-top:24px; border:0; border-radius:16px; display:inline-flex; align-items:center; justify-content:center; padding:0 20px; color:#f9f9f9; text-decoration:none; font:400 16px/24px Inter,sans-serif; cursor:pointer; }
.subscription .subscription-action:disabled { opacity:1; background:#728490; cursor:not-allowed; }
.subscription [hidden] { display:none !important; }
.subscription .subscription-support { margin-top:12px; font-size:18px; line-height:27px; }
.subscription .subscription-support a { color:#007bff; text-decoration:none; }
.subscription .subscription-support a:hover { color:#0056b3; text-decoration:underline; }
@media(max-width:480px) {
  .subscription .subscription-number-row input,.subscription .subscription-first-box,.subscription .subscription-mask { font-size:20px; }
  .subscription .subscription-number-row { gap:10px; }
}
@media(max-width:767.98px) { .subscription .subscription-support { font-size:13px; line-height:19.5px; } }
@media(max-width:380px) {
  .subscription .subscription-number-row { left:12px; right:12px; gap:6px; }
  .subscription .subscription-number-row input,.subscription .subscription-first-box,.subscription .subscription-mask { font-size:16px; }
}

/* api#313 / preland#16: первый экран, стабильный бюджет высоты и явное состояние загрузки. */
#dropzone-form[data-upload-pending="true"] .dropzone-form-button {
  background: #979aa0; opacity: 1; filter: none; cursor: progress;
}
#dropzone-form[data-upload-pending="true"] .dropzone-form-action [data-files-picker] {
  color: #979aa0; pointer-events: none; cursor: default;
}
/* api#763: индикатор занимает прежний слот кнопки только на Index. */
.index-mobile-fit .index-upload-slot { position: relative; width: 100%; height: 48px; }
.index-mobile-fit #dropzone-form[data-upload-pending="true"] .index-upload-slot .dropzone-form-button { visibility: hidden; }
.index-mobile-fit .index-upload-status {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  gap: 12px; color: #2b2d2f; font: 600 16px/24px Inter, sans-serif; white-space: nowrap;
}
.index-mobile-fit .index-upload-status[hidden] { display: none; }
.theme-dark .index-mobile-fit .index-upload-status { color: #f9f9f9; }
.index-mobile-fit .index-upload-indicator { position: relative; flex: 0 0 44px; width: 44px; height: 44px; }
.index-mobile-fit .index-upload-indicator::before,
.index-mobile-fit .index-upload-indicator::after {
  content: ''; position: absolute; background: linear-gradient(to bottom, #3d87e3, #990694);
  -webkit-mask: url('../images/spinner-opt.svg') center / contain no-repeat;
  mask: url('../images/spinner-opt.svg') center / contain no-repeat;
}
.index-mobile-fit .index-upload-indicator::before { inset: 0; animation: index-upload-spin 1.15s linear infinite; }
.index-mobile-fit .index-upload-indicator::after {
  width: 14px; height: 14px; top: 15px; left: 15px;
  -webkit-mask-image: url('../images/index-upload-sandglass.svg'); mask-image: url('../images/index-upload-sandglass.svg');
}
@keyframes index-upload-spin { to { transform: rotate(360deg); } }
@media (max-width: 767.98px) {
  .index-mobile-fit .index-upload-status { gap: 10px; font-size: 14px; line-height: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .index-mobile-fit .index-upload-indicator::before { animation: none; }
}
.wrapper { min-height: 100vh; min-height: 100svh; }
.wrapper .main-section.index-mobile-fit,
.wrapper .main-content-wrapper { min-height: calc(100vh - var(--site-header-height)); }
@supports (height: 100svh) {
  .wrapper .main-section.index-mobile-fit,
  .wrapper .main-content-wrapper { min-height: calc(100svh - var(--site-header-height)); }
}
@media (min-width: 768px) {
  .index-mobile-fit .index-upload-heading { font-size: 24px; font-weight: 600; }
}
@media (max-width: 767.98px) {
  .index-mobile-fit { --index-small-height: 100vh; }
  .index-mobile-fit #image-compare { max-height: clamp(120px, calc(var(--index-small-height) - 360px), 240px); }
  .index-mobile-fit #image-compare .icv__img,
  .index-mobile-fit #image-compare.native-icv img { width: var(--compare-width, 100%) !important; }
  html[data-upload-device=android] .index-mobile-fit #dropzone-form { min-height: 243px; }
  html[data-upload-device=mobile] .index-mobile-fit #dropzone-form { min-height: 201px; }
  .index-mobile-fit[data-compact-upload=true] .dropzone-form-icon { display: none; }
  .index-mobile-fit[data-compact-upload=true] #dropzone-form #form-title { margin-top: 0; }
  html[data-upload-device] .index-mobile-fit[data-compact-upload=true] #dropzone-form { min-height: 0; }
}
@supports (height: 100svh) {
  .index-mobile-fit { --index-small-height: 100svh; }
}
/* Без :has форма остаётся доступной; современные движки сохраняют partial-HTML gate. */
@supports selector(:has(*)) {
  .index-mobile-fit #dropzone-form:not(:has([data-upload-markup-ready])) { visibility: hidden; }
}
/* /api#313 / preland#16 */
/* api#316: утверждённое представление Join, не затрагивает тарифы Private. */
.join-tariffs .join-mobile-unit-prices { display:none; }
.join-tariffs .tariffs-price { min-width:0; }
.join-tariffs .join-card-note { overflow-wrap:anywhere; }
.join-tariffs [data-join-consents] { margin-top:24px; }
.join-tariffs .tariffs-conditions-item { line-height:19.5px; min-width:0; }
.join-tariffs .tariffs-conditions-item:not(:last-child) { margin-bottom:2px; }
.join-tariffs .tariffs-conditions-item .custom-control { min-width:0; min-height:19.5px; }
.join-tariffs .custom-control-label,
.join-tariffs .join-consent-information { font-size:13px; font-weight:400; line-height:19.5px; overflow-wrap:anywhere; }
.join-tariffs .tariffs-conditions-item a { overflow-wrap:anywhere; }
.theme-dark .join-tariffs .custom-checkbox .custom-control-label::before {
 border-color:#fff !important;
}
.theme-dark .join-tariffs .custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
 border-color:#323539 !important;
}
.theme-dark .join-tariffs .custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
 background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23323539' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e");
}
@media (min-width:768px) {
 .join-tariffs .tariffs-item { padding-bottom:28px; }
 .join-tariffs .join-card-note { margin-top:12px; font-size:12px; line-height:18px; }
 .join-tariffs .join-has-card-note .tariffs-item-main { padding-bottom:10px; }
 .join-tariffs .tariffs-info { font-size:16px; line-height:24px; }
 .join-tariffs .tariffs-info-label { font-size:inherit; line-height:inherit; color:inherit; margin-bottom:6px; }
 .join-tariffs .tariffs-info-value { color:#2B2D2F; font-size:16px; font-weight:400; line-height:24px; }
 .theme-dark .join-tariffs .tariffs-info-value { color:#C1C3C7; }
 .join-tariffs .tariffs-info-value p + p { margin-top:6px; }
 .join-tariffs .tariffs-info-value .join-tariff-or { color:#979AA0; font-size:14px; position:relative; top:1px; }
}
@media (max-width:767.98px) {
 .join-tariffs .tariffs-item { padding:12px; min-width:0; }
 .join-tariffs .tariffs-item-main { padding-bottom:8px; }
 .join-tariffs .tariffs-info { padding-top:8px; }
 .join-tariffs .tariffs-row { gap:16px; }
 .join-tariffs .join-card-note { margin-top:6px; font-size:11px; line-height:16px; }
 .join-tariffs .join-tariff-or { color:#979AA0; }
}
@media (min-width:768px) and (max-width:1199.98px) {
 .join-tariffs .tariffs-info { gap:12px; font-size:14px; line-height:21px; }
 .join-tariffs .tariffs-info-item { flex-basis:calc((100% - 12px)/2); gap:8px; }
 .join-tariffs .tariffs-info-value { font-size:14px; line-height:21px; }
 .join-tariffs .tariffs-info-value .join-tariff-or { font-size:12px; }
}
@media (min-width:768px) and (max-width:991.98px) {
 .join-tariffs .tariffs-item { flex-basis:100%; }
}
