.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.offer-dialog {
  --offer-bleed: .5rem;
  --offer-top-bleed: .5rem;
  width: min(calc(32.5rem + 2 * var(--offer-bleed)), calc(100% - 1rem));
  padding: var(--offer-top-bleed) var(--offer-bleed) 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c0a4d1 #77578f;
}
.offer-dialog__card {
  position: relative;
  container: offer-dialog / inline-size;
  isolation: isolate;
  border: 1px solid #b293c5;
  border-radius: 1.25rem;
  color: #fff;
  font-weight: 400;
  background: linear-gradient(177.85deg, rgb(255 255 255 / 40%) 10.135%, transparent 72.114%), linear-gradient(180deg, transparent 20.809%, rgb(109 86 125 / 80%) 83.529%), url('../images/offer-background-1024.webp') center bottom / cover, #a992eb;
}
.offer-dialog__controls { position: sticky; top: 0; height: 0; z-index: 3; }
.offer-dialog__close { position: absolute; inset: .5rem .5rem auto auto; color: #604273; background: rgb(255 255 255 / 84%); }
.offer-dialog__close:hover { background: #fff; }
.offer-dialog__art { position: absolute; inset: calc(-1 * var(--offer-top-bleed)) calc(-1 * var(--offer-bleed)) 0; padding-top: var(--offer-top-bleed); overflow: clip; pointer-events: none; }
.offer-dialog__art .offer-visual { width: calc(100% - 2 * var(--offer-bleed)); margin-inline: auto; }
.offer-visual { position: relative; aspect-ratio: 520 / 345; pointer-events: none; }
/* Percentages describe the exported artwork and its transparent margins, not content coordinates. */
/* Figma 5952:11008 in the 520 × 345 scene; glow and cube rotate around their own centres. */
.offer-visual__characters { position: absolute; width: 152.5%; max-width: none; height: auto; left: -28.9423%; top: -52.754%; }
.offer-visual__glow { position: absolute; width: 123.258%; max-width: none; height: auto; left: -7%; top: 45%; rotate: -8.08deg; }
.offer-visual__gift { position: absolute; width: 38.919%; max-width: none; height: auto; left: 67.3%; top: 69.2%; rotate: -6.15deg; }

/* Figma 6384:483, only on /detskie-prazdniki/ (offerDialogScene: holidays): four characters rise
   77.5px above the 520px card (14.9%); the scene is measured from the card's outer edge. */
.offer-dialog--scene-holidays { --offer-top-bleed: max(.5rem, calc(min(32.5rem, 100vw - 1rem - 2 * var(--offer-bleed)) * .15)); }
.offer-dialog--scene-holidays .offer-dialog__art { inset: calc(-1 * var(--offer-top-bleed) - 1px) calc(-1 * var(--offer-bleed) - 1px) 0; }
.offer-dialog--scene-holidays .offer-visual__characters { width: 105.5769%; left: -3.3654%; top: -24.3478%; }
.offer-dialog--scene-holidays .offer-visual__glow { width: 128.3588%; left: -13.0445%; top: 56.4488%; }
.offer-dialog--scene-holidays .offer-visual__glow--lower { left: -12.072%; top: 77.2051%; }
.offer-dialog--scene-holidays .offer-visual__gift { width: 38.9187%; left: 68.8502%; top: 70.7978%; }
.offer-dialog__body { position: relative; z-index: 1; padding: 0 2.4375rem 1.75rem; text-align: center; }
.offer-dialog__star { width: 1.5rem; height: 1.5rem; margin-inline: auto; }
.offer-dialog h2 { max-width: none; margin-top: 1.5rem; font-size: clamp(1.5rem, 7.0827cqw, 2.301875rem); font-weight: 600; line-height: 1; letter-spacing: 0; }
.offer-dialog h2 + .offer-dialog__subtitle { margin-top: .25rem; color: rgb(255 255 255 / 70%); font-size: 1rem; line-height: 1.2; }
.offer-form { margin-top: 1.25rem; }
.offer-dialog__subject { margin-top: .875rem; padding: .5rem 1rem; border-radius: var(--radius-pill); background: rgb(255 255 255 / 18%); font-size: .9375rem; }
.offer-form__row { display: flex; align-items: stretch; min-height: 4.9375rem; border: 1px solid rgb(97 79 109 / 59%); border-radius: var(--radius-pill); background: #fff; }
.offer-phone { display: flex; align-items: center; flex: 1; gap: .5rem; min-width: 0; padding-left: 1.625rem; color: #2c2c2c; }
.offer-phone__prefix { display: flex; align-items: center; flex: none; gap: .5rem; font-size: 1rem; white-space: nowrap; }
.offer-phone__prefix img { flex: none; width: 1.0625rem; height: .75rem; }
.offer-phone__prefix .offer-phone__chevron { width: .5rem; height: .375rem; opacity: .7; }
.phone-country { position: relative; flex: none; min-width: 2.75rem; min-height: 2.75rem; }
.phone-country__display { display: flex; align-items: center; gap: inherit; pointer-events: none; }
/* The native control keeps keyboard navigation and the device's country picker. */
.phone-country select { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; font: inherit; font-size: max(1rem, 16px); cursor: pointer; }
.phone-country:focus-within { outline: 2px solid var(--focus-color); outline-offset: 2px; border-radius: .375rem; }
.offer-phone__number { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; }
.offer-phone input { min-width: 0; width: 100%; padding: .875rem .375rem .875rem 0; border: 0; border-radius: 0; background: transparent; color: #463258; font-size: 1rem; }
/* Let the number use its own row when the country code and enlarged text no
   longer fit together. Normal phone widths retain the original single row. */
.offer-phone, .quiz__phone { flex-wrap: wrap; }
.offer-phone > input, .offer-phone__number, .quiz__phone > input { flex: 1 1 7.5em; }
.offer-phone input::placeholder { color: #b5b0ba; opacity: 1; }
.offer-phone input:focus-visible { outline: 0; }
.offer-phone:focus-within { outline: 3px solid var(--focus-color); outline-offset: 4px; border-radius: var(--radius-pill); }
.offer-form__submit { flex: 0 0 43%; min-width: 0; padding: 1rem .875rem; border-radius: var(--radius-pill); background: var(--gradient-gold); color: var(--color-gold-ink); font-size: 1.0625rem; font-weight: 500; letter-spacing: -.03em; transition: filter var(--motion-fast), scale var(--motion-fast); }
.offer-form__submit:hover { filter: brightness(1.045); }
.offer-form__submit:active { scale: .98; }
.offer-form__consents { display: grid; gap: .5rem; margin-top: 1.25rem; text-align: left; }
.offer-consent { position: relative; display: grid; grid-template-columns: .8125rem minmax(0, 1fr); gap: .9375rem; align-items: start; cursor: pointer; }
.offer-consent input { width: .8125rem; height: .8125rem; margin: .0625rem 0 0; accent-color: #f4d28d; cursor: pointer; }
.offer-consent > span { color: rgb(255 255 255 / 60%); font-size: .625rem; line-height: 1.19; }
.offer-consent__underlined { font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .12em; }
.offer-form__feedback { margin-top: 1.25rem; padding: 1rem; border-radius: 1rem; color: #463258; background: #f5f3ff; font-size: .875rem; line-height: 1.5; text-align: left; }
.offer-form__feedback a { display: block; margin-top: .5rem; text-decoration: underline; text-underline-offset: .2em; }

/* Thanks after sending (Figma ASUbb6hQZf8cAetY2CnRN6 6820:3294, 6820:2779, 6820:2969,
   6820:3202, 6820:3118, 6819:2722, 6820:3442, 6820:3474). The sent form keeps its
   size with the fields hidden, and the thanks covers them; offer-form.js toggles it. */
.form-success { color: var(--color-white); text-align: left; }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success__icon { width: 2rem; height: 2rem; }
.form-success__title { font-size: 1.1875rem; font-weight: 600; line-height: 1.2; }
.form-success__text { color: rgb(255 255 255 / 70%); font-size: .875rem; line-height: 1.2; }
.form-success__text strong { font-weight: 600; white-space: nowrap; }
.offer-form[data-sent] { position: relative; }
.offer-form[data-sent] > :not(.form-success), .offer-form[data-sent] > :not(.form-success) * { visibility: hidden; }
/* Inline forms: a 365 × 96 glass card (6820:3435), vertically centred on the hidden fields. */
.offer-form[data-sent] > .form-success {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-content: center;
  column-gap: .9375rem;
  row-gap: .125rem;
  width: min(22.8125rem, 100%);
  height: fit-content;
  min-height: 6rem;
  margin-block: auto;
  padding: 1rem 1.0625rem;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 5%);
}
.offer-form[data-sent] > .form-success .form-success__icon { grid-row: 1 / span 2; align-self: center; }
/* Popups: the thanks replaces the star, heading and form under the scene (6819:2722). */
.offer-dialog[data-sent] .offer-dialog__body > :not(.offer-form) { visibility: hidden; }
.offer-dialog .offer-form[data-sent] { position: static; }
.offer-dialog .offer-form[data-sent] > .form-success {
  inset: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 0;
  background: none;
  text-align: center;
}
.offer-dialog .form-success__icon { width: 2.75rem; height: 2.75rem; }
.offer-dialog .form-success__title { margin-top: .75rem; font-size: clamp(1.5rem, 7.0827cqw, 2.301875rem); line-height: 1; }
.offer-dialog .form-success__text { margin-top: .75rem; font-size: 1rem; }

@media (width >= 40rem) {
  .offer-dialog { --offer-bleed: 2.5rem; }
}

@container offer-dialog (max-width: 28rem) {
  .offer-dialog__body { padding-inline: 1.25rem; }
  .offer-dialog h2 { margin-top: 1rem; }
  .offer-dialog h2 + .offer-dialog__subtitle { max-width: 24ch; margin: .5rem auto 0; font-size: .875rem; line-height: 1.4; }
  .offer-form__row { display: grid; gap: .625rem; border: 0; border-radius: 0; background: transparent; }
  .offer-phone { min-height: 3.5rem; padding-left: 1rem; border: 1px solid rgb(97 79 109 / 59%); border-radius: var(--radius-pill); background: #fff; }
  .offer-form__submit { min-height: 3.5rem; font-size: 1rem; }
  .offer-form__consents { gap: .625rem; }
  .offer-consent { grid-template-columns: 1.125rem minmax(0, 1fr); gap: .625rem; min-height: 2.75rem; align-items: center; }
  .offer-consent input { width: 1.125rem; height: 1.125rem; margin: 0; }
  .offer-consent > span { font-size: .6875rem; line-height: 1.35; }
}

/* Keep both phone controls reachable when enlarged text narrows the dialog. */
@container offer-dialog (width < 16em) {
  .offer-dialog__body { padding-inline: min(1.25rem, 5cqw); }
  .offer-phone { gap: 0; padding: .375rem min(.625rem, 5cqw); }
}
