@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

body {
    font-family: "Playfair Display", sans-serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
    margin: 0;
    padding: 0;
    background-color: rgb(10, 10, 10);
    color: #fff;
    user-select: none;
    height: 100%;
    width: 100%;
    padding-top: 100px;
}


h1, h2, h3 {
    font-family: 'Arial', serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    width: 100%;
    background-color: rgb(0, 0, 0,0.1);
    transition: all 0.5s ease;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;

    
}

.portfolio-subtext.hidden {
    display: none;
  }

.pip {
    width: 100%;
    position: absolute;
    top: -13px;
    left: 250px;
    transform: translateY(-50%);
    animation: moveMenuIn 1s forwards;
    z-index: 101;
}

.pip {
    margin-left: 320px;
}

@keyframes moveMenuIn {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(15%);
    }
}


header {
    transition: 0.5s;
}

header.scrolled {
    background-color: rgb(10, 10, 10); /* Смените цвет на серый */
    color: #fff; /* Можно также изменить цвет текста, если нужно */
}

header.scrolled nav ul {
    display: flex;
    gap: 40px;
    margin-left: -570px;
    transition: 1s;
    
    
}

header .logo {
    font-size: 24px;
    font-weight: bold;
    transition: 0.5s;
    opacity: 1;
    transform: translateY(0);
    margin-top: 10px;
}

header.scrolled .logo {
    opacity: 0;
    transform: translateY(-30px);
}

header nav ul {
    transition: 1s;
}

header .logo {
    transition: 1s;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    transition: 1s ease-in;
}


.logo img {
    height: 52px;
    width: 57px;
    padding-left: 10px;
    padding-top: 6px;
    cursor: pointer;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin-top: 10px;
    padding-right: 55px;
    transition: opacity 1s ease;
}

nav ul li {
    position: relative;
    padding: 12px 0;
    transition: 1s;
}

header.scrolled nav ul li ul{
    margin-left: -5px;
}

nav a {
    color: #fff;
    text-decoration: none;
    position: relative;
    padding: 15px 0;
    transition: opacity 1s ease;
}

nav ul li::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: 0;
    height: 1px;
    background-color: #ffffff;
    transition: all 0.5s ease;
    transform: translateX(-50%);
}

nav ul li:hover::after {
    width: 100%;
}


.menu-item {
    position: relative;
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(20, 20, 20, 0.9);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: none;
    opacity: 0;
    transform: translateY(5px); 
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.submenu li {
    padding: 3px 10px; 
}

.submenu li a {
    color: rgb(183, 183, 183,0.6);
    text-decoration: none;
    display: block;
    font-size: 14px; 
    line-height: 1.2; 
}

.submenu li a:hover {
    color: white;
    transition: 1s;
}

.menu-item:hover .submenu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}




.gallary {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Два столбца */
    gap: 10px;
    padding: 20px;
    max-width: 1200px; 
    margin: auto;
}

.gallary img {
    width: 100%;
    gap: 10px;
    height: 750px; 
    object-fit: cover; 
    border-radius: 5px;
    transition: 0.3s;
}

.gallary img:hover{
    cursor: pointer;
    transition: 0.3s;
    filter: brightness(70%)
}


.gallary img:nth-child(2n) {
    grid-row: span 3; 
}

.gallary img:nth-child(3n) {
    grid-column: span 2; 
}

@media (max-width: 768px) {
  .gallary {
    grid-template-columns: 2fr;
    grid-auto-rows: auto;
    max-width: 1000px;
    gap:6px;
    padding: 40px;

}
}
@media (max-width: 508px) {
    .gallary {
        grid-template-columns: 2fr;
        grid-auto-rows: auto;
        max-width: 1000px;
        gap:2px;
        padding: 40px;

    }

    .gallary img {
        max-height: none;
        height: auto;
        max-width: 1000px;
    }
}
@media (max-width: 400px) {
    .gallary img {
        height: auto;
    }
}

.video-selector {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.video-selector button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #111;
    color: white;
    border: 1px solid #6d6d6dc9;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.5s;
    font-family: "Playfair Display", sans-serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
    
}

.video-selector button.active,
.video-selector button:hover {
    border-radius: 10px;
    background-color: #959595df;
    color: rgb(0, 0, 0);
    transition: 1s;
}


.video-wrapper {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    margin-bottom: 80px;
    
}

.video-frame {
    display: none;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    z-index: 10;
}

.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

footer {
    background-color: rgb(10, 10, 10);
    text-align: center;
    color: #ffffff;
    max-height: 80px; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    margin-top: 10%;

    padding-bottom: 10px;
    z-index: 3;
}

footer .social-icons {
    font-size: 15px;
    
}

footer .social-icons i {
    cursor: pointer;
    margin: 10px;
    padding-top: 20px;
    transition: transform 0.3s ease;
}

footer .social-icons i:hover {
    transform: scale(1.2);
}

footer p {
    margin-bottom: 10px; 
    font-size: 12px; 
}


.social-icons a {
  text-decoration: none;
  color:white;
}

.die{
    display: none;
}

.gallery-title {
    text-align: center;
    font-size: 32px;
    margin-top: 10px;
    margin-bottom: 30px;
    font-family: "Playfair Display", serif;
    color: #ffffff;
    letter-spacing: 1px;
}

.gallary {
    margin-bottom: 130px; /* Отступ от подвала */
}

@media (max-width: 768px) {
    .video-selector {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 30px;
        flex-wrap: wrap;
    }
}
@media (max-width: 768px) {

    

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      
      body {
        background: rgb(10,10,10);
        color: white;
        height: 100vh;
      }
      
      header{
        display: none;
    }

      .logo {
        position: fixed; 
        top: 0;
        left: 0;
        margin: 20px;
        z-index: 100;
        margin: 0;
        padding: 0;
     }

      .logo img {
        height: 62px;
        width: 67px;
      }
      
      .burger {
        width: 30px;
        height: 25px;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
      }
      
      .burger span {
        height: 3px;
        background: white;
        border-radius: 2px;
        transition: 0.4s;
      }
      
      .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
      }
      .burger.active span:nth-child(2) {
        opacity: 0;
      }
      .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
      }
      
      /* Fullscreen Menu */
      .menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.95);
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.5s ease;
        z-index: 1000;
      }
      
      .menu.open {
        transform: translateX(0);
      }
      
      .menu ul {
        list-style: none;
        text-align: center;
      }
      
      .menu ul li {
        margin: 20px 0;
      }
      
     .h1{
        font-size: 12rem;
      }

      .menu ul li a {
        color: white;
        text-decoration: none;
        font-size:25px;
        transition: color 0.3s;
      }
      

      .die{
        display: block;
      }

      .portfolio-subtext {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 5px;
      }
      
      .portfolio-subtext .ko {
        font-size: 19px;
        color: #aaa;
        text-decoration: none;
        transition: color 0.3s;

        font-size: 5spx;
      }
      
      .portfolio-subtext .ko:hover {
        color: #ff4081;
      }
      .die{
        display: block;
      }  
      
}
@media (min-width: 1500px) {
    .hero-title,
    .hero-text p {
      text-align: center;
      width: 600px;
    }
  
    .hero-squares {
      margin-left: 100px;
    }
  
    .square:first-child {
      width: 500px;
      height: 580px;
      background-size: 550px 750px;
    }
  
    .gallery {
      padding: 70px;
      gap: 40px;
    }
  
    .faq {
      max-width: 1920px;
      gap: 100px;
    }
  
    .faq img {
      width: 45%;
      height: 800px;
      margin-left: -100px;
    }
  
    .review img {
      width: 320px;
      height: 320px;
    }
  
    .review-text p {
      font-size: 18px;
    }
  
    .title {
      font-size: 52px;
      margin-left: 600px;
    }
    .ty {
      font-size: 52px;
      margin-right: 700px;
    }
  
    .quatr {
      padding-left: 180px;
    }
  
    .pip {
      margin-left: 950px;
    }
  
    .hero-content.new-hero {
      padding: 80px;
    }
    .faq {
        padding-left: 120px;
        padding-right: 120px;
      }
    
      .faq img {
        width: 40%;
        height: 950px;
      }
    
      .faq-content {
        width: 55%;
      }

      .pip{
        left: 530px;
      }
      header.scrolled nav ul {
        display: flex;
        gap: 40px;
        margin-left: -730px;
        transition: 1s;
    }
    }

    @media (min-width: 1500px) {

  
      .gallary img {
          height: 1000px; /* Увеличиваем высоту картинок */
          width: 100%; /* Картинки занимают всю ширину ячеек */
      }
  }


  @media (min-width: 2500px) {
    .hero-title,
    .hero-text p {
      text-align: center;
      width: 600px;
    }
  
    .hero-squares {
      margin-left: 100px;
    }
  
    .square:first-child {
      width: 500px;
      height: 580px;
      background-size: 550px 750px;
    }
  
    .gallery {
      padding: 70px;
      gap: 40px;
    }
  
    .faq {
      max-width: 1920px;
      gap: 100px;
    }
  
    .faq img {
      width: 45%;
      height: 800px;
      margin-left: -100px;
    }
  
    .review img {
      width: 320px;
      height: 320px;
    }
  
    .review-text p {
      font-size: 18px;
    }
  
    .title {
      font-size: 52px;
      margin-left: 600px;
    }
    .ty {
      font-size: 52px;
      margin-right: 700px;
    }
  
    .quatr {
      padding-left: 180px;
    }
  
    .pip {
      margin-left: 950px;
    }
  
    .hero-content.new-hero {
      padding: 80px;
    }
    .faq {
        padding-left: 120px;
        padding-right: 120px;
      }
    
      .faq img {
        width: 40%;
        height: 950px;
      }
    
      .faq-content {
        width: 55%;
      }

      .pip{
        left: 1130px;
      }
      header.scrolled nav ul {
        display: flex;
        gap: 40px;
        margin-left: -1030px;
        transition: 1s;
    }
    }
