:root {
  --bg: #f2efe9;
  --paper: #fbfaf7;
  --paper-2: #f4f1eb;
  --ink: #161412;
  --ink-soft: #6e6862;
  --line: rgba(22, 20, 18, 0.12);
  --live: #2fbf57;
  --panel: #101114;
  --panel-2: #16181d;
  --gold-1: #f4e0a8;
  --gold-2: #c9a24a;
  --gold-3: #7a5a18;
  --text: #f3f1ea;
  --muted: #9b968c;
  --font-sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-display: Montserrat, ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

html.theme-dark,
body.is-anketa {
  color-scheme: dark;
}

button,
a {
  font: inherit;
  color: inherit;
}

button,
a,
.ac-opt,
.ac-cta,
.ac-hub-max {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.theme-dark,
body.is-anketa {
  --line: rgba(255, 255, 255, 0.1);
  color: var(--text);
  background: #050506;
}

.gold-fill {
  background-image: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 52%, var(--gold-3) 100%);
}

.gold-text {
  color: var(--gold-3);
  background-image: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 48%, var(--gold-3) 100%);
}

.title-text {
  color: #d8d2c4;
  background-image: linear-gradient(180deg, #f6f3ea 0%, #d8d2c4 62%, #a89f90 100%);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .gold-text,
  .title-text {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
  }
}

@media (forced-colors: active) {
  .gold-text,
  .title-text {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: CanvasText;
  }
}

.cta-shadow {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -2px 0 rgba(122, 90, 24, 0.38),
    0 4px 0 #7a5a18,
    0 10px 22px rgba(122, 90, 24, 0.28);
}

.gold-cta-shadow {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 32px rgba(201, 162, 74, 0.28);
}

.paper-card {
  background: rgba(251, 250, 247, 0.74);
  border: 1px solid rgba(22, 20, 18, 0.06);
  border-radius: 21px;
  box-shadow:
    0 18px 40px rgba(22, 20, 18, 0.1),
    0 4px 12px rgba(22, 20, 18, 0.05);
}

.grain {
  display: none;
}

.bg-overlay-anketa {
  background-image: linear-gradient(
    180deg,
    rgba(5, 5, 6, 0.52) 0%,
    rgba(5, 5, 6, 0.44) 22%,
    rgba(5, 5, 6, 0.56) 48%,
    rgba(5, 5, 6, 0.8) 74%,
    rgba(5, 5, 6, 0.94) 100%
  );
}

.bg-vignette {
  background-image: radial-gradient(ellipse at center, transparent 18%, rgba(5, 5, 6, 0.5) 100%);
}

.q-scrim {
  position: relative;
  isolation: isolate;
}

.q-scrim::before {
  content: "";
  position: absolute;
  inset: -14px -18px;
  background: radial-gradient(
    ellipse at 50% 45%,
    rgba(5, 5, 6, 0.88) 0%,
    rgba(5, 5, 6, 0.58) 46%,
    transparent 76%
  );
  pointer-events: none;
  z-index: -1;
}

.q-fwd {
  animation: q-fwd 220ms ease-out;
}

.q-back {
  animation: q-back 220ms ease-out;
}

@keyframes q-fwd {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes q-back {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .q-fwd,
  .q-back {
    animation: none;
  }

  .ac-progress-fill,
  .ac-cta,
  .ac-btn--gold:not(:disabled),
  .ac-btn--gold:not(:disabled):active {
    transition: none;
  }

  .ac-cta:active,
  .ac-btn--gold:not(:disabled):active {
    transform: none;
  }
}

#acHome[hidden],
#acAnketa[hidden] {
  content-visibility: hidden;
}

.ac-wrap {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  padding-inline: 20px;
}

.ac-wrap--narrow {
  max-width: 480px;
  padding-inline: 26px;
}

@media (min-width: 520px) {
  .ac-wrap:not(.ac-wrap--narrow) {
    padding-inline: 24px;
  }
}

@media (min-width: 768px) {
  .ac-wrap--narrow {
    max-width: 520px;
  }

  .ac-home-stage {
    max-width: none;
  }

  .ac-home-stage img {
    object-position: center 46%;
  }
}

.ac-home-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #f2efe9;
}

.ac-home-stage {
  position: relative;
  width: 100%;
  max-width: 576px;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  margin-inline: auto;
  overflow: hidden;
}

.ac-home-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.ac-home-veil {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.06);
}

.ac-home {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  width: 100%;
  max-width: 576px;
  flex-direction: column;
}

.ac-corners {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.ac-corner {
  position: absolute;
  font-family: var(--font-display);
  font-size: 6.5px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(110, 104, 98, 0.7);
}

.ac-corner--tl {
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 12px;
}

.ac-corner--tr {
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 12px;
  text-align: right;
}

.ac-corner--bl {
  bottom: 12px;
  left: 12px;
}

.ac-corner--br {
  right: 12px;
  bottom: 12px;
  text-align: right;
}

.ac-est {
  margin: 0 0 6px;
}

.ac-corner p {
  margin: 0;
}

.ac-hair {
  display: flex;
  height: 1px;
  width: 26px;
  margin-top: 6px;
}

.ac-hair--l::before {
  content: "";
  width: 8px;
  height: 100%;
  background: rgba(201, 162, 74, 0.45);
}

.ac-hair--l::after {
  content: "";
  flex: 1;
  height: 100%;
  background: rgba(22, 20, 18, 0.25);
}

.ac-hair--r {
  margin-left: auto;
}

.ac-hair--r::before {
  content: "";
  flex: 1;
  height: 100%;
  background: rgba(22, 20, 18, 0.25);
}

.ac-hair--r::after {
  content: "";
  width: 8px;
  height: 100%;
  background: rgba(201, 162, 74, 0.45);
}

.ac-home .ac-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding-top: calc(18px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

.ac-logo {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ac-emblem {
  width: 52px;
  height: 48px;
}

.ac-emblem--sm {
  width: 48px;
  height: 44px;
}

.ac-logo-name {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
}

.ac-logo-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.ac-logo-rule i {
  height: 1px;
  width: 44px;
  background: linear-gradient(90deg, transparent, rgba(22, 20, 18, 0.28));
}

.ac-logo-rule i:last-child {
  background: linear-gradient(90deg, rgba(22, 20, 18, 0.28), transparent);
}

.ac-logo-rule span {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.ac-title-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.ac-title-art {
  display: block;
  width: 78%;
  max-width: 300px;
  margin: 0 auto;
}

.ac-title-art img {
  display: block;
  width: 100%;
  height: auto;
}

.ac-hero {
  margin: 20px 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.ac-hero span {
  display: block;
}

.ac-hero em {
  font-style: normal;
}

.ac-lead {
  margin: 12px auto 0;
  max-width: 280px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-soft);
}

.ac-rewards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
  align-items: stretch;
}

.ac-reward-card {
  margin: 0;
  min-width: 0;
  display: flex;
  aspect-ratio: 327 / 457;
}

.ac-reward-card picture,
.ac-reward-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.ac-reward header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.ac-reward header p:first-child {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.ac-reward header p:last-child {
  margin: 0;
  text-align: right;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.ac-reward-art {
  position: relative;
  margin-top: 6px;
  min-height: 138px;
  flex: 1;
  overflow: hidden;
}

.ac-reward-mark {
  position: absolute;
  top: 50%;
  height: 200%;
  width: auto;
  opacity: 0.11;
  pointer-events: none;
}

.ac-reward-mark--l {
  left: calc(100% + 6px);
  transform: translate(-50%, -48%);
}

.ac-reward-mark--r {
  right: calc(100% + 6px);
  transform: translate(50%, -48%);
}

.ac-reward-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transform: scaleX(-1.28) scaleY(1.28);
}

.ac-reward h3 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.15;
}

.ac-reward-term {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-3);
  background-image: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.ac-reward-note {
  margin: 2px 0 0;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.ac-reward footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(22, 20, 18, 0.08);
}

.ac-reward footer span {
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(110, 104, 98, 0.8);
  white-space: normal;
  text-align: center;
}

.ac-reward footer i {
  width: 1px;
  height: 10px;
  background: rgba(22, 20, 18, 0.16);
}

.ac-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  width: 100%;
  margin-top: 22px;
}

.ac-benefits > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px;
}

.ac-ben-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border-radius: 999px;
  border: 1px solid rgba(22, 20, 18, 0.06);
  background: rgba(251, 250, 247, 0.94);
  box-shadow: 0 8px 18px rgba(22, 20, 18, 0.07);
}

.ac-ben-ico svg {
  width: 20px;
  height: 20px;
}

.ac-benefits p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ac-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  min-height: 60px;
  margin: 24px auto 0;
  padding: 0 20px;
  border: 1px solid rgba(138, 106, 34, 0.45);
  border-radius: 17px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
}

.ac-cta span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ac-cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ac-cta:hover {
  filter: brightness(1.1);
}

.ac-cta:active {
  transform: scale(0.98);
}

.ac-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px auto 0;
  max-width: 330px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ac-status i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--live);
  box-shadow: 0 0 6px rgba(47, 191, 87, 0.7);
}

.ac-status b {
  width: 1px;
  height: 10px;
  background: var(--line);
}

@media (max-width: 519px) and (min-height: 760px) {
  .ac-home .ac-wrap {
    max-width: 430px;
    padding-inline: 14px;
    padding-top: calc(18px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    justify-content: space-between;
  }

  .ac-title-art {
    width: 86%;
    max-width: 360px;
    flex: 0 0 auto;
  }

  .ac-rewards,
  .ac-benefits,
  .ac-cta,
  .ac-status {
    flex: 0 0 auto;
    margin-top: 0;
  }

  .ac-rewards {
    gap: 10px;
  }

  .ac-benefits {
    min-height: 70px;
    align-items: start;
  }

  .ac-cta {
    min-height: 58px;
  }
}

.ac-anketa-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ac-anketa-bg img,
.ac-anketa-bg picture,
.ac-anketa-bg .bg-overlay-anketa,
.ac-anketa-bg .bg-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ac-anketa-bg img {
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.62) saturate(0.72) contrast(1.08);
}

.ac-anketa {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  flex-direction: column;
}

.ac-anketa,
.ac-anketa .ac-wrap,
.ac-q-wrap,
#acQuestion,
.ac-q-title,
.ac-options,
.ac-opt {
  max-width: 100%;
  min-width: 0;
}

.ac-anketa .ac-wrap {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: calc(clamp(1.5rem, 6vh, 3.5rem) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.ac-q-title {
  display: block;
  width: 100%;
  margin: 0;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: var(--font-display);
  font-size: clamp(18px, 4.7vw, 22px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--text);
}

.ac-logo--compact {
  gap: 6px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
}

.ac-logo-dark {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.ac-logo-sub {
  margin: 0;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.ac-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.ac-progress-track {
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.ac-progress-fill {
  height: 100%;
  border-radius: 999px;
  width: 7%;
  transition: width 200ms ease;
}

.ac-progress-label {
  margin: 0;
  flex: none;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.ac-q-wrap {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: flex-start;
  padding: 16px 0 12px;
  min-width: 0;
  width: 100%;
}

#acQuestion {
  min-width: 0;
  width: 100%;
}

.ac-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.ac-opt {
  display: flex;
  min-height: 56px;
  width: 100%;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(16, 17, 20, 0.94);
  text-align: left;
  color: var(--text);
}

.ac-opt:hover {
  border-color: rgba(201, 162, 74, 0.4);
  background: rgba(22, 24, 29, 0.9);
}

.ac-opt.is-on {
  border-color: var(--gold-2);
  background: rgba(22, 24, 29, 0.95);
}

.ac-opt-dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.ac-opt.is-on .ac-opt-dot {
  border-color: var(--gold-2);
}

.ac-opt-dot i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold-2);
}

.ac-opt span:last-child {
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.ac-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: none;
  padding-top: 8px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

.ac-btn {
  min-height: 48px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ac-btn--ghost {
  border: 1px solid var(--line);
  background: rgba(16, 17, 20, 0.9);
  color: var(--text);
}

.ac-btn--gold {
  color: var(--ink);
}

.ac-btn:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.ac-btn--gold:not(:disabled):hover {
  filter: brightness(1.1);
}

.ac-btn--gold:not(:disabled):active {
  transform: scale(0.98);
}

.ac-done {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  margin-top: 32px;
  padding-bottom: 16px;
  text-align: center;
}

.ac-done-head {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ac-check {
  width: 64px;
  height: 64px;
}

.ac-done h1 {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.ac-done-head p {
  margin: 8px 0 0;
  max-width: 28ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.ac-summary {
  width: 100%;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.ac-summary li {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(16, 17, 20, 0.9);
}

.ac-summary li:first-child {
  margin-top: 0;
}

.ac-summary .ac-sum-q {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.ac-summary .ac-sum-a {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
}

.ac-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin-top: 24px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.ac-restart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.ac-restart:hover {
  border-color: rgba(201, 162, 74, 0.4);
  color: var(--text);
}

.ac-cta:focus-visible,
.ac-opt:focus-visible,
.ac-btn:focus-visible,
.ac-copy:focus-visible,
.ac-restart:focus-visible,
.ac-auth-close:focus-visible,
.ac-hub-max:focus-visible,
.ac-logo:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

.ac-opt:focus-visible {
  border-color: rgba(201, 162, 74, 0.4);
  background: rgba(22, 24, 29, 0.9);
}

.ac-hub-max:focus-visible {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(201, 162, 74, 0.42);
}

.ac-q-title,
.ac-opt span:last-child,
.ac-hub-title,
.ac-hub-sub {
  hyphens: auto;
  -webkit-hyphens: auto;
}

body.is-auth-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  overscroll-behavior: none;
}

body.is-auth-open .grain {
  display: none;
}

body.is-auth-open #acHome,
body.is-auth-open #acAnketa {
  pointer-events: none;
}

body.is-auth-open .ac-auth {
  pointer-events: auto;
}

.ac-auth[hidden] {
  display: none !important;
}

.ac-auth {
  position: fixed;
  top: var(--fl-vv-top, 0px);
  left: 0;
  right: 0;
  bottom: auto;
  height: var(--fl-vv-h, 100vh);
  height: var(--fl-vv-h, 100svh);
  max-height: var(--fl-vv-h, 100vh);
  max-height: var(--fl-vv-h, 100svh);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(18px, env(safe-area-inset-top, 0px)) 16px calc(18px + env(safe-area-inset-bottom, 0px));
}

.ac-auth-bg {
  position: fixed;
  top: var(--fl-vv-top, 0px);
  left: 0;
  right: 0;
  height: var(--fl-vv-h, 100vh);
  height: var(--fl-vv-h, 100svh);
  z-index: 0;
  background: rgba(8, 7, 6, 0.88);
}

@media (min-width: 900px) {
  .ac-auth-bg {
    background: rgba(8, 7, 6, 0.92);
  }
}

.ac-hub-title,
.ac-hub-sub,
.ac-hub-legal,
.ac-hub-max-note {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ac-auth-panel {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  max-width: 100%;
  min-width: 0;
  margin: auto 0;
  padding: 20px 18px 18px;
  border: 1px solid rgba(201, 162, 74, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(201, 162, 74, 0.16), transparent 55%),
    linear-gradient(165deg, rgba(22, 24, 29, 0.96), rgba(16, 17, 20, 0.94));
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ac-auth-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  color: #f3f1ea;
}

.ac-auth-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.ac-auth-close:hover {
  background: rgba(255, 255, 255, 0.07);
}

.ac-auth[data-step="code"] .ac-auth-close,
.ac-auth[data-step="password"] .ac-auth-close {
  display: none;
}

.ac-auth-need[hidden],
.ac-auth-host[hidden] {
  display: none !important;
}

.ac-auth-host {
  width: 100%;
  min-width: 0;
  padding-top: 10px;
  overflow: visible;
}

.ac-auth-err {
  margin: 8px 4px 0;
  font-size: 14px;
  line-height: 1.4;
  color: #f3b4b4;
  text-align: center;
}

.ac-auth.is-kb,
.ac-auth:has(.fl-auth.is-kb) {
  align-items: stretch;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
}

.ac-auth.is-kb .ac-auth-panel,
.ac-auth:has(.fl-auth.is-kb) .ac-auth-panel {
  margin: 0 0 auto;
}

.ac-auth.is-kb .fl-btn,
.ac-auth:has(.fl-auth.is-kb) .fl-btn {
  scroll-margin-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.ac-hub-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 8px 0 12px;
  padding: 0 28px;
}

.ac-hub-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #161412;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 52%, var(--gold-3));
  box-shadow:
    0 12px 28px rgba(122, 90, 24, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.ac-hub-mark svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.ac-hub-title {
  margin: 0;
  padding: 0 8px;
  font-family: var(--font-display);
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--text);
}

.ac-hub-sub {
  margin: 0 4px 18px;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.ac-hub-max {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px 10px 10px;
  border: 1px solid rgba(201, 162, 74, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  color: var(--text);
}

.ac-hub-max:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(201, 162, 74, 0.42);
}

.ac-hub-max-icon {
  flex: none;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 12px;
  background: #3b82f6;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.ac-hub-max-icon img {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.ac-hub-max-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ac-hub-max-name {
  font-size: 15px;
  font-weight: 700;
}

.ac-hub-max-note {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ac-hub-max-arrow {
  flex: none;
  display: grid;
  color: rgba(243, 241, 234, 0.38);
}

.ac-hub-max-arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

.ac-hub-legal {
  margin: 18px 4px 0;
  padding-top: 14px;
  border-top: 1px solid rgba(201, 162, 74, 0.12);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
  color: rgba(155, 150, 140, 0.85);
}

.ac-hub-legal a {
  color: var(--gold-2);
  font-weight: 600;
  white-space: normal;
}

.ac-auth .fl-auth {
  --fl-card: transparent;
  --fl-line: rgba(201, 162, 74, 0.28);
  --fl-text: #f3f1ea;
  --fl-muted: #9b968c;
  --fl-err: #f0a8a8;
  --fl-btn: #c9a24a;
  --fl-btn-text: #161412;
  --fl-input: rgba(10, 10, 12, 0.72);
  --fl-radius: 16px;
  --fl-font: var(--font-sans);
  max-width: none;
}

.ac-auth .fl-card {
  padding: 10px 4px 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ac-auth .fl-hero {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 100%;
}

.ac-auth .fl-pf,
.ac-auth .fl-box,
.ac-auth .fl-input {
  border-color: rgba(201, 162, 74, 0.28);
  background: rgba(10, 10, 12, 0.72);
}

.ac-auth .fl-pf:focus-within,
.ac-auth .fl-box:focus,
.ac-auth .fl-input:focus {
  border-color: rgba(244, 224, 168, 0.7);
  box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.18);
}

.ac-auth .fl-btn {
  height: 50px;
  margin-top: 14px;
  border-radius: 14px;
  background-image: linear-gradient(180deg, var(--gold-1), var(--gold-2) 52%, var(--gold-3));
  color: var(--ink);
  box-shadow:
    0 10px 22px rgba(122, 90, 24, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.ac-auth .fl-btn:disabled:not(.is-wait) {
  opacity: 1;
  background-image: none;
  background: rgba(201, 162, 74, 0.28);
  color: rgba(22, 20, 18, 0.55);
  box-shadow: none;
}

.ac-auth .fl-back,
.ac-auth .fl-resend {
  color: #d8d2c4;
}

.ac-auth .fl-done {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

@media (min-width: 420px) {
  .ac-corner {
    font-size: 8px;
    letter-spacing: 0.16em;
  }
}

@media (min-width: 520px) {
  .ac-home .ac-wrap {
    padding-top: calc(28px + env(safe-area-inset-top, 0px));
  }

  .ac-corner--tl,
  .ac-corner--tr {
    top: calc(30px + env(safe-area-inset-top, 0px));
  }

  .ac-corner--tl,
  .ac-corner--bl {
    left: 30px;
  }

  .ac-corner--tr,
  .ac-corner--br {
    right: 30px;
  }

  .ac-corner--bl,
  .ac-corner--br {
    bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  }

  .ac-corner {
    font-size: 9px;
  }

  .ac-hair {
    width: 32px;
  }

  .ac-emblem {
    width: 56px;
    height: 52px;
  }

  .ac-logo-name {
    font-size: 28px;
    letter-spacing: 0.24em;
  }

  .ac-title-art {
    width: 72%;
    max-width: 328px;
  }

  .ac-hero {
    margin-top: 26px;
    font-size: 35px;
  }

  .ac-lead {
    margin-top: 18px;
    max-width: 300px;
    font-size: 14px;
  }

  .ac-rewards {
    gap: 16px;
    margin-top: 12px;
  }

  .ac-cta {
    min-height: 62px;
    max-width: 386px;
    font-size: 17px;
  }

  .ac-anketa-bg img {
    object-position: center 22%;
  }

  .ac-q-title {
    font-size: 26px;
  }
}

@media (min-width: 1024px) {
  .ac-home-stage {
    max-width: none;
  }

  .ac-anketa-bg img {
    object-position: center;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .ac-home-stage {
    max-width: none;
  }
}
