/* Плавная анимация для слайдера */
html {
    scroll-behavior: smooth;
}
* {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    margin: 0;
    padding: 0;
    background-color: rgb(35, 35, 35);
    color: #dadada;
    text-decoration: none;
    }
.osnova {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 8%;

  color: #f5f5f5;
  flex-direction: row;
}
.osnova__content {
  order: 1;                 
  flex: 0 1 45%;            
  max-width: 700px;
  margin-bottom: 350px;

}
.osnovatext{
    bottom: -25px;
    right: 20px;
    position: absolute;
    padding: 30px 35px;
}
.osnova__content h1 {
     
  font-size: 2.6rem;
  line-height: 1.14;
  margin: 0 0 18px 0;
           
}
.img_osnova_rob{
    position: relative;
    right: 250px;
}
.osnova__content p {
    
  font-size: 1.05rem;
  line-height: 1.6;
  color: #e6e6e6;
}
.osnova__image {
  order: 2;                 
  flex: 0 1 50%;            
  display: flex;
}
.osnova__image img {
  width: 1260px;        
  height: 700px;
  box-shadow: 0 32px 30px rgba(0,0,0,0.45);

  
}
/* CAP */
.container_cap {
     text-decoration: none;
}
.cap { 
  width: 100%;
  height: 60px;
  background-color: rgb(29, 29, 29);
}
.flex_cap {
   background: transparent;
    display: flex;
    flex-direction: row;
    margin-left: 200px;
}
.navigation_icon {
    background: transparent;
height: 40px;
margin-top: 10px;
}
.cap_icon_text_one {
    background: transparent;
    margin-top: 20px;
    margin-left: 10px;
    color:  rgb(114, 114, 114);;
}
.mail_icon {
      background: transparent;
height: 40px;
margin-top: 10px;
margin-left: 40px;
}
.cap_icon_text_two {
     background: transparent;
    margin-top: 20px;
    margin-left: 10px;
     color:  rgb(114, 114, 114);
}
.telephone_icon {
     background: transparent;
height: 40px;
margin-top: 10px;
margin-left: 900px;
}
.cap_icon_text_three {
     background: transparent;
    margin-top: 20px;
    margin-left: 10px;
     color:  rgb(114, 114, 114);;
}
.flex_cap_two {
    display: flex;
    flex-direction: row;
}
.logo {
     height: 80px;
margin-top: 15px;
margin-left: 200px;
}
.pages {
    display: flex;
   flex-direction: row;
   margin-left: 260px;
   margin-top: 40px;
   font-size: 25px;
}
.dropbtn {
    background: transparent;
font-size: 25px;
    border: none;
    color: rgb(221, 164, 42);
}
.dropbtn:hover {
    background-color: #dadada 0.1;
    padding: 7px 20px;
    border-radius: 4px;
    transition: 0.5s ease;
}
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.7);
    z-index: 1;
}
.dropdown-content a {
    color: rgb(114, 114, 114);
    font-size: 18px;
    padding: 12px 65px;
    text-decoration: none;
    display: block;
}
.dropdown-content a:hover {background-color: rgb(29, 29, 29);}
.dropdown:hover .dropdown-content {display: block;}
.dropdown:hover .dropbtn {background-color: transparent;}
.job_pages {
    margin-left: 65px;
  color: rgb(221, 164, 42);
    
}
.job_pages:hover {
    background-color: #dadada 0.1;
    padding: 7px 20px;
    border-radius: 4px;
    transition: 0.5s ease-in-out;
}
.contacts_pages {
    margin-left: 65px;
    color: rgb(221, 164, 42);
}
.contacts_pages:hover {
    background-color: #dadada 0.1;
    padding: 7px 20px;
    border-radius: 4px;
    transition: 0.5s ease;
}
.requisites_pages {
    margin-left: 65px;
    color: rgb(221, 164, 42);
}
.requisites_pages:hover { background-color: #dadada 0.1;
    padding: 7px 20px;
    border-radius: 4px;
    transition: 0.5s ease-in-out;
}
/* CATALOG */
.container_catalog {
    margin-top: 100px;

}
.main_text_catalog {
   font-size: 35px;
    color: rgb(221, 164, 42);
    text-align: center;
}
.flexbox_catalog {
    display: flex;
    flex-direction: row;
 justify-content: center;
 gap: 40px;
 margin-top: 40px;
}
.flex_catalog_1 {
    height: 450px;
    width: 300px;
    background-color: #303030;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s;
}
.flex_catalog_1:hover {
    transform: translateY(-5px);
}
.hidden-images {
    display: none;
}
/* Модальное окно */
.modal-overlay {
   display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 24px;
    padding: 30px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(221, 164, 42, 0.1),
        0 0 100px rgba(221, 164, 42, 0.05);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
    overflow: hidden;
}
.modal-overlay.active .modal-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(221, 164, 42, 0.1);
    border: 1px solid rgba(221, 164, 42, 0.3);
    border-radius: 50%;
    color: rgb(221, 164, 42);
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.modal-close:hover {
     background: rgba(221, 164, 42, 0.2);
    transform: rotate(90deg);
    border-color: rgb(221, 164, 42);
    box-shadow: 0 0 20px rgba(221, 164, 42, 0.3);
}

.modal-carousel {
      display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    position: relative;
}

.modal-image-container {
   flex: 1;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-main-image {
   width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.carousel-arrow {
    background: linear-gradient(145deg, rgba(221, 164, 42, 0.1), rgba(221, 164, 42, 0.05));
    border: 1px solid rgba(221, 164, 42, 0.3);
    color: rgb(221, 164, 42);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.carousel-arrow:hover {
      background: linear-gradient(145deg, rgba(221, 164, 42, 0.2), rgba(221, 164, 42, 0.1));
    border-color: rgb(221, 164, 42);
    transform: scale(1.1);
    box-shadow: 
        0 0 30px rgba(221, 164, 42, 0.3),
        inset 0 0 20px rgba(221, 164, 42, 0.1);
}
.carousel-arrow:active {
    transform: scale(0.95);
}
.image-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    font-family: 'Arial', sans-serif;
}
.counter-dots {
    display: flex;
    gap: 8px;
    margin: 0 15px;
}
.counter-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.counter-dot.active {
    background: rgb(221, 164, 42);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(221, 164, 42, 0.5);
}
.current-index, .total-images {
    color: rgb(221, 164, 42);
    font-size: 18px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}
/* Анимации */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.image-slide {
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Эффект наведения на карточку */
.flex_catalog_1 {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.flex_catalog_1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgb(221, 164, 42), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.flex_catalog_1:hover::before {
    transform: translateX(100%);
}

.flex_catalog_1:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(221, 164, 42, 0.2);
}

.flex_catalog_1:hover .img_catalog_0_0 {
    transform: scale(1.05);
}

.img_catalog_0_0 {
    transition: transform 0.5s ease;
}

/* Индикатор загрузки */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(221, 164, 42, 0.2);
    border-top-color: rgb(221, 164, 42);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }
    
    .modal-carousel {
        flex-direction: column;
    }
    
    .modal-image-container {
        height: 350px;
        order: 1;
    }
    
    .carousel-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-arrow:hover {
        transform: translateY(-50%) scale(1.1);
    }
}

/* Скрытые изображения */
.hidden-images {
    display: none;
}
.image-counter {
    text-align: center;
    color: rgb(221, 164, 42);
    font-size: 20px;
    margin-top: 15px;
    font-family: sans-serif;
}

/* Анимация для смены изображений */
.fade-in {
    animation: fadeIn 0.5s;
}

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

.img_catalog {
    background-color: transparent;
    margin-left: 25px;
    height: 250px;
    width: 250px;
    border-radius: 20px;
    margin-top: 25px;
}
.img_catalog_0{
    background-color: transparent;
    margin-left: 25px;
    height: 250px;
    border-radius: 20px;
    margin-top: 25px;
    width: 250px; 
}
.img_catalog_0_0{
    background-color: transparent;
    margin-left: 25px;
    height: 250px;
    border-radius: 20px;
    margin-top: 25px;
    width: 250px; 
}
.img_catalog_2 {
    background-color: transparent;
    margin-left: 45px;
    height: 250px;
    border-radius: 20px;
    margin-top: 25px;
}
.img_catalog_2_2 {
    background-color: transparent;
    margin-left: 25px;
    height: 250px;
    border-radius: 20px;
    margin-top: 25px;
    width: 250px;
}
.text_catalog_1 {
    margin-top: 20px;
 background-color: transparent;
 text-align: center;
 color: rgb(221, 164, 42);
 font-size: 25px;
}
.text_catalog_2 {
 background-color: transparent;
 text-align: center;
 color: gray;
}
.but {
    background-color: transparent;
    margin-top: 30px;
    margin-left: 75px;
}
.button_catalog {

padding: 15px 25px;
border-radius: 10px;
}
.button_catalog:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    padding: 18px 28px;
}
/* ADVANT */
.container_advant {
justify-items: center;
margin-right: 150px;
margin-top: 100px;
}
.advant_text_1 {
font-size: 30px;
margin-left: 130px;
margin-bottom: 60px;
}
.advant_one {
    display: flex;
    flex-direction: row;
}
.advant_icon {
    height: 70px;
    width: 70px;
}
.advant_1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 150px;
}
.advant_text {
    font-size: 17px;
     padding-top: 15px;
}
.container_advant_two{
    margin-top: 100px;
     margin-right: 150px;
}
.advant_text_2 {
    font-size: 30px;
    margin-top: 100px;
    margin-bottom: 70px;
    margin-left: 280px;
}
.advant_two{
    display: flex;
    flex-direction: row;
   
}
.box_advant {
    position: relative;
    display: inline-block;
   margin-left: 280px;
}

.circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgb(221, 164, 42);
    position: relative;
    z-index: 2; 
    text-align: center;
    font-size: 20px;
    color: rgb(35, 35, 35);
}

.line {
    position: absolute;
    top: 50%;
    left: -0px; 
    right: -280px; 
    height: 1px;
    background-color: #afadad;
    transform: translateY(-50%);
    z-index: 1; 
}
.text_advant_two_1{
    
    display: flex;
    flex-direction: row;
  padding-top: 40px;
    font-size: 18px;
    margin-left: 280px;
    justify-content: space-between;
    
}
.text_advant_two_2 {
       display: flex;
    flex-direction: row;
    padding-top: 10px;
    margin-left: 280px;
    justify-content: space-between;
}
.text_2 {
    color: #afadad;
    font-size: 13px;
    opacity: 0.6;
}
/* REQUISITES AND CONTACTS */
.flexbox_req_con {
    display: flex;
    flex-direction: row;
        margin-top: 150px;
        gap: 300px;
        margin-left: 370px;
}
.main_text_requisites {
     font-size: 35px;
    color: rgb(221, 164, 42);
    text-align: center;
}
.text_requisites_1 {
    color: #868484;
    opacity: 0.6;
    text-align: center;
    margin-top: 80px;
}
.flex_requisites {
    margin-top: 50px;
    display: flex;
    flex-direction: row;
    gap: 200px;
    justify-content: center;
}
.text_requisites_2 {
    color: #868484;
    opacity: 0.6;
}
.text_requisites_3 {
    color: #868484;
    opacity: 0.6;
}
.contacts_text_1 {
    margin-left: 35px;
    margin-top: 120px;
    color: #868484;
    opacity: 0.6;
}
.contacts_text_2 {
    margin-left: 35px;
    margin-top: 50px;
    color: #868484;
    opacity: 0.6;
}
/* FOOTER */
.footer {
    margin-top: 100px;
      width: 100%;
  height: 100px;
  background-color: rgb(29, 29, 29);
  display: flex;
  justify-content: center;
}
.footer_container {
     background-color: rgb(29, 29, 29);
     display: flex;
     gap: 250px;
     color:  rgb(114, 114, 114);
}

.flex_footer_1 {
    background-color: transparent;
display: flex;
 flex-direction: row;
 margin-top: 30px;
}
.text_flex_footer_1 {
    background-color: transparent;
    margin-left: 10px;
    color:  rgb(114, 114, 114);
}
.icon_tick {
     background-color: transparent;
    height: 40px;
}
.flex_footer_2 {
    background-color: transparent;
    margin-top: 30px;
    display: flex;
}
.text_flex_footer_2 {
    background-color: transparent;
    margin-top: 9px;
    margin-left: 10px;
    color:  rgb(114, 114, 114);
}
.icon_vk {
    background-color: transparent;
    height: 40px;
}
.flex_footer_3 {
    background-color: transparent;
    margin-top: 25px;
    display: flex;
     justify-content: center;
      color:  rgb(114, 114, 114);
}
.icon_commun {
     background-color: transparent;
    height: 55px;
    margin-right: 10px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 2fr));
    grid-auto-rows: 200px;
    grid-gap: 15px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-item:hover img {
    transform: scale(1.03);
}

/* Разные размеры для фотографий */
.photo-item:nth-child(3n+1) {
    grid-row: span 2;
}

.photo-item:nth-child(5n+2) {
    grid-row: span 3;
}

.photo-item:nth-child(7n+3) {
    grid-column: span 2;
}

.photo-item:nth-child(4n+4) {
    grid-row: span 2;
}

.photo-item:nth-child(6n+5) {
    grid-row: span 3;
}

/* Простые подписи */
.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 10px;
    font-size: 12px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-caption {
    transform: translateY(0);
}

/* Медиазапросы для адаптивности */
@media (max-width: 1024px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        grid-auto-rows: 180px;
        grid-gap: 12px;
    }
}

@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        grid-auto-rows: 150px;
        grid-gap: 10px;
        padding: 15px;
    }
    
    /* На мобильных упрощаем сетку */
    .photo-item:nth-child(n) {
        grid-row: span 1;
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 120px;
    }
}
/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 90%;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

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

@keyframes zoomIn {
    from { transform: translateY(-50%) scale(0.8); }
    to { transform: translateY(-50%) scale(1); }
}

.modal-content {
    animation: zoomIn 0.3s ease;
}

/* Кнопка закрытия */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ccc;
}

/* Навигационные стрелки */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    padding: 15px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-arrow:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Подпись к изображению */
.caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    background: rgba(0,0,0,0.7);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    max-width: 80%;
}

/* Увеличиваем курсор на изображениях галереи */
.photo-item {
    cursor: pointer;
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 80%;
    }
    
    .close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
        padding: 10px;
    }
    
    .prev {
        left: 10px;
    }
    
    .next {
        right: 10px;
    }
    
    .caption {
        font-size: 14px;
        bottom: 10px;
    }
}
.primers{
    font-size: 50px;
    text-align: center;
}