/*
Theme Name: Portfolio
Theme URI: https://them.es/starter
Author: Arthur Satine
Author URI: https://a.extrasell.ru
Description: No description
Version: 3.5.4
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.2
License: GPL version 2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0
Tags: custom-background, custom-colors, featured-images, flexible-header, microformats, post-formats, rtl-language-support, theme-options, translation-ready, accessibility-ready
Text Domain: port-folio
*/

/* =========================================================
   01. Design tokens
   ========================================================= */
:root {
  --default-black: #000000;
  --black: #222222;
  --black-deep: #1a1a1a;
  --white: #ffffff;
  --white-dark: #eeeeee;
  --white-smoke: #f5f5f5;
  --gray-light: #cccccc;
  --gray: #8c8c8c;
  --gray-dark: #4d4d4d;
  --night-rider: #2b2b2b;
  --warning: #ff6060;

  --main-background: var(--black);
  --main-color: var(--white-dark);
  --main-gray: var(--gray-dark);

  --hero-mobile-height: 46.933rem;
  --plyr-color-main: var(--white);
  --plyr-video-control-color-hover: var(--black);
  --plyr-control-icon-size: 2.0833rem;
  --plyr-control-spacing: 0.694rem;
}

/* =========================================================
   02. Base
   ========================================================= */
html {
  font-size: 1vw;
}

@media (min-width: 1920px) {
  html {
    font-size: 20px;
  }
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--main-background);
  color: var(--main-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

*:focus {
  outline: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  transition: color 0.2s ease;
}

img,
video {
  max-width: 100%;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container {
  max-width: 80%;
}

.root {
  padding-top: 0;
  background: var(--main-background);
  color: var(--main-color);
}

/* =========================================================
   03. Typography helpers
   ========================================================= */
.h1--lux {
  font-feature-settings: 'ss03' on, 'ss05' on, 'ss06' on, 'liga' off;
}

.h1--tech {
  font-feature-settings: 'ss01' on, 'ss05' on, 'liga' off;
}

.h1--tech2 {
  font-feature-settings: 'ss05' on, 'liga' off;
}

h1.main-h1,
.main-h1,
.hero__title {
  color: var(--main-color);
}

.h1 {
  color: var(--main-gray);
}

.pt-1 {
  padding-top: 60px;
}

.pt-2 {
  padding-top: 18px;
}

/* =========================================================
   04. Header
   ========================================================= */
.header-wrapper {
  position: relative;
  z-index: 1000;
}

.header,
.header.container {
  background: transparent;
}

.header__wrapper,
.header__mobile-head {
  background-color: var(--main-background);
}

.header__logo-link {
  transition-property: none;
}

.header__logo svg {
  width: 15.8333rem;
  height: auto;
}

.header__menu {
  justify-content: flex-end;
  gap: 15px;
}

.header__button.button.w--current,
.header__button.button:active {
  background-color: var(--main-color);
  color: var(--main-background);
  border-color: var(--main-color);
}

.header-scroll {
  display: none;
  background: linear-gradient(180deg, #eeeeee -43.75%, rgba(238, 238, 238, 0) 100%);
}

.body--dark .header-scroll {
  background: linear-gradient(180deg, #222222 -43.75%, rgba(34, 34, 34, 0) 100%);
}

.header-scroll__logo-text svg {
  width: 10.555rem;
}

.header__mobile-open {
  border-color: var(--main-gray);
}

.header__mobile-toggle-icon svg {
  width: 1.388rem;
  height: 1.388rem;
}

/* =========================================================
   05. Theme toggle and buttons
   ========================================================= */
.button {
  color: var(--main-color);
  border-color: var(--main-gray);
}

.button-showreel__icon {
  animation: flickering 2s ease-in infinite;
}

.button-showreel__icon svg,
.button-filters__icon svg {
  width: 1.111rem;
  height: 1.111rem;
}

.toggle-switch {
  border-color: var(--main-gray);
}

.toggle-switch__icon svg {
  width: 1.6666666667rem;
  height: 1.6666666667rem;
  overflow: visible;
}

.toggle-switch__icon--light {
  color: var(--main-color);
}

.body--dark .toggle-switch__icon--light,
.toggle-switch__icon--dark {
  color: var(--main-gray);
}

.body--dark .toggle-switch__icon--dark {
  color: var(--main-color);
}

@media (min-width: 768px) {
  .button:not(.w--open):not(.swiper-button-disabled):not(.videos__button):hover,
  .toggle-switch:hover {
    background-color: var(--main-gray);
  }

  .button:not(.w--open):not(.swiper-button-disabled):hover svg {
    color: var(--main-color);
  }

  .videos__button:hover {
    background-color: var(--white-dark);
    color: var(--black);
  }

  .header__logo-link:hover svg {
    color: #737373;
  }

  .body--dark .header__logo-link:hover svg {
    color: #9c9c9c;
  }
}

/* =========================================================
   06. Case / Oral-B slider
   ========================================================= */
.case-section {
  padding-top: 60px;
  padding-bottom: 90px;
  color: var(--white);
  overflow: hidden;
background-image:

  radial-gradient(circle at 50% 10%, rgba(26, 74, 200, 0.5), transparent 55%),

  radial-gradient(circle at 70% 30%, rgba(26, 74, 200, 0.2), transparent 60%),

  linear-gradient(180deg, #16181A 0%, #16181A 100%);
}

.case-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.case-hero {
  max-width: 900px;
  padding-bottom: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.case-hero__inner {
  max-width: 900px;
}

.case-hero__label {
  display: inline-block;
  margin-bottom: 16px;
  color: #4da3ff;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.case-hero__title {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
}

.case-hero__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  flex: 0 0 auto;
  max-width: 650px;
  min-height: calc(1.6em * 2);
  max-height: calc(1.6em * 2);
  margin: 0 0 28px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  line-height: 1.6;
}

.case-swiper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.case-swiper .swiper-wrapper {
  align-items: stretch;
  height: auto;
}

.case-swiper .swiper-slide {
  width: 100%;
  min-width: 100%;
  height: auto;
  display: block;
}

.case-swiper-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 20;
}

.case-swiper-prev,
.case-swiper-next {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.case-swiper-prev svg,
.case-swiper-next svg {
  width: 20px;
  height: 20px;
  display: block;
}

.case-swiper-prev svg {
  transform: translateX(-1px);
}

.case-swiper-next svg {
  transform: translateX(1px);
}

.case-swiper-prev:hover,
.case-swiper-next:hover {
  background: #fff;
  transform: translateY(-1px);
}

.case-swiper-prev.swiper-button-disabled,
.case-swiper-next.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

.case-swiper-pagination {
  position: relative;
  inset: auto;
  transform: none;
  margin-top: 22px;
  z-index: 20;
}

.case-swiper-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 5px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  opacity: 1;
}

.case-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--white);
  border-color: var(--white);
}

.case-swiper-pagination .swiper-pagination-bullet::before,
.case-swiper-pagination .swiper-pagination-bullet::after {
  content: none;
}

.case-visual,
.case-image-slide {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.case-image-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  border-radius: inherit;
  user-select: none;
  pointer-events: none;
}

.pg-case-section {
	background:#003DA7;
}

.neurotiles__item,
.rb-post__stack,
.lb-arrow {
  border: 0;
  background: transparent;
  padding: 0;
}

/* =========================================================
   07. Videos section
   ========================================================= */
.swiper-wrapper {
  height: auto;
}

.videos .button {
  color: var(--white-smoke);
  border-color: var(--white-smoke);
}

.video__item,
.videos__swiper-slide {
  overflow: hidden;
  border-radius: 20px;
}

.video__item.videos__swiper-slide.swiper-slide.is--active {
  width: 62.5rem;
}

.video__item,
.body--dark .video__item {
  background-color: var(--black-deep);
}

.video__file,
img.video__file,
video.video__file {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.videos__info:not(.videos__info--right-block) {
  transition: all 0.3s 0.3s ease;
}

.videos__info--right-block {
  transition: all 0.15s 0s ease;
}

.is--active .videos__info {
  z-index: 2;
  opacity: 1;
  transition: all 0.3s 0.7s ease;
}

.videos__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0;
  border: 1px solid var(--white-smoke);
  background-color: transparent;
  opacity: 1;
}

.videos__pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: var(--white-smoke);
}

.videos__pagination .swiper-pagination-bullet::before,
.videos__pagination .swiper-pagination-bullet::after {
  content: none;
}

@media (min-width: 768px) {
  .video__item.videos__swiper-slide.swiper-slide {
    transition-property: background-color, width;
  }

  .video__item:hover {
    background-color: var(--white);
  }

  .body--dark .video__item:hover {
    background-color: var(--black-deep);
  }
}

/* =========================================================
   08. Works tabs
   ========================================================= */
#works-links .h1 {
  cursor: pointer;
  color: #d4d4d4;
  opacity: 0.5;
  transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

#works-links .h1:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

#works-links .works__category--active {
  color: var(--main-color);
  opacity: 1;
}

#works-links .h1,
#works-links .h1:hover,
#works-links .h1.works__category--active,
#works-links .h1.h1--tech2,
#works-links .h1.works__category--active.h1--tech2 {
  font-feature-settings: 'ss01' 1, 'ss02' 1, 'calt' 1, 'liga' 1;
  font-variation-settings: 'wght' 400;
}

.works__tabs {
  margin-top: 32px;
}

.works__tab {
  display: none;
  opacity: 0;
  transform: translateY(12px);
}

.works__tab--active {
  display: block;
}

.works__tab--animating {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.works__tab-placeholder {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  color: var(--white);
  font-size: 18px;
}

.alfa { background: #111827; }
.rb { background: #1f2937; }
.pg { background: #0f766e; }
.seb { background: #7c2d12; }

/* =========================================================
   09. Alfa grid
   ========================================================= */
.neurotiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.neurotiles__item {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
}

.neurotiles__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform-origin: center center;
  transition: transform 0.25s ease-out;
}

.neurotiles__item:hover img {
  transform: scale(1.06);
}

@media (max-width: 1200px) {
  .neurotiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .neurotiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .neurotiles {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   10. Russian Business
   ========================================================= */
.works__tab[data-tab-content='rb'] {
  padding-top: 40px;
}

.rb-intro {
  max-width: 1220px;
  margin: 40px 0 130px;
}

.rb-post__title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.rb-post__tagline {
  font-size: 12px;
  opacity: 0.6;
}

.rb-posts-grid,
.rb-videos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.rb-videos-grid {
  margin-top: 40px;
}

.rb-video {
  overflow: hidden;
  border-radius: 20px;
}

.rb-video__file {
  width: 100%;
  height: 100%;
  display: block;
}

video.rb-video__file {
  border-radius: 0;
}

.rb-post {
  width: 100%;
  max-width: 350px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rb-post__stack {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.rb-post__card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.rb-post__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rb-post__card--back {
  opacity: 0.6;
  transform: translate(-10px, 10px) rotate(-5deg) scale(0.96);
}

.rb-post__card--mid {
  opacity: 0.8;
  transform: translate(8px, 4px) rotate(3deg) scale(0.98);
}

.rb-post__card--front {
  transform: translate(0, 0) rotate(0deg) scale(1);
}

.rb-post__stack:hover .rb-post__card--front {
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.1);
  transform: translate(0, -4px) scale(1.01);
}

.rb-post__stack:hover .rb-post__card--mid {
  transform: translate(10px, 0) rotate(5deg) scale(1);
}

.rb-post__stack:hover .rb-post__card--back {
  transform: translate(-12px, 14px) rotate(-7deg) scale(0.95);
}

.rb-post__meta {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (max-width: 991px) {
  .rb-posts-grid,
  .rb-videos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .rb-posts-grid,
  .rb-videos-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   11. Procter & Gamble
   ========================================================= */
.pg-block {
  margin: 60px 0 80px;
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.pg-block__video {
  flex: 0 0 55%;
  max-width: 55%;
}

.pg-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.pg-block__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pg-desc {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.7;
}

.main-h1 {
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 900px) {
  .pg-block {
    flex-direction: column;
    gap: 24px;
  }

  .pg-block__video,
  .pg-block__text {
    flex: none;
    max-width: 100%;
  }
}

/* =========================================================
   12. Lightbox
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.lightbox.is-visible img {
  opacity: 1;
  transform: scale(1);
}

.lightbox img.is-fading {
  opacity: 0;
  transform: scale(0.97);
}

.lightbox__video {
  max-width: 90vw;
  max-height: 90vh;
  display: block;
  border-radius: 15px;
}

.lb-close {
  position: absolute;
  top: 24px;
  right: 32px;
  z-index: 99999;
  width: 32px;
  height: 32px;
  padding-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  opacity: 0.9;
  transition: 0.2s;
}

.lb-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

.lb-arrow {
  position: absolute;
  top: 50%;
  padding: 20px;
  color: var(--white);
  font-size: 48px;
  line-height: 0;
  cursor: pointer;
  user-select: none;
  opacity: 0.65;
  transform: translateY(-50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lb-arrow:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

.lb-prev {
  left: 30px;
}

.lb-next {
  right: 30px;
}

/* =========================================================
   13. Footer
   ========================================================= */
.footer {
  flex: 0 0 auto;
}

.footer__social-button {
  border-color: var(--main-gray);
}

.footer__social-button i {
  width: 67px;
  height: 67px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.footer__logo-link svg {
  width: 8.68rem;
  height: 2.152rem;
  color: var(--main-gray);
}

.footer__social-icon svg {
  width: 4.652rem;
  height: 4.652rem;
}

@media (min-width: 768px) {
  .footer__social-button:hover {
    background-color: var(--main-gray);
  }

  .footer__social-button:active {
    background-color: var(--main-color);
    border-color: var(--main-color);
  }

  .footer__social-button:active svg {
    color: var(--main-background);
  }
}

/* =========================================================
   14. Mobile
   ========================================================= */
@media (max-width: 900px) {
  .header__menu {
    justify-content: space-between;
  }
}

@media (max-width: 767px) {
  :root {
    --plyr-control-icon-size: 8rem;
    --plyr-control-spacing: 2.666rem;
  }

  .header-scroll {
    background: linear-gradient(180deg, #eeeeee -43.75%, rgba(238, 238, 238, 0) 100%);
  }

  .body--dark .header-scroll {
    background: linear-gradient(180deg, #222222 0%, rgba(34, 34, 34, 0) 100%);
  }

  .header__logo svg {
    width: 41.0666rem;
  }

  .header__mobile-toggle-icon svg {
    width: 5.333rem;
    height: 5.333rem;
  }

  .toggle-switch__icon svg {
    width: 6.4rem;
    height: 6.4rem;
  }

  .button-filters__icon svg,
  .button-showreel__icon svg {
    width: 4.266rem;
    height: 4.266rem;
  }

  .button.w--current,
  .button.header__button:active {
    color: var(--main-gray);
    border: none;
  }

  .case-section {
    padding: 56px 0 72px;
  }

  .case-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
  }

  .case-swiper-nav {
    align-self: flex-end;
  }

  .case-swiper-prev,
  .case-swiper-next {
    width: 46px;
    height: 46px;
  }

  .case-swiper-prev svg,
  .case-swiper-next svg {
    width: 18px;
    height: 18px;
  }

  .case-hero__desc {
    margin-bottom: 22px;
    font-size: 16px;
  }

  .case-image-slide {
    border-radius: 14px;
  }

  .footer__social-icon svg {
    width: 15.466rem;
    height: 15.466rem;
  }
}

@media (orientation: portrait) {
  .lightbox__video {
    max-height: 20vh;
  }

  button.videos__more-link.is--mobile-only {
    padding: 15px;
    border: 2px solid var(--white);
    border-radius: 100px;
    background: transparent;
  }
}

/* =========================================================
   15. Animations
   ========================================================= */
@keyframes flickering {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}




button.case-swiper-next {
	border-radius:8px;
}




.alfa-case-section {
	
	background:#ef3124 !important;
}

.alfa-case-section  .case-hero__label {
	color: #fff;
}



.alfa-case-section .case-hero__desc {
color:#fff;
	
}


.case-swiper-prev {
	background:#fff;
	color:#fff;
	border-radius:8px;
	width:40px;
	height:40px;
}

.case-swiper-next{
	background:#fff;
	
	border-radius:8px;
	width:40px;
	height:40px;
}


.case-swiper-prev:hover, .case-swiper-next:hover {
    background: #fff;
    transform: none;
	opacity:0.7;
}
button.case-swiper-prev.swiper-button-disabled {
    opacity: 1;
}








  .ai-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #eef2ee;
  color: #050505;
}

.ai-hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.045) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
  pointer-events: none;
}

.ai-hero__inner {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 90px 4.5vw 40px;
}

.ai-hero__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.ai-hero__title {
  margin: 0;
  font-size: clamp(54px, 6.5vw, 128px);
  line-height: .9;
  letter-spacing: -.065em;
  font-weight: 400;
}

.ai-hero__title--right {
  text-align: right;
}

.ai-hero__text {
  max-width: 520px;
  margin-top: 28px;
  font-size: clamp(15px, 1vw, 20px);
  line-height: 1.15;
  opacity: .75;
}

.ai-nodes {
  position: absolute;
  left: 4.5vw;
  right: 4.5vw;
  top: 38vh;
  height: 50vh;
  min-height: 420px;
  z-index: 1;
}

.ai-nodes__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 999;
}

.ai-nodes__lines path {
  fill: none;
  stroke: rgba(0,0,0,.16);
  stroke-width: 1.4;
}

.ai-nodes__lines circle {
  fill: #eef2ee;
  stroke: rgba(0,0,0,.22);
  stroke-width: 1.2;
}

.ai-node {
  position: absolute;
  z-index: 2;
  border-radius: 14px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  will-change: transform, left, top;
}

.ai-node:active {
  cursor: grabbing;
}

.ai-node img,
.ai-node video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
}

.ai-node__label {
  position: absolute;
  left: 4px;
  top: -22px;
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #111;
}

.ai-node--small {
  width: 145px;
  height: 235px;
}

.ai-node--wide {
  width: 250px;
  height: 105px;
}

.ai-node--main {
  width: 360px;
  height: 490px;
}

.ai-node--text {
  width: 190px;
  min-height: 78px;
  padding: 16px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.06);
}

.ai-node--text p {
  margin: 0;
  font-size: 11px;
  line-height: 1.25;
  color: rgba(0,0,0,.65);
}

.ai-node--video {
  width: 330px;
  height: 330px;
}

@media (max-width: 991px) {
  .ai-hero {
    min-height: auto;
  }

  .ai-hero__inner {
    min-height: auto;
    padding: 80px 20px 36px;
  }

  .ai-hero__top {
    grid-template-columns: 1fr;
  }

  .ai-hero__title--right {
    text-align: left;
  }

  .ai-nodes {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    height: auto;
    min-height: 0;
    margin-top: 70px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .ai-nodes__lines {
    display: none;
  }

  .ai-node {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    cursor: default;
  }

  .ai-node--wide {
    aspect-ratio: 16 / 9;
  }

  .ai-node--text {
    aspect-ratio: auto;
    min-height: 130px;
  }
}

@media (max-width: 575px) {
  .ai-nodes {
    grid-template-columns: 1fr;
  }
}
		  
		  .before-after {
  height: 60vh; /* 70% высоты экрана */
  max-height: 800px;
}
		  










@media (orientation: portrait) {
 .case-section {
position:relative
}
	
.case-swiper-nav {
position: absolute;
top: 50px;
}
	
	
	
	
.case-swiper-prev {
	
width:30px;
height:30px;
}

.case-swiper-next{
	
	
	
width:30px;
height:30px;
}
	
	
.case-swiper-prev:hover, .case-swiper-next:hover {
background: #fff;

}
	
	
	

}




.case-section {
	position:relative;
}
