/* Swimming Moscow: video stories, homepage only. */
.sw-videos{padding-top:clamp(18px,3vw,36px);padding-bottom:clamp(48px,6vw,86px);overflow:hidden}
.sw-videos,.sw-videos *{box-sizing:border-box}
.sw-videos__container{max-width:1260px}
.sw-videos__panel{background:linear-gradient(135deg,#0d7196 0%,#147ca7 42%,#135881 100%);color:#fff;border-radius:clamp(22px,2.3vw,32px);padding:clamp(24px,4.4vw,56px);box-shadow:0 24px 66px rgba(10,69,106,.17)}
.sw-videos__intro{max-width:920px;margin:0 0 clamp(23px,3.2vw,40px)}
.sw-videos__intro h2{color:#fff;font-size:clamp(27px,3.2vw,43px);font-weight:820;letter-spacing:-.035em;line-height:1.12;max-width:23ch;margin:0 0 14px;text-wrap:balance}
.sw-videos__intro p{color:#fff;font-size:clamp(15px,1.35vw,19px);line-height:1.55;max-width:740px;margin:0}
.sw-videos__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(20px,3.6vw,46px);row-gap:clamp(26px,3.3vw,42px);min-width:0}
.sw-videos__card{min-width:0;display:flex;flex-direction:column;align-items:stretch}
.sw-videos__media{width:100%;aspect-ratio:16/9;border-radius:clamp(15px,1.5vw,22px);position:relative;overflow:hidden;background:linear-gradient(145deg,#66bcdd,#186e99);box-shadow:0 15px 35px rgba(2,38,72,.23);isolation:isolate}
.sw-videos__poster{display:block;position:absolute;inset:0;width:100%;height:100%}
.sw-videos__cover{display:block;width:100%;height:100%;object-fit:cover;max-width:none;transition:transform 220ms ease-out}
@media(hover:hover) and (pointer:fine){.sw-videos__card:hover .sw-videos__cover{transform:scale(1.02)}}
.sw-videos__poster::after{content:'';position:absolute;inset:40% 0 0;background:linear-gradient(180deg,transparent,rgba(7,44,77,.26));pointer-events:none}
.sw-videos__empty-cover{position:absolute;inset:0;display:grid;place-items:center;color:rgba(255,255,255,.75);background:radial-gradient(ellipse at 25% 20%,rgba(255,255,255,.24),transparent 65%)}
.sw-videos__number{display:none!important;position:absolute;z-index:1;top:14px;left:17px;color:#fff;font-weight:750;font-size:clamp(14px,1.4vw,19px);letter-spacing:.06em;text-shadow:0 1px 10px rgba(9,42,58,.4)}
.sw-videos__play{position:absolute;z-index:3;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:clamp(50px,5vw,67px);height:clamp(50px,5vw,67px);min-width:50px;min-height:50px;background:#fff;color:#09769f;border:0;border-radius:50%;box-shadow:0 12px 32px rgba(2,45,83,.25);cursor:pointer;transition:transform .2s ease,background .2s ease}
.sw-videos__play svg{margin-left:3px}
@media(hover:hover) and (pointer:fine){.sw-videos__play:hover{transform:translate(-50%,-50%) scale(1.05);background:#eefaff}}
.sw-videos__play:focus-visible,.sw-videos__cta:focus-visible{outline:3px solid #fff;outline-offset:4px}
.sw-videos__provider-note,.sw-videos__no-video{position:absolute;z-index:2;bottom:12px;left:16px;right:16px;color:#fff;font-size:11px;line-height:1.3;text-shadow:0 2px 8px rgba(0,0,0,.5)}
.sw-videos__no-video{font-size:13px;font-weight:600}
.sw-videos__player,.sw-videos__player video,.sw-videos__player iframe{display:block;position:absolute;inset:0;width:100%;height:100%;border:0;background:#052b44}
.sw-videos__player[hidden]{display:none!important}
.sw-videos__feedback{position:absolute;z-index:5;inset:auto 12px 12px;padding:9px 12px;border-radius:8px;background:#fff;color:#154f72;font-size:13px;line-height:1.4}
.sw-videos__feedback[hidden]{display:none!important}
.sw-videos__card h3{color:#fff;font-size:clamp(17px,1.72vw,22px);line-height:1.29;font-weight:760;letter-spacing:-.016em;margin:clamp(14px,1.8vw,20px) 0 8px;max-width:34ch}
.sw-videos__description{color:#fff;font-size:clamp(13px,1.12vw,16px);line-height:1.56;margin:0;max-width:57ch}
.sw-videos__actions{display:flex;justify-content:center;margin:clamp(30px,4.6vw,55px) 0 0}
.sw-videos__cta{display:flex;align-items:center;justify-content:center;gap:14px;min-height:58px;max-width:100%;width:min(100%,480px);padding:12px 24px;border-radius:999px;background:#fff;color:#125a84!important;text-align:center;text-decoration:none!important;font-size:clamp(14px,1.25vw,17px);line-height:1.3;font-weight:770;box-shadow:0 10px 28px rgba(0,40,73,.13);transition:background .2s ease,transform .2s ease;overflow-wrap:anywhere}
@media(hover:hover) and (pointer:fine){.sw-videos__cta:hover{background:#eaf6fe;transform:translateY(-1px)}}
.sw-videos__cta span{flex:0 0 auto;font-size:22px;font-weight:500}
@media(max-width:767px){.sw-videos{padding-top:16px;padding-bottom:46px}.sw-videos__container{width:calc(100% - 28px)}.sw-videos__panel{border-radius:22px;padding:clamp(18px,4.7vw,30px)}.sw-videos__intro{margin-bottom:24px}.sw-videos__intro h2{max-width:none;font-size:clamp(25px,6.5vw,32px)}.sw-videos__intro p{font-size:15px}.sw-videos__grid{grid-template-columns:minmax(0,1fr);gap:28px}.sw-videos__card h3{font-size:18px;margin-top:14px}.sw-videos__description{font-size:14px}.sw-videos__media{border-radius:15px}.sw-videos__actions{margin-top:30px}.sw-videos__cta{min-height:54px;padding:11px 16px}}
@media(max-width:375px){.sw-videos__panel{padding:18px 14px}.sw-videos__provider-note{font-size:10px}}
@media(prefers-reduced-motion:reduce){.sw-videos__cover,.sw-videos__play,.sw-videos__cta{transition:none!important}}
.sw-videos__poster[hidden]{display:none!important}

.sw-videos__provider-note,.sw-videos__no-video{width:max-content;max-width:calc(100% - 32px);right:auto;padding:4px 7px;border-radius:6px;background:rgba(0,33,61,.7)}

/* Interactive native preview: keep the play button over the muted file, not over external embeds. */
.sw-videos__media{transition:box-shadow 200ms ease-out}
.sw-videos__card:focus-within .sw-videos__media{outline:3px solid rgba(255,255,255,.65);outline-offset:3px}
.sw-videos__card[data-previewing] .sw-videos__player{z-index:1}
.sw-videos__card[data-previewing] .sw-videos__poster{position:absolute;z-index:2;pointer-events:none;background:transparent}
.sw-videos__card[data-previewing] .sw-videos__cover,
.sw-videos__card[data-previewing] .sw-videos__empty-cover{opacity:0}
.sw-videos__card[data-previewing] .sw-videos__poster::after{opacity:0}
.sw-videos__card[data-previewing] .sw-videos__play{pointer-events:auto;opacity:.78;width:51px;height:51px;min-width:51px;min-height:51px;transform:translate(-50%,-50%)}
.sw-videos__card[data-previewing] .sw-videos__number{z-index:3}
@media(hover:hover) and (pointer:fine){
  .sw-videos__card:hover .sw-videos__media{box-shadow:0 18px 40px rgba(1,38,79,.32),0 0 0 1px rgba(200,240,255,.34)}
  .sw-videos__card[data-previewing]:hover .sw-videos__play{opacity:1;transform:translate(-50%,-50%) scale(1.04)}
}
@media(prefers-reduced-motion:reduce){.sw-videos__card,.sw-videos__media,.sw-videos__play{transition:none!important}}
/* A slow-loading native player must never cover its poster with a black frame. */
.sw-videos__poster{z-index:2}

/* Preview cleanup: no central play overlay while autoplay/hover preview is running. */
.sw-videos__card[data-previewing] .sw-videos__play{display:none!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important}

/* Video crop: fill the 16:9 card without letterboxing; per-card position comes from CMS. */
.sw-videos__cover,.sw-videos__player video{object-position:var(--sw-video-position,center center)}
.sw-videos__player video{object-fit:cover;max-width:none}
