/* === стилі для тексту hero-slider === */
.hero-slider__description::-webkit-scrollbar {
    width: 0;
}

.hero-slider__description::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 0px;
}

/* Посилання */
.hero-slider__description .hero-slider__description-inner a:not(.button-more) {
    color: #0066cc;
    text-decoration: underline;
}

.hero-slider__description .hero-slider__description-inner a:not(.button-more):hover {
    color: #004499;
}

/* Цитати */
.hero-slider__description .hero-slider__description-inner blockquote {
    border-left: 4px solid #ddd;
    padding-left: 1em;
    margin-left: 0;
    font-style: italic;
    color: #666;
}

/* Код та преформатований текст */
.hero-slider__description .hero-slider__description-inner pre,
.hero-slider__description .hero-slider__description-inner code {
    font-family: 'Courier New', monospace;
    background: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

.hero-slider__description .hero-slider__description-inner pre {
    padding: 1em;
    overflow-x: auto;
}

/* Кнопки, таблиці та інше */
.hero-slider__description .hero-slider__description-inner .wp-block-button__link {
    background: #0066cc;
    color: white;
    padding: 0.5em 1em;
    border-radius: 4px;
    text-decoration: none;
}

.hero-slider__description .hero-slider__description-inner table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.5em;
}

.hero-slider__description .hero-slider__description-inner th,
.hero-slider__description .hero-slider__description-inner td {
    border: 1px solid #ddd;
    padding: 8px 12px;
}

.hero-slider__description .hero-slider__description-inner th {
    background: #f5f5f5;
}
/* === /стилі для тексту hero-slider === */


.hero-slider,
.heroSwiper,
.heroBaner {
   height: calc(100svh - var(--headerH));
}

.heroBaner *,
.heroSwiper * {
   /* color: #fafafa; */
}

.hero-slider {
   overflow: hidden;
}

.heroSwiper {
   position: relative;
}

/* .heroSwiper .swiper-slide:after,
.heroBaner:after {
   content: '';
   background: rgb(0 0 0 / 30%);
   background: linear-gradient(45deg, rgb(0 0 0 / 60%), transparent);
   background-position: top left;
   background-repeat: no-repeat;
   background-size: cover;
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   z-index: 1;
   margin: auto;
   opacity: 0.5;
} */

.hero-slider__description {
   position: absolute;
   top: 0;
   right: 0;
   bottom: 0;
   left: 0;
   z-index: 2;
   display: grid;
   align-content: center;
   justify-content: left;
   gap: clamp(10px, 2vw, 20px);
   max-width: var(--contentW);
   padding: 38px clamp(20px, 2.5vw, 48px);
   max-height: 100%;
   margin: auto;
   overflow: auto;
}

.hero-slider__description-inner {
   position: relative;
   display: grid;
   gap: clamp(15px, 1vw, 20px);
   max-width: 1000px;
   margin: auto;
}

.hero-slider__description-inner p,
.hero-slider__description-inner li {
   font-size: clamp(18px, 4vw, 22px);
   line-height: clamp(32px, 5vw, 40px);
}

.hero-slider__description-inner ul,
.hero-slider__description-inner ol {
   margin: 0;
   padding: 0;
   list-style: none;
}

@media (min-width: 600px) {
   .hero-slider__description-inner {
      margin-left: clamp(0px, 5vw, 90px);
   }
}

.hero-slider__description-inner h1,
.hero-slider__description-inner h2,
.hero-slider__description-inner h3,
.hero-slider__description-inner h4,
.hero-slider__description-inner h5,
.hero-slider__description-inner h6 {
   font-size: clamp(31px, 5vw, 60px);
   line-height: clamp(41px, 5vw, 69px);
}
.hero-slider__description-inner .hero-slider__des {
   font-size: clamp(20px, 1.3vw, 25px);
}

.hero-slider__des {
   font-size: clamp(18px, 6vw, 22px);
   margin-bottom: 25px;
}

.hero__buttons {
   display: grid;
   grid-template-columns: auto auto;
   justify-content: left;
   align-items: center;
   gap: 40px;
}

@media (max-width: 560px) {
   .hero__buttons {
      grid-template-columns: 1fr;
      justify-items: center;
   }
   .hero__buttons .viewVideo-button {
      justify-content: left;
   }
}

@media (max-width: 768px) {
   .active-slide .hero-slider__description-inner h2 {
      font-size: clamp(27px, 4vw, 70px);
      line-height: clamp(36px, 4vw, 74px);
   }
   .hero-slider__des {
      font-size: 16.5px;
   }
}

@media only screen and (orientation: landscape) and (max-width: 768px) {
   .hero-slider__description-inner {
      gap: 14px;
   }

   .hero__buttons {
      justify-content: space-between;
   }
}

.hero__buttons .viewVideo-button {
   padding: 0;
}

.heroSwiper .swiper-img,
.heroBaner .swiper-img {
   height: 100%;
}

.heroSwiper .swiper-img img,
.heroBaner .swiper-img img {
   height: 100%;
   width: 100%;
   object-fit: cover;
   object-position: center;
}

.heroSwiper-pagination {
   position: absolute;
   z-index: 2;
}

.heroSwiper-button-prev,
.heroSwiper-button-next {
   visibility: hidden;
   opacity: 0;
   transition: all 0.3s;
}
.heroSwiper-button-prev svg,
.heroSwiper-button-next svg {
   color: #ffffff;
}
.heroSwiper-button-prev:hover,
.heroSwiper-button-next:hover {
   background-color: var(--blue-main);
}
.heroSwiper:hover .heroSwiper-button-prev,
.heroSwiper:hover .heroSwiper-button-next {
   visibility: visible;
   opacity: 1;
}
.heroSwiper-pagination {
   text-align: center;
}
.heroSwiper-pagination .swiper-pagination-bullet {
   width: 16px;
   height: 16px;
}
.heroSwiper-pagination .swiper-pagination-bullet-active {
   background: var(--blue-d-1);
}


/* ============ animation hero slider ============ */
.hero-slider__description > *,
.hero-slider__text > * {
   opacity: 0;
}

.hero-slider__text > * {
   animation-delay: 0.6s;
}

.hero-slider__text > *:nth-child(1) {
   animation-delay: 0.4s;
}

.hero-slider__text > *:nth-child(2) {
   animation-delay: 0.8s;
}

.hero-slider__text > *:nth-child(3) {
   animation-delay: 1.2s;
}

/* .hero-slider__description > *:first-child {
   animation-delay: 0.6s;
} */
.hero-slider__description > *:first-child ~ * {
   animation-delay: 0.6s;
}
.hero-slider__description > *:last-child {
   animation-delay: 1.2s;
}

.active-slide .hero-slider__description > *,
.hero-slider__text > * {
   animation-name: fadeInUp;
   animation-fill-mode: forwards;
   animation-duration: 1.5s;
}

@keyframes fadeInUp {
   0% {
      opacity: 0;
      -webkit-transform: translate3d(0, 100%, 0);
      transform: translate3d(0, 100%, 0);
   }

   to {
      opacity: 1;
      -webkit-transform: none;
      transform: none;
   }
}
/* ============ /animation hero slider ============ */

.hero-slider__description {
   grid-template-columns: 1fr 2fr 1fr;
   grid-template-rows: 1fr 3fr 1.5fr;
}

.hero-slider .swiper-img {
   background-image: linear-gradient(to right bottom, #002d90, #033394, #083897, #0e3e9b, #13439e, #1b48a1, #224ea5, #2953a8, #335aad, #3c61b2, #4568b6, #4d6fbb);
}

.hero-slider__text {
  grid-area: text;
}

.hero-slider__image-left {
  grid-area: image-left;
  max-height: 500px;
  width: auto;
  max-width: fit-content;
}

.hero-slider__image-right {
  grid-area: image-right;
  max-height: 410px;
  justify-self: right;
  width: auto;
  max-width: fit-content;
}

.hero-slider__button-link {
  display: grid;
}


.hero-slider__description ul {
   list-style: disc;
   padding-left: 10px;
}

.gutenberg-elements-inline {
   display: flex;
   flex-wrap: wrap;
   gap: 20px;
   align-items: center;
}

.hero-slider-logo {
   height: 138px;
   width: auto;
}


@media screen and (max-width: 768px) {
   .hero-slider__description {
      grid-template-areas:
         '   .     .   .'
         'text text text'
         'text text text'
      !important;
   }

   .hero-slider-logo {
      max-height: 70px;
   }

   .hero-slider__image-right {
      display: none;
   }
}

@media screen and (min-width: 769px) and (max-width: 1154px) {
   .hero-slider__description {
      grid-template-areas:
         '   .    . image-left'
         'text text image-left'
         'text text image-left'
      !important;
   }
}


@media screen and (max-width: 1154px) {
   .hero-slider__image-left {
      display: none;
   }

   .heroSwiper .swiper-img img, 
   .heroBaner .swiper-img img {
      object-fit: cover !important;
      object-position: center !important;
   }
}

@media screen and (max-width: 1154px) {
   
}


/* ================================= */

/* 
@media screen and (max-width: 768px) {
   .hero-slider__description {
      grid-template-areas:
         'text text text'
         'text text text'
         'text text text';
   }

   .hero-slider-logo {
      max-height: 70px;
   }

   .hero-slider__image-right {
      display: none;
   }
}

@media screen and (min-width: 769px) and (max-width: 1154px) {
   .hero-slider__description {
      grid-template-areas:
         '   .    . image-left'
         'text text image-left'
         'text text image-left';
   }
}


@media screen and (max-width: 1154px) {
   .hero-slider__image-left {
      display: none;
   }

   .heroSwiper .swiper-img img, 
   .heroBaner .swiper-img img {
      object-fit: cover !important;
      object-position: center !important;
   }
} 
*/
