/* Mobile refinements for the public catalog and company pages. */
.page--projects .keisy-hero__stat:not(:last-child)::after {
  content: none;
}

.page--case .cf-tech-chip:is(.cf-tech-chip--autoru, .cf-tech-chip--2gis) > svg,
.page--case .cf-tech-chip > img.cf-tech-wordmark {
  width: 82px;
  height: auto;
}

.page--case .cf-tech-chip--2gis > svg {
  width: 48px;
}

.page--case .cf-tech-chip > img.cf-tech-wordmark {
  filter: brightness(0) invert(1);
}

.page--case .cf-tech-chip--wallet > svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.page--case .cf-tech-chip:is(.cf-tech-chip--autoru, .cf-tech-chip--2gis):has(> svg) > span,
.page--case .cf-tech-chip:has(> .cf-tech-wordmark) > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (max-width: 1024px) {
  body.home-dark #blog .blog-head {
    gap: 18px !important;
  }

  body.home-dark #blog .blog-head > :last-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body.home-dark #blog .blog-top-bar {
    display: contents;
  }

  body.home-dark #blog .blog-all-link {
    grid-row: 1;
    justify-self: start;
    width: fit-content;
  }

  body.home-dark #blog .blog-grid {
    grid-row: 2;
    order: 0;
  }

  body.home-dark #blog .blog-nav {
    grid-row: 3;
    justify-self: end;
  }
}

@media (max-width: 992px) {
  html body.vk-page-body :is(.vk-hero-grid, .vk-hero-content, .vk-hero-title, .vk-hero-subtitle) {
    text-align: left !important;
  }

  html body.vk-page-body .vk-hero-content {
    align-items: flex-start !important;
  }

  html body.vk-page-body :is(.vk-hero-title, .vk-hero-subtitle) {
    margin-inline: 0 !important;
  }

  html body.dn9-document--targetirovannaya-reklama .tg-hero .tg-hero__grid,
  html body.dn9-document--targetirovannaya-reklama .tg-hero .tg-hero-copy {
    text-align: left !important;
  }

  html body.dn9-document--targetirovannaya-reklama .tg-hero .tg-hero-copy {
    align-items: flex-start !important;
  }

  html body.dn9-document--targetirovannaya-reklama .tg-hero :is(.tg-hero__title, .tg-hero__lead) {
    text-align: left !important;
    margin-inline: 0 !important;
  }

  html body.dn9-document--targetirovannaya-reklama .tg-hero .tg-hero__actions {
    justify-content: flex-start;
  }
}
@media (max-width: 960px) {
  .page--projects .keisy-hero {
    padding-bottom: clamp(32px, 8vw, 52px);
  }

  .page--projects .keisy-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .page--projects .keisy-hero__lead {
    margin-bottom: 0;
  }

  .page--projects .keisy-hero__stats {
    margin-top: 24px;
  }

  .page--projects .keisy-hero__visual picture {
    display: block;
    width: min(100%, 580px);
  }

  .page--projects .keisy-hero__visual .keisy-hero__img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    transform: none;
    filter: drop-shadow(0 10px 12px rgb(12 20 16 / 9%));
  }
}

@media (max-width: 860px) {
  .page--vacancies main .v-faq {
    padding-top: 24px !important;
  }

  .page--vacancies main .v-faq__grid {
    gap: 12px !important;
  }

  .page--vacancies main .v-accordion-item {
    margin-block: 0 !important;
  }
}

@media (max-width: 57.99rem) {
  .page--company-certificates .cert-archive-hero__copy {
    justify-items: start;
    text-align: left;
  }

  .page--company-certificates .cert-archive-hero__proof {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page--vacancy-detail .vd-hr-card .vd-hr-media {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .page--vacancy-detail .vd-hr-card .vd-hr-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center top;
  }

  body.page--gads #who .gads-fit-card__top {
    height: 155px;
  }

  body.page--gads #who .gads-fit-card__art img {
    max-height: 155px;
  }

  body:is(.page--gads, .vk-page-body, .dn9-document--reklama-v-telegram, .dn9-document--audit-reklamnoy-kampanii, .recovered-page--digital-strategiya) #pricing > .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body:is(.page--gads, .vk-page-body, .dn9-document--reklama-v-telegram, .dn9-document--audit-reklamnoy-kampanii, .recovered-page--digital-strategiya) #pricing :is(.stoimost-top-bar, .stoimost-body, .stoimost-side-info) {
    display: contents !important;
  }

  body:is(.page--gads, .vk-page-body, .dn9-document--reklama-v-telegram, .dn9-document--audit-reklamnoy-kampanii, .recovered-page--digital-strategiya) #pricing .stoimost-top-bar .dn-sec-eyebrow {
    grid-row: 1;
    justify-self: start;
    justify-content: flex-start !important;
    text-align: left !important;
    margin-bottom: 14px !important;
  }

  body:is(.page--gads, .vk-page-body, .dn9-document--reklama-v-telegram, .dn9-document--audit-reklamnoy-kampanii, .recovered-page--digital-strategiya) #pricing .stoimost-side-info .h2 {
    grid-row: 2;
  }

  body:is(.page--gads, .vk-page-body, .dn9-document--reklama-v-telegram, .dn9-document--audit-reklamnoy-kampanii, .recovered-page--digital-strategiya) #pricing .stoimost-side-info .sec-sub {
    grid-row: 3;
    margin-top: 14px !important;
  }

  body:is(.page--gads, .vk-page-body, .dn9-document--reklama-v-telegram, .dn9-document--audit-reklamnoy-kampanii, .recovered-page--digital-strategiya) #pricing .stoimost-consult-link {
    grid-row: 4;
    justify-self: start;
    min-height: 44px;
    max-width: 100%;
    margin: 16px 0 24px !important;
    padding: 6px 8px 6px 14px;
    border: 1px solid #d4dfe4;
    border-radius: 999px;
    background: #fff;
    white-space: normal !important;
  }

  body:is(.page--gads, .vk-page-body, .dn9-document--reklama-v-telegram, .dn9-document--audit-reklamnoy-kampanii, .recovered-page--digital-strategiya) #pricing .stoimost-grid {
    grid-row: 5;
  }

  body.vk-page-body #formats.vkm-sec .vkm-format-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: visible;
  }

  body.vk-page-body #formats.vkm-sec .vkm-format-tab {
    grid-column: span 2;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 8px 4px;
    border-bottom: 1px solid #dadada;
    white-space: normal;
    font-size: clamp(.75rem, 2.8vw, .9375rem);
  }

  body.vk-page-body #formats.vkm-sec .vkm-format-tab:nth-child(n+4) {
    grid-column: span 3;
    border-bottom: 0;
  }

  body.vk-page-body #formats.vkm-sec .vkm-format-tab:nth-child(3) {
    border-right: 0;
  }

  body.vk-page-body #benefits .vk-benefits__hero-art {
    width: min(90%, 440px);
    margin-inline: auto;
  }

  .page--projects .keisy-process-steps {
    gap: 12px;
  }

  .page--projects .keisy-step-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 4px 12px;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    box-shadow: none;
  }

  .page--projects .keisy-step-card:hover {
    transform: none;
    box-shadow: none;
  }

  .page--projects .keisy-step-card__top {
    display: contents;
  }

  .page--projects .keisy-step-card__icon {
    grid-area: 1 / 1 / 3 / 2;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eaf8e6;
    color: #1e7a16;
    box-shadow: none;
  }

  .page--projects .keisy-step-card__icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor !important;
    filter: none;
  }

  .page--projects .keisy-step-card__num {
    grid-area: 1 / 3 / 3 / 4;
    font-variant-numeric: tabular-nums;
    font-size: 0.825rem;
  }

  .page--projects .keisy-step-card__title {
    grid-area: 1 / 2;
    margin: 0;
    font-size: 1rem;
    text-align: left;
  }

  .page--projects .keisy-step-card__desc {
    grid-area: 2 / 2;
    font-size: .875rem;
    text-align: left;
  }

  @layer dn-refinements {
    .staff-carousel:has(> .staff-row) {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      max-width: 340px;
      margin: 0 auto !important;
    }

    .staff-carousel > .staff-row {
      grid-area: 1 / 1 / 2 / -1;
      display: flex !important;
      min-width: 0;
      gap: 12px !important;
      margin: 0 !important;
      padding: 0 !important;
      overflow-x: auto !important;
      overflow-y: hidden !important;
      scroll-snap-type: x mandatory !important;
      scroll-padding: 0 !important;
      overscroll-behavior-inline: contain;
      scrollbar-width: none;
    }

    .staff-carousel > .staff-row > .scard {
      flex: 0 0 100% !important;
      width: 100% !important;
      max-width: 100% !important;
      scroll-snap-align: start !important;
      scroll-snap-stop: always;
    }

    .staff-carousel > .staff-row > .scard[aria-hidden="true"] {
      display: none !important;
    }

    .staff-carousel > .staff-nav {
      display: flex !important;
      position: static !important;
      grid-row: 2;
      transform: none !important;
      justify-self: end;
    }

    .staff-carousel > .staff-nav.next {
      grid-column: 2;
      justify-self: start;
    }
  }

  :is(.hm-team-sec, body.home-dark #staff) #staffRow .scard .t,
  :is(.hm-team-sec, body.home-dark #staff) #staffRow .scard .l {
    left: 12px !important;
    right: 12px !important;
  }

  :is(.hm-team-sec, body.home-dark #staff) #staffRow .scard .t {
    bottom: 10px !important;
    font-size: 1rem !important;
  }

  :is(.hm-team-sec, body.home-dark #staff) #staffRow .scard .l {
    bottom: 34px !important;
    overflow-wrap: anywhere;
  }

  .page--partners .pt-dark {
    display: block;
    min-height: 0;
    background: #0b110e;
  }

  .page--partners .pt-dark__bg {
    display: none;
  }

  .page--partners .pt-dark__copy {
    width: 100%;
    padding: 24px;
  }

  .page--partners .pt-dark__copy p {
    color: #edf1ee;
  }

  .page--partners .pt-dark::after {
    content: "";
    display: block;
    height: clamp(160px, 58vw, 300px);
    background: #0b110e url("/images/new/partners/partnership-mobile.webp") center / cover no-repeat;
  }
}

@media (max-width: 640px) {
  body.home-dark #preim .preim-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
  }

  body.home-dark #preim .preim-strip .ps-brand {
    width: 100%;
    gap: 6px;
  }

  body.home-dark #preim .preim-strip .logo-sm {
    height: 38px;
    max-width: 100%;
    object-position: left center;
  }

  body.home-dark #preim .preim-strip .ps-action {
    flex-direction: row-reverse;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #e0e7e9;
  }

  body.home-dark #preim .preim-strip .ps-action-text {
    color: #233841;
    font-size: .875rem;
    font-weight: 750;
  }

  body.home-dark #preim .preim-strip .ps-action-text br {
    display: none;
  }

  body.home-dark #preim .preim-strip .dark-go {
    width: 44px;
    height: 44px;
    margin: 0;
  }

  body.home-dark #fincta .fincta-grid {
    gap: 12px !important;
  }

  body.home-dark #fincta .fincta-action-row {
    flex-flow: row wrap;
    align-items: center !important;
    gap: 10px 14px !important;
    margin-top: 20px !important;
  }

  body.home-dark #fincta .fincta-action-row .btn {
    width: fit-content !important;
    margin: 0;
  }

  body.home-dark #fincta .fincta-action-row .free {
    flex: 1 1 120px;
  }

  body.home-dark #fincta .fincta-benefits {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100%;
    gap: 12px 10px !important;
    padding-block: 16px 0;
    margin: 18px 0 0 !important;
    border-top: 1px solid #dce6e8;
  }

  body.home-dark #fincta .fincta-benefits li {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 5px !important;
  }

  body.home-dark #fincta .fincta-benefits svg {
    width: 22px !important;
    height: 22px !important;
  }

  body.home-dark #fincta .fincta-visual {
    min-height: 0 !important;
  }

  body.home-dark #fincta .fincta-motion {
    width: min(100%, 460px) !important;
    margin: 0 auto !important;
  }

  body.home-dark #fincta .fincta-project-scene {
    transform: none !important;
  }

  .page--case .cf-hero .cf-hero-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 2.4vw, 16px);
  }

  .page--case .cf-hero .cf-hkpi-val {
    font-size: clamp(1.25rem, 5.8vw, 2rem);
    font-variant-numeric: tabular-nums;
  }

  .page--case .cf-hero .cf-hkpi-lbl {
    font-size: clamp(.6875rem, 2.7vw, .8125rem);
    hyphens: auto;
    overflow-wrap: anywhere;
  }

  .page--case .cf-cta-pillars {
    color: #aab9c2;
    font-size: clamp(.5625rem, 2.4vw, .8125rem);
    letter-spacing: .045em;
    word-spacing: .35em;
    white-space: nowrap;
  }

  .page--case .cf-cta-pillars br {
    display: none;
  }

  .dn9-document--audit-reklamnoy-kampanii #segments .aud-sec01-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .dn9-document--audit-reklamnoy-kampanii #segments .aud-sec01-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(74px, 24vw, 112px);
    grid-template-areas: "title art" "list list";
    gap: 12px;
    align-content: start;
    min-width: 0;
    min-height: 0;
    padding: 16px;
    border-radius: 14px;
    box-shadow: none;
  }

  .dn9-document--audit-reklamnoy-kampanii #segments .aud-sec01-title {
    grid-area: title;
    align-self: center;
    margin: 0;
  }

  .dn9-document--audit-reklamnoy-kampanii #segments .aud-sec01-visual {
    grid-area: art;
    height: 72px;
    margin: 0;
  }

  .dn9-document--audit-reklamnoy-kampanii #segments .aud-sec01-img {
    width: 100%;
    height: 100%;
  }

  .dn9-document--audit-reklamnoy-kampanii #segments .aud-checklist {
    grid-area: list;
    gap: 8px;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid #e9edf0;
  }

  .dn9-document--audit-reklamnoy-kampanii .aud-guar-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .dn9-document--audit-reklamnoy-kampanii .aud-guar-step {
    min-width: 0;
    gap: 8px;
  }

  .dn9-document--audit-reklamnoy-kampanii .aud-guar-step-icon-box {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
  }

  .dn9-document--audit-reklamnoy-kampanii .aud-guar-step-icon-img {
    width: 28px;
    height: 28px;
  }

  .dn9-document--audit-reklamnoy-kampanii .aud-guar-step-text {
    font-size: clamp(.72rem, 3.2vw, .9rem);
    white-space: normal;
  }

  .dn9-document--reklama-v-telegram .tg-hero .tg-hero__metrics {
    display: none !important;
  }

  html body.dn9-document--targetirovannaya-reklama .tg-hero .tg-hero__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px 10px !important;
  }

  .dn9-document--targetirovannaya-reklama .tg-hero-metric {
    min-width: 0;
    gap: 8px;
  }

  .dn9-document--targetirovannaya-reklama .tg-metric-body {
    min-width: 0;
  }

  .page--requisites .req-hero__title br {
    display: none;
  }

  .page--requisites .req-hero__title {
    font-size: clamp(1.65rem, 7vw, 2.375rem);
  }

  .page--contacts4 .ct4-hero__content ul {
    display: grid;
    grid-template-columns: .8fr 1fr 1.24fr;
    gap: 8px;
    align-items: start;
  }

  .page--contacts4 .ct4-hero__content li {
    gap: 5px;
    min-width: 0;
    font-size: clamp(.6875rem, 2.65vw, .8rem);
  }

  .page--contacts4 .ct4-hero__content li:last-child {
    grid-column: auto;
  }

  .page--contacts4 .ct4-hero__content li .ct4-hero__ic {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
  }

  .page--contacts4 .ct4-hero__ic svg {
    width: 20px;
    height: 20px;
  }

  .page--projects .keisy-hero__grid {
    padding-inline: 0;
  }

  .page--projects .keisy-hero__title {
    font-size: clamp(1.75rem, 7vw, 2.15rem);
  }

  .page--projects .keisy-hero__title-line {
    white-space: normal;
  }

  .page--promotions .akcii-hero__feats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: clamp(6px, 1.8vw, 12px);
    width: 100%;
  }

  .page--promotions .akcii-hero__feats li {
    min-width: 0;
    gap: clamp(4px, 1.3vw, 8px);
  }

  .page--promotions .akcii-hero__ic {
    width: clamp(22px, 6.5vw, 36px);
    height: clamp(22px, 6.5vw, 36px);
    border-radius: 8px;
  }

  .page--promotions .akcii-hero__ic svg {
    width: 62%;
    height: 62%;
  }

  .page--promotions .akcii-hero__lbl {
    min-width: 0;
    font-size: clamp(.6875rem, 2.7vw, .825rem);
    overflow-wrap: anywhere;
  }
}

@media (max-width: 439px) {
  body.home-dark #fincta .fincta-benefits li:last-child {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 8px !important;
  }
}

@media (max-width: 640px) {
  body.dn9-document--reklama-v-telegram #advantages.tg-why .tg-why__card {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  body.dn9-document--reklama-v-telegram #advantages.tg-why .tg-why__copy {
    width: 100%;
  }

  body.dn9-document--reklama-v-telegram #advantages.tg-why .tg-why__card .tg-why__art {
    position: static;
    align-self: center;
    width: min(62%, 220px);
    height: 148px;
    margin: 8px auto 0;
    object-position: center;
  }
}

@media (max-width: 400px) {
  .page--contacts4 .ct4-hero__content li {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 440px) and (max-width: 640px) {
  body.home-dark #fincta .fincta-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
