/* Страница /articles/kak-provodit-operacii-cherez-uds-cashier/ - регламент работы в UDS Cashier.
   Полностью изолирована префиксом .uc-page; не затрагивает шапку .uh, подвал .uf и модалку. */

.uc-page {
  --uc-violet: #4B328C;
  --uc-violet-dark: #331F69;
  --uc-violet-soft: #F5F1FC;
  --uc-violet-tint: #EDE6FA;
  --uc-orange: #E98524;
  --uc-orange-soft: #FFF5EA;
  --uc-green: #16794F;
  --uc-green-soft: #ECF9F2;
  --uc-red: #B42318;
  --uc-red-soft: #FEF3F2;
  --uc-ink: #1E182B;
  --uc-text: #2C253B;
  --uc-muted: #5F586E;
  --uc-cap: #7B748A;
  --uc-line: #E4DDF0;
  --uc-bg-alt: #FAF8FD;
  --uc-max: 1120px;
  --uc-read: 780px;
  --uc-radius: 18px;
  font-family: Manrope, Onest, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--uc-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.uc-page *,
.uc-page *::before,
.uc-page *::after {
  box-sizing: border-box;
}

.uc-page [id] {
  scroll-margin-top: calc(var(--uh-top, 20px) + var(--uh-h, 80px) + 74px);
}

.uc-page a,
.uc-page p a {
  color: var(--uc-violet);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.uc-page a:hover,
.uc-page p a:hover {
  color: var(--uc-violet-dark);
  opacity: 1;
}

.uc-page a:focus-visible,
.uc-page button:focus-visible,
.uc-page summary:focus-visible {
  outline: 2px solid var(--uc-violet);
  outline-offset: 3px;
  box-shadow: none;
}

.uc-wrap {
  max-width: var(--uc-max);
  margin: 0 auto;
  padding: 0 24px;
}

.uc-narrow {
  max-width: var(--uc-read);
}

/* Breadcrumbs */
.uc-bc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--uc-muted);
  margin: 0 0 22px;
}

.uc-bc a {
  color: var(--uc-muted);
  text-decoration: none;
  white-space: nowrap;
}

.uc-bc a:hover {
  color: var(--uc-violet);
  text-decoration: underline;
}

.uc-bc__sep {
  color: #B4ABC4;
  user-select: none;
}

/* Hero */
.uc-hero {
  background: radial-gradient(ellipse 85% 60% at 50% 0%, #F2ECFC 0%, #FAF8FD 52%, #FFFFFF 100%);
  padding: calc(var(--uh-top, 20px) + var(--uh-h, 80px) + 38px) 0 58px;
  border-bottom: 1px solid #EFEAF7;
}

.uc-hero__head {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.uc-hero h1 {
  font-family: Manrope, Onest, system-ui, sans-serif;
  font-size: clamp(30px, 4.1vw, 48px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.035em;
  color: var(--uc-ink);
  margin: 0 0 20px;
}

.uc-hero__lead {
  max-width: 730px;
  margin: 0 auto 14px;
  font-size: 17px;
  line-height: 1.68;
  color: #3D354E;
}

.uc-hero__lead:last-of-type {
  margin-bottom: 0;
}

.uc-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 0;
}

.uc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--uc-line);
  font-size: 13px;
  font-weight: 600;
  color: var(--uc-ink);
}

.uc-hero__media {
  max-width: 960px;
  margin: 34px auto 0;
}

.uc-hero__media img,
.uc-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.uc-figure {
  margin: 0;
}

.uc-figcap {
  font-size: 13px;
  line-height: 1.5;
  color: var(--uc-cap);
  text-align: center;
  margin: 10px 0 0;
}

/* Sticky horizontal subnav */
.uc-subnav {
  position: sticky;
  top: calc(var(--uh-top, 20px) + var(--uh-h, 80px) - 2px);
  z-index: 40;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--uc-line);
}

.uc-subnav__inner {
  max-width: var(--uc-max);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.uc-subnav__inner::-webkit-scrollbar {
  display: none;
}

.uc-subnav__link {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--uc-muted) !important;
  text-decoration: none !important;
  white-space: nowrap;
  border: 1px solid transparent;
}

.uc-subnav__link:hover {
  color: var(--uc-violet) !important;
  background: var(--uc-violet-soft);
}

.uc-subnav__link.is-active {
  color: var(--uc-violet) !important;
  background: var(--uc-violet-soft);
  border-color: #D6C7F5;
}

/* Bands & Typography */
.uc-band {
  padding: 68px 0;
  border-bottom: 1px solid #F1ECF8;
}

.uc-band--alt {
  background: var(--uc-bg-alt);
}

.uc-band--tight {
  padding: 48px 0;
}

.uc-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--uc-violet);
  margin: 0 0 10px;
}

.uc-page h2 {
  font-family: Manrope, Onest, system-ui, sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.028em;
  color: var(--uc-ink);
  margin: 0 0 16px;
}

.uc-page h3 {
  font-family: Manrope, Onest, system-ui, sans-serif;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.32;
  color: var(--uc-ink);
  margin: 0 0 10px;
}

.uc-page p {
  margin: 0 0 14px;
}

.uc-page p:last-child {
  margin-bottom: 0;
}

.uc-lead {
  font-size: 17px;
  line-height: 1.68;
  color: #3D354E;
  max-width: 780px;
}

/* CTA Buttons */
.uc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  background: var(--uc-violet);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  border: 1px solid var(--uc-violet);
  cursor: pointer;
}

.uc-cta:hover {
  background: var(--uc-violet-dark);
  border-color: var(--uc-violet-dark);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(75, 50, 140, .2);
}

.uc-cta--soft {
  background: var(--uc-violet-soft);
  color: var(--uc-violet) !important;
  border-color: #D7C9F4;
}

.uc-cta--soft:hover {
  background: var(--uc-violet-tint);
  border-color: #BEA7EE;
  color: var(--uc-violet-dark) !important;
  box-shadow: none;
}

.uc-cta--full {
  width: 100%;
}

/* 3 Formats Grid */
.uc-modes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.uc-mode-card {
  background: #fff;
  border: 1px solid var(--uc-line);
  border-radius: var(--uc-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.uc-mode-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--uc-violet-soft);
  color: var(--uc-violet);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.uc-mode-card__fit {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--uc-line);
  font-size: 14px;
  line-height: 1.55;
  color: var(--uc-muted);
}

.uc-mode-card__fit strong {
  color: var(--uc-ink);
}

.uc-art-wide {
  max-width: 900px;
  margin: 30px auto 0;
}

/* Setup callout strip */
.uc-callout {
  margin-top: 26px;
  background: var(--uc-violet-soft);
  border: 1px solid #DCD0F5;
  border-left: 4px solid var(--uc-violet);
  border-radius: 14px;
  padding: 20px 24px;
}

.uc-callout--warn {
  background: var(--uc-orange-soft);
  border-color: #F6D8B8;
  border-left-color: var(--uc-orange);
}

.uc-callout__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--uc-ink);
  margin: 0 0 6px;
}

.uc-callout p {
  font-size: 15px;
  line-height: 1.62;
  color: var(--uc-text);
  margin: 0;
}

/* Interactive Scenario Filter & Cards */
.uc-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 22px;
}

.uc-filter-btn {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--uc-line);
  background: #fff;
  color: var(--uc-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}

.uc-filter-btn:hover {
  border-color: #B79EE8;
  color: var(--uc-violet);
}

.uc-filter-btn.is-active {
  background: var(--uc-violet);
  border-color: var(--uc-violet);
  color: #fff;
}

.uc-scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.uc-scenario-card {
  background: #fff;
  border: 1px solid var(--uc-line);
  border-radius: var(--uc-radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.uc-scenario-card[hidden] {
  display: none !important;
}

.uc-scenario-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.uc-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--uc-violet-soft);
  color: var(--uc-violet);
}

.uc-badge--orange {
  background: var(--uc-orange-soft);
  color: #B55C09;
}

.uc-badge--green {
  background: var(--uc-green-soft);
  color: var(--uc-green);
}

.uc-badge--red {
  background: var(--uc-red-soft);
  color: var(--uc-red);
}

.uc-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  counter-reset: ucstep;
}

.uc-steps li {
  counter-increment: ucstep;
  position: relative;
  padding-left: 34px;
  font-size: 15px;
  line-height: 1.58;
  color: var(--uc-text);
}

.uc-steps li::before {
  content: counter(ucstep);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--uc-violet-soft);
  color: var(--uc-violet);
  font-size: 12.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uc-rule-box {
  margin-top: auto;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--uc-bg-alt);
  border: 1px solid var(--uc-line);
  font-size: 14px;
  line-height: 1.55;
  color: var(--uc-muted);
}

.uc-rule-box--warn {
  background: var(--uc-orange-soft);
  border-color: #F4D2AD;
  color: #5C3308;
}

.uc-rule-box strong {
  color: var(--uc-ink);
}

/* Cashier Scripts */
.uc-script-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.uc-script-card {
  background: #fff;
  border: 1px solid var(--uc-line);
  border-radius: var(--uc-radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.uc-script-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.uc-script-card__when {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--uc-violet);
}

.uc-script-quote {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--uc-violet-soft);
  color: var(--uc-ink);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.58;
}

.uc-script-why {
  font-size: 14px;
  line-height: 1.55;
  color: var(--uc-muted);
  margin: 0;
}

.uc-copy-btn {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--uc-line);
  background: #fff;
  color: var(--uc-violet);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.uc-copy-btn:hover {
  background: var(--uc-violet-soft);
  border-color: #C7B3F0;
}

.uc-copy-btn.is-copied {
  background: var(--uc-green-soft);
  border-color: #9ED8B8;
  color: var(--uc-green);
}

/* Refunds & Errors */
.uc-refund-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.uc-refund-card {
  background: #fff;
  border: 1px solid var(--uc-line);
  border-radius: 16px;
  padding: 22px;
}

.uc-refund-card h3 {
  margin-top: 8px;
}

.uc-refund-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--uc-muted);
}

.uc-err-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.uc-err-card {
  background: #fff;
  border: 1px solid var(--uc-line);
  border-radius: 16px;
  padding: 20px 22px;
}

.uc-err-card__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--uc-ink);
  margin: 0 0 8px;
}

.uc-err-card__fix {
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--uc-muted);
  margin: 0;
}

.uc-err-card__fix strong {
  color: var(--uc-violet-dark);
}

/* Owner Control Split */
.uc-split {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 36px;
  align-items: start;
  margin-top: 24px;
}

.uc-control-list {
  display: grid;
  gap: 14px;
}

.uc-control-item {
  background: #fff;
  border: 1px solid var(--uc-line);
  border-radius: 16px;
  padding: 18px 20px;
}

.uc-control-item h3 {
  font-size: 17px;
  margin: 0 0 6px;
}

.uc-control-item p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--uc-muted);
  margin: 0;
}

.uc-sticky-art {
  position: sticky;
  top: calc(var(--uh-top, 20px) + var(--uh-h, 80px) + 74px);
}

/* Comparison Table */
.uc-table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--uc-line);
  border-radius: 16px;
  background: #fff;
}

.uc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 14.5px;
  line-height: 1.55;
}

.uc-table th,
.uc-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #EFEAF7;
  vertical-align: top;
}

.uc-table thead th {
  background: var(--uc-violet-soft);
  color: var(--uc-ink);
  font-size: 13.5px;
  font-weight: 800;
}

.uc-table tbody tr:last-child td {
  border-bottom: none;
}

.uc-table td:first-child {
  font-weight: 700;
  color: var(--uc-ink);
  width: 24%;
}

/* Start Options & Currency Switch */
.uc-start-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 32px;
  align-items: center;
}

.uc-curr-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 26px 0 18px;
  flex-wrap: wrap;
}

.uc-curr-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--uc-muted);
}

.uc-curr-switch {
  display: inline-flex;
  background: var(--uc-violet-soft);
  border: 1px solid var(--uc-line);
  border-radius: 999px;
  padding: 3px;
}

.uc-curr-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--uc-muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.uc-curr-btn.is-active {
  background: var(--uc-violet);
  color: #fff;
}

.uc-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.uc-plan {
  background: #fff;
  border: 1px solid var(--uc-line);
  border-radius: 20px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}

.uc-plan--featured {
  border-color: #B79EE8;
  background: linear-gradient(180deg, #FAF7FF 0%, #FFFFFF 100%);
  box-shadow: 0 12px 32px rgba(75, 50, 140, .09);
}

.uc-plan__tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--uc-violet);
  margin-bottom: 10px;
}

.uc-plan__price {
  font-size: 26px;
  font-weight: 800;
  color: var(--uc-ink);
  line-height: 1.2;
  margin: 2px 0 12px;
}

.uc-plan__desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--uc-muted);
  margin: 0 0 20px;
}

.uc-plan__foot {
  margin-top: auto;
}

/* FAQ */
.uc-faq {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.uc-faq-item {
  background: #fff;
  border: 1px solid var(--uc-line);
  border-radius: 14px;
  transition: border-color .15s ease;
}

.uc-faq-item[open] {
  border-color: #C3B0E8;
}

.uc-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 50px 18px 22px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.42;
  color: var(--uc-ink);
  position: relative;
}

.uc-faq-item summary::-webkit-details-marker {
  display: none;
}

.uc-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 500;
  color: var(--uc-violet);
  line-height: 1;
}

.uc-faq-item[open] summary::after {
  content: "-";
}

.uc-faq-item p {
  padding: 0 22px 18px;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--uc-muted);
}

/* Telegram Strip */
.uc-tg-box {
  background: linear-gradient(130deg, #F5F1FC 0%, #EDF5FF 100%);
  border: 1px solid #D9D0EE;
  border-radius: 22px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.uc-tg-box__copy {
  max-width: 640px;
}

.uc-tg-box__copy h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  margin: 0 0 10px;
}

.uc-tg-box__copy p {
  font-size: 15.5px;
  color: var(--uc-muted);
  margin: 0;
}

/* Read More */
.uc-more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.uc-more-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--uc-line);
  border-radius: 16px;
  padding: 22px 24px;
  text-decoration: none !important;
  color: inherit !important;
}

.uc-more-card:hover {
  border-color: #B79EE8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(75, 50, 140, .07);
}

.uc-more-card__kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--uc-violet);
}

.uc-more-card__title {
  font-size: 17px;
  font-weight: 750;
  line-height: 1.35;
  color: var(--uc-ink);
}

.uc-more-card__desc {
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--uc-muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 1040px) {
  .uc-subnav__inner {
    justify-content: flex-start;
  }
}

@media (max-width: 960px) {
  .uc-modes-grid,
  .uc-refund-grid,
  .uc-plans {
    grid-template-columns: 1fr;
  }

  .uc-split,
  .uc-start-head {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .uc-sticky-art {
    position: static;
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .uc-hero {
    padding: calc(var(--uh-top, 14px) + var(--uh-h, 68px) + 28px) 0 44px;
  }

  .uc-hero__media {
    margin-top: 28px;
  }

  .uc-subnav {
    top: calc(var(--uh-top, 14px) + var(--uh-h, 68px) - 2px);
  }
}

@media (max-width: 680px) {
  .uc-hero {
    padding: calc(var(--uh-top, 14px) + var(--uh-h, 68px) + 22px) 0 34px;
  }

  .uc-hero h1 {
    margin-bottom: 16px;
  }

  .uc-hero__head {
    text-align: left;
  }

  .uc-hero__lead {
    margin-left: 0;
  }

  .uc-hero__meta {
    justify-content: flex-start;
  }

  .uc-hero__media {
    margin-top: 22px;
  }

  .uc-band {
    padding: 46px 0;
  }

  .uc-wrap {
    padding: 0 18px;
  }

  .uc-scenario-grid,
  .uc-script-grid,
  .uc-err-list,
  .uc-more-grid {
    grid-template-columns: 1fr;
  }

  .uc-tg-box {
    padding: 24px 20px;
  }

  .uc-curr-bar {
    justify-content: flex-start;
  }
}
