/*
Theme Name: Expert
Author URI: http://www.advfor.ru/
Author: Advanced Studio
Version: 1.0
Text Domain: expert
*/

/* HELPERS
-------------------- */
small,
.small {
  font-size: 1.4rem;
  line-height: 120%;
}
hr {
  border: none;
  height: 1px;
  background-color: rgba(0,0,0,0.102);
}
.h-100 {
  min-height: 100%;
  box-sizing: border-box;
}
.mb-05 {
  margin-bottom: 1rem;
}
.mt-05 {
  margin-top: 1rem;
}
.mr-05 {
  margin-right: 1rem;
}
.ml-05 {
  margin-left: 1rem;
}
.slick-dots li {
  border-radius: 999px;
  width: 8px;
  height: 8px;
  background: #fff;
  opacity: 0.5;
  display: inline-block;
  margin: 0 8px 0 0;
}
.slick-dots li.slick-active {
  opacity: 1;
}
.slick-dots button {
  display: none;
}
.slick-prev,
.slick-next {
  cursor: pointer;
  width: 32px;
  height: 32px;
  opacity: .5;
  display: inline-block;
}
.slick-prev {
  background-image: url(css/images/arrow-left.svg);
}
.slick-next {
  background-image: url(css/images/arrow-right.svg);
}
.slick-prev:hover,
.slick-next:hover {
  opacity: 1;
}

.b-rounded {
  border-radius: var(--radius);
}
.b-bordered {
  border: 1px solid rgba(255,255,255,.3);
}
.b-muted {
  background: rgba(44,44,44,.5);
}
.b-gray {
  background: var(--gray);
}
.b-white {
  background-color: #fff;
  color: #000;
}
.b-dark {
  background-color: #212121;
}
.b-light {
  background-color: #464646;
}
.b-square {
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1 / 1;
}
.text-primary {
  color: var(--primary);
}

.page {
  background: url(css/images/bg.svg) no-repeat left top, linear-gradient(185deg, #855a2b 0px, black 800px);
}
/*.page:not(.home) {
  background: #000 url(css/images/bg.svg) no-repeat left top;
  background-size: 100% auto;
}

@media (min-width: 991px) {
 .page:not(.home) {
    background: url(css/images/bg.svg) no-repeat left top, #000 url(css/images/bg.jpg) no-repeat right top;
    background-size: 100% auto, auto;
  } 
}*/

.h2:after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 16px;
  background: url(css/images/bullet.svg) no-repeat;
  background-size: contain;
  vertical-align: middle;
  margin-left: 2rem;
}
@media (min-width: 580px) {
  .h2:after {    
    width: 34px;
    height: 24px;
  }
}

.header .h2:after {
  content: none;
}

a.header-lang {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 12px 10px 8px;
  border-radius: 10px;
  border: 1px solid #000;
  background-color: #000;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}
a.header-lang.active {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.prev-item-value {
  color: var(--primary);
  font-weight: 500;
  font-size: 7.8rem;
  line-height: 1;
}
.steps-item-number {
  display: inline-block;
  width: 34px;
  height: 34px;
  line-height: 40px;
  text-align: center;
  color: #fff;
  border-radius: 5px;
  background-color: var(--primary);
}

.prev2-item:before {
  content: '';
  width: 100px;
  height: 110px;
  left: 0px;
  top: -35px;
  position: absolute;
  z-index: -1;
  /*background-color: #fff;*/
  background: linear-gradient(45deg, rgba(162,203,134,.8), #fff);
  border-radius: 30px;
  transform: rotate(-20deg);
}
.prev-img-absolute {
  position: absolute;
  top: 5px;
  transform: translateY(-50%);
  left: 2rem;
  width: 50px;
  height: 50px;
}
#map iframe {
  border-radius: 20px;
}

@media (min-width: 1250px) {
  .steps {
    position: relative;
  }
  .steps:before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(255,255,255,.2), rgba(255,255,255,1));
  }
  .steps-item:after,
  .steps:after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 12px;
    height: 12px;
    border-radius: 99px;
    background-color: #D9D9D9;
    transform: translate(-3rem, 6px);
  }
  .steps:after {
    background-color: var(--primary);
    right: 0;
    transform: translate(0, 6px);
  }
}

[data-fancybox="video"] {
  display: block;
  position: relative;
}
[data-fancybox="video"]:after {
  content: '';
  position: absolute;
  width: 64px;
  height: 64px;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: rgba(255,255,255,.5) url("data:image/svg+xml,%3Csvg width='22' height='24' viewBox='0 0 22 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.25 10.2302C21.5833 11 21.5833 12.9245 20.25 13.6943L3 23.6536C1.66666 24.4234 -6.72981e-08 23.4612 0 21.9216L8.70669e-07 2.00298C9.37967e-07 0.463381 1.66667 -0.498867 3 0.270933L20.25 10.2302Z' fill='white'/%3E%3C/svg%3E%0A") no-repeat center center;
  backdrop-filter: blur(5px);
  transform: translate(-50%, -50%);
}
[data-fancybox="video"]:hover:after {
  background-color: #4B881E;
}

.works-slider img {
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.works-slider .slick-list {
  overflow: visible;
  margin: 0 -13px 2rem;
}
.works-slider .slick-slide {
  padding: 0 13px;
  opacity: .5;
}
.works-slider .slick-active {
  opacity: 1;
}
@media (max-width: 580px) {
  .works-slider .slick-slide {
    min-width: 300px;
  }
}

.reviews-slider .slick-list {
  overflow: visible;
  margin: 0 -13px 2rem;
}
.reviews-slider .slick-slide {
  padding: 0 13px;
  opacity: .5;
}
.reviews-slider .slick-active {
  opacity: 1;
}
@media (max-width: 580px) {
  .reviews-slider .slick-slide {
    min-width: 300px;
  }
}

@media (min-width: 991px) {
  .request-form {
    position: relative;
    background-image: url(css/images/form-bg.svg);
    background-repeat: no-repeat;
    background-position: right -5vw center;
    background-size: auto 100%;
  }
  .request-form-img {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
  }
}

.about-video {
  width: 100%; 
  aspect-ratio: 13 / 16; 
  object-fit: cover; 
  overflow: hidden;
}

.director {
  background: url(css/images/director.jpg) no-repeat left 30% top;
  background-size: cover;
  /*height: 600px;*/
  padding-top: 300px;
}
.record-form {
  background: url(css/images/form-bg-2.svg) no-repeat left -20px bottom 20px, linear-gradient(to bottom, var(--primary), #73A151);
}
@media (min-width: 991px) {
  .director {
    background-size: cover;
    padding-top: 0;
    height: 400px;
  }
  .record-form {
    padding-bottom: 50px;
  }
}
.tariffs ul {
  list-style: disc;
  margin-left: .5rem;
}

.footer-btns-outer {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 100;
}
.footer-btn {  
  border-radius: 99px;
  z-index: 100;
  box-shadow: 0 2px 5px -2px #E3FF6C, 0 8px 24px rgba(0, 0, 0, 0.2);\
  margin-right: 10px;
  text-align: center;
  padding: 1.5rem 1rem;
}
@media (min-width: 768px) {
  .footer-btns-outer {
    /*bottom: 14rem;*/
  }
  .footer-btn {
    padding: 2rem 1.5rem;
  }
}
.footer-btn img {
  vertical-align: middle;
  width: 75%;
}
.footer-btn-tg {
  background: #1086C1;
}
.footer-btn-wa {
  background: #25D366;
}