/* ═════════════════════════════════════════════
   pages.css — стили для страниц-утилит:
   thank-you.php, privacy.php
   ═════════════════════════════════════════════ */

/* ════ THANK YOU PAGE ════ */
.thanks-shell {
  background:
    radial-gradient(circle at 0% 0%, rgba(255,153,0,.08), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(0,58,121,.08), transparent 30%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
}
.thanks-hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 34px;
  background: linear-gradient(135deg, #061326 0%, #07316a 58%, #0d4d9a 100%);
}
.thanks-hero::before,
.thanks-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.thanks-hero::before {
  width: 540px;
  height: 540px;
  right: -180px;
  top: -220px;
  background: radial-gradient(circle, rgba(255,153,0,.18) 0%, transparent 70%);
}
.thanks-hero::after {
  width: 420px;
  height: 420px;
  left: -140px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 72%);
}
.thanks-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 360px;
  gap: 24px;
  align-items: center;
}
.thanks-copy {
  color: #fff;
}
.thanks-status {
  margin-bottom: 18px;
}
.thanks-title {
  color: #fff;
  margin-bottom: 16px;
}
.thanks-title em {
  color: var(--gold);
  font-style: normal;
}
.thanks-lead {
  max-width: 760px;
  color: rgba(255,255,255,.82);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
}
.thanks-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 24px;
}
.thanks-step {
  min-height: 180px;
  padding: 22px 20px 18px;
  border-radius: var(--r);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  backdrop-filter: blur(6px);
}
.thanks-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,153,0,.18);
  border: 1px solid rgba(255,153,0,.24);
  color: var(--gold);
  font-size: 20px;
  margin-bottom: 14px;
}
.thanks-step h3 {
  font-size: 18px;
  line-height: 1.28;
  margin-bottom: 8px;
  color: #fff;
}
.thanks-step p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,.68);
}
.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.thanks-note {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255,255,255,.52);
}
.thanks-visual-card {
  position: relative;
  z-index: 1;
  padding: 28px 24px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(245,248,252,.98) 100%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-xl);
  box-shadow: 0 18px 60px rgba(4,16,35,.22);
  text-align: center;
}
.thanks-confetti {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 22px;
  margin-bottom: 14px;
}
.thanks-check {
  width: 116px;
  height: 116px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, #58db89, #25a65a 62%, #1c8d4a 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(38,166,91,.28);
  font-size: 52px;
}
.thanks-visual-card h3 {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--ink);
}
.thanks-visual-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}
.thanks-info {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.thanks-info-card {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r);
  padding: 18px 16px;
  box-shadow: 0 10px 26px rgba(4,16,35,.08);
  text-align: center;
}
.thanks-info-card i {
  font-size: 20px;
  color: var(--blue);
  margin-bottom: 8px;
}
.thanks-info-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  color: var(--ink);
}
.thanks-info-card span {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.thanks-section-compact {
  padding-top: 34px;
  padding-bottom: 24px;
}
.thanks-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  padding: 30px;
}
.thanks-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.thanks-link {
  display: block;
  min-height: 190px;
  padding: 22px 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(10,22,40,.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.thanks-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(10,22,40,.1);
  border-color: rgba(255,153,0,.32);
}
.thanks-link-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue3) 100%);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 12px 24px rgba(0,58,121,.18);
}
.thanks-link h3 {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--ink);
}
.thanks-link p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.thanks-socials {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.thanks-social {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 18px;
  color: #fff !important;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(0,0,0,.14);
  transition: transform .2s ease, box-shadow .2s ease;
}
.thanks-social:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0,0,0,.18);
}
.thanks-social-vk    { background: linear-gradient(90deg, #0077ff, #358fff); }
.thanks-social-rutube{ background: linear-gradient(90deg, #101010, #2d2d2d); }
.thanks-social-max   { background: linear-gradient(90deg, #003a79, #1a6bd4); }
.thanks-social-tg    { background: linear-gradient(90deg, #229ed9, #39b2ea); }
.thanks-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 18px;
}
.thanks-callback {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 30px;
  background: linear-gradient(135deg, #0a1628 0%, #003a79 100%);
  color: #fff;
  box-shadow: var(--sh-lg);
}
.thanks-callback::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.thanks-callback::after {
  content: '';
  position: absolute;
  left: -40px;
  bottom: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,153,0,.14);
}
.thanks-callback > * {
  position: relative;
  z-index: 1;
}
.thanks-callback h2 {
  color: #fff;
  margin-bottom: 12px;
}
.thanks-callback p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: rgba(255,255,255,.82);
}
.thanks-form {
  margin-top: 22px;
}
.thanks-form-row {
  display: flex;
  gap: 0;
}
.thanks-form-row .hero-inp {
  height: 56px;
}
.thanks-form-row .btn {
  height: 56px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.thanks-form-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,.5);
}
.thanks-form-note a {
  color: #fff;
  text-decoration: underline;
}
.thanks-mini-list {
  display: grid;
  gap: 14px;
}
.thanks-mini-card {
  display: block;
  background: #fff;
  border-radius: var(--r);
  border: 1px solid var(--border);
  padding: 20px 18px;
  box-shadow: 0 8px 24px rgba(10,22,40,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.thanks-mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(10,22,40,.1);
}
.thanks-mini-card i {
  color: var(--blue);
  font-size: 20px;
  margin-bottom: 10px;
  display: block;
}
.thanks-mini-card strong {
  display: block;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 5px;
}
.thanks-mini-card span {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 1199px) {
  .thanks-grid,
  .thanks-contact-grid,
  .thanks-links,
  .thanks-socials,
  .thanks-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .thanks-grid {
    align-items: start;
  }
}
@media (max-width: 991px) {
  .thanks-grid,
  .thanks-steps,
  .thanks-contact-grid,
  .thanks-links,
  .thanks-socials,
  .thanks-info {
    grid-template-columns: 1fr;
  }
  .thanks-hero    { padding: 30px 0 24px; }
  .thanks-panel,
  .thanks-callback { padding: 24px; }
  .thanks-title   { max-width: 100%; }
  .thanks-lead    { font-size: 16px; }
}
@media (max-width: 767px) {
  .thanks-form-row {
    flex-direction: column;
    gap: 10px;
  }
  .thanks-form-row .hero-inp,
  .thanks-form-row .btn {
    border-radius: var(--r-sm);
    width: 100%;
  }
  .thanks-step,
  .thanks-link,
  .thanks-mini-card,
  .thanks-info-card {
    min-height: auto;
  }
  .thanks-visual-card {
    padding: 24px 18px 20px;
  }
}


/* ════ POLICY PAGE ════ */
.policy-page {
  background:
    radial-gradient(circle at top right, rgba(0,58,121,.08) 0%, transparent 26%),
    radial-gradient(circle at bottom left, rgba(255,153,0,.06) 0%, transparent 24%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
}
.policy-section {
  padding: 42px 0 80px;
}
.policy-shell {
  display: grid;
  gap: 22px;
}
.policy-head {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  padding: 32px 34px;
  position: relative;
  overflow: hidden;
}
.policy-head::before {
  content: '';
  position: absolute;
  right: -90px;
  top: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(0,58,121,.06);
}
.policy-title {
  margin: 14px 0 12px;
}
.policy-lead {
  max-width: 860px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--muted);
}
.policy-card {
  background: rgba(255,255,255,.94);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  overflow: hidden;
}
.policy-content {
  padding: 34px;
  color: var(--ink);
}
.policy-content > h1:first-child {
  display: none;
}
.policy-content h2,
.policy-content h3,
.policy-content h4 {
  color: var(--blue);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 34px 0 14px;
}
.policy-content h2 { font-size: clamp(22px, 2.4vw, 30px); }
.policy-content h3 { font-size: clamp(18px, 2vw, 24px); }
.policy-content h4 { font-size: 18px; }
.policy-content p,
.policy-content li {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  color: #314255;
}
.policy-content p { margin: 0 0 14px; }
.policy-content ul,
.policy-content ol {
  margin: 0 0 18px 22px;
  padding: 0;
}
.policy-content li {
  margin-bottom: 10px;
  padding-left: 4px;
}
.policy-content a {
  color: var(--blue);
  text-decoration: underline;
}
.policy-content strong,
.policy-content b {
  color: var(--ink);
  font-weight: 800;
}
@media (max-width: 767px) {
  .policy-section  { padding: 24px 0 48px; }
  .policy-head     { padding: 24px 20px; }
  .policy-card     { border-radius: 22px; }
  .policy-content  { padding: 24px 20px; }
  .policy-content p,
  .policy-content li    { font-size: 15px; line-height: 1.72; }
  .policy-content h2,
  .policy-content h3,
  .policy-content h4    { margin-top: 26px; }
}
