/* ============================================================
   ВЕБПОИСК.РФ — тема «Аспро: Digital 2.0» (Allcorp3 Digital)
   Подключается ПОСЛЕ styles.css/fluid.css и переопределяет токены.
   Эталон: digital.allcorp3-demo.ru — PT Sans Caption 15/25 #555,
   заголовки Montserrat 500 #333, кнопки r5 bold, карточки r4 + 1px #e5e5e5,
   шапка в 2 строки, серые секции #f8f8f8, подвал #333.
   ============================================================ */
:root, :root[data-theme="light"], :root[data-theme="dark"] {
  --theme: #4f46e5;              /* цвет темы Аспро (в демо #c81c38) */
  --theme-h: #4338ca;
  --theme-tint: #eef0ff;
  --bg: #ffffff; --bg-soft: #f8f8f8; --bg-deep: #333333; --card: #ffffff;
  --text: #333333; --muted: #555555; --muted-2: #999999; --on-deep: #ffffff;
  --primary: var(--theme); --primary-2: var(--theme); --primary-d: var(--theme-h);
  --tint: var(--theme-tint); --ring: var(--theme);
  --border: #e5e5e5; --border-2: #eeeeee; --header-bg: #ffffff;
  --container: 1440px; --pad: 32px; --gap: 32px;
  --section: 80px;
  --r-lg: 4px; --r: 4px; --r-sm: 4px; --r-pill: 5px;
  --sh-sm: none; --sh: 0 10px 30px rgba(0,0,0,.08); --sh-cta: none;
  --font: 'PT Sans Caption', Arial, sans-serif;
  --font-h: 'Montserrat', Arial, sans-serif;
  color-scheme: light;
}
@media (max-width: 767px) { :root, :root[data-theme] { --pad: 16px; --gap: 16px; --section: 48px; } }

body.dg { font-family: var(--font); font-size: 15px; line-height: 25px; color: var(--muted); background: #fff; }
.dg h1, .dg h2, .dg h3, .dg h4 { font-family: var(--font-h); font-weight: 500; letter-spacing: 0; color: var(--text); }
.dg h1 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.3; }
.dg h2 { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.3; }
.dg h3 { font-size: 18px; line-height: 1.4; font-weight: 500; }
.dg p { color: var(--muted); }
.dg .lead { font-size: 16px; line-height: 26px; color: var(--muted); max-width: 72ch; }
.dg a:hover { color: var(--theme); }
.dg ::selection { background: var(--theme); }

/* градиентный текст/свечения прежней темы — выключаем */
.dg .grad, .dg .text-grad, .dg h1 span, .dg h2 span { background: none !important; -webkit-text-fill-color: currentColor !important; color: inherit; }
.dg .aurora-blobs, .dg .footer__glow, .dg .hero::before { display: none !important; }

/* eyebrow → подзаголовок Аспро (серый мелкий над заголовком) */
.dg .eyebrow { display: block; padding: 0; background: none; border: 0; font-family: var(--font); font-size: 13px;
  font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted-2); margin-bottom: 4px; }
.dg .eyebrow::before { display: none; }
.dg .section-head { max-width: none; margin-bottom: 40px; }
.dg .section-head h2 { margin-bottom: 16px; }
.dg .section--soft { background: var(--bg-soft); border-top: 1px solid #eee; border-bottom: 1px solid #eee; }

/* ---------- кнопки ---------- */
.dg .btn { border-radius: 5px; font-family: var(--font); font-weight: 700; font-size: 15px; line-height: 22px;
  padding: 12px 26px; border: 2px solid transparent; box-shadow: none; transform: none !important; letter-spacing: 0; }
.dg .btn--primary, .dg .btn--shine, .dg .btn--shiny { background: var(--theme); color: #fff; border-color: var(--theme); }
.dg .btn--primary:hover { background: var(--theme-h); border-color: var(--theme-h); color: #fff; box-shadow: none; }
.dg .btn--primary::before, .dg .btn--primary::after, .dg .btn--shine::after { display: none !important; }
.dg .btn--ghost { background: #fff; color: var(--text); border: 2px solid var(--border); }
.dg .btn--ghost:hover { border-color: var(--theme); color: var(--theme); }
.dg-btn-line { background: #fff; color: var(--theme); border: 1px solid color-mix(in srgb, var(--theme) 35%, #fff) !important; border-radius: 20px !important; padding: 7px 22px !important; }
.dg-btn-line:hover { background: var(--theme); color: #fff !important; }

/* ---------- ШАПКА: 2 строки ---------- */
.dg .header.dg-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); }
.dg-top { border-bottom: 1px solid #eee; font-size: 13px; line-height: 20px; }
.dg-top__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 44px; }
.dg-top__links { display: flex; gap: 22px; flex-wrap: wrap; }
.dg-top__links a { color: var(--muted); }
.dg-top__right { display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.dg-top__geo, .dg-top__phone { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.dg-top__geo svg, .dg-top__phone svg { width: 13px; height: 13px; color: var(--muted-2); }
.dg-top__phone { font-weight: 700; color: var(--text); font-size: 14px; }
.dg-top__call { color: var(--text); border-bottom: 1px dotted currentColor; }
.dg .dg-header .header__inner { height: 76px; padding: 0; border: 0; border-radius: 0; background: #fff;
  box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; gap: 18px; }
.dg .dg-logo { color: var(--text) !important; font-family: var(--font-h); font-weight: 800; font-size: 24px;
  letter-spacing: -.02em; flex: 0 0 auto; line-height: 1; }
.dg .dg-logo span { background: linear-gradient(135deg, #4f46e5, #7c3aed); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; }
.dg .dg-header .nav { margin-left: 28px; margin-right: auto; gap: 4px; }
.dg .dg-header .nav-link { font-family: var(--font-h); font-weight: 600; font-size: 14px; color: var(--text);
  padding: 10px 12px; border-radius: 4px; }
.dg .dg-header .nav-link:hover, .dg .dg-header .nav-item.on > .nav-link { color: var(--theme); background: none; }
.dg .dg-header .nav-link.active { color: var(--theme); }
.dg .dg-header .drop { top: calc(100% + 18px); background: #fff; border: 1px solid var(--border); border-radius: 4px;
  box-shadow: 0 14px 40px rgba(0,0,0,.12); -webkit-backdrop-filter: none; backdrop-filter: none; padding: 12px 0; width: 280px; }
.dg .dg-header .drop::before { top: -20px; height: 20px; }
.dg .dg-header .drop__item { color: var(--text); padding: 8px 24px; border-radius: 0; font-size: 14px; }
.dg .dg-header .drop__item:hover { background: #f5f5f5; color: var(--theme); }
.dg .dg-header .drop__all, .dg .dg-header .drop__more { color: var(--theme); font-weight: 700; }
.dg .dg-header .drop__sep { background: #eee; margin: 8px 24px; }
.dg .dg-header .drop__ct { color: var(--text); font-family: var(--font-h); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 15px; padding: 8px 24px; }
.dg .dg-header .drop--wide { width: min(1100px, 100%); padding: 24px 8px; }
.dg .dg-header .header__phone { color: var(--text); font-weight: 700; font-size: 15px; padding: 6px 4px; }
.dg .dg-header .header__phone svg { color: var(--theme); }
.dg .dg-header .header__phone:hover, .dg .dg-header .header__soc:hover { background: none; color: var(--theme); }
.dg .dg-header .header__soc { color: var(--muted-2); border-radius: 50%; border: 1px solid var(--border); width: 36px; height: 36px; }
.dg .dg-header .dg-hbtn { padding: 11px 24px; border-radius: 22px; margin-left: 4px; }
.dg .dg-header .burger { color: var(--text); }
.dg .theme-toggle { display: none !important; }
/* в шапке телефон уже есть в верхней строке — в основной показываем только узко */
.dg .dg-header .header__inner .header__phone { display: none; }
@media (max-width: 1400px) { .dg .dg-header .header__soc { display: none; } }
@media (max-width: 1240px) and (min-width: 1025px) { .dg .dg-header .nav-link { padding: 10px 8px; font-size: 13px; } .dg-top__geo { display: none; } }
@media (max-width: 1024px) {
  .dg-top { display: none; }
  .dg .dg-header .header__inner { height: 64px; }
  .dg .dg-header .nav { position: fixed; inset: 64px 0 auto 0; margin: 0; background: #fff; border: 0; border-top: 1px solid var(--border);
    border-radius: 0; box-shadow: 0 20px 40px rgba(0,0,0,.12); padding: 8px var(--pad) 20px; flex-direction: column;
    align-items: stretch; display: none; max-height: calc(100dvh - 64px); overflow-y: auto; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .dg .dg-header .nav.open { display: flex; }
  .dg .dg-header .nav-item { position: static; border-bottom: 1px solid #f0f0f0; }
  .dg .dg-header .nav-link { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 15px; }
  .dg .dg-header .drop { position: static; opacity: 1; visibility: visible; transform: none; width: auto; box-shadow: none; border: 0;
    padding: 0 0 10px 0; display: none; max-height: none; }
  .dg .dg-header .nav-item.on > .drop { display: block; }
  .dg .dg-header .drop--wide .drop__grid { display: none; }
  .dg .dg-header .drop--wide .drop__mob { display: block; }
  .dg .dg-header .drop__item { padding: 9px 12px; }
  .dg .dg-header .burger { display: inline-flex; margin-left: 0; order: -1; }
  .dg .dg-header .header__inner .header__phone { display: inline-flex; margin-left: auto; }
  .dg .dg-header .header__phone span { display: none; }
  .dg .dg-header .header__contacts { display: flex; margin-left: auto; }
  .dg .dg-header .dg-hbtn { display: none; }
  .dg .dg-logo { font-size: 20px; }
}

/* ---------- хлебные крошки + page-top ---------- */
.dg .crumbs { padding: 28px 0 0; font-size: 13px; color: var(--muted-2); }
.dg .crumbs li::after { content: "—"; color: #ccc; }
.dg .crumbs a { color: var(--muted-2); }
.dg .crumbs li:last-child::after { content: ""; }
.dg .crumbs li:last-child { color: var(--muted); }
.dg .hero.dg-ptop { padding: 20px 0 64px; overflow: visible; border-bottom: 1px solid #eee; }
.dg-ptop__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.dg-ptop__text h1 { margin: 6px 0 18px; }
.dg-ptop__text .lead { margin-bottom: 30px; }
.dg-ptop .btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.dg-ptop__ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 26px 0 0; font-size: 13px; }
.dg-ptop__ticks li { position: relative; padding-left: 16px; }
.dg-ptop__ticks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--theme); }
.dg-ptop__img { border-radius: 4px; overflow: hidden; background: var(--bg-soft); aspect-ratio: 3 / 2; }
.dg-ptop__img--banner { aspect-ratio: 16 / 9; }
.dg-ptop__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dg-ptop__img--art > * { width: 100%; height: 100%; border-radius: 0 !important; }
@media (max-width: 900px) { .dg-ptop__grid { grid-template-columns: 1fr; gap: 28px; } .dg .hero.dg-ptop { padding-bottom: 40px; } }

/* ---------- карточки / сетки остальных блоков ---------- */
.dg .card, .dg .scard, .dg .lcard, .dg .fcard, .dg .getcard, .dg .bento-card, .dg .contact-card, .dg .dcard,
.dg .tier, .dg .price-card, .dg .link-tile, .dg .catx, .dg .vcard, .dg .ui-card, .dg .cmp, .dg .flip {
  border-radius: 4px !important; border: 1px solid var(--border); box-shadow: none !important; background-color: #fff; }
.dg .card:hover, .dg .scard:hover, .dg .lcard:hover, .dg .link-tile:hover, .dg .catx:hover, .dg .contact-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,.08) !important; transform: none; border-color: var(--border); }
.dg .card { padding: 32px; }
.dg .card h3, .dg .scard h3 { font-family: var(--font-h); font-weight: 500; }
.dg .price-card--popular, .dg .tier--pop { border-color: var(--theme) !important; }
.dg .amount { font-family: var(--font-h); font-weight: 600; color: var(--text); }
.dg .cat-tag, .dg .ptag { border-radius: 3px; background: #f2f2f2; color: var(--muted); font-weight: 400; }
.dg .bento-card--accent, .dg .signin__stat, .dg .stat--violet, .dg .stat--emerald, .dg .stat--amber { background: var(--theme) !important; color: #fff; border-radius: 4px !important; }
.dg .signin__card { border-radius: 4px; box-shadow: none; border: 1px solid var(--border); }
.dg .ph, .dg .acover, .dg .scard__img, .dg .scard__img img { border-radius: 4px !important; }
.dg .prose, .dg .article { color: var(--muted); font-size: 16px; line-height: 27px; }
.dg .article h2, .dg .prose h2 { font-size: clamp(22px, 2.2vw, 28px); margin-top: 1.6em; }
.dg .article a, .dg .prose a { color: var(--theme); }
.dg .ui-table, .dg .req-table, .dg table { border-radius: 4px; }

/* FAQ — аккордеон Аспро */
.dg .acc-item { border: 1px solid var(--border); border-radius: 4px; background: #fff; margin-bottom: 12px; }
.dg .acc-head { padding: 22px 28px; font-family: var(--font-h); font-weight: 500; font-size: 16px; color: var(--text); }
.dg .acc-head:hover .acc-title { text-decoration: none; color: var(--theme); }
.dg .acc-body p { padding: 0 28px 22px; margin: 0; }
.dg .acc-chev { color: var(--theme); }

/* CTA-полоса — светло-серая форма Аспро */
.dg .cta-band { background: var(--bg-soft) !important; color: var(--text); border: 1px solid var(--border); border-radius: 4px; }
.dg .cta-band::before { display: none; }
.dg .cta-band h2 { color: var(--text); }
.dg .cta-band p, .dg .cta-band .lf-consent { color: var(--muted); }
.dg .cta-band .lf-consent a, .dg .cta-band a { color: var(--theme); }
.dg .cta-band .lf-field { background: #fff; border-color: var(--border); color: var(--text); }
.dg .cta-band .lf-field::placeholder { color: var(--muted-2); }
.dg .cta-band .lf-consent input[type=checkbox] { accent-color: var(--theme); }
.dg .lf-field { border-radius: 4px; border: 1px solid var(--border); font-family: var(--font); font-size: 15px; }
.dg .lf-field:focus { border-color: var(--theme); box-shadow: none; }

/* ---------- ПОДВАЛ #333 ---------- */
.dg .footer.dg-foot { background: #333; color: #999; padding: 64px 0 0; border: 0; margin-top: 0; }
.dg-foot__top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(220px, 1.1fr); gap: 32px; padding-bottom: 48px; }
.dg-foot__h { color: #fff; font-family: var(--font-h); font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.dg-foot ul { list-style: none; margin: 0; padding: 0; }
.dg-foot li { margin-bottom: 9px; font-size: 14px; line-height: 20px; }
.dg-foot a { color: #999; }
.dg-foot a:hover { color: #fff; }
.dg-foot__contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.dg-foot__phone { color: #fff !important; font-family: var(--font-h); font-weight: 600; font-size: 20px; }
.dg-foot .dg-foot__call { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); padding: 8px 20px; border-radius: 20px; font-size: 13px; }
.dg-foot .dg-foot__call:hover { border-color: #fff; color: #fff; }
.dg-foot__addr { font-size: 13px; }
.dg-foot__soc { display: flex; gap: 10px; margin-top: 6px; }
.dg-foot__soc a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); color: #ccc; }
.dg-foot__soc a:hover { background: var(--theme); color: #fff; }
.dg-foot__soc svg { width: 16px; height: 16px; }
.dg-foot__bottom { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding: 24px 0 28px;
  border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; line-height: 20px; }
.dg-foot__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 1100px) { .dg-foot__top { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dg-foot__top { grid-template-columns: 1fr 1fr; gap: 28px 16px; } .dg-foot__contacts { grid-column: 1 / -1; } }

/* ============================================================
   ГЛАВНАЯ — блоки Аспро Digital
   ============================================================ */
.dg-sec { padding: 80px 0; }
.dg-sec--fon { background: var(--bg-soft); }
.dg-sec--line { border-top: 1px solid #eee; }
@media (max-width: 767px) { .dg-sec { padding: 48px 0; } }

/* заголовок блока: подзаголовок + H2 + ссылка «Все …» справа */
.dg-bh { margin-bottom: 52px; }
.dg-bh__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.dg-bh__sub { font-size: 13px; line-height: 20px; color: var(--muted-2); margin-bottom: 6px; }
.dg .dg-bh__title { font-family: var(--font-h); font-weight: 500; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.2; color: var(--text); margin: 0; }
.dg-bh__link { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); white-space: nowrap; padding-bottom: 6px; }
.dg-bh__text { margin: 22px 0 0; max-width: 980px; font-size: 15px; line-height: 25px; }
@media (max-width: 640px) { .dg-bh { margin-bottom: 32px; } .dg-bh__link { display: none; } }

/* большой баннер */
.dg-banner { position: relative; height: clamp(480px, 42vw, 600px); overflow: hidden; color: #fff; }
.dg-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility .8s; overflow: hidden; }
.dg-slide.on { opacity: 1; visibility: visible; }
.dg-slide--g1 { background: linear-gradient(120deg, #34d7e3 0%, #2b9bf4 45%, #2563eb 100%); }
.dg-slide--g2 { background: linear-gradient(120deg, #6d5dfc 0%, #4f46e5 50%, #2e2a8f 100%); }
.dg-slide--g3 { background: linear-gradient(120deg, #ff8a6a 0%, #f2546b 45%, #b8307a 100%); }
.dg-blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; }
.dg-blob--a { width: 62vw; height: 62vw; max-width: 900px; max-height: 900px; right: -12vw; top: -30%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.75), rgba(255,255,255,0) 62%); animation: dgfloat 14s ease-in-out infinite alternate; }
.dg-blob--b { width: 38vw; height: 38vw; max-width: 560px; max-height: 560px; right: 18%; bottom: -36%;
  background: radial-gradient(circle at 50% 40%, rgba(160,255,240,.7), rgba(160,255,240,0) 65%); animation: dgfloat 18s ease-in-out infinite alternate-reverse; }
.dg-blob--c { width: 30vw; height: 30vw; max-width: 420px; max-height: 420px; left: -10%; bottom: -30%;
  background: radial-gradient(circle, rgba(255,255,255,.35), rgba(255,255,255,0) 65%); }
@keyframes dgfloat { to { transform: translate(-40px, 30px) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .dg-blob { animation: none; } .dg-slide { transition: none; } }
.dg-slide__in { position: relative; z-index: 2; pointer-events: none; }
.dg-slide__in a, .dg-slide__in button { pointer-events: auto; }
/* 3D-робот (Spline) на первом слайде — справа, как на прежней главной */
.dg .spline-robot.dg-robot { position: absolute; z-index: 1; top: auto; left: auto; bottom: -40px; right: max(2vw, calc((100vw - 1440px) / 2 + 32px));
  width: min(640px, 46vw); height: calc(100% + 40px); justify-self: auto; }
@media (max-width: 1024px) { .dg .spline-robot.dg-robot { width: 44vw; opacity: .9; } }
@media (max-width: 760px) { .dg .spline-robot.dg-robot { display: none; } }
.dg-slide__sub { font-size: 14px; opacity: .85; margin-bottom: 14px; }
.dg .dg-slide__title { font-family: var(--font-h); font-weight: 500; font-size: clamp(30px, 3.9vw, 58px); line-height: 1.15;
  color: #fff; max-width: 21ch; text-wrap: balance; margin: 0 0 24px; letter-spacing: -.01em; }
.dg .dg-slide__text { color: rgba(255,255,255,.92); font-size: 17px; line-height: 27px; max-width: 620px; margin: 0 0 36px; }
.dg-slide__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.dg .dg-btn-w { background: #fff; color: var(--text); border-color: #fff; border-radius: 28px; padding: 14px 30px; }
.dg .dg-btn-w:hover { color: var(--theme); }
.dg .dg-btn-o { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); border-radius: 28px; padding: 14px 30px; }
.dg .dg-btn-o:hover { background: rgba(255,255,255,.14); color: #fff; }
.dg-banner__nav { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 3; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.dg-dots { display: flex; gap: 10px; margin-right: 24px; }
.dg-dot { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); cursor: pointer; }
.dg-dot.on { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.dg-navbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 4px; background: #fff; color: var(--text); cursor: pointer; }
.dg-navbtn:hover { color: var(--theme); }
@media (max-width: 767px) {
  .dg-banner { height: auto; min-height: 520px; }
  .dg-slide { align-items: flex-start; padding: 56px 0 100px; }
  .dg .dg-slide__text { font-size: 15px; line-height: 24px; }
  .dg-slide__btns .btn { width: 100%; justify-content: center; }
  .dg-banner__nav { bottom: 24px; justify-content: flex-start; padding: 0 var(--pad); }
  .dg-navbtn { display: none; }
}

/* услуги: 4 карточки + подуслуги через тире */
.dg-svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.dg-svc { position: relative; border: 1px solid var(--border); border-radius: 4px; padding: 40px 40px 36px; background: #fff;
  min-height: 380px; display: flex; flex-direction: column; transition: box-shadow .2s; }
.dg-svc:hover { box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.dg-svc__arr { position: absolute; top: 34px; right: 36px; color: #bbb; }
.dg-svc:hover .dg-svc__arr { color: var(--theme); }
.dg-arr { width: 24px; height: 10px; display: block; }
.dg-svc__ico { width: 52px; height: 52px; color: var(--theme); margin-bottom: auto; }
.dg-svc__title { font-family: var(--font-h); font-weight: 500; font-size: 19px; line-height: 26px; color: var(--text); margin: 56px 0 16px; }
.dg-svc__title a { color: inherit; }
.dg-svc__links { font-size: 14px; line-height: 22px; }
.dg-svc__links a { color: var(--theme); }
.dg-svc__links a:not(:last-child)::after { content: " — "; color: #ccc; }
.dg-svc__links a:hover { color: var(--theme-h); text-decoration: underline; }
.dg-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 72px; }
.dg-num { display: flex; align-items: center; gap: 22px; }
.dg-num b { font-family: var(--font-h); font-weight: 400; font-size: clamp(40px, 3.6vw, 52px); line-height: 1; color: var(--theme); white-space: nowrap; }
.dg-num span { font-size: 14px; line-height: 21px; max-width: 280px; }
@media (max-width: 1100px) { .dg-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .dg-svc-grid { grid-template-columns: 1fr; gap: 16px; }
  .dg-svc { min-height: 0; padding: 28px 24px; }
  .dg-svc__title { margin-top: 24px; }
  .dg-nums { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
}

/* плитки-баннеры (MIDDLE_ADV) */
.dg-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 300px; gap: 32px; }
.dg-tile { position: relative; border-radius: 4px; overflow: hidden; display: block; background: #222; }
.dg-tile--w2 { grid-column: span 2; }
.dg-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.dg-tile:hover img { transform: scale(1.04); }
.dg-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.62) 100%); }
.dg-tile__cap { position: absolute; left: 32px; right: 32px; bottom: 28px; z-index: 1; color: #fff; }
.dg-tile__sub { display: block; font-size: 13px; opacity: .8; }
.dg-tile__title { display: block; font-family: var(--font-h); font-weight: 500; font-size: 20px; line-height: 26px; }
.dg-tile:hover .dg-tile__title { color: #fff; }
@media (max-width: 1100px) { .dg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 16px; } }
@media (max-width: 640px) { .dg-tiles { grid-template-columns: 1fr; grid-auto-rows: 200px; } .dg-tile--w2 { grid-column: auto; } .dg-tile__cap { left: 20px; bottom: 18px; } }

/* проекты — горизонтальная галерея (scroll-snap + стрелки) */
.dg-gal { position: relative; }
.dg-gal__nav { position: absolute; top: 34px; right: calc(var(--pad) + 130px); display: flex; gap: 8px; }
.dg-gal .dg-navbtn { border: 1px solid var(--border); }
.dg-gal .dg-navbtn:disabled { opacity: .35; cursor: default; }
.dg-projs { display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; padding-bottom: 6px; scrollbar-width: none; }
.dg-projs::-webkit-scrollbar { display: none; }
.dg-proj { position: relative; flex: 0 0 calc((100% - 64px) / 3); scroll-snap-align: start; display: flex; flex-direction: column;
  border-radius: 4px; background: var(--pbg); color: var(--text); overflow: hidden; padding: 32px 32px 0; }
.dg-proj__img { order: 2; margin-top: auto; border-radius: 4px 4px 0 0; overflow: hidden; box-shadow: 0 -10px 40px rgba(0,0,0,.12); aspect-ratio: 640 / 420; }
.dg-proj__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.dg-proj:hover .dg-proj__img img { transform: translateY(-6px); }
.dg-proj__body { position: relative; padding: 0 44px 28px 0; min-height: 132px; }
.dg-proj__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.dg-proj__tags span { font-size: 12px; line-height: 18px; padding: 3px 10px; border-radius: 3px; background: rgba(255,255,255,.6); color: var(--text); }
.dg-proj__title { font-family: var(--font-h); font-weight: 600; font-size: 20px; line-height: 1.3; }
.dg-proj__arr { position: absolute; right: 0; top: 4px; }
.dg-proj--dark, .dg-proj--dark:hover { color: #fff; }
.dg-proj--dark .dg-proj__tags span { background: rgba(255,255,255,.16); color: #fff; }
.dg-proj:hover { color: var(--text); }
@media (max-width: 1100px) { .dg-proj { flex-basis: calc((100% - 32px) / 2); } }
@media (max-width: 767px) {
  .dg-projs { gap: 12px; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 6px; scroll-padding: 0 var(--pad); }
  .dg-proj { flex-basis: 82%; padding: 24px 20px 0; }
  .dg-gal__nav { display: none; }
}

/* клиенты */
.dg-clients { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.dg-client { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 120px; padding: 18px;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); font-family: var(--font-h); font-weight: 600;
  font-size: 14px; line-height: 20px; color: #888; transition: color .2s; }
.dg-client:hover { color: var(--text); }
.dg-client img { display: block; max-width: min(170px, 78%); max-height: 64px; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1) contrast(1.2); opacity: .72; transition: filter .25s, opacity .25s; }
.dg-client:hover img { filter: none; opacity: 1; }
@media (max-width: 640px) { .dg-client img { max-height: 48px; } }
@media (max-width: 1100px) { .dg-clients { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dg-clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dg-client { min-height: 90px; font-size: 13px; } }

/* платформы (CATALOG_SECTIONS) */
.dg-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.dg-cat { display: block; background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 32px 36px; transition: box-shadow .2s; }
.dg-cat:hover { box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.dg-cat__title { font-family: var(--font-h); font-weight: 500; font-size: 19px; color: var(--text); }
.dg-cat:hover .dg-cat__title { color: var(--theme); }
.dg-cat__cnt { font-size: 13px; color: var(--muted-2); margin: 4px 0 14px; }
.dg .dg-cat p { margin: 0; font-size: 14px; line-height: 22px; }
@media (max-width: 1100px) { .dg-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dg-cats { grid-template-columns: 1fr; gap: 16px; } }

/* тарифы — строки как в Аспро */
.dg-tars { border: 1px solid var(--border); border-radius: 4px; }
.dg-tar { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr) minmax(220px, .8fr); gap: 40px;
  padding: 36px 40px; align-items: center; }
.dg-tar + .dg-tar { border-top: 1px solid var(--border); }
.dg-tar__pop { position: absolute; top: 14px; left: 40px; font-size: 11px; line-height: 16px; font-weight: 700; color: #fff; background: var(--theme); padding: 2px 8px; border-radius: 3px; }
.dg-tar__kind { font-size: 13px; color: var(--muted-2); }
.dg-tar__title { font-family: var(--font-h); font-weight: 500; font-size: 18px; color: var(--text); }
.dg-tar__props { display: grid; gap: 6px; font-size: 14px; }
.dg-prop { display: flex; align-items: baseline; gap: 8px; }
.dg-prop i { flex: 1; border-bottom: 1px dotted #ccc; transform: translateY(-4px); }
.dg-prop b { color: var(--text); }
.dg-tar__buy { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; text-align: right; }
.dg-tabs { display: flex; gap: 4px; }
.dg-tab { font-family: var(--font); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 3px; border: 1px solid var(--border); background: #fff; color: var(--muted); cursor: pointer; }
.dg-tab.on { background: var(--theme); border-color: var(--theme); color: #fff; }
.dg-tar__price { font-family: var(--font-h); font-weight: 600; font-size: 22px; color: var(--text); }
@media (max-width: 900px) {
  .dg-tar { grid-template-columns: 1fr; gap: 18px; padding: 36px 20px 24px; }
  .dg-tar__pop { left: 20px; }
  .dg-tar__buy { align-items: flex-start; text-align: left; }
}

/* отзывы */
.dg-revs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.dg-rev { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 36px; display: flex; flex-direction: column; }
.dg-rev__res { font-family: var(--font-h); font-weight: 600; font-size: 16px; line-height: 23px; color: var(--theme); margin-bottom: 16px; }
.dg .dg-rev p { font-size: 15px; line-height: 25px; flex: 1; }
.dg-rev__who { font-size: 13px; color: var(--muted-2); border-top: 1px solid #eee; padding-top: 16px; margin-top: 8px; }
@media (max-width: 1000px) { .dg-revs { grid-template-columns: 1fr; gap: 16px; } }

/* вопрос-ответ */
.dg-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.dg-faq__left .dg-bh__text { margin-bottom: 28px; }
.dg-plus { position: relative; flex: 0 0 auto; width: 14px; height: 14px; }
.dg-plus::before, .dg-plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--theme); transition: transform .25s; }
.dg-plus::after { transform: rotate(90deg); }
.acc-item.open .dg-plus::after { transform: rotate(0deg); }
@media (max-width: 900px) { .dg-faq { grid-template-columns: 1fr; gap: 28px; } }

/* блог */
.dg-newsg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.dg-news { display: block; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; background: #fff; transition: box-shadow .2s; }
.dg-news:hover { box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.dg .dg-news__img { aspect-ratio: 16 / 10; border-radius: 0 !important; overflow: hidden; margin: 0; }
.dg-news__img img, .dg-news__img svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.dg-news__body { padding: 24px 28px 30px; }
.dg-news__meta { font-size: 13px; color: var(--muted-2); margin-bottom: 8px; }
.dg-news__title { font-family: var(--font-h); font-weight: 500; font-size: 17px; line-height: 25px; color: var(--text); }
.dg-news:hover .dg-news__title { color: var(--theme); }
@media (max-width: 1000px) { .dg-newsg { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (max-width: 640px) { .dg-newsg { grid-template-columns: 1fr; } }

/* о компании */
.dg-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.dg-about .dg-bh__text { margin-bottom: 28px; }
.dg-afacts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.dg-afact { padding: 36px 32px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dg-afact b { display: block; font-family: var(--font-h); font-weight: 400; font-size: clamp(34px, 3vw, 46px); line-height: 1.1; color: var(--theme); }
.dg-afact span { font-size: 14px; }
@media (max-width: 900px) { .dg-about { grid-template-columns: 1fr; gap: 32px; } .dg-afact { padding: 24px 18px; } }

/* форма */
.dg-formsec { background: var(--bg-soft); border-top: 1px solid #eee; }
.dg-formbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.dg-formbox__text p { margin: 20px 0 24px; max-width: 520px; }
.dg-formbox__phone { font-family: var(--font-h); font-weight: 600; font-size: 24px; color: var(--text); }
.dg-form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 40px; }
.dg-form .lf-field { width: 100%; padding: 14px 18px; background: #fff; }
.dg-form textarea.lf-field { min-height: 100px; resize: vertical; }
.dg-form .btn { justify-self: start; }
@media (max-width: 900px) { .dg-formbox { grid-template-columns: 1fr; gap: 28px; } .dg-form { padding: 24px 18px; } .dg-form .btn { justify-self: stretch; justify-content: center; } }

/* без горизонтального скролла на любых экранах */
html, body.dg { overflow-x: clip; }

/* ============================================================
   ПРАВКИ 24.10: обложки слайдов, этапы, форма, квиз, города, футер
   ============================================================ */
/* слайды: фоны-компоненты 21st (GlassFold / GlyphSwell / GridPulse) */
.dg-slide .dg-blob { display: none; }
.dg-glass { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.dg-slide--g1 { background: #070826; }
.dg-slide--g2 { background: #0a0a1f; }
.dg-glyph { position: absolute; inset: 0; z-index: 0; }
.dg-glyph canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dg-slide--g3 { background: #fbfbfd; color: var(--text); }
.dg-gpulse { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background-image: linear-gradient(to right, rgba(20,20,40,.07) 1px, transparent 1px), linear-gradient(to bottom, rgba(20,20,40,.07) 1px, transparent 1px);
  background-size: 28px 28px; -webkit-mask-image: linear-gradient(to bottom, #000 92%, transparent); mask-image: linear-gradient(to bottom, #000 92%, transparent); }
.dg-gpulse canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dg .dg-slide--g3 .dg-slide__title, .dg .dg-slide--g3 .dg-slide__text, .dg-slide--g3 .dg-slide__sub { color: var(--text); text-shadow: 0 0 6px #fbfbfd, 0 0 14px #fbfbfd, 0 0 30px #fbfbfd; }
.dg .dg-slide--g3 .dg-slide__text { color: var(--muted); }
.dg .dg-slide--g3 .dg-btn-w { background: var(--theme); border-color: var(--theme); color: #fff; }
.dg .dg-slide--g3 .dg-btn-o { color: var(--text); border-color: rgba(0,0,0,.25); background: #fff; }
.dg-banner:has(.dg-slide--g3.on) .dg-dot { background: rgba(0,0,0,.2); }
.dg-banner:has(.dg-slide--g3.on) .dg-dot.on { background: var(--theme); box-shadow: none; }
.dg-banner:has(.dg-slide--g3.on) .dg-navbtn { border: 1px solid var(--border); }
/* робот: значок «Built with Spline» уводим за нижний край баннера */
.dg .spline-robot.dg-robot { bottom: -64px; height: calc(100% + 64px); }

/* этапы работ — нумерованные карточки, читаемо на светлом */
.dg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 0; counter-reset: s;
  border-top: 2px solid var(--border); }
.dg-step { position: relative; padding: 32px 28px 8px 0; }
.dg-step::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--theme); box-shadow: 0 0 0 4px var(--bg-soft); }
.dg-step__num { display: block; font-family: var(--font-h); font-weight: 400; font-size: 40px; line-height: 1; color: var(--theme); margin-bottom: 16px; }
.dg-step__title { font-family: var(--font-h); font-weight: 600; font-size: 17px; line-height: 24px; color: var(--text); margin-bottom: 8px; }
.dg .dg-step p { font-size: 14px; line-height: 22px; margin: 0; }
@media (max-width: 1000px) { .dg-steps { grid-template-columns: 1fr 1fr; border-top: 0; gap: 16px; }
  .dg-step { border: 1px solid var(--border); border-radius: 4px; padding: 24px; background: #fff; } .dg-step::before { display: none; } }
@media (max-width: 560px) { .dg-steps { grid-template-columns: 1fr; } }

/* состав работ — список в 2 колонки по сетке */
.dg-ticks { columns: 2; column-gap: 64px; max-width: none; }
.dg-ticks li { break-inside: avoid; }
@media (max-width: 700px) { .dg-ticks { columns: 1; } }

/* тексты (prose) — по сетке сайта, на всю ширину контейнера в 2 колонки */
.dg .prose { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; column-count: auto; }
.dg .prose p { font-size: 16px; line-height: 27px; color: var(--muted); }
.dg .prose h2 { font-size: clamp(20px, 1.8vw, 24px); margin: 0 0 12px; }
@media (max-width: 860px) { .dg .prose { grid-template-columns: 1fr; gap: 28px; } }

/* первый экран внутренних без фото — карточка консультации вместо «нарисованного макета» */
.dg-ptop__card { border: 1px solid var(--border); border-radius: 4px; padding: 36px 40px; background: var(--bg-soft); align-self: center; }
.dg-ptop__card-h { font-family: var(--font-h); font-weight: 600; font-size: 20px; color: var(--text); margin-bottom: 10px; }
.dg-ptop__card-ph { display: block; font-family: var(--font-h); font-weight: 600; font-size: 24px; color: var(--text); margin: 18px 0 22px; }
.dg-ptop__card-btns { display: flex; flex-wrap: wrap; gap: 10px; }
/* типографская обложка статьи (вместо SVG-сцены) */
.dg .dg-tcover { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 24px 26px; background: #f2f2f7;
  aspect-ratio: 16 / 10; border: 0; }
.dg-tcover__cat { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--theme); font-weight: 700; }
.dg-tcover__t { font-family: var(--font-h); font-weight: 600; font-size: clamp(16px, 1.5vw, 21px); line-height: 1.3; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.dg .acover--wide.dg-tcover { aspect-ratio: auto; min-height: 220px; }
/* emoji и градиентные «плашки-иконки» прежней темы */
.dg .lcard__emoji { display: none; }
.dg [class*="__ico"]:not(.dg-svc__ico) { background: var(--theme-tint) !important; color: var(--theme) !important; box-shadow: none !important; }

/* ФОРМА «Узнайте стоимость» — split, по сетке */
.dg .dg-cta-sec { padding-top: 40px; }
.dg-cta { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; background: #fff; }
.dg-cta__info { background: var(--theme); color: #fff; padding: 56px; display: flex; flex-direction: column; }
.dg-cta__sub { font-size: 13px; opacity: .75; margin-bottom: 10px; }
.dg-cta__info .dg-cta__sub { color: #fff; }
.dg-cta__title { font-family: var(--font-h); font-weight: 600; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; color: #fff; }
.dg-cta__ticks { list-style: none; padding: 0; margin: 32px 0 40px; display: grid; gap: 14px; }
.dg-cta__ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 23px; color: rgba(255,255,255,.92); }
.dg-cta__ticks svg { flex: 0 0 20px; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(255,255,255,.18); margin-top: 1px; }
.dg-cta__contacts { margin-top: auto; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.2); }
.dg-cta__phone { font-family: var(--font-h); font-weight: 600; font-size: 24px; color: #fff !important; }
.dg-cta__msgr { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dg-cta__msgr a { font-size: 13px; padding: 6px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,.35); color: #fff !important; }
.dg-cta__msgr a:hover { background: #fff; color: var(--theme) !important; }
.dg-cta__form { padding: 56px; display: flex; flex-direction: column; gap: 22px; max-width: none; }
.dg-cta__form .dg-cta__btn { margin-top: auto; }
.dg-cta__form .lf-status:empty { display: none; }
.dg-fld { display: grid; gap: 8px; }
.dg-fld > label { font-size: 13px; font-weight: 700; color: var(--text); }
.dg-fld > label span { font-weight: 400; color: var(--muted-2); }
.dg-fld .lf-field { width: 100%; padding: 13px 16px; background: #fff; margin: 0; }
.dg-fld textarea.lf-field { resize: vertical; min-height: 90px; }
.dg-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dg-cta__form .dg-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dg-cta__form .dg-chips--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dg-cta__form .dg-chip span { display: flex; align-items: center; justify-content: center; text-align: center; width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 22px; line-height: 1.25; }
.dg-cta__form .dg-chip { display: block; position: relative; }
.dg-chip input, .dg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.dg-chip span { display: inline-block; padding: 8px 16px; border: 1px solid var(--border); border-radius: 20px; font-size: 14px; color: var(--text); cursor: pointer; transition: .15s; user-select: none; }
.dg-chip span:hover { border-color: var(--theme); }
.dg-chip input:checked + span { background: var(--theme); border-color: var(--theme); color: #fff; }
.dg-chip input:focus-visible + span, .dg-opt input:focus-visible + span { outline: 2px solid var(--theme); outline-offset: 2px; }
.dg .dg-cta__btn { width: 100%; justify-content: center; padding: 15px 26px; }
@media (max-width: 900px) { .dg-cta { grid-template-columns: 1fr; } .dg-cta__info, .dg-cta__form { padding: 32px 22px; } .dg-row2 { grid-template-columns: 1fr; } .dg-cta__form .dg-chips, .dg-cta__form .dg-chips--3 { grid-template-columns: 1fr 1fr; } .dg-cta__form .dg-chip:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* КВИЗ — компактная карточка */
.dg-quiz { max-width: 980px; margin: 0 auto; border: 1px solid var(--border); border-radius: 6px; background: #fff; padding: 32px 40px 24px; box-shadow: 0 12px 40px rgba(20,20,60,.06); }
.dg-quiz__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid #eee; margin-bottom: 24px; }
.dg-quiz__kind { font-size: 12px; font-weight: 700; color: var(--theme); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.dg-quiz__title { font-family: var(--font-h); font-weight: 600; font-size: clamp(20px, 2vw, 26px); line-height: 1.25; color: var(--text); }
.dg-quiz__prog { flex: 0 0 160px; display: grid; gap: 8px; justify-items: end; font-size: 13px; font-weight: 700; color: var(--text); }
.dg-quiz__bar { width: 100%; height: 4px; border-radius: 2px; background: #ececf3; overflow: hidden; }
.dg-quiz__bar i { display: block; height: 100%; width: 25%; background: var(--theme); transition: width .35s ease; }
.dg-quiz__form { display: flex; flex-direction: column; gap: 18px; min-height: 196px; }
.dg-qs { border: 0; margin: 0; padding: 0; min-width: 0; }
.dg-qs[hidden] { display: none; }
.dg-qs legend { font-family: var(--font-h); font-weight: 600; font-size: 18px; color: var(--text); padding: 0; margin-bottom: 4px; }
.dg-qs__hint { font-size: 13px; color: var(--muted-2); margin: 0; }
.dg-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dg-pill { position: relative; }
.dg-pill input { position: absolute; opacity: 0; pointer-events: none; }
.dg-pill span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 22px; font-size: 14px; line-height: 20px;
  color: var(--text); cursor: pointer; transition: .15s; user-select: none; }
.dg-pill input[type=checkbox] + span::before { content: "+"; font-weight: 700; color: var(--theme); width: 10px; text-align: center; }
.dg-pill input[type=checkbox]:checked + span::before { content: "✓"; color: #fff; }
.dg-pill span:hover { border-color: var(--theme); }
.dg-pill input:checked + span { background: var(--theme); border-color: var(--theme); color: #fff; }
.dg-pill input:focus-visible + span { outline: 2px solid var(--theme); outline-offset: 2px; }
.dg-pill--row { flex: 1 1 100%; }
.dg-pill--row span { display: flex; border-radius: 6px; width: 100%; }
.dg-qs--err .dg-pills { animation: dgshake .4s; }
@keyframes dgshake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.dg-qs--final .dg-row2 { margin-top: 14px; }
.dg-qs--final .lf-field { width: 100%; padding: 12px 16px; margin: 0; }
.dg-qs__ch { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 14px 0; font-size: 13px; color: var(--muted); }
.dg-qs--final .lf-consents { margin-bottom: 14px; }
.dg-quiz__nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; }
.dg-quiz__nav [hidden] { display: none; }
.dg-quiz__nav [data-qn] { margin-left: auto; padding: 11px 28px; }
.dg-quiz__back { background: none; border: 0; padding: 8px 0; cursor: pointer; font: inherit; font-size: 14px; color: var(--muted); }
.dg-quiz__back:hover { color: var(--theme); }
.dg-quiz__note { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #f0f0f0; font-size: 12px; color: var(--muted-2); text-align: center; }
@media (max-width: 640px) {
  .dg-quiz { padding: 22px 18px 16px; }
  .dg-quiz__head { flex-direction: column; align-items: stretch; gap: 14px; }
  .dg-quiz__prog { flex: none; justify-items: stretch; grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
  .dg-quiz__prog .dg-quiz__bar { order: 2; } .dg-quiz__form { min-height: 0; }
  .dg-pill span { padding: 9px 14px; font-size: 14px; }
  .dg-quiz__nav [data-qn] { flex: 1; }
}

/* выбор города */
.dg-city { position: relative; }
.dg-city__btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--muted); border-bottom: 1px dotted currentColor; }
.dg-city__btn:hover { color: var(--theme); }
.dg-city__pop { position: absolute; top: calc(100% + 12px); right: 0; z-index: 80; width: 420px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--border);
  border-radius: 4px; box-shadow: 0 18px 50px rgba(0,0,0,.14); padding: 22px; white-space: normal; }
.dg-city__head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-h); font-size: 17px; color: var(--text); }
.dg-city__x { background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted-2); }
.dg-city__pop p { font-size: 13px; line-height: 19px; margin: 8px 0 14px; }
.dg-city__q { width: 100%; padding: 10px 14px; margin-bottom: 12px; }
.dg-city__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; max-height: 300px; overflow-y: auto; }
.dg-city__list a { font-size: 14px; padding: 5px 0; color: var(--text); }
.dg-city__list a[hidden] { display: none; }
.dg-citylinks { display: flex; flex-wrap: wrap; gap: 10px; }
.dg-citylinks a { padding: 8px 18px; border: 1px solid var(--border); border-radius: 20px; font-size: 14px; color: var(--text); }
.dg-citylinks a:hover { border-color: var(--theme); }
.dg-distrs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.dg-distr { display: flex; flex-direction: column; gap: 6px; }
.dg-distr__h { font-family: var(--font-h); font-weight: 600; font-size: 16px; color: var(--text); margin-bottom: 6px; }
.dg-distr a { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .dg-distrs { grid-template-columns: 1fr 1fr; } }

/* ФУТЕР — полутоновый вордмарк (порт halftone-wordmark-footer) */
.dg .footer.hwf-root { position: relative; overflow: hidden; isolation: isolate; background: #0c0c0b; color: #e9e4da; padding: 0; margin: 0; border: 0; }
.hwf-root canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; z-index: -1; }
.hwf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hwf-top { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 64px; }
.hwf-brand strong { display: block; font-family: var(--font-h); font-weight: 600; font-size: 17px; color: #fff; }
.hwf-brand > span { display: block; font-size: 13px; color: rgba(233,228,218,.5); margin: 4px 0 18px; }
.hwf-phone { display: block; font-family: var(--font-h); font-weight: 600; font-size: 22px; color: #fff !important; }
.hwf-mail { display: block; font-size: 14px; color: rgba(233,228,218,.7) !important; margin-top: 4px; }
.hwf-soc { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.hwf-soc a { font-size: 12px; padding: 5px 12px; border-radius: 20px; border: 1px solid rgba(233,228,218,.2); color: rgba(233,228,218,.85) !important; }
.hwf-soc a:hover { border-color: #fff; color: #fff !important; }
.hwf-h { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(233,228,218,.4); margin-bottom: 14px; }
.hwf-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hwf-col a, .hwf-legal a, .hwf-up { color: rgba(233,228,218,.78) !important; font-size: 14px; line-height: 20px; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: color .25s, background-size .35s; }
.hwf-col a:hover, .hwf-legal a:hover, .hwf-up:hover { color: #fff !important; background-size: 100% 1px; }
.hwf-rule { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; margin-top: 40px; padding-top: 16px; border-top: .5px solid rgba(233,228,218,.16);
  font-size: 12px; color: rgba(233,228,218,.5); }
.hwf-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hwf-legal a, .hwf-up { font-size: 12px; }
.hwf-space { height: clamp(150px, 19vw, 300px); }
@media (max-width: 1000px) { .hwf-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hwf-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .hwf-top { gap: 28px 16px; padding-top: 48px; } .hwf-space { height: 110px; } }

/* «Состав работ» — анимированные карточки */
.dg-incs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dg-inc { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; min-height: 168px; padding: 26px 26px 28px;
  border: 1px solid var(--border); border-radius: 4px; background: #fff;
  opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .25s;
  transition-delay: calc(var(--i) * 70ms), calc(var(--i) * 70ms), 0s, 0s; }
.dg-inc::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--theme) 12%, transparent), transparent 70%); }
.dg-inc:hover { border-color: color-mix(in srgb, var(--theme) 40%, #fff); box-shadow: 0 12px 32px rgba(20,20,60,.08); }
.dg-inc:hover::before { opacity: 1; }
.dg-incs.in .dg-inc { opacity: 1; transform: none; }
.dg-inc__num { font-family: var(--font-h); font-size: 13px; font-weight: 600; color: var(--muted-2); letter-spacing: .04em; }
.dg-inc__chk { position: absolute; top: 22px; right: 22px; width: 30px; height: 30px; padding: 6px; border-radius: 50%; color: #fff; background: var(--theme);
  transform: scale(.4); opacity: 0; transition: transform .45s cubic-bezier(.3,1.6,.5,1), opacity .3s; transition-delay: calc(var(--i) * 70ms + .25s); }
.dg-inc__chk path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .45s ease; transition-delay: calc(var(--i) * 70ms + .45s); }
.dg-incs.in .dg-inc__chk { transform: none; opacity: 1; }
.dg-incs.in .dg-inc__chk path { stroke-dashoffset: 0; }
.dg-inc__t { position: relative; margin-top: auto; font-family: var(--font-h); font-weight: 500; font-size: 17px; line-height: 24px; color: var(--text); }
@media (max-width: 1100px) { .dg-incs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dg-incs { grid-template-columns: 1fr; gap: 10px; } .dg-inc { min-height: 0; padding: 20px; flex-direction: row; align-items: center; }
  .dg-inc__t { margin: 0; padding-right: 40px; font-size: 16px; } .dg-inc__chk { top: 50%; margin-top: -15px; } }
@media (prefers-reduced-motion: reduce) { .dg-inc, .dg-inc__chk, .dg-inc__chk path { transition: none; } }

/* платформы — карточки с фирменной монограммой */
.dg-pfs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dg-pf { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 32px; transition: box-shadow .25s, transform .25s, border-color .25s; }
.dg-pf:hover { box-shadow: 0 14px 36px rgba(20,20,60,.09); transform: translateY(-3px); border-color: #ddd; }
.dg-pf__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.dg-pf__mark { display: inline-grid; place-items: center; min-width: 52px; height: 52px; padding: 0 10px; border-radius: 12px; background: var(--c); color: #fff;
  font-family: var(--font-h); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.dg-pf__arr { color: #bbb; transition: color .2s, transform .25s; }
.dg-pf:hover .dg-pf__arr { color: var(--theme); transform: translateX(4px); }
.dg-pf__title { font-family: var(--font-h); font-weight: 600; font-size: 20px; color: var(--text); margin-bottom: 8px; }
.dg .dg-pf p { font-size: 14px; line-height: 22px; margin: 0 0 22px; }
.dg-pf__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid #eee; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted-2); }
.dg-pf__foot b { font-family: var(--font-h); font-weight: 600; font-size: 15px; color: var(--text); white-space: nowrap; }
@media (max-width: 1100px) { .dg-pfs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dg-pfs { grid-template-columns: 1fr; gap: 12px; } .dg-pf { padding: 24px; } }

/* вопрос-ответ: левая колонка фиксируется при прокрутке */
.dg-faq__list { width: 100%; }
.dg-faq__stick { position: sticky; top: 140px; }
.dg-faq__card { margin-top: 28px; padding: 28px 30px; border-radius: 4px; background: var(--bg-soft); border: 1px solid var(--border); }
.dg-faq__card-h { font-family: var(--font-h); font-weight: 600; font-size: 18px; color: var(--text); margin-bottom: 6px; }
.dg .dg-faq__card p { font-size: 14px; line-height: 22px; margin: 0; }
.dg-faq__ph { display: block; font-family: var(--font-h); font-weight: 600; font-size: 22px; color: var(--text); margin: 16px 0 18px; }
.dg-faq__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.dg .dg-faq .acc-item.open { border-color: color-mix(in srgb, var(--theme) 40%, #fff); }
@media (max-width: 900px) { .dg-faq__stick { position: static; } }

/* производительность: ниже первого экрана — рендер по мере прокрутки */

/* выпадающие меню второго уровня — как в Аспро: мега-меню на ширину сетки, колонки */
@media (min-width: 1025px) {
  .dg .dg-header .header__inner { position: relative; }
  .dg .dg-header .nav-item--mega { position: static; }
  .dg .dg-header .drop--wide { left: 0; right: 0; width: auto; max-width: none; max-height: none; overflow: visible;
    top: 100%; border-radius: 0 0 4px 4px; padding: 32px 40px 24px; transform-origin: top center; }
  .dg .dg-header .drop--wide .drop__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 40px; }
  .dg .dg-header .drop__col { display: flex; flex-direction: column; }
  .dg .dg-header .drop--wide .drop__ct { padding: 0 0 12px; margin-bottom: 6px; border-bottom: 1px solid #eee; font-size: 16px; }
  .dg .dg-header a.drop__ct:hover { color: var(--theme); }
  .dg .dg-header .drop--wide .drop__item { padding: 7px 0; background: none; }
  .dg .dg-header .drop--wide .drop__item:hover { background: none; color: var(--theme); }
  .dg .dg-header .drop--wide .drop__sep { margin: 20px 0 0; }
  .dg .dg-header .drop--wide .drop__all { padding: 16px 0 0; display: inline-block; width: auto; }
  /* «Отрасли» — 3 колонки */
  .dg .dg-header .drop--cols { width: 720px; max-height: none; overflow: visible; display: grid; grid-template-columns: repeat(3, 1fr); padding: 18px 12px; }
  .dg .dg-header .drop--cols .drop__item { padding: 7px 14px; }
  .dg .dg-header .drop--cols .drop__sep, .dg .dg-header .drop--cols .drop__all { grid-column: 1 / -1; }
  .dg .dg-header .drop--cols .drop__all { padding: 10px 14px 4px; }
  .dg .dg-header .nav-item:not(.nav-item--mega) > .drop { left: -12px; }
  .dg .dg-header .nav-item:nth-child(3) > .drop--cols { left: -180px; }
}

/* первый слайд: затемнение фона GlassFold под текстом */
.dg-slide--g1::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(3,4,18,.66) 0%, rgba(3,4,18,.48) 45%, rgba(3,4,18,.22) 100%); }
/* кнопки: ширина по содержимому, текст по центру */
.dg .btn { justify-content: center; text-align: center; white-space: nowrap; }
.dg .dg-header .dg-hbtn { flex: 0 0 auto; width: auto; padding: 12px 26px; }
/* две галочки согласия */
.lf-consents { display: grid; gap: 8px; }
.dg .lf-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 19px; color: var(--muted); cursor: pointer; }
.dg .lf-consent input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--theme); }
.dg .lf-consent a { color: var(--theme); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 560px) { .dg .btn { white-space: normal; } }

/* квиз: ситуации — 2 колонки на всю ширину */
.dg-pills:has(.dg-pill--row) { display: grid; grid-template-columns: 1fr 1fr; }
.dg-pill--row span { height: 100%; }
@media (max-width: 640px) { .dg-pills:has(.dg-pill--row) { grid-template-columns: 1fr; } }

/* МОБИЛЬНАЯ ВЕРСИЯ: длинные колонки → ленты со свайпом */
@media (max-width: 767px) {
  .dg-pfs, .dg-newsg, .dg-tars { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; scrollbar-width: none;
    margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 8px; scroll-padding: 0 var(--pad); border: 0; }
  .dg-pfs::-webkit-scrollbar, .dg-newsg::-webkit-scrollbar, .dg-tars::-webkit-scrollbar { display: none; }
  .dg-pf, .dg-news { flex: 0 0 82%; scroll-snap-align: start; }
  .dg-tar { flex: 0 0 86%; scroll-snap-align: start; border: 1px solid var(--border) !important; border-radius: 4px; }
  .dg-tar + .dg-tar { border-top: 1px solid var(--border); }
  .dg-client:nth-child(n+9) { display: none; }
  .dg-sec { padding: 44px 0; }
  .dg-bh { margin-bottom: 24px; }
  .dg-bh__text { margin-top: 14px; font-size: 14px; line-height: 22px; }
  .dg .dg-bh__title { font-size: 26px; }
  .dg-faq__card { padding: 22px 20px; }
  .dg-faq__btns .btn { flex: 1; }
}

/* КВИЗ на сетку сайта: фото + оффер слева, вопросы справа */
.dg-quiz.dg-quiz--media { max-width: none; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding: 0; overflow: hidden; }
.dg-quiz__body { padding: 32px 40px 22px; display: flex; flex-direction: column; min-width: 0; }
.dg-quiz__media { position: relative; min-height: 460px; background: #111; }
.dg-quiz__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dg-quiz__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,30,.05) 20%, rgba(10,10,30,.82) 100%); }
.dg-quiz__over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 32px 36px; color: #fff; }
.dg-quiz__over .dg-quiz__kind { color: #c7c4ff; }
.dg-quiz__hook { font-family: var(--font-h); font-weight: 600; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.2; margin: 6px 0 16px; }
.dg-quiz__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: rgba(255,255,255,.9); }
.dg-quiz__perks li::before { content: "✓"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 10px; border-radius: 50%;
  background: var(--theme); color: #fff; font-size: 11px; }
.dg-quiz--media .dg-quiz__title { font-size: 18px; }
@media (max-width: 900px) {
  .dg-quiz.dg-quiz--media { grid-template-columns: 1fr; }
  .dg-quiz__media { min-height: 260px; }
  .dg-quiz__over { padding: 22px 20px; }
  .dg-quiz__body { padding: 22px 18px 16px; }
}

/* квиз — компактнее */
.dg-quiz--media .dg-quiz__media { min-height: 340px; }
.dg-quiz--media .dg-quiz__body { padding: 24px 32px 20px; }
.dg-quiz--media .dg-quiz__head { padding-bottom: 14px; margin-bottom: 16px; align-items: center; }
.dg-quiz--media .dg-quiz__title { font-size: 16px; }
.dg-quiz--media .dg-quiz__form { min-height: 0; gap: 14px; }
.dg-quiz--media .dg-qs legend { font-size: 17px; }
.dg-quiz--media .dg-pills { gap: 6px; margin-top: 10px; }
.dg-quiz--media .dg-pill span { padding: 8px 14px; font-size: 14px; }
.dg-quiz--media .dg-pill--row span { padding: 9px 14px; }
.dg-quiz--media .dg-quiz__note { display: none; }
.dg-quiz--media .dg-qs__ch { margin: 10px 0; }
.dg-quiz--media .dg-qs--final .lf-consents { margin-bottom: 10px; }
.dg-quiz__hook { font-size: clamp(20px, 1.8vw, 26px); }
.dg-quiz__over { padding: 24px 28px; }
@media (max-width: 900px) { .dg-quiz--media .dg-quiz__media { min-height: 200px; } .dg-quiz__perks { display: none; } .dg-quiz--media .dg-quiz__body { padding: 18px 16px 14px; } }

/* bento-карточки (b_cards) */
.dg-bento { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 16px; }
.dg-bento__c { position: relative; overflow: hidden; grid-column: span var(--span, 1); display: flex; flex-direction: column; min-height: 230px; padding: 28px 30px 30px;
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .25s;
  transition-delay: calc(var(--i) * 70ms), calc(var(--i) * 70ms), 0s, 0s; }
.dg-bento.in .dg-bento__c { opacity: 1; transform: none; }
.dg-bento__c::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--theme) 12%, transparent), transparent 70%); }
.dg-bento__c:hover { border-color: color-mix(in srgb, var(--theme) 40%, #fff); box-shadow: 0 14px 36px rgba(20,20,60,.08); }
.dg-bento__c:hover::before { opacity: 1; }
.dg-bento__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; padding-bottom: 36px; }
.dg-bento__ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--theme-tint); color: var(--theme); transition: transform .3s; }
.dg-bento__ico svg { width: 22px; height: 22px; stroke-width: 1.8; }
.dg-bento__c:hover .dg-bento__ico { transform: rotate(-6deg) scale(1.06); }
.dg-bento__n { font-family: var(--font-h); font-size: 13px; font-weight: 600; color: var(--muted-2); }
.dg-bento__t { position: relative; font-family: var(--font-h); font-weight: 600; font-size: 19px; line-height: 26px; color: var(--text); margin-bottom: 8px; }
.dg .dg-bento__c p { position: relative; margin: 0; font-size: 14px; line-height: 22px; }
.dg-bento__c--accent { background: var(--theme); border-color: var(--theme); }
.dg-bento__c--accent .dg-bento__ico { background: rgba(255,255,255,.16); color: #fff; }
.dg-bento__c--accent .dg-bento__n, .dg .dg-bento__c--accent p { color: rgba(255,255,255,.75); }
.dg-bento__c--accent .dg-bento__t { color: #fff; }
.dg-bento__c--accent::before { background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.16), transparent 70%); }
@media (max-width: 1100px) { .dg-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dg-bento__c { grid-column: auto; } .dg-bento__c:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 600px) { .dg-bento { grid-template-columns: 1fr; gap: 10px; } .dg-bento__c { min-height: 0; padding: 22px; } .dg-bento__top { padding-bottom: 18px; } }
@media (prefers-reduced-motion: reduce) { .dg-bento__c { transition: none; opacity: 1; transform: none; } }

/* галочки — SVG вместо символа «✓» (его нет в шрифтах) */
.dg-quiz__perks li { display: flex; align-items: center; }
.dg-quiz__perks li::before { content: ""; flex: 0 0 18px; background: var(--theme) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.dg-pill input[type=checkbox]:checked + span::before { content: ""; width: 12px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.dg-quiz__media::after { background: linear-gradient(180deg, rgba(10,10,30,.15) 0%, rgba(10,10,30,.55) 40%, rgba(10,10,30,.88) 100%); }

/* УСЛУГИ на главной — карточки направлений со списком и ценами */
.dg-svc-grid { gap: 16px; align-items: stretch; }
.dg-svc { min-height: 0; padding: 28px 28px 22px; border-radius: 6px; display: flex; flex-direction: column;
  opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s;
  transition-delay: calc(var(--i) * 80ms), calc(var(--i) * 80ms), 0s, 0s; overflow: hidden; }
.dg-svc-grid.in .dg-svc { opacity: 1; transform: none; }
.dg-svc::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--theme) 9%, transparent), transparent 70%); }
.dg-svc:hover::before { opacity: 1; }
.dg-svc:hover { border-color: color-mix(in srgb, var(--theme) 35%, #fff); }
.dg-svc__head { position: relative; display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.dg-svc__ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--theme-tint); color: var(--theme); }
.dg-svc__ico svg { width: 26px; height: 26px; }
.dg-svc__cnt { font-size: 12px; font-weight: 700; color: var(--theme); background: var(--theme-tint); border-radius: 20px; padding: 4px 10px; }
.dg .dg-svc__title { position: relative; margin: 0 0 6px; font-size: 19px; font-weight: 600; }
.dg .dg-svc__desc { position: relative; font-size: 13px; line-height: 20px; color: var(--muted-2); margin: 0 0 16px; min-height: 40px; }
.dg-svc__list { position: relative; list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid #eee; }
.dg-svc__list li { border-bottom: 1px solid #f0f0f0; }
.dg-svc__list a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; font-size: 14px; line-height: 20px; color: var(--text); transition: padding .2s, color .2s; }
.dg-svc__list a:hover { color: var(--theme); padding-left: 6px; }
.dg-svc__list b { font-weight: 400; font-size: 12px; color: var(--muted-2); white-space: nowrap; }
.dg-svc__all { position: relative; margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--theme); }
.dg-svc .dg-svc__arr { display: none; }
.dg-nums { margin-top: 56px; padding-top: 40px; border-top: 1px solid #eee; }
@media (max-width: 767px) { .dg-svc { padding: 22px 20px 18px; } .dg-nums { margin-top: 32px; padding-top: 28px; } .dg .dg-svc__desc { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .dg-svc { opacity: 1; transform: none; transition: none; } }

/* гарантии и договор */
.dg-grs-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.dg-grs-head { position: sticky; top: 140px; }
.dg-grs-head .lead { margin-bottom: 24px; }
.dg-grs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dg-gr { display: flex; gap: 16px; padding: 22px 24px; border: 1px solid var(--border); border-radius: 6px; background: #fff;
  opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i) * 60ms); }
.dg-grs.in .dg-gr { opacity: 1; transform: none; }
.dg-gr__ico { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--theme-tint); color: var(--theme); }
.dg-gr__ico svg { width: 20px; height: 20px; }
.dg-gr__t { font-family: var(--font-h); font-weight: 600; font-size: 16px; color: var(--text); margin-bottom: 4px; }
.dg .dg-gr p { margin: 0; font-size: 14px; line-height: 21px; }
@media (max-width: 900px) { .dg-grs-wrap { grid-template-columns: 1fr; gap: 24px; } .dg-grs-head { position: static; } .dg-grs { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .dg-gr { opacity: 1; transform: none; } }

/* нейропоиск — флагман */
.dg-neuro { background: #0a0a1f; color: #fff; padding: 64px 0; }
.dg-neuro__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: center; }
.dg-neuro__kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a5a1ff; margin-bottom: 10px; }
.dg-neuro__title { font-family: var(--font-h); font-weight: 600; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.15; margin-bottom: 16px; }
.dg .dg-neuro p { color: rgba(255,255,255,.75); max-width: 640px; }
.dg-neuro__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.dg-neuro__price { border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 24px 26px; background: rgba(255,255,255,.03); }
.dg-neuro__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.dg-neuro__row b { font-family: var(--font-h); font-weight: 600; font-size: 24px; color: #fff; }
.dg-neuro__row--muted b { font-size: 18px; color: rgba(255,255,255,.55); }
.dg-neuro__row span { font-size: 14px; color: rgba(255,255,255,.7); }
.dg .dg-neuro__price p { font-size: 12px; line-height: 18px; margin: 12px 0 0; color: rgba(255,255,255,.45); }
@media (max-width: 900px) { .dg-neuro { padding: 44px 0; } .dg-neuro__in { grid-template-columns: 1fr; gap: 24px; } }

/* тарифы отрасли */
.dg-nts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dg-nt { position: relative; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.dg-nt--pop { border-color: var(--theme); box-shadow: 0 14px 36px rgba(79,70,229,.12); }
.dg-nt__pop { position: absolute; top: -11px; left: 30px; font-size: 11px; font-weight: 700; color: #fff; background: var(--theme); border-radius: 3px; padding: 2px 8px; }
.dg-nt__name { font-family: var(--font-h); font-weight: 600; font-size: 18px; color: var(--text); }
.dg-nt__price { font-family: var(--font-h); font-weight: 600; font-size: 28px; color: var(--text); margin: 10px 0 12px; }
.dg .dg-nt p { font-size: 14px; line-height: 22px; margin: 0 0 22px; }
.dg-nt .btn { margin-top: auto; }
@media (max-width: 900px) { .dg-nts { grid-template-columns: 1fr; } }

/* калькулятор */
.dg-calc { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px; align-items: start; }
.dg-calc__form { display: grid; gap: 20px; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 32px 36px; }
.dg-calc select.lf-field { width: 100%; padding: 13px 16px; background: #fff; }
.dg-calc__res { position: sticky; top: 140px; background: var(--theme); color: #fff; border-radius: 6px; padding: 30px; }
.dg-calc__lbl { font-size: 13px; opacity: .8; }
.dg-calc__sum { font-family: var(--font-h); font-weight: 600; font-size: clamp(30px, 2.8vw, 40px); margin: 6px 0 14px; }
.dg .dg-calc__res p { color: rgba(255,255,255,.8); font-size: 13px; line-height: 20px; }
.dg .dg-calc__res .btn { background: #fff; color: var(--theme); border-color: #fff; width: 100%; }
@media (max-width: 900px) { .dg-calc { grid-template-columns: 1fr; } .dg-calc__res { position: static; } .dg-calc__form { padding: 22px 18px; } }

/* ───────── Тарифы карточками (по мотивам 21st pricing-section; без фонового пятна) ───────── */
.dg-pr__head { text-align: center; max-width: 760px; margin: 0 auto 28px; }
.dg-pr__head .dg-bh__sub { margin-bottom: 10px; }
.dg-pr__title { font-family: var(--font-h); font-weight: 500; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; color: var(--text); margin: 0 0 14px; }
.dg-pr__title span { display: inline-block; padding: 0 10px; border: 1px dashed var(--theme); border-radius: 12px; background: color-mix(in srgb, var(--theme) 9%, #fff); }
.dg-pr__lead { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0 auto; max-width: 620px; }
.dg-pr__swwrap { display: flex; justify-content: center; margin-bottom: 32px; }
.dg-pr__sw { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: #f6f6f9; border: 1px solid var(--border); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.dg-pr__sw::-webkit-scrollbar { display: none; }
.dg-pr__thumb { position: absolute; top: 4px; left: 4px; height: calc(100% - 8px); border-radius: 999px; background: var(--theme);
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--theme) 70%, transparent); transition: transform .38s cubic-bezier(.3,1.3,.5,1), width .38s cubic-bezier(.3,1.3,.5,1); }
.dg-pr__sw button { position: relative; z-index: 1; flex: 0 0 auto; height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: none;
  font: 600 15px/1 var(--font-h); color: var(--muted); cursor: pointer; transition: color .2s; white-space: nowrap; }
.dg-pr__sw button:hover { color: var(--text); }
.dg-pr__sw button.on { color: #fff; }
.dg-pr__sw button:focus-visible { outline: 2px solid var(--theme); outline-offset: 2px; }
.dg-pr__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.dg-prc { position: relative; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.dg-prc--pop { border-color: var(--theme); box-shadow: 0 0 0 1px var(--theme), 0 24px 48px -28px color-mix(in srgb, var(--theme) 55%, transparent);
  background: color-mix(in srgb, var(--theme) 4%, #fff); }
.dg-prc__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dg-prc__name { font-family: var(--font-h); font-weight: 600; font-size: 26px; line-height: 1.2; color: var(--text); }
.dg-prc__badge { padding: 5px 12px; border-radius: 999px; background: var(--theme); color: #fff; font: 600 12px/1 var(--font-h); white-space: nowrap; }
.dg-prc__desc { margin: 8px 0 22px; font-size: 14px; line-height: 1.5; color: var(--muted); min-height: 21px; }
.dg-prc__price { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-h); font-weight: 600; color: var(--text); }
.dg-prc__from { font-size: 18px; color: var(--muted); font-weight: 500; }
.dg-prc__num { font-size: clamp(32px, 3vw, 40px); line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.dg-prc__cur { font-size: 26px; }
.dg-prc--pop .dg-prc__num, .dg-prc--pop .dg-prc__cur { color: var(--theme); }
.dg-prc__note { margin: 8px 0 22px; font-size: 13px; color: var(--muted-2, #999); }
.dg-prc__btn { display: flex; align-items: center; justify-content: center; height: 52px; border-radius: 12px; background: #1f1f26; color: #fff !important;
  font: 600 16px/1 var(--font-h); text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s; box-shadow: 0 10px 22px -14px rgba(0,0,0,.8); }
.dg-prc__btn:hover { transform: translateY(-1px); background: #000; }
.dg-prc--pop .dg-prc__btn { background: var(--theme); box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--theme) 80%, transparent); }
.dg-prc--pop .dg-prc__btn:hover { background: color-mix(in srgb, var(--theme) 86%, #000); }
.dg-prc__feats { list-style: none; margin: 26px 0 0; padding: 0 0 22px; display: grid; gap: 12px; }
.dg-prc__feats li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--text); }
.dg-prc__feats svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--text); }
.dg-prc__inc { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border); }
.dg-prc__inc-h { font: 600 15px/1.3 var(--font-h); color: var(--text); margin-bottom: 12px; }
.dg-prc__inc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dg-prc__inc li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.dg-prc__ok { flex: 0 0 22px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--theme);
  background: color-mix(in srgb, var(--theme) 7%, #fff); color: var(--theme); }
.dg-prc__ok svg { width: 13px; height: 13px; }
.dg-pr__all { margin: 26px 0 0; text-align: center; font-size: 15px; }
.dg-pr__all a { color: var(--theme); font-weight: 600; }
/* появление: размытие → чётко, по очереди */
@media (prefers-reduced-motion: no-preference) {
  .dg-pr .dg-pr__head, .dg-pr .dg-pr__swwrap, .dg-pr .dg-prc { opacity: 0; transform: translateY(-16px); filter: blur(8px);
    transition: opacity .5s ease, transform .5s ease, filter .5s ease; }
  .dg-pr .dg-pr__swwrap { transition-delay: .15s; }
  .dg-pr .dg-prc { transition-delay: calc(.3s + var(--i) * .15s); }
  .dg-pr.in .dg-pr__head, .dg-pr.in .dg-pr__swwrap, .dg-pr.in .dg-prc { opacity: 1; transform: none; filter: none; }
}
@media (max-width: 1024px) { .dg-pr__grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } .dg-prc__desc { min-height: 0; } }
@media (max-width: 640px) { .dg-prc { padding: 24px 20px; border-radius: 14px; } .dg-pr__sw button { height: 40px; padding: 0 16px; font-size: 14px; }
  .dg-pr__swwrap { justify-content: flex-start; margin-left: -4px; margin-right: -4px; } .dg-prc__name { font-size: 22px; } }

/* блог: счётчики статей в шапке раздела */
.dg-bstats { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; padding: 0; }
.dg-bstats li { display: flex; align-items: baseline; gap: 8px; padding: 12px 18px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.dg-bstats b { font: 600 24px/1 var(--font-h); color: var(--theme); }
.dg-bstats span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .dg-bstats li { padding: 10px 14px; } .dg-bstats b { font-size: 20px; } }
