:root {
  --ink: #101217;
  --muted: #667085;
  --line: #eceff3;
  --soft: #f7f8fb;
  --gold: #c9a45c;
  --shadow: 0 24px 70px rgba(16, 18, 23, 0.08);
  --site-header-h: 72px;

  /*
   * Remove Chrome / Edge default blue focus ring and muted autofill tint site-wide.
   * Custom shells (e.g. .topup-money-field:focus-within) keep their own affordance on parents.
   */
  --ua-autofill-mask: #fff;

  --scrollbar-track: #eef0f3;
  --scrollbar-thumb: rgba(201, 164, 92, 0.48);
  --scrollbar-thumb-hover: rgba(201, 164, 92, 0.72);
}

/* Custom scrollbars site-wide (Firefox + Chromium/WebKit) */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scroll-padding-top: calc(var(--site-header-h, 72px) + 12px);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}

button:focus,
button:focus-visible,
input:focus,
input:focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible,
.form-control:focus,
.form-control:focus-visible,
.form-select:focus,
.form-select:focus-visible,
.form-check-input:focus,
.form-check-input:focus-visible {
  box-shadow: none !important;
  outline: none !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
  -webkit-text-fill-color: var(--ink) !important;
  box-shadow: 0 0 0 1000px var(--ua-autofill-mask) inset !important;
  caret-color: var(--ink);
  transition: background-color 99999s ease-out 0s;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 164, 92, 0.14), transparent 28rem),
    radial-gradient(circle at 86% 12%, rgba(61, 91, 255, 0.08), transparent 24rem),
    #fff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-top: var(--site-header-h, 72px);
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

.navbar {
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(16, 18, 23, 0.03);
}

/* Фиксированная шапка + плавное скрытие при прокрутке вниз */
.site-header {
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1030;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.site-header .site-navbar {
  position: relative;
  z-index: 2;
}

.site-header--elevated .site-navbar {
  box-shadow: 0 12px 40px rgba(16, 18, 23, 0.06);
}

.site-header--concealed {
  pointer-events: none;
  transform: translate3d(0, -100%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }

  .site-header--concealed {
    transform: none;
    pointer-events: auto;
  }
}

.navbar .nav-link {
  border-radius: 999px;
  padding: 0.42rem 0.95rem !important;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.navbar .nav-link.active {
  background: rgba(201, 164, 92, 0.22);
  color: var(--ink) !important;
  font-weight: 650;
}

.navbar .navbar-nav .nav-link:hover:not(.active) {
  color: var(--gold);
}

.site-navbar .site-navbar-toggler {
  border: 1px solid rgba(16, 18, 23, 0.12);
  border-radius: 14px;
  padding: 0.45rem 0.55rem;
}

.site-navbar .site-navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.28);
}

.site-navbar .site-navbar-collapse .dropdown-divider.site-navbar-split {
  border-color: rgba(16, 18, 23, 0.1);
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

@media (max-width: 991.98px) {
  /* Верхняя строка — сетка, меню — отдельная строка под ней (логотип не absolute) */
  .site-navbar .site-navbar-container {
    position: relative;
  }

  .site-navbar .site-navbar-bar {
    align-items: center;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    width: 100%;
  }

  .site-navbar .site-navbar-bar > .site-navbar-brand {
    grid-column: 2;
    justify-self: center;
    margin: 0;
    position: static;
    transform: none;
    z-index: auto;
  }

  .site-navbar .site-navbar-bar > .site-navbar-toggler {
    grid-column: 3;
    justify-self: end;
    margin-left: 0;
    position: relative;
    z-index: 2;
  }

  .site-navbar .site-navbar-bar > .site-navbar-collapse {
    grid-column: 1 / -1;
    width: 100%;
  }

  .site-navbar .navbar-collapse.site-navbar-collapse {
    border-top: 1px solid var(--line);
    margin-top: 0.5rem;
    padding-bottom: 0.875rem;
    padding-top: 1rem;
  }

  .site-navbar .site-navbar-collapse .navbar-nav.site-navbar-nav {
    align-items: stretch;
    gap: 0.2rem;
    width: 100%;
  }

  .site-navbar .site-navbar-collapse .nav-item:not([role='presentation']) {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .site-navbar .site-navbar-collapse .nav-item .nav-link {
    align-items: center;
    border-radius: 14px;
    box-sizing: border-box;
    color: var(--ink);
    display: flex;
    font-size: 1.02rem;
    font-weight: 520;
    line-height: 1.35;
    min-height: 2.875rem;
    padding: 0.65rem 1rem !important;
    width: 100%;
  }

  .site-navbar .site-navbar-collapse .nav-item .nav-link:not(.active) {
    color: var(--muted);
  }

  .site-navbar .site-navbar-collapse .nav-item .nav-link.active {
    background: rgba(201, 164, 92, 0.2);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.38),
      0 6px 20px rgba(201, 164, 92, 0.12);
    color: var(--ink) !important;
    font-weight: 650;
  }

  .site-navbar .site-navbar-actions {
    align-self: stretch;
    margin-top: 0.15rem;
  }

  .site-navbar .site-navbar-logout-form,
  .site-navbar .site-navbar-login-btn {
    width: 100%;
  }

  .site-navbar .site-navbar-login-btn {
    border-radius: 14px !important;
    font-weight: 600;
    min-height: 2.875rem;
    padding: 0.7rem 1rem;
  }

  .site-navbar .site-navbar-logout-btn {
    border-radius: 14px !important;
    font-weight: 600;
    min-height: 2.875rem;
    padding: 0.65rem 1rem;
    width: 100%;
  }
}

@media (min-width: 992px) {
  .site-navbar .site-navbar-bar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  .site-navbar .site-navbar-bar > .site-navbar-collapse {
    flex-basis: auto;
    flex-grow: 1;
    width: auto;
  }

  .site-navbar .site-navbar-logout-btn {
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    min-height: 0;
    padding: 0.36rem 0.92rem !important;
    width: auto;
  }

  .site-navbar .site-navbar-login-btn {
    border-radius: 999px !important;
    min-height: 0;
    padding: 0.45rem 1.35rem !important;
    width: auto;
  }

  .site-navbar .site-navbar-logout-form {
    width: auto;
  }

  .site-navbar .site-navbar-actions {
    width: auto;
  }
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, #111, #444);
  border-radius: 16px;
  color: #fff;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.site-logo {
  flex-shrink: 0;
  object-fit: contain;
}

/* Марка в шапке: только logo_small */
a.site-navbar-brand {
  align-items: center;
  display: inline-flex;
  padding: 0.2rem 0;
  text-decoration: none;
  transition: opacity 0.18s ease;
}

a.site-navbar-brand,
a.site-navbar-brand:visited {
  color: inherit;
}

.navbar a.site-navbar-brand:hover {
  color: inherit;
  opacity: 0.85;
}

a.site-navbar-brand:focus-visible {
  border-radius: 12px;
  outline: 2px solid rgba(16, 18, 23, 0.35);
  outline-offset: 4px;
}

.site-logo--navbar {
  display: block;
  height: 40px;
  width: 40px;
}

.flash-toast-strip {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

@keyframes flash-banner-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flash-banner {
  animation: flash-banner-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  align-items: flex-start;
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(16, 18, 23, 0.04),
    0 16px 48px rgba(16, 18, 23, 0.07);
  display: flex;
  gap: 0.85rem;
  justify-content: flex-start;
  margin-bottom: 0;
  padding: 0.9rem 1rem 0.95rem;
}

.flash-banner__icon {
  align-items: center;
  align-self: flex-start;
  border-radius: 14px;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 1.08rem;
  height: 2.5rem;
  justify-content: center;
  margin-top: 2px;
  width: 2.5rem;
}

.flash-banner__text {
  color: var(--ink);
  flex: 1 1 auto;
  font-size: 0.935rem;
  font-weight: 550;
  line-height: 1.45;
  margin: 0;
  max-width: 100%;
  min-width: 0;
  white-space: pre-line;
}

.flash-banner__text .flash-banner__link,
.flash-banner__text a.flash-banner__link {
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.flash-banner__text .flash-banner__link:hover,
.flash-banner__text a.flash-banner__link:hover {
  opacity: 0.88;
}

.flash-banner__text .flash-banner__link:focus-visible,
.flash-banner__text a.flash-banner__link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--gold) 55%, var(--ink));
  outline-offset: 2px;
  border-radius: 2px;
}

.flash-banner__dismiss {
  align-items: center;
  align-self: flex-start;
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: inherit;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 1rem;
  height: 2rem;
  justify-content: center;
  margin-top: 2px;
  opacity: 0.62;
  padding: 0;
  width: 2rem;
}

.flash-banner__text + .flash-banner__dismiss {
  margin-left: auto;
}

.flash-banner__dismiss:hover {
  background: rgba(16, 18, 23, 0.06);
  opacity: 1;
}

.flash-banner__dismiss:focus-visible {
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.35);
  outline: none;
}

.flash-banner--danger {
  background: linear-gradient(160deg, #fffbfb 0%, #fff5f6 52%, #ffebee 100%);
  border: 1px solid rgba(192, 80, 80, 0.28);
}

.flash-banner--danger .flash-banner__icon {
  background: rgba(176, 64, 64, 0.12);
  color: #9b2d2f;
}

.flash-banner--success {
  background: linear-gradient(160deg, #f7fdf9 0%, #eef8f2 52%, #e8f5ec 100%);
  border: 1px solid rgba(74, 140, 90, 0.32);
}

.flash-banner--success .flash-banner__icon {
  background: rgba(62, 120, 74, 0.14);
  color: #2d6840;
}

.flash-banner--warning {
  background: linear-gradient(160deg, rgba(255, 252, 245, 1) 0%, rgba(252, 246, 232, 1) 50%, rgba(248, 238, 216, 0.98) 100%);
  border: 1px solid rgba(201, 164, 92, 0.45);
}

.flash-banner--warning .flash-banner__icon {
  background: rgba(201, 164, 92, 0.2);
  color: #7a622c;
}

.flash-banner--info {
  background: linear-gradient(160deg, #f8faff 0%, #f0f5fc 52%, #e8eef8 100%);
  border: 1px solid rgba(90, 112, 180, 0.28);
}

.flash-banner--info .flash-banner__icon {
  background: rgba(90, 112, 180, 0.14);
  color: #3d4f8f;
}

@media (prefers-reduced-motion: reduce) {
  .flash-banner {
    animation: none;
  }

  .flash-toast-strip {
    transition: none;
  }
}

.account-page,
.auth-page {
  padding: 88px 0;
}

.hero-section,
.page-hero {
  padding: clamp(44px, 6vw, 72px) 0;
}

.hero-section {
  min-height: 0;
}

.eyebrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #7a622c;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.45rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  padding: 0.55rem 0.85rem;
  text-transform: uppercase;
}

.glass-card,
.service-card,
.pricing-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 32px;
}

.hero-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 251, 0.92)),
    #fff;
}

.hero-card-header,
.hero-stats {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.prompt-box {
  background: #111;
  border-radius: 24px;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 24px 0;
  padding: 28px;
}

.model-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.model-list div {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr auto;
  padding: 12px 14px;
}

.model-list i,
.feature-list i {
  color: var(--gold);
}

.hero-stats {
  border-top: 1px solid var(--line);
  gap: 18px;
  margin-top: 40px;
  padding-top: 28px;
}

.hero-stats div {
  display: grid;
}

.hero-stats strong {
  font-size: 1.6rem;
}

.hero-stats span,
.service-card p,
.step-card p,
.sandbox-card small {
  color: var(--muted);
}

.section {
  padding: clamp(28px, 3.5vw, 48px) 0;
}

.section-heading {
  margin: 0 auto clamp(24px, 4vw, 34px);
  max-width: 760px;
  text-align: center;
}

.section-heading h1,
.section-heading h2 {
  font-weight: 800;
  margin-top: 18px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.1rem;
}

.service-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 30px 90px rgba(16, 18, 23, 0.12);
  transform: translateY(-6px);
}

.service-card.service-card--catalog-link {
  color: inherit;
  display: flex;
  flex-direction: column;
  outline: none;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.service-card.service-card--catalog-link:hover {
  border-color: rgba(201, 164, 92, 0.35);
  box-shadow: 0 20px 48px rgba(16, 18, 23, 0.1);
  color: inherit;
  transform: translateY(-4px);
}

.service-card.service-card--catalog-link:focus-visible {
  border-color: var(--gold);
  box-shadow:
    0 0 0 3px rgba(201, 164, 92, 0.28),
    0 20px 48px rgba(16, 18, 23, 0.08);
}

.service-card-catalog-foot {
  align-items: center;
  border-top: 1px solid rgba(16, 18, 23, 0.08);
  display: flex;
  flex-shrink: 0;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
}

.service-card.service-card--catalog-link:hover .sandbox-card-link-arrow {
  background: rgba(255, 252, 245, 0.95);
  border-color: rgba(201, 164, 92, 0.45);
  color: var(--gold);
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .service-card.service-card--catalog-link,
  .service-card.service-card--catalog-link:hover {
    transition: none;
    transform: none;
  }

  .service-card.service-card--catalog-link:hover .sandbox-card-link-arrow {
    transform: none;
  }
}

.home-page .service-card--landing {
  background:
    linear-gradient(168deg, rgba(255, 255, 255, 0.96) 0%, rgba(252, 252, 254, 0.99) 42%, rgba(247, 248, 252, 1) 100%);
  border: 1px solid rgba(16, 18, 23, 0.07);
  display: flex;
  flex-direction: column;
}

.home-page .service-card--landing:hover {
  border-color: rgba(201, 164, 92, 0.42);
  box-shadow:
    0 0 0 1px rgba(201, 164, 92, 0.12),
    0 28px 76px rgba(16, 18, 23, 0.1);
  transform: translateY(-5px);
}

.home-page .service-card-landing-head {
  align-items: flex-start;
  display: flex;
  gap: 0.85rem;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.home-page .service-card--landing .service-icon {
  margin-bottom: 0;
}

.home-page .service-card-landing-cat {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  line-height: 1.2;
  padding: 0.35rem 0.65rem;
  text-transform: uppercase;
}

.home-page .service-card-landing-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0.65rem 0 0.5rem;
}

.home-page .service-card-landing-desc {
  flex: 1 1 auto;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 1rem;
  min-height: 0;
}

.home-page .service-card-landing-foot {
  align-items: center;
  border-top: 1px dashed rgba(16, 18, 23, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.05rem;
}

.home-page .service-card--landing.service-card--landing-link {
  color: inherit;
  outline: none;
  text-decoration: none;
}

.home-page .service-card--landing.service-card--landing-link:focus-visible {
  border-color: var(--gold);
  box-shadow:
    0 0 0 3px rgba(201, 164, 92, 0.25),
    0 28px 76px rgba(16, 18, 23, 0.1);
}

.home-page .service-card--landing.service-card--landing-link:hover .sandbox-card-link-arrow {
  background: rgba(255, 252, 245, 0.95);
  border-color: rgba(201, 164, 92, 0.45);
  color: var(--gold);
  transform: translateX(3px);
}

.home-page .service-card-landing-price {
  background: linear-gradient(165deg, rgba(255, 252, 245, 0.98) 0%, rgba(252, 246, 232, 1) 45%, rgba(248, 238, 216, 0.97) 100%);
  border: 1px solid rgba(201, 164, 92, 0.35);
  border-radius: 999px;
  color: #6b5424;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.38rem 0.75rem 0.42rem 0.85rem;
}

.home-page .service-card-landing-cta {
  align-items: center;
  background: linear-gradient(180deg, #15171c 0%, #101217 100%);
  border: 1px solid rgba(16, 18, 23, 0.6);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 24px rgba(16, 18, 23, 0.15);
  color: #fff;
  column-gap: 0.42rem;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 650;
  padding: 0.48rem 1rem 0.48rem 1.08rem;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.home-page .service-card-landing-cta:hover {
  border-color: rgba(201, 164, 92, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(201, 164, 92, 0.15),
    0 14px 32px rgba(16, 18, 23, 0.18);
  color: #fff;
  transform: translateY(-2px);
}

.home-page .service-card-landing-cta:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 3px rgba(201, 164, 92, 0.35);
  outline: none;
}

.home-page .service-card-landing-cta i {
  font-size: 0.75rem;
  transition: transform 0.18s ease;
}

.home-page .service-card-landing-cta:hover i {
  transform: translateX(4px);
}

/* ——— Главная: появление блоков по скроллу ——— */
.home-section--steps .home-step-card {
  transition:
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.home-section--steps .home-step-card:hover {
  box-shadow: 0 20px 50px rgba(16, 18, 23, 0.08);
  transform: translateY(-4px);
}

/* Главная: «Как это работает» — цепочка и стрелки туда-сюда */
.home-page .home-steps-flow {
  width: 100%;
}

.home-page .home-steps-flow__track {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.05rem;
}

.home-page .home-steps-flow__node {
  flex: 1 1 0;
  min-width: 0;
  max-width: 15.75rem;
  position: relative;
  z-index: 1;
}

.home-page .home-step-card--flow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0.32rem 0.55rem;
  align-items: start;
  height: 100%;
  margin: 0;
  padding: 1.3rem 1.2rem 1.35rem;
  border-radius: 22px;
  border: 1px solid var(--home-card-line);
  background: var(--home-card-surface);
  box-shadow: var(--home-card-shade);
  overflow: hidden;
}

.home-page .home-step-card--flow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201, 164, 92, 0.32) 50%, transparent);
  pointer-events: none;
}

.home-page .home-step-card--flow > .home-step-card__ico {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(201, 164, 92, 0.13);
  color: color-mix(in srgb, var(--gold, #c9a45c) 72%, #2a2210);
  font-size: 0.88rem;
}

.home-page .home-step-card--flow > span:not(.home-step-card__ico) {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  margin: 0;
  color: var(--gold);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.home-page .home-step-card--flow > strong {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.home-page .home-step-card--flow > p {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.52;
  color: var(--muted);
}

.home-page .home-steps-flow__join {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  align-self: center;
  padding: 0 0.35rem;
  color: color-mix(in srgb, var(--gold, #c9a45c) 58%, var(--ink));
  z-index: 0;
}

.home-page .home-steps-flow__join--fwd {
  flex-direction: row;
}

.home-page .home-steps-flow__join--back {
  flex-direction: row;
}

.home-page .home-steps-flow__rail {
  display: block;
  width: clamp(1.15rem, 3.8vw, 2.6rem);
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(201, 164, 92, 0.12), rgba(201, 164, 92, 0.78));
}

.home-page .home-steps-flow__join--back .home-steps-flow__rail {
  background: linear-gradient(270deg, rgba(201, 164, 92, 0.12), rgba(201, 164, 92, 0.78));
}

.home-page .home-steps-flow__chev {
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  opacity: 0.88;
  line-height: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .home-page .home-steps-flow__join--fwd .home-steps-flow__chev {
    animation: homeStepChevRight 1.9s ease-in-out infinite;
  }

  .home-page .home-steps-flow__join--back .home-steps-flow__chev {
    animation: homeStepChevLeft 1.9s ease-in-out infinite;
  }
}

/* Сдвиг в сторону рельса (от карточки), а не внутрь неё */
@keyframes homeStepChevRight {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.62;
  }

  50% {
    transform: translateX(-2px);
    opacity: 1;
  }
}

@keyframes homeStepChevLeft {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.62;
  }

  50% {
    transform: translateX(2px);
    opacity: 1;
  }
}

@keyframes homeStepChevTowardRailUp {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.62;
  }

  50% {
    transform: translateY(-2px);
    opacity: 1;
  }
}

@keyframes homeStepChevTowardRailDown {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.62;
  }

  50% {
    transform: translateY(2px);
    opacity: 1;
  }
}

.home-page .home-steps-flow__note {
  margin-top: 1.2rem;
  text-align: center;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.48;
}

@media (max-width: 991.98px) {
  .home-page .home-steps-flow__track {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .home-page .home-steps-flow__node {
    flex: none;
    max-width: 22rem;
    width: 100%;
  }

  .home-page .home-steps-flow__join {
    padding: 0.35rem 0;
    flex-direction: column;
  }

  .home-page .home-steps-flow__rail {
    width: 3px;
    height: 1.2rem;
    background: linear-gradient(180deg, rgba(201, 164, 92, 0.15), rgba(201, 164, 92, 0.82));
  }

  .home-page .home-steps-flow__join--back .home-steps-flow__rail {
    background: linear-gradient(0deg, rgba(201, 164, 92, 0.15), rgba(201, 164, 92, 0.82));
  }

  .home-page .home-steps-flow__join--fwd .home-steps-flow__chev i,
  .home-page .home-steps-flow__join--back .home-steps-flow__chev i {
    display: block;
    transform: rotate(90deg);
  }

  @media (prefers-reduced-motion: no-preference) {
    .home-page .home-steps-flow__join--fwd .home-steps-flow__chev {
      animation: homeStepChevTowardRailUp 1.9s ease-in-out infinite;
    }

    .home-page .home-steps-flow__join--back .home-steps-flow__chev {
      animation: homeStepChevTowardRailDown 1.9s ease-in-out infinite;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-steps-flow__join--fwd .home-steps-flow__chev,
  .home-page .home-steps-flow__join--back .home-steps-flow__chev {
    animation: none !important;
    opacity: 0.9 !important;
    transform: none !important;
  }
}

.home-page .hero-card--premium {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(201, 164, 92, 0.14),
    0 28px 70px rgba(16, 18, 23, 0.11),
    var(--shadow);
}

.home-page .hero-card--premium.glass-card {
  padding: clamp(0.85rem, 2.2vw, 1.2rem);
}

.home-page .hero-card--bento {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.home-page .hero-bento-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.home-page .hero-bento-live {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.home-page .hero-bento-pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(145deg, #34d399, #059669);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.28);
  animation: heroBentoPulse 2.1s ease-in-out infinite;
}

@keyframes heroBentoPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.28);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.15);
    box-shadow: 0 0 0 9px rgba(52, 211, 153, 0.07);
  }
}

.home-page .hero-bento-live-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.home-page .hero-bento-eyebrow {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(122, 98, 44, 0.88);
}

.home-page .hero-bento-title {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.home-page .hero-bento-catalog-link {
  flex-shrink: 0;
  font-size: 0.76rem;
  font-weight: 750;
  color: var(--ink);
  text-decoration: none;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 18, 23, 0.1);
  background: rgba(255, 255, 255, 0.92);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.home-page .hero-bento-catalog-link:hover {
  border-color: rgba(201, 164, 92, 0.48);
  background: rgba(201, 164, 92, 0.09);
  color: color-mix(in srgb, var(--gold, #c9a45c) 52%, var(--ink));
}

.home-page .hero-bento-prompt {
  position: relative;
  border-radius: 16px;
  padding: 0.52rem 0.72rem 0.55rem;
  background: #121318;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.home-page .hero-bento-prompt::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 58%, rgba(201, 164, 92, 0.09) 100%);
  pointer-events: none;
}

.home-page .hero-bento-prompt-top {
  margin-bottom: 0.25rem;
}

.home-page .hero-bento-prompt-tag {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.home-page .hero-bento-prompt-text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.42;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-page .hero-chip-rail-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.home-page .hero-chip-rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(122, 98, 44, 0.9);
}

.home-page .hero-chip-rail-hint {
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}

.home-page .hero-chip-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.42rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.15rem 0 0.4rem;
  margin: 0 -0.1rem;
  padding-left: 0.1rem;
  padding-right: 0.1rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
  scrollbar-width: thin;
}

.home-page .hero-chip-rail::-webkit-scrollbar {
  height: 4px;
}

.home-page .hero-chip-rail::-webkit-scrollbar-thumb {
  background: rgba(16, 18, 23, 0.2);
  border-radius: 99px;
}

.home-page .hero-model-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  max-width: 11.25rem;
  min-width: 0;
  padding: 0.38rem 0.5rem 0.38rem 0.42rem;
  border-radius: 14px;
  border: 1px solid rgba(16, 18, 23, 0.08);
  background: linear-gradient(180deg, #fff 0%, rgba(248, 249, 252, 0.96) 100%);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.2s ease;
}

.home-page .hero-model-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 164, 92, 0.42);
  box-shadow: 0 10px 24px rgba(16, 18, 23, 0.07);
}

.home-page .hero-model-chip__logo {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.home-page .hero-model-chip__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-page .hero-model-chip__logo--ico {
  background: rgba(201, 164, 92, 0.16);
  color: var(--gold);
  font-size: 0.72rem;
}

.home-page .hero-model-chip__meta {
  display: flex;
  flex-direction: column;
  gap: 0.04rem;
  min-width: 0;
}

.home-page .hero-model-chip__name {
  font-size: 0.71rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-page .hero-model-chip__price {
  font-size: 0.64rem;
  font-weight: 800;
  color: rgba(16, 18, 23, 0.52);
  font-variant-numeric: tabular-nums;
}

.home-page .hero-model-chip--more {
  max-width: none;
  border-style: dashed;
  background: rgba(201, 164, 92, 0.07);
  justify-content: center;
  padding-inline: 0.72rem;
}

.home-page .hero-model-chip--more:hover {
  background: rgba(201, 164, 92, 0.14);
}

.home-page .hero-model-chip__more-inner {
  font-size: 0.71rem;
  font-weight: 800;
  white-space: nowrap;
  color: color-mix(in srgb, var(--gold, #c9a45c) 62%, var(--ink));
}

.home-page .hero-card-cta--bento {
  margin-top: 0.05rem;
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero-bento-pulse {
    animation: none;
  }

  .home-page .hero-model-chip,
  .home-page .hero-model-chip:hover {
    transition: none;
    transform: none;
  }
}

.home-page .hero-card--premium::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    125deg,
    rgba(201, 164, 92, 0.45),
    rgba(255, 255, 255, 0.12) 34%,
    rgba(201, 164, 92, 0.22) 62%,
    rgba(255, 255, 255, 0.35) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
   linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
  z-index: 0;
}

.home-page .hero-card--premium > * {
  position: relative;
  z-index: 1;
}

.home-page .hero-card--premium .hero-card-header {
  align-items: flex-start;
  gap: 1rem;
}

.home-page .hero-card-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.home-page .hero-card-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(122, 98, 44, 0.88);
}

.home-page .hero-card-heading {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.home-page .hero-card-sub {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 22rem;
}

.home-page .hero-card-header-badge {
  flex-shrink: 0;
  width: 2.85rem;
  height: 2.85rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(201, 164, 92, 0.22), rgba(201, 164, 92, 0.08));
  border: 1px solid rgba(201, 164, 92, 0.35);
  color: var(--gold);
  font-size: 1.15rem;
  box-shadow: 0 10px 28px rgba(201, 164, 92, 0.15);
}

.home-page .hero-prompt-block {
  margin-top: 0.5rem;
}

.home-page .hero-prompt-block--compact {
  margin-top: 0.35rem;
}

.home-page .hero-prompt-label--compact {
  margin: 0 0 0.42rem;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.home-page .hero-prompt-label--compact strong {
  display: inline;
  margin-bottom: 0;
  font-weight: 800;
}

.home-page .prompt-box--hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  margin: 0;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(201, 164, 92, 0.12) inset,
    0 18px 40px rgba(0, 0, 0, 0.35);
}

.home-page .prompt-box--hero .prompt-box__text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  font-weight: 500;
}

.home-page .prompt-box__aurora {
  position: absolute;
  inset: -40% -30%;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(201, 164, 92, 0.12) 42%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(201, 164, 92, 0.1) 58%,
    transparent 75%
  );
  animation: homeHeroAurShift 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes homeHeroAurShift {
  0%,
  100% {
    transform: translate3d(-8%, 0, 0) rotate(0deg);
    opacity: 0.75;
  }
  50% {
    transform: translate3d(10%, 4%, 0) rotate(2deg);
    opacity: 1;
  }
}

@keyframes homeHeroPremiumGlow {
  0%,
  100% {
    opacity: 0.72;
    filter: hue-rotate(0deg);
  }
  50% {
    opacity: 0.95;
    filter: hue-rotate(8deg);
  }
}

.home-page .hero-prompt-translate {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  background: rgba(16, 18, 23, 0.035);
  border: 1px solid rgba(16, 18, 23, 0.06);
}

.home-page .hero-models-cap--compact {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.55rem 0 0.45rem;
  padding-top: 0.45rem;
}

.home-page .hero-models-cap--compact .hero-models-cap__line {
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.4;
  color: var(--muted);
}

.home-page .hero-models-cap--compact .hero-models-cap__line strong {
  color: var(--ink);
  font-weight: 800;
}

.home-page .home-hero-text-ai-note {
  max-width: 42rem;
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  background: rgba(201, 164, 92, 0.09);
  border: 1px solid rgba(201, 164, 92, 0.2);
}

/* Главная: единые токены — ровные карточки и мягкий wash секций без «ляп» */
.home-page {
  --home-wash-1: rgba(218, 228, 240, 0.26);
  --home-wash-2: rgba(205, 218, 236, 0.18);
  --home-card-surface: #fff;
  --home-card-line: rgba(16, 18, 23, 0.08);
  --home-card-shade: 0 10px 40px rgba(16, 18, 23, 0.055);
}

/* Hero: две колонки — текст | девушка + блок каталога */
.home-page .hero-section--home {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 95% 70% at 78% 12%, rgba(201, 164, 92, 0.09) 0%, transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 248, 252, 0.55) 100%);
}

/* Подложка героя: статичные пятна — их смягчает слой backdrop-blur */
.home-page .hero-section--home::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 72% 52% at 76% 14%, rgba(201, 164, 92, 0.12) 0%, transparent 58%),
    radial-gradient(ellipse 58% 44% at 14% 78%, rgba(125, 160, 220, 0.1) 0%, transparent 62%);
}

/* Матовое стекло на герое: без выреза маски — ровный слой по всей секции */
.home-page .hero-section--home .home-atmos {
  mask-image: none;
  -webkit-mask-image: none;
  background: rgba(252, 253, 255, 0.34);
  -webkit-backdrop-filter: blur(28px) saturate(112%);
  backdrop-filter: blur(28px) saturate(112%);
}

.home-page .home-atmos {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: rgba(252, 253, 255, 0.38);
  -webkit-backdrop-filter: blur(52px) saturate(118%);
  backdrop-filter: blur(52px) saturate(118%);
}

.home-page .home-atmos::before,
.home-page .home-atmos::after {
  display: none;
}

.home-page .hero-section--home > .container {
  position: relative;
  z-index: 1;
}

/* Блок «Сценарии» + приложение: тот же вертикальный градиент, мягкий wash в ::before (см. выше) */
.home-page .home-section--story {
  position: relative;
  overflow: hidden;
  padding-top: clamp(36px, 5vw, 56px);
  padding-bottom: clamp(28px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(247, 248, 252, 0.55) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.home-page .home-section--story::before,
.home-page .home-section--app-download::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 32% 20%, var(--home-wash-1) 0%, transparent 56%),
    radial-gradient(ellipse 64% 48% at 88% 72%, var(--home-wash-2) 0%, transparent 58%);
}

/* Лендинг: герой — ссылка на блок приложения */
.home-page .home-hero-app-hint {
  max-width: 36rem;
}

.home-page .home-hero-app-hint__a {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0;
  border-radius: 999px;
  transition: color 0.2s ease;
}

.home-page .home-hero-app-hint__a:hover {
  color: var(--ink);
}

.home-page .home-hero-app-hint__a:hover .home-hero-app-hint__em {
  color: #9a7a3d;
}

.home-page .home-hero-app-hint__ico {
  display: inline-flex;
  color: rgba(201, 164, 92, 0.85);
  font-size: 1rem;
}

.home-page .home-hero-app-hint__text {
  line-height: 1.4;
}

.home-page .home-hero-app-hint__em {
  font-style: normal;
  font-weight: 650;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

.home-page .home-hero-app-hint__chev {
  font-size: 0.65rem;
  opacity: 0.55;
  margin-left: 0.1rem;
}

.home-page .home-store-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.home-page .home-store-badge-row--compact {
  gap: 0.6rem;
}

.home-page .home-store-badge-row--compact .home-store-link {
  min-height: 48px;
  padding: 0.4rem 0.95rem 0.4rem 0.65rem;
  border-radius: 12px;
}

.home-page .home-store-badge-row--compact .home-store-link__ico {
  width: 2.15rem;
  height: 2.15rem;
  font-size: 1.35rem;
}

.home-page .home-store-badge-row--compact .home-store-link__ico--rustore {
  font-size: 0.72rem;
}

.home-page .home-store-badge-row--compact .home-store-link__kicker {
  font-size: 0.58rem;
}

.home-page .home-store-badge-row--compact .home-store-link__title {
  font-size: 0.82rem;
}

.home-page .home-store-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 54px;
  padding: 0.45rem 1.1rem 0.45rem 0.72rem;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 10px 28px rgba(16, 18, 23, 0.12);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.home-page .home-store-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(16, 18, 23, 0.16);
  color: #fff;
  filter: brightness(1.03);
}

.home-page .home-store-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.home-page button.home-store-link {
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  width: auto;
  max-width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.home-page .home-store-link--google {
  background: linear-gradient(180deg, #1f1f1f 0%, #0d0d0d 100%);
  border-color: rgba(255, 255, 255, 0.12);
}

/* RuStore: фирменный синий бренда (медиакит — #0077FF) */
.home-page .home-store-link--rustore {
  background: linear-gradient(145deg, #2d8fff 0%, #0077ff 48%, #0063d4 100%);
  border-color: rgba(255, 255, 255, 0.22);
}

.home-page .home-store-link__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.55rem;
}

.home-page .home-store-link--google .home-store-link__ico {
  background: rgba(255, 255, 255, 0.1);
}

.home-page .home-store-link__ico--rustore {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.home-page .home-store-link__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  gap: 0.06rem;
}

.home-page .home-store-link__kicker {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.88;
}

.home-page .home-store-link__title {
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.home-page .home-section--app-download {
  position: relative;
  overflow: hidden;
  padding-top: clamp(36px, 5vw, 56px);
  padding-bottom: clamp(28px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(247, 248, 252, 0.55) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.home-page .home-section--app-download > .container {
  position: relative;
  z-index: 1;
}

.home-page .home-section--app-download .eyebrow {
  background: transparent;
  border-color: rgba(16, 18, 23, 0.1);
  color: #4a4e56;
  box-shadow: none;
}

.home-page .home-app-download-note {
  max-width: 28rem;
}

.home-page .home-app-download-stores {
  max-width: 28rem;
}

.home-page .home-app-download-stores__eyebrow {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.home-page .home-app-download-panel {
  position: relative;
  border-radius: 22px;
  background: var(--home-card-surface);
  border: 1px solid var(--home-card-line);
  box-shadow: var(--home-card-shade);
}

.home-page .home-app-download-panel__inner {
  position: relative;
  z-index: 1;
  border-radius: 21px;
  padding: clamp(1.15rem, 3vw, 1.65rem);
  background: transparent;
  border: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.home-page .home-app-download-panel__row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(16, 18, 23, 0.06);
}

.home-page .home-app-download-panel__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.home-page .home-app-download-panel__row:first-child {
  padding-top: 0.2rem;
}

.home-page .home-app-download-panel__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: rgba(201, 164, 92, 0.14);
  color: #9a7a3d;
  font-size: 1rem;
}

.home-page .home-app-download-panel__t {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.28rem;
  color: var(--ink);
}

.home-page .home-app-download-panel__p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 575.98px) {
  .home-page .home-store-badge-row {
    flex-direction: column;
    align-items: stretch;
  }

  .home-page .home-store-link {
    width: 100%;
    max-width: 20rem;
  }
}

.home-page .home-hero-col--copy {
  position: relative;
  z-index: 2;
}

.home-page .home-hero-shelf-col {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.home-page .home-shelf-stack--in-hero {
  --hero-shelf-overlap: clamp(3.1rem, 10vw, 5.75rem);
  --hero-shelf-figure-w: min(118%, 560px);
  max-width: min(100%, 440px);
  margin-left: auto;
  margin-right: 0;
}

/* Композиция героя: фигура и карточка в колонке; перекрытие через один токен, без отрицательных margin у clip */
.home-page .home-shelf-hero-composite {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.home-page .home-shelf-hero-composite__figure {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin-bottom: calc(-1 * var(--hero-shelf-overlap));
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.home-page .home-shelf-hero-composite__card {
  position: relative;
  z-index: 3;
}

.home-page .home-shelf-stack--in-hero .home-shelf-lean {
  width: var(--hero-shelf-figure-w);
  max-width: none;
  margin: 0;
}

.home-page .home-shelf-stack--in-hero .home-shelf-lean__clip {
  -webkit-mask-image: none;
  mask-image: none;
  overflow: visible;
  margin: 0;
  line-height: 0;
}

.home-page .home-shelf-stack--in-hero .home-shelf-lean__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(460px, 56vh);
  object-fit: contain;
  object-position: bottom center;
  transform: none;
  filter: none;
}

.home-page .home-shelf-bento-card.glass-card {
  position: relative;
  z-index: 3;
  padding: clamp(0.55rem, 1.4vw, 0.78rem) !important;
  box-shadow: none;
}

.home-page .home-shelf-bento-card.hero-card--bento {
  gap: 0.48rem;
}

.home-page .home-shelf-bento-top {
  justify-content: flex-start;
  padding: clamp(0.45rem, 1.5vw, 0.7rem) clamp(0.28rem, 1.1vw, 0.45rem)
    clamp(0.6rem, 1.8vw, 0.95rem);
  border-bottom: 1px solid rgba(16, 18, 23, 0.06);
}

.home-page .home-shelf-bento-top .hero-bento-live {
  align-items: flex-start;
  gap: 0.58rem;
}

.home-page .home-shelf-bento-top .hero-bento-live-text {
  gap: 0.14rem;
}

.home-page .home-shelf-bento-top .hero-bento-pulse {
  margin-top: 0.32rem;
}

.home-page .home-shelf-bento-card .hero-bento-title {
  font-size: 0.86rem;
}

.home-page .home-shelf-bento-prompt {
  position: relative;
  box-shadow: none;
}

.home-page .home-shelf-bento-prompt::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(201, 164, 92, 0.35), transparent 42%, rgba(80, 140, 255, 0.12));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.65;
}

.home-page .home-shelf-bento-card .hero-bento-prompt {
  padding: 0.4rem 0.52rem 0.45rem;
  box-shadow: none;
}

.home-page .home-shelf-bento-card .hero-bento-prompt-text {
  font-size: 0.68rem;
}

/* Бегущая строка моделей */
.home-page .home-shelf-marquee {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  padding: 0.28rem 0 0.08rem;
}

.home-page .home-shelf-marquee__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0 0.05rem;
}

.home-page .home-shelf-marquee__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(122, 98, 44, 0.92);
}

.home-page .home-shelf-marquee__label i {
  font-size: 0.72em;
  opacity: 0.85;
}

.home-page .home-shelf-marquee__hint {
  font-size: 0.6rem;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.home-page .home-shelf-marquee__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(16, 18, 23, 0.07);
  background:
    linear-gradient(180deg, rgba(252, 252, 254, 0.98) 0%, rgba(247, 248, 252, 0.94) 100%);
  box-shadow: none;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.home-page .home-shelf-marquee__viewport::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(252, 252, 254, 0.94) 0%,
    transparent 14%,
    transparent 86%,
    rgba(252, 252, 254, 0.94) 100%
  );
  z-index: 1;
}

.home-page .home-shelf-marquee__track {
  display: flex;
  width: max-content;
  animation: homeShelfMarquee 42s linear infinite;
  will-change: transform;
}

.home-page .home-shelf-marquee__group {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.4rem 0.65rem 0.45rem;
  flex-shrink: 0;
}

.home-page .home-shelf-marquee-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-width: 0;
  max-width: 10.5rem;
  padding: 0.32rem 0.48rem 0.32rem 0.38rem;
  border-radius: 12px;
  border: 1px solid rgba(16, 18, 23, 0.08);
  background: linear-gradient(180deg, #fff 0%, rgba(248, 249, 252, 0.97) 100%);
  text-decoration: none;
  color: inherit;
  box-shadow: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
  position: relative;
  z-index: 2;
}

.home-page .home-shelf-marquee-chip:hover {
  border-color: rgba(201, 164, 92, 0.48);
  box-shadow: none;
  transform: none;
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.99) 0%, rgba(252, 246, 232, 0.96) 100%);
}

.home-page .home-shelf-marquee-chip__logo {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.home-page .home-shelf-marquee-chip__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-page .home-shelf-marquee-chip__logo--ico {
  background: rgba(201, 164, 92, 0.16);
  color: var(--gold);
  font-size: 0.7rem;
}

.home-page .home-shelf-marquee-chip__meta {
  display: flex;
  flex-direction: column;
  gap: 0.02rem;
  min-width: 0;
}

.home-page .home-shelf-marquee-chip__name {
  font-size: 0.66rem;
  font-weight: 780;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-page .home-shelf-marquee-chip__price {
  font-size: 0.58rem;
  font-weight: 800;
  color: rgba(16, 18, 23, 0.48);
  font-variant-numeric: tabular-nums;
}

.home-page .home-shelf-marquee-chip--more {
  max-width: none;
  border-style: dashed;
  background: linear-gradient(180deg, rgba(201, 164, 92, 0.1) 0%, rgba(201, 164, 92, 0.05) 100%);
  padding-inline: 0.65rem;
}

.home-page .home-shelf-marquee-chip--more:hover {
  border-color: rgba(201, 164, 92, 0.5);
  box-shadow: none;
  transform: none;
  background: linear-gradient(180deg, rgba(201, 164, 92, 0.22) 0%, rgba(201, 164, 92, 0.1) 100%);
}

.home-page .home-shelf-marquee-chip__more {
  font-size: 0.66rem;
  font-weight: 800;
  white-space: nowrap;
  color: color-mix(in srgb, var(--gold, #c9a45c) 58%, var(--ink));
}

@keyframes homeShelfMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-shelf-marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: 100% !important;
    row-gap: 0.35rem;
  }

  .home-page .home-shelf-marquee__group:last-child {
    display: none;
  }

  .home-page .home-shelf-marquee__viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .home-page .home-shelf-marquee__viewport::after {
    display: none;
  }

  .home-page .home-shelf-marquee-chip,
  .home-page .home-shelf-marquee-chip:hover {
    transform: none;
  }
}

.home-page .home-shelf-bento-cta {
  font-size: 0.78rem;
  padding-top: 0.42rem;
  padding-bottom: 0.42rem;
}

@media (max-width: 991.98px) {
  .home-page .home-shelf-stack--in-hero {
    max-width: min(100%, 460px);
    margin-left: auto;
    margin-right: auto;
    --hero-shelf-overlap: clamp(3rem, 10vw, 5.25rem);
    --hero-shelf-figure-w: min(100%, 520px);
  }

  .home-page .home-shelf-hero-composite__figure {
    justify-content: center;
  }
}

/* Блок «полка»: girl-2 + карточка (бенто, бегущая лента моделей) */
.home-page .home-shelf-stack--pro {
  position: relative;
  max-width: 960px;
  margin-inline: auto;
  padding: 0 2px;
  z-index: 0;
}

.home-page .home-shelf-stack--pro::before {
  content: '';
  position: absolute;
  inset: 18% -3% -2%;
  background: radial-gradient(ellipse 70% 60% at 50% 80%, rgba(201, 164, 92, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.home-page .home-shelf-lean {
  position: relative;
  z-index: 2;
  width: min(430px, 90vw);
  margin-inline: auto;
  margin-bottom: clamp(-4.35rem, -9.5vw, -3rem);
  pointer-events: none;
  line-height: 0;
}

/* Обёртка фото: без жёсткой маски — естественное опирание на «стойку» */
.home-page .home-shelf-lean__clip {
  overflow: visible;
  line-height: 0;
  margin-bottom: 0;
}

.home-page .home-shelf-lean__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(360px, 44vh);
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 24px 40px rgba(16, 18, 23, 0.14));
}

@media (max-width: 575.98px) {
  .home-page .home-shelf-lean {
    margin-bottom: -2.45rem;
    width: min(100%, 330px);
  }

  .home-page .home-shelf-lean__img {
    max-height: min(288px, 42vh);
  }

  .home-page .home-shelf-stack--in-hero {
    --hero-shelf-overlap: clamp(3.2rem, 14vw, 4.85rem);
    --hero-shelf-figure-w: min(100%, 400px);
  }

  .home-page .home-shelf-stack--in-hero .home-shelf-lean__img {
    max-height: min(300px, 52vh);
  }
}

.home-page .hero-models-cap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 1.15rem 0 0.6rem;
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(16, 18, 23, 0.1);
}

.home-page .hero-models-cap__title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(122, 98, 44, 0.92);
}

.home-page .hero-models-cap__hint {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 600;
}

.home-page .hero-models-cap__hint strong {
  color: var(--ink);
  font-weight: 800;
}

.home-page .hero-card-cta {
  margin-top: 0.15rem;
  font-weight: 650;
  transition:
    transform 0.18s ease,
    box-shadow 0.2s ease,
    border-color 0.18s ease;
}

.home-page .hero-card-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(16, 18, 23, 0.12);
}

@media (prefers-reduced-motion: no-preference) {
  .home-page .hero-card--premium::before {
    animation: homeHeroPremiumGlow 8s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .prompt-box__aurora {
    animation: none;
  }

  .home-page .hero-card--premium::before {
    animation: none;
  }

  .home-page .hero-card-cta:hover {
    transform: none;
  }
}

/* Сценарии: контент поверх лёгкого wash */
.home-page .home-section--story > .container {
  position: relative;
  z-index: 1;
}

.home-page .home-section--story .eyebrow {
  background: transparent;
  border-color: rgba(16, 18, 23, 0.1);
  color: #4a4e56;
  box-shadow: none;
}

.home-page .home-section--values {
  padding-top: clamp(32px, 4.5vw, 52px);
  padding-bottom: clamp(32px, 4.5vw, 52px);
  background: linear-gradient(180deg, rgba(247, 248, 252, 0.55) 0%, rgba(255, 255, 255, 0.96) 100%);
}

/* Главная: «Как это работает» — нейтральный фон без тёплого/оранжевого тона */
.home-page .home-section--steps.soft-panel {
  position: relative;
  overflow-x: clip;
  background: linear-gradient(180deg, rgba(247, 248, 252, 0.55) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.home-page .home-section--steps .container {
  position: relative;
  z-index: 1;
}

.home-page .home-story-prose p {
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.home-page .home-story-prose p:last-child {
  margin-bottom: 0;
}

.home-page .home-story-panels {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.home-page .home-story-panel {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.05rem 1.15rem;
  border-radius: 20px;
  border: 1px solid var(--home-card-line);
  background: var(--home-card-surface);
  box-shadow: var(--home-card-shade);
  transition:
    border-color 0.2s ease,
    box-shadow 0.22s ease,
    transform 0.2s ease;
}

.home-page .home-story-panel:hover {
  border-color: rgba(201, 164, 92, 0.32);
  box-shadow: 0 18px 48px rgba(16, 18, 23, 0.07);
  transform: translateY(-2px);
}

.home-page .home-story-panel__icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(201, 164, 92, 0.14);
  color: color-mix(in srgb, var(--gold, #c9a45c) 85%, #4a3a12);
  font-size: 0.92rem;
}

.home-page .home-story-panel__title {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
  color: var(--ink);
}

.home-page .home-story-panel__text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.home-page .home-section--values .section-heading p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.home-page .home-value-card {
  position: relative;
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: 24px;
  border: 1px solid var(--home-card-line);
  background: var(--home-card-surface);
  box-shadow: var(--home-card-shade);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.2s ease;
}

.home-page .home-value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 164, 92, 0.35);
  box-shadow:
    0 0 0 1px rgba(201, 164, 92, 0.1),
    0 22px 56px rgba(16, 18, 23, 0.09);
}

.home-page .home-value-card__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(122, 98, 44, 0.95);
  margin-bottom: 0.6rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(201, 164, 92, 0.14);
  border: 1px solid rgba(201, 164, 92, 0.22);
}

.home-page .home-value-card__title {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
}

.home-page .home-value-card__text {
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--muted);
}

.home-page .home-values-foot .btn {
  font-weight: 650;
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-story-panel,
  .home-page .home-story-panel:hover,
  .home-page .home-value-card,
  .home-page .home-value-card:hover {
    transition: none;
    transform: none;
  }
}

@keyframes home-hero-card-piece-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes home-hero-play-hint {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .home-page .home-hero-col.animate__animated {
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }

  .home-page .hero-card--stagger .hero-bento-top,
  .home-page .hero-card--stagger .hero-bento-prompt,
  .home-page .hero-card--stagger .hero-chip-rail-wrap,
  .home-page .hero-card--stagger > a.btn {
    animation: home-hero-card-piece-in 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .home-page .hero-card--stagger .hero-bento-top {
    animation-delay: 0.22s;
  }

  .home-page .hero-card--stagger .hero-bento-prompt {
    animation-delay: 0.34s;
  }

  .home-page .hero-card--stagger .hero-chip-rail-wrap {
    animation-delay: 0.46s;
  }

  .home-page .hero-card--stagger > a.btn {
    animation-delay: 0.58s;
  }

  .home-page [data-home-reveal].animate__animated {
    --animate-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
}

.home-page [data-home-reveal].home-reveal--pending {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-hero-col.animate__animated {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .home-page .hero-card--stagger .hero-bento-top,
  .home-page .hero-card--stagger .hero-bento-prompt,
  .home-page .hero-card--stagger .hero-chip-rail-wrap,
  .home-page .hero-card--stagger > a.btn {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .home-page [data-home-reveal].home-reveal--pending {
    opacity: 1 !important;
  }
}

/* Появление блоков при скролле — перенесено на animate.css (см. main.js); старые transition отключены */
.home-page .home-reveal {
  --reveal-delay: 0ms;
}

.home-page .home-reveal.home-reveal--pending {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .home-section--steps .home-step-card:hover {
    transform: none;
  }

  .home-page .service-card--landing:hover {
    transform: none;
  }

  .home-page .service-card-landing-cta,
  .home-page .service-card-landing-cta:hover,
  .home-page .service-card-landing-cta i,
  .home-page .service-card-landing-cta:hover i {
    transform: none !important;
  }
}

.service-icon {
  align-items: center;
  background: var(--soft);
  border-radius: 22px;
  display: inline-flex;
  font-size: 1.25rem;
  height: 54px;
  justify-content: center;
  margin-bottom: 22px;
  width: 54px;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.price-pill {
  background: #111;
  border-radius: 999px;
  color: #fff;
  font-size: 0.85rem;
  padding: 0.45rem 0.8rem;
}

.soft-panel {
  background: linear-gradient(180deg, rgba(247, 248, 251, 0.65), rgba(255, 255, 255, 0.9));
}

.step-card,
.sandbox-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  height: 100%;
  padding: 24px;
}

.step-card span {
  color: var(--gold);
  display: block;
  font-weight: 900;
  margin-bottom: 12px;
}

.pricing-card {
  display: grid;
  gap: 18px;
  min-height: 280px;
}

.pricing-card strong {
  font-size: 2rem;
}

.pricing-card.featured {
  background: #111;
  color: #fff;
  transform: translateY(-12px);
}

.pricing-card.featured p {
  color: rgba(255, 255, 255, 0.72);
}

.feature-list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.auth-page {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 240px);
  overflow-x: clip;
}

.auth-card {
  max-width: 520px;
  width: min(100% - 32px, 520px);
}

.auth-page .auth-card {
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  .auth-page .auth-card.auth-card--enter {
    --animate-duration: 0.9s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page .auth-card.auth-card--enter.animate__animated {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.auth-page .auth-card .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.auth-page .auth-card .form-label {
  display: block;
  text-align: center;
  width: 100%;
}

.auth-page .auth-card .form-control,
.auth-page .auth-card .auth-captcha-input {
  text-align: center;
}

.auth-captcha-input {
  text-transform: uppercase;
}

/* Капча 384×92 в разметке — на узких экранах обязана сжиматься, иначе горизонтальный overflow ломает шапку и вёрстку */
.auth-captcha-block {
  max-width: 100%;
  min-width: 0;
}

.auth-captcha-visual {
  max-width: 100%;
  min-width: 0;
}

.auth-captcha-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  flex-shrink: 1;
  min-width: 0;
  box-sizing: border-box;
}

.auth-page .auth-card .auth-captcha-visual {
  justify-content: center;
}

.auth-page .auth-card .auth-captcha-block .form-text {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 38rem;
  text-align: center;
}

.auth-page .auth-card > p.text-secondary {
  margin-left: auto;
  margin-right: auto;
  max-width: 36rem;
  text-align: center;
}

.account-page .auth-captcha-visual {
  justify-content: flex-start;
}

.account-page .auth-captcha-block .form-label,
.account-page .auth-captcha-block .form-text {
  text-align: left;
}

.account-page .auth-captcha-input {
  text-align: left;
}

.balance-card {
  background: linear-gradient(135deg, #111, #3b3324);
  border-radius: 32px;
  box-shadow: var(--shadow);
  color: #fff;
  padding: 32px;
}

.balance-card span {
  color: rgba(255, 255, 255, 0.72);
  display: block;
}

.balance-card strong {
  display: block;
  font-size: 2.5rem;
}

/* История операций — /account/balance */
.balance-history-page .balance-history-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.balance-history-page .balance-history-card {
  overflow: visible;
}

.balance-history-page .balance-history-heading {
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.balance-history-page .tabular-nums {
  font-variant-numeric: tabular-nums;
}

.balance-history-page .balance-history-empty {
  padding: 0.75rem 0 0;
}

.balance-history-page .balance-tx-list {
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
}

.balance-history-page .balance-tx {
  align-items: flex-start;
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 0.75rem 1rem;
  grid-template-columns: auto 1fr auto;
  padding: 1rem 1.12rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.22s ease;
}

.balance-history-page .balance-tx:hover {
  border-color: rgba(15, 23, 42, 0.13);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
}

.balance-history-page .balance-tx--debit:hover {
  border-color: rgba(185, 28, 28, 0.2);
}

.balance-history-page .balance-tx--credit:hover {
  border-color: rgba(22, 101, 52, 0.2);
}

.balance-history-page .balance-tx__icon {
  align-items: center;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 12px;
  color: rgba(15, 23, 42, 0.38);
  display: flex;
  flex-shrink: 0;
  font-size: 0.92rem;
  height: 2.35rem;
  justify-content: center;
  margin-top: 0.06rem;
  width: 2.35rem;
}

.balance-history-page .balance-tx--debit .balance-tx__icon {
  background: rgba(185, 28, 28, 0.08);
  color: rgba(153, 27, 27, 0.65);
}

.balance-history-page .balance-tx--credit .balance-tx__icon {
  background: rgba(22, 101, 52, 0.08);
  color: rgba(22, 101, 52, 0.6);
}

.balance-history-page .balance-tx__body {
  margin: 0;
  min-width: 0;
}

.balance-history-page .balance-tx__title {
  font-size: 0.938rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.42;
  margin: 0 0 0.35rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.balance-history-page .balance-tx__meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  gap: 0.25rem;
  margin: 0;
}

.balance-history-page .balance-tx__type-badge {
  background: rgba(15, 23, 42, 0.05);
  border-radius: 6px;
  font-weight: 600;
  padding: 0.1rem 0.42rem;
}

.balance-history-page .balance-tx--debit .balance-tx__type-badge {
  background: rgba(185, 28, 28, 0.07);
  color: rgb(153, 27, 27);
}

.balance-history-page .balance-tx--credit .balance-tx__type-badge {
  background: rgba(22, 101, 52, 0.07);
  color: rgb(22, 101, 52);
}

.balance-history-page .balance-tx__sep {
  color: rgba(15, 23, 42, 0.2);
}

.balance-history-page .balance-tx__amount {
  align-self: center;
}

.balance-history-page .balance-tx__pill {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  padding: 0.38rem 0.82rem;
  white-space: nowrap;
}

.balance-history-page .balance-tx__pill--minus {
  background: rgba(185, 28, 28, 0.1);
  color: rgb(127, 29, 29);
}

.balance-history-page .balance-tx__pill--plus {
  background: rgba(22, 101, 52, 0.12);
  color: rgb(20, 83, 45);
}

.balance-history-page .balance-tx__pill--plain {
  background: rgba(15, 23, 42, 0.07);
}

.balance-history-page .balance-pagination {
  --bal-page-accent: var(--gold, #c9a45c);
  --bal-page-accent-deep: color-mix(in srgb, var(--bal-page-accent) 78%, #2a2210);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.balance-history-page .balance-pagination__bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

@media (min-width: 768px) {
  .balance-history-page .balance-pagination__bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
  }
}

.balance-history-page .balance-pagination__summary {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .balance-history-page .balance-pagination__summary {
    justify-content: flex-start;
  }
}

.balance-history-page .balance-pagination__summary-current {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1;
}

.balance-history-page .balance-pagination__summary-total {
  font-weight: 700;
  color: var(--ink);
}

.balance-history-page .balance-pagination__list {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.035);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

@media (min-width: 768px) {
  .balance-history-page .balance-pagination__list {
    justify-content: flex-end;
  }
}

.balance-history-page .balance-pagination__cell {
  display: flex;
  align-items: center;
}

.balance-history-page .balance-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-weight: 650;
  font-size: 0.875rem;
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.balance-history-page .balance-pagination__btn--edge {
  min-width: 2.35rem;
  padding-inline: 0.5rem;
  color: color-mix(in srgb, var(--bal-page-accent) 48%, var(--ink));
}

.balance-history-page .balance-pagination__btn--step {
  min-width: 2.35rem;
  padding-inline: 0.5rem;
  color: color-mix(in srgb, var(--bal-page-accent) 42%, var(--ink));
}

.balance-history-page a.balance-pagination__btn:hover {
  border-color: color-mix(in srgb, var(--bal-page-accent) 42%, transparent);
  background: color-mix(in srgb, var(--bal-page-accent) 11%, #fff);
  color: var(--bal-page-accent-deep);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.balance-history-page a.balance-pagination__btn:active {
  transform: translateY(1px);
}

.balance-history-page a.balance-pagination__btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--bal-page-accent) 55%, transparent);
  outline-offset: 2px;
}

.balance-history-page .balance-pagination__btn.is-current {
  background: linear-gradient(145deg, var(--bal-page-accent) 92%, var(--bal-page-accent-deep));
  border-color: color-mix(in srgb, var(--bal-page-accent) 38%, transparent);
  color: #fff;
  box-shadow: 0 8px 26px color-mix(in srgb, var(--bal-page-accent) 26%, transparent);
  cursor: default;
}

.balance-history-page .balance-pagination__btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.06);
  color: var(--muted);
  box-shadow: none;
}

.balance-history-page .balance-pagination__gap {
  display: inline-flex;
  align-items: center;
  min-width: 1.75rem;
  justify-content: center;
  padding: 0 0.15rem;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  user-select: none;
}

.balance-history-page .balance-pagination__cell--gap {
  pointer-events: none;
}

@media (max-width: 575.98px) {
  .balance-history-page .balance-tx {
    grid-template-columns: auto 1fr;
  }

  .balance-history-page .balance-tx__amount {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .balance-history-page .balance-tx__pill {
    text-align: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .balance-history-page .balance-tx {
    transition: none;
  }

  .balance-history-page .balance-tx:hover {
    box-shadow: none;
  }
}

.sandbox-card {
  display: grid;
  gap: 12px;
}

.sandbox-card-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
}

.sandbox-card-head-text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.sandbox-card-head-text strong {
  line-height: 1.25;
}

.sandbox-card-logo,
.sandbox-card-logo-ph {
  border-radius: 14px;
  flex-shrink: 0;
  height: 52px;
  overflow: hidden;
  width: 52px;
}

.sandbox-card-logo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.sandbox-card-logo-ph {
  align-items: center;
  background: linear-gradient(135deg, var(--soft), #e8ecf5);
  border: 1px solid var(--line);
  color: var(--gold);
  display: inline-flex;
  font-size: 1.35rem;
  justify-content: center;
}

.account-services-intro-body {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

@media (min-width: 768px) {
  .account-services-intro-body {
    align-items: start;
    gap: 1.75rem;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
  }
}

.account-services-intro-hint {
  align-items: flex-start;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  display: flex;
  font-size: 0.9rem;
  gap: 0.65rem;
  line-height: 1.45;
  padding: 0.9rem 1rem;
}

.account-services-intro-hint i {
  color: var(--gold);
  font-size: 1.05rem;
  margin-top: 0.08rem;
  flex-shrink: 0;
}

.account-services-category-title {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem !important;
  padding-bottom: 0.65rem;
}

.account-services-category-title i {
  color: var(--gold);
}

.sandbox-card--group.sandbox-card--catalog {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 18px 20px;
}

.sandbox-card--group.sandbox-card--catalog .sandbox-card-link-foot {
  margin-top: auto;
}

.sandbox-card--link {
  box-shadow: 0 12px 36px rgba(16, 18, 23, 0.06);
  color: inherit;
  outline: none;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.sandbox-card--link:hover {
  border-color: rgba(201, 164, 92, 0.35);
  box-shadow: 0 20px 48px rgba(16, 18, 23, 0.1);
  transform: translateY(-4px);
}

.sandbox-card--link:focus-visible {
  border-color: var(--gold);
  box-shadow:
    0 0 0 3px rgba(201, 164, 92, 0.28),
    0 20px 48px rgba(16, 18, 23, 0.08);
}

.sandbox-card-logo--catalog,
.sandbox-card-logo-ph--catalog {
  height: 58px;
  width: 58px;
}

.sandbox-card-logo-ph--catalog {
  font-size: 1.45rem;
}

.sandbox-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.sandbox-card-link-foot {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 2px;
  padding-top: 14px;
}

.sandbox-card--link .price-pill {
  flex-shrink: 0;
}

.sandbox-card-link-arrow {
  align-items: center;
  background: linear-gradient(180deg, #fff, var(--soft));
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  flex-shrink: 0;
  font-size: 0.82rem;
  height: 2.35rem;
  justify-content: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
  width: 2.35rem;
}

.sandbox-card--link:hover .sandbox-card-link-arrow {
  background: rgba(255, 252, 245, 0.95);
  border-color: rgba(201, 164, 92, 0.45);
  color: var(--gold);
  transform: translateX(3px);
}

.model-stats--sandbox-link {
  border-top: 1px dashed rgba(16, 18, 23, 0.08);
  margin-top: 2px;
  padding-top: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .sandbox-card--link,
  .sandbox-card-link-arrow {
    transition: none;
  }

  .sandbox-card--link:hover,
  .sandbox-card--link:focus-visible {
    transform: none;
  }

  .sandbox-card--link:hover .sandbox-card-link-arrow {
    transform: none;
  }
}

.playground-service-logo {
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(16, 18, 23, 0.06);
  flex-shrink: 0;
  height: 76px;
  overflow: hidden;
  width: 76px;
}

.playground-service-logo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.service-desc-fluid {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.service-desc-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-desc-clamp--2 {
  -webkit-line-clamp: 2;
}

.service-desc-clamp--3 {
  -webkit-line-clamp: 3;
}

.service-desc-clamp--4 {
  -webkit-line-clamp: 4;
}

.service-desc-clamp--5 {
  -webkit-line-clamp: 5;
}

.playground-service-banner {
  align-items: start;
  column-gap: 1rem;
  display: grid;
  row-gap: 0.55rem;
}

.playground-service-banner:not(.playground-service-banner--no-logo) {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
}

.playground-service-banner:not(.playground-service-banner--no-logo) .playground-service-logo {
  align-self: start;
  grid-column: 1;
  grid-row: 1 / span 2;
}

.playground-service-banner:not(.playground-service-banner--no-logo) .playground-service-banner__head {
  grid-column: 2;
  grid-row: 1;
}

.playground-service-banner:not(.playground-service-banner--no-logo) .playground-service-banner__desc {
  grid-column: 2;
  grid-row: 2;
}

.playground-service-banner--no-logo {
  grid-template-columns: minmax(0, 1fr);
}

.playground-service-banner--no-logo .playground-service-banner__head {
  grid-column: 1;
}

.playground-service-banner--no-logo .playground-service-banner__desc {
  grid-column: 1;
}

.playground-service-banner__head {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.playground-group-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
}

.playground-group-switcher__pill {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.2;
  padding: 0.28rem 0.72rem;
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.playground-group-switcher__pill:hover {
  background: rgba(255, 252, 245, 0.98);
  border-color: rgba(201, 164, 92, 0.45);
  color: var(--ink);
}

.playground-group-switcher__pill.is-active {
  background: linear-gradient(180deg, #15171c 0%, #101217 100%);
  border-color: rgba(16, 18, 23, 0.55);
  color: #fff;
}

.playground-group-switcher__pill.is-active:hover {
  border-color: rgba(201, 164, 92, 0.5);
  color: #fff;
}

.generation-detail-page .playground-service-banner__title-row--generation-detail .generation-detail-status--banner {
  align-self: flex-start;
  border-radius: 999px;
  flex: 0 0 auto;
  margin-left: auto;
  margin-top: 0.12rem;
  max-width: min(280px, 100%);
  min-width: 0;
  padding: 0.42rem 1.05rem;
  text-align: center;
  width: fit-content;
}

.generation-detail-page .playground-service-banner__title-row--generation-detail .generation-detail-status--banner strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}

.generation-detail-page .playground-service-banner__title-row--generation-detail .generation-detail-status--banner.ok strong {
  font-size: 1.08rem;
}

@media (max-width: 575.98px) {
  .generation-detail-page .playground-service-banner__title-row--generation-detail .generation-detail-status--banner {
    align-self: flex-end;
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

.playground-service-banner__title-row--generation-detail {
  width: 100%;
}

.sandbox-card.sandbox-card--group-picker {
  cursor: pointer;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.sandbox-card.sandbox-card--group-picker:hover {
  border-color: rgba(201, 164, 92, 0.35);
  box-shadow: 0 20px 48px rgba(16, 18, 23, 0.1);
  transform: translateY(-4px);
}

.sandbox-card.sandbox-card--group-picker:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .sandbox-card.sandbox-card--group-picker,
  .sandbox-card.sandbox-card--group-picker:hover {
    transition: none;
    transform: none;
  }
}

.account-group-picker-modal .account-group-picker-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.account-group-picker-modal .account-group-picker-actions .btn {
  font-weight: 650;
}

.pricing-model-card--group .pricing-model-group-variants {
  display: grid;
  gap: 0.35rem;
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.pricing-model-group-variant-row {
  align-items: baseline;
  border-top: 1px dashed rgba(16, 18, 23, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  justify-content: space-between;
  padding-top: 0.45rem;
}

.pricing-model-group-variant-row:first-child {
  border-top: none;
  padding-top: 0;
}

.pricing-model-group-variant-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.pricing-model-group-variant-price {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.playground-service-banner__title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  min-width: 0;
}

.playground-service-banner__title {
  line-height: 1.18;
  margin: 0;
  min-width: 0;
}

.playground-service-banner__title-stack {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.playground-service-banner__variant {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
}

.playground-service-banner__variant-kicker {
  color: rgba(16, 18, 23, 0.48);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.playground-service-banner__variant-text {
  background: rgba(255, 252, 245, 0.95);
  border: 1px solid rgba(201, 164, 92, 0.35);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
  padding: 0.22rem 0.72rem;
}

.playground-hero-card .eyebrow {
  display: inline-block;
  margin-bottom: 0.05rem;
}

.playground-service-banner--panel {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 252, 245, 0.92) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(16, 18, 23, 0.05);
  padding: 1.05rem 1.15rem 1.15rem;
}

.playground-service-banner--panel.playground-service-banner--no-logo {
  padding: 1rem 1.15rem 1.1rem;
}

.playground-service-banner--panel .playground-service-banner__desc {
  border-top: 1px dashed rgba(16, 18, 23, 0.1);
  margin-top: 0.35rem;
  padding-top: 0.85rem;
}

@media (max-width: 575.98px) {
  .playground-service-banner__title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .playground-run-price {
    justify-content: space-between;
    margin-top: 0.5rem;
    width: 100%;
  }
}

.sandbox-card--group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(16, 18, 23, 0.06);
  overflow: visible;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.sandbox-card--group:hover {
  border-color: rgba(201, 164, 92, 0.35);
  box-shadow: 0 20px 48px rgba(16, 18, 23, 0.1);
  transform: translateY(-4px);
}

.sandbox-card--group .sandbox-card-head {
  padding: 0;
}

.sandbox-card-variant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
}

.sandbox-card-variant-chip {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(16, 18, 23, 0.1);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.25;
  padding: 0.3rem 0.68rem;
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.sandbox-card-variant-chip:hover {
  background: rgba(255, 252, 245, 0.98);
  border-color: rgba(201, 164, 92, 0.42);
  color: var(--ink);
}

a.sandbox-card-link-arrow {
  color: inherit;
  flex-shrink: 0;
  text-decoration: none;
}

a.sandbox-card-link-arrow:hover {
  background: rgba(255, 252, 245, 0.95);
  border-color: rgba(201, 164, 92, 0.45);
  color: var(--gold);
  transform: translateX(3px);
}

a.sandbox-card-link-arrow:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.28);
}

.sandbox-card--group:hover a.sandbox-card-link-arrow {
  background: rgba(255, 252, 245, 0.95);
  border-color: rgba(201, 164, 92, 0.45);
  color: var(--gold);
  transform: translateX(3px);
}

.service-card.service-card--group:hover a.sandbox-card-link-arrow {
  background: rgba(255, 252, 245, 0.95);
  border-color: rgba(201, 164, 92, 0.45);
  color: var(--gold);
  transform: translateX(3px);
}

.service-card-group-foot {
  border-top: 1px solid rgba(16, 18, 23, 0.08);
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .sandbox-card--group,
  .sandbox-card--group:hover {
    transition: none;
    transform: none;
  }

  a.sandbox-card-link-arrow:hover,
  .sandbox-card--group:hover a.sandbox-card-link-arrow,
  .service-card.service-card--group:hover a.sandbox-card-link-arrow {
    transform: none;
  }
}

.playground-run-price {
  align-items: center;
  background: linear-gradient(165deg, rgba(255, 252, 245, 0.98) 0%, rgba(252, 246, 232, 1) 45%, rgba(248, 238, 216, 0.97) 100%);
  border: 1px solid rgba(201, 164, 92, 0.38);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(201, 164, 92, 0.08),
    0 6px 18px rgba(201, 164, 92, 0.08);
  column-gap: 0.5rem;
  display: inline-flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  margin-top: 0.22rem;
  max-width: 100%;
  padding: 0.26rem 0.8rem 0.26rem 0.82rem;
  row-gap: 0.05rem;
}

.playground-run-price__label {
  color: rgba(122, 98, 44, 0.88);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.playground-run-price__value {
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.playground-run-price__hint {
  color: rgba(122, 98, 44, 0.75);
  flex-basis: 100%;
  font-size: 0.72rem;
  line-height: 1.2;
  padding-left: 0.05rem;
}

.playground-cost-estimate {
  color: var(--ink);
  font-weight: 600;
}

.provider-status-banner {
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}

.provider-status-banner--degraded { background: #fffbeb; color: #92400e; }
.provider-status-banner--outage { background: #fef2f2; color: #991b1b; }
.provider-status-banner--maintenance { background: #eff6ff; color: #1e40af; }
.provider-status-banner--operational { background: #f0fdf4; color: #166534; }

.provider-status-banner__inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.provider-status-banner__text { flex: 1 1 200px; }
.provider-status-banner__sep { margin: 0 6px; opacity: 0.5; }
.provider-status-banner__link { color: inherit; font-weight: 600; text-decoration: underline; white-space: nowrap; }

.status-provider-card { border-left: 4px solid var(--line); height: 100%; }
.status-provider-card--ok { border-left-color: #16a34a; }
.status-provider-card--warn { border-left-color: #d97706; }
.status-provider-card--bad { border-left-color: #dc2626; }
.status-provider-card--info { border-left-color: #2563eb; }

.status-provider-card__head {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.status-provider-card__badge {
  align-items: center;
  display: inline-flex;
  font-size: 0.8125rem;
  font-weight: 600;
  gap: 6px;
}

.admin-finance-box {
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 14px;
  height: 100%;
  padding: 14px 16px;
}

.account-onboarding__card {
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 16px;
  height: 100%;
  padding: 16px;
}

.account-onboarding__card--empty { opacity: 0.75; }

.account-onboarding__icon {
  align-items: center;
  background: #eef2ff;
  border-radius: 12px;
  color: #4f46e5;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  margin-bottom: 10px;
  width: 40px;
}

.pricing-compare-filters { display: flex; flex-wrap: wrap; gap: 8px; }

.pricing-compare-filter {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  padding: 6px 14px;
}

.pricing-compare-filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pricing-compare-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.service-icon--logo {
  overflow: hidden;
  padding: 0;
}

.service-icon--logo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.pricing-model-logo {
  border-radius: 12px;
  border: 1px solid var(--line);
  height: 44px;
  overflow: hidden;
  width: 44px;
}

.pricing-model-logo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.pricing-table {
  table-layout: fixed;
  width: 100%;
}

.pricing-table col.pricing-col-logo {
  width: 3.75rem;
}

.pricing-table col.pricing-col-cat {
  width: 8.5rem;
}

.pricing-table col.pricing-col-out {
  width: 7rem;
}

.pricing-table col.pricing-col-price {
  width: 7.25rem;
}

.pricing-table .pricing-col-heading {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-table tbody td.pricing-td-pill,
.pricing-table tbody td.pricing-td-meta {
  vertical-align: middle;
}

.pricing-table .pricing-model-cell {
  min-width: 0;
  padding-right: 0.75rem;
  vertical-align: middle;
}

.pricing-model-title {
  font-size: 1rem;
  line-height: 1.35;
}

.pricing-model-desc {
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  font-size: 0.8125rem;
  hyphens: auto;
  line-height: 1.45;
  margin-top: 0.35rem;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Pricing — карточки моделей (страница /pricing) */
.pricing-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pricing-cards-group--spaced {
  border-top: 1px solid var(--line);
  margin-top: 1.75rem;
  padding-top: 1.75rem;
}

.pricing-cards-group-label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.pricing-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-model-card {
  align-items: flex-start;
  background: linear-gradient(148deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 250, 0.94));
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 1rem 1.2rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 1.18rem 1.28rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.pricing-model-card:hover {
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 14px 44px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.pricing-model-card__logo {
  flex-shrink: 0;
}

.pricing-model-card__body {
  min-width: 0;
}

.pricing-model-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0 0 0.45rem;
}

.pricing-model-card__meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.45rem;
}

.pricing-model-card__meta:empty {
  display: none;
}

.pricing-model-card__meta + .pricing-model-card__desc {
  margin-top: 0;
}

.pricing-model-card__desc {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.58;
  margin: 0;
}

.pricing-model-chip {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: inherit;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 600;
  gap: 0.35rem;
  letter-spacing: 0.045em;
  line-height: 1.2;
  padding: 0.22rem 0.52rem;
  text-transform: uppercase;
}

.pricing-model-chip--muted {
  background: rgba(15, 23, 42, 0.035);
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}

.pricing-model-chip__icon {
  font-size: 0.62rem;
  opacity: 0.72;
}

.pricing-model-card__price {
  align-self: center;
  align-items: center;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.05;
  padding: 0.55rem 0.82rem;
  text-align: center;
  white-space: nowrap;
}

.pricing-model-card__price-main {
  font-size: 1.18rem;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.pricing-model-card__price-hint {
  color: var(--muted);
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
}

.pricing-model-card__price-hint--plain {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.pricing-model-card__price-sub {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.25;
  max-width: 11rem;
  text-align: center;
  text-transform: none;
  white-space: normal;
}

.pricing-model-logo--card {
  border-radius: 14px;
  height: 52px;
  width: 52px;
}

.pricing-model-logo--card img {
  object-fit: cover;
}

.pricing-model-logo--fallback {
  align-items: center;
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.07), rgba(15, 23, 42, 0.02));
  color: rgba(15, 23, 42, 0.45);
  display: flex;
  font-size: 1.2rem;
  justify-content: center;
}

.pricing-cards-group:first-child .pricing-cards-group-label {
  margin-top: 0;
}

@media (max-width: 575.98px) {
  .pricing-model-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pricing-model-card__price {
    align-items: center;
    flex-direction: column;
    gap: 0.35rem;
    grid-column: 1 / -1;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .pricing-model-card__price-main {
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-model-card {
    transition: none;
  }

  .pricing-model-card:hover {
    transform: none;
  }
}

.model-list-logo-wrap {
  align-items: center;
  display: flex;
  justify-content: center;
}

.model-list-logo {
  border-radius: 9px;
  display: block;
  height: 28px;
  object-fit: cover;
  width: 28px;
}

.admin-service-logo-preview {
  height: 120px;
  width: 120px;
}

.admin-service-logo-preview img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.admin-service-logo-empty {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  height: 100%;
  justify-content: center;
  min-height: 120px;
  padding: 8px;
  text-align: center;
}

.admin-table-service-logo {
  height: 40px;
  width: 40px;
}

.admin-table-service-logo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.sandbox-edit-form {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.sandbox-edit-form:first-of-type {
  padding-top: 0;
}

.sandbox-edit-form:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-table-service-logo img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.admin-sandbox-edit__hero {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.admin-sandbox-edit__hero-main {
  flex: 1 1 240px;
  min-width: 0;
}

.admin-sandbox-edit__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-sandbox-edit__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.admin-sandbox-edit__chip {
  align-items: center;
  background: #f4f6fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.8125rem;
  gap: 6px;
  padding: 4px 12px;
}

.admin-sandbox-edit__chip strong {
  color: var(--ink);
  font-weight: 600;
}

.admin-sandbox-edit__section {
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 18px;
  padding: 18px 18px 6px;
}

.admin-sandbox-edit__section:last-of-type {
  margin-bottom: 0;
}

.admin-sandbox-edit__section-title {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 0.9375rem;
  font-weight: 700;
  gap: 8px;
  margin-bottom: 14px;
}

.admin-sandbox-edit__section-title i {
  color: var(--muted);
  width: 1rem;
}

.admin-sandbox-edit__hint {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
  margin: -6px 0 14px;
}

.admin-sandbox-edit__tariff-preview {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 14px;
  margin-bottom: 14px;
  padding: 12px 14px;
}

.admin-sandbox-edit__tariff-preview dl {
  display: grid;
  gap: 8px 16px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 0;
}

.admin-sandbox-edit__tariff-preview dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-sandbox-edit__tariff-preview dd {
  font-size: 1rem;
  font-weight: 700;
  margin: 2px 0 0;
}

.admin-sandbox-edit__savebar {
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 24%);
  border-top: 1px solid var(--line);
  bottom: 0;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 18px -18px 0;
  padding: 16px 18px 6px;
  position: sticky;
  z-index: 2;
}

.admin-sandbox-edit__savebar-note {
  color: var(--muted);
  font-size: 0.8125rem;
}

.admin-sandbox-edit__naga-hints {
  background: linear-gradient(135deg, #f8fbff 0%, #f4f6fb 100%);
  border: 1px solid #dbe4f4;
  border-radius: 18px;
  margin-bottom: 18px;
  padding: 16px 18px;
}

.admin-sandbox-edit__naga-hints-head {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-sandbox-edit__naga-hints-title {
  align-items: center;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.875rem;
  font-weight: 600;
  gap: 8px;
}

.admin-sandbox-edit__naga-hints-title i {
  color: #4f6ef7;
}

.admin-sandbox-edit__naga-hints-note {
  color: var(--muted);
  font-size: 0.75rem;
}

.admin-sandbox-edit__naga-endpoints {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.admin-sandbox-edit__naga-endpoint {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  width: 100%;
}

.admin-sandbox-edit__naga-endpoint:hover {
  border-color: #b8c7ea;
  box-shadow: 0 8px 20px rgba(47, 79, 150, 0.08);
  transform: translateY(-1px);
}

.admin-sandbox-edit__naga-endpoint.is-active {
  background: #eef3ff;
  border-color: #4f6ef7;
  box-shadow: 0 0 0 1px rgba(79, 110, 247, 0.15);
}

.admin-sandbox-edit__naga-endpoint-title {
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
}

.admin-sandbox-edit__naga-endpoint-path {
  background: #f4f6fb;
  border-radius: 8px;
  color: #334155;
  font-size: 0.75rem;
  padding: 2px 8px;
}

.admin-sandbox-edit__naga-endpoint-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.admin-sandbox-edit__naga-badge {
  background: #eef2f7;
  border-radius: 999px;
  color: #64748b;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  text-transform: uppercase;
}

.admin-sandbox-edit__naga-badge--stream {
  background: #ecfdf5;
  color: #047857;
}

.admin-sandbox-edit__naga-badge--multipart {
  background: #fff7ed;
  color: #c2410c;
}

.admin-sandbox-edit__naga-badge--binary {
  background: #fdf4ff;
  color: #9333ea;
}

.admin-sandbox-edit__naga-badge--json,
.admin-sandbox-edit__naga-badge--sync {
  background: #eff6ff;
  color: #1d4ed8;
}

.admin-sandbox-edit__naga-empty {
  color: var(--muted);
  font-size: 0.8125rem;
  margin: 0;
}

.admin-sandbox-edit__section--flush {
  background: transparent;
  border: 0;
  margin-bottom: 0;
  padding: 0;
}

.admin-sandbox-edit__danger {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff 0%, #fffbfb 100%);
}

.admin-sandbox-edit__danger .admin-sandbox-edit__section-title.text-danger {
  color: #b91c1c;
}

.admin-services-panel .admin-sandbox-edit__section--flush {
  padding: 0;
}

.admin-services-catalog {
  padding: 20px 22px;
}

.admin-services-catalog__head {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.admin-services-catalog__head-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-services-reorder-bar {
  align-items: flex-start;
  background: #f4f7fc;
  border: 1px dashed #c8d4ea;
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.admin-services-reorder-bar__main {
  display: flex;
  flex: 1 1 320px;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.admin-services-reorder-bar__hint {
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 42rem;
}

.admin-services-reorder-bar__presets {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-services-reorder-bar__presets-label {
  color: var(--muted);
  font-size: 0.8125rem;
  margin: 0;
  white-space: nowrap;
}

.admin-services-reorder-bar__presets-select {
  flex: 1 1 220px;
  max-width: 320px;
  min-width: 180px;
}

.admin-services-reorder-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.admin-services-catalog__search {
  align-items: center;
  display: flex;
  flex: 1 1 220px;
  gap: 8px;
  max-width: 320px;
  min-width: 200px;
  position: relative;
}

.admin-services-catalog__search i {
  color: var(--muted);
  left: 12px;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.admin-services-catalog__search .form-control {
  padding-left: 2.1rem;
}

.admin-services-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.admin-services-filters__sep {
  background: var(--line);
  height: 20px;
  margin: 0 2px;
  width: 1px;
}

.admin-services-filter {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
}

.admin-services-filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.admin-services-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-services-category-block__head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.admin-services-category-block__head-main {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.admin-services-category-block__title {
  align-items: center;
  display: flex;
  font-size: 1.05rem;
  gap: 8px;
  margin: 0;
}

.admin-services-category-block__count {
  background: #eef2f8;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
}

.admin-services-category-block__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-services-list--scoped .admin-services-category-block.is-reorder-active .admin-services-category-block__head {
  background: #eef4ff;
  border: 1px dashed #b8c9ea;
  border-radius: 14px;
  padding: 10px 12px;
}

.admin-services-category-block--reorder .admin-services-category-block__sort-btn {
  display: none;
}

.admin-services-reorder-bar__scope {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-services-reorder-bar__scope-select {
  flex: 1 1 220px;
  max-width: 320px;
  min-width: 180px;
}

.admin-services-list--reorder .admin-service-row {
  cursor: grab;
  grid-template-columns: 28px 52px 1fr auto auto;
}

.admin-services-list--reorder .admin-service-row.is-dragging {
  cursor: grabbing;
  opacity: 0.55;
}

.admin-services-list--reorder .admin-service-row__actions {
  pointer-events: none;
}

.admin-service-row__drag {
  align-items: center;
  color: #94a3b8;
  display: none;
  justify-content: center;
}

.admin-services-list--reorder .admin-service-row__drag {
  display: flex;
}

.admin-service-row__order {
  color: var(--muted);
  font-size: 0.75rem;
}

.admin-services-list--reorder .admin-service-row__order {
  color: var(--ink);
  font-weight: 600;
}

.admin-service-row {
  align-items: center;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 12px 16px;
  grid-template-columns: 52px 1fr auto auto;
  padding: 14px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-service-row:hover {
  border-color: #cfd8ea;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.admin-service-row--hidden {
  opacity: 0.72;
}

.admin-service-row__logo {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--gold);
  display: flex;
  height: 52px;
  justify-content: center;
  overflow: hidden;
  width: 52px;
}

.admin-service-row__logo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.admin-service-row__main {
  min-width: 0;
}

.admin-service-row__title-line {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-service-row__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.admin-service-row__id {
  color: var(--muted);
  font-size: 0.75rem;
}

.admin-service-row__meta {
  color: var(--muted);
  font-size: 0.8125rem;
  margin: 2px 0 8px;
}

.admin-service-row__meta code {
  font-size: 0.75rem;
}

.admin-service-row__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-service-row__chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  text-transform: lowercase;
}

.admin-service-row__chip--ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.admin-service-row__chip--muted {
  color: var(--muted);
}

.admin-service-row__chip--naga {
  background: #eef3ff;
  border-color: #c7d7fe;
  color: #3730a3;
}

.admin-service-row__price {
  min-width: 120px;
  text-align: right;
}

.admin-service-row__price strong {
  display: block;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.admin-service-row__price-sub {
  color: var(--muted);
  display: block;
  font-size: 0.6875rem;
  line-height: 1.3;
  margin-top: 2px;
  max-width: 160px;
  margin-left: auto;
}

.admin-service-row__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

@media (max-width: 991.98px) {
  .admin-service-row {
    grid-template-columns: 48px 1fr;
  }

  .admin-service-row__price,
  .admin-service-row__actions {
    grid-column: 1 / -1;
  }

  .admin-service-row__price {
    text-align: left;
  }

  .admin-service-row__price-sub {
    margin-left: 0;
    max-width: none;
  }

  .admin-service-row__actions {
    justify-content: flex-start;
  }
}

.field-row__meta {
  min-width: 0;
}

.field-row__key {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
}

.field-type-badge {
  background: #eef2ff;
  border-radius: 6px;
  color: #4338ca;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
}

.sandbox-fields {
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 22px;
  margin-bottom: 22px;
  padding: 18px;
}

.field-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 10px 12px;
}

.field-row small {
  color: var(--muted);
  display: block;
  font-size: 0.85rem;
}

.field-help {
  color: var(--muted);
  display: -webkit-box;
  font-size: 0.85rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.playground-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.playground-panel-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 18px 22px;
}

.playground-response-panel .playground-response-body {
  display: grid;
  gap: 14px;
  padding: 14px 22px 22px;
}

.playground-response-hint {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.playground-response-hint a {
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.playground-response-hint a:hover {
  color: var(--gold);
}

.playground-json-shell {
  border-radius: 18px;
  overflow: hidden;
  outline: 1px solid rgba(16, 18, 23, 0.08);
}

.playground-json-preview.api-code {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 14px 42px rgba(0, 0, 0, 0.35);
  font-size: 0.8rem;
  line-height: 1.58;
  margin: 0;
  max-height: min(42vh, 380px);
  overflow: auto;
  padding: 16px 18px;
  scrollbar-color: rgba(201, 164, 92, 0.45) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.playground-json-preview.api-code::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.playground-json-preview.api-code::-webkit-scrollbar-thumb {
  background: rgba(201, 164, 92, 0.42);
  border-radius: 999px;
}

.playground-form {
  padding: 22px;
}

.playground-field {
  margin-bottom: 22px;
}

.chip-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-option input {
  display: none;
}

.chip-option span {
  border: 2px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  min-height: 40px;
  min-width: 66px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.chip-option span:hover {
  border-color: rgba(201, 164, 92, 0.38);
}

.chip-option input:checked + span {
  background: linear-gradient(180deg, rgba(255, 251, 240, 0.96), rgba(250, 243, 228, 0.99));
  border-color: rgba(201, 164, 92, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 0 0 1px rgba(201, 164, 92, 0.12);
  color: var(--ink);
  font-weight: 650;
}

.chip-option input:checked + span:hover {
  border-color: rgba(201, 164, 92, 0.85);
}

.output-placeholder {
  align-items: center;
  background: #f7f8fb;
  border: 2px dashed #d8dde8;
  border-radius: 22px;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 28px;
  text-align: center;
}

.output-placeholder i {
  color: var(--gold);
  font-size: 2rem;
}

.file-upload-zone {
  --fu-border: rgba(59, 108, 255, 0.35);
  --fu-soft: rgba(59, 108, 255, 0.06);
  background: linear-gradient(180deg, #fff 0%, #fafbfd 52%, #f4f6fa 100%);
  border: 1px solid rgba(16, 18, 23, 0.08);
  border-radius: 24px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 18px 55px rgba(16, 18, 23, 0.06);
  overflow: hidden;
  padding: 0;
  position: relative;
  transition:
    border-color 0.2s ease,
    box-shadow 0.22s ease;
}

.file-upload-zone.is-drag-over {
  border-color: #3b6cff;
  box-shadow:
    0 0 0 3px rgba(59, 108, 255, 0.15),
    0 26px 64px rgba(59, 108, 255, 0.12);
}

.file-upload-zone.has-files {
  border-color: rgba(16, 18, 23, 0.1);
}

.file-upload-zone.is-drag-over .file-upload-drop-area {
  background: rgba(59, 108, 255, 0.04);
}

.file-upload-drop-area {
  cursor: pointer;
  outline: none;
  padding: 26px 20px 24px;
  text-align: center;
  transition: background 0.2s ease;
}

.file-upload-drop-area:hover .file-upload-icon-wrap {
  transform: translateY(-1px);
  box-shadow:
    0 12px 28px rgba(201, 164, 92, 0.22),
    0 0 0 1px rgba(201, 164, 92, 0.12);
}

.file-upload-drop-area:focus-visible .file-upload-icon-wrap {
  box-shadow: 0 0 0 3px var(--fu-border);
}

.file-upload-icon-wrap {
  align-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 1) 0%, rgba(250, 248, 244, 0.95) 100%);
  border-radius: 20px;
  box-shadow:
    0 10px 24px rgba(201, 164, 92, 0.18),
    0 0 0 1px rgba(201, 164, 92, 0.12);
  color: var(--gold);
  display: inline-flex;
  height: 68px;
  justify-content: center;
  margin: 0 auto 12px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
  width: 68px;
}

.file-upload-icon-wrap i {
  font-size: 1.9rem;
}

.file-upload-title {
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

.file-upload-sub {
  font-size: 0.9rem;
  line-height: 1.35;
}

.file-upload-meta-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.file-upload-pill {
  background: rgba(16, 18, 23, 0.04);
  border: 1px solid rgba(16, 18, 23, 0.07);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.25;
  padding: 0.38rem 0.75rem;
}

.file-upload-pill.muted {
  font-weight: 500;
  max-width: 100%;
  text-align: left;
  word-break: break-word;
}

.file-upload-list-wrap {
  background: rgba(255, 255, 255, 0.65);
  border-top: 1px solid var(--line);
  padding: 14px 16px 16px;
}

.file-upload-list-heading {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.file-upload-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-upload-chip {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(16, 18, 23, 0.08);
  border-radius: 18px;
  box-shadow: 0 6px 22px rgba(16, 18, 23, 0.05);
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr auto;
  padding: 10px 10px 10px 12px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.file-upload-chip:hover {
  border-color: rgba(59, 108, 255, 0.18);
  box-shadow: 0 8px 28px rgba(16, 18, 23, 0.07);
}

.file-upload-chip-thumb {
  border-radius: 14px;
  flex-shrink: 0;
  height: 48px;
  overflow: hidden;
  width: 48px;
}

.file-upload-chip-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.file-upload-chip-thumb--doc {
  align-items: center;
  background: linear-gradient(135deg, var(--soft) 0%, #ebeff7 100%);
  border: 1px solid var(--line);
  color: var(--gold);
  display: inline-flex;
  font-size: 1.25rem;
  justify-content: center;
}

.file-upload-chip-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.file-upload-chip-name {
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-upload-chip-meta {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.file-upload-chip-remove {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(16, 18, 23, 0.1);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(16, 18, 23, 0.04);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 0.85rem;
  height: 38px;
  justify-content: center;
  margin: 0;
  padding: 0;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.12s ease;
  width: 38px;
}

.file-upload-chip-remove:hover {
  background: #fef3f2;
  border-color: rgba(180, 35, 24, 0.25);
  color: #b42318;
}

.file-upload-chip-remove:active {
  transform: scale(0.96);
}

.file-upload-hint {
  line-height: 1.35;
}

.file-upload-hint.is-error {
  color: #b42318;
  font-weight: 600;
}

.file-upload-footnote {
  line-height: 1.45;
  padding-top: 2px;
}

.result-preview {
  border: 1px solid var(--line);
  border-radius: 22px;
  display: block;
  max-height: 520px;
  object-fit: contain;
  width: 100%;
}

.result-preview--video {
  background: #0b0d12;
  border-radius: 22px;
  max-height: 480px;
}

.result-carousel-viewport {
  position: relative;
}

.result-carousel-media {
  background: #0b0d12;
  max-height: min(70vh, 560px);
  object-fit: contain;
}

.result-carousel-arrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 18, 23, 0.1);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(16, 18, 23, 0.12);
  color: var(--ink);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 42px;
  z-index: 3;
}

.result-carousel-arrow:hover {
  background: #fff;
  color: var(--ink);
}

.result-carousel-arrow--prev {
  left: 10px;
}

.result-carousel-arrow--next {
  right: 10px;
}

.result-carousel-thumb {
  aspect-ratio: 1;
  border: 2px solid rgba(16, 18, 23, 0.12);
  cursor: pointer;
  flex-shrink: 0;
  height: auto;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  width: 88px;
}

.result-carousel-thumb:hover {
  border-color: rgba(16, 18, 23, 0.28);
}

.result-carousel-thumb.is-active {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px rgba(16, 18, 23, 0.08);
}

.result-carousel-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* Срок хранения файлов генерации */
.generation-retention-notice {
  align-items: flex-start;
  border-radius: 20px;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding: 1.15rem 1.35rem;
}

.generation-retention-notice__icon {
  align-items: center;
  background: linear-gradient(145deg, rgba(201, 164, 92, 0.2), rgba(201, 164, 92, 0.08));
  border: 1px solid rgba(201, 164, 92, 0.35);
  border-radius: 14px;
  color: var(--gold);
  display: inline-flex;
  flex-shrink: 0;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.generation-retention-notice__content {
  flex: 1;
  min-width: 0;
}

.generation-retention-notice__title {
  display: block;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.generation-retention-notice__lead {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0;
}

.generation-retention-notice__accent {
  color: #7a622c;
  font-weight: 600;
}

.generation-retention-notice__deadline {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

.generation-retention-notice__date {
  color: var(--gold);
  font-weight: 700;
}

.generation-retention-notice__hint {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
}

.generation-retention-notice--stored {
  background: linear-gradient(165deg, rgba(255, 252, 245, 0.99) 0%, rgba(252, 246, 232, 1) 42%, rgba(248, 237, 212, 0.97) 100%);
  border: 1px solid rgba(201, 164, 92, 0.38);
  box-shadow:
    0 0 0 1px rgba(201, 164, 92, 0.1),
    0 14px 38px rgba(201, 164, 92, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.generation-retention-notice--stored .generation-retention-notice__title {
  color: #6b5424;
}

.generation-retention-notice--purged {
  background: linear-gradient(180deg, rgba(255, 250, 246, 1), rgba(252, 239, 236, 0.98));
  border: 1px solid rgba(220, 120, 100, 0.28);
  box-shadow: 0 10px 28px rgba(180, 72, 54, 0.08);
}

.generation-retention-notice--purged .generation-retention-notice__icon {
  background: rgba(220, 100, 80, 0.12);
  border-color: rgba(220, 100, 80, 0.28);
  color: #c45c48;
}

.generation-retention-notice--purged .generation-retention-notice__title {
  color: #8b3f32;
}

/* Модалка просмотра результата — светлая premium */
.result-lightbox-modal--premium .modal-content {
  background: linear-gradient(180deg, #ffffff 0%, #faf9f7 100%);
  border-radius: 1.35rem;
  box-shadow:
    0 0 0 1px rgba(18, 21, 28, 0.05),
    0 28px 72px rgba(16, 18, 23, 0.14);
}

.result-lightbox-modal--premium .modal-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(18, 21, 28, 0.08) !important;
}

.result-lightbox-modal--premium .modal-title {
  color: #12151c;
  letter-spacing: -0.02em;
}

.result-lightbox-modal--premium .result-lightbox-zoom-bar {
  background: #f4f2ee !important;
  border-bottom: 1px solid rgba(18, 21, 28, 0.07) !important;
}

.result-lightbox-modal--premium .result-lightbox-zoom-range {
  accent-color: var(--gold);
}

.result-lightbox-modal--premium .result-lightbox-meta {
  background: linear-gradient(180deg, #fafaf8, #f6f5f2) !important;
  border-color: rgba(18, 21, 28, 0.07) !important;
  color: #5a606c;
}

.result-lightbox-modal--premium .modal-footer {
  background: #ffffff;
  border-top-color: rgba(18, 21, 28, 0.08) !important;
}

.result-lightbox-modal--premium .result-lightbox-download-this {
  background: linear-gradient(165deg, rgba(255, 252, 245, 0.98) 0%, var(--gold) 55%, #b8934a 100%);
  border: 1px solid rgba(201, 164, 92, 0.45);
  color: #1a1408;
  font-weight: 600;
}

.result-lightbox-modal--premium .result-lightbox-download-this:hover {
  filter: brightness(1.04);
}

.result-lightbox-modal--premium .result-lightbox-thumbs-wrap {
  background: #faf9f7 !important;
  border-top-color: rgba(18, 21, 28, 0.08) !important;
}

.result-lightbox-modal--premium .result-lightbox-thumbs-wrap .result-lightbox-thumb {
  border-color: rgba(18, 21, 28, 0.1) !important;
  background: #fff;
}

.result-lightbox-modal--premium .result-lightbox-thumbs-wrap .result-lightbox-thumb.is-active {
  box-shadow:
    0 0 0 2px rgba(201, 164, 92, 0.65),
    0 6px 18px rgba(201, 164, 92, 0.12);
}

.result-lightbox-modal--premium .result-lightbox-viewport {
  background: linear-gradient(180deg, #eceae6 0%, #e5e3df 100%);
}

.result-preview--open-lightbox,
.result-carousel-pane .result-preview--open-lightbox {
  cursor: zoom-in;
  outline: none;
}

.result-preview--open-lightbox:focus-visible {
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.45);
}

.result-lightbox-error {
  max-width: 28rem;
  padding: 0.5rem 0.25rem;
  text-align: center;
}

.result-lightbox-modal .result-lightbox-dialog {
  margin: 1rem auto;
  max-width: min(92vw, 640px);
  width: 100%;
}

.result-lightbox-modal .result-lightbox-thumbs-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-height: 118px;
}

.result-lightbox-modal .result-lightbox-zoom-bar .form-range {
  height: 0.65rem;
  max-width: 11rem;
  min-width: 5rem;
}

.result-lightbox-modal .result-lightbox-viewport {
  align-items: center;
  background: #ebe9e6;
  display: flex;
  justify-content: center;
  max-height: min(38vh, 360px);
  min-height: 200px;
  overflow: auto;
  padding: 0.85rem;
}

.result-lightbox-modal .result-lightbox-viewport--panzoom {
  align-items: flex-start;
  justify-content: flex-start;
  max-height: min(62vh, 520px);
  min-height: min(38vh, 360px);
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.result-lightbox-modal .result-lightbox-viewport--panzoom:active {
  cursor: grabbing !important;
}

.result-lightbox-modal .result-lightbox-viewport--panzoom .result-lightbox-zoom-wrap {
  flex-shrink: 0;
  justify-content: flex-start;
  align-items: flex-start;
  transition: none;
}

.result-lightbox-modal .result-lightbox-viewport--panzoom .result-lightbox-media {
  max-height: min(72vh, 960px);
  max-width: min(96vw, 1280px);
}

.result-lightbox-modal .result-lightbox-zoom-wrap {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  transform-origin: center center;
  transition: transform 0.06s ease-out;
}

.result-lightbox-modal .result-lightbox-meta {
  line-height: 1.35;
}

.result-lightbox-modal .result-lightbox-media {
  display: block;
  max-height: 280px;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.result-lightbox-thumbs-wrap .result-lightbox-thumb {
  flex-shrink: 0;
  height: 72px;
  width: 72px;
}

.result-lightbox-thumb--av {
  align-items: center;
  color: #6c757d;
  display: inline-flex;
  font-size: 0.85rem;
  justify-content: center;
}

.playground-batch-field .form-select {
  max-width: 14rem;
}

.playground-batch-field .ts-wrapper {
  max-width: 14rem;
}

/* ---------- Premium selects (Tom Select + native fallback) ---------- */

.ts-wrapper {
  min-width: min(100%, 9rem);
  position: relative;
  width: 100%;
}

/* Открытый список поверх соседних блоков / строк таблицы */
.ts-wrapper.dropdown-active {
  z-index: 40;
}

.account-page .glass-card:has(.ts-wrapper.dropdown-active) {
  position: relative;
  z-index: 30;
}

.table-responsive:has(.ts-wrapper.dropdown-active) {
  overflow: visible;
}

.account-page table .ts-wrapper {
  min-width: 7rem;
}

.ts-wrapper.single .ts-control {
  align-items: center;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 12'%3E%3Cpath stroke='%23667085' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 3 8 8 8-8'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #fff 0%, #f8f9fc 100%);
  background-position:
    right 1rem center,
    0 0;
  background-repeat: no-repeat;
  background-size: 0.82rem auto, 100% 100%;
  border: 1px solid rgba(16, 18, 23, 0.11);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 1px 3px rgba(16, 18, 23, 0.05);
  color: var(--ink);
  font-weight: 500;
  gap: 0;
  min-height: 3rem;
  padding: 0.62rem 2.85rem 0.62rem 1.05rem;
  position: relative;
  transition:
    border-color 0.15s ease,
    box-shadow 0.18s ease;
}

/* одна строка текста без «таблетки» — поверх служебного input, клики проходят к полю ввода */
.ts-wrapper.single .ts-control .item {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  flex: 1 1 auto;
  margin: 0 !important;
  min-width: 0;
  padding: 0 !important;
  pointer-events: none;
  position: relative;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 2;
}

/* Служебный input Tom Select: без видимого набора текста и мигающего каретки */
.ts-wrapper.single .ts-control > input {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  caret-color: transparent !important;
  color: transparent !important;
  cursor: pointer;
  inset: 0;
  line-height: inherit !important;
  margin: 0 !important;
  min-height: 0 !important;
  opacity: 1;
  padding: 0 2.75rem 0 1.05rem !important;
  position: absolute;
  text-shadow: none !important;
  width: 100% !important;
  z-index: 1;
}

.ts-wrapper.single .ts-control .items-placeholder {
  color: var(--muted);
  flex: 1 1 auto;
  font-weight: 500;
  min-width: 0;
  opacity: 0.85;
  pointer-events: none;
  position: relative;
  z-index: 2;
}

.ts-wrapper:has(select.form-select-sm) .ts-control > input,
.ts-wrapper:has(select.form-control-sm) .ts-control > input {
  padding: 0 2.2rem 0 0.78rem !important;
}

.ts-wrapper.single .ts-control > input::placeholder {
  color: transparent !important;
  opacity: 0 !important;
}

.ts-wrapper.focus .ts-control,
.ts-wrapper.dropdown-active .ts-control {
  border-color: rgba(201, 164, 92, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 0 3px rgba(201, 164, 92, 0.15);
}

.ts-wrapper.disabled .ts-control {
  background-image: none;
  background: rgba(247, 248, 251, 0.9);
  opacity: 0.65;
}

.ts-wrapper.disabled .ts-control .item {
  color: var(--muted) !important;
}

.ts-wrapper:has(select.form-select-sm) .ts-control,
.ts-wrapper:has(select.form-control-sm) .ts-control {
  background-position:
    right 0.65rem center,
    0 0;
  background-size: 0.72rem auto, 100% 100%;
  border-radius: 12px;
  font-size: 0.875rem;
  min-height: 2rem;
  padding: 0.36rem 2.35rem 0.36rem 0.78rem;
}

/* Запасно: если на обёртке остался Bootstrap .form-select */
.ts-wrapper.form-select,
.ts-wrapper.form-select-sm {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.ts-dropdown {
  background: rgba(254, 254, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 18, 23, 0.08);
  border-radius: 18px !important;
  box-shadow:
    0 4px 12px rgba(16, 18, 23, 0.06),
    0 24px 52px rgba(16, 18, 23, 0.14);
  margin-top: 6px !important;
  overflow: hidden;
  z-index: 3;
}

.ts-dropdown .ts-dropdown-content {
  max-height: min(320px, 55vh);
  padding: 0.55rem 0 1rem;
  scrollbar-color: rgba(16, 18, 23, 0.22) transparent;
  scrollbar-width: thin;
}

.ts-dropdown .option,
.ts-dropdown .create {
  border-radius: 10px;
  color: var(--ink);
  margin: 0 0.38rem;
  padding: 0.55rem 0.92rem;
  transition: background-color 0.12s ease, color 0.12s ease;
}

/* Сброс дефолта Tom Select (.active = серо-голубой #f5fafd) */
.ts-dropdown .option.active,
.ts-dropdown .create.active {
  background: rgba(201, 164, 92, 0.18) !important;
  color: var(--ink) !important;
}

.ts-dropdown .option:hover,
.ts-dropdown .create:hover {
  background: rgba(201, 164, 92, 0.14) !important;
  color: var(--ink) !important;
}

/* Выбранное значение в списке — нейтральная «вкладка», без холодного серого */
.ts-dropdown .option.selected {
  background: rgba(201, 164, 92, 0.08) !important;
  color: var(--ink) !important;
  font-weight: 650;
}

.ts-dropdown .option.selected.active,
.ts-dropdown .option.selected:hover {
  background: rgba(201, 164, 92, 0.22) !important;
}

.ts-dropdown .optgroup-header,
.ts-dropdown .no-results {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ts-dropdown [data-selectable] .highlight {
  background: rgba(201, 164, 92, 0.32) !important;
  border-radius: 3px;
}

/* Первый пункт «Выбрать» / placeholder */
.ts-dropdown .option[data-value=""] {
  color: var(--muted);
  font-weight: 500;
}

.ts-dropdown .option[data-value=""]:hover,
.ts-dropdown .option[data-value=""].active {
  color: var(--ink) !important;
}

.ts-wrapper .ts-control,
.ts-dropdown {
  font-size: 1rem;
  line-height: 1.5;
}

.ts-wrapper:has(select.form-select-sm) .ts-dropdown,
.ts-wrapper:has(select.form-control-sm) .ts-dropdown {
  font-size: 0.875rem;
}

/* Админ-центр: длинные названия провайдера в «Основные настройки» */
.admin-service-settings .ts-wrapper {
  min-width: 0;
  width: 100%;
}

.admin-service-settings .ts-wrapper.single .ts-control {
  align-items: center;
  min-height: 3rem;
}

.admin-service-settings .ts-wrapper.single .ts-control .item {
  flex: 1 1 auto;
  flex-shrink: 0;
  min-width: auto;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

select.form-select:not(.ts-hidden-accessible),
select.form-control:not(.ts-hidden-accessible) {
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 12'%3E%3Cpath stroke='%23667085' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 3 8 8 8-8'/%3E%3C/svg%3E");

  appearance: none;
  background-color: #fff;
  background-image: var(--select-chevron), linear-gradient(180deg, #fff 0%, #f8f9fc 100%);
  background-position:
    right 1rem center,
    0 0;
  background-repeat: no-repeat, no-repeat;
  background-size: 0.82rem auto, 100% 100%;
  border: 1px solid rgba(16, 18, 23, 0.11);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 1px 3px rgba(16, 18, 23, 0.05);
  padding-right: 2.85rem;
}

select.form-select-sm:not(.ts-hidden-accessible),
select.form-control-sm:not(.ts-hidden-accessible) {
  background-position:
    right 0.65rem center,
    0 0;
  background-size: 0.72rem auto, 100% 100%;
  border-radius: 12px;
  padding-right: 2.1rem;
}

select.form-select:not(.ts-hidden-accessible):focus,
select.form-control:not(.ts-hidden-accessible):focus {
  border-color: rgba(201, 164, 92, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 0 3px rgba(201, 164, 92, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .ts-wrapper.single .ts-control,
  .ts-dropdown .option {
    transition: none;
  }
}

.premium-modal .modal-content {
  border: 0;
  border-radius: 32px;
  box-shadow: 0 40px 120px rgba(16, 18, 23, 0.22);
}

.premium-modal .modal-icon {
  align-items: center;
  background: #111;
  border-radius: 22px;
  color: #fff;
  display: inline-flex;
  font-size: 1.5rem;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.neuro-confirm-modal .modal-body {
  text-align: center;
}

.neuro-confirm-modal__title {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.neuro-confirm-modal__body {
  line-height: 1.55;
  max-width: 26rem;
  white-space: pre-wrap;
}

.neuro-confirm-modal--danger .neuro-confirm-modal__icon {
  background: linear-gradient(155deg, #b42318 0%, #7f1d1d 100%);
}

.playground-run-modal .modal-body {
  text-align: center;
}

.playground-run-modal__title {
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.playground-run-modal__lead {
  line-height: 1.5;
  max-width: 26rem;
}

.playground-run-modal__link {
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.playground-run-modal__link:hover {
  color: var(--gold);
}

.playground-run-modal__price-stack {
  background: linear-gradient(165deg, rgba(255, 252, 245, 0.98) 0%, rgba(252, 246, 232, 1) 42%, rgba(248, 238, 216, 0.97) 100%);
  border: 1px solid rgba(201, 164, 92, 0.38);
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(201, 164, 92, 0.08),
    0 14px 38px rgba(201, 164, 92, 0.12);
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  margin-inline: auto;
  max-width: 18rem;
  padding: 1.1rem 1.35rem 1rem;
}

.playground-run-modal__price-inner {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.playground-run-modal__price-caption {
  color: rgba(122, 98, 44, 0.9);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.playground-run-modal__price-total {
  color: var(--gold);
  display: block;
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.playground-run-modal__price-breakdown {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  line-height: 1.35;
  min-height: 1.35em;
  opacity: 0.92;
}

.playground-run-modal__price-breakdown:empty {
  display: none;
}

.playground-run-modal__price-breakdown:not(:empty) {
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(201, 164, 92, 0.35);
  width: 100%;
}

.empty-icon {
  align-items: center;
  background: #111;
  border-radius: 22px;
  color: #fff;
  display: inline-flex;
  font-size: 1.5rem;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.playground-actions {
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--line);
  bottom: 0;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin: 24px -22px -22px;
  padding: 16px 22px;
  position: sticky;
}

.docs-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.side-menu {
  display: grid;
  gap: 8px;
  padding: 18px;
  position: sticky;
  top: 92px;
}

.side-menu-title {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 10px 12px 4px;
  text-transform: uppercase;
}

.side-menu a {
  align-items: center;
  border-radius: 18px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  padding: 12px 14px;
}

.side-menu a:hover,
.side-menu a.active {
  background: #111;
  color: #fff;
}

@media (max-width: 991.98px) {
  .account-settings-page .side-menu {
    text-align: center;
  }

  .account-settings-page .side-menu a {
    justify-content: center;
  }

  .account-settings-page .glass-card {
    text-align: center;
  }

  .account-settings-page .glass-card form.row {
    justify-content: center;
  }

  .account-settings-page .glass-card .d-flex.align-items-center.gap-2 {
    justify-content: center;
  }

  .account-settings-page .glass-card .form-control,
  .account-settings-page .glass-card .form-select {
    text-align: left;
  }

  .account-settings-page .auth-captcha-visual {
    justify-content: center;
  }

  .account-settings-page .auth-captcha-block .form-label,
  .account-settings-page .auth-captcha-block .form-text {
    text-align: center;
  }

  .account-settings-page .auth-captcha-input {
    text-align: left;
  }
}

.mini-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 45px rgba(16, 18, 23, 0.05);
  display: grid;
  gap: 8px;
  height: 100%;
  padding: 22px;
}

.mini-stat i {
  color: var(--gold);
  font-size: 1.25rem;
}

.mini-stat strong {
  font-size: 1.25rem;
}

.mini-stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.account-dashboard-page .dashboard-stats-row {
  justify-content: center;
  margin-inline: auto;
  max-width: 960px;
}

.dashboard-category-strip {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-inline: auto;
  max-width: 1080px;
}

.dashboard-category-strip__label {
  color: var(--muted);
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-category-chips {
  display: flex;
  flex: 1 1 240px;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.dashboard-category-chip {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.8125rem;
  font-weight: 600;
  gap: 7px;
  padding: 6px 12px 6px 10px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.dashboard-category-chip i {
  color: var(--gold);
  font-size: 0.875rem;
  width: 1rem;
}

.dashboard-category-chip:hover {
  border-color: rgba(201, 164, 92, 0.45);
  box-shadow: 0 4px 14px rgba(201, 164, 92, 0.1);
  color: var(--ink);
  transform: translateY(-1px);
}

.dashboard-category-chip__count {
  background: #f4f6fb;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  min-width: 1.25rem;
  padding: 3px 6px;
  text-align: center;
}

.account-dashboard-page .dashboard-stat-mini {
  justify-items: center;
  text-align: center;
}

.account-dashboard-page .dashboard-popular-title {
  justify-self: stretch;
  text-align: center;
}

.account-dashboard-page .dashboard-panel-more {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.account-dashboard-page .dashboard-panel-more:hover {
  color: var(--gold);
}

.account-dashboard-page .dashboard-panels {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-inline: auto;
  max-width: 1120px;
}

@media (min-width: 1200px) {
  .account-dashboard-page .dashboard-panels {
    align-items: start;
    grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr);
  }
}

.sandbox-card--dashboard {
  padding: 18px 20px;
}

.sandbox-card-logo--dashboard,
.sandbox-card-logo-ph--dashboard {
  height: 48px;
  width: 48px;
}

.sandbox-card-logo-ph--dashboard {
  font-size: 1.2rem;
}

.sandbox-card-title--dashboard {
  font-size: 1rem;
}

.dashboard-panel-sandboxes .model-stats--sandbox-link {
  border-top-style: solid;
  border-top-color: rgba(16, 18, 23, 0.06);
  padding-top: 8px;
}

.dashboard-recent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-recent-item {
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 252, 254, 0.96) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: inherit;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  outline: none;
  padding: 14px 16px;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.dashboard-recent-item:hover {
  border-color: rgba(201, 164, 92, 0.35);
  box-shadow: 0 12px 32px rgba(16, 18, 23, 0.07);
  transform: translateY(-1px);
}

.dashboard-recent-item:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.25);
}

.dashboard-recent-item__main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.dashboard-recent-item__id {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-recent-item__label {
  font-weight: 700;
  line-height: 1.28;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dashboard-recent-item__badge {
  align-self: center;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-recent-item {
    transition: none;
  }

  .dashboard-recent-item:hover {
    transform: none;
  }
}

.generation-detail-page .generation-detail-metrics {
  width: 100%;
}

.generation-detail-page .generation-detail-hero-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: space-between;
}

.generation-detail-page .generation-detail-hero-title {
  flex: 1 1 12rem;
  line-height: 1.22;
  min-width: 0;
}

.generation-detail-page .generation-detail-hero-head .generation-detail-status {
  flex-shrink: 0;
  margin: 0;
  max-width: min(320px, 100%);
  text-align: center;
  width: auto;
}

@media (max-width: 575.98px) {
  .generation-detail-page .generation-detail-hero-head .generation-detail-status {
    flex-basis: auto;
    width: min(320px, 100%);
    margin-inline: auto;
    margin-right: auto;
    margin-left: auto;
    max-width: 100%;
  }
}

.generation-detail-page .generation-detail-mini-stat {
  justify-items: center;
  text-align: center;
  width: min(100%, 300px);
}

.generation-detail-page .generation-showcase {
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding: 1rem 1rem 1rem;
}

@media (min-width: 576px) {
  .generation-detail-page .generation-showcase {
    padding: 1.1rem 1.2rem 1.1rem;
  }
}

.generation-detail-page .generation-showcase__shell {
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--gold) 9%, var(--soft)) 0%,
    rgba(255, 255, 255, 0.94) 48%,
    #fff 100%
  );
  border: 1px solid color-mix(in srgb, var(--gold) 22%, var(--line));
  border-radius: 20px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 10px 32px rgba(16, 18, 23, 0.05);
  padding: clamp(1rem, 2.4vw, 1.25rem);
}

.generation-detail-page .generation-showcase__header {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  justify-content: space-between;
}

.generation-detail-page .generation-showcase__header-main {
  display: flex;
  flex: 1 1 12rem;
  gap: 0.85rem;
  min-width: 0;
}

.generation-detail-page .generation-showcase__icon {
  align-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), color-mix(in srgb, var(--gold) 14%, var(--soft)));
  border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line));
  border-radius: 14px;
  color: color-mix(in srgb, var(--gold) 88%, var(--ink));
  display: flex;
  flex-shrink: 0;
  font-size: 1.1rem;
  height: 2.65rem;
  justify-content: center;
  width: 2.65rem;
}

.generation-detail-page .generation-showcase__kicker {
  color: var(--gold);
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.2;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.generation-detail-page .generation-showcase__title {
  color: var(--ink);
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

.generation-detail-page .generation-showcase__lead {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0;
  max-width: 38rem;
}

.generation-detail-page .generation-showcase__lead a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.generation-detail-page .generation-showcase__lead a:hover {
  color: color-mix(in srgb, var(--gold) 55%, var(--ink));
}

.generation-detail-page .generation-showcase__lead + .generation-showcase__alert {
  margin-top: 0.75rem;
}

.generation-detail-page .generation-showcase__hint {
  color: color-mix(in srgb, var(--muted) 92%, var(--ink));
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0.65rem 0 0;
  max-width: 38rem;
}

.generation-detail-page .generation-showcase__header-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.generation-detail-page .generation-showcase__badge-live {
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line));
  border-radius: 999px;
  color: color-mix(in srgb, var(--gold) 35%, var(--ink));
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  white-space: nowrap;
}

.generation-detail-page .generation-showcase__divider {
  background: linear-gradient(90deg, transparent, rgba(236, 239, 243, 0.25) 15%, rgba(236, 239, 243, 0.55) 50%, rgba(236, 239, 243, 0.25) 85%, transparent);
  height: 1px;
  margin: 1.25rem 0;
}

.generation-detail-page .generation-showcase__divider--light {
  margin: 1rem 0;
  opacity: 0.85;
}

.generation-detail-page .generation-showcase__divider--dense {
  margin: 0.45rem 0 0.55rem;
}

.generation-detail-page .generation-showcase__active-title {
  color: var(--ink);
  font-size: 0.875rem;
  margin: -0.25rem 0 1rem;
}

.generation-detail-page .generation-showcase__alert {
  align-items: flex-start;
  background: rgba(255, 248, 235, 0.65);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, #f5e6cc);
  border-radius: 14px;
  color: color-mix(in srgb, var(--muted) 15%, var(--ink));
  display: flex;
  font-size: 0.875rem;
  gap: 0.65rem;
  line-height: 1.5;
  margin-bottom: 1.1rem;
  padding: 0.85rem 1rem;
}

.generation-detail-page .generation-showcase__alert-icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.generation-detail-page .generation-showcase__alert a {
  color: var(--ink);
  font-weight: 650;
}

.generation-detail-page .generation-showcase__alert.generation-showcase__alert--nsfw {
  margin-bottom: 0;
  padding: 1rem 1.05rem 1.05rem;
}

.generation-detail-page .generation-showcase__form {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  margin-bottom: 0;
}

.generation-detail-page .generation-showcase__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.generation-detail-page .generation-showcase__label {
  color: var(--ink);
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: 0.8125rem;
  font-weight: 700;
  gap: 0.35rem;
  letter-spacing: -0.01em;
  margin: 0;
}

.generation-detail-page .generation-showcase__optional {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 650;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  text-transform: lowercase;
}

.generation-detail-page .generation-showcase__control {
  background: rgba(255, 255, 255, 0.92);
  border-color: color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 14px;
  font-size: 0.9375rem;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}

.generation-detail-page .generation-showcase__textarea {
  line-height: 1.48;
  min-height: 7.25rem;
  resize: vertical;
}

.generation-detail-page .generation-showcase__control:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--gold) 35%, var(--line));
}

.generation-detail-page .generation-showcase__control:focus-visible {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent);
}

.generation-detail-page .generation-showcase__control:disabled {
  background: rgba(247, 248, 251, 0.75);
  cursor: not-allowed;
  opacity: 0.72;
}

.generation-detail-page .generation-showcase__form-hint {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
  margin-top: 0.1rem;
}

.generation-detail-page .generation-showcase__submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.2rem;
  padding-top: 0.15rem;
}

.generation-detail-page .generation-showcase__btn-primary {
  font-weight: 700;
  min-height: 2.85rem;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

.generation-detail-page .generation-showcase__footer-actions {
  border-top: 1px dashed color-mix(in srgb, var(--line) 85%, transparent);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
}

.generation-detail-page .generation-showcase__footer-actions--tight {
  border-top: none;
  margin-top: 0.75rem;
  padding-top: 0;
}

.generation-detail-page .generation-showcase__danger-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.generation-detail-page .generation-showcase__footer-note {
  color: var(--muted);
  flex: 1 1 14rem;
  font-size: 0.78rem;
  line-height: 1.48;
  margin: 0;
  max-width: 28rem;
}

.generation-detail-page .generation-showcase__draft-strip {
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

.generation-detail-page .generation-showcase__draft-text {
  color: var(--muted);
  font-size: 0.8125rem;
}

.generation-detail-page .generation-showcase__muted-block {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0 0 1rem;
  max-width: 40rem;
}

.generation-detail-page .generation-showcase__shell > .generation-showcase__muted-block:last-child {
  margin-bottom: 0;
}

.generation-detail-page .generation-showcase__muted-block a {
  color: var(--ink);
  font-weight: 650;
}

/* Страница «Мои задачи»: сводка по центру, карточки списка */
.generations-list-page .generations-stat-mini {
  justify-items: center;
  text-align: center;
}

.generations-list-page .generations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.generations-list-page .generation-list-item {
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 252, 254, 0.94) 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  justify-content: space-between;
  padding: 18px 20px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.generations-list-page .generation-list-item:hover {
  border-color: rgba(201, 164, 92, 0.38);
  box-shadow: 0 14px 40px rgba(16, 18, 23, 0.07);
  transform: translateY(-1px);
}

.generations-list-page .generation-list-item__body {
  flex: 1 1 220px;
  min-width: 0;
}

.generations-list-page .generation-list-item__title {
  align-items: baseline;
  color: #12151c;
  display: inline-flex;
  flex-wrap: wrap;
  font-size: 1.08rem;
  font-weight: 700;
  gap: 0.35rem 0.45rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.35rem;
  text-decoration: none;
}

.generations-list-page .generation-list-item__title:hover {
  color: var(--gold);
}

.generations-list-page .generation-list-item__title:hover .generation-list-item__middot {
  color: rgba(201, 164, 92, 0.55);
}

.generations-list-page .generation-list-item__id {
  color: rgba(18, 21, 28, 0.88);
  font-variant-numeric: tabular-nums;
}

.generations-list-page .generation-list-item__middot {
  color: rgba(18, 21, 28, 0.38);
  font-weight: 600;
  user-select: none;
}

.generations-list-page .generation-list-item__meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.875rem;
  gap: 0.35rem 0.25rem;
  line-height: 1.45;
}

.generations-list-page .generation-list-item__meta-dot {
  color: rgba(120, 125, 138, 0.58);
  user-select: none;
}

.generations-list-page .generation-list-item__meta-cost {
  color: rgba(18, 21, 28, 0.74);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.generations-list-page .generation-list-item__aside {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 575.98px) {
  .generations-list-page .generation-list-item__aside {
    justify-content: space-between;
    width: 100%;
  }

  .generations-list-page .generation-list-item__aside .btn {
    flex: 1 1 auto;
    min-width: 120px;
  }
}

.generations-list-page .generation-status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 0.38rem 0.95rem;
  white-space: nowrap;
}

.generations-list-page .generation-status-pill--completed {
  background: linear-gradient(
    165deg,
    rgba(255, 252, 245, 0.98) 0%,
    rgba(252, 246, 232, 1) 45%,
    rgba(248, 238, 216, 0.97) 100%
  );
  border-color: rgba(201, 164, 92, 0.42);
  color: rgba(90, 72, 28, 0.92);
}

.generations-list-page .generation-status-pill--failed {
  background: #fff6f6;
  border-color: rgba(220, 53, 69, 0.35);
  color: #a62937;
}

.generations-list-page .generation-status-pill--active {
  background: rgba(248, 249, 252, 0.96);
  border-color: rgba(110, 118, 135, 0.28);
  color: rgba(55, 60, 72, 0.92);
}

.generations-list-page .generations-list-empty {
  margin: 0;
  text-align: center;
}

.model-stats {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  gap: 10px;
}

.table-card {
  padding: 20px;
}

.admin-topup-form {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(90px, 0.7fr) minmax(130px, 1fr) auto;
}

.admin-inline-form {
  min-width: 120px;
}

.admin-users-toolbar {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: -4px 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-users-toolbar__field {
  flex: 1 1 12rem;
  min-width: 0;
}

.admin-users-toolbar__field--narrow {
  flex: 0 1 9rem;
}

.admin-users-toolbar__submit {
  flex: 0 0 auto;
}

.admin-users-table-wrap {
  margin: 0 -4px;
}

.admin-users-pagination .page-link {
  border-radius: 999px;
  margin: 0 1px;
}

.admin-users-page .admin-users-card {
  overflow: hidden;
}

.admin-users-table {
  --bs-table-hover-bg: rgba(201, 164, 92, 0.06);
}

.admin-users-table thead th {
  border-bottom-width: 1px;
  color: rgba(55, 60, 72, 0.75);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-users-table__row--blocked {
  background: rgba(255, 193, 7, 0.12);
}

.admin-users-table__row--self:not(.admin-users-table__row--blocked) {
  background: rgba(13, 110, 253, 0.06);
}

.admin-users-table__user {
  max-width: 16rem;
  min-width: 0;
}

.admin-users-table__id {
  line-height: 1.2;
}

.admin-users-table__email {
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-users-table__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  max-width: 11rem;
  margin-inline: auto;
}

.admin-users-table__badges .badge {
  font-size: 0.65rem;
  font-weight: 600;
}

.admin-user-modal .modal-header .btn-close {
  margin-top: -0.25rem;
}

.admin-user-modal__summary .badge {
  font-size: 0.75rem;
  font-weight: 600;
}

.admin-user-modal__section {
  background: linear-gradient(165deg, rgba(255, 252, 245, 0.98) 0%, rgba(252, 248, 238, 0.95) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 32px rgba(16, 18, 23, 0.06);
}

.admin-user-modal__dl dt {
  font-weight: 600;
}

.admin-user-modal__ua {
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.05);
  max-height: 7rem;
  overflow: auto;
  padding: 10px 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.api-secret,
.api-code {
  white-space: pre-wrap;
  word-break: break-word;
}

.api-code {
  background: #101217;
  border-radius: 22px;
  color: #fff;
  margin: 16px 0 0;
  padding: 22px;
}

.docs-category {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.docs-category:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.docs-category h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.docs-service {
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-top: 12px;
  padding: 14px 16px;
}

.docs-service-main {
  flex: 1;
  min-width: 0;
}

.docs-service-slug {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.docs-service-title {
  color: var(--ink);
  display: block;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.docs-service-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.docs-service-meta {
  color: var(--muted);
  flex-shrink: 0;
  line-height: 1.35;
  max-width: 100%;
  text-align: right;
  white-space: normal;
}

@media (min-width: 576px) {
  .docs-service-meta {
    white-space: nowrap;
  }
}

.provider-credit {
  border: 1px solid var(--line);
  border-radius: 22px;
  min-width: 220px;
  padding: 16px 18px;
}

.provider-credit span {
  color: var(--muted);
  display: block;
  font-size: 0.85rem;
}

.provider-credit strong {
  display: block;
  font-size: 1.1rem;
}

.provider-credit.ok {
  background: linear-gradient(165deg, rgba(255, 252, 245, 0.98) 0%, rgba(252, 246, 232, 1) 45%, rgba(248, 238, 216, 0.97) 100%);
  border-color: rgba(201, 164, 92, 0.42);
  box-shadow:
    0 0 0 1px rgba(201, 164, 92, 0.1),
    0 12px 32px rgba(201, 164, 92, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.provider-credit.ok span {
  color: rgba(122, 98, 44, 0.88);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.provider-credit.ok strong {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.provider-credit.bad {
  background: #fff6f6;
}

.history-row {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 0;
}

.history-row > :first-child {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.history-row:last-child {
  border-bottom: 0;
}

/* API keys — /account/api-keys */
.api-keys-page .api-keys-hero__top {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.api-keys-page .api-keys-hero__icon-wrap {
  align-items: center;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.02));
  border-radius: 14px;
  color: rgba(15, 23, 42, 0.5);
  display: flex;
  font-size: 1.18rem;
  height: 48px;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
}

.api-keys-page .api-keys-hero__tips {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.72rem;
  list-style: none;
  margin: 0;
  padding: 1.35rem 0 0;
}

.api-keys-page .api-keys-hero__tips li {
  align-items: flex-start;
  color: var(--muted);
  display: flex;
  font-size: 0.875rem;
  gap: 0.65rem;
  line-height: 1.5;
}

.api-keys-page .api-keys-hero__tips li i {
  color: rgba(15, 23, 42, 0.32);
  flex-shrink: 0;
  margin-top: 0.12rem;
  width: 1.15rem;
}

.api-keys-page .api-key-reveal {
  background: linear-gradient(162deg, rgba(254, 252, 232, 0.97), rgba(255, 255, 255, 1));
  border: 1px solid rgba(234, 179, 8, 0.5);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 16px 48px rgba(202, 138, 4, 0.1);
}

.api-keys-page .api-key-reveal__head {
  border-bottom: 1px dashed rgba(202, 138, 4, 0.28);
  margin-bottom: 1.15rem;
  padding-bottom: 1.05rem;
}

.api-keys-page .api-key-reveal__badge {
  align-items: center;
  background: rgba(202, 138, 4, 0.15);
  border-radius: 999px;
  color: rgb(146, 64, 14);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 700;
  gap: 0.35rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.72rem;
  text-transform: uppercase;
}

.api-keys-page .api-key-reveal__title {
  display: block;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.api-keys-page .api-key-reveal__lead {
  color: rgb(113, 63, 18);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 52rem;
}

.api-keys-page .api-key-token-wrap {
  background: #14161c;
  border-radius: 14px;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.06);
  margin-bottom: 1.1rem;
  max-height: 9.25rem;
  overflow: auto;
  padding: 1rem 1.15rem;
}

.api-keys-page .api-key-token {
  background: transparent;
  color: #eef1f9;
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.55;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.api-keys-page .api-key-reveal__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.api-keys-page .api-key-reveal__hint {
  flex: 1;
  min-width: min(22rem, 100%);
}

.api-keys-inline-code {
  background: rgba(15, 23, 42, 0.07);
  border-radius: 6px;
  font-size: 0.74em;
  padding: 0.12rem 0.35rem;
  white-space: nowrap;
}

.api-keys-create {
  overflow: visible;
}

.api-keys-limit-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.03), rgba(254, 252, 232, 0.45));
  border: 1px dashed rgba(15, 23, 42, 0.18);
  overflow: visible;
}

.api-keys-list-card {
  overflow: visible;
}

.api-keys-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.api-keys-page .api-key-item {
  align-items: flex-start;
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  justify-content: space-between;
  padding: 1.05rem 1.15rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.api-keys-page .api-key-item:hover {
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.api-keys-page .api-key-item--revoked {
  background: rgba(15, 23, 42, 0.02);
  opacity: 0.78;
}

.api-keys-page .api-key-item--revoked:hover {
  box-shadow: none;
}

.api-keys-page .api-key-item__main {
  flex: 1;
  min-width: 0;
}

.api-keys-page .api-key-item__title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}

.api-keys-page .api-key-item__name {
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}

.api-keys-page .api-key-item__meta {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
  margin-bottom: 0.25rem;
}

.api-keys-page .api-key-prefix {
  background: rgba(15, 23, 42, 0.06);
  border-radius: 6px;
  color: #1e293b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.12rem 0.38rem;
}

.api-keys-page .api-key-item__dot {
  margin: 0 0.2rem;
}

.api-keys-page .api-key-item__usage {
  line-height: 1.4;
}

.api-keys-page .api-key-item__actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  padding-top: 0.15rem;
}

@media (max-width: 575.98px) {
  .api-keys-page .api-key-reveal__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .api-keys-page .api-key-reveal__actions .btn {
    width: 100%;
  }

  .api-keys-page .api-key-item__actions {
    width: 100%;
  }

  .api-keys-page .api-key-item__actions .btn {
    width: 100%;
  }
}

.site-footer {
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.site-footer__grid {
  display: grid;
  gap: 2rem 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.site-footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.site-footer__brand-mark {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(16, 18, 23, 0.06);
  color: var(--gold);
  font-size: 1.1rem;
}

.site-footer__brand-mark--image {
  width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  align-items: flex-start;
}

.site-logo--footer {
  display: block;
  max-width: min(100%, 280px);
  height: auto;
  max-height: 3.25rem;
  width: auto;
}

.site-footer__brand-body {
  min-width: 0;
}

.site-footer__name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.site-footer__lead {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
  max-width: 32rem;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-self: start;
}

.site-footer__nav-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer__nav-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.site-footer__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8625rem;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 20px rgba(16, 18, 23, 0.04);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease,
    background 0.15s ease;
}

.site-footer__chip:hover {
  border-color: rgba(16, 18, 23, 0.18);
  background: #fff;
  box-shadow: 0 8px 26px rgba(16, 18, 23, 0.07);
  transform: translateY(-1px);
  color: var(--ink);
}

.site-footer__chip--accent {
  border-color: color-mix(in srgb, var(--gold) 42%, var(--line));
  background: color-mix(in srgb, var(--gold) 10%, #fff);
  font-weight: 600;
}

.site-footer__chip--accent:hover {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
  background: color-mix(in srgb, var(--gold) 14%, #fff);
}

.site-footer__chip--active {
  border-color: rgba(16, 18, 23, 0.24);
  background: #fff;
  box-shadow: 0 8px 26px rgba(16, 18, 23, 0.08);
  font-weight: 600;
}

.site-footer__chip--active:hover {
  transform: none;
}

.site-footer__chip--accent.site-footer__chip--active {
  border-color: color-mix(in srgb, var(--gold) 58%, var(--line));
  background: color-mix(in srgb, var(--gold) 20%, #fff);
}

.site-footer__chip--accent.site-footer__chip--active:hover {
  border-color: color-mix(in srgb, var(--gold) 62%, var(--line));
  background: color-mix(in srgb, var(--gold) 22%, #fff);
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.35rem;
  margin-top: 2.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-footer__copy {
  flex-shrink: 0;
}

.site-footer__bottom-promo {
  flex: 1;
  min-width: min(100%, 20rem);
}

@media (min-width: 992px) {
  .site-footer__bottom {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
  }

  .site-footer__bottom-promo {
    text-align: right;
    max-width: 26rem;
    margin-left: auto;
  }
}

.site-footer__tagline {
  margin: 0 0 0.3rem;
  line-height: 1.45;
}

.site-footer__tagline em {
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(0.9375rem, 2.1vw, 1.0625rem);
}

.site-footer__tagline-hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  opacity: 0.9;
}

.site-footer__docs {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px dashed color-mix(in srgb, var(--line) 75%, transparent);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-footer__docs-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer__docs-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
}

.site-footer__docs-sep {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 55%, var(--line));
  flex-shrink: 0;
}

.site-footer__docs-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  text-underline-offset: 0.18em;
  transition: color 0.15s ease;
}

.site-footer__docs-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer__docs-link--active {
  color: var(--ink);
  font-weight: 600;
}

/* Узкая колонка: логотип + текст одним блоком по центру, навигация и документы — по центру */
@media (max-width: 991.98px) {
  .site-footer__brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer__brand-mark--image {
    align-items: center;
  }

  .site-logo--footer {
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer__brand-body {
    width: 100%;
  }

  .site-footer__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer__nav {
    align-self: stretch;
    align-items: center;
    text-align: center;
  }

  .site-footer__nav-kicker {
    width: 100%;
  }

  .site-footer__nav-chips {
    justify-content: center;
  }

  .site-footer__docs {
    align-items: center;
    text-align: center;
  }

  .site-footer__docs-kicker {
    width: 100%;
  }

  .site-footer__docs-links {
    justify-content: center;
  }

  .site-footer__bottom {
    align-items: center;
    text-align: center;
  }

  .site-footer__bottom-promo {
    text-align: center;
    margin-left: 0;
    max-width: none;
  }
}

.legal-page__body {
  padding: clamp(1.25rem, 3.2vw, 2rem) clamp(1.25rem, 3.5vw, 2.25rem);
  font-size: 1.02rem;
  line-height: 1.68;
}

.legal-page__section + .legal-page__section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
}

.legal-page__section .h5 {
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.legal-page__list {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.65;
}

.legal-page__list li + li {
  margin-top: 0.45rem;
}

.legal-page__body a {
  font-weight: 500;
  color: var(--ink);
  text-underline-offset: 0.15em;
}

.legal-page__body a:hover {
  color: color-mix(in srgb, var(--gold) 35%, var(--ink));
}

/* Контакты: Tom Select для темы — белый контрол как у полей ввода (без серого градиента) */
.contact-page__form.glass-card {
  overflow: visible;
  position: relative;
  z-index: 1;
}

/*
 * Контакты: Tom Select + tom-select.css задаёт padding-right с !important и
 * .has-items .ts-control > input { margin: 0 4px } — из‑за этого текст «уезжает».
 * Перебиваем всё только здесь, с большей специфичностью.
 */
.contact-page__form .ts-wrapper.single .ts-control {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 12'%3E%3Cpath stroke='%23667085' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 3 8 8 8-8'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #fff 0%, #fff 100%);
  background-position:
    right 0.75rem center,
    0 0;
  background-repeat: no-repeat, no-repeat;
  background-size: 0.75rem auto, 100% 100%;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 500;
  justify-content: flex-start;
  line-height: 1.5;
  min-height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 2.25rem 0.375rem 0.75rem !important;
}

.contact-page__form .ts-wrapper.single .ts-control .item {
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left;
}

.contact-page__form .ts-wrapper.has-items .ts-control > input,
.contact-page__form .ts-wrapper.single .ts-control > input {
  flex: none !important;
  margin: 0 !important;
  min-width: 0 !important;
  padding: 0 2rem 0 0 !important;
}

.contact-page__form .ts-wrapper.single .ts-control > input {
  inset: 0 !important;
  width: 100% !important;
}

.contact-page__form .ts-wrapper.dropdown-active {
  z-index: 50;
}

.topup-shell.glass-card {
  margin-inline: auto;
  max-width: 38rem;
  overflow: visible;
  padding: clamp(1.5rem, 3.8vw, 2.125rem);
}

.topup-split .topup-shell.glass-card {
  margin-inline: 0;
  max-width: none;
}

.topup-aside {
  padding: clamp(1.5rem, 3.8vw, 2rem);
}

.topup-aside-kicker {
  letter-spacing: 0.07em;
}

.topup-aside-list {
  line-height: 1.55;
  margin: 0;
  padding-left: 1.15rem;
}

.topup-aside-list li {
  margin-bottom: 0.55rem;
}

.topup-aside-list li:last-child {
  margin-bottom: 0;
}

.topup-aside-links a {
  text-decoration: none;
}

.topup-aside-balance-val {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.topup-shell__intro {
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(1.35rem, 3vw, 1.85rem);
  padding-bottom: clamp(1.2rem, 2.8vw, 1.55rem);
}

.topup-shell__title {
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  letter-spacing: -0.035em;
  margin-bottom: 0.55rem;
}

.topup-shell__lead {
  font-size: 0.935rem;
  line-height: 1.52;
  max-width: 32rem;
}

.topup-range-pill {
  align-items: center;
  background: linear-gradient(135deg, rgba(201, 164, 92, 0.12), rgba(201, 164, 92, 0.04));
  border: 1px solid rgba(201, 164, 92, 0.28);
  border-radius: 999px;
  color: rgb(107, 80, 32);
  display: inline-flex;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.38rem 0.98rem;
}

.topup-range-pill i {
  font-size: 0.76rem;
  opacity: 0.85;
}

.topup-form {
  display: flex;
  flex-direction: column;
  gap: clamp(1.15rem, 2.8vw, 1.55rem);
}

.topup-block {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.topup-block__label {
  color: rgb(54, 60, 69);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0;
  text-transform: uppercase;
}

.topup-presets {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.75rem), 1fr));
}

.topup-preset-chip {
  -webkit-appearance: none;
  appearance: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
  font-weight: 670;
  line-height: 1.35;
  min-height: 2.75rem;
  padding: 0.62rem 0.92rem;
  text-align: center;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.14s ease;
}

.topup-preset-chip__cur {
  color: rgba(54, 60, 69, 0.55);
  font-size: 0.74em;
  font-weight: 650;
  margin-left: 0.12rem;
}

.topup-preset-chip:hover {
  border-color: rgba(201, 164, 92, 0.45);
  box-shadow: 0 10px 28px rgba(201, 164, 92, 0.12);
}

.topup-preset-chip:focus-visible {
  border-color: rgba(201, 164, 92, 0.75);
  box-shadow:
    0 0 0 3px rgba(201, 164, 92, 0.18),
    0 12px 32px rgba(201, 164, 92, 0.12);
  outline: none;
}

.topup-preset-chip.is-active {
  background: linear-gradient(180deg, rgba(255, 251, 240, 0.98), rgba(252, 248, 236, 0.99));
  border-color: rgba(201, 164, 92, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(201, 164, 92, 0.1),
    0 8px 24px rgba(201, 164, 92, 0.15);
}

.topup-preset-chip:active:not(:disabled) {
  transform: scale(0.99);
}

@media (prefers-reduced-motion: reduce) {
  .topup-preset-chip {
    transition: none;
  }

  .topup-preset-chip:active:not(:disabled) {
    transform: none;
  }
}

.topup-money-field {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow:
    inset 0 2px 4px rgba(16, 18, 23, 0.04),
    0 1px 2px rgba(16, 18, 23, 0.04);
  display: flex;
  gap: 0.65rem;
  max-width: 100%;
  min-height: 3.5rem;
  padding-inline: clamp(1.15rem, 3vw, 1.55rem);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.topup-money-field:focus-within {
  border-color: rgba(201, 164, 92, 0.55);
  box-shadow:
    inset 0 2px 4px rgba(16, 18, 23, 0.04),
    0 0 0 3px rgba(201, 164, 92, 0.16);
}

.topup-money-input {
  appearance: none;
  -moz-appearance: textfield;
  background: transparent;
  border: 0;
  box-shadow: none;
  flex: 1 1 auto;
  font-family: inherit;
  font-size: clamp(1.35rem, 3.8vw, 1.72rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.03em;
  min-width: 0;
  outline: none;
  padding-block: 0;
  padding-inline: 0;
}

.topup-money-input::-webkit-inner-spin-button,
.topup-money-input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.topup-money-input::placeholder {
  color: rgba(102, 112, 133, 0.55);
  font-weight: 600;
}

.topup-money-currency {
  color: rgba(54, 60, 69, 0.38);
  flex-shrink: 0;
  font-size: clamp(1.05rem, 2.8vw, 1.22rem);
  font-weight: 750;
  line-height: 1;
}

.topup-submit {
  font-weight: 650;
  letter-spacing: 0.015em;
}

.topup-dev-hint {
  background: rgba(16, 18, 23, 0.03);
  border-left: 3px solid rgba(201, 164, 92, 0.45);
  border-radius: 0 14px 14px 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.52;
  margin: 0.35rem 0 0;
  padding: 0.75rem 0.92rem;
}

.topup-dev-hint code {
  background: rgba(16, 18, 23, 0.06);
  border-radius: 6px;
  color: rgb(139, 90, 90);
  font-size: 0.77rem;
  padding: 0.12rem 0.35rem;
  word-break: break-word;
}

.letter-spacing-wide {
  letter-spacing: 0.08em;
}

.topup-disabled-panel {
  padding: clamp(26px, 4vw, 40px);
}

@media (max-width: 767px) {
  .hero-section,
  .page-hero {
    padding: 40px 0;
  }

  .account-page,
  .auth-page {
    padding: 56px 0;
  }

  .section {
    padding: 26px 0;
  }

  .display-3 {
    font-size: 2.8rem;
  }

  .hero-stats {
    align-items: flex-start;
    flex-direction: column;
  }

  .pricing-card.featured {
    transform: none;
  }

  .side-menu {
    position: static;
  }

  .admin-topup-form {
    grid-template-columns: 1fr;
  }

  .docs-service {
    align-items: flex-start;
    flex-direction: column;
  }

  .docs-service-meta {
    align-self: flex-start;
    text-align: left;
    width: 100%;
    white-space: normal;
  }
}

/* ---------- Articles ---------- */
.container-narrow-article {
  max-width: 52rem;
}

.article-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease;
}

.article-hero {
  padding: 0;
  overflow: hidden;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
  border-color: rgba(15, 23, 42, 0.14);
}

.article-card-cover {
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
  position: relative;
  line-height: 0;
}

.article-card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.18) 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.article-card:hover .article-card-cover::after {
  opacity: 1;
}

.article-card-cover img,
.article-card-cover__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.article-card:hover .article-card-cover img,
.article-card:hover .article-card-cover__img {
  transform: none;
}

.article-card-read {
  transition: color 0.2s ease;
}

.article-card-read i {
  display: inline-block;
  transition: transform 0.22s ease;
}

.article-card:hover .article-card-read {
  color: rgba(15, 23, 42, 0.92) !important;
}

.article-card:hover .article-card-read i {
  transform: translateX(5px);
}

@media (prefers-reduced-motion: reduce) {
  .article-card,
  .article-card-cover img,
  .article-card-cover::after,
  .article-card-read i {
    transition: none;
  }

  .article-card:hover {
    transform: none;
  }

  .article-card:hover .article-card-cover img,
  .article-card:hover .article-card-cover__img {
    transform: none;
  }
}

.article-cover-wrap {
  overflow: hidden;
  line-height: 0;
}

.article-cover-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.article-body {
  line-height: 1.68;
}

.article-body p {
  margin-bottom: 0rem!important;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.article-body blockquote {
  border-left: 3px solid rgba(15, 23, 42, 0.2);
  padding-left: 1rem;
  margin: 1rem 0;
  color: rgba(15, 23, 42, 0.75);
}

.article-body img,
.article-body video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
}

.article-body pre,
.article-body .ql-syntax {
  background: rgba(15, 23, 42, 0.06);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  font-size: 0.9rem;
}

.article-body .article-link-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.92));
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.article-body .article-link-card:hover {
  border-color: rgba(13, 110, 253, 0.35);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
  color: inherit;
}

.article-link-card__icon {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.article-link-card__icon img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.article-link-card__body {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.article-link-card__title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  color: rgba(15, 23, 42, 0.92);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.article-link-card__domain {
  font-size: 0.78rem;
  color: rgba(15, 23, 42, 0.5);
}

.article-link-card__go {
  flex: 0 0 auto;
  color: rgba(15, 23, 42, 0.35);
  font-size: 0.9rem;
}

.article-share {
  padding: 1.5rem 1.35rem;
}

.article-share__url-box {
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.article-share__url-label {
  display: block;
  margin-bottom: 0.35rem;
}

.article-share__url {
  display: block;
  font-size: 0.82rem;
  line-height: 1.45;
  word-break: break-all;
  color: rgba(15, 23, 42, 0.72);
  background: transparent;
}

.article-share .btn.is-copied {
  background: #146c43;
  border-color: #146c43;
}

.article-img-zoomable {
  cursor: zoom-in;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.article-img-zoomable:hover {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

.article-img-zoomable:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.55);
  outline-offset: 3px;
}

body.article-lightbox-open {
  overflow: hidden;
}

.article-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.article-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.article-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.82);
  backdrop-filter: blur(8px);
}

.article-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(96vw, 1200px);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 3.25rem;
}

.article-lightbox__figure {
  margin: 0;
  max-width: 100%;
  max-height: calc(92vh - 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-lightbox__img {
  max-width: 100%;
  max-height: calc(92vh - 2rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.65rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  background: #fff;
  animation: article-lightbox-in 0.28s ease;
}

@keyframes article-lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.article-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.article-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.article-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.article-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.article-lightbox__prev {
  left: 0.25rem;
}

.article-lightbox__next {
  right: 0.25rem;
}

.article-lightbox__counter {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (max-width: 575.98px) {
  .article-lightbox__panel {
    padding: 2.75rem 0.5rem 2rem;
  }

  .article-lightbox__nav {
    width: 2.25rem;
    height: 2.25rem;
  }
}

.article-quill-editor {
  min-height: 22rem;
}

.article-quill-editor .ql-editor {
  min-height: 21rem;
  font-size: 1rem;
  line-height: 1.65;
}

.article-quill-shell {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-quill-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.article-quill-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.article-quill-editor .ql-toolbar.ql-snow {
  border-top-left-radius: 0.65rem;
  border-top-right-radius: 0.65rem;
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(248, 250, 252, 0.9);
}

.article-quill-editor .ql-container.ql-snow {
  border-bottom-left-radius: 0.65rem;
  border-bottom-right-radius: 0.65rem;
  border-color: rgba(15, 23, 42, 0.12);
  font-family: inherit;
}

.article-quill-editor .ql-editor img {
  max-width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: 0.35rem;
  transition: box-shadow 0.15s ease;
}

.article-quill-editor .ql-editor img.article-quill-img--active {
  outline: 2px solid rgba(13, 110, 253, 0.65);
  outline-offset: 2px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.article-quill-img-handle {
  position: fixed;
  z-index: 1065;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #0d6efd;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
  cursor: nwse-resize;
}

.article-img-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(13, 110, 253, 0.06);
  border: 1px solid rgba(13, 110, 253, 0.15);
}

.article-img-toolbar__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.75);
  white-space: nowrap;
}

.article-img-toolbar__presets .btn.active {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

.article-img-toolbar__range {
  width: 7rem;
  margin: 0;
}

.article-img-toolbar__pct {
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 2.5rem;
}

.article-img-toolbar__hint {
  font-size: 0.75rem;
  color: rgba(15, 23, 42, 0.5);
}

.article-quill-shell--fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1055;
  background: #fff;
  padding: 1rem 1.25rem 1.25rem;
  overflow: hidden;
}

.article-quill-shell--fullscreen .article-quill-editor {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.article-quill-shell--fullscreen .article-quill-editor .ql-container {
  flex: 1;
  overflow: auto;
}

.article-quill-shell--fullscreen .article-quill-editor .ql-editor {
  min-height: calc(100vh - 12rem);
}

body.article-quill-fs-lock {
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .article-img-toolbar__hint {
    width: 100%;
  }

  .article-img-toolbar__range {
    flex: 1;
    width: auto;
    min-width: 5rem;
  }
}

/* ---------- Admin articles ---------- */
.admin-articles-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

.admin-articles-hero__main {
  flex: 1 1 16rem;
  min-width: 0;
}

.admin-articles-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-articles-empty__icon {
  font-size: 2.5rem;
  color: rgba(15, 23, 42, 0.25);
  margin-bottom: 0.75rem;
}

.admin-article-card {
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-article-card:hover {
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.admin-article-card__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.08));
  overflow: hidden;
}

.admin-article-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-article-card__cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-article-card__cover-placeholder {
  font-size: 2rem;
  color: rgba(15, 23, 42, 0.18);
}

.admin-article-card__status {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.admin-article-card__status--live {
  background: rgba(25, 135, 84, 0.92);
  color: #fff;
}

.admin-article-card__status--draft {
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
}

.admin-article-card__body {
  padding: 1rem 1.15rem 1.15rem;
}

.admin-article-card__meta {
  margin-bottom: 0.35rem;
}

.admin-article-card__title {
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-article-card__slug {
  display: block;
  color: rgba(15, 23, 42, 0.45);
  margin-bottom: 0.85rem;
  word-break: break-all;
}

.admin-article-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-article-card__draft-hint {
  margin-left: auto;
}

.admin-article-panel {
  overflow: hidden;
}

.admin-article-publish-hint {
  line-height: 1.45;
}

.admin-article-publish-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
}

.admin-article-draft-btn {
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
  text-decoration: none;
}

.admin-article-draft-btn:hover {
  text-decoration: underline;
}

.admin-article-panel__head {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.45);
}

.admin-article-panel__title {
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.admin-article-panel__title i {
  opacity: 0.55;
}

.admin-article-panel__body {
  padding: 1.15rem;
}

.admin-article-edit-status {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.admin-article-edit-status--new {
  background: rgba(13, 110, 253, 0.1);
  color: #0a58ca;
}

.admin-article-edit-status--live {
  background: rgba(25, 135, 84, 0.12);
  color: #146c43;
}

.admin-article-edit-status--draft {
  background: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.65);
}

.admin-article-cover-preview {
  aspect-ratio: 16 / 10;
  border-radius: 0.65rem;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.05);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-article-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-article-danger {
  border: 1px solid rgba(220, 53, 69, 0.15);
}

@media (max-width: 991.98px) {
  .admin-article-card__draft-hint {
    margin-left: 0;
    width: 100%;
  }
}

/* Admin messages — /admin/messages */
.admin-messages-page a.admin-msg-stat {
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.admin-messages-page a.admin-msg-stat:hover {
  border-color: rgba(201, 164, 92, 0.45);
  box-shadow: 0 18px 48px rgba(16, 18, 23, 0.08);
  transform: translateY(-1px);
}

.admin-messages-page a.admin-msg-stat.admin-msg-stat--active {
  border-color: rgba(201, 164, 92, 0.65);
  box-shadow:
    0 0 0 1px rgba(201, 164, 92, 0.18) inset,
    0 18px 48px rgba(201, 164, 92, 0.12);
}

.admin-messages-toolbar-card {
  padding-bottom: 0.25rem;
}

.admin-messages-list-card {
  overflow: hidden;
}

.admin-messages-list-heading {
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.35rem;
  padding-bottom: 1rem;
}

.admin-msg-list {
  display: grid;
}

.admin-msg {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem 0;
}

.admin-msg:last-child {
  border-bottom: 0;
}

.admin-msg--new {
  background: linear-gradient(90deg, rgba(201, 164, 92, 0.08), transparent 42%);
  border-radius: 18px;
  margin-inline: -0.65rem;
  padding-inline: 0.65rem;
}

.admin-msg__head {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
}

.admin-msg__identity {
  flex: 1 1 16rem;
  min-width: 0;
}

.admin-msg__title {
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-msg__name {
  font-weight: 650;
}

.admin-msg__email {
  color: inherit;
  text-decoration: none;
}

.admin-msg__email:hover {
  color: var(--gold);
}

.admin-msg__meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  gap: 0.35rem 0.45rem;
  line-height: 1.45;
}

.admin-msg__sep {
  color: rgba(55, 60, 72, 0.35);
}

.admin-msg-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 650;
  gap: 0.35rem;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.28rem 0.62rem;
}

.admin-msg-badge--new {
  background: rgba(201, 164, 92, 0.16);
  color: #7a5b16;
}

.admin-msg-badge--read {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.admin-msg-badge--closed {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.admin-msg-topic {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

.admin-msg-topic i {
  color: rgba(201, 164, 92, 0.85);
  font-size: 0.72rem;
}

.admin-msg__quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-msg__user-link {
  align-items: center;
  background: rgba(15, 23, 42, 0.03);
  border-radius: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  gap: 0.35rem 0.45rem;
  padding: 0.55rem 0.75rem;
}

.admin-msg__user-link i {
  color: rgba(34, 197, 94, 0.85);
}

.admin-msg__body {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-msg__text {
  color: rgba(16, 18, 23, 0.88);
  line-height: 1.55;
  white-space: pre-wrap;
}

.admin-msg__full summary,
.admin-msg__tech summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8125rem;
  user-select: none;
}

.admin-msg__tech-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.admin-msg__tech-list div {
  display: grid;
  gap: 0.15rem;
}

.admin-msg__tech-list dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-msg__tech-list dd {
  color: rgba(16, 18, 23, 0.82);
  font-size: 0.8125rem;
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-msg__footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: space-between;
}

.admin-msg__status-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-msg__status-form .form-select {
  min-width: 8.5rem;
}

.admin-msg__quick-status {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.admin-msg__quick-status form {
  margin: 0;
}

@media (max-width: 767.98px) {
  .admin-msg__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-msg__status-form,
  .admin-msg__quick-status {
    width: 100%;
  }

  .admin-msg__status-form .form-select {
    flex: 1 1 auto;
  }
}
