:root {
  color-scheme: dark;
  --bg: #0b0a08;
  --surface: #15120e;
  --surface-2: #201a12;
  --text: #f7efe2;
  --muted: #afa493;
  --line: rgba(248, 242, 231, 0.14);
  --gold: #c99a3e;
  --gold-2: #ebca78;
  --danger: #ff3b30;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --page-max: 1240px;
  --page-pad: clamp(1rem, 4vw, 3.5rem);
}

* {
  box-sizing: border-box;
}

img,
svg {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -18%, rgba(201, 154, 62, 0.12), transparent 30rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: "Noto Sans Armenian", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(13rem, auto) minmax(14rem, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem clamp(1rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.psych-row,
.modal-actions,
.preview-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 800;
  min-width: 0;
}

.brand strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.brand-mark {
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  place-items: center;
  border: 1px solid rgba(215, 173, 84, 0.6);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
  color: #1d1306;
  font-family: Georgia, "Noto Serif Armenian", serif;
  font-size: 1.05rem;
}

.nav {
  justify-content: end;
  gap: clamp(0.7rem, 2vw, 1.6rem);
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-promise {
  max-width: 46rem;
  margin: 0 auto;
  color: color-mix(in srgb, var(--text) 86%, var(--muted));
  font-size: clamp(0.8rem, 1.02vw, 0.94rem);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.guide-link {
  display: inline-flex;
  max-width: 100%;
  min-height: 2.2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(235, 202, 120, 0.34);
  border-radius: var(--radius);
  padding: 0.48rem 0.72rem;
  background:
    linear-gradient(135deg, rgba(235, 202, 120, 0.15), rgba(255, 255, 255, 0.025)),
    var(--surface);
  color: var(--gold-2);
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.guide-link:hover {
  transform: translateY(-1px);
  border-color: rgba(235, 202, 120, 0.62);
  color: var(--text);
}

.nav a:hover {
  color: var(--text);
}

main {
  overflow: hidden;
}

.hero,
.wall-section,
.site-footer {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-inline: var(--page-pad);
}

.hero {
  display: grid;
  gap: 1rem;
  padding-top: clamp(1.5rem, 3.5vw, 3rem);
  padding-bottom: clamp(1rem, 2.4vw, 1.8rem);
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--gold-2);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif Armenian", serif;
  line-height: 1.03;
}

h1 {
  max-width: 16ch;
  margin-inline: auto;
  font-size: clamp(2.05rem, 4vw, 3.55rem);
}

h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.35rem);
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.hero-text {
  max-width: 42rem;
  margin: 0.8rem auto 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  line-height: 1.65;
}

.psych-row {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.psych-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.34rem 0.55rem;
  background: rgba(255, 255, 255, 0.025);
}

.primary-action,
.secondary-action {
  min-height: 2.45rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.58rem 0.9rem;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-action {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #1e1406;
  box-shadow: 0 10px 28px rgba(201, 154, 62, 0.14);
}

.secondary-action {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.compact {
  min-height: 2.25rem;
  padding: 0.45rem 0.72rem;
  white-space: nowrap;
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
  border-color: rgba(235, 202, 120, 0.55);
}

.status-strip {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: clamp(0.2rem, 0.8vw, 0.45rem);
  width: 100%;
  overflow-x: auto;
  margin: 0;
  padding: 0.32rem clamp(1rem, 4vw, 3rem);
  background:
    linear-gradient(90deg, transparent 0%, rgba(235, 202, 120, 0.1) 48%, transparent 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.005)),
    color-mix(in srgb, var(--bg) 90%, transparent);
  border-bottom: 1px solid rgba(235, 202, 120, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 12px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
  scrollbar-width: thin;
}

.selection-readout span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
}

.status-strip div {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.46rem;
  min-height: 1.92rem;
  padding: 0.18rem clamp(0.72rem, 1.7vw, 1.18rem);
  white-space: nowrap;
}

.status-strip div + div::before {
  position: absolute;
  left: calc(clamp(0.2rem, 0.8vw, 0.45rem) * -0.5);
  top: 0.28rem;
  bottom: 0.28rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(235, 202, 120, 0.28), transparent);
  content: "";
}

.status-strip strong {
  display: inline;
  padding: 0.12rem 0.42rem;
  border: 1px solid rgba(235, 202, 120, 0.22);
  border-radius: 999px;
  background: rgba(235, 202, 120, 0.08);
  color: color-mix(in srgb, var(--gold-2) 82%, var(--text));
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.status-strip span,
.selection-readout span {
  color: var(--muted);
  font-size: 0.78rem;
}

.status-strip span {
  color: color-mix(in srgb, var(--muted) 88%, var(--text));
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.wall-section {
  position: relative;
  display: grid;
  max-width: none;
  place-items: center;
  padding: clamp(0.45rem, 1.25vw, 0.95rem);
  background:
    linear-gradient(90deg, rgba(235, 202, 120, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(235, 202, 120, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 0, rgba(235, 202, 120, 0.12), transparent 28rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  background-size: 56px 56px, 56px 56px, auto, auto;
  border-bottom: 1px solid var(--line);
}

.wall-status-guide {
  display: grid;
  gap: 0.85rem;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 1rem var(--page-pad) 1.25rem;
  border-bottom: 1px solid rgba(235, 202, 120, 0.13);
}

.wall-status-guide-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.wall-status-guide-head strong {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 900;
}

.wall-status-guide-head span {
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: right;
}

.wall-status-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.wall-status-item {
  display: grid;
  grid-template-columns: 0.8rem minmax(0, 1fr);
  gap: 0.58rem;
  align-items: start;
  min-width: 0;
  padding: 0.72rem 0.78rem;
  border: 1px solid rgba(248, 242, 231, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.wall-status-item > span {
  width: 0.8rem;
  height: 0.8rem;
  margin-top: 0.18rem;
  border: 1px solid var(--status-border);
  border-radius: 50%;
  background: var(--status-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--status-color) 18%, transparent);
}

.wall-status-item strong {
  display: block;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.2;
}

.wall-status-item p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.42;
}

.wall-status-item.is-held {
  --status-color: rgba(105, 115, 128, 0.86);
  --status-border: rgba(156, 166, 180, 0.94);
}

.wall-status-item.is-moderating {
  --status-color: rgba(73, 135, 206, 0.86);
  --status-border: rgba(117, 171, 228, 0.94);
}

.wall-status-item.is-payment {
  --status-color: rgba(238, 177, 64, 0.88);
  --status-border: rgba(249, 210, 122, 0.94);
}

.wall-status-item.is-review {
  --status-color: rgba(26, 148, 122, 0.88);
  --status-border: rgba(102, 205, 181, 0.94);
}

.charity-section {
  display: grid;
  gap: clamp(0.85rem, 1.8vw, 1.15rem);
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(1.8rem, 4.4vw, 3.2rem) var(--page-pad);
  border-bottom: 1px solid rgba(235, 202, 120, 0.16);
  background:
    radial-gradient(circle at 50% 0, rgba(235, 202, 120, 0.1), transparent 16rem),
    linear-gradient(135deg, rgba(235, 202, 120, 0.055), rgba(255, 255, 255, 0.018) 54%, rgba(201, 154, 62, 0.035));
}

.charity-intro {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.charity-kicker {
  width: fit-content;
  margin: 0 0 0.55rem;
  border: 1px solid rgba(235, 202, 120, 0.28);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  background: rgba(0, 0, 0, 0.12);
  color: var(--gold-2);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.charity-intro h2 {
  max-width: 22ch;
  font-size: clamp(1.55rem, 2.9vw, 2.35rem);
}

.charity-intro p:not(.charity-kicker) {
  max-width: 38rem;
  margin: 0.62rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.52;
}

.charity-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.charity-card,
.charity-links {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
    color-mix(in srgb, var(--surface-2) 84%, transparent);
}

.charity-card {
  display: flex;
  min-width: 0;
  min-height: 8.35rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.82rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

.charity-card.primary {
  border-color: rgba(235, 202, 120, 0.34);
  background:
    radial-gradient(circle at 82% 16%, rgba(235, 202, 120, 0.18), transparent 7rem),
    linear-gradient(145deg, rgba(235, 202, 120, 0.18), rgba(255, 255, 255, 0.04)),
    var(--surface-2);
}

.charity-card > span,
.charity-links > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.charity-card strong {
  display: block;
  margin: 0.3rem 0;
  color: var(--gold-2);
  font-family: Georgia, "Noto Serif Armenian", serif;
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.charity-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.charity-card.spent strong {
  color: var(--text);
}

.charity-links {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) repeat(3, minmax(7rem, auto));
  align-items: center;
  gap: 0.55rem;
  overflow: hidden;
  padding: 0.7rem;
  border-color: rgba(235, 202, 120, 0.22);
  background:
    linear-gradient(90deg, rgba(235, 202, 120, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 14px 34px rgba(0, 0, 0, 0.12);
}

.charity-links > span {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.18rem;
  color: var(--gold-2);
}

.charity-links > span::before {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 0 0 4px rgba(235, 202, 120, 0.1);
  content: "";
}

.charity-links a {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(235, 202, 120, 0.2);
  border-radius: calc(var(--radius) - 2px);
  padding: 0.45rem 0.68rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(0, 0, 0, 0.08);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.charity-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(235, 202, 120, 0.55);
  background:
    linear-gradient(180deg, rgba(235, 202, 120, 0.12), rgba(255, 255, 255, 0.018)),
    rgba(0, 0, 0, 0.1);
  color: var(--gold-2);
}

.selection-readout {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.selection-readout span {
  padding: 0.55rem 0.68rem;
  font-weight: 800;
}

.selection-readout strong {
  color: var(--text);
}

.wall-frame {
  position: relative;
  overflow: hidden;
  width: min(calc(100vw - 1rem), 1240px);
  min-width: 0;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  background: #ffffff;
  border: 1px solid rgba(235, 202, 120, 0.72);
  border-radius: 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 5px rgba(21, 18, 14, 0.92),
    0 18px 42px rgba(0, 0, 0, 0.38);
}

.wall-frame::before,
.wall-frame::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
}

.wall-frame::before {
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.58),
    inset 0 0 18px rgba(0, 0, 0, 0.05);
}

.wall-frame::after {
  background:
    linear-gradient(90deg, rgba(201, 154, 62, 0.16), transparent 7%, transparent 93%, rgba(201, 154, 62, 0.16)),
    linear-gradient(180deg, rgba(201, 154, 62, 0.14), transparent 7%, transparent 93%, rgba(201, 154, 62, 0.14));
  mix-blend-mode: multiply;
  opacity: 0.18;
}

#pixelCanvas {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  image-rendering: pixelated;
  cursor: crosshair;
  touch-action: none;
}

.site-footer {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(20rem, 1.65fr) minmax(12rem, 0.82fr) minmax(12rem, 0.82fr);
  align-items: start;
  gap: clamp(1.4rem, 4vw, 3rem);
  margin: clamp(1.6rem, 4vw, 3rem) 0 0;
  padding: clamp(2rem, 4vw, 3.2rem) clamp(1.25rem, 5.4vw, 4.2rem) 1.85rem;
  border-top: 1px solid var(--line);
  background: #0d0b08;
  color: var(--muted);
}

.site-footer > * {
  min-width: 0;
}

.footer-brand-block,
.footer-link-group {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.footer-brand-block {
  gap: 1rem;
}

.footer-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.7rem;
}

.footer-brand strong {
  color: var(--text);
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.25;
}

.footer-brand-block p {
  max-width: 31rem;
  margin: 0;
  color: color-mix(in srgb, var(--muted) 86%, var(--gold-2));
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-link-group a {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 800;
  font-size: 0.9rem;
}

.footer-link-group {
  gap: 0.8rem;
  border-left: 1px solid var(--line);
  min-height: 10.25rem;
  padding-left: clamp(1.4rem, 2.8vw, 2rem);
}

.footer-link-group h2 {
  margin: 0;
  color: var(--gold-2);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-link-group a {
  width: fit-content;
  padding: 0;
  color: var(--muted);
}

.footer-socials a {
  gap: 0.72rem;
}

.footer-socials span {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border: 1px solid rgba(248, 242, 231, 0.18);
  border-radius: var(--radius);
  color: var(--gold-2);
}

.footer-socials svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.footer-link-group a::after {
  content: none;
}

.footer-link-group a:hover {
  color: var(--gold-2);
  background: transparent;
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 1.05rem;
  color: color-mix(in srgb, var(--muted) 84%, var(--gold-2));
  font-size: 0.78rem;
  text-align: center;
}

.footer-legal-requisites {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.footer-legal-requisites h2 {
  margin: 0 0 0.75rem;
  color: var(--gold-2);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-legal-requisites dl,
.legal-summary dl {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.footer-legal-requisites dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer-legal-requisites div,
.legal-summary div {
  min-width: 0;
}

.footer-legal-requisites dt,
.legal-summary dt {
  color: var(--gold-2);
  font-size: 0.72rem;
  font-weight: 900;
}

.footer-legal-requisites dd,
.legal-summary dd {
  margin: 0.14rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.legal-page {
  background: #0d0b08;
}

.legal-document {
  width: min(100% - 2rem, 780px);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.legal-document .footer-brand {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.legal-document h1 {
  margin: 0 0 1.25rem;
  font-family: Georgia, "Noto Serif Armenian", serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.legal-document h2 {
  margin: 1.7rem 0 0.55rem;
  color: var(--gold-2);
  font-size: 0.9rem;
  font-weight: 900;
}

.legal-document p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.75;
}

.legal-document a {
  color: var(--gold-2);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.legal-document .brand {
  color: inherit;
  text-decoration: none;
}

.legal-summary {
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--surface);
}

.legal-summary h2 {
  margin-top: 0;
}

.legal-summary dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-updated {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.legal-contact {
  margin-top: 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(235, 202, 120, 0.12), rgba(255, 255, 255, 0.025)),
    var(--surface);
}

.legal-contact h2 {
  margin-top: 0;
}

.legal-contact p:last-child {
  margin-bottom: 0;
}

.guide-document {
  width: min(100% - 2rem, 920px);
}

.guide-document h1 {
  max-width: 12ch;
  margin-inline: 0;
}

.guide-intro {
  max-width: 44rem;
  font-size: 1rem;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.4rem 0;
}

.guide-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  border: 1px solid rgba(235, 202, 120, 0.2);
  border-radius: var(--radius);
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(235, 202, 120, 0.1), rgba(255, 255, 255, 0.025) 58%),
    var(--surface);
}

.guide-step > * {
  min-width: 0;
}

.guide-step-number {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(235, 202, 120, 0.46);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
  color: #1d1306;
  font-weight: 950;
}

.guide-step h2,
.guide-note h2 {
  margin-top: 0;
}

.guide-step p,
.guide-note p {
  margin-bottom: 0;
}

.guide-note {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.guide-return {
  display: inline-flex;
  min-height: 2.45rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.2rem;
  gap: 0.42rem;
  border: 1px solid rgba(235, 202, 120, 0.28);
  border-radius: var(--radius);
  padding: 0.58rem 0.78rem;
  background: rgba(255, 255, 255, 0.035);
  color: var(--gold-2);
  font-weight: 900;
  text-decoration: none;
  text-underline-offset: 0;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.guide-return::before {
  content: "<";
  color: currentColor;
  font-size: 1rem;
  line-height: 1;
}

.guide-return:hover {
  transform: translateY(-1px);
  border-color: rgba(235, 202, 120, 0.58);
  background: rgba(235, 202, 120, 0.08);
  color: var(--text);
}

.ad-tip {
  position: fixed;
  z-index: 30;
  max-width: min(340px, calc(100vw - 20px));
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(235, 202, 120, 0.55);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  pointer-events: none;
}

.ad-tip[hidden] {
  display: none;
}

.ad-details-modal,
.purchase-modal {
  width: min(54rem, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.5rem);
  max-height: min(90vh, 52rem);
  border: 1px solid rgba(235, 202, 120, 0.36);
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 0, rgba(235, 202, 120, 0.13), transparent 15rem),
    radial-gradient(circle at 95% 12%, rgba(255, 255, 255, 0.045), transparent 13rem),
    var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ad-details-modal {
  width: min(32rem, calc(100vw - 1.25rem));
  background:
    radial-gradient(circle at 50% -16%, rgba(235, 202, 120, 0.18), transparent 14rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012) 32%),
    #17120d;
  border-color: rgba(235, 202, 120, 0.34);
  box-shadow: 0 32px 82px rgba(0, 0, 0, 0.56);
}

.ad-details-modal[open] {
  animation: modalIn 180ms ease-out;
}

.ad-details-modal::backdrop,
.purchase-modal::backdrop {
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(12px) saturate(0.85);
}

.ad-details-shell {
  position: relative;
  display: grid;
  align-items: center;
  padding: clamp(1rem, 2.4vw, 1.25rem);
}

.ad-details-shell::before {
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%);
  pointer-events: none;
  content: "";
}

.ad-details-shell::after {
  content: none;
}

.ad-details-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0 auto;
}

.ad-details-media {
  position: relative;
  display: grid;
  z-index: 1;
  width: min(13.5rem, 58vw);
  max-height: min(14rem, 42vh);
  aspect-ratio: var(--ad-aspect, 1);
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: calc(var(--radius) - 1px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    #ffffff;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.34),
    0 0 0 7px rgba(255, 255, 255, 0.035);
}

.ad-details-media::after {
  content: none;
}

.ad-details-media img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  image-rendering: auto;
}

.ad-details-content {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  gap: clamp(0.78rem, 2vw, 1rem);
  justify-items: center;
  padding: clamp(0.45rem, 1.4vw, 0.65rem) clamp(0.55rem, 3vw, 1.25rem) clamp(0.35rem, 1.2vw, 0.55rem);
  text-align: center;
}

.ad-details-content :is(h2, h3) {
  width: min(100%, 20rem);
  max-width: none;
  margin: 0.2rem auto 0;
  color: #fff6e7;
  font-size: clamp(1.9rem, 5.4vw, 2.7rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(201, 154, 62, 0.45), 0 14px 44px rgba(0, 0, 0, 0.42);
}

.ad-details-message {
  max-width: 29rem;
  margin: -0.15rem auto 0;
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
  font-size: clamp(0.94rem, 1.5vw, 1.02rem);
  line-height: 1.58;
}

.ad-details-message:empty {
  display: none;
}

.ad-details-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.1rem;
}

.ad-details-links:empty {
  display: none;
}

.ad-details-links a {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(235, 202, 120, 0.32);
  border-radius: calc(var(--radius) - 1px);
  padding: 0.46rem 0.9rem;
  background:
    linear-gradient(135deg, rgba(235, 202, 120, 0.2), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.24);
  color: #fff5df;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.ad-details-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(235, 202, 120, 0.58);
  background:
    linear-gradient(135deg, rgba(235, 202, 120, 0.3), rgba(255, 255, 255, 0.05)),
    rgba(0, 0, 0, 0.22);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-shell {
  position: relative;
  display: grid;
  gap: 0.78rem;
  max-height: min(90vh, 52rem);
  overflow: auto;
  padding: clamp(1rem, 2vw, 1.35rem);
  scrollbar-gutter: stable;
}

.modal-shell.is-processing > :not(.processing-overlay) {
  filter: blur(1px);
  opacity: 0.38;
  pointer-events: none;
}

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.close-button::before,
.close-button::after {
  content: "";
  position: absolute;
  width: 0.82rem;
  height: 2px;
  border-radius: 999px;
  background: var(--muted);
}

.close-button::before {
  transform: rotate(45deg);
}

.close-button::after {
  transform: rotate(-45deg);
}

.ad-details-close {
  top: clamp(1rem, 2vw, 1.25rem);
  right: clamp(1rem, 2vw, 1.25rem);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.ad-details-close:hover {
  border-color: rgba(235, 202, 120, 0.46);
  background: rgba(235, 202, 120, 0.12);
}

.modal-header {
  display: grid;
  gap: 0.34rem;
  padding-right: 3rem;
}

.modal-header h2 {
  max-width: 17ch;
  font-size: clamp(1.6rem, 2.7vw, 2.15rem);
  line-height: 1.06;
}

.modal-header p {
  margin: 0;
  max-width: 58rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.modal-header strong {
  color: var(--gold-2);
}

.offer-card,
.preview-panel {
  border: 1px solid rgba(235, 202, 120, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(235, 202, 120, 0.16), rgba(255, 255, 255, 0.035) 58%, rgba(235, 202, 120, 0.08)),
    var(--surface-2);
}

.offer-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(12rem, 0.72fr);
  gap: clamp(0.75rem, 1.5vw, 1rem);
  align-items: stretch;
  padding: clamp(0.85rem, 1.7vw, 1.05rem);
}

.offer-card > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 0.75rem;
  border: 1px solid rgba(235, 202, 120, 0.13);
  border-radius: calc(var(--radius) - 1px);
  background: rgba(6, 5, 4, 0.24);
}

.offer-card span {
  color: var(--gold-2);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.offer-card strong {
  display: block;
  margin-top: 0.35rem;
  font-family: Georgia, "Noto Serif Armenian", serif;
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
  line-height: 1.05;
}

.offer-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.72rem;
  align-items: stretch;
}

.field {
  display: flex;
  grid-column: span 6;
  min-width: 0;
  flex-direction: column;
  gap: 0.42rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.form-grid > .field:has(#brandInput),
.form-grid > .field:has(#messageInput),
.form-grid > .link-builder.wide,
.form-grid > .file-field.wide {
  grid-column: 1 / -1;
  grid-row: auto;
}

.wide {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  outline: none;
  padding: 0.68rem 0.75rem;
}

.field textarea {
  min-height: 6.25rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
}

.field select {
  appearance: none;
  border-color: var(--gold);
  background-color: var(--surface);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold-2) 50%),
    linear-gradient(135deg, var(--gold-2) 50%, transparent 50%);
  background-position:
    calc(100% - 1.1rem) 50%,
    calc(100% - 0.78rem) 50%;
  background-repeat: no-repeat;
  background-size: 0.34rem 0.34rem, 0.34rem 0.34rem;
  color: var(--text);
  cursor: pointer;
  padding-right: 2rem;
}

.field select option {
  background: var(--surface);
  color: var(--text);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea,
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea,
.policy-box.has-error,
.policy-box.is-invalid input,
.public-link-row.has-error input,
.public-link-row.has-error select,
.public-link-row.is-invalid input,
.public-link-row.is-invalid select {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.12);
}

.field-error {
  margin: 0.36rem 0 0;
  color: var(--danger);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
}

.field small {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.link-builder {
  gap: 0.82rem;
  justify-content: flex-start;
  padding: 0.82rem;
  border: 1px solid rgba(235, 202, 120, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    color-mix(in srgb, var(--surface-2) 72%, var(--surface));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.link-builder-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
}

.link-builder-head > div {
  min-width: 0;
}

.link-builder-head span {
  display: block;
  margin-bottom: 0.22rem;
  color: var(--gold-2);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.link-builder-head small {
  display: block;
  max-width: 29rem;
  color: color-mix(in srgb, var(--muted) 86%, var(--text));
  font-size: 0.74rem;
  line-height: 1.35;
}

.compact-action {
  min-height: 2.15rem;
  border-color: rgba(235, 202, 120, 0.22);
  background: rgba(255, 255, 255, 0.035);
  padding: 0.4rem 0.66rem;
  color: var(--text);
  font-size: 0.78rem;
  white-space: nowrap;
}

.public-link-list {
  display: grid;
  gap: 0.48rem;
}

.public-link-row {
  display: grid;
  grid-template-columns: minmax(7.2rem, 9.5rem) minmax(0, 1fr) 2.25rem;
  gap: 0.42rem;
  align-items: start;
  padding: 0.42rem;
  border: 1px solid rgba(248, 242, 231, 0.09);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.16);
}

.public-link-row > * {
  min-width: 0;
}

.public-link-row .field-error {
  grid-column: 1 / -1;
}

.remove-link {
  display: grid;
  width: 2.25rem;
  min-height: 2.55rem;
  place-items: center;
  padding: 0;
  border-color: rgba(248, 242, 231, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: color-mix(in srgb, var(--muted) 70%, var(--text));
}

.remove-link::before {
  content: "x";
  font-size: 0.9rem;
  line-height: 1;
}

.public-link-row input,
.public-link-row select {
  min-height: 2.55rem;
  border-color: rgba(235, 202, 120, 0.24);
  background-color: rgba(21, 18, 14, 0.82);
  padding-block: 0.56rem;
}

.public-link-row select {
  border-color: rgba(235, 202, 120, 0.56);
  font-weight: 900;
}

.file-field input[type="file"] {
  min-height: auto;
  padding: 0.65rem;
  cursor: pointer;
}

.file-field {
  padding: 0.75rem;
  border: 1px dashed rgba(235, 202, 120, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.file-field input[type="file"]::file-selector-button {
  margin-right: 0.8rem;
  border: 1px solid rgba(235, 202, 120, 0.32);
  border-radius: calc(var(--radius) - 2px);
  background: linear-gradient(135deg, rgba(235, 202, 120, 0.18), rgba(201, 154, 62, 0.08));
  color: var(--text);
  padding: 0.48rem 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.preview-panel {
  display: grid;
  gap: 0.85rem;
  padding: 0.9rem;
}

.preview-panel[hidden] {
  display: none;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.preview-card {
  overflow: hidden;
  border: 1px solid rgba(235, 202, 120, 0.3);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% -16%, rgba(235, 202, 120, 0.15), transparent 14rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012) 32%),
    #17120d;
  padding: clamp(0.9rem, 2.4vw, 1.15rem);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.preview-image {
  width: min(13.5rem, 52vw);
  max-height: 13rem;
  aspect-ratio: var(--ad-aspect, 1);
  color: #1d1306;
  font-family: Georgia, "Noto Serif Armenian", serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 900;
}

.preview-image img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.preview-card p {
  margin: -0.15rem auto 0;
}

.preview-links {
  margin-top: 0.1rem;
}

.preview-links a {
  color: #fff5df;
}

.preview-content :is(h2, h3) {
  font-size: clamp(1.75rem, 4.4vw, 2.55rem);
}

.policy-box {
  position: relative;
  overflow: hidden;
  padding: 0.92rem 1rem;
  border: 1px solid rgba(235, 202, 120, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(235, 202, 120, 0.1), rgba(255, 255, 255, 0.03) 52%, rgba(201, 154, 62, 0.04)),
    var(--surface-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.policy-box::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.22rem;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  opacity: 0.78;
}

.policy-box.has-error,
.policy-box.is-invalid {
  border-color: rgba(255, 59, 48, 0.62);
  background:
    linear-gradient(135deg, rgba(255, 59, 48, 0.11), rgba(255, 255, 255, 0.025) 58%, rgba(235, 202, 120, 0.04)),
    var(--surface-2);
}

.policy-box.has-error::before,
.policy-box.is-invalid::before {
  background: var(--danger);
}

.check-row {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 0.72rem;
  align-items: start;
  color: color-mix(in srgb, var(--text) 84%, var(--muted));
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: left;
}

.check-row span {
  max-width: none;
  padding-top: 0.02rem;
}

.check-row input {
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  appearance: none;
  border: 1px solid rgba(235, 202, 120, 0.42);
  border-radius: 0.22rem;
  background: rgba(6, 5, 4, 0.34);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.check-row input:checked {
  border-color: var(--gold-2);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.check-row input:checked::after {
  content: "";
  position: absolute;
  left: 0.34rem;
  top: 0.16rem;
  width: 0.32rem;
  height: 0.58rem;
  border: solid #1e1406;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check-row input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(235, 202, 120, 0.18);
}

.check-row a {
  color: var(--gold-2);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(235, 202, 120, 0.36);
  text-underline-offset: 0.16em;
}

.form-message {
  display: none;
  margin: 0.72rem 0 0;
  border: 1px solid rgba(255, 59, 48, 0.26);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 59, 48, 0.08);
  color: var(--danger);
  padding: 0.48rem 0.62rem;
  font-weight: 800;
  font-size: 0.84rem;
  line-height: 1.35;
}

.form-message:not(:empty) {
  display: block;
}

.payment-message {
  display: none;
  margin: -0.2rem 0 0.1rem;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(94, 178, 128, 0.44);
  border-radius: calc(var(--radius) - 2px);
  background:
    linear-gradient(135deg, rgba(94, 178, 128, 0.16), rgba(235, 202, 120, 0.08)),
    rgba(255, 255, 255, 0.035);
  color: #bce8c8;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.4;
}

.payment-message:not(:empty) {
  display: block;
}

.payment-message.is-error {
  border-color: rgba(255, 59, 48, 0.34);
  background: rgba(255, 59, 48, 0.08);
  color: var(--danger);
}

.payment-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(235, 202, 120, 0.58);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 238, 150, 0.22), rgba(255, 255, 255, 0.04) 58%, rgba(235, 202, 120, 0.1)),
    var(--surface-2);
}

.payment-panel[hidden] {
  display: none;
}

.payment-head {
  display: grid;
  gap: 0.22rem;
}

.payment-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
}

.payment-details {
  display: grid;
  grid-template-columns: minmax(20rem, 1.65fr) minmax(9.5rem, 0.75fr);
  gap: 0.85rem;
  margin: 0;
}

.payment-detail-card {
  position: relative;
  min-width: 0;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(235, 202, 120, 0.34);
  border-radius: calc(var(--radius) - 2px);
  background:
    linear-gradient(135deg, rgba(235, 202, 120, 0.12), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.payment-details dt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.payment-details dd {
  margin: 0.38rem 0 0;
  color: var(--gold-2);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  font-weight: 950;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.account-card dd {
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.account-card {
  padding-right: 1.15rem;
}

.copy-account-button {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(235, 202, 120, 0.44);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-2);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.copy-account-button:hover {
  border-color: rgba(235, 202, 120, 0.78);
  background: rgba(235, 202, 120, 0.14);
  transform: translateY(-1px);
}

.copy-account-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(235, 202, 120, 0.18);
}

.copy-account-button.is-copied {
  border-color: rgba(94, 178, 128, 0.58);
  background: rgba(94, 178, 128, 0.16);
  color: #bce8c8;
}

.payment-receipt-field {
  margin: 0;
}

.payment-submit-row {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.payment-submit-button {
  width: min(100%, 16rem);
  min-height: 3.15rem;
  padding-inline: 1.15rem;
  white-space: normal;
}

.modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: stretch;
  padding-top: 0.1rem;
}

.modal-actions .primary-action,
.modal-actions .secondary-action {
  width: 100%;
}

.processing-overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 3, 2, 0.72);
  backdrop-filter: blur(3px);
}

.modal-shell.is-processing .processing-overlay {
  display: flex;
}

.processing-panel {
  width: min(24rem, 100%);
  border: 1px solid rgba(235, 202, 120, 0.34);
  border-radius: var(--radius);
  padding: 1.2rem;
  background:
    radial-gradient(circle at 50% 0, rgba(235, 202, 120, 0.16), transparent 9rem),
    var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.processing-panel strong {
  display: block;
  margin-top: 0.75rem;
  font-family: Georgia, "Noto Serif Armenian", serif;
  font-size: 1.35rem;
}

.processing-panel p {
  margin: 0.45rem auto 0;
  color: var(--muted);
}

.processing-spinner {
  display: inline-block;
  width: 2.4rem;
  height: 2.4rem;
  border: 3px solid rgba(235, 202, 120, 0.22);
  border-top-color: var(--gold-2);
  border-radius: 50%;
  animation: spin 850ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav-promise {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 100%;
    width: 100%;
    padding-top: 0.15rem;
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .status-strip {
    justify-content: flex-start;
  }

  .wall-status-guide-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .wall-status-guide-head span {
    text-align: left;
  }

  .wall-status-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }

  .footer-link-group {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 0.9rem;
    padding-left: 0;
  }

  .footer-legal-requisites dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offer-card {
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 0.82fr);
  }

  .charity-dashboard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .charity-links {
    grid-template-columns: 1fr repeat(3, minmax(6.5rem, auto));
  }

}

@media (max-width: 560px) {
  :root {
    --page-pad: clamp(0.85rem, 4.5vw, 1.1rem);
  }

  .topbar {
    align-items: flex-start;
    gap: 0.65rem;
    padding-block: 0.55rem;
  }

  .brand strong {
    max-width: 12rem;
  }

  .nav a {
    display: none;
  }

  .guide-link {
    min-height: 2rem;
    padding-inline: 0.6rem;
    font-size: 0.78rem;
  }

  .status-strip {
    padding-inline: 0.75rem;
  }

  .status-strip div {
    padding-inline: 0.72rem;
  }

  h1 {
    font-size: clamp(2rem, 11vw, 2.55rem);
  }

  .wall-section {
    padding-inline: 0.5rem;
  }

  .wall-status-guide {
    padding-top: 0.8rem;
  }

  .wall-status-list {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .offer-card,
  .modal-actions,
  .payment-details,
  .preview-card,
  .public-link-row,
  .charity-dashboard,
  .guide-steps {
    grid-template-columns: 1fr;
  }

  .account-card dd {
    font-size: clamp(1.05rem, 6.4vw, 1.35rem);
  }

  .payment-submit-button {
    min-height: 3.2rem;
    width: 100%;
  }

  .charity-links {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .charity-links > span,
  .charity-links a {
    justify-content: center;
  }

  .public-link-row .field-error {
    grid-column: 1;
  }

  .field,
  .wide {
    grid-column: 1;
  }

  .form-grid > .field:has(#brandInput),
  .form-grid > .field:has(#messageInput),
  .form-grid > .link-builder.wide,
  .form-grid > .file-field.wide {
    grid-column: 1;
    grid-row: auto;
  }

  .link-builder-head,
  .preview-head {
    align-items: stretch;
    flex-direction: column;
  }

  .purchase-modal {
    width: calc(100vw - 0.75rem);
    max-height: calc(100svh - 1rem);
  }

  .ad-details-modal {
    width: min(32rem, calc(100vw - 0.75rem));
    max-height: calc(100svh - 1rem);
  }

  .ad-details-shell {
    max-height: calc(100svh - 1rem);
    overflow: auto;
    min-height: auto;
    padding: 0.9rem;
  }

  .ad-details-stage {
    width: 100%;
  }

  .ad-details-content {
    gap: 0.82rem;
    padding: 0.35rem 0.25rem 0.45rem;
  }

  .ad-details-content :is(h2, h3) {
    width: min(100%, 20rem);
    margin: 0 auto;
    font-size: clamp(1.85rem, 10vw, 2.75rem);
  }

  .ad-details-message {
    margin-right: auto;
    margin-left: auto;
  }

  .ad-details-links {
    justify-content: center;
  }

  .ad-details-links a {
    flex: 1 1 8rem;
  }

  .footer-link-group a {
    width: 100%;
  }

  .modal-shell {
    max-height: calc(100svh - 1rem);
  }

  .footer-legal-requisites dl,
  .legal-summary dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  body {
    min-width: 280px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-link {
    width: 100%;
  }

  .nav-promise {
    grid-row: auto;
  }

  .brand strong {
    max-width: none;
  }

  .public-link-row {
    grid-template-columns: minmax(0, 1fr) 2.4rem;
  }

  .public-link-row select {
    grid-column: 1 / -1;
  }

  .legal-document,
  .guide-document {
    width: min(100% - 1rem, 920px);
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .processing-spinner {
    animation-duration: 850ms !important;
    animation-iteration-count: infinite !important;
  }
}
