:root {
	--color-default: #111111;
	--color-accent: #A92927;
	--color-accent2: #8E3230;
	--color-accent3: #000000;
	--color-primary: #f5f5f5;
	--color-primary-opacity: rgba(245,245,245,0.51373);
	--color-font-main: #f5f5f5;
	--color-font-second: #898989;
	--font-main: 'Montserrat';
	--font-size-small: 14px;
	--font-size-main: 16px;
	--font-size-l: 18px;
	--font-size-big: 20px;
	--font-size-xl: 22px;
	--font-size-xxl: 40px;
	--font-size-xxxl: 50px;
	--weight-font-main: 400;
	--margin-sections: 180px;
	--margin-sections-half: 90px;
}

/* =========================================================
   HARDPRO.PRO - RED & WHITE INDUSTRIAL STYLING
   ========================================================= */

:root {
  --hp-red: #e62e2e;
  --hp-red-hover: #cc2222;
  --hp-bg-light: #f8f9fa;
  --hp-card-bg: #ffffff;
  --hp-dark: #1a1a1a;
  --hp-text: #222222;
  --hp-text-muted: #666666;
  --hp-border: #e2e8f0;
  --hp-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ---------------------------------------------------------
   0. Zoom Tool
   --------------------------------------------------------- */
.case-modal__zoom-controls {
    position: absolute;
    bottom: 90px; /* выше миниатюр */
    right: 12px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.case-modal__zoom-btn {
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
    padding: 0;
}

.case-modal__zoom-btn:hover {
    background: rgba(255,255,255,0.2);
}

.case-modal__zoom-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Изображение в фрейме — разрешаем выходить за границы при зуме */
.case-modal__frame-inner {
    overflow: hidden;
    position: relative;
}

.case-modal__frame-inner img {
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}


/* ---------------------------------------------------------
   1. FEATURED CASES LIST (Page Grid)
   --------------------------------------------------------- */
.featured-cases {
  padding: 40px 0;
  background-color: var(--hp-bg-light);
  font-family: 'Roboto', 'Inter', system-ui, sans-serif;
}

.featured-cases h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  background-color: var(--hp-red);
}



.case-modal__masonry-blocks--button {
    display: none;
    visibility: hidden;
}
.featured-cases__list .featured-cases__item:hover {
background: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(230, 46, 46, 0.15);
}
.featured-cases__list .featured-cases__item h3:hover {
    color: #a92927;
}
.case-modal__right-masonry {
    display: none;
}
.case-modal__masonry-blocks--button button {
    display: block;
    width: 95%;
    box-sizing: border-box;
    text-align: center;
    margin: 0;
    max-width: 98%;
    left: 0 !important;
    position: relative;
}




/* ---------------------------------------------------------
   5. PDF / INLINE CONTROLS
   --------------------------------------------------------- */
.case-modal__inline-pdf {
    margin-top: 16px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    display: none;
}

.case-modal__inline-pdf-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    background: #f5f5f5;
    border-bottom: 1px solid #eee;
}

.case-modal__inline-pdf-btn {
    padding: 6px 12px;
    font-size: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    color: #333;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.case-modal__inline-pdf-btn.is-active {
    border-color: var(--color-accent);
    color: var(--color-accent);
    font-weight: 600;
}

.case-modal__pdf-item:hover,
.case-modal__pdf-item.is-active {
    border-color: var(--color-accent);
}

.case-modal__pdf-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}



.case-modal__inline-pdf-viewer {
    height: 400px;
    background: #111;
}
#case-modal__masonry .case-modal__masonry-item.case-modal__masonry-item--video, #case-modal__masonry .case-modal__masonry-item.case-modal__masonry-item--rutube, #case-modal__masonry .case-modal__masonry-item img {
    display: none;
}



#case-modal__right-swiper .vjs-control-bar {
/**    bottom: unset;
    top: 0; 
    flex-direction: column; 
    width: 36px; */
    position: fixed;
    width: 100%;
    height: 100% !important;
    top: 0;
    left: 0;
    bottom: auto;
    right: auto;
    background: rgba(0,0,0,0.6);
    padding: 4px 0;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
}
#case-modal__right-swiper .vjs-control-bar .vjs-progress-control {
 align-items: flex-start;
padding-top: 15px;
}
#case-modal__right-swiper .swiper-pagination {
z-index: 1000;
}
#case-modal__right-swiper .swiper-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
}
.case-modal__right-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0,0,0,0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
    pointer-events: none;
    transition: background 0.2s;
}

.case-modal__right-slide:hover .case-modal__right-play-btn {
background: var(--color-accent);
}

.case-modal__right-slide {
    cursor: pointer;
    position: relative;
}

.case-modal__right-swiper-wrap {
    margin: 0 0 16px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.case-modal__right-swiper {
    width: 100%;
    aspect-ratio: 16/9;
    background: #111;
}

.case-modal__right-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.case-modal__right-pagination {
  /**  bottom: 8px !important; */
bottom: 4px !important;
}

.case-modal__right-pagination .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
}

.case-modal__right-pagination .swiper-pagination-bullet-active {
    opacity: 1;
background: var(--color-accent);
}
.case-modal__masonry-blocks {
    display: flex;
    gap: 16px;
    max-width: 1176px;
    margin: 0 auto 16px;
    column-gap: 8px;
}



/* ---------------------------------------------------------
   6. MASONRY & OTHER OVERRIDES
   --------------------------------------------------------- */
.case-modal__masonry-blocks .case-modal__block {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 3px solid var(--color-accent);
    border-radius: 4px;
    padding: 16px;
    min-width: 0;
}

#case-modal__masonry {
    columns: unset;
    padding-left: 1.1rem;
}

#case-modal__masonry .case-modal__masonry-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 98%;
}

#case-modal__masonry .case-modal__masonry-blocks .case-modal__block {
    min-height: 234px;
    background: none;
}

.case-modal__right-masonry {
    columns: 2;
    column-gap: 6px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.case-modal__right-masonry-item {
    break-inside: avoid;
    margin-bottom: 6px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

#case-modal__masonry .case-modal__block-content {
/**    color: #ffffff; */
color: #222;
}


.case-modal__main-swiper {
    width: 100%;
    height: 100%;
}

.case-modal__main-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    /** background: #111; 
background: var(--hp-card-bg); */
background: linear-gradient(145deg, rgb(255, 255, 255), rgb(248, 249, 250));
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    position: relative;
}

.case-modal__main-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
background: var(--hp-card-bg);
}

.case-modal__main-swiper .swiper-slide video,
.case-modal__main-swiper .swiper-slide .video-js {
    width: 100% !important;
    height: 100% !important;
background: var(--hp-card-bg);
}

.case-modal__main-swiper .swiper-slide iframe {
    width: 100%;
    height: 100%;
    border: none;
}



.case-modal__swiper-prev,
.case-modal__swiper-next {
/**    color: #fff; */
color: var(--color-accent);
    --swiper-navigation-size: 28px;
}

.case-modal__slide-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: #fff;
    text-shadow: 0 0 16px rgba(0,0,0,0.8);
    pointer-events: none;
    z-index: 2;
}
.case-modal__slide-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: #fff;
    text-shadow: 0 0 16px rgba(0,0,0,0.8);
    pointer-events: none;
    z-index: 2;
}
.case-modal__tab-content {
    position: relative;
}

.case-modal__frame-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.case-modal__frame-nav:hover {
    background: rgba(0,0,0,0.8);
}

.case-modal__frame-nav--prev { left: 8px; }
.case-modal__frame-nav--next { right: 8px; }

.case-modal__frame-nav.is-visible {
    display: flex;
}

.case-modal__frame-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-modal__frame-inner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.case-modal__frame-inner video,
.case-modal__frame-inner .video-js {
    width: 100% !important;
    height: 100% !important;
}

.case-modal__frame-inner iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
.case-modal__pdf-mode {
    flex: 1;
    display: flex;
    min-height: 0;
    overflow: hidden;
flex-direction: column;
}

.case-modal__pdf-sidebar {
    width: 100%;
    flex-shrink: 0;
    background: #1a1a1a;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.case-modal__pdf-viewer {
    flex: 1;
    overflow: hidden;
min-height: 0;
}

.case-modal__pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}



/* Галерея миниатюр снизу */
.case-modal__tab-gallery {
    flex-shrink: 0;
    display: flex;
    gap: 6px;
    padding-left: 6px;
padding-right: 1px; 
box-sizing: border-box;
/**    background: #1a1a1a;
    overflow-x: auto; 
background: #181818; */
background: var(--hp-card-bg);
    overflow-x: hidden;
    min-height: 80px;
    align-items: center;
}

.case-modal__tab-gallery::-webkit-scrollbar {
    height: 4px;
}
.case-modal__tab-gallery::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 2px;
}

.case-modal__gallery-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 64px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    position: relative;
    background: #000;
}

.case-modal__gallery-thumb.is-active {
/**    border-color: #e63000; */
border-color: var(--color-accent);
}

/* VideoJS and Swiper Overrides */
.vjs-big-play-button {
    background-color: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    border-radius: 50% !important;
}

.case-modal__gallery-thumb img,
.case-modal__gallery-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.case-modal__gallery-thumb .case-modal__play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #fff;
    text-shadow: 0 0 6px rgba(0,0,0,0.8);
    display: flex;
    pointer-events: none;
}

/* PDF список */
.case-modal__pdf-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    overflow-y: auto;
    height: 100%;
    box-sizing: border-box;
}
/**
.case-modal__pdf-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #1e1e1e;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    color: #fff;
    font-size: 14px;
}
*/
.case-modal__pdf-item {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 14px;
    background: #1e1e1e;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    color: #fff;
    font-size: 13px;
}


.case-modal__pdf-controls {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #111;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}
.case-modal__pdf-btn {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}


.case-modal__pdf-pages {
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
}

.case-modal__pdf-controls-spacer {
    flex: 1;
}
.case-modal__pdf-item:before {
    content: '📄';
    font-size: 20px;
    flex-shrink: 0;
}

/**
.case-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.case-modal__nav:hover {
    background: rgba(0,0,0,0.75);
}

.case-modal__nav--prev {
    left: 10px;
}

.case-modal__nav--next {
    right: 10px;
}
*/



.case-modal__block-content em,
.case-modal__block-content i {
    font-style: italic;
}

.case-modal__block-content u {
    text-decoration: underline;
}

.case-modal__block-content p {
    margin: 0 0 8px;
}



.featured-cases__list .featured-cases__thumb {
	display: none;
}
.featured-cases__list .featured-cases__item h3 {
padding: 18px 16px;
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    text-align: center;
    font-weight: 700;
    background: none;
    color: #1a1a1a;
    transition: color 0.2s ease;
}
.featured-cases__list .featured-cases__item h3:hover {
    color: var(--color-accent);
}

.featured-cases__list .featured-cases__item {
min-height: 130px;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    border-top: 3px solid var(--color-accent);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    transition: transform .25s ease, box-shadow .25s ease;
    overflow: hidden;
    cursor: pointer;
}
.case-modal__masonry-item--rutube {
    overflow: visible !important;
}

.case-modal__rutube-preview__bottom {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    display: block;
    border-radius: 8px;
    min-height: 200px;
}
.case-modal__masonry-item--rutube .case-modal__rutube-thumb-wrap {
    aspect-ratio: 16/9;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
}


.case-modal__left.is-playing iframe {
    height: 100% !important; /* Forces the iframe to fill the container */
    aspect-ratio: auto;      /* Removes the ratio constraint if needed */
}
.button.button--simple.our-works__button.js-case-consultation {
/**margin-bottom: 9px;
  background-color: #A92927;
  border: 1px solid #928fbc; */
  display: block;
  margin-left: auto;
  margin-right: auto;
font-size: 19px;
  border: 1px solid var(--color-accent);
  background-color: var(--color-accent3);
  padding: 17px;
  box-sizing: border-box;
  text-align: center;
  max-width: 100%;
  left: 0 !important;
  position: relative;
  width: 360px;
}


.case-modal__rutube-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
    pointer-events: none;
    background: #111;
}
.case-modal__rutube-poster {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    object-fit: cover;
}
.case-modal__masonry-item--rutube {
    break-inside: avoid;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #111;
}
.case-modal__rutube-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: #1a1a2e;
    color: #fff;
    font-size: 14px;
    gap: 8px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 100% !important;
    border-radius: 8px;
    overflow: hidden;
}
.case-modal__masonry-item--video {
    break-inside: avoid;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}
/* Fix for the Fantasy theme play button positioning */
.case-modal__masonry-item--video .vjs-theme-fantasy .vjs-big-play-button {
  /**  top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%); */
}
/* fluid режим VideoJS требует position:relative на родителе */
.case-modal__masonry-item--video .video-js {
    width: 100% !important;
    border-radius: 8px;
    overflow: hidden;
}

/* Убираем обрезку */
.case-modal__masonry-item--video .vjs-tech {
    
    width: 100% !important;
  /**  
  height: auto !important;
  position: relative !important;
   */
    height: auto;
}
.case-swiper-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,.96);

    z-index: 20000;

    display: none;
    align-items: center;
    justify-content: center;
}

.case-swiper-overlay.active {
    display: flex;
}

.case-swiper-fullscreen {
    width: 92vw;
    height: 92vh;
}

.case-swiper-fullscreen .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-swiper-fullscreen img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.case-swiper-overlay__close {
    position: absolute;
    top: 18px;
    right: 24px;

    width: 48px;
    height: 48px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,.12);
    color: #fff;

    font-size: 28px;
    cursor: pointer;

    z-index: 5;
}



.featured-cases__item {
    width: 100%;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;

    transition:
        transform .25s ease,
        box-shadow .25s ease;

    box-shadow:
        0 4px 18px rgba(0,0,0,.08);
}

.featured-cases__item:hover {
    transform: translateY(-6px);

    box-shadow:
        0 10px 28px rgba(0,0,0,.14);
}

.featured-cases__thumb {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

.featured-cases__item h3 {
    padding: 18px 16px 22px;
    margin: 0;

    font-size: 20px;
    line-height: 1.35;
    text-align: center;
    font-weight: 600;
    background: #238d69;
}


.case-modal__right-masonry-item img,
.case-modal__right-masonry-item video {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s;
}

.case-modal__right-masonry-item:hover img,
.case-modal__right-masonry-item:hover video {
    opacity: 0.85;
}

.case-modal__play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #fff;
    text-shadow: 0 0 8px rgba(0,0,0,0.8);
    pointer-events: none;
    display: none;
}


/* ---------------------------------------------------------
   2. CASE MODAL WINDOW & LAYOUT
   --------------------------------------------------------- */
.case-modal__layout {
    display: flex;
    max-width: 1176px;
    margin: 0 auto;
    height: 612px;
    position: relative;
    background: #ffffff;
    border-radius: 6px;
/**    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); */
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    overflow-x: hidden;
}

#case-modal__close {
    position: absolute;
    top: 8px;
    right: 9px;
    z-index: 10001;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--color-accent);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

#case-modal__close:hover {
    background: var(--color-accent2);
}

.case-modal__nav {
    position: absolute;
    top: 6px;
    margin-right: 35%;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .2s ease;
}

.case-modal__nav:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.case-modal__nav--prev { right: 90px; }
.case-modal__nav--next { right: 30px; }
.case-modal__nav.is-hidden { display: none; }


/* ---------------------------------------------------------
   3. LEFT MEDIA CONTAINER & TABS
   --------------------------------------------------------- */
/* Левая часть — медиа */
.case-modal__left {
    flex: 1;
    max-width: 816px;
    overflow: hidden;
    position: relative;
/**    background: #111; 
background: none; 
background: #0d0d0d;*/
background: var(--hp-card-bg);
/**    align-items: center; */
  display: flex;
flex-direction: column;
  }

.case-modal__tabs {
    display: flex;
    flex-shrink: 0;
/**    background: #181818; */
background: linear-gradient(145deg, rgb(248, 249, 250), rgb(246, 246, 246) );
    border-bottom: 2px solid var(--color-accent);
    z-index: 2;
}

.case-modal__tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: #888888;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.case-modal__tab.is-active,
.case-modal__tab:hover {
    color: #ffffff;
    background: var(--color-accent);
}

.case-modal__tab-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
/**     background: #0d0d0d; */
background: linear-gradient(145deg, rgb(255, 255, 255), rgb(248, 249, 250));
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    min-height: 0;
}

.case-modal__left video,
.case-modal__left .video-js {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
}

.case-modal__left .case-modal__main-image,
.case-modal__tab-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}


.case-modal__left iframe,
.case-modal__tab-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}


/* Когда iframe получает flex:1 — занимает всю высоту панели */
.case-modal__left iframe[style*="flex"] {
    height: 100% !important;
    aspect-ratio: unset;
}


/* ---------------------------------------------------------
   4. RIGHT CONTENT / DESCRIPTION PANE
   --------------------------------------------------------- */
.case-modal__right {
    width: 360px;
    flex-shrink: 0;
    padding: 24px;
    overflow-y: auto;
    box-sizing: border-box;
    background: #ffffff;
    color: #222222;
}

.case-modal__right h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 16px;
    color: #1a1a1a;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 10px;
}

.case-modal__right .case-modal__description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    color: #333333;
}

.case-modal__right .case-modal__block {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #f8f9fa;
    border-left: 3px solid var(--color-accent);
    border-radius: 0 4px 4px 0;
    color: #222222;
}

.case-modal__block-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.case-modal__block-content {
    line-height: 1.5;
    padding-left: 0;
    letter-spacing: normal;
    word-spacing: normal;
}

.case-modal__block-content strong,
.case-modal__block-content b,
.case-modal__description strong,
.case-modal__description b {
    font-weight: 700;
    color: #1a1a1a;
}

.case-modal__right .case-modal__pdf-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.case-modal__right .case-modal__pdf-link:before {
    content: '📄';
}

/* Call to Action Button */
.button.button--simple.our-works__button.js-case-consultation {
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    background-color: var(--color-accent);
    color: #ffffff;
    padding: 14px 20px;
    box-sizing: border-box;
    text-align: center;
    max-width: 100%;
    left: 0 !important;
    position: relative;
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.button.button--simple.our-works__button.js-case-consultation:hover {
    background-color: var(--color-accent2);
    border: none;
}


/* Masonry секция под модалкой */
.case-modal__masonry {
    max-width: 1176px;
    margin: 16px auto 0;
    columns: 3;
    column-gap: 8px;
}

.case-modal__masonry-item {
    break-inside: avoid;
    margin-bottom: 8px;
    border-radius: 8px;
   /** overflow: hidden; */
    cursor: pointer;
    justify-content: center;
  /** display: grid; */
   display: flex;
}

.case-modal__masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

.case-modal__masonry-item video {
    width: 100%;
    display: block;
}
.case-modal__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    background: #000;
}

.case-modal__image {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.case-modal__next-slide {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}
.case-modal__next-slide, .case-modal__prev-slide {
    border: none;
    border-radius: 100%;
    background-color: transparent;
    background-image: url(/themes/antsitetheme/assets/img/arrow-slider.svg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 26px;
    height: 26px;
    cursor: pointer;
}
/* ───────────────────────────── */
/* Wide Screens */
/* ───────────────────────────── */

@media  (min-width : 1824px) {
 .case-modal__left {
    margin-left: -0.5%;
  }
.case-modal__nav {
    margin-right: 34%;
}
.case-modal__layout {
    max-width: 1253px;
}
.case-modal__masonry {
    max-width: 1253px;
}
.case-modal__masonry-blocks {
    max-width: 1253px;
}
#case-modal__masonry {
    padding-left: 0.6rem;
}
.case-modal__masonry-blocks--button button {
    width: 100%;
}
#case-modal__close {
 right: 2px;
}
#case-modal__masonry .case-modal__masonry-blocks {
    width: 100%;
}
}

/* ───────────────────────────── */
/* Desktop */
/* ───────────────────────────── */

@media  (min-width : 1281px) and (max-width: 1823px) {
.case-modal__right {
 left: 1.8rem !important;
}
.case-modal__left {
    padding-left: 2.8rem;
}
}

/* ───────────────────────────── */
/* Tablet */
/* ───────────────────────────── */

@media (max-width: 1280px) {

    .featured-cases__list {
        grid-template-columns: repeat(3, minmax(240px, 320px));
    }
}

/* ───────────────────────────── */
/* Small tablet */
/* ───────────────────────────── */

@media (max-width: 980px) {
#case-modal__left {
    display: none;
}
    .case-modal__right {
top: 24px;
    position: relative;
	width: 100%;
}
.case-modal__nav,
    #case-modal__close {
       /** top: auto; */
        top: 5px;
        bottom: 20px;
    }

    #case-modal__close {
     /**   left: 20px;
        right: auto; */
right: 12px;
font-size: 13px;
    margin-top: 2px;

    }

    .case-modal__nav--prev {
        right: calc(20% - 20px);
    }

    .case-modal__nav--next {
        right: calc(12% - 20px);
    }
    .featured-cases__list {
        grid-template-columns: repeat(2, minmax(240px, 320px));
    }

    .featured-cases h2 {
        font-size: 34px;
    }
}

/* ───────────────────────────── */
/* Mobile */
/* ───────────────────────────── */

@media (max-width: 640px) {
#case-consultation-popup .ant-popup {
    min-height: unset;
}
#case-modal__left {
    display: none;
}
.case-modal__nav,
    #case-modal__close {
       /** top: auto; */
        top: 5px;
        bottom: 20px;
width: 29px;
    height: 29px;
    }

    #case-modal__close {
     /**   left: 20px;
        right: auto; */
right: 12px;
font-size: 13px;
    margin-top: 2px;
    }

    .case-modal__nav--prev {
        /** right: 84px; */
right: calc(23% - 20px);
padding-bottom: 4px;
    }

    .case-modal__nav--next {
     /**   right: 26px; 
      right: 11px; */
right: calc(9% - 20px);
padding-bottom: 4px;
    }


    .featured-cases__list {
     /**   grid-template-columns: minmax(260px, 420px); */
     grid-template-columns: repeat(2, minmax(197px, 320px));
        gap: 15px;
    }

    .featured-cases h2 {
        font-size: 28px;
        margin-bottom: 28px;
    }

    .featured-cases__item h3 {
        font-size: 18px;
        padding: 16px;
    }

    .case-modal__right {
top: 24px;
    position: relative;
	width: 100%;
}
.case-modal__right h2 {
	font-size: 18px;
}



.case-modal__layout {
  /**	height: 417px; */
height: 100%;

}
.case-modal__right-masonry {
	columns: 1;
}
.case-modal__rutube-thumb {

	height: 45px;

	font-size: 0.8rem;
}
.case-modal__right-masonry .vjs-theme-forest .vjs-big-play-button {
	width: 60px !important;
	height: 60px !important;
	margin-top: -30px !important;
	margin-left: -30px !important;
	background-size: contain;
}
.case-modal__masonry .vjs-theme-fantasy .vjs-big-play-button {
	font-size: 60px;
}
.case-modal__right-masonry-item iframe button {
   --rt-spacing-6x: 12px;
 }
 .case-modal__right-masonry-item iframe button svg {
	block-size: 17px;
	inline-size: 17px;
	min-inline-size: 17px;
}
.case-modal__inline-pdf {
        display: block;
    }
.case-modal__right .case-modal__pdf-link {
    display: none;
}
}
