/* ─── THANKS PAGE ──────────────────────────────────────────────── */

html, body {
  background: #fff !important;
  overflow: auto !important;
  height: auto !important;
}

.thanks-main {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 80px;
}

.thanks-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  width: 600px;
  max-width: 100%;
}

.thanks-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.thanks-icon {
  display: block;
  width: 172px;
  height: auto;
}

.thanks-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.thanks-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 98%;
  text-align: center;
  color: #3F4443;
  margin: 0;
}

.thanks-desc {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 120%;
  letter-spacing: -0.02em;
  text-align: center;
  color: #3F4443;
  margin: 0;
}

.thanks-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 28px 64px;
  background: #3F4443;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 120%;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.thanks-btn:hover {
  background: #2a2e2d;
}

/* ─── FOOTER ───────────────────────────────────────────────────── */

.site-footer {
  opacity: 1;
  pointer-events: auto;
  background: transparent;
}

/* ─── ADAPTIVE ─────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .thanks-title { font-size: 52px; }
  .thanks-desc  { font-size: 20px; }
}

@media (max-width: 768px) {
  .thanks-content { gap: 48px; }
  .thanks-title   { font-size: 40px; }
  .thanks-desc    { font-size: 17px; }
  .thanks-icon    { width: 120px; }
  .thanks-btn     { padding: 20px 40px; font-size: 14px; }
}

@media (max-width: 768px) {
  .site-footer { display: block !important; }
}

@media (max-width: 600px) {
  body {
    display: flex;
    flex-direction: column;
    min-height: calc(var(--dvh, 1vh) * 100);
  }

  .thanks-main {
    flex: 1;
    min-height: unset;
    padding: 100px 20px 40px;
  }

  /* Футер у потоці */
  .site-footer {
    position: relative !important;
    opacity: 1;
    pointer-events: auto;
  }

  /* Темний текст поверх глобального #fff */
  .site-footer--sandstone .ftr-copy-brand,
  .site-footer--sandstone .ftr-copy-text,
  .site-footer--sandstone .ftr-link {
    color: rgba(63, 68, 67, 0.6);
  }
  .site-footer--sandstone .ftr-credit-text {
    color: #3F4443;
  }
}

@media (max-width: 480px) {
  .thanks-title { font-size: 32px; }
  .thanks-desc  { font-size: 15px; }
  .thanks-btn   { width: 100%; padding: 18px 24px; }
}
