/* ДОМ ФЕСТ: каталоги, мероприятия, форма записи. Палитра сайта: бордо, крем, песок. */
.dfx-wrap { --dfx-bg: #651927; --dfx-bg2: #7d2233; --dfx-cream: #f6f1e9; --dfx-sand: #d8b48a; --dfx-ink: #2a1a1d; --dfx-muted: #7a6a6d; --dfx-line: #e6dccf;
  max-width: 1180px; margin: 0 auto; padding: 8px 20px 56px; color: var(--dfx-ink); font-size: 16px; line-height: 1.5; box-sizing: border-box; }
.dfx-wrap *, .dfx-modal * { box-sizing: border-box; }
.dfx-empty { text-align: center; padding: 56px 16px; color: var(--dfx-muted); font-size: 18px; background: var(--dfx-cream); border-radius: 18px; }

.dfx-search { margin: 0 0 22px; }
.dfx-search input { width: 100%; max-width: 420px; height: 48px; padding: 0 18px; border: 1px solid var(--dfx-line); border-radius: 999px; background: #fff; font-size: 16px; }

/* сетка: сама подстраивается под любое число карточек и любую ширину экрана */
.dfx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; align-items: stretch; }
.dfx-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--dfx-line); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 26px -20px rgba(101, 25, 39, .55); transition: transform .25s, box-shadow .25s; }
.dfx-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(101, 25, 39, .6); }
.dfx-card[hidden] { display: none; }
.dfx-photo { position: relative; aspect-ratio: 4 / 3; background: var(--dfx-cream); overflow: hidden; }
.dfx-photo img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.dfx-noimg { width: 100%; height: 100%; display: grid; place-items: center; font-size: 64px; font-weight: 800; color: var(--dfx-sand); background: linear-gradient(135deg, var(--dfx-cream), #efe4d3); }
.dfx-logo { position: absolute; left: 14px; bottom: 14px; width: 64px; height: 64px; border-radius: 16px; background: #fff; display: grid; place-items: center; padding: 8px; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); }
.dfx-logo img { width: 100%; height: 100%; object-fit: contain; }
.dfx-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 22px; flex: 1; }
.dfx-body h3, .dfx-body h4 { margin: 0; font-size: 20px; line-height: 1.25; color: var(--dfx-bg); font-weight: 800; }
.dfx-text { margin: 0; color: #4a3a3d; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.dfx-text.is-open { -webkit-line-clamp: unset; display: block; }
.dfx-textmore { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--dfx-bg); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: underline; }

.dfx-btn { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--dfx-bg); color: var(--dfx-cream); font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; font-family: inherit; line-height: 1.2; }
.dfx-btn:hover { background: var(--dfx-bg2); transform: translateY(-1px); }
.dfx-btn-wide { width: 100%; margin-top: 8px; }
.dfx-btn-s { min-height: 40px; padding: 0 18px; font-size: 14px; margin-top: 6px; }

.dfx-more-wrap { text-align: center; margin-top: 28px; }
.dfx-more { min-height: 48px; padding: 0 30px; border: 2px solid var(--dfx-bg); background: transparent; color: var(--dfx-bg); border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer; font-family: inherit; }
.dfx-more:hover { background: var(--dfx-bg); color: var(--dfx-cream); }
.dfx-none { text-align: center; color: var(--dfx-muted); padding: 30px 0; }

/* галерея строителей */
.dfx-gal { position: relative; aspect-ratio: 4 / 3; background: var(--dfx-cream); overflow: hidden; }
.dfx-slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.dfx-slides::-webkit-scrollbar { display: none; }
.dfx-slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; margin: 0; }
.dfx-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--dfx-bg); font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .6); }
.dfx-prev { left: 10px; } .dfx-next { right: 10px; }
.dfx-count { position: absolute; right: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(42, 26, 29, .72); color: #fff; font-size: 13px; }

/* мероприятия */
.dfx-day { margin: 0 0 30px; }
.dfx-day > h3 { margin: 0 0 12px; font-size: 24px; color: var(--dfx-bg); }
.dfx-event { display: flex; gap: 20px; padding: 18px 20px; margin-bottom: 12px; background: #fff; border: 1px solid var(--dfx-line); border-radius: 18px; }
.dfx-time { flex: 0 0 76px; font-size: 22px; font-weight: 800; color: var(--dfx-bg); }
.dfx-ev-body { display: flex; flex-direction: column; gap: 6px; }
.dfx-ev-body h4 { margin: 0; font-size: 19px; color: var(--dfx-ink); }
.dfx-speaker { margin: 0; color: var(--dfx-muted); font-size: 15px; }
.dfx-videos { margin-top: 38px; }
.dfx-videos > h3 { margin: 0 0 16px; font-size: 24px; color: var(--dfx-bg); }
.dfx-grid-v { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.dfx-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
.dfx-link { color: var(--dfx-bg); font-weight: 700; text-decoration: underline; }

/* партнёры на главной */
.dfx-partners .dfx-card-p { text-align: center; }
.dfx-plogo { padding: 22px 22px 0; display: grid; place-items: center; height: 120px; }
.dfx-plogo img { max-width: 100%; max-height: 90px; object-fit: contain; }
.dfx-items { margin: 0; padding-left: 18px; text-align: left; font-size: 14.5px; color: #4a3a3d; }
.dfx-card-p .dfx-body { align-items: center; }

/* окно записи */
.dfx-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dfx-modal[hidden] { display: none; }
.dfx-modal-bg { position: absolute; inset: 0; background: rgba(42, 12, 20, .62); }
.dfx-modal-box { position: relative; width: 100%; max-width: 440px; max-height: 94vh; overflow: auto; background: #fff; border-radius: 22px; padding: 30px 26px 26px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6); font-family: inherit; color: #2a1a1d; }
.dfx-modal h3 { margin: 0 0 6px; font-size: 22px; color: #651927; }
.dfx-to { margin: 0 0 4px; font-size: 15px; } .dfx-lead { margin: 0 0 16px; color: #7a6a6d; font-size: 15px; }
.dfx-x { position: absolute; right: 12px; top: 10px; width: 38px; height: 38px; border: 0; background: none; font-size: 30px; line-height: 1; color: #7a6a6d; cursor: pointer; }
.dfx-f { display: block; margin-bottom: 12px; }
.dfx-f span { display: block; font-size: 13px; font-weight: 700; color: #7a6a6d; margin-bottom: 5px; }
.dfx-f input { width: 100%; height: 50px; padding: 0 16px; border: 1px solid #e6dccf; border-radius: 14px; font-size: 16px; background: #fff; margin: 0; }
.dfx-f input:focus { outline: 2px solid #d8b48a; border-color: #d8b48a; }
.dfx-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.dfx-chk { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; color: #4a3a3d; margin: 6px 0 12px; cursor: pointer; }
.dfx-chk input { margin: 3px 0 0; width: 20px; height: 20px; flex: none; accent-color: #651927; }
.dfx-chk span { display: block; } .dfx-chk a { color: #651927; text-decoration: underline; }
.dfx-err { margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: #fdecec; color: #9b1c1c; font-size: 14px; }
.dfx-ok { width: 64px; height: 64px; margin: 6px auto 12px; border-radius: 50%; display: grid; place-items: center; background: #651927; color: #f6f1e9; font-size: 34px; }
#dfxDone { text-align: center; } #dfxDone p { color: #7a6a6d; margin: 0 0 12px; }

@media (max-width: 640px) {
  .dfx-wrap { padding-left: 16px; padding-right: 16px; }
  .dfx-grid { gap: 18px; }
  .dfx-event { flex-direction: column; gap: 6px; }
  .dfx-time { flex-basis: auto; }
  .dfx-btn:not(.dfx-btn-s):not(.dfx-btn-wide) { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .dfx-card, .dfx-btn { transition: none; } }

/* ===== карточки дизайнеров и строителей: анимации, логотипы, окно «Подробнее» ===== */
@keyframes dfxIn { from { opacity: 0; transform: translateY(34px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dfxUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes dfxPop { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes dfxFade { from { opacity: 0; } to { opacity: 1; } }

.dfx-wrap .dfx-card { position: relative; border-radius: 24px; transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s; }
.dfx-wrap .dfx-card:hover { transform: translateY(-7px); box-shadow: 0 28px 48px -24px rgba(101, 25, 39, .75); }
.dfx-anim .dfx-card { opacity: 0; }
.dfx-anim .dfx-card.is-in { opacity: 1; animation: dfxIn .85s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: var(--d, 0s); }

/* фото на карточке: крупнее, с плавным приближением */
.dfx-wrap .dfx-gal { aspect-ratio: 1 / 1; }
.dfx-wrap .dfx-gal .dfx-slides img { object-position: 50% 24%; transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.dfx-wrap .dfx-card:hover .dfx-slides img { transform: scale(1.07); }
.dfx-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(to top, rgba(31, 8, 14, .62), rgba(31, 8, 14, 0)); pointer-events: none; z-index: 1; }
.dfx-wrap .dfx-gal .dfx-count { z-index: 3; bottom: 16px; }
.dfx-wrap .dfx-gal .dfx-nav { z-index: 3; }
@media (hover: hover) { .dfx-wrap .dfx-gal .dfx-nav { opacity: 0; transition: opacity .25s, background .2s; } .dfx-wrap .dfx-card:hover .dfx-gal .dfx-nav { opacity: 1; } }

/* логотип на каждой карточке (нет логотипа: монограмма) */
.dfx-wrap .dfx-logo { position: absolute; left: 14px; bottom: 14px; z-index: 3; width: auto; height: 58px; min-width: 58px; max-width: calc(100% - 110px); padding: 8px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .65); transition: transform .4s cubic-bezier(.2, .7, .2, 1); overflow: hidden; }
.dfx-wrap .dfx-card:hover .dfx-logo { transform: translateY(-3px) scale(1.05); }
.dfx-wrap .dfx-logo img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; margin: 0; }
.dfx-wrap .dfx-logo.wide { height: 50px; padding: 8px 14px; }
.dfx-wrap .dfx-logo.wide img { max-width: 190px; }
.dfx-mono { background: linear-gradient(135deg, #651927, #8f3046) !important; color: #f6f1e9 !important; -webkit-text-fill-color: #f6f1e9 !important; font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.dfx-photo .dfx-logo { z-index: 3; }

/* тексты карточки: цвета заданы жёстко, чтобы тема сайта их не перекрашивала */
html body .dfx-wrap .dfx-body { background: #fff; }
html body .dfx-wrap .dfx-body h3 { color: #651927 !important; -webkit-text-fill-color: #651927 !important; opacity: 1 !important; }
html body .dfx-wrap .dfx-body .dfx-role { color: #6b5a5d !important; -webkit-text-fill-color: #6b5a5d !important; margin: -4px 0 0; font-size: 14.5px; line-height: 1.35; }
html body .dfx-wrap .dfx-body .dfx-text { color: #3d2c2f !important; -webkit-text-fill-color: #3d2c2f !important; opacity: 1 !important; -webkit-line-clamp: 4; }
.dfx-offer-tag { margin: 0; padding: 9px 12px; border-radius: 12px; background: #f3e3bf; font-size: 14px; font-weight: 700; line-height: 1.35; position: relative; overflow: hidden; }
html body .dfx-wrap .dfx-offer-tag { color: #4a2a12 !important; -webkit-text-fill-color: #4a2a12 !important; }
.dfx-offer-tag::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; left: -80px; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); animation: dfxShine 4.5s ease-in-out infinite; }
@keyframes dfxShine { 0%, 60% { left: -80px; } 100% { left: 120%; } }

/* кнопки */
.dfx-btns { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 8px; }
.dfx-wrap .dfx-btns .dfx-btn { width: 100%; margin: 0; align-self: auto; position: relative; overflow: hidden; }
html body .dfx-wrap .dfx-btn:not(.dfx-btn-ghost) { color: #f6f1e9 !important; -webkit-text-fill-color: #f6f1e9 !important; background: #651927 !important; }
.dfx-wrap .dfx-btn.dfx-btn-ghost { background: transparent !important; color: #651927 !important; -webkit-text-fill-color: #651927 !important; box-shadow: inset 0 0 0 2px #651927; }
.dfx-wrap .dfx-btn.dfx-btn-ghost:hover { background: #f6f1e9 !important; }
.dfx-btn i { font-style: normal; display: inline-block; margin-left: 8px; transition: transform .3s; }
.dfx-btn:hover i { transform: translateX(6px); }
/* кнопки в одну строку, если помещаются; иначе переносятся друг под друга и растягиваются на всю ширину карточки */
.dfx-btns { flex-direction: row; flex-wrap: wrap; }
.dfx-wrap .dfx-btns .dfx-btn { width: auto; flex: 1 1 auto; max-width: 100%; min-width: 0; padding: 10px 22px; line-height: 1.25; text-align: center; white-space: normal; }
.dfx-wrap .dfx-btns .dfx-btn-ghost { flex-grow: 0; }
@media (max-width: 559px) { .dfx-wrap .dfx-btns .dfx-btn, .dfx-wrap .dfx-btns .dfx-btn-ghost { flex: 1 1 100%; } }
/* длинные слова и строки не вылезают за рамку карточки */
.dfx-card, .dfx-body { min-width: 0; }
.dfx-body h3, .dfx-body h4, .dfx-role, .dfx-text, .dfx-dbox h3, .dfx-dbox .dfx-role, .dfx-dbox p, .dfx-dbox li { overflow-wrap: anywhere; word-break: normal; hyphens: auto; }

/* ----- окно «Подробнее» ----- */
.dfx-modal:not([hidden]) .dfx-modal-box { animation: dfxPop .45s cubic-bezier(.2, .8, .2, 1); }
.dfx-modal:not([hidden]) .dfx-modal-bg { animation: dfxFade .35s ease; }
html body .dfx-modal-box.dfx-dbox { max-width: 1080px; width: 100%; padding: 0; border-radius: 26px; overflow: hidden; max-height: 94vh; background: #fff; display: block; }
html body .dfx-dbox > .dfx-x { position: absolute; z-index: 8; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .96); color: #651927 !important; -webkit-text-fill-color: #651927 !important; font-size: 28px; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6); display: grid; place-items: center; padding: 0 0 3px; transition: transform .25s; }
.dfx-dbox > .dfx-x:hover { transform: rotate(90deg); }
.dfx-d-grid { display: grid; grid-template-columns: minmax(0, 1fr); max-height: 94vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.dfx-d-media { background: #1f0d12; }
.dfx-dg-main { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; }
.dfx-dg-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.dfx-dg-track::-webkit-scrollbar { display: none; }
.dfx-dg-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; scroll-snap-align: center; cursor: zoom-in; margin: 0; max-width: none; }
.dfx-dg-main .dfx-nav { z-index: 4; }
.dfx-dg-prev { left: 12px; } .dfx-dg-next { right: 12px; }
.dfx-dg-main .dfx-count { bottom: 14px; right: 14px; z-index: 4; }
.dfx-dg-zoom { position: absolute; left: 12px; top: 12px; z-index: 4; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #651927; font-size: 20px; cursor: pointer; display: grid; place-items: center; padding: 0; transition: transform .25s; }
.dfx-dg-zoom:hover { transform: scale(1.1); }
.dfx-dg-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: none; background: #1f0d12; }
.dfx-dg-thumbs::-webkit-scrollbar { display: none; }
.dfx-dg-th { flex: 0 0 64px; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: #3a1d25; cursor: pointer; opacity: .6; transition: opacity .25s, border-color .25s, transform .25s; }
.dfx-dg-th img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.dfx-dg-th.on { opacity: 1; border-color: #d8b48a; transform: translateY(-2px); }
.dfx-d-info { padding: 24px 20px 0; background: #fff; }
.dfx-d-info > * { opacity: 0; animation: dfxUp .6s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--n, 0) * .055s + .12s); }
.dfx-d-head { display: flex; gap: 14px; align-items: center; margin: 0 48px 16px 0; }
.dfx-d-logo { flex: none; height: 56px; min-width: 56px; max-width: 150px; padding: 7px; border-radius: 14px; background: #fff; border: 1px solid #e6dccf; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dfx-d-logo img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; margin: 0; }
.dfx-d-logo.wide { max-width: 190px; padding: 7px 12px; height: 46px; }
.dfx-d-sec, .dfx-d-lead, .dfx-offer, .dfx-d-contacts { margin-bottom: 18px; }
.dfx-d-cta { position: sticky; bottom: 0; padding: 14px 0 18px; background: linear-gradient(to top, #fff 72%, rgba(255, 255, 255, 0)); z-index: 2; }
.dfx-d-cta .dfx-btn { width: 100%; }
.dfx-d-grid.no-media .dfx-d-info { padding-top: 30px; }

@media (min-width: 900px) {
  html body .dfx-modal-box.dfx-dbox { height: min(88vh, 780px); }
  .dfx-d-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); height: 100%; max-height: none; overflow: hidden; }
  .dfx-d-grid.no-media { grid-template-columns: minmax(0, 1fr); }
  .dfx-d-media { height: 100%; min-height: 0; }
  .dfx-dg { display: flex; flex-direction: column; height: 100%; }
  .dfx-dg-main { aspect-ratio: auto; flex: 1; min-height: 0; }
  .dfx-d-info { overflow-y: auto; height: 100%; padding: 40px 36px 0; }
  .dfx-d-cta { padding-bottom: 24px; }
}
@media (max-width: 600px) { .dfx-d-info { padding: 20px 18px 0; } .dfx-dbox h3 { font-size: 22px; } }

/* цвета текста в окне: жёстко, поверх любой темы */
.dfx-dbox h3 { margin: 0; font-size: 26px; line-height: 1.2; }
.dfx-dbox h4 { margin: 0 0 6px; font-size: 18px; }
.dfx-dbox p { margin: 0 0 10px; font-size: 16px; line-height: 1.55; }
.dfx-dbox ul { margin: 0 0 12px; padding-left: 20px; font-size: 16px; line-height: 1.55; }
.dfx-dbox li { margin: 0 0 6px; }
.dfx-d-lead p { font-size: 17px; }
html body .dfx-dbox .dfx-d-info, html body .dfx-dbox .dfx-d-info p, html body .dfx-dbox .dfx-d-info li, html body .dfx-dbox .dfx-d-info span { color: #3d2c2f !important; -webkit-text-fill-color: #3d2c2f !important; opacity: 1; text-shadow: none !important; }
html body .dfx-dbox h3 { color: #651927 !important; -webkit-text-fill-color: #651927 !important; }
html body .dfx-dbox h4 { color: #2a1a1d !important; -webkit-text-fill-color: #2a1a1d !important; }
html body .dfx-dbox .dfx-role, html body .dfx-dbox .dfx-note { color: #6b5a5d !important; -webkit-text-fill-color: #6b5a5d !important; }
html body .dfx-dbox .dfx-role { margin: 4px 0 0; font-size: 15px; }
.dfx-dbox .dfx-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.4; }
.dfx-offer { padding: 14px 16px; border-radius: 16px; background: #f3e3bf; display: flex; flex-direction: column; gap: 2px; }
html body .dfx-dbox .dfx-offer span { color: #4a2a12 !important; -webkit-text-fill-color: #4a2a12 !important; font-size: 17px; font-weight: 700; }
html body .dfx-dbox .dfx-offer b { color: #8a5a14 !important; -webkit-text-fill-color: #8a5a14 !important; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.dfx-d-contacts { padding-top: 16px; border-top: 1px solid #e6dccf; }
.dfx-d-contacts ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dfx-d-contacts li { margin: 0; }
.dfx-d-contacts li a, .dfx-d-contacts li > span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #f6f1e9; font-weight: 700; font-size: 15px; text-decoration: none; transition: background .2s, transform .2s; }
.dfx-d-contacts li a:hover { background: #efe4d3; transform: translateY(-2px); }
html body .dfx-dbox .dfx-d-contacts li a, html body .dfx-dbox .dfx-d-contacts li > span { color: #651927 !important; -webkit-text-fill-color: #651927 !important; }
html body .dfx-dbox .dfx-d-cta .dfx-btn { color: #f6f1e9 !important; -webkit-text-fill-color: #f6f1e9 !important; background: #651927 !important; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 999px; border: 0; font-weight: 700; font-size: 16px; cursor: pointer; font-family: inherit; }
html body .dfx-dbox .dfx-d-cta .dfx-btn:hover { background: #7d2233 !important; }
.dfx-modal .dfx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
html body .dfx-modal .dfx-btn-wide { background: #651927 !important; color: #f6f1e9 !important; -webkit-text-fill-color: #f6f1e9 !important; width: 100%; }
/* форма записи: цвета тоже жёстко */
html body .dfx-modal-box h3 { color: #651927 !important; -webkit-text-fill-color: #651927 !important; }
html body .dfx-modal-box .dfx-to, html body .dfx-modal-box .dfx-to b, html body .dfx-modal-box .dfx-lead, html body .dfx-modal-box .dfx-chk span, html body .dfx-modal-box .dfx-done p, html body .dfx-modal-box #dfxDone p { color: #3d2c2f !important; -webkit-text-fill-color: #3d2c2f !important; }
html body .dfx-modal-box .dfx-chk a { color: #651927 !important; -webkit-text-fill-color: #651927 !important; text-decoration: underline; }
html body .dfx-modal-box .dfx-f span { color: #6b5a5d !important; -webkit-text-fill-color: #6b5a5d !important; }
html body .dfx-modal-box .dfx-f input { color: #2a1a1d !important; -webkit-text-fill-color: #2a1a1d !important; background: #fff !important; }

/* просмотр фото на весь экран */
.dfx-lb { position: fixed; inset: 0; z-index: 100010; background: rgba(15, 5, 8, .95); display: flex; align-items: center; justify-content: center; animation: dfxFade .25s; }
.dfx-lb[hidden] { display: none; }
.dfx-lb > img { max-width: 92vw; max-height: 90vh; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); margin: 0; animation: dfxPop .35s cubic-bezier(.2, .8, .2, 1); }
.dfx-lb-x { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 30px; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.dfx-lb .dfx-nav { z-index: 2; }
.dfx-lb-prev { left: 14px; } .dfx-lb-next { right: 14px; }
.dfx-lb.one .dfx-nav { display: none; }

@media (prefers-reduced-motion: reduce) {
  .dfx-wrap *, .dfx-modal *, .dfx-lb, .dfx-lb * { animation: none !important; transition: none !important; }
  .dfx-d-info > * { opacity: 1; }
}
.dfx-wrap .dfx-gal .dfx-count { top: 14px; bottom: auto; right: 14px; }
.dfx-wrap .dfx-logo { max-width: calc(100% - 28px); }
.dfx-wrap .dfx-logo.wide { height: auto; min-height: 44px; padding: 10px 14px; }
.dfx-wrap .dfx-logo.wide img { height: auto; width: 100%; max-width: 230px; }
.dfx-d-logo.wide { height: auto; min-height: 40px; max-width: 220px; }
.dfx-d-logo.wide img { height: auto; width: 100%; }
/* галерея в окне: размер задаётся рамкой, а не размерами самих фото */
.dfx-dg-main { min-height: 0; }
.dfx-dg-track { position: absolute; inset: 0; height: auto; }
@media (min-width: 900px) { .dfx-d-grid { grid-template-rows: minmax(0, 1fr); } }
@media (min-width: 900px) { #dfxDetailBody { height: 100%; } }
@media (max-width: 899px) { .dfx-dg-main { aspect-ratio: 4 / 3.5; } .dfx-dg-th { flex-basis: 56px; width: 56px; height: 56px; } }

/* крестик окна заявки: всегда сверху и нормального размера (тема раздувала кнопку, а заголовок перекрывал её и «съедал» клик) */
html body .dfx-modal-box .dfx-x { z-index: 20; width: 44px !important; height: 44px !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; display: flex; align-items: center; justify-content: center; border-radius: 50%; line-height: 1 !important; font-size: 30px; right: 10px; top: 10px; }
html body .dfx-modal-box .dfx-x:hover { background: rgba(101, 25, 39, .08); }
html body .dfx-modal-box h3 { padding-right: 52px; position: relative; z-index: 1; }
