.video-page-contact[data-commerce-access] {
  border-color: transparent;
  background:
    linear-gradient(145deg, #781f37 0, #531326 49%, #2c0c17 100%) padding-box,
    linear-gradient(105deg, #70491f 0, #d7a954 19%, #f0cf88 34%, #8b5d28 52%, #d7a954 73%, #6f481f 100%) border-box;
  background-size: 100% 100%, 240% 100%;
  background-position: 0 0, 0 50%;
  box-shadow:
    0 18px 42px -32px rgba(0, 0, 0, 0.98),
    0 0 25px -16px rgba(203, 151, 70, 0.5),
    inset 0 1px rgba(255, 239, 234, 0.075);
  color: #eac985;
  animation: 8s ease-in-out infinite btn-brass-shimmer;
}

.video-page-contact[data-commerce-access]:hover,
.video-page-contact[data-commerce-access]:focus-visible {
  border-color: transparent;
  background:
    linear-gradient(145deg, #88283f 0, #62182d 49%, #350e1c 100%) padding-box,
    linear-gradient(105deg, #70491f 0, #e0b566 19%, #f5dc9e 34%, #93642f 52%, #dfb566 73%, #6f481f 100%) border-box;
  background-size: 100% 100%, 240% 100%;
  color: #f2d99f;
}

.commerce-dialog {
  position: fixed;
  inset: 0;
  width: min(620px, calc(100% - 32px));
  max-height: min(780px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(222, 177, 93, 0.62);
  border-radius: 4px;
  background:
    radial-gradient(circle at 84% 8%, rgba(121, 29, 58, 0.28), transparent 38%),
    radial-gradient(circle at 8% 96%, rgba(181, 126, 55, 0.1), transparent 42%),
    linear-gradient(145deg, #160b12 0, #0d0b11 48%, #07090d 100%);
  color: var(--ink);
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.78),
    0 0 42px -24px rgba(217, 169, 83, 0.62),
    inset 0 1px rgba(255, 238, 204, 0.06);
}

.commerce-dialog::backdrop {
  background:
    radial-gradient(circle at 50% 42%, rgba(88, 20, 41, 0.18), transparent 34%),
    rgba(3, 4, 7, 0.84);
  backdrop-filter: blur(7px) saturate(0.72);
}

.commerce-dialog__form {
  position: relative;
  display: grid;
  gap: 15px;
  padding: clamp(30px, 4vw, 44px) clamp(24px, 5vw, 52px);
  overflow: hidden;
}

.commerce-dialog__form::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(232, 190, 111, 0.055) 49%, transparent 56%),
    repeating-linear-gradient(12deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 12px);
}

.commerce-dialog__form > :not(.commerce-dialog__close) {
  position: relative;
  z-index: 1;
}

.commerce-dialog__close {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  place-items: center;
  background: transparent;
  color: rgba(244, 233, 218, 0.62);
  font: 30px/1 "Cormorant Garamond", serif;
  cursor: pointer;
}

.commerce-dialog__close:hover,
.commerce-dialog__close:focus-visible {
  color: #f1cf91;
}

.commerce-dialog__lead {
  max-width: 47ch;
  margin: -6px 0 2px;
  color: rgba(244, 233, 218, 0.7);
  font: 14px/1.6 Raleway, sans-serif;
}

.commerce-course-picker {
  display: grid;
  gap: 9px;
  color: #d7b87d;
  font: 600 10px/1.3 Raleway, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.commerce-course-picker__control {
  position: relative;
  display: block;
}

.commerce-course-picker__control::after {
  content: "⌄";
  position: absolute;
  top: 50%;
  right: 18px;
  color: #e4bc70;
  font: 24px/1 "Cormorant Garamond", serif;
  pointer-events: none;
  transform: translateY(-58%);
}

.commerce-course-picker select,
.commerce-dialog__submit,
.commerce-telegram-button,
.commerce-receipt-download,
[data-payment-confirm],
.commerce-logout-button,
.commerce-lesson-button {
  border: 1px solid transparent;
  background:
    linear-gradient(145deg, #781f37 0, #531326 49%, #2c0c17 100%) padding-box,
    linear-gradient(105deg, #70491f 0, #d7a954 19%, #f0cf88 34%, #8b5d28 52%, #d7a954 73%, #6f481f 100%) border-box;
  background-size: 100% 100%, 240% 100%;
  background-position: 0 0, 0 50%;
  box-shadow:
    0 18px 42px -32px rgba(0, 0, 0, 0.98),
    0 0 25px -16px rgba(203, 151, 70, 0.52),
    inset 0 1px rgba(255, 239, 234, 0.075);
  color: #f2d99f;
  animation: 8s ease-in-out infinite commerce-gold-sweep;
}

.commerce-course-picker select {
  width: 100%;
  min-height: 54px;
  padding: 0 52px 0 18px;
  border-radius: 3px;
  appearance: none;
  font: 600 11px/1.2 Raleway, sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.commerce-course-picker select option {
  background: #100a10;
  color: #f4e9da;
  font: 15px Raleway, sans-serif;
}

.commerce-course-picker select:hover,
.commerce-course-picker select:focus-visible,
.commerce-dialog__submit:hover,
.commerce-dialog__submit:focus-visible,
.commerce-telegram-button:hover,
.commerce-telegram-button:focus-visible,
.commerce-receipt-download:hover,
.commerce-receipt-download:focus-visible,
[data-payment-confirm]:hover,
[data-payment-confirm]:focus-visible,
.commerce-logout-button:hover,
.commerce-logout-button:focus-visible,
.commerce-lesson-button:hover,
.commerce-lesson-button:focus-visible {
  border-color: transparent;
  outline: none;
  background:
    linear-gradient(145deg, #88283f 0, #62182d 49%, #350e1c 100%) padding-box,
    linear-gradient(105deg, #70491f 0, #e0b566 19%, #f5dc9e 34%, #93642f 52%, #dfb566 73%, #6f481f 100%) border-box;
  background-size: 100% 100%, 240% 100%;
  box-shadow:
    0 20px 46px -30px rgba(0, 0, 0, 0.98),
    0 0 30px -14px rgba(218, 169, 86, 0.78),
    inset 0 1px rgba(255, 239, 234, 0.1);
}

.commerce-course-picker select:focus-visible {
  outline: 2px solid rgba(242, 211, 151, 0.78);
  outline-offset: 4px;
}

.commerce-dialog__selection {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border-left: 2px solid #c89443;
  background: linear-gradient(90deg, rgba(189, 128, 59, 0.11), rgba(91, 23, 45, 0.08) 68%, transparent);
}

.commerce-dialog__selection[hidden] {
  display: none;
}

.commerce-dialog__selection strong {
  color: #f4e9da;
  font: 500 22px/1.15 "Cormorant Garamond", serif;
}

.commerce-dialog__selection span {
  color: #d8ae63;
  font: 600 12px/1.4 Raleway, sans-serif;
  letter-spacing: 0.07em;
}

.commerce-dialog__submit {
  width: 100%;
}

@keyframes commerce-gold-sweep {
  0%, 100% { background-position: 0 0, 0 50%; }
  50% { background-position: 0 0, 100% 50%; }
}

.commerce-telegram-card {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(245, 237, 228, 0.13);
  background: rgba(0, 0, 0, 0.18);
}

.commerce-telegram-card h3 {
  margin: 0;
  font: 500 25px/1.1 "Cormorant Garamond", serif;
}

.commerce-telegram-card p,
.commerce-login > p {
  margin: 0;
  color: var(--muted);
  font: 14px/1.6 Raleway, sans-serif;
}

[data-telegram-auth] {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-top: 8px;
}

.commerce-telegram-button {
  min-width: min(100%, 310px);
}

.commerce-test-auth-hint {
  max-width: 48ch;
  color: rgba(244, 233, 218, 0.64) !important;
  font-size: 12px !important;
}

.commerce-test-name {
  display: grid;
  width: min(100%, 420px);
  gap: 8px;
  color: #d7b87d;
  font: 600 10px/1.3 Raleway, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.commerce-test-name input {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(222, 177, 93, 0.38);
  border-radius: 3px;
  outline: none;
  background: rgba(8, 7, 10, 0.72);
  color: #f4e9da;
  font: 500 16px/1.2 Raleway, sans-serif;
  letter-spacing: normal;
  text-transform: none;
}

.commerce-test-name input:focus {
  border-color: #dfb566;
  box-shadow: 0 0 0 3px rgba(218, 169, 86, 0.12);
}

.commerce-receipt--document {
  gap: 18px;
  padding: clamp(22px, 5vw, 34px);
  border-color: rgba(221, 181, 109, 0.42);
  background:
    linear-gradient(rgba(255, 252, 242, 0.97), rgba(239, 229, 210, 0.97)),
    repeating-linear-gradient(0deg, transparent 0 8px, rgba(94, 67, 44, 0.025) 8px 9px);
  box-shadow: 0 24px 56px -38px rgba(0, 0, 0, 0.9);
  color: #241a17;
}

.commerce-receipt__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(62, 43, 34, 0.35);
}

.commerce-receipt__head h3 {
  margin: 4px 0 0;
  color: #241a17;
  font: 600 29px/1 "Cormorant Garamond", serif;
}

.commerce-receipt__eyebrow {
  color: #7c5732 !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.commerce-receipt__status {
  padding: 7px 10px;
  border: 1px solid rgba(41, 104, 64, 0.42);
  border-radius: 999px;
  background: rgba(43, 122, 72, 0.08);
  color: #276441;
  font: 700 10px/1 Raleway, sans-serif !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.commerce-receipt__details {
  display: grid;
  gap: 0;
  margin: 0;
}

.commerce-receipt__details > div {
  display: grid;
  grid-template-columns: minmax(90px, 0.38fr) 1fr;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(62, 43, 34, 0.2);
}

.commerce-receipt__details dt,
.commerce-receipt__details dd {
  margin: 0;
  font: 500 13px/1.45 Raleway, sans-serif;
}

.commerce-receipt__details dt { color: #7b6b61; }
.commerce-receipt__details dd { color: #241a17; text-align: right; }
.commerce-receipt__total dt,
.commerce-receipt__total dd { color: #241a17; font-size: 17px; font-weight: 700; }
.commerce-receipt--document > small { color: #76665d; }

.commerce-receipt-download {
  width: 100%;
  margin-top: 2px;
}

.commerce-telegram-status {
  min-height: 1.4em;
  margin: 0;
  color: #e8b7a5;
  font: 14px/1.4 Raleway, sans-serif;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

@media (max-width: 620px) {
  .commerce-dialog {
    width: min(100% - 20px, 620px);
    max-height: calc(100dvh - 20px);
  }

  .commerce-dialog__form {
    gap: 15px;
    padding: 34px 20px 24px;
  }

  .commerce-course-picker select {
    min-height: 52px;
    font-size: 10px;
  }

  [data-telegram-auth],
  .commerce-telegram-button {
    width: 100%;
  }

  .commerce-telegram-card {
    padding: 18px;
  }

  .commerce-receipt__details > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .commerce-receipt__details dd { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .commerce-course-picker select,
  .commerce-dialog__submit,
  .commerce-telegram-button,
  .commerce-receipt-download,
  [data-payment-confirm],
  .commerce-logout-button,
  .commerce-lesson-button {
    animation: none;
  }
}

/* Commerce surfaces repeat the parchment stage used by the course programme. */
.commerce-dialog,
.commerce-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(74, 47, 29, 0.5);
  background:
    radial-gradient(46% 12% at 50% 0, rgba(244, 230, 207, 0.17), transparent 76%),
    radial-gradient(70% 42% at 18% 28%, rgba(234, 218, 194, 0.08), transparent 72%),
    radial-gradient(64% 40% at 86% 66%, rgba(82, 53, 36, 0.1), transparent 76%),
    repeating-linear-gradient(7deg, rgba(83, 49, 31, 0.04) 0 1px, transparent 1px 12px),
    linear-gradient(180deg, #c4b6a1 0, #b9ab96 44%, #afa18c 100%),
    url("/img/parchment-hd-fiber-v1.webp") center / cover no-repeat,
    #b9ab96;
  background-blend-mode: normal, normal, normal, multiply, normal, multiply, normal;
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(223, 178, 91, 0.22),
    inset 0 1px rgba(255, 245, 222, 0.28);
  color: #17100c;
}

.commerce-panel::before,
.commerce-dialog__form::after {
  content: "I";
  position: absolute;
  z-index: 0;
  top: 6%;
  right: 7%;
  color: rgba(54, 35, 23, 0.075);
  font: 500 clamp(120px, 18vw, 230px)/0.7 "Cormorant Garamond", serif;
  pointer-events: none;
  transform: scaleX(0.78);
}

.commerce-panel::after,
.commerce-dialog__form::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -22% -10% -32% 23%;
  background:
    radial-gradient(54% 30% at 72% 78%, transparent 0 53.7%, rgba(82, 58, 40, 0.12) 54% 54.25%, transparent 54.55%),
    radial-gradient(68% 40% at 72% 78%, transparent 0 63.7%, rgba(82, 58, 40, 0.09) 64% 64.24%, transparent 64.55%),
    radial-gradient(circle at 31% 63%, rgba(104, 70, 39, 0.17) 0 2px, transparent 3px),
    linear-gradient(14deg, transparent 49.86%, rgba(83, 59, 41, 0.075) 49.96% 50.04%, transparent 50.14%);
  opacity: 0.74;
  pointer-events: none;
}

.commerce-panel > *,
.commerce-dialog__form > :not(.commerce-dialog__close) {
  position: relative;
  z-index: 1;
}

.commerce-dialog h2,
.commerce-panel h1,
.commerce-panel h2,
.commerce-panel h3,
.commerce-course h2 {
  color: #120c09;
  font-weight: 650;
}

.commerce-dialog .eyebrow,
.commerce-panel .eyebrow,
.commerce-dialog .commerce-course-picker,
[data-telegram-auth] .commerce-test-name {
  color: #241710;
  font-weight: 800;
}

.commerce-dialog__lead,
.commerce-dialog__notice,
.commerce-dialog__hint,
.commerce-dialog__status,
.commerce-panel,
.commerce-panel p,
.commerce-panel span,
.commerce-panel small,
.commerce-telegram-card p,
.commerce-login > p,
.commerce-test-auth-hint,
.commerce-telegram-status {
  color: #241914;
  font-weight: 650;
}

.commerce-test-auth-hint { color: #241914 !important; font-weight: 700 !important; }
.commerce-panel .commerce-error { color: #6b1821; font-weight: 750; }

.commerce-dialog__close,
.commerce-dialog__close:hover,
.commerce-dialog__close:focus-visible {
  color: #2b1b13;
  font-weight: 700;
}

.commerce-dialog__selection {
  border-left-color: #704722;
  background: linear-gradient(90deg, rgba(255, 248, 226, 0.35), rgba(104, 70, 45, 0.07) 72%, transparent);
}

.commerce-dialog__selection strong,
.commerce-dialog__selection span,
.commerce-amount,
.commerce-warning {
  color: #17100c;
  font-weight: 750;
}

.commerce-warning {
  border-left-color: #714820;
  background: rgba(255, 249, 230, 0.18);
}

.commerce-telegram-card,
.commerce-receipt--document {
  border-color: rgba(66, 42, 27, 0.3);
  background:
    repeating-linear-gradient(7deg, rgba(83, 49, 31, 0.025) 0 1px, transparent 1px 12px),
    linear-gradient(108deg, rgba(239, 225, 202, 0.38), rgba(130, 93, 64, 0.08));
  box-shadow: inset 0 1px rgba(255, 250, 233, 0.24);
}

.commerce-receipt__head,
.commerce-receipt__details > div,
.commerce-course,
.commerce-course li {
  border-color: rgba(62, 43, 34, 0.3);
}

.commerce-receipt__eyebrow,
.commerce-receipt__details dt,
.commerce-receipt__details dd,
.commerce-receipt__total dt,
.commerce-receipt__total dd,
.commerce-receipt--document > small {
  color: #211611 !important;
  font-weight: 650;
}

.commerce-receipt__status {
  border-color: rgba(49, 32, 23, 0.38);
  background: rgba(255, 249, 230, 0.24);
  color: #1b120e;
}

.commerce-test-name input {
  border-color: rgba(66, 42, 27, 0.5);
  background: rgba(250, 240, 217, 0.38);
  color: #120c09;
  font-weight: 700;
}

.commerce-test-name input::placeholder { color: rgba(35, 24, 18, 0.65); }

.commerce-test-name input:focus {
  border-color: #6f461f;
  box-shadow: 0 0 0 3px rgba(104, 68, 31, 0.14);
}

.commerce-logout-button,
.commerce-lesson-button {
  min-height: 38px;
  padding: 10px 38px 10px 14px;
  font-size: 9px;
}

.commerce-lesson-pending {
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(49, 32, 23, 0.3);
  background: rgba(86, 64, 48, 0.08);
  color: rgba(30, 20, 15, 0.58);
  font: 750 9px/1 Raleway, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.commerce-dialog__submit:disabled,
[data-payment-confirm]:disabled {
  opacity: 0.7;
}

.commerce-dialog__actions {
  display: grid;
  gap: 10px;
}

.commerce-dialog__actions > .commerce-dialog__submit {
  width: 100%;
}

.commerce-dialog__cabinet {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  justify-self: center;
  margin: -2px 0 -3px;
  padding: 7px 16px;
  border: 1px solid transparent;
  border-radius: 2px;
  background:
    linear-gradient(145deg, #d0a14c 0, #eccb82 46%, #b67a2d 100%) padding-box,
    linear-gradient(105deg, #70491f 0, #f3d797 24%, #946226 54%, #e6bd6c 78%, #70491f 100%) border-box;
  background-size: 100% 100%, 220% 100%;
  color: #26150c;
  box-shadow:
    0 10px 22px -16px rgba(24, 12, 7, 0.9),
    inset 0 1px rgba(255, 246, 213, 0.66),
    inset 0 -1px rgba(84, 45, 14, 0.2);
  font: 850 11px/1 Raleway, sans-serif;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  animation: 8s ease-in-out infinite btn-brass-shimmer;
}

.commerce-dialog__cabinet span {
  font-size: 16px;
  line-height: 0;
}

.commerce-dialog__cabinet:hover,
.commerce-dialog__cabinet:focus-visible {
  background:
    linear-gradient(145deg, #ddb35f 0, #f2d99e 46%, #c28937 100%) padding-box,
    linear-gradient(105deg, #70491f 0, #f7e2ad 24%, #9c692d 54%, #edca7d 78%, #70491f 100%) border-box;
  color: #1b0e08;
  box-shadow:
    0 12px 26px -16px rgba(24, 12, 7, 0.95),
    0 0 20px -13px rgba(126, 79, 25, 0.7),
    inset 0 1px rgba(255, 249, 225, 0.74),
    inset 0 -1px rgba(84, 45, 14, 0.18);
  outline: none;
}

.commerce-dialog__legal {
  margin: -4px 0 0;
  color: rgba(28, 19, 14, 0.72);
  font: 750 10px/1.45 Raleway, sans-serif;
  text-align: center;
}

.commerce-dialog__legal a {
  color: #5b1b32;
  font-weight: 850;
  text-underline-offset: 2px;
}

.commerce-result-panel {
  width: min(1080px, 100%);
  padding: clamp(24px, 3vw, 34px);
}

.commerce-result-loading,
.commerce-result-failure {
  color: #0b0806;
  font-weight: 750;
}

.commerce-result-panel > [data-result-loading],
.commerce-result-panel > [data-result-failure],
.commerce-result-panel > [data-result-success] {
  display: none;
}

.commerce-result-panel[data-result-state="loading"] > [data-result-loading] {
  display: block;
}

.commerce-result-panel[data-result-state="failure"] > [data-result-failure] {
  display: grid;
  gap: 20px;
}

.commerce-result-failure > * {
  margin: 0;
}

.commerce-result-failure .commerce-result-return {
  display: flex;
  width: 100%;
  min-height: 46px;
  justify-content: space-between;
  border: 1px solid transparent;
  background:
    linear-gradient(145deg, #781f37 0, #531326 49%, #2c0c17 100%) padding-box,
    linear-gradient(105deg, #70491f 0, #d7a954 19%, #f0cf88 34%, #8b5d28 52%, #d7a954 73%, #6f481f 100%) border-box;
  color: #eac985;
}

.commerce-result-panel[data-result-state="success"] > [data-result-success] {
  display: grid;
  gap: 18px;
}

[data-result-success] > h1 {
  margin: 0;
  color: #080504;
}

.commerce-fiscal-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.commerce-back--courses {
  color: #d7b170;
  font: 650 19px/1 "Cormorant Garamond", serif;
  letter-spacing: 0.04em;
}

@media (max-width: 620px) {
  .commerce-panel::after,
  .commerce-dialog__form::before { inset: -14% -36% -24% 2%; }
  .commerce-panel::before,
  .commerce-dialog__form::after { top: 8%; right: 2%; }
  .commerce-logout-button { width: auto; }
}

/* One literal copy of the header booking-button treatment for every commerce action. */
button.btn.commerce-gold-control,
select.commerce-gold-control {
  border: 1px solid transparent;
  border-radius: 3px;
  background:
    linear-gradient(145deg, #781f37 0, #531326 49%, #2c0c17 100%) padding-box,
    linear-gradient(105deg, #70491f 0, #d7a954 19%, #f0cf88 34%, #8b5d28 52%, #d7a954 73%, #6f481f 100%) border-box;
  background-size: 100% 100%, 240% 100%;
  background-position: 0 0, 0 50%;
  box-shadow:
    0 18px 42px -32px rgba(0, 0, 0, 0.98),
    0 0 25px -16px rgba(203, 151, 70, 0.5),
    inset 0 1px rgba(255, 239, 234, 0.075);
  color: #eac985;
  font-weight: 650;
  text-shadow: 0 0 16px rgba(202, 154, 78, 0.12);
  animation: 8s ease-in-out infinite btn-brass-shimmer;
}

button.btn.commerce-gold-control::before {
  z-index: 0;
  inset: 3px;
  width: auto;
  border: 1px solid rgba(239, 205, 139, 0.07);
  border-radius: 1px;
  background: none;
  opacity: 1;
}

button.btn.commerce-gold-control::after {
  position: relative;
  z-index: 1;
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  border: 0;
  background: none;
  box-shadow: none;
  color: #d8ac61;
  font: 500 20px/1 "Cormorant Garamond", serif;
  text-shadow: 0 0 12px rgba(220, 174, 96, 0.35);
}

button.btn.commerce-gold-control:hover,
select.commerce-gold-control:hover {
  border-color: transparent;
  background:
    linear-gradient(145deg, #681a2f 0, #480f21 49%, #250914 100%) padding-box,
    linear-gradient(105deg, #70491f 0, #c99a4a 19%, #e7c77f 34%, #835628 52%, #c99a4a 73%, #65411c 100%) border-box;
  background-size: 100% 100%, 240% 100%;
  color: #ead19a;
  box-shadow:
    0 20px 48px -34px rgba(0, 0, 0, 0.98),
    0 0 30px -12px rgba(215, 170, 94, 0.82),
    inset 0 1px rgba(255, 255, 255, 0.05);
}

button.btn.commerce-gold-control:focus,
button.btn.commerce-gold-control:focus-visible,
select.commerce-gold-control:focus,
select.commerce-gold-control:focus-visible,
.video-page-contact[data-commerce-access]:focus,
.video-page-contact[data-commerce-access]:focus-visible {
  outline: none;
  border-color: transparent;
  box-shadow:
    0 18px 42px -32px rgba(0, 0, 0, 0.98),
    0 0 25px -13px rgba(203, 151, 70, 0.72),
    inset 0 0 0 1px rgba(245, 214, 151, 0.34),
    inset 0 1px rgba(255, 239, 234, 0.09);
}

button.btn.commerce-gold-control:disabled {
  color: #cba96c;
  opacity: 0.68;
}

body.commerce-page {
  background-color: #08090c;
  background-image:
    radial-gradient(circle at 16% 18%, rgba(99, 26, 52, 0.2), transparent 34%),
    radial-gradient(circle at 82% 72%, rgba(173, 126, 66, 0.1), transparent 38%),
    radial-gradient(ellipse at 52% 110%, rgba(62, 72, 89, 0.18), transparent 52%),
    repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.009) 0 1px, transparent 1px 18px),
    linear-gradient(145deg, #07080b 0, #111017 48%, #090a0e 100%);
  background-attachment: fixed;
}

.commerce-panel,
.commerce-panel p,
.commerce-panel span,
.commerce-panel small,
.commerce-dialog__lead,
.commerce-dialog__notice,
.commerce-dialog__hint,
.commerce-dialog__status,
.commerce-dialog .commerce-course-picker,
.commerce-dialog__selection strong,
.commerce-dialog__selection span,
.commerce-warning,
.commerce-amount,
.commerce-telegram-card p,
.commerce-login > p,
.commerce-test-auth-hint,
.commerce-telegram-status,
.commerce-test-name,
.commerce-receipt__eyebrow,
.commerce-receipt__details dt,
.commerce-receipt__details dd,
.commerce-receipt__total dt,
.commerce-receipt__total dd,
.commerce-receipt--document > small {
  color: #0b0806 !important;
  font-weight: 750;
}

.commerce-dialog h2,
.commerce-panel h1,
.commerce-panel h2,
.commerce-panel h3,
.commerce-course h2 {
  color: #080504;
  font-weight: 700;
}

.commerce-back--courses {
  color: #e1bd78;
  font-size: 20px;
  font-weight: 650;
  text-shadow: 0 0 18px rgba(202, 151, 73, 0.18);
  transition: color 0.25s, text-shadow 0.25s, transform 0.25s;
}

.commerce-back--courses:hover,
.commerce-back--courses:focus-visible {
  color: #f0d59e;
  text-shadow: 0 0 14px rgba(226, 181, 99, 0.38);
  transform: translateX(-2px);
}

@media (prefers-reduced-motion: reduce) {
  button.btn.commerce-gold-control,
  select.commerce-gold-control { animation: none; }
}

/* Compact purchase flow and framed parchment surfaces. */
.commerce-dialog,
.commerce-panel {
  border: 2px solid rgba(12, 8, 6, 0.88);
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(202, 157, 81, 0.34),
    0 0 38px -24px rgba(218, 171, 91, 0.46),
    inset 0 0 0 1px rgba(255, 245, 222, 0.2),
    inset 0 1px rgba(255, 245, 222, 0.28);
}

.commerce-dialog__form {
  gap: 14px;
}

.commerce-course-picker select {
  font-size: 12px;
}

[data-payment-confirm] {
  margin-top: 12px;
}

.commerce-panel[data-payment-state="success"] {
  width: min(1080px, 100%);
  padding: clamp(24px, 3vw, 34px);
}

.commerce-panel[data-payment-state="success"] > .eyebrow,
.commerce-panel[data-payment-state="success"] > h1 {
  display: none;
}

.commerce-payment-success .commerce-shell {
  min-height: 100vh;
  padding-top: clamp(88px, 9vh, 112px);
  padding-bottom: 24px;
}

[data-payment-success]:not([hidden]) {
  display: grid;
  gap: 18px;
}

[data-payment-success] > h2 {
  margin: 0;
}

.commerce-success-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}

.commerce-success-card {
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  margin: 0;
  border: 2px solid rgba(19, 12, 9, 0.68);
  box-shadow:
    0 16px 34px -28px rgba(0, 0, 0, 0.72),
    inset 0 0 0 1px rgba(255, 246, 224, 0.22);
}

.commerce-receipt--document.commerce-success-card {
  align-content: space-between;
  gap: 12px;
  padding: clamp(20px, 2.5vw, 30px);
}

.commerce-success-card.commerce-telegram-card {
  align-content: center;
  gap: 16px;
  padding: clamp(20px, 2.5vw, 30px);
}

[data-payment-order]:not([hidden]) {
  display: grid;
  gap: 20px;
}

[data-payment-order] > h2,
[data-payment-order] > .commerce-amount {
  margin: 0;
}

[data-payment-confirm] {
  margin-top: 8px;
}

.commerce-dialog__form {
  gap: 14px;
}

.commerce-dialog__form > .eyebrow {
  margin: 0;
}

.commerce-dialog__status:empty,
.commerce-error:empty,
.commerce-telegram-status:empty {
  display: none;
}

.commerce-panel[data-payment-state="ready"] {
  display: grid;
  width: min(700px, 100%);
  gap: 20px;
  padding: clamp(34px, 4vw, 42px) clamp(30px, 5vw, 50px);
}

.commerce-panel[data-payment-state="ready"] > .eyebrow,
.commerce-panel[data-payment-state="ready"] > h1 {
  margin: 0;
}

.commerce-panel[data-payment-state="ready"] > h1 {
  font-size: clamp(42px, 6vw, 64px);
}

.commerce-success-card [data-telegram-auth] {
  display: contents;
}

.commerce-success-card .commerce-test-name,
.commerce-success-card .commerce-telegram-button {
  width: 100%;
  min-width: 0;
}

.commerce-success-card.commerce-telegram-card {
  grid-template-rows: auto auto auto auto;
  align-content: space-between;
  gap: 0;
}

.commerce-course-picker select.commerce-gold-control,
.commerce-course-picker select.commerce-gold-control:hover,
.commerce-course-picker select.commerce-gold-control:focus,
.commerce-course-picker select.commerce-gold-control:focus-visible {
  border-color: transparent;
  background:
    linear-gradient(145deg, rgba(24, 18, 16, 0.96), rgba(10, 8, 8, 0.98)) padding-box,
    linear-gradient(105deg, #71491f 0, #d7a954 19%, #f0cf88 34%, #8b5d28 52%, #d7a954 73%, #6f481f 100%) border-box;
  background-size: 100% 100%, 240% 100%;
  color: #f0e8df;
  box-shadow:
    0 17px 38px -32px rgba(0, 0, 0, 0.98),
    0 0 22px -17px rgba(203, 151, 70, 0.52),
    inset 0 1px rgba(255, 255, 255, 0.035);
}

.commerce-card-figure {
  position: absolute;
  z-index: 0;
  top: -4px;
  width: 60px;
  height: 116px;
  overflow: visible;
  fill: none;
  stroke: #3f2b20;
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.14;
  pointer-events: none;
}

.commerce-card-figure--leader {
  right: 80px;
  transform: rotate(-8deg);
}

.commerce-card-figure--follower {
  right: 14px;
  transform: rotate(7deg);
}

.commerce-telegram-card > :not(.commerce-card-figure) {
  position: relative;
  z-index: 1;
}

@media (min-width: 621px) {
  .commerce-dialog__form {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

@media (max-width: 760px) {
  .commerce-success-grid {
    grid-template-columns: 1fr;
  }

  .commerce-success-card {
    aspect-ratio: auto;
  }

  .commerce-success-card.commerce-telegram-card {
    grid-template-rows: repeat(4, auto);
    align-content: start;
    gap: 18px;
  }

  .commerce-card-figure {
    top: 14px;
    width: 48px;
    height: 88px;
    opacity: 0.1;
  }

  .commerce-card-figure--leader { right: 74px; }
  .commerce-card-figure--follower { right: 14px; }
}
