/*
 * Конверсионные элементы: первый экран, преимущества, мессенджеры,
 * ценовой блок, FAQ, липкая мобильная панель.
 * Цвета берутся из фирменного стиля сайта: синий #0087cb, красный #de2e2e, Exo 2.
 */
:root {
  --dm-blue: #0087cb;
  --dm-blue-dark: #006da5;
  --dm-navy: #062b45;
  --dm-red: #de2e2e;
  --dm-red-dark: #c01f1f;
  --dm-ink: #22282d;
  --dm-text: #595959;
  --dm-muted: #78838c;
  --dm-mist: #f2f6f9;
  --dm-line: #dbe4eb;
  --dm-viber: #7360f2;
  --dm-telegram: #229ed9;
  --dm-radius: 6px;
}

/* ---------- Кнопки ---------- */
.dm-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 26px;
  font-family: "Exo 2", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.dm-cta--primary,
.dm-cta--primary:active,
.dm-cta--primary:focus {
  background: var(--dm-red);
  color: #fff;
}
.dm-cta--primary:hover {
  background: var(--dm-red-dark);
  color: #fff;
}
.dm-cta--ghost,
.dm-cta--ghost:active,
.dm-cta--ghost:focus {
  border-color: var(--dm-blue);
  color: var(--dm-blue);
  background: transparent;
}
.dm-cta--ghost:hover {
  background: var(--dm-blue);
  color: #fff;
}
.dm-cta:focus-visible,
.dm-msg:focus-visible,
.dm-sticky__item:focus-visible,
.dm-faq__item summary:focus-visible,
.dm-quick__input:focus-visible {
  outline: 3px solid #ffc940;
  outline-offset: 2px;
}

/* ---------- Мессенджеры ---------- */
.dm-msg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--dm-line);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dm-ink);
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.dm-msg svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.dm-msg--viber svg { color: var(--dm-viber); }
.dm-msg--telegram svg { color: var(--dm-telegram); }
.dm-msg:hover { color: var(--dm-ink); border-color: currentColor; }
.dm-msg--viber:hover { border-color: var(--dm-viber); }
.dm-msg--telegram:hover { border-color: var(--dm-telegram); }

/* На тёмном фоне */
.dm-msg--hero,
.dm-msg--promo {
  min-height: 52px;
  padding: 0 22px;
  border-color: rgba(255, 255, 255, 0.45);
  border-radius: 26px;
  font-size: 15px;
  color: #fff;
}
.dm-msg--hero svg,
.dm-msg--promo svg { color: #fff; }
.dm-msg--hero:hover,
.dm-msg--hero:focus,
.dm-msg--promo:hover,
.dm-msg--promo:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* В шапке: круглые иконки */
.dm-header-msg {
  display: flex;
  gap: 8px;
  margin-left: 16px;
  align-items: center;
}
.dm-msg--header {
  width: 36px;
  min-height: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
}
.dm-msg--header span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.dm-msg--header svg { color: #fff; width: 20px; height: 20px; }
.dm-msg--header.dm-msg--viber { background: var(--dm-viber); }
.dm-msg--header.dm-msg--telegram { background: var(--dm-telegram); }
.dm-msg--header:hover { filter: brightness(1.1); }
.dm-header-contacts .custom { display: flex; align-items: center; }

.dm-footer-msg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* ---------- Первый экран ---------- */
.dm-hero {
  position: relative;
  padding: 64px 0 72px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6, 43, 69, 0.94) 0%, rgba(6, 43, 69, 0.84) 48%, rgba(6, 43, 69, 0.35) 100%),
    var(--dm-hero-bg, url(../../images/slider/slider.jpg)) center / cover no-repeat;
}
@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  .dm-hero[style*="--dm-hero-bg-set"] {
    background-image:
      linear-gradient(90deg, rgba(6, 43, 69, 0.94) 0%, rgba(6, 43, 69, 0.84) 48%, rgba(6, 43, 69, 0.35) 100%),
      var(--dm-hero-bg-set);
  }
}
.dm-hero__wr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
  padding: 0 15px;
}
.dm-hero__title {
  max-width: 15em;
  margin: 0 0 20px;
  padding: 0;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.12;
  text-transform: none;
  letter-spacing: 0;
  color: #fff;
  background: none;
}
.dm-hero__price {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 22px;
  line-height: 1;
}
.dm-hero__from {
  padding-bottom: 14px;
  font-size: 24px;
  font-weight: 500;
}
.dm-hero__num {
  font-size: 112px;
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.dm-hero__unit {
  white-space: nowrap;
  padding-bottom: 6px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.85);
}
.dm-hero__text {
  max-width: 34em;
  margin: 0 0 32px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}
.dm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.dm-hero__msg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Короткая форма */
.dm-quick {
  padding: 28px 28px 22px;
  border-radius: var(--dm-radius);
  background: #fff;
  color: var(--dm-text);
  box-shadow: 0 18px 40px rgba(3, 25, 40, 0.35);
}
.dm-quick__title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
  color: var(--dm-ink);
}
.dm-quick__text {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.45;
}
.dm-quick__label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dm-ink);
}
.dm-quick__label span {
  font-weight: 400;
  color: var(--dm-muted);
}
.dm-quick__input {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0 0 14px;
  padding: 0 14px;
  border: 1px solid #c9d6df;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-size: 17px;
  color: var(--dm-ink);
  box-sizing: border-box;
}
.dm-quick__input:focus { border-color: var(--dm-blue); outline: 0; }
.dm-quick__input[aria-invalid="true"] { border-color: var(--dm-red); }
.dm-quick__submit { width: 100%; margin-top: 4px; }
.dm-quick__submit[disabled] { opacity: 0.6; cursor: progress; }
.dm-quick__status {
  min-height: 0;
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
}
.dm-quick__status:empty { display: none; }
.dm-quick__status.is-error { color: var(--dm-red); }
.dm-quick__status.is-ok { color: #1f7a3a; }
.dm-quick__legal {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--dm-muted);
}
.dm-quick.is-sent .dm-quick__input,
.dm-quick.is-sent .dm-quick__label,
.dm-quick.is-sent .dm-quick__submit { display: none; }

/* ---------- Преимущества ---------- */
.dm-trust {
  background: #fff;
  border-bottom: 1px solid var(--dm-line);
}
.dm-trust__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.dm-trust__item {
  padding: 22px 20px;
  border-left: 1px solid var(--dm-line);
}
.dm-trust__item:first-child { border-left: 0; padding-left: 15px; }
.dm-trust__item strong {
  display: block;
  line-height: 1.3;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--dm-ink);
}
.dm-trust__item span {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: var(--dm-muted);
}

/* ---------- Цена в каталоге (поверх фото, как подпись вида) ---------- */
.dm-type-price {
  position: relative;
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-transform: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.dm-type-price--list {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--dm-blue);
  text-shadow: none;
}

/* ---------- Ценовой блок вида потолка ---------- */
/* Как и вводный текст вида потолка, блок стоит справа от рамки с заголовком.
 * z-index выше, чем у .dm-page-content (10): его коробка заходит под плавающий блок
 * и иначе перехватывает клики по кнопкам. */
.dm-pricebox {
  position: relative;
  z-index: 11;
  float: right;
  width: 100%;
  max-width: 700px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.1fr);
  gap: 24px 48px;
  margin: 0 0 56px;
  padding: 32px 36px;
  border-radius: var(--dm-radius);
  background: var(--dm-mist);
}
.dm-pricebox__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  text-transform: none;
  color: var(--dm-ink);
}
.dm-pricebox__value {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 0;
  line-height: 1;
  color: var(--dm-blue);
}
.dm-pricebox__from { padding-bottom: 8px; font-size: 20px; font-weight: 500; }
.dm-pricebox__num {
  font-size: 72px;
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.dm-pricebox__unit { white-space: nowrap; padding-bottom: 2px; font-size: 17px; font-weight: 500; line-height: 1.2; color: var(--dm-ink); }
.dm-pricebox__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  align-self: center;
}
.dm-pricebox__table th {
  padding: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  color: var(--dm-muted);
}
.dm-pricebox__table th:last-child,
.dm-pricebox__table td:last-child { text-align: right; }
.dm-pricebox__table td {
  padding: 10px 0;
  border-top: 1px solid var(--dm-line);
  color: var(--dm-ink);
}
.dm-pricebox__table td:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.dm-pricebox__foot,
.dm-pricebox__actions,
.dm-pricebox__msg { grid-column: 1 / -1; margin: 0; }
.dm-pricebox__foot { font-size: 14px; color: var(--dm-muted); }
.dm-pricebox__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dm-pricebox__msg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 15px;
}
.dm-pricebox__msg .dm-msg { background: #fff; }

/* ---------- Вопросы и ответы ---------- */
.dm-faq {
  clear: both;
  max-width: 820px;
  margin: 24px 0 72px;
}
.dm-faq__title {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 700;
  text-transform: none;
  color: var(--dm-ink);
}
.dm-faq__item { border-bottom: 1px solid var(--dm-line); }
.dm-faq__item summary {
  position: relative;
  padding: 18px 40px 18px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--dm-ink);
  list-style: none;
  cursor: pointer;
}
.dm-faq__item summary::-webkit-details-marker { display: none; }
.dm-faq__item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 400;
  color: var(--dm-blue);
}
.dm-faq__item[open] summary::after { content: "−"; }
.dm-faq__item p {
  max-width: 68ch;
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- Посадочные страницы ---------- */
.dm-land { padding: 48px 0 0; }
.dm-land .dm-pricebox {
  float: none;
  max-width: none;
  margin: 0 0 56px;
}
.dm-land__block { margin: 0 0 56px; }
.dm-land__h2 {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
  color: var(--dm-ink);
}
.dm-land__points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dm-land__points li {
  padding-top: 16px;
  border-top: 2px solid var(--dm-blue);
}
.dm-land__points strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--dm-ink);
}
.dm-land__points span {
  display: block;
  font-size: 16px;
  line-height: 1.55;
  color: var(--dm-text);
}
.dm-land__types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dm-land__types a {
  display: block;
  color: var(--dm-ink);
}
.dm-land__types img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--dm-radius);
  margin-bottom: 10px;
}
.dm-land__type-name { display: block; font-size: 17px; font-weight: 700; }
.dm-land__type-price { display: block; font-size: 15px; font-weight: 600; color: var(--dm-blue); }
.dm-land__types a:hover .dm-land__type-name { color: var(--dm-blue); }
.dm-land__text {
  max-width: 68ch;
  margin: 0 0 56px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--dm-text);
}
.dm-land__text p { margin: 0 0 1em; }
.dm-land__others { margin: 0 0 64px; }
.dm-land__others ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dm-land__others a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--dm-line);
  border-radius: 20px;
  font-weight: 600;
  color: var(--dm-ink);
}
.dm-land__others a:hover { border-color: var(--dm-blue); color: var(--dm-blue); }
.dm-land .dm-faq { margin-top: 0; }

@media (max-width: 767px) {
  .dm-land { padding-top: 32px; }
  .dm-land__h2 { font-size: 23px; }
  .dm-land__points { grid-template-columns: 1fr; gap: 18px; }
  .dm-land__types { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dm-land__text { font-size: 16px; }
}

/* ---------- Блок предложения и калькулятор ---------- */
.dm-discount-msg {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 0 24px;
}
.dm-calc-order-lead { margin: 0 0 16px; font-size: 15px; line-height: 1.5; }
.dm-calc-order-msg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 16px 0 0;
  font-size: 15px;
}

/* ---------- Кнопка «Рассчитать стоимость» у правого края (десктоп) ----------
 * Видна на всех страницах; прячется, когда калькулятор на экране.
 */
.dm-calcfab {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 870;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 92px;
  padding: 14px 8px 12px;
  border-radius: 8px 0 0 8px;
  background: var(--dm-blue);
  box-shadow: 0 8px 24px rgba(6, 43, 69, 0.25);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  transform: translateY(-50%);
  transition: transform 0.25s ease, background-color 0.2s;
}
.dm-calcfab:hover,
.dm-calcfab:focus,
.dm-calcfab:active { background: var(--dm-blue-dark); color: #fff; }
.dm-calcfab svg { width: 26px; height: 26px; }
.dm-calcfab.is-hidden { transform: translate(110%, -50%); }
.dm-calcfab:focus-visible { outline: 3px solid #ffc940; outline-offset: 2px; }
.dmc-anchor { scroll-margin-top: 16px; }

/* ---------- Кэтфиш (десктоп, после первого экрана) ----------
 * Стоит перед подвалом и прилипает к низу экрана; у подвала встаёт на его границу.
 */
.dm-catfish {
  position: sticky;
  bottom: 0;
  z-index: 880;
  background: #fff;
  border-top: 1px solid var(--dm-line);
  box-shadow: 0 -8px 24px rgba(6, 43, 69, 0.12);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
}
.dm-catfish.is-visible {
  transform: none;
  visibility: visible;
  transition: transform 0.3s ease, visibility 0s;
}
/* Попап на десктопе встаёт над кэтфишем, а не поверх него */
@media (min-width: 992px) {
  .dm-catfish-on .dm-nudge { bottom: 96px; }
}
.dm-catfish__wr {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 10px 56px 10px 15px;
}
.dm-catfish__text {
  flex: 1;
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  color: var(--dm-muted);
}
.dm-catfish__text strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--dm-ink);
}
.dm-catfish__actions { display: flex; gap: 10px; }
.dm-catfish__btn { min-height: 44px; padding: 0 22px; font-size: 15px; }
.dm-catfish__close,
.dm-nudge__close {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border: 0;
  border-radius: 50%;
  background: none;
  font-size: 24px;
  line-height: 1;
  color: var(--dm-muted);
  cursor: pointer;
}
.dm-catfish__close:hover,
.dm-nudge__close:hover { background: var(--dm-mist); color: var(--dm-ink); }
.dm-catfish__close:focus-visible,
.dm-nudge__close:focus-visible { outline: 3px solid #ffc940; outline-offset: 2px; }

/* ---------- Попап через 30 секунд: карточка в углу, без затемнения ---------- */
.dm-nudge {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 890;
  width: 340px;
  max-width: calc(100vw - 32px);
  padding: 24px 22px 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(6, 43, 69, 0.28);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.dm-nudge.is-visible { opacity: 1; transform: none; }
.dm-nudge[hidden] { display: none; }
.dm-nudge__close { top: 10px; right: 10px; margin-top: 0; }
.dm-nudge__title {
  margin: 0 32px 6px 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dm-ink);
}
.dm-nudge__text { margin: 0 0 14px; font-size: 15px; line-height: 1.45; color: var(--dm-text); }
.dm-nudge .dm-quick {
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
}
.dm-nudge .dm-quick__input { margin-bottom: 10px; }
.dm-nudge__msg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}
.dm-nudge__msg:empty { display: none; }

@media (max-width: 991px) {
  .dm-catfish,
  .dm-calcfab { display: none; }
  /* На мобильном шапка закреплена сверху — не прячем под ней начало калькулятора */
  .dmc-anchor { scroll-margin-top: 74px; }
  .dm-nudge {
    left: 12px;
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    padding: 16px 16px 14px;
  }
  /* На телефоне попап компактный: мессенджеры уже есть в нижней панели */
  .dm-nudge__text,
  .dm-nudge__msg { display: none; }
  .dm-nudge .dm-quick__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .dm-nudge__title { font-size: 18px; margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .dm-calcfab,
  .dm-catfish,
  .dm-nudge { transition: none; }
}

/* ---------- Верхний заголовок внутренних страниц ----------
 * Рамка заголовка давала 120–150 px пустоты под хлебными крошками. Сокращаем верхний отступ
 * только у заголовка страницы (не у секций главной и не у заголовков блоков в контенте). Соседний контент
 * выравнивается по этому отступу в assets/js/theme.js.
 */
@media (min-width: 1211px) {
  .dm-page:not(.dm-main) .dm-page-title.dm-margin:not(.dm-page-content .dm-page-title) {
    padding-top: 56px;
  }
}

/* ---------- Кнопка мобильного меню ----------
 * Иконка в теме 20×20 px — по ней трудно попасть пальцем. Зона нажатия 44×44, иконка прежняя.
 */
.dm-rmenu-toggle { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dm-rmenu-toggle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}
.dm-call a { position: relative; }
.dm-call a::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

/* ---------- Липкая мобильная панель ---------- */
.dm-sticky { display: none; }

@media (max-width: 991px) {
  .dm-hero { padding: 40px 0 48px; }
  .dm-hero__wr { grid-template-columns: 1fr; gap: 32px; }
  .dm-hero__title { font-size: 32px; }
  .dm-hero__num { font-size: 88px; }
  .dm-quick { max-width: 480px; }
  .dm-pricebox { float: none; max-width: none; clear: both; }
  .dm-header-msg { display: none; }

  .dm-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: grid;
    grid-template-columns: 1fr 0.8fr 1.1fr 1.3fr;
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    border-top: 1px solid var(--dm-line);
    box-shadow: 0 -6px 20px rgba(6, 43, 69, 0.12);
  }
  .dm-sticky__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 60px;
    padding: 0 4px;
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
    font-weight: 600;
    color: var(--dm-ink);
  }
  .dm-sticky__item svg { width: 22px; height: 22px; fill: currentColor; color: var(--dm-blue); }
  .dm-sticky__item + .dm-sticky__item { border-left: 1px solid var(--dm-line); }
  .dm-sticky__item--viber svg { color: var(--dm-viber); }
  .dm-sticky__item--telegram svg { color: var(--dm-telegram); }
  .dm-sticky__item--main,
  .dm-sticky__item--main:hover,
  .dm-sticky__item--main:focus {
    background: var(--dm-red);
    color: #fff;
  }
  .dm-sticky__item--main svg { color: #fff; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

@media (max-width: 767px) {
  .dm-hero { padding: 28px 0 36px; }
  .dm-hero__title { font-size: 26px; margin-bottom: 14px; }
  .dm-hero__from { font-size: 18px; padding-bottom: 8px; }
  .dm-hero__num { font-size: 72px; }
  .dm-hero__unit { font-size: 16px; }
  .dm-hero__text { font-size: 16px; margin-bottom: 24px; }
  .dm-hero__actions .dm-cta { width: 100%; }
  .dm-hero__msg { width: 100%; }
  .dm-hero__msg .dm-msg { flex: 1; justify-content: center; }
  .dm-quick { padding: 22px 18px 18px; }

  .dm-trust__list { grid-template-columns: 1fr 1fr; }
  .dm-trust__item { padding: 16px 15px; border-left: 0; border-top: 1px solid var(--dm-line); }
  .dm-trust__item:nth-child(-n+2) { border-top: 0; }
  .dm-trust__item:nth-child(even) { border-left: 1px solid var(--dm-line); }
  .dm-trust__item:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .dm-pricebox { grid-template-columns: 1fr; padding: 24px 18px; margin-bottom: 40px; }
  .dm-pricebox__num { font-size: 60px; }
  .dm-pricebox__actions .dm-cta { width: 100%; }
  .dm-faq__title { font-size: 24px; }
  .dm-faq__item summary { font-size: 16px; }
}
