@import url(https://db.onlinewebfonts.com/c/551bb9882a00ffae4e5ebf66fa46326e?family=Ortica+Light);
@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; /* Высота футера */
}
html {
scroll-behavior: smooth
}
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.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{
    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;
}
.content{
    min-height: calc(100vh - var(--footer-height));
}
.mainwork {
    display: grid;
    grid-template-columns: 1fr 1.5fr; 
    padding: 3%;
    gap: 40px;
    align-items: start;
    margin-top: 5%;
    max-height: fit-content;
    height: auto;
  
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  align-content: start;
  animation: slideUp 1s ease-out forwards;
}

.gallery img {
  width: 100%;
  max-height:400px ;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px; 
  display: block;
  transition: transform 0.3s ease;
  animation-name: none !important;
}

.gallery img:hover {
  transform: scale(1.03); /* Эффект при наведении */
}
.mainwork_left {
  display: flex;
  flex-direction: column;
  /* ВАЖНО: заставляем блок занимать только ту высоту, которую дает Grid от соседа */
  height: 0;
  min-height: 100%;
} 
.why_us{ 
    line-height: 1.2;
    margin: 0;
    margin-left: 2%;
    animation: slideUp 1s ease-out forwards;
    opacity: 0;  
    margin-bottom: 30px;
    letter-spacing: 5px;
}
.description_why_us {
    /* ... ваши остальные стили (margin, line-height и т.д.) ... */
    text-align: justify;
    overflow-y: scroll; /* Скролл есть ВСЕГДА, поэтому текст не прыгает */
    padding-right: 15px; 
}

/* Скрываем полосу для Chrome/Safari через прозрачный цвет */
.description_why_us::-webkit-scrollbar {
    width: 6px;
}

.description_why_us::-webkit-scrollbar-thumb {
    background-color: transparent; /* Невидимый при обычном состоянии */
    border-radius: 10px;
}

/* При наведении делаем полосу видимой */
.description_why_us:hover::-webkit-scrollbar-thumb {
    background-color: #ccc; /* Проявляется при наведении */
}

/* Для Firefox (аналогичная логика) */
.description_why_us {
    scrollbar-color: transparent transparent; 
}

.description_why_us:hover {
    scrollbar-color: #ccc transparent;
}
.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 и телефон */
}



@keyframes slideUp {
  from {
    transform: translateY(50px); /* Начинает ниже на 50px */
    opacity: 0;
  }
  to {
    transform: translateY(0); /* Заканчивает на своем месте */
    opacity: 1; /* Полностью видимый */
  }
}
[data-lang="why_us_main"]{
    font-size: 5rem;
    font-family: 'Ortica Light', serif;
    font-weight: 400;
    line-height: 1.2;
}
[data-lang="why_us_description"]{
    padding-top: 5%; 
    margin-left: 2%;
    font-size: 1.5rem;
    font-family: 'Inter', sans-serif;
    white-space: pre-wrap;
    font-weight: 400;
}
@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  (min-width: 1360px) and (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: 481px) and (max-width:  1360px) {
    .navbar{
        display: none;
    }
    .mainwork {
        /* Переключаем сетку в одну колонку */
        grid-template-columns: 1fr; 
        height: auto;
        max-height: none;
        gap: 20px; /* Уменьшаем отступ между текстом и галереей */
    }

    .mainwork_left {
        /* Сбрасываем хаки с высотой, чтобы блок растягивался по тексту */
        height: auto;
        min-height: auto;
    }

    .description_why_us {
        /* Убираем прокрутку, так как на мобильных текст должен идти сплошным полотном */
        overflow-y: visible; 
        max-height: none; 
        padding-right: 0;
        text-align: left; /* На телефонах justify часто делает некрасивые дыры */
        text-align: justify;
    }

    .gallery {
        /* Делаем сетку картинок 2 в ряд или 1 в ряд для удобства */
        grid-template-columns: repeat(2, 1fr); 
        animation: none; /* Можно убрать анимацию для ускорения загрузки на мобайле */
    }
     
}
@media  (max-width:  481px) {
    .navbar{
        display: none;
    }
    .mainwork {
        /* Переключаем сетку в одну колонку */
        grid-template-columns: 1fr; 
        height: auto;
        max-height: none;
        gap: 20px; /* Уменьшаем отступ между текстом и галереей */
    }

    .mainwork_left {
        /* Сбрасываем хаки с высотой, чтобы блок растягивался по тексту */
        height: auto;
        min-height: auto;
    }

    .description_why_us {
        /* Убираем прокрутку, так как на мобильных текст должен идти сплошным полотном */
        overflow-y: visible; 
        max-height: none; 
        padding-right: 0;
        text-align: left; /* На телефонах justify часто делает некрасивые дыры */
        text-align: justify;
    }

    .gallery {
        /* Делаем сетку картинок 2 в ряд или 1 в ряд для удобства */
        grid-template-columns: repeat(1, 1fr); 
        animation: none; /* Можно убрать анимацию для ускорения загрузки на мобайле */
    }
     
}

.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) {
    .navbar {
        display: none;
    }
    .mobile-nav-bar {
        display: flex;
    }
.mainwork_left .description_why_us p{
    width: 90%;
} 

}
@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: 450px) {
    .gallery-grid { grid-template-columns: repeat(1, 1fr); }  
    * {
    box-sizing: border-box;
}
header,
main,
.mainwork,.site_footer {
  width: 100%;
  max-width: 100%;
}
.mainwork_left .description_why_us p{
    font-size: 1.2rem;
    width: fit-content;
    font-weight: 400;
    line-height: 1.2;
}
.mainwork_left .why_us{
    padding-top: 5%; 
    margin-left: 2%;
    font-size: 3rem;
    font-family: 'Inter', serif;
    font-weight: 300;
    letter-spacing: 1px;
}
.description_why_us{
    text-align: left;
}
}