@import url(https://db.onlinewebfonts.com/c/551bb9882a00ffae4e5ebf66fa46326e?family=Ortica+Light);
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");
@font-face {
    font-family: "Ortica Light";
    src: url("https://db.onlinewebfonts.com/t/551bb9882a00ffae4e5ebf66fa46326e.eot");
    src: url("https://db.onlinewebfonts.com/t/551bb9882a00ffae4e5ebf66fa46326e.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/551bb9882a00ffae4e5ebf66fa46326e.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/551bb9882a00ffae4e5ebf66fa46326e.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/551bb9882a00ffae4e5ebf66fa46326e.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/551bb9882a00ffae4e5ebf66fa46326e.svg#Ortica Light")format("svg");  
}



:root {
    --footer-height: 0px; /* Высота футера */
     --white: #f9f9f9;
    --black: #36383F;
    --grey: #85888C;
}

html {
scroll-behavior: smooth
}
body {
    margin: 0;
    padding: 0;

}
.ul_nav_left li, .ul_nav_right li {
    display: inline-block;
    margin: 0 15px;
}

.left_b{
    justify-self: start;
}
.center_b{
    justify-self: center;
}
.right_b{
    justify-self: end;
    display: flex;
    padding: 10px   20px;
}


.link_nav {
    text-decoration: none;
    color: black;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    transition: color 0.3s ease ,background-color 0.3s ease;
    border-radius: 15px;
}

.nav_btn{   
    justify-content: flex-end;
    border: none;
    padding: 5px 10px;
    margin: 5px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
     transition: color 0.3s ease ,background-color 0.3s ease;
     border-radius: 15px;
}
::selection {
    background: transparent;
}

  .logo_nav {
        width: 1vh;
        height: auto ; 
        max-width: 100% !important;  
    }
    .navbar a {
        padding: 10px 15px;
    }
 .ul_nav_left a:hover, .ul_nav_right a:hover ,.nav_btn:hover {
    background-color: #ca151d;  
    border-radius: 15px;
    color: white;
    transition: color 0.3s ease ,background-color 0.3s ease;
 }
 .ul_nav_right a:hover {
    background-color: #ca151d;  
    border-radius: 15px;
    color: white;
    transition: color 0.3s ease ,background-color 0.3s ease;
 }
.navbar{
    white-space: nowrap;
    position: sticky;
    top: 0;
    list-style: none;
    border-radius: 0 0 25px 25px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin: 0 auto;
    height: auto;
    background-color: #ededed;
     z-index: 1000   ;
    width: 90%;
    box-sizing: border-box;

}
.nav_btn.header__btn__active{
    background-color: #ca151d;  
    border-radius: 15px;
    color: white;
    transition: color 0.3s ease ,background-color 0.3s ease;
}

.lang-trigger {
  display: none; /* Прячем кнопку меню */
}
.lang-trigger   {
    animation-name: none !important;
}
.mainwork {
    display: flex;
    flex-direction: column;
    padding:  0 5% 10% 6%;
    overflow: hidden; 
}

.mainwork_right {
  width: 100%; /* Фиксированная ширина для правой колонки */

} 
.about_us{ 
    
    margin: 0;
    padding: 2%;
    animation: slideUp 1s ease-out forwards;
    opacity: 0;  
    
}
.description_about_us{ 
    text-align: justify;
    margin: 0;
    animation: slideUp 1s ease-out forwards;
    opacity: 0;  
}
.video-section {
   position: relative;
   width: 100%;
   overflow: hidden;
   border-radius: 0; /* если нужен ровный край */
   justify-content: center;
   padding-bottom: 5%;
   padding-top: 8%;
}
.video-section video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.site_footer {
    flex-shrink: 0;
    background-color: #333333; /* Тот самый темно-серый цвет */
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    height: auto;
    padding: 3% 2% 1% 2%;
    bottom: 0;
}
.footer-top {
    text-align: center;
    
}
.footer-top h1 {
    font-size: 3rem;
    font-weight: 300;
}
.footer-bottom {
  display: flex;
  justify-content: space-between; /* Распределяет колонки по краям */
  align-items: flex-end;         /* Прижимает текст к нижней линии */
  text-align: center;            /* Центрирует текст внутри колонок */
  font-size: 1.5rem;
}
.footer-column {
  flex: 1; /* Дает всем колонкам равную ширину, чтобы центральная была точно посередине */
}

.footer-column.left {
  text-align: left;
}

.footer-column.right {
  text-align: right;
}
.footer-column.right a {
  text-decoration: none;
  color: #ffffff;
}
.footer-column.right a:hover {
  color: #ca151d;
}
.footer-column.center {
  text-align: center; /* Центрирует e-mail и телефон */
}
.content{
    min-height: calc(100vh - var(--footer-height));
}
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px; /* Этот отступ должен совпадать с отступом в вашем хедере */
}

.projects-title {
  font-size: 42px;
  font-weight: 300;
  margin: 40px 0;
}

/* Сетка галереи (4 колонки) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 24px; /* Расстояние между карточками */
  padding:7%;
}

/* Сама карточка (эффект рамочки) */
.gallery-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background-color: #f5f5f5; /* Цвет фона рамочки */
  border-radius: 24px;       /* Внешнее закругление карточки */
  padding: 12px;             /* Отступ от края до картинки (толщина рамочки) */
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px); /* Эффект при наведении */
}

/* Контейнер для картинки внутри карточки */
.image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;       /* Делает картинку квадратной, можно менять на 4/3 */
  overflow: hidden;
  border-radius: 18px;       /* Закругление самой картинки (чуть меньше внешнего) */
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* Чтобы фото не растягивалось */
  display: block;
}

/* Стили текста под картинкой */
.item-info {
  padding: 12px 4px 4px 4px;
}

.info-row {
  display: flex;
  justify-content: space-between; /* Название слева, год справа */
  align-items: baseline;
  margin-bottom: 4px;
}

.title {
  font-family: 'Ortica Light', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #000;
}

.year {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #666;
}

.subtitle {
  margin: 0;
  font-size: 14px;
  color: #888;
}
#proj{
    padding:0 0 2% 8%;
    width: 90%;
}
@keyframes slideUp {
  from {
    transform: translateY(50px); /* Начинает ниже на 50px */
    opacity: 0;
  }
  to {
    transform: translateY(0); /* Заканчивает на своем месте */
    opacity: 1; /* Полностью видимый */
  }
}
[data-lang="about_us_main"]{
    font-size: 5rem;
    font-family: 'Ortica Light', sans-serif;
    font-weight: 400;
}
[data-lang="about_us_description"]{
    padding-top: 5%; 
    margin-left: 2%;
    font-size: 1.5rem;
    font-family: 'Inter', sans-serif;
    white-space: pre-wrap;
    font-weight: 400;
    width: 45%;
}
[data-lang="projects_title"]{
    font-size: 5rem;
    font-family: 'Ortica Light', sans-serif;
    font-weight: 300;
}



@media   (min-width: 1921px) {
    .lang-wrapper {
    display: none;
  }
    .logo_nav {
        width: 10vh ;
        height: auto ;
    }
    
}
@media  (min-width: 1635px) and (max-width: 1920px) {
   .lang-wrapper {
    display: none;
  }
     .logo_nav {
        width: 10vh ;
        height: auto ;
    }
}
@media   (max-width: 1635px) {

 .nav_btn{
    display: none;
}
        .lang-wrapper {
    position: relative;
    margin-top: 3%;
    padding: 5px;
  }

  .lang-trigger {
    display: block; /* Показываем кнопку-переключатель */
    padding: 5px 15px;
    background: #c00; /* Красный, как CAT на скриншоте */
    font-family: 'Inter', sans-serif;
    color: white;
    border-radius: 20px;
    border: none;
  }

  .lang-list {
    display: none; /* Прячем основной список */
    position: absolute;
    top: 40px; /* Располагаем под кнопкой */
    background: white;
    flex-direction: column; /* Выстраиваем языки в столбик */
    border-radius: 2px;
    overflow: hidden;
    
  }
  .lang-wrapper:hover .lang-list {
    display: flex;
  }

  .lang-item {
    padding: 10px ;
    text-decoration: none;
    color: #000000;
    transition: color 0.3s ease ,background-color 0.3s ease;
  }

  .lang-item:hover {
    background: #ca151d;
    color: white;
    transition: color 0.3s ease ,background-color 0.3s ease;
  }
    .logo_nav {
        width: 10vh ;
        height: auto ;
    }
    .navigation {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
      .logo_nav {
        width: 10vh ;
        height: auto ;
    }
    
}
@media  (min-width: 1360px) {

  .video-section video {
    width: 90%;
    margin: 0 auto;
  }
}
@media   (max-width:  1360px) {

    .navbar #cont{
        display: none !important;
    }
    .mainwork{
    display: flex;
    flex-direction: column;
    width: 85%;
    }
    [data-lang="about_us_description"]{
    width: fit-content;
}
.logo_nav {
        width: 10vh ;
        height: auto ;
    }
}
@media (max-width: 992px) {
.gallery-grid { grid-template-columns: repeat(2, 1fr); }  
.footer-bottom {
  display: flex;
  flex-direction: column; 
  justify-content: center; /* Центрирование по вертикали */
  align-items: center;    /* Центрирование по горизонтали */
  text-align: center;
}
.footer-column.left {
  text-align: center;
}

.footer-column.right {
  text-align: center;
}
}




@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
.hidden-trigger {
    display: none;
}
.mobile-nav-bar {
    display: none; /* Прячем на десктопе */
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
    background-color: #ededed;
}

.burger-label {
    border: 1px solid #000;
    border-radius: 4px;
    font-size: 1.5rem;
    padding: 4px 10px;
    cursor: pointer;
    user-select: none;
}

/* --- МОБИЛЬНОЕ МЕНЮ (image_a0b6e3.png) --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* Темно-серый фон */
    z-index: 1000;
    display: none; /* Скрыто, пока чекбокс не нажат */
    flex-direction: column;
}

/* Логика открытия меню через CSS */
#menu-toggle:checked ~ .mobile-menu-overlay {
    display: flex;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    padding: 20px 25px;
    align-items: center;
}

.side-logo {
    color: white;
    width: 10vh;
    font-weight: bold;
}

.close-label {
    color: rgb(87, 87, 87);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-links a, .dropdown-label {
    padding: 22px 25px;
    color: #4f5258 ;
    text-decoration: none;
    font-size: 2rem;
    border-bottom: 1px solid #4f5258;
    display: block;
}

/* --- ВЫПАДАЮЩИЙ СПИСОК CONTACT --- */
.dropdown-content {
    background-color: #ffffff; /* Белый фон как на референсе */
    display: none;
    flex-direction: column;
    text-align: center;
    padding: 0 0 2% 0;
}
.dropdown-content button {
  font-family: 'inter', sans-serif;
  font-size: 1.5rem;
}
/* Логика открытия подменю Contact */
#contact-toggle:checked ~ .dropdown-content {
    display: flex;
}



/* --- АДАПТИВНОСТЬ (Переключение блоков) --- */
@media (max-width: 1360px) {
  .mainwork{
    width: 95%;
  }
    .navbar {
        display: none;
    }
    .mobile-nav-bar {
        display: flex;
    }
}
@media (max-width: 440px) {
    * {
    box-sizing: border-box;
}
    .mainwork_right p {
    padding-top: 5%; 
    margin-left: 0%;
    font-size: 1.2rem;

    white-space: pre-wrap;
    font-weight: 400;
    width:100%;
}
#proj{
    font-size: 3rem;

    font-weight: 300;
}
.about_us{
    font-size: 3rem;
    font-weight: 400;
}
.item-row {
  padding-right: 10%;
}

}