input {outline:none;}
.newsletter-form {
   background-color: white;
    /* width: 300px; */
        max-width: 50%;
    height: 100%;
    text-align: left;
    position: fixed;
    right: 0;
    top: 0;
    bottom:0;
 padding: 20px 0; 
    z-index: 999;
    flex-direction: column;
    align-items: center;
        transform: translateX(100%);
        transition: .3s;
}
.close-btn{
    position: absolute;
    right: 0px;
    top: 0px;
    width: 3.25rem;
    height: 2rem;
    padding: 5px;
}
.close-btn:hover{
    cursor:pointer;
}
.newsletter-form.open-newsletter{
    transform: translateX(0);
    transition: .3s;
    box-shadow: 2px 0px 10px #000;
}
.main-newsletter-form{
       padding: 0px 15%; 
}
.tile-block{
        position: relative;
    display: block;
    width: 100%;
}
.newsletter-form h2 {
    font-size: 20px;
        text-align: center;
}

.newsletter-form p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 2.5rem;
        padding-top: 5rem;
        padding-right: 15%;
    padding-left: 15%;
    text-align: center;
}

.newsletter-form form {
    display: flex;
    flex-direction: column;
}

.newsletter-form input[type="email"] {
    padding: 8px;
    border: none;
    border-bottom: 1px solid #1a3349;
    width: 100%;
    margin-top: 5px;
        margin-bottom: 2.6rem;
}

.newsletter-form button {
    background-color: black;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.newsletter-form button:hover {
    background-color: #333;
}
.one-block-r{
        padding-top: 10px;
}
.block-radio{
    display: flex;
        justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}
.newsletter-form .non-style{
    padding: 0;
}



 .news-letter .input-text{
        background: none;
    color:#fff;
    border: none;
    /* border-bottom: 1px solid #fff; */
    }

 .news-letter .input-text::placeholder{
         color: #fff;
 }
 .contact-form .button{
     background: none;
     border:none;
     color:#fff;
 }
 
 #form-contacts{
     position:relative;
 }
  #form-contacts:before{
     content: "";
    position: absolute;
    background: #fff;
    bottom: -2px;
    height: 1px;
    width: 100%;
 }
 .footer_item{
    width: 33%;
 }
 .footer_item.second{
     display:flex;
 }
 .footer_item.third{
     display: flex;
    flex-direction: column;
 }
  .footer_item.first .menu{
      display: flex;
    align-items: center;
    justify-content: space-between;
    list-style-type: none;
    margin-bottom:10px;
  }
  .footer_item.first .menu li{
      margin-right:10px;
  }
   .footer_item.first .menu li a{
       color:#fff;
   }
   
   .priv-link{
       font-size: 10px;
    font-weight: 100;
   }
   
   .priv-link a{
       text-decoration: underline !important;
       color:#fff !important;
       margin-bottom: 10px;
   }
   
   .footer_item.first{
       display:flex;
    flex-direction: column;
    align-items: baseline;
   }
   .footer_item.first .digital{
       padding-top: 5px;
   }
   
   input[type='radio'],
.main-newsletter-form label {
  cursor: pointer;
}

.main-newsletter-form input[type='radio'] {
  position: relative;
  height: 22px;
  width: 22px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
}

.main-newsletter-form input[type='radio']::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border: 2px solid #1a3349;
}

.main-newsletter-form input[type='radio']:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #1a3349;
  transform: translate(-50%, -50%);
  visibility: visible;
}
   
   .sub-block-r span{
        vertical-align: super;
   }
  .slider_item p{
      margin-bottom: 10px;
  }
    @media screen and (max-width: 1240px) {
     .footer_wrapper span{
         font-size: 11px !important;
    line-height: 11px !important;
     }
     
     .footer_wrapper{
                 height: 100%;
        padding: 20px 0;
     }
     #form-contacts{
         display:flex;
     }
     #form-contacts input{
         font-size: 11px;
     }
     .news-letter{
         width: 100%;
     }
 }
 
 
     @media screen and (max-width: 768px){
         .newsletter-form {

        max-width: 100%;
        }
         
         .footer_item.first{
             order: 1;
         }
         .footer_item.first .menu{
             display:none;
         }
         .contact-form input{
             width: 100%;
         }
         .contact-form .button{
                 white-space: nowrap;
         }
         .contact-form{
             width: 100%;
         }
         .footer_item.first .digital{
             padding-top: 10px;
         }
         #form-contacts input{
         font-size: 16px;
     }
     .footer_wrapper span{
         font-size: 13px !important;
    line-height: 13px !important;
     }
     }
     
     
     
     .main_foto_container { position: relative; }

.left_shape, .right_shape {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: black;
  cursor: pointer;
  z-index: 9999;
  display: block;
}

.left_shape { left: 10px; }
.right_shape { right: 10px; }

/* Image Zoom Modal */
.image-zoom-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.image-zoom-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-zoom-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s;
    cursor: default;
    user-select: none;
}

.image-zoom-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 100000;
    user-select: none;
}

.image-zoom-close:hover,
.image-zoom-close:focus {
    color: #bbb;
}

/* Navigation arrows in modal */
.image-zoom-prev,
.image-zoom-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 100000;
    user-select: none;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.image-zoom-prev {
    left: 20px;
}

.image-zoom-next {
    right: 20px;
}

.image-zoom-prev:hover,
.image-zoom-next:hover {
    background: rgba(0, 0, 0, 0.6);
    color: #bbb;
}

.image-zoom-prev.disabled,
.image-zoom-next.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Image counter */
.image-zoom-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 5px;
    user-select: none;
    font-family: 'Didact Gothic', sans-serif;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Hide MagicZoom elements */
.mz-lens,
.mz-hint,
.mz-zoom-window,
.mz-loading {
    display: none !important;
}

.image_cont img {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="15" fill="%231a3349" opacity="0.9"/><text x="16" y="22" font-size="20" fill="white" text-anchor="middle" font-family="Arial">+</text></svg>') 16 16, pointer;
}

.image_cont img:hover {
    opacity: 0.95;
}

@media screen and (max-width: 768px) {
    .image-zoom-modal img {
        max-width: 95%;
        max-height: 85%;
    }

    .image-zoom-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .image-zoom-prev,
    .image-zoom-next {
        font-size: 35px;
        padding: 10px 15px;
    }

    .image-zoom-prev {
        left: 10px;
    }

    .image-zoom-next {
        right: 10px;
    }

    .image-zoom-counter {
        bottom: 20px;
        font-size: 16px;
        padding: 8px 16px;
    }
}

/* Полное отключение MagicZoom */
.MagicZoom,
a.MagicZoom {
    pointer-events: none !important;
}

.MagicZoom img,
a.MagicZoom img {
    pointer-events: auto !important;
}

/* Убираем все фигуры MagicZoom */
.mz-figure {
    position: static !important;
}

.mz-figure .mz-lens,
.mz-figure .mz-hint,
.mz-figure .mz-zoom-window,
.mz-figure .mz-loading {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Films Page Styles */
.films_page_wrapper {
    background: #fff;
    padding: 180px 0 80px;
    min-height: 100vh;
}

.films_container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.films_title {
    font-family: 'Didact Gothic', sans-serif;
    font-size: 48px;
    color: #1a3349;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 400;
    letter-spacing: 2px;
}

/* Old YouTube Video Section */
.old_video_section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.old_video_container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.old_video_container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Films Tabs */
.films_tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.film_tab {
    font-family: 'Didact Gothic', sans-serif;
    font-size: 16px;
    color: #1a3349;
    padding: 12px 30px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
    border-bottom: 3px solid transparent;
    font-weight: 400;
}

.film_tab:hover {
    color: #1a3349;
    opacity: 0.7;
}

.film_tab.active {
    color: #1a3349;
    border-bottom: 3px solid #1a3349;
    font-weight: 500;
}

/* Tab Content */
.project_videos_tab {
    display: none;
    animation: fadeIn 0.5s;
}

.project_videos_tab.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.videos_grid {
    column-count: 3;
    column-gap: 25px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.project_videos_tab {
    width: 100%;
}

.project_video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background: #1a3349;
    margin-bottom: 25px;
    break-inside: avoid;
    display: block;
}

.project_video:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project_video::-webkit-media-controls-panel {
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
}

/* Адаптация для больших экранов */
@media screen and (min-width: 1600px) {
    .videos_grid {
        column-count: 3;
    }
}

@media screen and (max-width: 1240px) {
    .videos_grid {
        column-count: 2;
        column-gap: 20px;
    }

    .project_video {
        margin-bottom: 20px;
    }

    .films_title {
        font-size: 40px;
    }

    .films_page_wrapper {
        padding: 150px 0 60px;
    }
}

@media screen and (max-width: 768px) {
    .films_page_wrapper {
        padding: 130px 0 60px;
    }

    .films_title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .old_video_section {
        margin-bottom: 40px;
    }

    .films_tabs {
        gap: 5px;
        margin-bottom: 30px;
    }

    .film_tab {
        font-size: 14px;
        padding: 10px 15px;
    }

    .videos_grid {
        column-count: 1;
        column-gap: 0;
    }

    .project_video {
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 480px) {
    .films_title {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .film_tab {
        font-size: 12px;
        padding: 8px 10px;
    }
}

/* Menu Even Distribution Fix */
.header_wrapper .container .menu_container ul {
    justify-content: space-between !important;
}

.header_wrapper .container .menu_container ul li {
    flex: 1 1 auto !important;
    width: auto !important;
}

.header_wrapper .container .menu_container ul li a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    white-space: nowrap !important;
}

/* Mobile Menu Spacing Fix */
@media screen and (max-width: 767px) {
    .header_wrapper .container .menu_container ul {
        width: 100% !important;
    }

    .header_wrapper .container .menu_container ul li a {
        padding-left: 5px !important;
        padding-right: 5px !important;
        font-size: 14px !important;
    }
}

/* Single Language Button Style - Simple */
.lang-btn {
    display: flex;
    align-items: center;
}

.lang-btn a {
    color: #fff !important;
    font-size: 16px !important;
    text-transform: uppercase;
    padding: 0 4px !important;
    text-decoration: none !important;
    transition: opacity 0.3s;
}

.lang-btn a:hover {
    opacity: 0.7;
}

