@font-face {
  font-family: raintungsten_bold;
  font-weight: 700;
  src: url(./Fonts/raintungsten_medium.ttf);
}

@font-face {
  font-family: raintungsten_medium;
  font-weight: 400;
  src: url(./Fonts/raintungsten_medium.ttf);
}

@font-face {
  font-family: Open Sans Condensed;
  font-weight: 400;
  src: url(./Fonts/Opensans/OpenSans-CondLight.ttf);
}

@font-face {
  font-family: Oswald;
  font-weight: 400;
  src: url(./Fonts/oswald/oswald-e-l.woff2);
}

:root {
  --light-gray: #efefef;
  --gray: #adadad;
  --dark: #2f2f2f;
  --font-gray: #adadad;
  --font-dark: #2f2f2f;
  --size--base: 4px;
  --content-width-max: 1200px;
}

* {
    box-sizing: border-box;
  }

html {
  font-size: 4px;
}
body {
  font-size: 4rem;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}


a {
    color: inherit; /* Наследует цвет от родителя */
    text-decoration: none;
    
}

a:hover {
  color: #772924; /* цвет ссылок при наведении */
}

/* layout*/

.page__content {
  display: flex;
  flex-direction: column;
  width: 100%; 
}

/*верхнее меню навигации - оболочка*/
.nav__menu {
  display: flex;
  justify-content: right;
  align-items: center;
  margin-right: 30px;
  margin-top: 30px;
  margin-bottom: 30px;    
}

/*верхнее левое меню навигации - цвета и шрифты*/
.nav__link {
  display: flex;
  justify-content: center;
  letter-spacing: 0.2rem;
  align-items: center;
  width: 6%;
  height: 40px;
  text-align: center;
  user-select: none;
  font-family: raintungsten_medium;
  font-weight: 400;
  font-size: 5rem;
  text-decoration: none;
  color: var(--gray);
}
/*----mouseover----*/
.nav__link:hover {
  width: 6%;
  height: 40px;

  background-color: #adadad;
  color: white;
}

/*----активная кнопка меню----*/
.nav__link--active {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  width: 6%;
  height: 40px;
  letter-spacing: 0.2rem;
  font-family: raintungsten_medium;
  font-weight: 400;
  font-size: 5rem;
  color: #efefef;
  background-color: #2f2f2f;
}


.image__background {
  background-image: url(./Images/Background/header_img.png);
  background-size: cover; /* Заполняет весь блок */
  background-position: center; /* Центрирует изображение */
  background-repeat: no-repeat;
  width: 100%; 
  height: 80vh; 
  z-index: -1;
  position: absolute; /* Абсолютное позиционирование */
  top: 0%; /* Центрируем по вертикали */
  left: 0%; /* Центрируем по горизонтали */
  
}

.black__box {
/*сетка подложка*/
background-color: black;
background-image: url(./Images/Background/cells.png);
background-repeat: no-repeat;
background-size: cover;
padding: 400px;
}

.black__container_moved {
  margin-top: 69vh; /* Двигаем следующий блок вниз */
  background-color: #000; /* Чёрный фон с подложкой */
  background-image: url("./Images/Background/cells.png");
  display: grid;
  justify-items: center;
  grid-template-columns: repeat(5, 1fr); /* Пять колонок, одна не задействована */

}

.black__container {
  
  background-color: #000; /* Чёрный фон с подложкой */
  background-image: url("./Images/Background/cells.png");
  display: grid;
  justify-items: center;
  grid-template-columns: repeat(5, 1fr); /* Пять колонок, одна не задействована */

}

.item {
    text-align: left;
    color: #adadad; 
    padding: 50px;    
}

  .item img {
    object-fit: contain; /* Сохраняет пропорции изображения */
    object-fit: cover; /* Сохраняет пропорции изображения */
    width: 15vw;
    height: 30vh;
    
  }

  .item p {
    margin-top: 10px;
    margin-bottom: 100px;
    font-family: raintungsten_medium;
    font-weight: 100;
    font-size: 8rem;
  }

/* гигантский заголовок*/
.bigger__header {
    font-family: raintungsten_medium;
    font-weight: 400;
    font-size: 36rem;
    letter-spacing: 0.3rem;
    text-align: center;
}

.gallery {
  background-image: url("./Images/Background/triptih.JPG");
  background-size: cover; /* Растягивает изображение, сохраняя пропорции */
  background-position: center; /* Центрирует изображение */
  background-repeat: no-repeat; /* Избегает повторов изображения */
  
  width: 100%;
  height: 100vh; /* Растягивает блок на всю высоту экрана */
}

.gallery__item {
  color: #adadad; 
  
}

.gallery__item img {
    margin-top: 40px;
    object-fit: contain; /* Сохраняет пропорции изображения */
    object-fit: cover; /* Сохраняет пропорции изображения */
    width: 15vw;
    height: 25vh;
    
}


.gallery__item p {
    text-align: left;
    margin-top: 10px;
    margin-bottom: 100px;
    font-family: raintungsten_medium;
    font-weight: 100;
    font-size: 8rem;
}






  /*АРТ-СКЛАД*/
  .artgallery {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки */
    gap: 20px; /* Расстояние между колонками */
    padding: 20px;
    background-color: #f0f0f0;
    
  }
  .artgallery-item {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    text-align: left;
    
    
    
    

  }
  .artgallery-item img {
    object-fit: contain; /* Сохраняет пропорции изображения */
    object-fit: cover; /* Сохраняет пропорции изображения */
    position: relative; 
    display: block; 
    vertical-align: top; 
    overflow-x: hidden; 
    overflow-y: hidden; 
    width: 100%; 
    height: 450px; 
    border-top-left-radius: 2px; 
    border-top-right-radius: 2px; 
    border-bottom-right-radius: 2px; 
    border-bottom-left-radius: 2px 
}
  

  .arttext1 {
    font-family: Oswald;
    color: #1b1b1b;
    font-weight: 600;
    text-decoration: none;
    font-size: 5rem;
    padding: 10px;
  }

  .arttext2 {
    font-family: Oswald;
    color: #adadad;
    font-weight: 600;
    text-decoration: none;
    font-size: 4rem;
    padding: 10px;
  }
  /*АРТ-СКЛАД закончился*/




/* заголовок H1*/
.title__h1 {
  font-family: raintungsten_medium;
  font-weight: 400;
  font-size: 16rem;
  letter-spacing: 0.3rem;
  align-items: left;
  margin-left: 80px;
}

.backgray__content {
  display: flex;
  background-color: var(--light-gray);
  margin-left: 40px;
  margin-right: 40px;
  margin-bottom: 200px;
  
}

/*упаковка блоков изображений по 3 в ряд*/
.gallery {
    display: grid;
   /* grid-template-columns: repeat(3, 1fr);*/
   grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
   
  }

  .gallery img {
    width: 100%;
    height: auto;
      }

  
/*конец упаковки изображений по 3 в ряд*/

/*картины с подписями и цена картины*/
.card {
  display: flex;
    padding-left: 40px;
    padding-top: 40px;
    margin-right: 40px;
}

.card_content {
  display: flex;
  flex-direction: column;
}

.description__frame {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}

.description {
  font-family: Oswald;
  font-size: 5rem;
  line-height: 1.5;
  color: var(--font-gray);
  width: 250px;
  flex-direction: column;
  flex-basis: 100%;
  flex: 1;
  height: 48%;
}

.price {
  font-family: raintungsten_medium;
  font-weight: 700;
  font-size: 6rem;
  color: var(--font-dark);
}

.back__stripes {
    background-repeat: repeat; /* Повторение по вертикали */
    height: 150vh; /* Занять всю высоту экрана */
    width: 75vh;
    position: absolute;
    top: 0;
    left: -100px;
    z-index: -1;
}


.responsive-image {
    width: calc(var(--size--base) * 100); /* Ширина картинки 50% от ширины экрана */
    height: auto; /* Высота автоматически подстраивается под ширину */
}

/*стрелка вверх*/
.arrow{
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9;
  }
  .arrow a{
    height: 50px;
    width: 50px;
    text-align: center;
    background: #1b1b1b;
    display: block;
    
  }
  .arrow a span{
    color: #f2f2f2;
    font-size: 25px;
    line-height: 39px;
    cursor: pointer;
  }

  .UP__text {
    
    img {

        width: 40px;
        height: 60px;

        
      }
      
  }


  /*--------------CLUB style--------------*/

  .pic_and_tex{
    display: flex;
    flex-direction: row;
    justify-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
    

  }

.pic__club {
  display: flex;
  padding-left: 80px;
  padding-right: 40px;
  

}
.pic__club__reverse {
  display: flex;
  padding-left: 1px;
  padding-right: 40px;

}


.text_wrap{
  display: flex;
  flex-direction: column;
  
  
  padding-left: 40px;
  padding-right: 80px; 
  gap: 40px;
  
  font-family: Open Sans Condensed;
  font-size: 6rem;
  line-height:2;
  color: var(--font-dark);
  

}


.text_wrap_reverse{

  display: flex;
  flex-direction: column;
  
  padding-left: 80px;
  padding-right: 1px; 
  gap: 40px;
  
  font-family: Open Sans Condensed;
  font-size: 6rem;
  line-height:2;
  color: var(--font-dark);
  text-indent: 30px;  /* Устанавливаем отступ для первой строки */   

}

.gray_back_text {
    background-color: #efefef;
    padding: 20px;
    height: 333px;
/*размеры серого фона под текстом*/
    
 
  }



/*------------ консультации style--------------*/


.gray__container {
  
  padding-left: 40px; /* отступы от фона */
  padding-right: 80px;
  padding-top: 20px;

  display: grid;
  grid-template-columns: 1fr 1fr; /* Две колонки */
  grid-template-rows: auto auto; /* Два ряда */
  gap: 40px; /* Расстояние между элементами */
}
.gray__container_text {
  display: flex;
  padding: 40px;
  background-color: #efefef;
  font-family: Open Sans Condensed;
  font-size: 6rem;
  text-indent: 30px;  /* Устанавливаем отступ для первой строки */
  line-height:2;
  color: var(--font-dark);
  /*жестко заданная высота серого фона*/
  height: 333px;
  
}




.consulting__content{
  display: flex;
  flex-direction: column;
  margin-left: 40px;
}

/*------------css Контакты-----------------*/

.container__dark__background {
  display: block;
  background-color: var(--dark);
  background-image: url("./Images/Background/scratch.png");
  background-position: center; /* Центрирует фоновое изображение */
  background-repeat: no-repeat; /* Предотвращает повторение фонового изображения */
  
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* Три колонки */
  align-content: flex-start;
  gap: 66px; /* Расстояние между элементами */
}


/*****************/

.icon-text {
  display: flex;
  align-items: flex-start;
  fill: #d64b4b;
}

.icon-wrapper {
  display: flex;
  align-items: center;
  min-width: 50px; /* Задаёт минимальную ширину для иконок */
}

.text {
  text-align: left;
}

.text1, .text2 {
  font-family: Oswald;
  color: #adadad;
  font-weight: 200;
  text-decoration: none;
  font-size: 5rem;
  padding: 20px;
}

.text2 {
  color: #f2f2f2;
  font-weight: 400;
  font-size: 8rem;
}

.container__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Выравнивает элементы по левому краю */
  padding: 20px;
  line-height: 0.8; /* Настройка межстрочного интервала */
}



