:root {
  --ok-v91-video-radius: 18px;
}

html main :is(
  .okauto-hero-section .right.okauto-hero-video,
  section[data-ok-v20-hero="true"] .ok-v20-hero-frame,
  .ok-service-image:has(>video),
  .ok-v20-broll-frame,
  .ok-v18-stock-frame,
  .ok-v53-delivery-play,
  .ok-v53-delivery-card,
  .ok-case-video-tile,
  .ok-case-video-feature:has(.ok-case-video-cover),
  .ok-v36-video-thumb,
  a[data-ok-rutube-id],
  a[data-rutube-thumb-id],
  .ok-extra-specialty-photo:has(video),
  .ok-v63-specialty-card .relative:has(>video)
) {
  border-radius: var(--ok-v91-video-radius) !important;
  overflow: hidden !important;
  background-clip: padding-box;
}

html main :is(
  .okauto-hero-section .right.okauto-hero-video,
  section[data-ok-v20-hero="true"] .ok-v20-hero-frame,
  .ok-service-image:has(>video),
  .ok-v20-broll-frame,
  .ok-v18-stock-frame,
  .ok-v53-delivery-play,
  .ok-v36-video-thumb,
  .ok-extra-specialty-photo:has(video),
  .ok-v63-specialty-card .relative:has(>video)
) > :is(video,img,picture) {
  border-radius: inherit !important;
}

html main :is(.ok-v53-delivery-play,.ok-v36-video-thumb,.ok-case-video-thumb) :is(img,video) {
  border-radius: inherit !important;
}

html[data-ok-route] main .ok-case-video-tile > a.ok-case-video-thumb {
  border-radius: var(--ok-v91-video-radius) var(--ok-v91-video-radius) 0 0 !important;
  overflow: hidden !important;
}

html[data-ok-route] main section[data-ok-v20-hero="true"]:not(.ok-service-hero) div:has(>.left):has(>.right.ok-v20-hero-frame) > .right.ok-v20-hero-frame:not(.hidden),
html[data-ok-route] main section.ok-service-hero[data-ok-v20-hero="true"] .ok-service-image.ok-v20-hero-frame,
html[data-ok-route] main section[data-ok-v20-hero="true"] .left > .right.ok-v20-hero-frame,
html[data-ok-route] main section[data-ok-v20-hero="true"] div:has(>.left) > .right.ok-v20-hero-frame {
  border-radius: var(--ok-v91-video-radius) !important;
  overflow: hidden !important;
}

html[data-ok-route] main article.relative.h-full:has(a.ok-v36-video-thumb) {
  border-radius: var(--ok-v91-video-radius) !important;
  overflow: hidden !important;
}

html main .ok-v36-video-thumb:is(:hover,:focus-visible) {
  overflow: hidden !important;
}

html[data-ok-route="russia"] main section[data-ok-v87="benefits"] article:has(>img.ok-v90-benefits-briefcase) > img.ok-v90-benefits-briefcase {
  inset: auto auto 16px 20px !important;
  left: 20px !important;
  right: auto !important;
  bottom: 16px !important;
  transform: none !important;
  object-position: left bottom !important;
}

@media (max-width: 1023px) {
  :root { --ok-v91-video-radius: 14px; }
  html[data-ok-route="russia"] main section[data-ok-v87="benefits"] article:has(>img.ok-v90-benefits-briefcase) > img.ok-v90-benefits-briefcase {
    inset: auto auto 9px 12px !important;
    left: 12px !important;
    right: auto !important;
    bottom: 9px !important;
  }
}
