/* Service cards share one border. This file is loaded only on service pages.
   Important declarations in this layer replace legacy border + green shadow rings. */
@layer dn-service-card-interactions {
  body.dn-service-cards {
    --dn-service-card-hover: #22c55e;
    --dn-service-card-hover-shadow: 0 12px 28px -12px rgb(12 16 21 / 18%);
  }
  html body.dn-service-cards main :is(
    .hub-card,
    .dn-home-case-card,
    .dn-case-card,
    .dn-related-card,
    .pr3-tariff,
    .fitem,
    .gads-related-tile,
    .aud-sec01-card,
    .aud-process-card,
    .ds-audience-card,
    .ds-format-card,
    .av-card,
    .media-audience__card,
    .med-formats-card,
    .med-adv-card,
    .tgr-guarantee-card,
    .gads-fit-card,
    .gads-format-card-v2,
    .gads-why-nano-card,
    .gads-step-item,
    .gads-who-benefit,
    .gads-guarantee-panoramic__card,
    .aim-segment-card,
    .ai-benefit-card,
    .fmt-row,
    .aim-proc-step-card,
    .aim-guar-card,
    .mx-card,
    .maxm-why-card,
    .maxm-step-col,
    .tgr-audience-item,
    .tgr-fmt-card,
    .tg-why__card,
    .vkm-who-card,
    .vk-benefits__card,
    .vkm-process-card,
    .vkm-guar-card,
    .tg-platform-card,
    .tg-bento-card,
    .tgt-proc-card,
    .tzr-b01-card,
    .tz-inc-card,
    .tzr-b03-card,
    .tz-process-card,
    .tz-gr-mockup-card,
    .k-card-manager,
    .ocard,
    .rs-segment,
    .rs-format
  ) {
    box-sizing: border-box !important;
    border-width: 1px !important;
    border-style: solid !important;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  }
  html body.dn-service-cards main :is(
    .hub-card,
    .dn-home-case-card,
    .dn-case-card,
    .dn-related-card,
    .pr3-tariff,
    .fitem,
    .gads-related-tile,
    .aud-sec01-card,
    .aud-process-card,
    .ds-audience-card,
    .ds-format-card,
    .av-card,
    .media-audience__card,
    .med-formats-card,
    .med-adv-card,
    .tgr-guarantee-card,
    .gads-fit-card,
    .gads-format-card-v2,
    .gads-why-nano-card,
    .gads-step-item,
    .gads-who-benefit,
    .gads-guarantee-panoramic__card,
    .aim-segment-card,
    .ai-benefit-card,
    .fmt-row,
    .aim-proc-step-card,
    .aim-guar-card,
    .mx-card,
    .maxm-why-card,
    .maxm-step-col,
    .tgr-audience-item,
    .tgr-fmt-card,
    .tg-why__card,
    .vkm-who-card,
    .vk-benefits__card,
    .vkm-process-card,
    .vkm-guar-card,
    .tg-platform-card,
    .tg-bento-card,
    .tgt-proc-card,
    .tzr-b01-card,
    .tz-inc-card,
    .tzr-b03-card,
    .tz-process-card,
    .tz-gr-mockup-card,
    .k-card-manager,
    .ocard,
    .rs-segment,
    .rs-format
  ):is(:hover, :focus-within) {
    border-color: var(--dn-service-card-hover) !important;
    box-shadow: var(--dn-service-card-hover-shadow) !important;
  }
  html body.dn-service-cards main :is(
    .hub-card,
    .dn-home-case-card,
    .dn-case-card,
    .dn-related-card,
    .pr3-tariff,
    .fitem,
    .gads-related-tile,
    .aud-sec01-card,
    .aud-process-card,
    .ds-audience-card,
    .ds-format-card,
    .av-card,
    .media-audience__card,
    .med-formats-card,
    .med-adv-card,
    .tgr-guarantee-card,
    .gads-fit-card,
    .gads-format-card-v2,
    .gads-why-nano-card,
    .gads-step-item,
    .gads-who-benefit,
    .gads-guarantee-panoramic__card,
    .aim-segment-card,
    .ai-benefit-card,
    .fmt-row,
    .aim-proc-step-card,
    .aim-guar-card,
    .mx-card,
    .maxm-why-card,
    .maxm-step-col,
    .tgr-audience-item,
    .tgr-fmt-card,
    .tg-why__card,
    .vkm-who-card,
    .vk-benefits__card,
    .vkm-process-card,
    .vkm-guar-card,
    .tg-platform-card,
    .tg-bento-card,
    .tgt-proc-card,
    .tzr-b01-card,
    .tz-inc-card,
    .tzr-b03-card,
    .tz-process-card,
    .tz-gr-mockup-card,
    .k-card-manager,
    .ocard,
    .rs-segment,
    .rs-format
  ):hover:not(:focus-visible) {
    outline-width: 0 !important;
  }
  @media (prefers-reduced-motion: reduce) {
    html body.dn-service-cards main :is(
    .hub-card,
    .dn-home-case-card,
    .dn-case-card,
    .dn-related-card,
    .pr3-tariff,
    .fitem,
    .gads-related-tile,
    .aud-sec01-card,
    .aud-process-card,
    .ds-audience-card,
    .ds-format-card,
    .av-card,
    .media-audience__card,
    .med-formats-card,
    .med-adv-card,
    .tgr-guarantee-card,
    .gads-fit-card,
    .gads-format-card-v2,
    .gads-why-nano-card,
    .gads-step-item,
    .gads-who-benefit,
    .gads-guarantee-panoramic__card,
    .aim-segment-card,
    .ai-benefit-card,
    .fmt-row,
    .aim-proc-step-card,
    .aim-guar-card,
    .mx-card,
    .maxm-why-card,
    .maxm-step-col,
    .tgr-audience-item,
    .tgr-fmt-card,
    .tg-why__card,
    .vkm-who-card,
    .vk-benefits__card,
    .vkm-process-card,
    .vkm-guar-card,
    .tg-platform-card,
    .tg-bento-card,
    .tgt-proc-card,
    .tzr-b01-card,
    .tz-inc-card,
    .tzr-b03-card,
    .tz-process-card,
    .tz-gr-mockup-card,
    .k-card-manager,
    .ocard,
    .rs-segment,
    .rs-format
  ) { transition: none !important; }
  }
}

/* Google Ads: each pair of light sections has a visible boundary. */
html body.page--gads #main-content :is(#who, #why, #pricing, #gads-form) {
  background: #f7f7f7 !important;
  background-image: none !important;
}
html body.page--gads #main-content #steps {
  background: #fff !important;
  background-image: none !important;
}

/* Media guarantees: more room between the cards and a larger central visual. */
html body.dn9-document--mediynaya-reklama #guarantees .tgr-07-flanked {
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 25rem) minmax(12rem, 16rem);
  gap: clamp(1.5rem, 2.25vw, 2.5rem);
}
html body.dn9-document--mediynaya-reklama #guarantees .tgr-07-col {
  gap: 2rem;
}
html body.dn9-document--mediynaya-reklama #guarantees :is(.tgr-07-pic-wrap, .tgr-07-center-pic) {
  max-width: 25rem;
}
@media (min-width: 861px) and (max-width: 1280px) {
  html body.dn9-document--mediynaya-reklama #guarantees .tgr-07-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
  html body.dn9-document--mediynaya-reklama #guarantees .tgr-07-copy { max-width: 38rem; }
  html body.dn9-document--mediynaya-reklama #guarantees .tgr-07-flanked { justify-content: center; }
}
@media (max-width: 860px) {
  html body.dn9-document--mediynaya-reklama #guarantees :is(.tgr-07-pic-wrap, .tgr-07-center-pic) {
    max-width: min(20rem, 100%);
  }
  html body.dn9-document--mediynaya-reklama #guarantees .tgr-07-col { gap: 1.5rem; }
}
