#dewoq-paid-page {
  --pp-primary: #23adeb;
  --pp-primary-hover: #52c3f6;
  --pp-on-primary: #04141d;
  --pp-bg: #0a0f16;
  --pp-surface: #111a24;
  --pp-surface-2: #172331;
  --pp-text: #e8eef5;
  --pp-dim: #b4c2d2;
  --pp-muted: #8296ab;
  --pp-line: rgba(160, 190, 220, 0.14);
  --pp-radius: 16px;
  --pp-font: 'Onest', 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  background: var(--pp-bg);
  color: var(--pp-text);
  color-scheme: dark;
  font-family: var(--pp-font);
  font-size: 16px;
  line-height: 1.6;
  padding: 36px 32px 28px;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 24px;
}

#dewoq-paid-page *,
#dewoq-paid-page *::before,
#dewoq-paid-page *::after { box-sizing: border-box; }

#dewoq-paid-page :focus-visible {
  outline: 2px solid var(--pp-primary);
  outline-offset: 3px;
}

/* ---------- Кнопки ---------- */
.pp-btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color .2s, border-color .2s, color .2s;
}
.pp-btn-primary { background: var(--pp-primary); color: var(--pp-on-primary); }
.pp-btn-primary:hover { background: var(--pp-primary-hover); }
.pp-btn-outline { background: transparent; color: var(--pp-text); border-color: var(--pp-line); }
.pp-btn-outline:hover { border-color: var(--pp-primary); color: var(--pp-primary); }
.pp-btn-block { display: block; width: 100%; margin-top: 18px; }

/* ---------- Hero ---------- */
.pp-hero {
  position: relative;
  overflow: hidden;
  background: var(--pp-surface);
  border: 1px solid var(--pp-line);
  border-radius: 20px;
  padding: 56px 40px 120px;
  margin-bottom: 64px;
  text-align: left;
}
.pp-hero h1 {
  color: #fff;
  font-size: clamp(32px, 5.4vw, 54px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  max-width: 14em;
}
.pp-hero h1 span { display: block; }
.pp-subtitle {
  color: var(--pp-dim);
  font-size: 17px;
  max-width: 34em;
  margin: 0 0 24px;
}
.pp-subtitle strong { color: #fff; font-weight: 650; }

.pp-info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.pp-info-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 14px;
  color: var(--pp-dim);
  background: var(--pp-surface-2);
  border-radius: 999px;
}
.pp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Эквалайзер: единственный анимированный элемент страницы */
.pp-eq {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 76px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 40px;
  pointer-events: none;
}
.pp-eq i {
  width: 5px;
  height: 100%;
  background: var(--pp-primary);
  opacity: .3;
  border-radius: 3px 3px 0 0;
  transform-origin: bottom;
  transform: scaleY(.2);
  animation: pp-eq 1.1s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -.13s);
}
.pp-eq i:nth-child(3n) { animation-duration: .8s; }
.pp-eq i:nth-child(4n) { animation-duration: 1.4s; }
.pp-eq i:nth-child(5n) { animation-duration: .95s; }
@keyframes pp-eq { to { transform: scaleY(1); } }

/* ---------- Секции ---------- */
.pp-section { margin-bottom: 64px; }
.pp-section h2 {
  color: #fff;
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 24px;
}

/* Кому подходит */
.pp-who {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
}
.pp-who-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--pp-line);
}
.pp-who-item > span {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: var(--pp-surface-2);
  border-radius: 12px;
}
.pp-who-item p { margin: 0; font-size: 15px; color: var(--pp-muted); }
.pp-who-item strong { color: #fff; font-weight: 650; }

/* ---------- Пакеты ---------- */
.pp-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.pp-package {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--pp-surface);
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  padding: 28px 22px 22px;
}
.pp-package-featured {
  background: var(--pp-surface-2);
  border-color: var(--pp-primary);
  padding-top: 36px;
  transform: translateY(-10px);
  margin-bottom: -10px;
}
.pp-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--pp-primary);
  color: var(--pp-on-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.pp-package h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 650;
  margin: 0 0 6px;
}
.pp-price {
  color: #fff;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 22px;
}
.pp-price small {
  color: var(--pp-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 6px;
}
.pp-features { list-style: none; padding: 0; margin: 0; flex-grow: 1; }
.pp-features li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--pp-dim);
}
.pp-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 15px; height: 15px;
  background: var(--pp-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Кнопка: у обычных пакетов контурная, у главного залитая */
.pp-package .pp-btn-primary {
  background: transparent;
  color: var(--pp-text);
  border-color: var(--pp-line);
}
.pp-package .pp-btn-primary:hover { border-color: var(--pp-primary); color: var(--pp-primary); }
.pp-package-featured .pp-btn-primary {
  background: var(--pp-primary);
  color: var(--pp-on-primary);
  border-color: var(--pp-primary);
}
.pp-package-featured .pp-btn-primary:hover { background: var(--pp-primary-hover); color: var(--pp-on-primary); }

.pp-note {
  font-size: 13px;
  color: var(--pp-muted);
  margin: 22px 0 0;
  max-width: 46em;
}

/* ---------- Как это работает (реальная последовательность) ---------- */
.pp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pp-step { position: relative; }
.pp-step-num {
  position: relative;
  z-index: 1;
  width: 36px; height: 36px;
  margin-bottom: 14px;
  background: var(--pp-bg);
  color: var(--pp-primary);
  border: 2px solid var(--pp-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.pp-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 17px; left: 36px; right: -20px;
  height: 2px;
  background: var(--pp-line);
}
.pp-step h4 { color: #fff; font-size: 16px; font-weight: 650; margin: 0 0 6px; }
.pp-step p { font-size: 14px; color: var(--pp-muted); margin: 0; }

.pp-highlight {
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--pp-surface-2);
  border-radius: 12px;
  font-size: 15px;
  color: var(--pp-dim);
}
.pp-highlight strong { color: #fff; }

.pp-payment { font-size: 16px; color: var(--pp-dim); }
.pp-payment strong { color: #fff; }
.pp-payment .pp-note { margin-top: 8px; }

/* Что вы получаете */
.pp-case-row {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--pp-line);
}
.pp-case-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: var(--pp-surface-2);
  border-radius: 12px;
}
.pp-case-row h4 { color: #fff; font-size: 16px; font-weight: 650; margin: 0 0 4px; }
.pp-case-row p { font-size: 15px; color: var(--pp-muted); margin: 0; max-width: 44em; }

/* ---------- FAQ ---------- */
.pp-faq details { border-top: 1px solid var(--pp-line); }
.pp-faq details:last-child { border-bottom: 1px solid var(--pp-line); }
.pp-faq summary {
  position: relative;
  padding: 18px 40px 18px 0;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  font-weight: 550;
  list-style: none;
}
.pp-faq summary::-webkit-details-marker { display: none; }
.pp-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  margin-top: -14px;
  width: 28px; height: 28px;
  line-height: 26px;
  text-align: center;
  color: var(--pp-primary);
  font-size: 22px;
  transition: transform .25s;
}
.pp-faq details[open] summary::after { transform: rotate(45deg); }
.pp-faq details p {
  margin: 0;
  padding: 0 40px 20px 0;
  font-size: 15px;
  color: var(--pp-muted);
  max-width: 46em;
}

/* ---------- Форма ---------- */
#pp-form { margin-bottom: 40px; }
.pp-form-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: var(--pp-primary);
  color: var(--pp-on-primary);
  border: 0;
  border-radius: var(--pp-radius);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background-color .2s;
}
.pp-form-toggle:hover { background: var(--pp-primary-hover); }
.pp-form-toggle::after {
  content: "";
  width: 10px; height: 10px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform .3s;
}
.pp-form-toggle[aria-expanded="true"]::after { transform: rotate(225deg) translateY(-3px); }

.pp-form-container {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height .4s ease-in-out, visibility 0s .4s;
}
.pp-form-container.is-open {
  visibility: visible;
  transition: max-height .4s ease-in-out, visibility 0s;
}
.pp-form {
  margin-top: 14px;
  background: var(--pp-surface);
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  padding: 8px 24px 28px;
}
.pp-label {
  display: block;
  margin: 20px 0 8px;
  font-weight: 600;
  color: #fff;
  font-size: 14px;
}
.pp-input,
.pp-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--pp-bg);
  color: var(--pp-text);
  border: 1px solid var(--pp-line);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.pp-input::placeholder,
.pp-textarea::placeholder { color: #566879; }
.pp-input:focus,
.pp-textarea:focus {
  outline: none;
  border-color: var(--pp-primary);
  box-shadow: 0 0 0 3px rgba(35, 173, 235, .22);
}
.pp-textarea { resize: vertical; min-height: 90px; }
.pp-consent { margin: 24px 0 6px; font-size: 13px; line-height: 1.5; color: var(--pp-muted); }
.pp-consent label { display: flex; align-items: flex-start; gap: 10px; }
.pp-consent input[type="checkbox"] {
  accent-color: var(--pp-primary);
  width: 18px; height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
}
.pp-consent a { color: var(--pp-primary); }
.pp-form .pp-btn-primary { background: var(--pp-primary); color: var(--pp-on-primary); }
.pp-form .pp-note { text-align: center; }

.pp-success {
  color: #fff;
  padding: 22px 24px;
  background: var(--pp-surface-2);
  border: 1px solid var(--pp-primary);
  border-radius: var(--pp-radius);
  font-size: 17px;
}

/* ---------- Футер ---------- */
.pp-footer { border-top: 1px solid var(--pp-line); padding-top: 36px; }
.pp-footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}
.pp-footer-brand strong {
  display: block;
  color: #fff;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.pp-footer-brand p { margin: 0; font-size: 14px; color: var(--pp-muted); max-width: 34em; }
.pp-genres { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pp-genres span {
  padding: 4px 12px;
  font-size: 12px;
  color: var(--pp-dim);
  background: var(--pp-surface-2);
  border-radius: 999px;
}
.pp-social p { margin: 0 0 12px; font-size: 13px; color: var(--pp-muted); text-align: right; }
.pp-social-row { display: flex; gap: 10px; justify-content: flex-end; }
.pp-soc {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--pp-surface-2);
  border: 1px solid var(--pp-line);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s, color .2s, transform .2s;
}
.pp-soc .pp-ico { width: 20px; height: 20px; }
.pp-soc:hover { transform: translateY(-2px); border-color: transparent; color: #fff; }
.pp-soc-home:hover { background: var(--pp-primary); color: var(--pp-on-primary); }
.pp-soc-vk:hover { background: #2787f5; }
.pp-soc-tg:hover { background: #27a7e7; }
.pp-soc-dz:hover { background: #fff; color: #000; }

.pp-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--pp-line);
  font-size: 14px;
}
.pp-footer-links a { color: var(--pp-dim); text-decoration: none; transition: color .2s; }
.pp-footer-links a:hover { color: var(--pp-primary); }
.pp-footer-links a.pp-mail {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--pp-surface-2);
  color: var(--pp-primary);
}
.pp-footer-links a.pp-mail:hover { background: var(--pp-primary); color: var(--pp-on-primary); }
.pp-mail .pp-ico { width: 16px; height: 16px; }
.pp-footer-legal { margin: 20px 0 0; font-size: 12px; line-height: 1.7; color: var(--pp-muted); max-width: 62em; }
.pp-copy { margin: 14px 0 0; font-size: 12px; color: #6f8296; }

/* ---------- Адаптив ---------- */
@media (max-width: 800px) {
  #dewoq-paid-page { padding: 20px 14px; border-radius: 16px; }
  .pp-hero { padding: 36px 22px 100px; margin-bottom: 48px; }
  .pp-eq { padding: 0 22px; height: 60px; }
  .pp-section { margin-bottom: 48px; }
  .pp-packages { grid-template-columns: 1fr; }
  .pp-package-featured { transform: none; margin-bottom: 0; order: -1; }
  .pp-who { grid-template-columns: 1fr; }
  .pp-steps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .pp-step:not(:last-child)::before { display: none; }
  .pp-cta-row .pp-btn { flex: 1; }
  .pp-form { padding: 4px 16px 22px; }
}
@media (max-width: 480px) {
  .pp-steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .pp-eq i { animation: none; transform: scaleY(.45); }
  .pp-eq i:nth-child(2n) { transform: scaleY(.3); }
  .pp-eq i:nth-child(3n) { transform: scaleY(.7); }
  .pp-form-container, .pp-form-toggle::after, .pp-faq summary::after { transition: none; }
}

/* ---------- Иконки ---------- */
.pp-ico {
  width: 20px; height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pp-info-strip .pp-ico { width: 18px; height: 18px; color: var(--pp-primary); }
.pp-who-item > span,
.pp-case-icon { color: var(--pp-primary); background: rgba(35, 173, 235, .1); }
.pp-who-item .pp-ico,
.pp-case-icon .pp-ico { width: 22px; height: 22px; }
.pp-success { margin-bottom: 14px; }

@media (max-width: 800px) {
  .pp-footer-top { grid-template-columns: 1fr; gap: 24px; }
  .pp-social p { text-align: left; }
  .pp-social-row { justify-content: flex-start; }
  .pp-footer-links a.pp-mail { margin-left: 0; }
}

/* ---------- Оплата ---------- */
.pp-pay-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--pp-surface-2);
  border-radius: 12px;
  font-size: 16px;
}
.pp-pay-strip .pp-ico { width: 26px; height: 26px; color: var(--pp-primary); }
