
*{
  font-family: 'Verdana';
  box-sizing: border-box;
  scroll-behavior: smooth;
}
:root{
  --main-color: #1D1E1E; 
}


/*Главная страница с видео*/
#intro {
  display: block;
  height: 100vh;
  overflow: hidden; 
  background-color: #1D1E1E;
}
#intro img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(50%);
}
.intro-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 21px;
  color: white;
}


/*панель регистрации*/
.prompt{
  display: flex;
  justify-content: right;
  left: 0;
  margin-right: 30px;
  margin-left: 30px;
  margin-top: 20px; 
  cursor: pointer;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); 
  backdrop-filter: blur(7px);
  z-index: 100; 
  display: none; 
}
.registration {
  display: none; 
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow:  0 10px 20px 0  rgba(117, 116, 116, 0.484);
  z-index: 100; 
  transition: all 0.5s ease-in-out;
  transform-origin: center;
}
.registration:hover, .captcha_container_all:hover{
  transform: translate(-50%, -50%) scale(1.1);
}
.registration label {
  display: block;
  margin-bottom: 5px;
}
.registration input[type="text"],
.registration input[type="password"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-sizing: border-box;
}
.registration input[type="submit"] {
  background-color: #000000;
  color: white;
  padding: 10px 20px;
  size: 130px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}


/*Капча*/
.captcha_container_all {
  display: none; 
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #f9f9f9; 
  padding: 40px;
  border-radius: 15px;
  box-shadow:  0 15px 25px rgba(117, 116, 116, 0.5);
  z-index: 100; 
  transition: all 0.5s ease-in-out;
  font-size: 1.3rem; 
  text-align: center;
}
.captcha {
  font-weight: bold;
  font-size: 2.2rem; 
  margin-bottom: 20px;
  color: #333; 
}
#captcha-input{
  width: 80%; 
  padding: 15px; 
  border: 2px solid #000000; 
  border-radius: 5px; 
  font-size: 1.5rem;
}
.error {
  color: red;
  margin-bottom: 10px;
}
.captcha-container { 
  margin-bottom: 15px;
}



/*верхушка сайта*/
.head {
  overflow: hidden;
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: right;
  z-index: 100;
  backdrop-filter: blur(40px);
  padding-bottom: 12px;
  margin-right: 0;
}
.head a{
  color: rgb(255, 255, 255);
  font-size: 27px;
  position: relative;
  text-decoration: none;
}
.head .navi{
  text-align: center;
  padding-top: 35px; 
  margin-right: 15vw;
}
.head a{
  padding: 20px 15px;
}
.head a::after{
  content: '';
  position: absolute;
  bottom: -2px; 
  left: 0; 
  width: 0; 
  height: 2px; 
  background-color: #e4e4e4; 
  transition: width 0.4s ease-in-out; 
}
.head a:hover::after{
  width: 100%; 
  left: 0; 
}
.logoi {
  position: static;
  float: left;
  margin-right: 30px;
  margin-top: 10px;
  width: 85px;
  height: auto;
}
.user-info{
  display: flex;
  align-items: center;
  margin-right: 20px;
  font-size: 20px;
} 
.user-photo{
  size: 10vw;
}
.user-name{
  color:white;
}


body{
  margin: 0;
  width: 100%;
}
address {
  padding-top: 80px;
  display: flex;
  justify-content: right;
  flex-direction: column;
}

.between{
  background-color: var(--main-color);
  width: 100%;
  height: 20px;
  display: flex;
  box-shadow: 0px -20px 20px 14px var(--main-color);
  z-index: 300;
  position: absolute;
}

/*Статьи*/
main {
  justify-content: center;
  align-items: center;
  flex:1;
}
header{
  justify-content: center;
  display:flex;
  flex-direction: column;
  align-items: center;
}
article {
  background-color: var(--main-color);
  display: flex;
  height: 100vh;
  flex-wrap: wrap;
  position: relative; 
  justify-content: center; 
  align-items: center; 
}
.article_head {
  font-size: 40px;
  color: white;
  position: absolute; 
  top: 20px; 
  left: 20px;  
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
.articles {
  position: relative;
  width: 75%; 
  height: 72vh; 
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center; 
  align-items: center; 
  overflow: hidden;
}
.articles .slide{
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.articles .item {
  width:200px;
  height: 300px;
  position:absolute;
  top: 50%;
  transform: translate(0, -50%);
  box-shadow: 0 30px 50px #151515;
  background-position: 50% 50%;
  background-size: cover;
  transition: 0.5s;
  z-index: 1;
}
.item:hover {
  transform: scale(1.05) translate(0, -50%); 
  transition: transform 0.4s ease-in-out; 
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); 
}
.slide .item:nth-child(1),
.slide .item:nth-child(2){
  top: 0;
  left: 0;
  transform: translate(0, 0);
  border-radius: 0;
  width: 100%;
  height: 100%;
}
.slide .item:nth-child(3){
  left: 50%;
}
.slide .item:nth-child(4){
  left: calc(50% + 220px);
}
.slide .item:nth-child(5){
  left: calc(50% + 440px);
}
/* here n = 0, 1, 2, 3,... */
.slide .item:nth-child(n + 6){
  left: calc(50% + 660px);
  opacity: 0;
}
.item .content{
  position: absolute;
  top: 50%;
  left: 50px;
  width: 300px;
  text-align: left;
  color: #eee;
  transform: translate(0, -50%);
  font-family: system-ui;
  display: none;
}
  .content button:hover {
      color: #FFFFFF; 
      background-color: #1f1f1e; 
  }
.slide .item:nth-child(2) .content{
  display: block;
}
.content .name {
  font-size: 2vw;
  text-transform: uppercase;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
.content .des {
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 16px;
}
.content button {
  color: #fff;
  background-color: transparent;
  border: 1px solid #fff;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}
@keyframes animate {
  from{
      opacity: 0;
      transform: translate(0, 100px);
      filter: blur(33px);
  }

  to{
      opacity: 1;
      transform: translate(0);
      filter: blur(0);
  }
}
.button {
  width: 100%;
  text-align: center;
  position: absolute;
  bottom: 20px;
  z-index: 100;
}

.button .prev, 
.button .next {
  width: 40px;
  height: 40px;
  background-color: #000; /* Цвет кнопки */
  border: none;
  cursor: pointer;
  position: relative;
  outline: none;
  transition: transform 0.3s ease;
  border-radius: 50%; /* Для округлой формы */
}

/* Стрелка "Влево" */
.button .prev::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 15px;
  height: 15px;
  border-left: 3px solid white; /* Цвет стрелки */
  border-bottom: 3px solid white;
}

/* Стрелка "Вправо" */
.button .next::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-135deg); 
  width: 15px;
  height: 15px;
  border-left: 3px solid white; /* Цвет стрелки */
  border-bottom: 3px solid white;
}

/* Эффект при наведении */
.button .prev:hover, 
.button .next:hover {
  background-color: #333; /* Цвет кнопки при наведении */
  transform: scale(1.1); /* Увеличение при наведении */
}





/*Футер*/
.footer {
  background-color: #3d3f3f;
  color: white;
  height: auto; 
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr; 
  grid-gap: 20px; 
  align-items: start; 
  padding: 20px;
  text-align: center; 
}
.footer-container {
  display: grid;
  grid-template-columns:350px auto auto; 
  grid-gap: 50px;
  justify-content: center; 
  margin: 20px auto; 
}
.footer_about_us,
.footer_quick_links,
.social-buttons,
.contacts {
  text-align: left; 
}
.footer_quick_links ul {
  list-style: none;
  padding: 0;
}
.footer_quick_links li {
  margin-bottom: 10px;
}
.social-buttons {
  display: flex;
  margin-top: 20px;
  margin-left: -10px;
  position: relative;
  z-index: 2;
  flex-direction:column;
  align-items: baseline;
}
.btn {
  display: inline-block;
  margin: 0 10px;
  text-decoration: none;
  color: white;
  padding: 10px 20px 10px 20px;
  margin-bottom: 20px;
  border-radius: 30px;
  font-size: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
  position: relative; 
  text-align: center;
}
.facebook::before,
.twitter::before,
.instagram::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.facebook::before {
  background-image: linear-gradient(to bottom, #4b69ad, #3b5998);
}
.twitter::before {
  background-image: linear-gradient(to bottom, #58a4f0, #1da1f2);
}
.instagram::before {
  background-image: linear-gradient(to bottom, #f3b23e, #e1306c);
}
.btn:hover::before {
  opacity: 1;
}
.btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.footer a{
  color: white;
}


@media (min-width: 1024px) {
  .head a{
    font-size: 22px;
  }
  .intro-text{
    font-size: 16px;
  }
  .articles {
    width: 70%;
    height: 70vh;
  }

  .articles .item {
    width: 200px;
    height: 300px;
    left: 10px;
  }
  .content {
    width: 300px;
  }
}



@media (min-width: 768px) and (max-width: 1024px) {
  html{
    width: 100%;
    
  }
  .intro-text{
    font-size: 15px;
  }
  .head .navi{
    margin-right: 0px;
  }
  .articles {
    width: 90%;
  }

  .article_head {
    font-size: 30px;
    top: 10px;
  }
  .item .content {
    width: 250px;
  }

  .footer-container{
    grid-template-columns: 2fr;
  }
}

@media (max-width: 740px){
  .articles .item {
    width:0%;
    height: 0%;
  }
  
}


@media (max-width: 768px) {
  .intro-text{
    font-size: 13px;
  }
  .head {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 10px;
    margin-right: 0;
  }
  .logoi {
    width: 70px;
    margin-top: 5px;
    margin-right: 0px;
  }
  .navi {
    margin-right: 0;
    text-align: center;
    padding-top: 15px;
  }
  .head .navi{
    margin-right: 0px;
  }
  .head a {
    padding: 10px 12px;
    font-size: 20px;
  }
  #user-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
  }
  .user-info {
    font-size: 18px;
  }


  .article_head {
    font-size: 32px; 
  }
  .button .prev, 
  .button .next {
    width: 35px;
    height: 35px;
  }
  .item .content {
    width: 240px;
    left: 10px;
    font-size: 7px;
}


.footer-container {
  grid-template-columns: 1fr; 
}
.social-buttons {
  flex-direction: column; 
  align-items: center; 
}
.btn {
  margin: 10px 0;
}
.contacts h2,a{
  text-align: center;
  display: inline-block;
}
.adress{
  padding-top: 20px;
}
}



@media (max-width: 480px){
  .intro-text{
    font-size: 12px;
  }
  .head a{
    font-size: 14px;
  }
  .article_head {
    font-size: 28px; /* Уменьшаем размер заголовка */
    top: 10px;
    left: 10px;
  }
  .articles {
    width: 90%;
    max-width: 100%;
  }
  .articles .item {
    width:0%;
    height: 0%;
    top: 0;
    transform: translate(0, 0);
  }
  .content {
    width: 150px;
  }
  .content .name {
    font-size: 24px;
  }
  .content .des {
    font-size: 14px;
  }
  .button {
    bottom: 10px;
  }
  .button .prev, 
  .button .next {
    width: 30px;
    height: 30px;
  }
}

