/* =====================================================================
   «Доставка по всей России» — страница «Оплата и доставка» (/oplata/#delivery), 17.11.2026.
   Разметка — template-parts/delivery-oplata-q.php, подключает page-oplata.php. Выбор владельца — вариант 1;
   r3 (идея владельца): 2 столбца — слева 4 низкие плитки способов 2×2, справа большая красная плитка
   «Ваш индивидуальный случай»; ниже строка городов и 4 числа (раскладка delivery-nums шаблона главной, offers-q.css).
   ===================================================================== */
.qp-dv-section { scroll-margin-top: 90px; }

.qp-dv { --qp-of-red: #d51c32; color: #fff; }
.qp-dv__head { max-width: 860px; }
.qp-dv__title { margin: 0; color: #fff; font-size: var(--qp-h-section); font-weight: 700; line-height: 1.05; }
.qp-dv__lead { margin: 20px 0 0; color: #fff; font-size: var(--qp-text-l); line-height: 1.45; }

/* Плитки способов: 4 в ряд, низкие */
.qp-dv-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-top: 36px; }
.qp-dv-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; margin: 0; padding: 0; list-style: none; }
/* r4 (17.11): иконка и название в строку, описание 2–3 строки под ними во всю ширину */
.qp-dv-tile {
  display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto 1fr; gap: 14px; align-items: center; align-content: start;
  min-height: 150px; padding: 22px 24px; border-radius: 16px;
  background: var(--qp-plate); box-shadow: var(--qp-plate-shadow);
}
.qp-dv-tile__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--qp-control); color: #ff4d5f; }
.qp-dv-tile__ico svg { width: 24px; height: 24px; }
.qp-dv-tile__name { font-size: 20px; font-weight: 700; line-height: 1.2; }
.qp-dv-tile__note { grid-column: 1 / -1; align-self: start; color: #a1a1a1; font-size: 15px; line-height: 1.5; }

/* «Ваш индивидуальный случай» — большая красная плитка справа на всю высоту способов */
.qp-dv-custom {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; text-align: left; /* r6 (владелец): текст и кнопка по левому краю, содержимое — по центру плитки по высоте */
  padding: 28px; border-radius: 16px;
  background: linear-gradient(160deg, #e0263c 0%, #d51c32 45%, #a8162a 100%);
}
.qp-dv-custom__title { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; }
.qp-dv-custom__text { margin: 12px 0 0; color: rgba(255, 255, 255, .9); font-size: 16px; line-height: 1.55; }
.qp-dv-custom .qp-dv-btn { align-self: flex-start; }
.qp-dv-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border: 0; border-radius: 10px;
  background: #fff; color: #222; font: 500 16px/1.2 var(--qp-font-primary, "Roboto", Arial, sans-serif);
  cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.qp-dv-btn:hover, .qp-dv-btn:focus-visible { background: #a1a1a1; color: #fff; }

/* Строка городов и числа — раскладка delivery-nums (как на конфигураторе) */
.qp-dv__nums { margin-top: 16px; }
.qp-dv__nums .qp-section { padding: 0; }
.qp-dv__nums .qp-shell { width: 100%; max-width: none; padding: 0; }

/* Планшет: один столбец — способы 2×2 во всю ширину, «Ваш индивидуальный случай» под ними */
@media (max-width: 1023px) {
  .qp-dv-grid { grid-template-columns: 1fr; }
  .qp-dv-tile { min-height: 0; padding: 20px; }
}
@media (max-width: 640px) {
  .qp-dv-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 28px; }
  .qp-dv-tiles { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 8px; }
  .qp-dv-tile { grid-template-columns: 40px 1fr; gap: 10px 14px; min-height: 0; padding: 16px 18px; }
  .qp-dv-tile__ico { width: 40px; height: 40px; }
  .qp-dv-tile__name { font-size: 18px; }
  .qp-dv-tile__note { grid-column: 1 / -1; font-size: 14px; }
  .qp-dv-custom { padding: 18px; }
  .qp-dv-custom__title { font-size: 19px; }
  .qp-dv-custom .qp-dv-btn { align-self: stretch; }
}
