/* Подвал B + компактная карта на главной. Подключается из el.head.tpl */
:root {
  --ft-ink: #121621;
  --ft-text: #2b3142;
  --ft-muted: #6b7280;
  --ft-faint: #8a90a0;
  --ft-line: #dde2ec;
  --ft-bg: #f4f6fa;
  --ft-tg: #27a7e7;
  --ft-wa: #25d366;
  --ft-max: #5b4bff;
}

.ft {
  margin-top: 56rem;
  background: var(--ft-bg);
  color: var(--ft-text);
  font-size: 16rem;
  line-height: 1.45;
  position: relative;
  font-weight: 500;
}
.ft > .container { padding-top: 48rem; padding-bottom: 30rem; }
.ft.ft--inner > .container { padding-top: 40rem; }
.ft.ft--inner .ft-grid { margin-top: 0; padding-top: 0; border-top: 0; }

.ft-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 560rem) 1fr;
  align-items: center;
  min-height: 400rem;
  height: 400rem;
  border-radius: 24rem;
  overflow: hidden;
  background: #141a26 url("/assets/templates/default/img/footer-cta-bed-dark.jpg") 50% 58% / cover no-repeat;
}
.ft-cta__photo { position: absolute; inset: 0; z-index: 0; }
.ft-cta__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; display: block;
}
.ft-cta__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(14,19,30,.94) 0%, rgba(14,19,30,.86) 30%,
    rgba(14,19,30,.5) 50%, rgba(14,19,30,.08) 68%, rgba(14,19,30,0) 80%);
}
.ft-cta__body { position: relative; z-index: 1; padding: 40rem 24rem 40rem 48rem; }
.ft-cta__title {
  font-size: 34rem; line-height: 1.12; font-weight: 700; color: #fff;
  margin: 0 0 14rem; letter-spacing: -0.015em; max-width: 12em;
}
.ft-cta__text { margin: 0 0 26rem; color: rgba(255,255,255,.74); font-weight: 400; font-size: 16rem; max-width: 30em; }
.ft-cta__actions { display: flex; flex-wrap: wrap; gap: 12rem; }

.ft-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8rem;
  height: 50rem; padding: 0 24rem; border-radius: 999px;
  font: inherit; font-size: 16rem; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.ft-btn--primary {
  background: var(--color-main); color: #fff;
  box-shadow: 0 12rem 24rem -14rem rgba(0,81,248,.7);
}
.ft-btn--primary:hover { background: var(--color-second); transform: translateY(-1px); color: #fff; }
.ft-btn--ghost {
  background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35);
}
.ft-btn--ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; color: #fff; }
.ft-btn svg { width: 18rem; height: 18rem; flex: none; }

.ft-facts {
  list-style: none; margin: 28rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16rem;
}
.ft-facts li {
  display: flex; gap: 14rem; align-items: flex-start;
  padding: 4rem 0 4rem 18rem;
  border-left: 1px solid var(--ft-line);
}
.ft-facts li:first-child { border-left: 0; padding-left: 0; }
.ft-facts__num { font-size: 30rem; line-height: 1; font-weight: 700; color: var(--ft-ink); letter-spacing: -0.02em; white-space: nowrap; }
.ft-facts__num small { font-size: 14rem; font-weight: 700; color: var(--color-main); margin-left: 2rem; }
.ft-facts__cap { font-size: 14rem; line-height: 1.35; color: var(--ft-muted); font-weight: 400; margin-top: 2rem; }

.ft-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr 1.55fr;
  gap: 32rem 28rem;
  margin-top: 40rem;
  padding-top: 36rem;
  border-top: 1px solid var(--ft-line);
  align-items: start;
}
.ft-title {
  font-family: 'geist', Arial, sans-serif;
  font-size: 12rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ft-ink); margin: 0 0 12rem;
}
.ft-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 6rem; }
.ft-link {
  font-family: 'geist', Arial, sans-serif;
  color: var(--ft-text); text-decoration: none; font-weight: 400; font-size: 13.5rem;
  line-height: 1.28; letter-spacing: .01em;
  transition: color .15s;
}
.ft-link:hover, .ft-link.active { color: var(--color-main); }

.ft-brand__logo { display: inline-block; line-height: 0; }
.ft-brand__logo img { height: 38rem; width: auto; display: block; }
.ft-brand__text {
  margin: 16rem 0 0;
  color: var(--ft-muted);
  font-family: 'geist', Arial, sans-serif;
  font-weight: 300;
  font-size: 13rem;
  line-height: 1.4;
  max-width: 28em;
}

.ft-social { display: flex; gap: 12rem; margin-top: 22rem; }
.ft-social a {
  display: inline-block; line-height: 0; border-radius: 50%;
  transition: transform .18s, box-shadow .18s;
}
.ft-social a:hover { transform: translateY(-2px); box-shadow: 0 10rem 20rem -10rem rgba(18, 22, 33, .5); }
.ft-social a svg { width: 40rem; height: 40rem; display: block; border-radius: 50%; }
.ft-social--line a { border: 1px solid var(--ft-line); background: #fff; }
.ft-social--line a svg { width: 38rem; height: 38rem; }
.ft-social--line a svg circle { fill: transparent; }
.ft-social--line a svg path { fill: var(--ft-ink); transition: fill .18s; }
.ft-social--line a:hover { box-shadow: none; border-color: var(--color-main); }
.ft-social--line a:hover svg path { fill: var(--color-main); }

.ft-ratings { display: flex; flex-wrap: wrap; align-items: center; gap: 8rem; margin-top: 18rem; }
.ft-badge { display: block; line-height: 0; background: transparent; border: 0; padding: 0; overflow: visible; }
.ft-badge iframe { border: 0; display: block; background: transparent; }
.ft-badge--2gis iframe { width: 150px; height: 50px; }
.ft-badge--yandex { display: none !important; }

.ft-contact { display: grid; gap: 12rem; justify-items: start; }
.ft-phone { display: block; text-decoration: none; color: var(--ft-ink); }
.ft-phone__num, .ft-phone__cap { display: block; }
.ft-phone__num { font-family: 'geist', Arial, sans-serif; font-size: 20rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; transition: color .15s; }
.ft-phone:hover .ft-phone__num { color: var(--color-main); }
.ft-phone__cap { font-size: 12rem; color: var(--ft-muted); font-weight: 400; margin-top: 2rem; }

.ft-msg { display: flex; flex-wrap: wrap; gap: 8rem; }
.ft-msg a {
  display: inline-flex; align-items: center; gap: 6rem;
  height: 32rem; padding: 0 12rem 0 8rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--ft-line);
  text-decoration: none; font-size: 13rem; font-weight: 600; color: var(--ft-ink);
  transition: border-color .15s, transform .15s;
}
.ft-msg a:hover { transform: translateY(-1px); }
.ft-msg a svg { width: 20rem; height: 20rem; display: block; }
.ft-msg .is-tg:hover { border-color: var(--ft-tg); }
.ft-msg .is-max:hover { border-color: var(--ft-max); }

.ft-addr {
  margin: 0;
  font-size: 13rem;
  line-height: 1.4;
  font-weight: 400;
  color: var(--ft-muted);
  max-width: 28em;
}
.ft-addr a {
  display: inline;
  margin-left: 6rem;
  color: var(--color-main);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.ft-addr a:hover { text-decoration: underline; }

.ft-bottom {
  margin-top: 40rem; padding-top: 22rem; border-top: 1px solid var(--ft-line);
  display: flex; flex-wrap: wrap; gap: 12rem 40rem; align-items: flex-start; justify-content: space-between;
}
.ft-legal { font-family: 'geist', Arial, sans-serif; font-size: 11rem; line-height: 1.4; color: var(--ft-faint); font-weight: 300; }
.ft-legal p { margin: 0 0 3rem; }
.ft-legal a { color: var(--ft-faint); text-decoration: underline; text-underline-offset: 2px; }
.ft-legal a:hover { color: var(--color-main); }
.ft-legal .dot { margin: 0 6rem; opacity: .6; }
.ft-top {
  display: inline-flex; align-items: center; gap: 8rem; flex: none;
  font-size: 13rem; font-weight: 600; color: var(--ft-text); text-decoration: none;
  padding: 8rem 14rem 8rem 12rem; border-radius: 999px; border: 1px solid var(--ft-line); background: #fff;
}
.ft-top:hover { color: var(--color-main); border-color: var(--color-main); }
.ft-top svg { width: 16rem; height: 16rem; }

/* карта «Адрес магазина»: две колонки, 280rem, без рекламной полосы */
.map.map--split { padding-top: 48rem; padding-bottom: 8rem; }
.map--split .map-split {
  display: grid;
  grid-template-columns: 340rem minmax(0, 1fr);
  gap: 20rem;
  align-items: stretch;
}
.map--split .map-card {
  background: var(--ft-bg);
  border-radius: 16rem;
  padding: 28rem 24rem;
  display: flex;
  flex-direction: column;
  gap: 14rem;
}
.map--split .map-title { margin: 0; font-size: 22rem; font-weight: 700; letter-spacing: -0.02em; }
.map--split .map-card p { margin: 0; font-size: 15rem; font-weight: 500; line-height: 1.45; color: var(--ft-text); }
.map--split .map-card .lbl { display: block; font-size: 12rem; color: var(--ft-faint); font-weight: 400; margin-bottom: 2rem; }
.map--split .map-card a.tel { color: var(--ft-ink); font-size: 20rem; font-weight: 700; text-decoration: none; }
.map--split .map-card a.tel:hover { color: var(--color-main); }
.map--split .map-ya {
  display: inline-flex; align-items: center; gap: 8rem; margin-top: auto;
  height: 40rem; padding: 0 14rem; border-radius: 999px; width: fit-content;
  background: #fff; border: 1px solid var(--ft-line); text-decoration: none;
  font-size: 13rem; font-weight: 600; color: var(--ft-ink);
}
.map--split .map-ya:hover { border-color: var(--color-main); color: var(--color-main); }
.map--split .map-frame {
  overflow: hidden; border-radius: 16rem; background: #e8edf5; min-height: 280rem;
}
.map--split .map-iframe { width: 100%; height: 280rem; display: block; border: 0; }

@media (max-width: 1100px) {
  .ft-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .ft-grid .ft-col--contact { grid-column: 1 / -1; }
  .ft-contact { grid-template-columns: repeat(3, auto); justify-content: start; gap: 24rem 40rem; align-items: start; }
  .map--split .map-split { grid-template-columns: 280rem minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .ft-cta {
    grid-template-columns: 1fr;
    min-height: 420rem;
    height: auto;
    align-items: end;
    background-position: 52% 62%;
  }
  .ft-cta__photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    aspect-ratio: auto;
  }
  .ft-cta__photo img { object-position: 52% 62%; }
  .ft-cta__photo::after {
    background: linear-gradient(180deg,
      rgba(14,19,30,.12) 0%,
      rgba(14,19,30,.28) 38%,
      rgba(14,19,30,.78) 68%,
      rgba(14,19,30,.94) 100%);
  }
  .ft-cta__body {
    margin-top: 0;
    padding: 180rem 24rem 24rem;
    position: relative;
    z-index: 1;
  }
  .ft-cta__title { font-size: 26rem; max-width: none; }
  .ft-cta__text { margin-bottom: 18rem; }
  .ft-facts { grid-template-columns: 1fr 1fr; }
  .ft-facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 32rem 24rem; }
  .ft-grid .ft-col--brand { grid-column: 1 / -1; }
  .ft-contact { grid-template-columns: 1fr 1fr; }
  .map--split .map-split { grid-template-columns: 1fr; }
  .map--split .map-iframe, .map--split .map-frame { height: 220rem; min-height: 220rem; }
}
@media (max-width: 560px) {
  .ft > .container { padding-top: 24rem; padding-bottom: 24rem; }
  .ft-cta { min-height: 360rem; border-radius: 16rem; }
  .ft-cta__body { padding: 150rem 16rem 18rem; }
  .ft-cta__title { font-size: 22rem; margin-bottom: 8rem; }
  .ft-cta__text { font-size: 14rem; margin-bottom: 14rem; }
  .ft-cta__actions { flex-direction: column; gap: 8rem; }
  .ft-btn { width: 100%; height: 46rem; font-size: 15rem; }
  .ft-facts { gap: 14rem 12rem; margin-top: 22rem; }
  .ft-facts li { padding-left: 12rem; }
  .ft-facts__num { font-size: 22rem; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 28rem 16rem; margin-top: 28rem; padding-top: 28rem; }
  .ft-grid .ft-col--contact { order: -1; grid-column: 1 / -1; }
  .ft-contact { grid-template-columns: 1fr; }
  .ft-grid .ft-col--brand { grid-column: 1 / -1; }
  .ft-link { font-size: 13rem; }
  .ft-phone__num { font-size: 20rem; }
  .ft-social a svg { width: 36rem; height: 36rem; }
  .ft-social--line a svg { width: 34rem; height: 34rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ft * { transition: none !important; }
}

/* Блог: превью квадратные — обложка 1:1 (как oblozhka.jpg) не режется сверху */
.blog { padding: 8rem 0 32rem; }
.blog_items { --bs-gutter-x: 16rem; --bs-gutter-y: 16rem; }
.blog_items > [class*="col"] { display: flex; }
.blog_items > [class*="col"] > a { display: flex; width: 100%; height: 100%; }
.blog .tplproduct { display: flex; flex-direction: column; width: 100%; height: 100%; }
.blog .tplproduct > .row--100 { flex: 1 1 auto; width: 100%; }
.blog .tplproduct-gallery { padding-bottom: 10px; }
.blog .tplproduct-item {
  aspect-ratio: 4 / 3;
  height: auto;
  background-color: #f2f4f8;
}
.blog .tplproduct-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.blog .tplproduct-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.94em;
}
.blog .tplproduct-options {
  font-size: 14rem;
  line-height: 1.45;
  color: #4a4f63;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.35em;
}
.blog .tplproduct-status__item { text-transform: none; letter-spacing: 0; }
.content .blog .pagination {
  list-style: none;
  padding: 0;
  margin-top: 64rem;
  overflow: visible;
  height: auto;
}
.content .blog .pagination li {
  list-style: none;
  margin: 0 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.content .blog .pagination .control a,
.content .blog .pagination .disabled {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40rem;
  height: 40rem;
}
/* Статьи блога: вёрстка внутри поля content (классы art-*) */
.content .art { max-width: none; width: 100%; font-size: 16rem; line-height: 1.6; color: #1d2130; }
.content .art p { margin: 0 0 14rem; }
.content .art h2 { font-size: 24rem; line-height: 1.3; font-weight: 700; margin: 48rem 0 16rem; }
.content .art h2 span { color: var(--color-main); }
.art-lead { font-size: 18rem; line-height: 1.55; color: #3b4157; margin: 0 0 24rem; }

.art-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12rem; margin: 24rem 0 8rem; }
.art-pair--wide { grid-template-columns: 1fr 1fr; }
.art-shot { position: relative; display: block; margin: 0; border-radius: 12rem; overflow: hidden; background: #f2f4f8; }
.art-shot img { display: block; width: 100% !important; height: auto !important; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.art-pair--wide .art-shot img { aspect-ratio: 3 / 2; }
.art-figure { display: block; margin: 20rem 0 0; border-radius: 12rem; overflow: hidden; background: #f2f4f8; }
.art-figure img { display: block; width: 100% !important; height: auto !important; max-width: 100%; }
.art-shot__tag {
  position: absolute; top: 12rem; left: 12rem; z-index: 1;
  padding: 0 14rem; height: 30rem; line-height: 30rem; border-radius: 8rem;
  font-size: 13rem; font-weight: 600; color: #fff; background: #0051F8;
  box-shadow: 0 1rem 4rem rgba(12,12,13,.08);
}
.art-shot__tag--night { background: #1d2130; }
@media (hover: hover) { .art-shot:hover img { transform: scale(1.03); } }
.content .art .art-caption { font-size: 14rem; line-height: 1.45; color: #6b7088; margin: 10rem 0 8rem; }

.art-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12rem; margin: 28rem 0 8rem; }
.art-stat { padding: 18rem; border-radius: 12rem; background: #f5f8ff; border: 1px solid #dbe6ff; }
.art-stat__label { font-size: 13rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #0051F8; margin-bottom: 6rem; }
.art-stat__num { font-size: 26rem; font-weight: 700; line-height: 1.15; margin-bottom: 4rem; }
.art-stat__text { font-size: 14rem; line-height: 1.4; color: #4a4f63; }
.art-stat--win { background: #0051F8; border-color: #0051F8; }
.art-stat--win .art-stat__label, .art-stat--win .art-stat__num, .art-stat--win .art-stat__text { color: #fff; }

.content .art .art-steps { list-style: none; padding: 0; margin: 16rem 0; display: grid; gap: 10rem; counter-reset: art; }
.content .art .art-steps li { margin: 0; list-style: none; }
.art-steps li { position: relative; padding: 12rem 16rem 12rem 52rem; border-radius: 10rem; background: #f7f8fb; counter-increment: art; }
.art-steps li::before {
  content: counter(art); position: absolute; left: 14rem; top: 50%; transform: translateY(-50%);
  width: 26rem; height: 26rem; border-radius: 50%; background: #0051F8; color: #fff;
  font-size: 13rem; font-weight: 700; line-height: 26rem; text-align: center;
}

.art-note { margin: 20rem 0; padding: 16rem 20rem; border-left: 4rem solid #0051F8; background: #f5f8ff; border-radius: 0 12rem 12rem 0; }
.art-note p:last-child { margin-bottom: 0; }
.art-note b { color: #0051F8; }

.art-table { overflow-x: auto; margin: 18rem 0 20rem; border: 1px solid #e3e7f0; border-radius: 12rem; }
.art-table table { width: 100%; border-collapse: collapse; min-width: 520rem; font-size: 15rem; }
.art-table th, .art-table td { padding: 12rem 16rem; text-align: left; border-bottom: 1px solid #e3e7f0; }
.art-table th { background: #f5f8ff; font-weight: 600; font-size: 13rem; text-transform: uppercase; letter-spacing: .03em; color: #4a4f63; }
.art-table tr:last-child td { border-bottom: 0; }
.art-table .is-win td { background: #0051F8; color: #fff; font-weight: 600; }

.art-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12rem; margin: 18rem 0; }
.art-compare__col { padding: 18rem 20rem; border-radius: 12rem; border: 1px solid #e3e7f0; }
.art-compare__col--after { border-color: #0051F8; background: #f5f8ff; }
.art-compare__title { font-weight: 700; font-size: 17rem; margin-bottom: 8rem; }
.art-compare__col--after .art-compare__title { color: #0051F8; }
.art-compare__col p:last-child { margin-bottom: 0; }

.art-scheme { margin: 20rem 0; padding: 18rem; border-radius: 12rem; background: #f7f8fb; }
.art-scheme__row { display: flex; align-items: stretch; height: 56rem; border-radius: 8rem; overflow: hidden; font-size: 13rem; font-weight: 600; }
.art-scheme__row + .art-scheme__row { margin-top: 10rem; }
.art-scheme__seg { display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 8rem; line-height: 1.2; }
.art-scheme__seg--wall { flex: 0 0 18%; background: #1d2130; color: #fff; }
.art-scheme__seg--free { flex: 1 1 auto; background: #dbe6ff; color: #0051F8; }
.art-scheme__seg--bed { flex: 1 1 auto; background: #0051F8; color: #fff; }
.art-scheme__seg--pass { flex: 0 0 26%; background: #fff; color: #4a4f63; border-left: 1px dashed #c7cede; }
.art-scheme__label { font-size: 13rem; color: #6b7088; margin: 0 0 6rem; }

.art-cta { margin: 48rem 0 8rem; padding: 28rem; border-radius: 16rem; background: #0051F8; color: #fff; }
.art-cta__title { font-size: 22rem; font-weight: 700; line-height: 1.3; margin-bottom: 8rem; }
.art-cta p { color: rgba(255,255,255,.88); margin-bottom: 18rem; }
.art-cta__btns { display: flex; flex-wrap: wrap; gap: 10rem; }
.content .art-cta a.art-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 48rem; padding: 0 24rem;
  border-radius: 24rem; font-weight: 600; font-size: 15rem; text-decoration: none;
  background: #fff; color: #0051F8;
}
.content .art-cta a.art-btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }

@media (max-width: 767px) {
  .content .art h2 { font-size: 20rem; margin-top: 36rem; }
  .art-lead { font-size: 16rem; }
  .art-pair, .art-pair--wide, .art-compare { grid-template-columns: 1fr; }
  .art-stats { grid-template-columns: 1fr; }
  .art-stat__num { font-size: 22rem; }
  .art-scheme__row { height: 48rem; font-size: 11rem; }
  .art-cta { padding: 22rem 18rem; }
  .art-cta__btns { flex-direction: column; }
  .content .art-cta a.art-btn { width: 100%; }
}

@media (min-width: 768px) {
  .blog { padding: 16rem 0 48rem; }
  .blog_items { --bs-gutter-x: 32rem; --bs-gutter-y: 32rem; }
  .blog .tplproduct-options { font-size: 15rem; min-height: 4.35em; }
}

/* ===== dm-article blog layout (studiya 1:1 mockup) ===== */
/* Блог DetalMaster: dm-article = превью 8788 + live overrides */
/* Цвета и ширина — как на detalmaster.ru */
.dm-article {
  --dm-ink: #1a1a1a;
  --dm-muted: #5a6570;
  --dm-blue: #0051F8;       /* бренд detalmaster */
  --dm-blue-hover: #003fcc;
  --dm-pale: #f5f8ff;       /* фон плашек на сайте */
  --dm-line: #e3e8f0;
  --dm-soft: #f7f9fc;
  --dm-ink-soft: #3a4550;

  /* .container сайта ≈ 1140px */
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 0 52px;
  overflow: hidden;
  background: #fff;
  color: var(--dm-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.dm-article *,
.dm-article *::before,
.dm-article *::after {
  box-sizing: border-box;
}

.dm-article a {
  color: var(--dm-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.dm-article a:hover {
  color: var(--dm-blue-hover);
  text-decoration-thickness: 2px;
}

.dm-article a:focus-visible {
  outline: 3px solid #7db4ef;
  outline-offset: 5px;
}

.dm-article p {
  margin: 0 0 22px;
}

.dm-article h1,
.dm-article h2 {
  color: var(--dm-ink);
  font-weight: 700;
  text-wrap: balance;
}

.dm-article h1 {
  margin: 0;
  font-size: clamp(32px, 3.7vw, 46px);
  line-height: 1.14;
  letter-spacing: -1.5px;
}

.dm-article h2 {
  margin: 0 0 23px;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.25;
  letter-spacing: -.7px;
}

.dm-hero {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: 42px;
  padding: 48px 24px 40px;
  background: linear-gradient(145deg, var(--dm-pale) 0%, #fff 72%);
}

.dm-title-line {
  width: 54px;
  height: 4px;
  margin-bottom: 25px;
  border-radius: 3px;
  background: var(--dm-blue);
}

.dm-article figure {
  margin: 0;
}

.dm-photo {
  overflow: hidden;
  border-radius: 12px;
  background: var(--dm-soft);
  border: 1px solid var(--dm-line);
}

.dm-photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Обложка квадратная, без обрезки надписей */
.dm-cover img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
}

.dm-article figcaption {
  margin-top: 12px;
  color: var(--dm-muted);
  font-size: 13px;
  line-height: 1.65;
}

.dm-text {
  width: calc(100% - 48px);
  max-width: none;
  margin: 0 auto;
}

.dm-intro {
  padding-top: 28px;
  padding-bottom: 10px;
}

.dm-intro p {
  font-size: 20px;
  line-height: 1.8;
  color: #475b6b;
}

.dm-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 23px 24px 49px;
}

.dm-benefit {
  padding: 18px 20px;
  background: var(--dm-pale);
  border: 1px solid #dce6f8;
  border-radius: 10px;
}

.dm-benefit strong {
  display: block;
  margin-bottom: 8px;
  color: var(--dm-blue);
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
}

.dm-benefit p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #333;
}

.dm-section {
  margin-bottom: 48px;
}

.dm-article blockquote {
  margin: 28px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--dm-blue);
  border-radius: 0 12px 12px 0;
  background: var(--dm-pale);
  color: #2a3d55;
  font-size: 18px;
  line-height: 1.8;
}

.dm-article blockquote p:last-child {
  margin-bottom: 0;
}

.dm-wide {
  margin: 0 24px 48px;
}

.dm-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 24px;
}

.dm-gallery img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
}

.dm-article ul {
  margin: 0 0 25px;
  padding-left: 25px;
}

.dm-article li {
  margin-bottom: 12px;
  padding-left: 5px;
}

.dm-article li::marker {
  color: var(--dm-blue);
}

.dm-table-wrap {
  margin: 27px 0;
  overflow: hidden;
  border: 1px solid var(--dm-line);
  border-radius: 12px;
}

.dm-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.65;
}

.dm-article th,
.dm-article td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}

.dm-article th {
  background: var(--dm-blue);
  color: #fff;
  font-weight: 700;
}

.dm-article td {
  border-top: 1px solid var(--dm-line);
}

.dm-article td:first-child {
  width: 30%;
  font-weight: 700;
  color: #243447;
}

.dm-article tbody tr:nth-child(even) {
  background: var(--dm-pale);
}

.dm-technical {
  display: grid;
  grid-template-columns: .9fr 1fr;
  align-items: center;
  gap: 28px;
  margin: 31px 0 0;
  padding: 22px;
  border: 1px solid var(--dm-line);
  border-radius: 14px;
  background: var(--dm-pale);
}

.dm-technical .dm-photo {
  border-radius: 10px;
}

.dm-technical figcaption {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.dm-highlight {
  margin: 26px 0;
  padding: 22px 24px;
  border: 1px solid #dce6f8;
  border-radius: 12px;
  background: var(--dm-pale);
}

.dm-highlight p:last-child {
  margin-bottom: 0;
}

.dm-separator {
  width: calc(100% - 48px);
  height: 1px;
  margin: 0 auto 45px;
  background: var(--dm-line);
}

.dm-choice-list {
  padding: 22px 24px 10px 42px !important;
  border: 1px solid #dce6f8;
  border-radius: 12px;
  background: var(--dm-pale);
}

.dm-final {
  width: calc(100% - 48px);
  margin: 33px auto 0;
  padding: 32px 36px;
  border: 1px solid #dce6f8;
  border-radius: 14px;
  background: var(--dm-pale);
}

.dm-final p {
  margin-bottom: 22px;
  font-size: 18px;
  line-height: 1.85;
}

.dm-article a.dm-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  background: var(--dm-blue);
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

  .dm-article a.dm-button:hover {
  background: var(--dm-blue-hover);
}

  /* —— форма и карусель (стиль блоков сайта: синий + жёлтый акцент) —— */
.dm-end {
  width: calc(100% - 48px);
  margin: 48px auto 0;
}

.dm-callback {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 40px 0 48px;
  border-top: 1px solid var(--dm-line);
}

.dm-callback-kicker {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--dm-ink-soft);
}

.dm-callback h2 {
  margin: 0;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.25;
  letter-spacing: -.6px;
}

.dm-callback-form {
  display: grid;
  gap: 14px;
}

.dm-callback-form input[type="text"],
.dm-callback-form input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cfd6de;
  border-radius: 4px;
  font: inherit;
  font-size: 16px;
  color: var(--dm-ink);
  background: #fff;
}

.dm-callback-form input:focus {
  outline: 2px solid var(--dm-blue);
  outline-offset: 1px;
  border-color: var(--dm-blue);
}

.dm-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.45;
  color: var(--dm-ink);
}

.dm-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--dm-blue);
  flex-shrink: 0;
}

.dm-check a {
  color: var(--dm-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dm-legal {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #8a949e;
}

.dm-legal a {
  color: var(--dm-blue);
  font-weight: 600;
}

.dm-submit {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 16px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--dm-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}

.dm-submit:hover {
  background: var(--dm-blue-hover);
}

.dm-materials {
  margin-top: 8px;
  padding: 36px 0 0;
  border-top: 1px solid var(--dm-line);
}

.dm-materials-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.dm-materials-title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dm-materials-title span {
  color: var(--dm-blue);
}

.dm-materials-nav {
  display: flex;
  gap: 10px;
}

.dm-materials-nav button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--dm-blue);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.dm-materials-nav button:hover {
  background: var(--dm-blue-hover);
}

.dm-materials-track-wrap {
  overflow: hidden;
  background: #f3f4f6;
  padding: 20px 16px;
  border-radius: 4px;
}

.dm-materials-track {
  display: flex;
  gap: 20px;
  transition: transform .35s ease;
}

.dm-card {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
  background: #fff;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.dm-card:hover .dm-card-title {
  color: var(--dm-blue);
}

.dm-card-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e8ecf0;
}

.dm-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dm-card-body {
  padding: 16px 14px 18px;
}

.dm-card-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--dm-ink);
}

.dm-card-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--dm-muted);
}

.dm-materials-all {
  display: block;
  margin-top: 0;
  padding: 18px 16px;
  background: var(--dm-blue);
  color: #fff !important;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 0 0 8px 8px;
}

.dm-materials-all:hover {
  background: var(--dm-blue-hover);
  color: #fff !important;
}

.dm-image-error {
  display: none;
  min-height: 230px;
  padding: 35px;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #657786;
  font-size: 15px;
  line-height: 1.7;
}

.dm-photo.dm-missing img {
  display: none;
}

.dm-photo.dm-missing .dm-image-error {
  display: flex;
}

@media (max-width: 900px) {
  .dm-hero {
    padding: 32px 20px;
    gap: 28px;
  }

  .dm-text {
    width: calc(100% - 40px);
  }

  .dm-wide,
  .dm-benefits {
    margin-left: 20px;
    margin-right: 20px;
  }

  .dm-final,
  .dm-separator,
  .dm-end {
    width: calc(100% - 40px);
  }

  .dm-callback {
    gap: 28px;
  }

  .dm-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

@media (max-width: 650px) {
  .dm-article {
    padding-bottom: 24px;
    font-size: 17px;
  }

  .dm-hero {
    grid-template-columns: 1fr;
    padding: 24px 16px;
    gap: 24px;
  }

  .dm-article h1 {
    font-size: 30px;
    letter-spacing: -1px;
  }

  .dm-article h2 {
    font-size: 26px;
  }

  .dm-cover {
    max-width: 420px;
    width: 100%;
    margin: auto !important;
  }

  .dm-text {
    width: calc(100% - 32px);
  }

  .dm-intro p {
    font-size: 18px;
  }

  .dm-benefits {
    grid-template-columns: 1fr;
    margin: 16px 16px 32px;
    gap: 10px;
  }

  .dm-wide {
    margin: 0 16px 32px;
  }

  .dm-gallery {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .dm-article th,
  .dm-article td {
    padding: 12px 10px;
    font-size: 14px;
  }

  .dm-technical {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .dm-final {
    width: calc(100% - 32px);
    padding: 22px 18px;
  }

  .dm-button {
    width: 100%;
    text-align: center;
  }

  .dm-separator,
  .dm-end {
    width: calc(100% - 32px);
  }

  .dm-callback {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 0 36px;
  }

  .dm-card {
    flex: 0 0 100%;
  }

  .dm-materials-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media print {
  body { background: #fff; }
  .dm-article {
    max-width: none;
    margin: 0;
  }
}


/* ===== LIVE SITE OVERRIDES: beat .content img { width:auto !important } ===== */

.content .dm-article img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  display: block !important;
}

.content .dm-article .dm-photo {
  overflow: hidden !important;
  max-height: 520px !important;
}

.content .dm-article .dm-photo img {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 520px !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #fff !important;
}

.content .dm-article .dm-cover .dm-photo {
  max-height: none !important;
}

.content .dm-article .dm-cover img {
  aspect-ratio: 1 / 1 !important;
  max-height: 520px !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  background: #fff !important;
}

.content .dm-article .dm-gallery img {
  aspect-ratio: 4 / 3 !important;
  max-height: 420px !important;
  object-fit: contain !important;
  background: #fff !important;
}

.content .dm-article .dm-technical .dm-photo {
  max-height: 420px !important;
}

.content .dm-article .dm-technical img {
  max-height: 420px !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

.content .dm-article .dm-card-img {
  overflow: hidden !important;
  height: 160px !important;
}

.content .dm-article .dm-card-img img {
  width: 100% !important;
  height: 160px !important;
  max-height: 160px !important;
  object-fit: cover !important;
}

.content .dm-article .dm-image-error {
  display: none !important;
}



/* radio carousel */
/* Карусель «Полезные материалы» — radio/label, без JS и без серого скролла */
.content .dm-mat,
.dm-mat {
  position: relative;
  background: #f3f4f6;
  padding: 24px 52px;
  border-radius: 4px 4px 0 0;
  box-sizing: border-box;
}
.content .dm-mat-r,
.dm-mat-r {
  position: absolute;
  left: -9999px;
  opacity: 0;
}
.content .dm-mat-view,
.dm-mat-view {
  overflow: hidden !important;
  width: 100%;
}
.content .dm-mat-track,
.dm-mat-track {
  display: flex !important;
  gap: 16px;
  width: max-content;
  transition: transform 0.35s ease;
}
.content .dm-mat-card,
.dm-mat-card {
  display: block !important;
  width: 280px;
  flex: 0 0 280px;
  background: #fff;
  text-decoration: none !important;
  color: #1a1a1a;
  box-sizing: border-box;
}
.content .dm-mat-card img,
.dm-mat-card img {
  display: block !important;
  width: 280px !important;
  height: 280px !important;
  max-height: 280px !important;
  object-fit: cover !important;
  margin: 0 !important;
  border: 0 !important;
}
.content .dm-mat-card .t,
.dm-mat-card .t {
  padding: 14px 12px 16px;
  box-sizing: border-box;
}
.content .dm-mat-card .t b,
.dm-mat-card .t b {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}
.content .dm-mat-card .t span,
.dm-mat-card .t span {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: #5a6570;
  font-weight: 400;
}
.content .dm-mat-btn,
.dm-mat-btn {
  position: absolute;
  top: 42%;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0051F8;
  color: #fff;
  font-size: 22px;
  line-height: 42px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  display: none;
}
.content .dm-mat-btn-prev,
.dm-mat-btn-prev { left: 8px; }
.content .dm-mat-btn-next,
.dm-mat-btn-next { right: 8px; }
#dmmat0:checked ~ .dm-mat-view .dm-mat-track { transform: translateX(0); }
#dmmat1:checked ~ .dm-mat-view .dm-mat-track { transform: translateX(-296px); }
#dmmat0:checked ~ .dm-mat-btn-next { display: block; }
#dmmat1:checked ~ .dm-mat-btn-prev { display: block; }
@media (max-width: 900px) {
  .content .dm-mat-card,
  .dm-mat-card,
  .content .dm-mat-card img,
  .dm-mat-card img {
    width: 240px !important;
    flex-basis: 240px;
  }
  .content .dm-mat-card img,
  .dm-mat-card img { height: 240px !important; max-height: 240px !important; }
  #dmmat1:checked ~ .dm-mat-view .dm-mat-track { transform: translateX(-256px); }
}


/* Blog recommended products */
.blog-recommended{margin-top:48rem;padding-top:32rem;border-top:1px solid #e6eaf2;}
.blog-recommended__title{margin:0 0 24rem;font-size:28rem;line-height:1.25;font-weight:700;}
.blog-recommended__items > [class*="col"]{display:flex;}
.blog-recommended__items > [class*="col"] > a{display:flex;width:100%;height:100%;}
.blog-recommended .tplproduct{width:100%;}
@media (min-width:768px){
  .blog-recommended{margin-top:64rem;padding-top:40rem;}
  .blog-recommended__title{font-size:32rem;margin-bottom:32rem;}
}


/* Blog/recommended product cards: black text like catalog (override .content a blue) */
.content .blog-recommended a:not(.button,.btn),
.content .blog .tplproduct a:not(.button,.btn),
.content .blog-recommended .tplproduct-title,
.content .blog-recommended .tplproduct-price,
.content .blog .tplproduct-title,
.content .blog .tplproduct-price{
  color:#000;
}
.content .blog-recommended .tplproduct-oldprice,
.content .blog .tplproduct-oldprice{
  color:#aab1cd;
}
.content .blog-recommended .tplproduct-options,
.content .blog .tplproduct-options{
  color:#4a4f63;
}
/* Promo Transformer2027 banner */
.promo-tf2027{margin:32rem 0;border-radius:16rem;overflow:hidden;background:#fff;border:1rem solid #e6eaf2;box-shadow:0 10rem 28rem rgba(16,24,40,0.08)}
.promo-tf2027__link{display:grid;grid-template-columns:1.05fr 1fr;text-decoration:none;color:inherit;min-height:280rem}
.promo-tf2027__media{min-height:260rem;background:#edf1f7}
.promo-tf2027__img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.promo-tf2027__body{position:relative;display:flex;flex-direction:column;justify-content:center;gap:14rem;padding:28rem 110rem 28rem 32rem;background:#fff;color:#1a1f36}
.promo-tf2027__eyebrow{font-size:12rem;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:#5b647a}
.promo-tf2027__badge{position:absolute;top:14rem;right:14rem;z-index:2;width:76rem;height:76rem;border-radius:50%;overflow:hidden;box-shadow:0 8rem 20rem rgba(16,24,40,0.28);pointer-events:none}
.promo-tf2027__emblem{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.promo-tf2027__title{margin:0;font-size:28rem;line-height:1.25;font-weight:800;color:#121726}
.promo-tf2027__title span{color:#0051f8}
.promo-tf2027__title strong{color:#c45a00}
.promo-tf2027__text{margin:0;font-size:15rem;line-height:1.5;color:#4a5163;max-width:38ch}
.promo-tf2027__actions{display:flex;flex-wrap:wrap;align-items:center;gap:10rem;margin-top:6rem}
.promo-tf2027__code{display:inline-flex;align-items:center;padding:10rem 14rem;border-radius:999rem;border:1rem dashed #0051f8;background:#f3f6ff;color:#0051f8;font-weight:800;font-size:14rem}
.promo-tf2027__cta{display:inline-flex;align-items:center;padding:12rem 18rem;border-radius:10rem;background:#0051f8;color:#fff;font-weight:700;font-size:15rem}
@media (max-width: 991px){.promo-tf2027__link{grid-template-columns:1fr;min-height:0}.promo-tf2027__media{min-height:0;max-height:none}.promo-tf2027__img{height:auto;max-height:none;object-fit:contain;object-position:center}.promo-tf2027__body{padding:22rem 88rem 24rem 20rem}.promo-tf2027__badge{width:64rem;height:64rem;top:14rem;right:14rem}.promo-tf2027__title{font-size:22rem}}
@media (max-width: 575px){.promo-tf2027{margin:24rem 0;border-radius:14rem}.promo-tf2027__media{min-height:0;max-height:none}.promo-tf2027__img{height:auto;max-height:none;object-fit:contain}.promo-tf2027__body{padding:18rem 72rem 20rem 16rem;gap:12rem}.promo-tf2027__badge{width:52rem;height:52rem;top:12rem;right:12rem}.promo-tf2027__title{font-size:20rem}.promo-tf2027__text{font-size:14rem}.promo-tf2027__code,.promo-tf2027__cta{font-size:13rem;padding:10rem 12rem}}
