.first {
    justify-content: center;
    display: flex;
    flex-direction: column;
    padding-left: 93px;
    background-image: url('../img/port-fon.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; 
    height: 1080px;
    position: relative;
}

.first video.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.main-intro {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .main-intro {
    position: relative;
    z-index: 1;
    background: transparent !important;
    opacity: 1 !important;
  }
  .first {
    background: transparent !important;
    opacity: 1 !important;
  }
}

.first h1 {
    font-size: 100px;
}

.first h2 {
    font-size: 45px;
    font-weight: 600;
}

.first p {
    font-size: 30px;
    font-weight: 500;
    padding-top: 60px;
    width: 1200px;
}

.third {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 200px;
}

.third { width: 100%; box-sizing: border-box; }

@media (max-width: 1400px) {
  .third { padding: 30px 0; }
}

.blue-fon {
    justify-content: center;
    align-items: center;
    background-color: #7FDB57;
    width: 990px;
    padding-left: 137px;
    padding-top: 200px;
    padding-right: 40px;
    color: #000;
}

.blue-fon h2 {
    text-transform: uppercase;
    font-size: 50px;
    font-weight: 600;
}

.blue-fon p {
    padding-top: 60px;
    font-size: 30px;
}

.order {
    padding-top: 50px;
    display: flex;
    padding-bottom: 50px;
    justify-content: center;
    align-items: center;
}

.order-btn {
  background-color: #fff;
  display: flex;
  font-size: 30px;
  font-weight: 600;
  justify-content: center;
  align-items: center;
  gap: 50px;
  text-decoration: none;
  color: #151516;
  padding: 18px 44px;
  border-radius: 55px;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.order-btn:hover {
  transform: scale(1.08);
}

.order-btn img {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.order-btn:hover img {
  transform: rotate(-12deg) translateY(-6px) translateX(6px);
}

.result {
    background-color: #222223;
    width: 935px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.result h2 {
    font-size: 50px;
    align-items: center;
    font-weight: 600;
    padding-bottom: 40px;
    text-transform: uppercase;
}

.result ul {
    padding-left: 100px;
}

.result li {
    font-size: 25px;
    font-weight: 500;
    padding-right: 130px;
    padding-bottom: 30px;
}

.result p {
    font-size: 40px;
    padding-left: 44px;
    padding-bottom: 130px;
}

.second {
    padding: 100px 200px;
}

.second h1 {
    font-size: 70px;
}

.second p {
    padding-top: 100px;
    font-size: 30px;
}

.portfolio {
    padding-top: 90px;
}

.up {
    display: flex;
    gap: 75px;
    padding-bottom: 45px;
    justify-content: center;
}

.down {
    display: flex;
    gap: 75px;
    padding-top: 45px;
    justify-content: center;
}

.ecom {
    background-color: #222223;
    width: 830px;
    padding: 30px;
}

.ecom h2 {
    font-size: 30px;
}

.ecom img {
    width: 233px;
    height: auto;
    transform: rotate(-10deg);
}

.ecom-img {
    padding-left: 200px;
}

#port3 {
    margin-bottom: -30px;
    margin-left: -150px;
}

#port1 {
    margin-bottom: 30px;
    margin-right: -150px;
}

.centr {
    display: none;
    position: relative;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    border-top: solid 4px #1681FF;
}

.centr.centr-visible {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.centr2 {
    display: none;
    position: relative;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    border-top: solid 4px #1681FF;
}
.centr2.centr-visible {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.left {
    background-color: #fff;
    height: 760px;
    padding: 40px;
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}


.centphot {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0px;
    justify-content: center;
}

.right {
    background-color: #1681FF;
    height: 650px;
    padding: 95px 25px;
}

.right h3 {
    font-size: 30px;
    font-weight: 500;
}

.right h2 {
    font-size: 35px;
    padding-bottom: 60px;
}


.contus {
    display: flex;
    justify-content: center;
    padding-top: 200px;
}

.contus-btn {
    background-color: #fff;
    border-radius: 55px;
    color: #000;
    font-size: 30px;
    font-weight: 600;
    padding: 5px 70px;
}

.ecom {
    position: relative;
    overflow: hidden;
  }
  
  
  .ecom-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 2;
  }
  
  .ecom:hover .ecom-overlay {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
  }
  
  .centr {
    display: none;
  }

.centphot img{
    height: 280px;
}


.centphot img.centphot-img-anim {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.centphot img.centphot-img-anim.centphot-img-visible {
  opacity: 1;
  transform: scale(1);
}

@media (hover: none) and (pointer: coarse) {
  .ecom-overlay {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (max-width: 768px) {

    
    .first {
        padding-left: 20px;
        height: auto;
        padding-top: 100px;
        padding-bottom: 50px;
        background-size: cover;
        background-position: center bottom;
    }

    .first h1 {
        font-size: 70px;
        text-align: left;
    }

    .first h2 {
        font-size: 30px;
        text-align: left;
    }

    .first p {
        font-size: 20px;
        width: auto;
        padding-top: 20px;
        text-align: left;

    }

   
    .second {
        padding: 50px 15px !important;
    }

    .second h1 {
        font-size: 40px;
        margin-bottom: 30px;
    }

    .second p { 
        padding-top: 30px;
        font-size: 16px;
        text-align: left;
    }

    .portfolio {
        padding-top: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .up, .down {
        flex-direction: column;
        gap: 30px;
        padding-bottom: 0;
        padding-top: 0;
        width: 100%;
        align-items: center;
    }

    .ecom {
        width: 90%;
        max-width: 400px;
        padding: 20px;
    }

    .ecom h2 {
        font-size: 22px;
        margin-top: 15px;
    }

    .ecom-img {
        padding-left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        height: 180px; 
        overflow: hidden;
    }

    .ecom-img .port-img {
        width: 80px;
        height: auto;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .ecom-img .port-img:nth-child(1) {
        left: 50%;
        transform: translate(-90%, -50%);
        z-index: 1;
    }
    .ecom-img .port-img:nth-child(2) {
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
    }
    .ecom-img .port-img:nth-child(3) {
        left: 50%;
        transform: translate( -10%, -50%);
        z-index: 1;
    }

    .ecom-overlay {
        width: 150px;
        height: 150px;
        font-size: 18px;
    }

    
    .centr.centr-visible, .centr2.centr-visible {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        background: #fff !important;
        box-shadow: none !important;
        z-index: auto !important;
        padding: 0 !important;
        overflow-y: visible !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    
    .centr, .centr2 {
        padding-top: 50px; 
        border-top: none; 
        width: 100%; 
        
    }


    .centr .close-centr, .centr2 .close-centr2 {
        position: absolute; 
        top: 15px;
        right: 15px;
        font-size: 40px;
        color: #fff;
        background: transparent; 
        border: none; 
    }

    .left {
        width: 100%;
        height: auto;
        padding: 20px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .left img {
        width: 140px;
        height: auto;
    }

    .centphot {
        width: 100%;
        margin-top: 20px;
    }

    .centphot img {
        width: 90%;
        height: auto;
        max-width: 300px;
    }

    .right {
        width: 100%;
        height: auto;
        padding: 30px 15px;
        margin-top: 20px;
    }

    .right h2 {
        font-size: 28px;
        padding-bottom: 20px;
    }

    .right h3 {
        font-size: 18px;
    }

    .contus {
        padding-top: 30px;
    }

    .contus-btn {
        font-size: 20px;
        padding: 10px 40px;
    }

    
    .third {
        flex-direction: column;
        padding: 50px 15px;
    }

    .blue-fon, .result {
        width: 100%;
        padding: 40px 20px;
        box-sizing: border-box;
    }

    .blue-fon h2, .result h2 {
        font-size: 32px;
    }

    .blue-fon p {
        padding-top: 20px;
        font-size: 18px;
        width: auto;
    }

    .order {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .order-btn {
        font-size: 20px;
        padding: 10px 30px;
        gap: 15px;
    }

    .result ul {
        padding-left: 20px;
        list-style-position: inside;
    }

    .result li {
        font-size: 18px;
        padding-right: 0;
        padding-bottom: 15px;
        text-align: left;
    }
}


@media (max-width: 480px) {

    .first h1 {
        font-size: 40px;
    }
    .first h2 {
        font-size: 18px;
    }
    .first p {
        font-size: 16px;
    }
    .second h1 {
        font-size: 32px;
    }
    .ecom {

        padding: 15px;
    }
    .ecom-img {
        height: 150px; 
    }
    .ecom-img .port-img {
        width: 60px; 
    }
    .ecom-overlay {
        width: 120px;
        height: 120px;
        font-size: 16px;
    }
    .right h2 {
        font-size: 24px;
    }
    .right h3 {
        font-size: 16px;
    }
    .contus-btn {
        font-size: 18px;
        padding: 8px 30px;
    }
    .blue-fon h2, .result h2 {
        font-size: 28px;
    }
    .blue-fon p {
        font-size: 16px;
    }
    .order-btn {
        font-size: 18px;
        padding: 8px 20px;
    }
    .result li {
        font-size: 15px;
    }
    .centr.centr-visible, .centr2.centr-visible {
        padding: 10px; 
    }
    .centr .close-centr, .centr2 .close-centr2 {
        font-size: 32px; 
    }
}

@media (max-width: 600px) {
  .up, .down {
    flex-direction: column !important;
  }
}

@media (min-width: 601px) and (max-width: 1023px) {
  .up, .down {
    flex-direction: row !important;
  }
}

@media (max-width: 768px) {
  .centr, .centr2 {
    border-top-width: 4px;
    border-top-style: solid;
    
  }
}

@media (max-width: 1200px) {
  .first p { width: 90%; }
  .blue-fon { width: 95%; padding-left: 30px; padding-right: 20px; }
  .blue-fon p { width: 90%; }
  .blue-fon h2 { font-size: 40px; }
  .result { width: 95%; }
  .ecom { width: 95%; }
  .second, .third { padding: 50px 10px; }
  .ecom-img {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: static;
    gap: 10px;
    padding-left: 0;
  }

  .result {
    padding: 200px 20px 54px 50px;
  }
  .ecom-img img {
    position: static !important;
    width: 80px;
    height: auto;
    transform: none !important;
    margin: 0 2px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
  .centr, .centr2,
  .centr.centr-visible, .centr2.centr-visible {
    width: 100% !important;
    box-sizing: border-box;
    padding: 0 !important;
    max-height: 100%;
    height: 561px;
    display: flex;
    justify-content: center;
  }
  .centr .left, .centr2 .left {
    width: 100% !important;
    height: auto !important;
    padding: 10px !important;
    box-sizing: border-box;
  }
  .centr .right, .centr2 .right {
    width: 100% !important;
    height: auto !important;
    padding: 10px !important;
    box-sizing: border-box;
  }
  .centr .centphot, .centr2 .centphot {
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
  }

  .right h3 {
    font-size: 20px;
  }
  .left img {
    width: 150px;
  }
  .centphot img {
    width: auto !important;
    max-width: 400px;
    height: auto;
  }
  .contus-btn {
    padding: 10px 36px;
  }
}

@media (max-width: 1440px) {
  .ecom-img {
    padding-left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: static;
    gap: 10px;
    height: auto;
  }
  .ecom-img img {
    position: static !important;
    width: 120px;
    height: auto;
    transform: none !important;
    margin: 0 2px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
  .second {
    padding: 100px 100px;
  }
  .contus-btn {
    font-size: 17px !important;
  }
  .contus {
    padding-top: 100px;
  }


  .blue-fon {
    padding: 53px;
  }
  .blue-fon h2 {
    font-size: 37px;
  }
  .result h2 {
    font-size: 40px;
  }
  .order {
    padding-bottom: 0px;
  }
}


.fade-in {
  opacity: 0;
  transition: opacity 0.3s;
}
.fade-in.visible {
  opacity: 1;
}

@media (min-width: 601px) and (max-width: 1200px) {
  .third {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
  }
  .blue-fon, .result {
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
    padding: 40px 20px;
    align-items: center;
    justify-content: center;
  }
}


.third {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  gap: 0;
}
.blue-fon, .result {
  flex: 1 1 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  padding: 60px 40px;
}


@media (max-width: 1200px) {
  .third {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
  }
  .blue-fon, .result {
    min-height: unset;
    width: 100%;
    max-width: 700px;
    padding: 40px 20px;
  }
}
@media (max-width: 768px) {
  .third { padding: 0; }
  .blue-fon, .result { padding: 30px 5px; }
}
@media (max-width: 480px) {
  .blue-fon, .result { padding: 20px 2px; }
}

.left img:hover {
  cursor: pointer;
  transform: scale(1.05); 
  transition: transform 0.3s ease;
}

@media (min-width: 1440px) and (max-width: 1808px) {
  .ecom-img {
    padding-left: 0;
  }
  .centr.centr.centr-visible, .centr2.centr-visible {
    justify-content: center;
  }
  .contus {
    padding-top: 100px;
  }
  .right {
    min-width: 325px;
  }
}
@media (min-width: 2560px) {

  .right {
    width: 500px;
  }
  .centr.centr-visible, .centr2.centr-visible {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .blue-fon h2 {
    font-size: 25px;
  }
  .result h2 {
    font-size: 25px;
  }
  .centphot img {
    max-width: 390px;
  }
}

@media (max-width: 375px ) {
  .centphot img {
    max-width: 300px;
  }
}

@media (max-width: 320px ) {
  .centphot img {
    max-width: 290px;
  }
  .left img {
    width: 130px;
  }
}

@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in.visible,
  .centphot img,
  .left img {
    transition: opacity 0.3s !important;
    opacity: 1 !important;
    transform: none !important;
  }
}