/* Локально включаем border-box, чтобы width: 100% + padding НЕ давало переполнение */
.plaf-page {
  box-sizing: border-box;
}

.plaf-page * {
  box-sizing: border-box;
}

/* Общая подложка страницы (фон из ACF: fonovaya_kartinka) */
.plaf-page {
  min-height: 100vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  margin-top: -10px;
  margin-bottom: -20px;
  overflow-x: hidden;
}

/* HERO на всю ширину */
.plaf-hero {
  width: 100%;
  height: 500px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

/* Небольшой overlay чтобы текст читался на картинке */
.plaf-hero__overlay {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.20) 55%, rgba(0, 0, 0, 0.55) 100%);
  display: flex;
  align-items: center;
}

/* Контейнер */
.plaf-hero__container {
  width: 100%;
  max-width: 1715px;
  padding: 0 20px;
  margin: 0 auto;
}

/* Контент в шапке (на десктопе прижат вправо) */
.plaf-hero__content {
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  color: #ffffff;
  text-align: right;
}

/* Текст из WYSIWYG */
.plaf-hero__text {
  font-size: 24px;
  line-height: 1.45;
  text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.55);
}

.plaf-hero__text h1,
.plaf-hero__text h2,
.plaf-hero__text h3 {
  color: #ffffff;
  margin: 0 0 12px 0;
  line-height: 1.15;
  text-shadow: 0px 3px 14px rgba(0, 0, 0, 0.65);
}

.plaf-hero__text p {
  margin: 0 0 14px 0;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.55);
}

/* Кнопка */
.plaf-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  background: #6a0d09;
  color: #ffffff;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0px 10px 24px rgba(153, 9, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.plaf-hero__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0px 14px 34px rgba(153, 9, 0, 0.35);
  background: #8f0b02;
}

.plaf-hero__btn:active {
  transform: translateY(0);
  box-shadow: 0px 10px 24px rgba(153, 9, 0, 0.22);
}

/* ===========================
   СЕКЦИЯ ПОД ШАПКОЙ (повторитель)
   =========================== */

.plaf-features-section {
  width: 100%;
  padding-top: 16px;
  padding-bottom: 18px;
}

/* GRID блоков из повторителя */
.plaf-features {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  min-width: 0;
}

/* Одна карточка: иконка слева + текст справа, вертикально по центру */
.plaf-feature {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0px 10px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  min-width: 0;
}

.plaf-feature__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plaf-feature__icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.55));
}

.plaf-feature__text {
  flex: 1 1 auto;
  text-align: left;
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  line-height: 1.35;
  text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.55);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.plaf-feature__text p {
  margin: 0;
}

.plaf-feature__text h1,
.plaf-feature__text h2,
.plaf-feature__text h3,
.plaf-feature__text h4 {
  margin: 0 0 6px 0;
  color: #ffffff;
}

/* ===========================
   ЗАГОЛОВОК ПОСЛЕ GRID (zagolovok_1)
   =========================== */

.plaf-title-section {
  width: 100%;
}

.plaf-title-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.plaf-title-text {
  font-size: 34px;
  font-weight: 700;
  text-align: center;
  color: #6a0d09;
  text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.45);
  white-space: normal;
}

/* Пунктирные линии по бокам */
.plaf-title-line {
  flex: 1 1 auto;
  height: 0px;
  border-bottom: 2px dashed rgba(75, 5, 5, 0.6);
  position: relative;
  min-width: 40px;
}

/* "Серёжка" у левой линии — в конце пунктира (у текста) */
.plaf-title-line--left::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(230, 230, 230, 0.85);
  border: 2px solid rgb(90 2 2 / 80%);
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.35);
}

/* Маленькая точка внутри "серёжки" (слева) */
.plaf-title-line--left::before {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 4px;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgb(122 7 7 / 65%);
  z-index: 9999;
}

/* "Серёжка" у правой линии — в начале пунктира (у текста) */
.plaf-title-line--right::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(230, 230, 230, 0.85);
  border: 2px solid rgb(90 2 2 / 80%);
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.35);
}

/* Маленькая точка внутри "серёжки" (справа) */
.plaf-title-line--right::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 4px;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgb(122 7 7 / 65%);
}

/* ===========================
   НОВЫЙ БЛОК: blok_pod_zagolovok_1 (grid)
   =========================== */

.plaf-steps-section {
  width: 100%;
  padding-top: 18px;
  padding-bottom: 18px;
}

/* Переменная под текстуру (ставится из PHP, если загружена) */
.plaf-steps-section {
  --plaf-paper-texture: none;
}

.plaf-steps {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  min-width: 0;
}

/* Карточка "состаренная бумага" (фолбэк, если текстуры нет) */
.plaf-step {
  width: 100%;
  min-width: 0;
  border-radius: 18px;
  padding: 18px 18px 20px 18px;
  background-color: #f3e3c8;
  background-image:
    linear-gradient(0deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.00) 40%, rgba(0, 0, 0, 0.06) 100%),
    radial-gradient(circle at 18% 22%, rgba(120, 70, 25, 0.10) 0%, rgba(120, 70, 25, 0.00) 55%),
    radial-gradient(circle at 78% 35%, rgba(120, 70, 25, 0.08) 0%, rgba(120, 70, 25, 0.00) 60%),
    radial-gradient(circle at 30% 85%, rgba(80, 45, 18, 0.07) 0%, rgba(80, 45, 18, 0.00) 55%),
    radial-gradient(circle at 88% 86%, rgba(80, 45, 18, 0.06) 0%, rgba(80, 45, 18, 0.00) 55%);
  border: 1px solid rgba(120, 70, 25, 0.22);
  box-shadow: 0px 14px 34px rgba(0, 0, 0, 0.18);
}

/* Если текстура задана — используем ЕЁ вместо фона (и накладываем лёгкую читабельную вуаль) */
.plaf-steps-section--has-texture .plaf-step {
  background-color: #f3e3c8;
  background-image:
    linear-gradient(0deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.10) 45%, rgba(0, 0, 0, 0.08) 100%),
    var(--plaf-paper-texture);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* Иконка по центру */
.plaf-step__icon {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2px;
  margin-bottom: 10px;
}

.plaf-step__icon img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0px 6px 12px rgba(0, 0, 0, 0.18));
}

/* Строка: круг с номером + заголовок (по центру) */
.plaf-step__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
  margin-bottom: 10px;
}

.plaf-step__num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f39a1f;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0px 10px 18px rgba(243, 154, 31, 0.35);
}

.plaf-step__title {
  color: #6a0d09;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Описание по центру */
.plaf-step__desc {
  width: 100%;
  text-align: center;
  color: rgba(70, 34, 12, 0.92);
  font-size: 16px;
  line-height: 1.45;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.plaf-step__desc p {
  margin: 0 0 10px 0;
}

.plaf-step__desc p:last-child {
  margin: 0;
}

/* ===========================
   ВИДЕО (video_pro_polkov) — GRID
   =========================== */

.plaf-videos-section {
  width: 100%;
  padding-top: 18px;
  padding-bottom: 22px;
}

.plaf-videos {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(415px, 1fr));
  gap: 18px;
  min-width: 0;
}

.plaf-video {
  width: 100%;
  min-width: 0;
  border-radius: 18px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0px 14px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
}

/* Убираем внешний margin от плагина внутри карточки */
.plaf-video .pg-video-wrapper {
  margin: 0;
}

/* Приводим видео к аккуратному виду в карточке */
.plaf-video .pg-video-player {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 14px;
}

/* ===========================
   НОВОЕ: ТЕКСТ ПОД ВИДЕО (ACF: tekst_pod_video) — WYSIWYG
   =========================== */

.plaf-after-videos-section {
  width: 100%;
  padding-top: 10px;
  padding-bottom: 16px;
}

.plaf-after-videos {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(90, 2, 2, 0.14);
  box-shadow: 0px 14px 34px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(70, 34, 12, 0.92);
  font-size: 16px;
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.plaf-after-videos h1,
.plaf-after-videos h2,
.plaf-after-videos h3,
.plaf-after-videos h4 {
  margin: 0 0 12px 0;
  color: #6a0d09;
  line-height: 1.2;
}

.plaf-after-videos p {
  margin: 0 0 12px 0;
}

.plaf-after-videos p:last-child {
  margin: 0;
}

.plaf-after-videos ul,
.plaf-after-videos ol {
  margin: 0 0 12px 18px;
  padding: 0;
}

.plaf-after-videos li {
  margin: 0 0 8px 0;
}

.plaf-after-videos a {
  text-decoration: none;
}

.plaf-after-videos a:hover {
  text-decoration: none;
  opacity: 0.95;
}

/* ===========================
   НОВОЕ: ГАЛЕРЕЯ "КАК ЭТО ВЫГЛЯДИТ" (zagolovok_4 + repeater kak_eto_vyglyadit)
   =========================== */

.plaf-gallery-section {
  width: 100%;
  padding-top: 18px;
  padding-bottom: 26px;
}

.plaf-gallery-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
  min-width: 0;
}

.plaf-gallery-item {
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0px 14px 34px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.16);
  min-width: 0;
}

.plaf-gallery-item:focus {
  outline: none;
}

.plaf-gallery-item:focus-visible {
  outline: 3px solid rgba(243, 154, 31, 0.85);
  outline-offset: 3px;
}

.plaf-gallery-thumb {
  width: 100%;
  height: 300px;
  background: rgba(0, 0, 0, 0.08);
}

.plaf-gallery-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 0.18s ease;
}

.plaf-gallery-item:hover .plaf-gallery-thumb img {
  transform: scale(1.03);
}

.plaf-gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.18) 65%, rgba(0, 0, 0, 0.00) 100%);
  text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.55);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ===========================
   НОВОЕ: ЛАЙТБОКС (увеличение + стрелки + свайп)
   =========================== */

body.plaf-lightbox-open {
  overflow: hidden;
}

.plaf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}

.plaf-lightbox.is-open {
  display: flex;
}

.plaf-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.plaf-lightbox__dialog {
  position: relative;
  z-index: 2;
  width: min(1100px, 92vw);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 18px;
  background: rgba(20, 20, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0px 20px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.plaf-lightbox__figure {
  margin: 0;
  width: 100%;
  max-height: calc(92vh - 36px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.plaf-lightbox__img {
  width: 100%;
  height: auto;
  max-height: calc(92vh - 120px);
  object-fit: contain;
  display: block;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
}

.plaf-lightbox__caption {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.plaf-lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.95);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0px 12px 26px rgba(0, 0, 0, 0.25);
}

.plaf-lightbox__close:hover {
  background: rgba(0, 0, 0, 0.58);
}

.plaf-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.95);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  justify-content: center;
  box-shadow: 0px 12px 26px rgba(0, 0, 0, 0.25);
}

.plaf-lightbox__nav:hover {
  background: rgba(0, 0, 0, 0.58);
}

.plaf-lightbox__nav--prev {
  left: 10px;
}

.plaf-lightbox__nav--next {
  right: 10px;
}

/* ===========================
   НОВОЕ: БЛОК ПОСЛЕ ГАЛЕРЕИ (zagolovok_5 + opisanie_k_zagolovku_5)
   =========================== */

.plaf-title5-section {
  width: 100%;
  padding-top: 12px;
  padding-bottom: 18px;
}

/* Небольшая эстетика для CTA внутри plaf-title-desc */
.plaf-title-desc--v5 .button_regs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

/* ===========================
   ЗАГОЛОВОК 2 + ОПИСАНИЕ (после видео)
   =========================== */

.plaf-title2-section {
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
}

.plaf-title-desc {
  width: 100%;
  max-width: 1100px;
  margin-top: 12px;
  margin-left: auto;
  margin-right: auto;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgb(243 154 31);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0px 14px 34px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.93);
  text-align: center;
  font-size: 16px;
  line-height: 1.55;
  text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.45);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.plaf-title-desc p {
  margin: 0 0 10px 0;
}

.plaf-title-desc p:last-child {
  margin: 0;
}

.plaf-title-desc a {
  color: #ffffff;
  text-decoration: underline;
}

.plaf-title-desc a:hover {
  text-decoration: none;
  opacity: 0.95;
}

/* ===========================
   ТОВАРЫ WooCommerce (6 random) — после описания
   =========================== */

.plaf-products-section {
  width: 100%;
}

/* Чуть подстрахуем от переполнений */
.plaf-products-section .pc-grid {
  width: 100%;
  min-width: 0;
}

/* ===========================
   ПОДЗАГОЛОВКИ ДЛЯ ПОДПИСОК (ширина подложки = ширина текста)
   =========================== */

.plaf-subscriptions-section {
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
}

.plaf-subheading-row {
  width: 100%;
  text-align: left;
  margin-top: 16px;
  margin-bottom: 10px;
}

.plaf-subheading-row--second {
  margin-top: 24px;
}

.plaf-subheading-inline {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgb(243 154 31);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  box-shadow: 0px 10px 24px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Блок для будущего контента */
.plaf-content {
  max-width: 1715px;
  width: 89%;
  margin: 0 auto;
  padding: 8px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(90, 2, 2, 0.14);
  box-shadow: 0px 14px 34px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(70, 34, 12, 0.92);
  font-size: 16px;
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin-bottom: 20px;
}

/* Адаптив при 1035px и меньше */
@media (max-width: 1035px) {
  .plaf-hero {
    height: 300px;
  }

  .plaf-hero__content {
    max-width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .plaf-hero__text {
    font-size: 16px;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.50);
  }

  .plaf-hero__btn {
    padding: 13px 18px;
    border-radius: 12px;
  }

  .plaf-features-section {
    padding-top: 12px;
    padding-bottom: 14px;
  }

  .plaf-features {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
  }

  .plaf-feature {
    padding: 12px 14px;
  }

  .plaf-feature__text {
    font-size: 14px;
  }

  .plaf-title-section {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .plaf-title-row {
    gap: 12px;
  }

  .plaf-title-text {
    font-size: 24px;
  }

  .plaf-steps-section {
    padding-top: 14px;
    padding-bottom: 16px;
  }

  .plaf-steps {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
  }

  .plaf-step {
    padding: 16px 16px 18px 16px;
  }

  .plaf-step__icon img {
    width: 62px;
    height: 62px;
  }

  .plaf-step__title {
    font-size: 18px;
  }

  .plaf-step__desc {
    font-size: 14px;
  }

  .plaf-videos-section {
    padding-top: 14px;
    padding-bottom: 16px;
  }

  .plaf-videos {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
  }

  .plaf-video {
    padding: 12px;
  }

  .plaf-after-videos-section {
    padding-top: 8px;
    padding-bottom: 12px;
  }

  .plaf-after-videos {
    font-size: 14px;
    padding: 14px 16px;
    border-radius: 16px;
  }

  .plaf-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .plaf-gallery-thumb {
    height: 240px;
  }

  .plaf-gallery-caption {
    font-size: 15px;
    padding: 10px 12px;
  }

  .plaf-title2-section {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .plaf-title-desc {
    font-size: 16px;
    padding: 12px 14px;
  }

  .plaf-products-section {
    padding-top: 8px;
    padding-bottom: 20px;
  }

  .plaf-subheading-inline {
    font-size: 18px;
    padding: 9px 14px;
  }

  .plaf-lightbox__dialog {
    padding: 14px;
    border-radius: 16px;
  }

  .plaf-lightbox__nav {
    width: 48px;
    height: 48px;
    font-size: 36px;
    border-radius: 14px;
  }

  .plaf-lightbox__img {
    border-radius: 12px;
  }
}

/* Адаптив при 600px и меньше */
@media (max-width: 600px) {
  .plaf-hero {
    height: 240px;
  }

  .plaf-features {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .plaf-feature__icon {
    width: 40px;
    height: 40px;
  }

  .plaf-feature__icon img {
    width: 40px;
    height: 40px;
  }

  .plaf-title-row {
    gap: 10px;
  }

  .plaf-title-line {
    min-width: 18px;
  }

  .plaf-title-text {
    font-size: 22px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .plaf-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .plaf-step__head {
    gap: 8px;
  }

  .plaf-step__num {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .plaf-step__title {
    font-size: 17px;
  }

  .plaf-videos {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .plaf-video {
    padding: 10px;
  }

  .plaf-video .pg-video-player {
    border-radius: 12px;
  }

  .plaf-after-videos {
    padding: 12px 12px;
    font-size: 16px;
    border-radius: 14px;
  }

  .plaf-gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .plaf-gallery-thumb {
    height: 300px;
  }

  .plaf-gallery-caption {
    font-size: 14px;
    padding: 10px 12px;
  }

  .plaf-title-desc {
    padding: 10px 12px;
  }

  .plaf-subheading-inline {
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 10px;
  }

  a.button_regs {
    width: 100% !important;
  }

  .plaf-lightbox__nav {
    width: 44px;
    height: 44px;
    font-size: 34px;
    border-radius: 12px;
  }

  .plaf-lightbox__nav--prev {
    left: 8px;
  }

  .plaf-lightbox__nav--next {
    right: 8px;
  }

  .plaf-lightbox__close {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 26px;
  }
}


/* Авто-эмбед видео без oEmbed (быстро) */
.plaf-video__ratio{position:relative;padding-top:56.25%;height:0;overflow:hidden;border-radius:12px;}
.plaf-video__ratio iframe,.plaf-video__ratio video{position:absolute;top:0;left:0;width:100%;height:100%;}
