/* ============================================================
   Оплата и доставка — изолированные стили
   Префикс: pd- (всё под .pd-root)
   Токены/ресет/шрифт на .pd-root (не глобально). Контейнер 1327px
   как .container шапки → контент 1297px.
   ============================================================ */

/* Inter — self-hosted (вариативный, 400-600). На том же домене, чтобы не
   зависеть от внешнего Google Fonts: на деве body-инжектнутый <link> на
   fonts.googleapis не подхватывался, кириллица валилась в системный фолбэк. */
@font-face{font-family:"Inter";font-style:normal;font-weight:400 600;font-display:swap;src:url(/fonts/inter/inter-cyrillic.woff2) format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Inter";font-style:normal;font-weight:400 600;font-display:swap;src:url(/fonts/inter/inter-latin.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

.pd-root {
  --pd-accent: #FE5D26;
  --pd-accent-hover: #D95427;
  --pd-black: #312D2B;
  --pd-text: #272F3D;
  --pd-bg: #F6F6F6;
  --pd-white: #FFFFFF;
  --pd-border: rgba(49, 45, 43, 0.1);
  --pd-card-shadow: 0 1px 4px 0 rgba(49, 45, 43, 0.08);
  --pd-card-bg: rgba(49, 45, 43, 0.05);
  --pd-transition: .25s ease;
  --pd-radius-sm: 10px;
  --pd-radius-md: 12px;
  --pd-radius-lg: 24px;

  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--pd-text);
  background-color: var(--pd-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.pd-root *,
.pd-root *::before,
.pd-root *::after { box-sizing: border-box; }

/* Зануляем UA-отступы только у текстовых тегов через :where() — селектор
   нулевой специфичности, поэтому классы-заголовки перебивают свои margin по
   порядку, а структурные узлы (<main> с глобальным margin-top: 91px под
   фикс-шапку) НЕ затрагиваются. */
.pd-root :where(h1, h2, h3, h4, h5, h6, p, ul) { margin: 0; }

.pd-root ul { padding: 0; list-style: none; }

.pd-root a { text-decoration: none; color: inherit; }
.pd-root img { max-width: 100%; height: auto; display: block; }
.pd-root button { font-family: inherit; }

.pd-container {
  max-width: 1327px; /* как .container шапки → контент 1297px */
  margin: 0 auto;
  padding: 0 15px;
}

/* --- Hero --- */
.pd-hero { padding: 24px 0 28px; }
.pd-hero-title {
  font-size: 32px;
  font-weight: 500;
  line-height: 40px;
  color: var(--pd-black);
}

/* --- Section title --- */
.pd-section-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: var(--pd-black);
  margin-bottom: 20px;
}

/* --- Alert banner --- */
.pd-alert { padding-bottom: 32px; }
.pd-alert-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--pd-accent);
  border-radius: var(--pd-radius-md);
  box-shadow: 0 0 0 2px rgba(254, 93, 38, 0.16);
}
.pd-alert-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(254, 93, 38, 0.1);
  color: var(--pd-accent);
}
.pd-alert-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  color: var(--pd-accent);
  margin-bottom: 2px;
}
.pd-alert-text {
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  color: var(--pd-text);
  opacity: 0.8;
}

/* --- Payment methods --- */
.pd-payment { padding-bottom: 40px; }
.pd-payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pd-payment-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 24px;
  background: var(--pd-white);
  border-radius: var(--pd-radius-lg);
  box-shadow: var(--pd-card-shadow);
  transition: transform var(--pd-transition), box-shadow var(--pd-transition);
}
.pd-payment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(49, 45, 43, 0.1);
}
.pd-payment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(254, 93, 38, 0.08);
  color: var(--pd-accent);
}
.pd-payment-icon--blue { background: rgba(68, 84, 235, 0.08); color: #4454EB; }
.pd-payment-icon--green { background: rgba(22, 163, 74, 0.08); color: #16A34A; }
.pd-payment-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--pd-black);
  margin-bottom: 4px;
}
.pd-payment-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--pd-text);
  opacity: 0.6;
}

/* --- Delivery --- */
.pd-delivery { padding-bottom: 40px; }
.pd-delivery-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pd-delivery-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pd-delivery-card {
  flex: 1;
  padding: 28px 24px;
  background: var(--pd-white);
  border-radius: var(--pd-radius-lg);
  box-shadow: var(--pd-card-shadow);
}
.pd-delivery-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(254, 93, 38, 0.08);
  color: var(--pd-accent);
  margin-bottom: 16px;
}
.pd-delivery-card-icon--blue { background: rgba(68, 84, 235, 0.08); color: #4454EB; }
.pd-delivery-card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--pd-black);
  margin-bottom: 8px;
}
.pd-delivery-card-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--pd-text);
  opacity: 0.6;
}

/* --- Delivery timeline --- */
.pd-delivery-steps {
  background: var(--pd-white);
  border-radius: var(--pd-radius-lg);
  box-shadow: var(--pd-card-shadow);
  padding: 28px 24px;
}
.pd-delivery-steps-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--pd-black);
  margin-bottom: 24px;
}
.pd-timeline { display: flex; flex-direction: column; gap: 0; }
.pd-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  padding-bottom: 24px;
}
.pd-step:last-child { padding-bottom: 0; }
.pd-step::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 16px;
  width: 2px;
  bottom: 0;
  background: var(--pd-border);
}
.pd-step:last-child::before { display: none; }
.pd-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pd-accent);
  color: var(--pd-white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.pd-step-body strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  color: var(--pd-black);
  margin-bottom: 2px;
}
.pd-step-body p {
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  color: var(--pd-text);
  opacity: 0.6;
}

/* --- Terms --- */
.pd-terms { padding-bottom: 40px; }
.pd-terms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.pd-terms-card {
  background: var(--pd-white);
  border-radius: var(--pd-radius-lg);
  box-shadow: var(--pd-card-shadow);
  padding: 28px 24px;
}
.pd-terms-card--accent {
  background: #fff;
  border: 1px solid var(--pd-accent);
  box-shadow: 0 0 0 2px rgba(254, 93, 38, 0.16);
}
.pd-terms-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.pd-terms-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(254, 93, 38, 0.08);
  color: var(--pd-accent);
  flex-shrink: 0;
}
.pd-terms-card-icon--blue { background: rgba(68, 84, 235, 0.08); color: #4454EB; }
.pd-terms-card-icon--green { background: rgba(22, 163, 74, 0.08); color: #16A34A; }
.pd-terms-card-icon--accent { background: rgba(254, 93, 38, 0.12); color: var(--pd-accent); }
.pd-terms-card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--pd-black);
}
.pd-terms-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pd-terms-list-item {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--pd-text);
  opacity: 0.75;
}
.pd-terms-list-item::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pd-accent);
}

/* --- Questions / Feedback form --- */
.pd-questions { padding-bottom: 64px; }
.pd-questions-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  border-radius: var(--pd-radius-lg);
  overflow: hidden;
  background: var(--pd-accent);
  min-height: 420px;
}
.pd-questions-info {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, var(--pd-accent) 30%, #7B2FF2 120%);
  color: var(--pd-white);
}
.pd-questions-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  margin-bottom: 12px;
  color: var(--pd-white);
}
.pd-questions-text {
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  opacity: 0.85;
  margin-bottom: 32px;
  color: var(--pd-white);
}
.pd-questions-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}
.pd-questions-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  color: var(--pd-white) !important;
  opacity: 0.9;
  transition: opacity var(--pd-transition);
}
.pd-questions-link:hover { opacity: 1; }
.pd-questions-link svg { flex-shrink: 0; }

.pd-form-wrap {
  background: var(--pd-white);
  padding: 32px 36px;
  border-radius: 0 var(--pd-radius-lg) var(--pd-radius-lg) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- Form --- */
.pd-form { display: flex; flex-direction: column; flex: 1; }
.pd-form-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  flex: 1;
}
.pd-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pd-form-input,
.pd-form-textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--pd-radius-sm);
  border: 1px solid var(--pd-border);
  background: var(--pd-bg);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  color: var(--pd-text);
  outline: none;
  transition: border-color var(--pd-transition), box-shadow var(--pd-transition);
}
.pd-form-input::placeholder,
.pd-form-textarea::placeholder { color: var(--pd-text); opacity: 0.35; }
.pd-form-input:focus,
.pd-form-textarea:focus {
  border-color: var(--pd-accent);
  box-shadow: 0 0 0 2px rgba(254, 93, 38, 0.16);
  background: var(--pd-white);
}
.pd-form-textarea { resize: none; min-height: 80px; overflow: hidden; }

.pd-form-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: auto;
}
.pd-form-submit {
  padding: 12px 28px;
  border-radius: var(--pd-radius-md);
  background: var(--pd-accent);
  color: var(--pd-white);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  border: none;
  cursor: pointer;
  transition: background-color var(--pd-transition);
  white-space: nowrap;
}
.pd-form-submit:hover { background-color: var(--pd-accent-hover); }
.pd-form-submit--done {
  background: var(--pd-border);
  color: var(--pd-text);
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

/* --- Consent checkbox --- */
.pd-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}
.pd-consent input[type="checkbox"] { display: none; }
.pd-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  min-width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid var(--pd-border);
  background: var(--pd-bg);
  transition: background-color var(--pd-transition), border-color var(--pd-transition);
  flex-shrink: 0;
  margin-top: 1px;
}
.pd-checkbox svg { display: none; }
.pd-consent input:checked + .pd-checkbox {
  background: var(--pd-accent);
  border-color: var(--pd-accent);
}
.pd-consent input:checked + .pd-checkbox svg { display: block; }
.pd-consent p {
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  color: var(--pd-text);
  opacity: 0.6;
}
.pd-consent a { color: var(--pd-accent) !important; text-decoration: none; }
.pd-consent a:hover { text-decoration: underline; }

/* --- Tabs --- */
.pd-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.pd-tab-btn {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--pd-border);
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--pd-text);
  cursor: pointer;
  transition: all var(--pd-transition);
  white-space: nowrap;
}
.pd-tab-btn:hover { border-color: var(--pd-accent); color: var(--pd-accent); }
.pd-tab-btn--active {
  background: var(--pd-accent);
  border-color: var(--pd-accent);
  color: var(--pd-white);
}
.pd-tab-btn--active:hover {
  background: var(--pd-accent-hover);
  border-color: var(--pd-accent-hover);
  color: var(--pd-white);
}
.pd-tab-content { display: none; }
.pd-tab-content--active { display: flex; flex-direction: column; flex: 1; }

/* --- Toast (уведомление в стиле проекта, замена браузерного alert) --- */
.pd-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 14px 18px;
  background: var(--pd-white);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-md);
  box-shadow: 0 12px 32px rgba(49, 45, 43, 0.18);
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  color: var(--pd-black);
  opacity: 0;
  transform: translate(-50%, -16px);
  pointer-events: none;
  transition: opacity var(--pd-transition), transform var(--pd-transition);
}
.pd-toast--show { opacity: 1; transform: translate(-50%, 0); }
.pd-toast__icon { display: flex; flex-shrink: 0; }

/* ============================================================
   Responsive — Tablet (<=991px)
   ============================================================ */
@media screen and (max-width: 991px) {
  .pd-payment-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-delivery-wrapper { grid-template-columns: 1fr; }
  .pd-delivery-main { flex-direction: row; }
  .pd-terms-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-questions-inner { grid-template-columns: 1fr; }
  .pd-questions-info { padding: 32px 28px; border-radius: var(--pd-radius-lg) var(--pd-radius-lg) 0 0; }
  .pd-form-wrap { border-radius: 0 0 var(--pd-radius-lg) var(--pd-radius-lg); padding: 28px; }
  .pd-questions-text { margin-bottom: 20px; }
  .pd-questions-contacts { flex-direction: row; gap: 24px; margin-top: 0; }
}

/* ============================================================
   Responsive — Mobile (<=768px)
   ============================================================ */
@media screen and (max-width: 768px) {
  .pd-root section { margin-bottom: 0; }
  .pd-hero { padding: 64px 0 20px; }
  .pd-hero-title { font-size: 24px; line-height: 32px; }
  .pd-section-title { font-size: 20px; line-height: 28px; }
  .pd-alert-inner { padding: 16px 20px; }
  .pd-payment-grid { grid-template-columns: 1fr; }
  .pd-payment-card { flex-direction: row; align-items: flex-start; padding: 20px; }
  .pd-payment-icon { width: 48px; height: 48px; border-radius: 14px; }
  .pd-delivery-main { flex-direction: column; }
  .pd-delivery-card { padding: 20px; }
  .pd-delivery-steps { padding: 20px; }
  .pd-terms-grid { grid-template-columns: 1fr; }
  .pd-terms-card { padding: 20px; }
  .pd-questions { padding-bottom: 40px; }
  .pd-questions-info { padding: 28px 24px; }
  .pd-questions-title { font-size: 22px; line-height: 30px; }
  .pd-form-wrap { padding: 24px 20px; }
  .pd-questions-contacts { flex-direction: column; gap: 10px; }
  .pd-form-row { grid-template-columns: 1fr; }
  .pd-form-controls { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pd-form-submit { width: 100%; text-align: center; }
  .pd-tabs { gap: 4px; margin-bottom: 20px; }
  .pd-tab-btn { padding: 6px 14px; font-size: 13px; }
}

/* ============================================================
   Responsive — Small mobile (<=480px)
   ============================================================ */
@media screen and (max-width: 480px) {
  .pd-hero-title { font-size: 24px; line-height: 32px; }
  .pd-section-title { font-size: 18px; line-height: 26px; }
  .pd-alert-inner { flex-direction: column; gap: 12px; padding: 16px; }
  .pd-payment-card { padding: 16px; gap: 12px; }
  .pd-payment-icon { width: 44px; height: 44px; border-radius: 12px; }
  .pd-payment-icon svg { width: 22px; height: 22px; }
  .pd-delivery-card { padding: 16px; }
  .pd-delivery-steps { padding: 16px; }
  .pd-step-body strong { font-size: 14px; }
  .pd-terms-card { padding: 16px; }
  .pd-questions-info { padding: 24px 20px; }
  .pd-form-wrap { padding: 20px 16px; }
  .pd-tab-btn { padding: 6px 12px; font-size: 12px; }
}
