/* ============== Thank You page (standalone) ============== */
/* Fallbacks in case global CSS doesn't define theme tokens */
:root{
  --bg: #0f1115;
  --bg-elev: #11141a;
  --text: #e9edf6;
  --muted: #aeb6c2;
  --line: #2a2d33;
  --accent: #d3a55c;
  --accent-2: #b37a2e;
  --radius: 16px;
}

/* Section wrapper fills the viewport and centers content */
.thankyou-section{
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 32px);
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 85% -20%, rgba(211,165,92,.14), transparent 55%),
    radial-gradient(900px 650px at -10% 100%, rgba(179,122,46,.09), transparent 60%),
    linear-gradient(180deg, rgba(17,20,26,.6), rgba(17,20,26,.95)),
    var(--bg);
  overflow-x: hidden; /* страховка от горизонтального скролла */
}

/* Card container */
.thankyou-container{
  width: min(780px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: clamp(20px, 5vw, 36px);
  display: grid;
  gap: clamp(12px, 2.4vw, 18px);
  box-shadow: 0 24px 48px rgba(0,0,0,.35);
  animation: rise .6s ease both;
}

/* Typography */
.thankyou-title{
  margin: 0;
  line-height: 1.15;
  font-weight: 800;
  font-size: clamp(22px, 4.2vw, 34px);
  color: #fff;
  letter-spacing: .2px;
}

.thankyou-message{
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 2.4vw, 18px);
}

/* Call-to-action button */
.cta-button{
  justify-self: start;
  display: inline-block;
  padding: .75rem 1.15rem;
  font-weight: 700;
  border-radius: 999px;
  color: #0f1115;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, #000);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.cta-button:hover{ transform: translateY(-1px); filter: saturate(1.05); }
.cta-button:active{ transform: translateY(0); }
.cta-button:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent);
}

/* Small screens: tighten spacing */
@media (max-width: 420px){
  .thankyou-container{ padding: 18px; border-radius: 14px; }
  .cta-button{ width: 100%; text-align: center; }
}

/* Motion safety */
@media (prefers-reduced-motion: reduce){
  .thankyou-container{ animation: none; }
  .cta-button{ transition: none; }
}

/* Print: white bg, remove shadows */
@media print{
  .thankyou-section{
    background: #fff;
  }
  .thankyou-container{
    box-shadow: none;
    border-color: #ccc;
    color: #111;
  }
  .thankyou-title{ color: #000; }
  .cta-button{ border: 1px solid #000; background: #fff; color: #000; }
}

/* Subtle entrance */
@keyframes rise{
  from{ opacity: 0; transform: translateY(8px); }
  to  { opacity: 1; transform: translateY(0); }
}
