/* Стили блоков конструктора: фоны, отступы, видимость, общие блоки, попапы. Подключается после site.css */
.bgx { transition: none; }
.bg-cream { background: var(--s1, #FDF5F1); color: #2A2635; } .bg-white { background: #fff; color: #2A2635; }
.bg-dark { background: #2A2635; color: #fff; } .bg-pink { background: #FD478F; color: #fff; } .bg-teal { background: #38B3CE; color: #fff; }
.bg-dark .sub, .bg-pink .sub, .bg-teal .sub { color: rgba(255,255,255,.82); }
.sec.pad-s { padding-block: clamp(28px, 4vw, 48px); } .sec.pad-l, .welcome.pad-l { padding-block: clamp(80px, 12vw, 176px); } .welcome.pad-s { padding-block: 40px; }
@media (max-width: 760px) { .hide-m { display: none !important; } }
@media (min-width: 761px) { .hide-d { display: none !important; } }
.blk-body { max-width: 760px; font-size: 18px; line-height: var(--lh, 1.6); margin-top: 18px; } .blk-body p { margin: 0 0 14px; } .blk-body.light { color: rgba(255,255,255,.88); }
.blk-text .center .blk-body { margin-inline: auto; }
.blk-img { margin: 0; } .blk-img img { display: block; max-width: 100%; height: auto; border-radius: 28px; margin: 0 auto; } .blk-img.w-narrow img { max-width: 420px; } .blk-img.w-wide img { max-width: 900px; } .blk-img.w-full img { width: 100%; max-width: none; }
.blk-img figcaption { margin-top: 12px; color: var(--txt-muted, #6A6577); font-size: 15px; }
.blk-spacer { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 20px; }
/* Попапы */
.dl-popup { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 20px; background: rgba(20,18,28,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dl-popup[hidden] { display: none; }
.dl-popup-card { position: relative; width: min(100%, 440px); max-height: calc(100% - 24px); overflow: auto; text-align: center; padding: 28px 26px 26px; border-radius: 32px; background: #fff; color: #2A2635; box-shadow: 0 24px 60px rgba(0,0,0,.45); animation: popin .35s cubic-bezier(.4,1.5,.5,1); }
.dl-popup-card h3 { font-size: 26px; margin: 8px 0 10px; } .dl-popup-card p { margin: 0 0 18px; color: #6A6577; line-height: 1.6; }
.dl-popup-img { display: block; max-width: 100%; max-height: 220px; margin: 0 auto 12px; border-radius: 20px; }
.dl-popup-x { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f1ebe7; color: #2A2635; font-size: 22px; cursor: pointer; }
@keyframes popin { from { transform: translateY(40px) scale(.92); opacity: 0; } }

/* Верстка для телефона: настройки блока «Телефон: …» из админ-панели */
@media (max-width: 760px) {
  .sec.m-pad-s { padding-block: 28px; } .sec.m-pad-l { padding-block: 96px; } .welcome.m-pad-s { padding-block: 28px; } .welcome.m-pad-l { padding-block: 96px; }
  .m-al-c .wrap, .m-al-c .blk-body { text-align: center; margin-inline: auto; } .m-al-l .wrap, .m-al-l .blk-body { text-align: left; }
  .m-cols-1 .grid { grid-template-columns: 1fr !important; } .m-cols-2 .grid { grid-template-columns: repeat(2, 1fr) !important; }
  .m-fs-s p, .m-fs-s .sub, .m-fs-s li, .m-fs-s .blk-body { font-size: 14px; } .m-fs-l p, .m-fs-l .sub, .m-fs-l li, .m-fs-l .blk-body { font-size: 19px; }
}
