/* Produkt — the page after paying, after the design's «Success — Заказ оплачен»:
   on a wide screen the words on the left half and the licence on a picture on the right,
   which stays while the left scrolls; on a phone the picture is a band on top.
   Type: 12 · 16 · 21 · 51, lines in fours; the column 576 wide, 72 from the edge at 1440. */

html.paid-doc body::before { display: none; }        /* no dot grid here: the page is one sheet */
.paid-doc { scroll-padding-top: 24px; }

.paid-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }

/* ---------- the licence, on the picture ---------- */
.art { position: relative; overflow: hidden; height: 17.5rem; background: #120a06; isolation: isolate; }
.art__bg, .art__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.art__card { position: absolute; inset: 0 0 2.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; text-align: center; }
.art__icon { display: grid; place-items: center; width: 6rem; height: 6rem; margin-bottom: 1rem; border-radius: 1.375rem; background: #000; box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .45); }
.art__icon svg { width: 3.375rem; height: 3.75rem; color: #fff; }
.art__name { font: 600 1.3125rem/1.3333 var(--display); letter-spacing: -.01em; }
.art__meta { font: 500 .75rem/1.3333 var(--sans); letter-spacing: .02em; color: var(--text-2); }
.art__corner { position: absolute; bottom: 1.5rem; font: 400 .75rem/1.3333 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.art__corner--l { left: 1.25rem; }
.art__corner--r { right: 1.25rem; }

/* ---------- the words ---------- */
.paid { display: flex; flex-direction: column; gap: 2rem; padding: 1.5rem var(--g) 3rem; }
.paid__logo { display: none; }
.paid__content { display: flex; flex-direction: column; max-width: 36rem; }
.paid__status { display: flex; align-items: center; gap: .625rem; font: 600 .75rem/1.3333 var(--sans); letter-spacing: .02em; text-transform: uppercase; }
.paid__status i { width: .375rem; height: .375rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 .25rem rgba(57, 236, 161, .12); }
.paid__title { margin-top: 1.5rem; font: 700 clamp(2.5rem, 1.75rem + 2.2vw, 3.1875rem)/1.098 var(--display); letter-spacing: -.02em; }
.paid__title span { display: block; color: var(--blue-text); }
.paid__lead { margin-top: 1.5rem; font: 400 1.125rem/1.5556 var(--sans); color: var(--text-2); text-wrap: pretty; }
.paid__field, .paid__block { display: flex; flex-direction: column; gap: .75rem; margin-top: 2rem; }
.paid__label { font: 600 .75rem/1.3333 var(--sans); letter-spacing: .02em; color: var(--text-2); }
.paid__note { display: flex; gap: .5rem; font: 500 .75rem/1.3333 var(--sans); letter-spacing: .02em; color: var(--text-3); text-wrap: pretty; }
.paid__note svg { flex: none; width: .875rem; height: .875rem; position: relative; top: .0625rem; }
.paid__note--plain { display: block; color: var(--text-2); }

/* the version: a field with the platform's own list */
.select { position: relative; }
.select select {
  width: 100%; height: 3rem; padding: 0 2.75rem 0 1rem; border: 1px solid var(--outline); border-radius: .75rem;
  background: var(--page); color: var(--text); font: 500 1rem/1.5 var(--sans); appearance: none; -webkit-appearance: none; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.select select:hover { border-color: var(--outline-hover); }
.select select:focus-visible { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 53, 255, .25); }
.select svg { position: absolute; right: 1rem; top: 50%; width: 1rem; height: 1rem; margin-top: -.5rem; color: var(--text-3); pointer-events: none; }
.select option { background: var(--control); color: var(--text); }

/* the files: a row per system, a link per processor; the one for this computer lit */
.dl { display: flex; flex-direction: column; gap: .5rem; }
.dl__item {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; min-height: 4.5rem; padding: .75rem .75rem .75rem 1rem;
  border: 1px solid var(--edge); border-radius: .75rem; background: var(--surface); transition: border-color .2s;
}
.dl__icon { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .5rem; background: var(--control); color: var(--text-2); }
.dl__icon svg { width: 1.125rem; height: 1.125rem; }
.dl__text { flex: 1; min-width: 9rem; display: flex; flex-direction: column; gap: .125rem; }
.dl__os { display: flex; align-items: center; gap: .5rem; font: 600 1rem/1.5 var(--sans); }
.dl__file { font: 400 .75rem/1.3333 var(--mono); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl__badge { display: none; padding: .125rem .5rem .1875rem; border-radius: 99px; background: rgba(31, 53, 255, .18); font: 500 .6875rem/1.4545 var(--sans); letter-spacing: .02em; color: var(--blue-ink); }
.dl__arch { display: flex; gap: .5rem; }
.dl__get {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 2.5rem; min-width: 6.5rem; padding: 0 .875rem; border-radius: .5rem;
  border: 1px solid var(--outline); font: 600 .8125rem/1 var(--sans); white-space: nowrap; color: var(--text);
  transition: border-color .2s, background-color .2s;
}
.dl__get:hover { border-color: var(--outline-hover); background: rgba(255, 255, 255, .04); }
.dl__get:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 2px; }
.dl__get svg { width: 1rem; height: 1rem; }
.dl__item.is-yours { border-color: var(--blue); box-shadow: inset 0 0 0 .5px var(--blue); }
.dl__item.is-yours .dl__badge { display: block; }
.dl__get.is-yours { border-color: var(--blue); background: var(--blue); color: #fff; }
.dl__get.is-yours:hover { border-color: var(--blue-hover); background: var(--blue-hover); }
@media (max-width: 479px) {          /* a phone: the two links under the name, half each */
  .dl__arch { flex: 1 0 100%; }
  .dl__get { flex: 1; }
}

/* the serial number, or a file of them when there are several copies */
.serial__box {
  display: flex; align-items: center; gap: .75rem; min-height: 3.5rem; padding: .5rem .5rem .5rem 1rem;
  border: 1px solid var(--edge); border-radius: .75rem; background: var(--surface);
}
.serial__code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 1rem/1.5 var(--mono); letter-spacing: .02em; color: var(--text); }
.serial__copy, .serial__get {
  flex: none; display: inline-flex; align-items: center; gap: .5rem; height: 2.5rem; padding: 0 .875rem; border-radius: .5rem;
  background: var(--control); font: 600 .75rem/1 var(--sans); letter-spacing: .02em; color: var(--text-2); transition: color .2s, background-color .2s;
}
.serial__copy:hover, .serial__get:hover { background: #1d1e22; color: var(--text); }
.serial__copy svg, .serial__get svg { width: 1rem; height: 1rem; }
.serial__copy.is-done { color: var(--accent); }
@media (max-width: 479px) { .serial__copy { width: 2.5rem; padding: 0; justify-content: center; } .serial__copy span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }  /* the mark alone, so the number keeps to one line */
.serial__file { flex: 1; min-width: 0; display: flex; align-items: center; gap: .75rem; }
.serial__file > svg { flex: none; width: 1.25rem; height: 1.25rem; color: var(--text-3); }
.serial__file span { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.serial__file b { font: 500 1rem/1.25 var(--mono); }
.serial__file small { font: 500 .75rem/1.3333 var(--sans); letter-spacing: .02em; color: var(--text-3); }

/* the receipt: a row like the files, quieter, opening elsewhere */
.rcpt {
  display: flex; align-items: center; gap: 1rem; min-height: 3.5rem; padding: .5rem 1rem .5rem .5rem;
  border: 1px solid var(--edge); border-radius: .75rem; transition: border-color .2s, background-color .2s;
}
.rcpt:hover { border-color: var(--outline); background: var(--surface); }
.rcpt:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 2px; }
.rcpt__icon { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .5rem; background: var(--control); color: var(--text-2); }
.rcpt__icon svg { width: 1rem; height: 1rem; }
.rcpt__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .125rem; }
.rcpt__name { font: 600 .875rem/1.4286 var(--sans); }
.rcpt__meta { font: 500 .75rem/1.3333 var(--sans); letter-spacing: .02em; color: var(--text-3); }
.rcpt__go { flex: none; width: 1rem; height: 1rem; color: var(--text-3); transition: color .2s, translate .2s var(--ease); }
.rcpt:hover .rcpt__go { color: var(--text); translate: .125rem -.125rem; }

/* sending them to oneself */
.send { max-width: 36rem; padding-top: 2rem; border-top: 1px solid var(--edge); }
.send__label { display: flex; justify-content: space-between; gap: 1rem; font: 600 .75rem/1.3333 var(--sans); letter-spacing: .02em; color: var(--text-2); }
.send__label span { font-weight: 500; color: var(--text-4); }
.send__row { display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; }
.send__btn { height: 3rem; }
.send__hint { margin-top: .5rem; font: 500 .75rem/1.3333 var(--sans); letter-spacing: .02em; color: var(--text-3); }
.send__hint.is-done { color: var(--accent); }
@media (min-width: 480px) {
  .send__row { flex-direction: row; }
  .send__btn { flex: none; padding: 0 1.75rem; }
}

/* ---------- a wide screen: two halves, the licence staying in view ---------- */
@media (min-width: 1024px) {
  .paid-page { flex-direction: row-reverse; }
  .art { position: sticky; top: 0; flex: 1 1 50%; height: 100vh; height: 100dvh; }
  .art__card { inset: 0; }
  .art__icon { width: 10rem; height: 10rem; margin-bottom: 2rem; border-radius: 2.25rem; }
  .art__icon svg { width: 5.625rem; height: 6.25rem; }
  .art__corner { bottom: 1.5rem; }
  .art__corner--l { left: 1.5rem; }
  .art__corner--r { right: 1.5rem; }
  .paid { flex: 1 1 50%; min-width: 0; gap: 2.6875rem; padding: 3rem clamp(2.5rem, 5vw, 4.5rem) 3rem; }
  .paid__logo { display: inline-flex; align-self: flex-start; gap: .5rem; }
  .paid__logo .logo__mark { width: 1.25rem; height: 1.375rem; }
  .paid__logo .logo__word { font-size: 1.3125rem; line-height: 1.3333; }
  .paid__content { padding-top: 1rem; }
  .paid__lead { font-size: 1.3125rem; line-height: 1.5238; }
}
