:root {
  --background: #f8f8f5;
  --surface: #fff;
  --text: #272824;
  --muted: #696a64;
  --line: #dedfd8;
  --accent: #e9783c;
  --font: 'Manrope', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }
body { display: grid; grid-template-rows: auto 1fr auto; min-height: 100dvh; margin: 0; background: var(--background); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
p, h1 { margin: 0; }
::selection { background: var(--accent); color: #fff; }
.thanks-container { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.thanks-header { min-height: 74px; border-bottom: 1px solid var(--line); }
.thanks-header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 74px; }
.thanks-logo { display: block; width: 116px; }
.thanks-logo img { display: block; width: 100%; height: auto; }
.thanks-header p { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .75rem; font-weight: 650; }
.thanks-header p span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.thanks-main { display: grid; align-items: center; padding-block: clamp(54px, 8vw, 96px); }
.thanks-content { position: relative; text-align: center; }
.thanks-mark { position: relative; width: 54px; height: 54px; margin-inline: auto; border: 1px solid #e8b99f; border-radius: 50%; background: #fff5ee; }
.thanks-mark::before, .thanks-mark::after { content: ''; position: absolute; height: 2px; border-radius: 2px; background: var(--accent); transform-origin: left center; }
.thanks-mark::before { top: 29px; left: 16px; width: 11px; transform: rotate(43deg); }
.thanks-mark::after { top: 35px; left: 24px; width: 20px; transform: rotate(-48deg); }
.thanks-kicker { margin-top: 24px; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin-top: 14px; font-size: clamp(4.2rem, 9vw, 7.8rem); font-weight: 750; line-height: .88; letter-spacing: -.075em; }
h1 span { color: var(--accent); }
.thanks-copy { max-width: 510px; margin: 30px auto 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.button-arrow { display: block; width: 17px; height: 17px; flex: 0 0 auto; color: currentColor; }
.thanks-button { position: relative; display: block; width: min(100%, 320px); min-height: 58px; margin: 31px auto 0; padding: 17px 52px 16px 20px; border-radius: 12px; background: var(--accent); color: #fff; text-align: left; font-size: .875rem; font-weight: 750; text-decoration: none; transition: background-color 150ms ease; }
.thanks-button-arrow { position: absolute; top: 50%; right: 20px; transform: translateY(-50%) rotate(180deg); }
.thanks-button:hover { background: #f28b53; }
.thanks-contacts { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 38px; color: var(--muted); font-size: .75rem; }
.thanks-contacts > p { padding-right: 20px; border-right: 1px solid var(--line); }
.thanks-contacts a { color: var(--text); font-weight: 700; text-decoration: none; }
.thanks-contacts a span { margin-left: 6px; color: var(--accent); }
.thanks-contacts a:hover { color: var(--accent); }
.thanks-footer { border-top: 1px solid var(--line); }
.thanks-footer > div { display: flex; justify-content: space-between; align-items: center; min-height: 70px; color: var(--muted); font-size: .6875rem; }
.thanks-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
.thanks-legal a { color: var(--muted); text-decoration: underline; text-decoration-color: #c2bdb4; text-underline-offset: 3px; }
.thanks-legal a:hover { color: var(--text); text-decoration-color: var(--accent); }
.thanks-logo:focus-visible, .thanks-button:focus-visible, .thanks-contacts a:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

@media (max-width: 820px) {
  .thanks-container { width: calc(100% - 64px); }
  h1 { font-size: clamp(4rem, 13vw, 6rem); }
}

@media (max-width: 480px) {
  .thanks-container { width: calc(100% - 40px); }
  .thanks-header, .thanks-header-inner { min-height: 66px; }
  .thanks-logo { width: 96px; }
  .thanks-header p { font-size: .6875rem; }
  .thanks-main { padding-block: 45px; }
  .thanks-mark { width: 48px; height: 48px; }
  .thanks-mark::before { top: 25px; left: 14px; }
  .thanks-mark::after { top: 31px; left: 22px; }
  h1 { font-size: clamp(3.9rem, 20vw, 5rem); }
  .thanks-copy { margin-top: 25px; font-size: .9375rem; }
  .thanks-button { width: 100%; }
  .thanks-contacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px 18px; }
  .thanks-contacts > p { grid-column: 1 / -1; padding: 0 0 13px; border-right: 0; border-bottom: 1px solid var(--line); }
  .thanks-footer > div { flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; min-height: 104px; }
  .thanks-legal { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
