.rc-is-open { overflow: hidden; }
.rc-dialog { --rc-ink: #efece3; --rc-muted: #a8a9ab; --rc-gold: #c9ab6e; --rc-line: rgba(216, 199, 161, .2); width: min(880px, calc(100% - 40px)); max-width: 880px; max-height: calc(100dvh - 48px); margin: auto; padding: 0; color: var(--rc-ink); background: #161b24; border: 1px solid #716145; border-radius: 0; overflow: auto; box-shadow: 0 32px 100px #0009; font-family: 'Arial', sans-serif; color-scheme: dark; }
.rc-dialog::backdrop { background: rgba(5, 10, 17, .8); backdrop-filter: blur(9px); }
.rc-dialog *, .rc-dialog *::before, .rc-dialog *::after { box-sizing: border-box; }
.rc-dialog button, .rc-dialog input, .rc-dialog select { font: inherit; }
.rc-dialog button { cursor: pointer; }
.rc-dialog button:disabled { cursor: not-allowed; opacity: .42; }
.rc-dialog :focus-visible { outline: 2px solid #f5d68e; outline-offset: 4px; }
.rc-dialog h2:focus { outline: none; }
.rc-shell { position: relative; background: radial-gradient(ellipse at 80% 10%, rgba(119, 100, 66, .13), transparent 60%), linear-gradient(130deg, transparent 60%, #23263066); min-height: 620px; }
.rc-close { position: absolute; top: 17px; right: 17px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: #d6cfc0; border: 1px solid var(--rc-line); background: transparent; }
.rc-close span { font: 30px/1 Arial, sans-serif; font-weight: 200; }
.rc-close:hover { background: #ffffff0c; border-color: var(--rc-gold); }
.rc-app { padding: 30px 48px 23px; }
.rc-header { display: flex; align-items: center; gap: 18px; padding-right: 40px; }
.rc-brand { font-family: Georgia, 'Times New Roman', serif; font-size: 18px; letter-spacing: 2px; line-height: 1.2; }
.rc-brand > span { display: block; margin-top: 5px; font: 8px/1.4 Arial, sans-serif; letter-spacing: 3.4px; color: var(--rc-gold); }
.rc-preview-badge { padding: 5px 7px; border: 1px solid var(--rc-line); color: var(--rc-gold); font-size: 8px; letter-spacing: 1.3px; }
.rc-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 32px 0 0; border-bottom: 1px solid var(--rc-line); }
.rc-steps li { position: relative; display: flex; align-items: center; gap: 9px; padding: 0 0 16px; color: #747b85; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.rc-steps li > span { font-family: Georgia, serif; font-size: 12px; }
.rc-steps li > b { font-weight: 500; }
.rc-steps .is-current { color: var(--rc-ink); }
.rc-steps .is-current::after { content: ''; position: absolute; bottom: -1px; height: 2px; left: 0; right: 24px; background: var(--rc-gold); }
.rc-steps .is-done > span { color: var(--rc-gold); }
.rc-intro { max-width: 460px; margin: auto; padding: 26px 0 7px; text-align: center; }
.rc-emblem { width: 56px; height: 56px; margin: 0 auto 20px; color: var(--rc-gold); }
.rc-emblem svg { width: 100%; height: 100%; }
.rc-kicker { margin: 0 0 13px; color: var(--rc-gold); font-size: 9px; font-weight: 500; line-height: 1.5; letter-spacing: 2.6px; }
.rc-dialog h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(36px, 5vw, 48px); font-weight: 400; line-height: 1.12; letter-spacing: -.9px; }
.rc-dialog h2 em { font-weight: 400; color: #d9c698; }
.rc-copy { color: var(--rc-muted); font-size: 12px; line-height: 1.8; margin: 15px 0 24px; }
.rc-copy strong { font-weight: 500; color: var(--rc-ink); }
.rc-preview-note { display: flex; flex-direction: column; gap: 6px; background: #ffffff04; border: 1px solid var(--rc-line); padding: 14px 18px; margin: 24px 0 20px; }
.rc-preview-note strong { font-size: 9px; font-weight: 500; letter-spacing: 2px; color: var(--rc-gold); }
.rc-preview-note span { font-size: 11px; line-height: 1.65; color: var(--rc-muted); }
.rc-button { display: inline-flex; justify-content: center; align-items: center; gap: 24px; min-height: 48px; padding: 13px 24px; border: 1px solid #d5bf8a; background: #d5bf8a; color: #191d23; font-size: 11px; font-weight: 600; letter-spacing: .4px; transition: background .18s, border-color .18s; }
.rc-button:hover:not(:disabled) { background: #e7d29f; border-color: #e7d29f; }
.rc-button-secondary { color: var(--rc-ink); background: transparent; border-color: var(--rc-line); min-width: 104px; }
.rc-button-secondary:hover:not(:disabled) { color: var(--rc-ink); background: #ffffff0c; border-color: #8d7b59; }
.rc-intro > .rc-button { width: 100%; }
.rc-fine { margin: 13px 0 0; color: #9b9da3; font-size: 10px; line-height: 1.6; }
.rc-content { padding-top: 32px; }
.rc-content h2 { font-size: 39px; }
.rc-selection { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 28px; }
.rc-selection label, .rc-login label { font-size: 10px; letter-spacing: .8px; color: var(--rc-muted); }
.rc-selection label:not(:first-child) { margin-top: 13px; }
.rc-selection select, .rc-login input { width: 100%; min-height: 48px; background: #10161e; border: 1px solid #4d5158; border-radius: 0; color: var(--rc-ink); padding: 12px; font-size: 13px; }
.rc-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--rc-line); }
.rc-text-button { padding: 0; background: transparent; border: 0; color: #d2ba82; text-decoration: underline; text-underline-offset: 4px; font-size: 11px; }
.rc-demo-description { font-size: 10px; line-height: 1.6; color: #979ba3; margin: -8px 0 20px; max-width: 480px; }
.rc-tabs { display: flex; gap: 5px; margin: 20px 0; }
.rc-tabs button { background: transparent; color: #a3a7ae; border: 1px solid transparent; padding: 9px 16px; font-size: 11px; }
.rc-tabs button[aria-pressed="true"] { color: #dcc792; border-color: #897343; background: #b89a5e10; }
.rc-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rc-product { position: relative; display: flex; flex-direction: column; align-items: center; padding: 18px 10px 16px; background: #111821; border: 1px solid #404651; color: var(--rc-ink); text-align: center; min-width: 0; transition: border-color .18s, background .18s; }
.rc-product:hover { border-color: #aa9362; background: #1e242c; }
.rc-product.is-selected { border-color: #d5ba7d; background: linear-gradient(150deg, #8c73451f, #141c27); box-shadow: inset 0 0 0 1px #d5ba7d; }
.rc-product-art { position: relative; display: block; width: 58px; height: 58px; margin-bottom: 15px; color: #cbb477; }
.rc-product-art svg { width: 100%; height: 100%; }
.rc-product-art > span { position: absolute; right: -9px; bottom: 0; color: #7f898f; font: 10px Georgia, serif; }
.rc-product-name { font-family: Georgia, serif; font-size: 17px; line-height: 1.3; }
.rc-product-grant { font-size: 10px; color: #9299a4; line-height: 1.4; margin-top: 5px; }
.rc-product-price { font-size: 18px; margin-top: 17px; color: #ddc999; }
.rc-product-price small { display: block; font-size: 7px; line-height: 1.4; letter-spacing: 1.7px; color: #9a957f; margin-top: 6px; }
.rc-product-check { position: absolute; right: 8px; top: 6px; color: #d5ba7d; font-size: 11px; opacity: 0; }
.rc-product.is-selected .rc-product-check { opacity: 1; }
.rc-summary { margin: 26px 0 0; border-top: 1px solid var(--rc-line); }
.rc-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid #ffffff0a; }
.rc-summary dt { font-size: 11px; color: #939aa4; }
.rc-summary dd { margin: 0; font-size: 13px; text-align: right; }
.rc-summary dd small { display: block; margin-top: 5px; color: #9299a4; font-size: 10px; }
.rc-summary .rc-total { margin-top: 3px; padding: 20px 0; }
.rc-total dt { color: #d6bb7d; }
.rc-total dd { color: #d6bb7d; font: 30px Georgia, serif; }
.rc-review-note { max-width: 450px; }
.rc-finished { padding-top: 38px; }
.rc-restart { margin-top: 20px; }
.rc-error { margin-top: 20px; padding: 12px 14px; border: 1px solid #ab736f88; background: #67332d22; color: #edbab4; font-size: 12px; line-height: 1.6; }
.rc-status { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 22px; margin-top: 12px; font-size: 10px; color: #bfac82; }
.rc-spinner { display: inline-block; width: 12px; height: 12px; border: 1px solid #74674b; border-top-color: #dcc68f; border-radius: 50%; animation: rc-spin .7s linear infinite; }
.rc-empty { font-size: 12px; color: #c1ad84; line-height: 1.6; }
.rc-login { display: grid; gap: 20px; margin: 28px 0 0; }
.rc-login label { display: grid; gap: 8px; }
@keyframes rc-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .rc-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .rc-shell { min-height: 0; }
  .rc-app { padding: 24px 20px 12px; }
  .rc-header { gap: 10px; }
  .rc-brand { font-size: 14px; letter-spacing: 1.5px; }
  .rc-brand > span { font-size: 7px; letter-spacing: 2.3px; }
  .rc-preview-badge { font-size: 7px; padding: 4px; letter-spacing: .5px; }
  .rc-close { width: 32px; height: 32px; right: 12px; top: 17px; }
  .rc-close span { font-size: 25px; }
  .rc-steps { margin-top: 26px; }
  .rc-steps li { flex-direction: column; align-items: flex-start; gap: 7px; font-size: 8px; letter-spacing: .4px; padding-bottom: 12px; }
  .rc-steps .is-current::after { right: 12px; }
  .rc-intro { padding-top: 24px; }
  .rc-emblem { width: 44px; height: 44px; margin-bottom: 18px; }
  .rc-dialog h2 { font-size: 36px; }
  .rc-content h2 { font-size: 33px; }
  .rc-kicker { font-size: 8px; letter-spacing: 1.8px; }
  .rc-copy { font-size: 11px; margin-bottom: 18px; }
  .rc-preview-note { margin-top: 20px; padding: 12px; }
  .rc-button { min-height: 46px; padding: 12px 16px; font-size: 10px; gap: 14px; }
  .rc-button-secondary { min-width: 75px; }
  .rc-actions { margin-top: 24px; padding-top: 18px; }
  .rc-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .rc-product { padding: 15px 8px; }
  .rc-product-name { font-size: 15px; }
  .rc-product-grant { font-size: 9px; }
  .rc-product-price { font-size: 17px; }
  .rc-product-art { width: 46px; height: 46px; margin-bottom: 12px; }
  .rc-tabs button { padding: 8px 12px; }
  .rc-summary dd { font-size: 11px; }
  .rc-summary dt { font-size: 10px; }
  .rc-total dd { font-size: 28px; }
  .rc-status { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .rc-dialog *, .rc-dialog *::before, .rc-dialog *::after { animation: none !important; transition: none !important; }
}
