* {
    padding: 0;
    margin: 0;
}

header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
}

header ul {
    padding: 0;
    margin: 0 0 0 83px;
    text-align: left;
    font-size: 0;
}

header ul li {
    display: inline-block;
}

header ul li a {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.35s, padding 0.35s;
}

header ul li a:hover {
    color: #fff;
    text-decoration: none;
    background: #ff3300;
}


header ul li.active a, 
header ul li.active a:hover {
    color: #000000 !important;
    background: #fff !important;
    text-decoration: none;
}

header.top ul li a {
    padding-top: 25px;
    padding-bottom: 25px;
}

.lang-switcher {
    position: absolute;
    top: 50%; 
    right: 30px;
    transform: translateY(-50%); 
    display: flex;
    gap: 15px;
    z-index: 1002;
    transition: all 0.35s; 
}

.lang-icon img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.lang-icon:hover img {
    transform: scale(1.1); /* Увеличение при наведении */
}


.menuToggle {
    color: #fff;
    padding: 10px 15px;
    cursor: pointer;
    display: none;
}

#main_screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -100;
}

h2 {
    color: #fff;
}

.title-dark {
    color: #000;
}


.lp-content-first, 
.lp-content, 
.lp-content-last {
    min-height: 100vh;
    padding: 80px 100px; 
    justify-content: center; 
    
    flex-direction: column;
    box-sizing: border-box;  
            display: flex;

}

.txt {
    width: 65%;
    padding-top: 50px;
    color: #fff;
    text-align: justify;
}

.txt-port {
    width: 65%;
    padding-top: 15px;
    color: #fff;
    text-align: justify;
}

.txt-dark {
    width: 50%;
    padding-top: 50px;
    color: #000;
    text-align: justify;
}

.focus-section {
    font-family: 'Open Sans', sans-serif; 
    line-height: 1.8; 
    color: #666; 
    margin-top: 40px; 
    margin-bottom: 20px;
}

.focus-section h3 {
    color: #444; 
    font-size: 22px;
    font-weight: 300; 
    margin-bottom: 20px;
    text-transform: none;
}

.focus-list li {
        color: rgba(255,255,255,0.9); 
        text-shadow: 1px 1px 3px rgba(0,0,0,0.5); 
        margin-bottom: 15px;
        list-style: none;
        position: relative;
        padding-left: 25px;
    }
    .focus-list li strong {
        color: #fff; 
        font-weight: 600;
    }
    .focus-list li::before {
        content: "-"; 
        color: #fff;
        position: absolute;
        left: 0;
    }

/*slider*/

.port-section {
    display: none;
}

.slider-port2 {
    width: 70%;
    padding-top: 0;
}

.iframe-port {
    position: relative;
    overflow: hidden;
    padding-top: 20px;
    width: 70%;
    text-align: center;
    align-items: center;
    justify-content: center; 
}


.iframe-port-banner {
    display: block;
    width: 450px; 
    max-width: 100%; 
    position: relative;
    overflow: visible;
    height: 250px;
}

.iframe-port-banner iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px !important;
    height: 250px !important;
    border: none;
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
}

.mobile-banner {
    display: none;
}

.banner-loader {
    width: 30px;
    height: 30px;
    border: 3px solid #333;
    border-top-color: #ffffff; 
    border-radius: 50%;
    position: absolute;
    /* Центрирование */
    top: 50%;
    left: 50%;
    margin-top: -15px;
    margin-left: -15px;
    animation: banner-spin 0.8s linear infinite;
    z-index: 1;
}

@keyframes banner-spin {
    to { transform: rotate(360deg); }
}

/* Скрываем спиннер и проявляем iframe */
.iframe-port.ready .banner-loader {
    display: none;
}

.iframe-port iframe[data-src] {
    opacity: 0;
    border: none;
    overflow: hidden;
    transition: opacity 0.5s ease;
    position: relative;
    z-index: 2;
}

.iframe-port.ready iframe[data-src] {
    border: none;
    overflow: hidden;
    opacity: 1;
}

.lp-gallery {

    padding: 30px 0px;
}

.item {
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

#item-1 {
    background-image: url("../IMG/Slideshow/slide2c.jpg");
}

#item-2 {
    background-image: url("../IMG/Slideshow/slide2b.jpg");
}

#item-3 {
    background-image: url("../IMG/Slideshow/slide3.jpg");
}

#item-4 {
    background-image: url("../IMG/Slideshow/slide4.jpg");
}

#item-5 {
    background-image: url("../IMG/Slideshow/HD_Gazelkin_Port.png");
}

#item-6 {
    background-image: url("../IMG/Slideshow/HD_Animation_URBANDRIVE_Port.png");
}

#item-7 {
    background-image: url("../IMG/Slideshow/monster_port.jpg");
}

#item-8 {
    background-image: url("../IMG/Slideshow/prior_port.jpg");
}

#item-9 {
    background-image: url("../IMG/Slideshow/galaxyNote8_Port.jpg");
}

#item-10 {
    background-image: url("../IMG/Slideshow/chery_port.jpg");
}

#item-11 {
    background-image: url("../IMG/Slideshow/leroy_port.jpg");
}

#item-12 {
    background-image: url("../IMG/Slideshow/DesignerDock_Port.jpg");
}

#item-13 {
    background-image: url("../IMG/Slideshow/HD_Hatni_Port.jpg");
}

#item-14 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url("../IMG/Slideshow/START_TRAINING_2MB.png");
}

.owl-dots {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    text-align: center;
    opacity: 1;
}

.owl-dots button.owl-dot {
    display: inline-block;
    padding: 0 10px !important;
}

.owl-dots button.owl-dot:focus {
    outline: none;
}

.owl-dots button.owl-dot span {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ffffff;
    /*border-radius: 100%;*/
    transition: background-color .25s;


}

.owl-dots button.owl-dot.active span {
    background: #ff3300
}

.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    background: #fff;
    border-radius: 100%;
    opacity: 0.75;
    text-align: center;
    transition: opacity .25s;

}

.owl-carousel .owl-nav button.owl-prev {
    left: 25px;
}

.owl-carousel .owl-nav button.owl-next {
    right: 25px;
}

.owl-carousel .owl-nav button.owl-prev:focus,
.owl-carousel .owl-nav button.owl-next:focus {
    outline: none;
}

.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
    opacity: 0.95;
}

.owl-carousel .owl-nav button.owl-prev i,
.owl-carousel .owl-nav button.owl-next i {
    color: #3eb5ff;
    font-size: 16px;
    line-height: 40px;
}

/* В styles.css */
.lp-slider2.owl-carousel .owl-stage {
    display: flex !important;
    width: 10000px !important; /* Даем огромный запас для ленты */
}

.lp-slider2.owl-carousel .owl-item {
    /* Убираем width: auto !important, если он был */
    display: flex;
    justify-content: center;
    align-items: center;
}

.lp-slider2.owl-carousel .owl-stage-outer {
    overflow: hidden;
    width: 100% !important;
}


/*Feedback Form*/

.wi-fb {

    padding: 0;
    margin: 0;
    left: 0;
    width: 500px;

}

.wi-fb-line input {
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    width: 300px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    color: #666;
    border: none;
}

.wi-fb-line input:focus {
    outline: none;
}

.wi-fb-line textarea {
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    width: 500px;
    min-height: 150px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    color: #666;
    border: none;
}

.wi-fb-line textarea:focus {
    outline: none;
}

.wi-fb .wi-fb-btn button {
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    width: 120px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    color: #666;
    border: none;
}

.wi-fb .wi-fb-btn button:hover {
    color: #ff3300;
    background: #fff;
    cursor: pointer
}

.wi-fb .wi-fb-btn button:focus {
    outline: none
}

/*Popup*/

.lp-modals {
    display: none;
}

.lp-popup {
    position: relative;
    background: #FFF;
    padding: 40px;
    width: auto;
    max-width: 500px;
    margin: 40px auto;
    border-radius: 20px;

}

.port_link:focus {
    outline: none;
}

.popup_port {
    text-align: justify;

}

#bio .port_nav {
    padding-left: 5px;
    padding-right: 5px;
    display: inline-block;
    color: #fff;
    text-decoration: underline;
}

#bio .port_nav:hover {
    color: #fff;
    background: #ff3300;
    text-decoration: none;
}

#portfolio .port_nav {
    padding-left: 5px;
    padding-right: 5px;
    display: inline-block;
    color: #fff;
    text-decoration: underline;
}

#portfolio .port_nav:hover {
    color: #fff;
    background: #ff3300;
    text-decoration: none;
}

#contacts .port_nav {
    padding-left: 5px;
    padding-right: 5px;
    display: inline-block;
    color: #fff;
    text-decoration: underline;
}

#contacts .port_nav:hover {
    color: #fff;
    background: #ff3300;
    text-decoration: none;
}

/*Vimeo Container*/

.vimeo-container {
    padding: 40% 0 0 0;
    position: relative;
    display: block; 
}

.vimeo-desktop-player {
    display: block; 
    width: 100%;
    height: 100%;
}

.vimeo-desktop-player iframe {
    opacity: 1 !important;
    visibility: visible !important;
}

.vimeo-mobile-placeholder {
    display: none; 
}

/*Mouse Animation*/

.mouse-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    /* Начальное состояние: сильно опущена вниз и невидима */
    transform: translateX(-50%) translateY(100px) scale(2);
    z-index: 10;
    opacity: 0; 
    pointer-events: none; /* чтобы не мешала кликам, когда скрыта */
}

.mouse {
    border: 2px solid #fff;
    border-radius: 17px;
    height: 50px;
    width: 30px;
    display: block;
    position: relative; /* Относительно контейнера */
}

.mouse .wheel {
    position: relative;
    border-radius: 4px;
    background: #fff;
    width: 2px;
    height: 6px;
    margin: 4px auto;
    animation: wheel 1.5s ease-in-out infinite;
}


@keyframes wheel {
    0% { 
        top: 15px; 
        opacity: 0; 
    }
    /* Колесико плавно появляется и задерживается в движении */
    30% { 
        top: 10px; 
        opacity: 1; 
    }
    70% { 
        top: 5px; 
        opacity: 1; 
    }
    100% { 
        top: 0px; 
        opacity: 0; 
    }
}


/*Adaptiv*/


 @media only screen and (max-width: 1400px) {


    header ul {
        padding: 0;
        margin: 0 0 0 43px;
        text-align: left;
        font-size: 0;
    }
    

    .txt {
        width: 65%;
        padding-top: 20px;
        color: #fff;
        text-align: justify;
    }

    .txt-dark {
        width: 400px;
        padding-top: 20px;
        color: #000;
        text-align: justify;
    }

    .slider-port2 {
        width: 80%;
        padding-top: 10px;
    }
     
     .vimeo-container {
        width: 80%;
        margin: 0 auto;
        padding-bottom: 0 !important;
        padding-top: 0 !important;
        height: auto !important;
        min-height: 250px; 
    }
    
    .vimeo-desktop-player {
        display: none !important; 
    }

    .vimeo-mobile-placeholder {
        display: block !important; 
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .vimeo-mobile-placeholder img {
        width: 100%;
        height: 100%;
        object-fit: cover; 
    }

   
    .mobile-play-btn {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 60px;
        height: 60px;
        background: rgba(0, 173, 239, 0.9); 
        border-radius: 50%;
    }

    .mobile-play-btn::after {
        content: '';
        position: absolute;
        top: 18px;
        left: 23px;
        border-style: solid;
        border-width: 12px 0 12px 20px;
        border-color: transparent transparent transparent #fff;
    }
     
    .mouse-container {
        display: none;
    }

    .lp-gallery {

        padding: 30px 0px;
    }

  .iframe-port {
        width: 80%;
        text-align: center;
    }

    .wi-fb-line textarea {
        padding: 10px;
        margin-top: 5px;
        margin-bottom: 5px;
        width: 300px;
        min-height: 150px;
        background: rgba(255, 255, 255, 0.7);
        border-radius: 20px;
        color: #666;
        border: none;
    }

}


@media only screen and (max-width: 1200px) {
    
    .desktop-banner {
        display: none; /* Прячем широкий */
    }
    .mobile-banner {
        display: block; /* Показываем квадратный */
        text-align: center; /* Центрируем, если нужно */
    }
    
    /* Дополнительно: чтобы iframe не вылезал за края экрана */
    .mobile-banner iframe {
        max-width: 100%;
        display: block;
        margin: 0 auto;
    }
    
    .lp-gallery {

        padding: 20px 0px;
    }

}

@media only screen and (max-width: 1100px) {


    
           #bg-pattern {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #000; 
        opacity: 0.5;
        z-index: -50;
    } 


    header ul {
        padding: 0;
        margin: 0 0 0 13px;
        text-align: left;
        font-size: 0;
    }

    .txt {
        width: 100%;
        padding-top: 20px;
        color: #fff;
        text-align: justify;
    }

    .title-dark {
        color: #fff;
    }

    .txt-dark {
        width: 100%;
        padding-top: 20px;
        color: #fff;
        text-align: justify;
    }

     .slider-port2 {
        width: 100%;
        padding-top: 0;
    }
    
    .vimeo-container {
    padding: 50% 0 0 0;
    position: relative;
}

    .iframe-port {
        width: 100%;
        text-align: center;
    }
    
     .vimeo-container {
     width: 100%;
    }


    .lp-gallery {

        padding: 20px 0px;
    }

     .wi-fb {

        padding: 0;
        margin: 0;
        left: 0;
        width: 100%;
    }

    .wi-fb-line input {
        width: 50%;
    }
    

    .wi-fb-line textarea {
        padding: 10px;
        margin-top: 5px;
        margin-bottom: 5px;
        width: 100%;
        min-height: 150px;
        background: rgba(255, 255, 255, 0.7);
        border-radius: 20px;
        color: #666;
        border: none;
    }

    #item-4 {
        background-image: url("../IMG/Slideshow/slide4b.jpg");
    }

  

}





@media only screen and (max-width: 640px) {

 
   .lp-content-first, 
    .lp-content, 
    .lp-content-last {
    
    padding: 100px 25px 80px 25px; 
        
        display: block; 
  
}
 
    .item {
        height: 100vh;
        width: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    #item-1 {
        background-image: 
           url("../IMG/Slideshow/slide2.jpg"); background-repeat: no-repeat; 
    background-position: right center; 
}

    #item-2 {
        background-image: url("../IMG/Slideshow/slide2a.jpg");
    }

    #item-4 {
        background-image: url("../IMG/Slideshow/slide4a.jpg");
    }

    .title-dark {
        color: #fff;
    }

    .txt {
        width: 100%;
        padding-top: 20px;
        color: #fff;
        text-align: left;
    }

    .txt-dark {
        width: 100%;
        padding-top: 20px;
        color: #fff;
        text-align: left;
    }
    
    .txt-port {
    width: 100%;
    padding-top: 15px;
    color: #fff;
    text-align: left;
}

    .slider-port2 {
        width: 100%;
        padding-top: 0;
    }

    .iframe-port {
        width: 100%;
        text-align: center;
    }

    .lp-gallery {

        padding: 20px 0px;
    }

    .wi-fb {

        padding: 0;
        margin: 0;
        left: 0;
        width: 100%;
    }

    .wi-fb-line input {
        width: 100%;
    }

    .wi-fb-line textarea {
        padding: 10px;
        margin-top: 5px;
        margin-bottom: 5px;
        width: 100%;
        min-height: 150px;
        background: rgba(255, 255, 255, 0.7);
        border-radius: 20px;
        color: #666;
        border: none;
    }

    .menuToggle {
        display: block;
        padding: 10px 30px;
    }
    .menu {
        width: 100%;
        padding: 0;
        margin: 0;
        text-align: left;
        font-size: 0;
        display: none;
    }

    li {
        width: 100%;
    }

  
header {
    background: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    box-shadow: none; 
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}


header.open {
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9);
/*    border-bottom: 2px solid rgba(255, 255, 255, 0.5); */
}


header:has(#menu-toggle.open) {
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9);
 /*   border-bottom: 2px solid rgba(255, 255, 255, 1); */
    padding-bottom: 20px;
}

    header ul li a {
        width: 100%;
        display: inline-block;
        padding: 10px 30px;
        font-size: 14px;
        color: #fff;
        text-transform: uppercase;
        text-decoration: none;
        transition: color 0.35s, padding 0.35s;
    }

    header.top ul li a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .lang{
        position: relative;
        display: inline-block;
    }
    
    .lang-switcher {
        top: 32px; 
        transform: none;
        right: 20px;
    }


    /*Hamburger*/
    * {
        box-sizing: border-box;
    }

    span {
        display: block;
        background: #fff;
        border-radius: 2px;
    }

    #menu-toggle {
        width: 50px;
        height: 50px;
        /*padding: 30px 30px;*/
        margin: 20px 30px;
        position: relative;
        cursor: pointer;
        background: #000;
        border-radius: 5px;
    }
    #menu-toggle:hover {
        background: #000;
    }
    #menu-toggle #hamburger {
        position: absolute;
        height: 100%;
        width: 100%;
    }
    #menu-toggle #hamburger span {
        width: 30px;
        height: 4px;
        position: relative;
        top: 10px;
        left: 10px;
        margin: 5px 0;
    }
    #menu-toggle #hamburger span:nth-child(1) {
        transition: 0.25s ease-out;
        transition-delay: 0.5s;
    }
    #menu-toggle #hamburger span:nth-child(2) {
        transition: 0.25s ease-out;
        transition-delay: 0.625s;
    }
    #menu-toggle #hamburger span:nth-child(3) {
        transition: 0.25s ease-out;
        transition-delay: 0.75s;
    }
    #menu-toggle #cross {
        position: absolute;
        height: 100%;
        width: 100%;
        transform: rotate(45deg);
    }
    #menu-toggle #cross span:nth-child(1) {
        height: 0%;
        width: 4px;
        position: absolute;
        top: 10%;
        left: 24px;
        transition: 0.25s ease-out;
        transition-delay: 0s;
    }
    #menu-toggle #cross span:nth-child(2) {
        width: 0%;
        height: 4px;
        position: absolute;
        left: 10%;
        top: 24px;
        transition: 0.25s ease-out;
        transition-delay: 0.25s;
    }

    #menu-toggle.open #hamburger span {
        width: 0%;
    }
    #menu-toggle.open #hamburger span:nth-child(1) {
        transition-delay: 0s;
    }
    #menu-toggle.open #hamburger span:nth-child(2) {
        transition-delay: 0.125s;
    }
    #menu-toggle.open #hamburger span:nth-child(3) {
        transition-delay: 0.25s;
    }
    #menu-toggle.open #cross span:nth-child(1) {
        height: 80%;
        transition-delay: 0.625s;
    }
    #menu-toggle.open #cross span:nth-child(2) {
        width: 80%;
        transition-delay: 0.375s;
    }



}
