/* ====== Base Styles ====== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}

/* Typography */
.banner-text h1,
.with-hanna,
.about-title,
.about-description,
.footer-top,
.footer-bottom,
.notice-title,
.custom-button {
  font-family: Verdana, sans-serif;
}

.banner-text p,
.subtitle,
.footer-top,
.footer-bottom {
  font-size: 14px;
  color: #d1d4c8;
  line-height: 1.5;
}

/* ====== Banner ====== */
.banner-header {
  background: #444739 center/cover no-repeat;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

@media screen and (max-width: 1200px) {
  .banner-header {
    background-size: contain;
    height: 300px;
  }
}
@media screen and (max-width: 480px) {
  .banner-header {
    background-size: contain;
    height: 220px;
   
    
  }
}


.banner-container {
  width: 100%;
  height: 100%;
  background: #444739 center/cover no-repeat;
  background-image: url(/images/banner2.jpg);
  display: flex;
  flex-direction: column;
  align-items: right;
  justify-content: center;
  padding: 1rem;
}

@media screen and (max-width: 1200px) {
  .banner-container {
 
    background-size: contain;
     padding-top: 0;
      
      }
}

@media screen and (max-width: 480px) {
  .banner-container {
 
    background-size: contain;
    padding-top: 0;
      
      }
}


.banner-text {
  text-align: right;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  align-items: right;
  justify-content: center;
}

.banner-text h1 {
  font-weight: bold;
  font-size: 60px;
  margin: 0;
}


@media screen and (max-width: 1200px) {
  .banner-text h1 {
    font-size: 36px;
    padding: 0 20px;
  }
  
}

@media screen and (max-width: 480px) {
  .banner-text h1 {
    font-size: 24px;
  }
  
}
.banner-text .subtitle {
  font-size: 20px;
  margin-top: 10px;
}
@media screen and (max-width: 1200px) {
  .banner-text .subtitle {
    font-size: 10px;
    padding: 0 20px;
    
  }
  
}

.with-hanna {
  font-weight: bold;
  font-size: 40px;
  color: #d1d4c8;
}
@media screen and (max-width: 480px) {
  .with-hanna {
    font-size: 24px;
  }
  
}


.accent { color: #ff5654; }
.highlight { color: #d1d4c8; }


/* ====== Grid Images ====== */

.image-grid {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  flex-direction: row;
  gap: 0px;
  max-width: 1380px;
  margin: 0 auto 35px;
  margin-top: -35px;
  z-index: 1;
  position: relative;
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.15);
}


.hover-img {
position: absolute;
top: 0;
left: 0;
opacity: 0;
transition: opacity 0.3s ease;
}

.image-hover:hover .hover-img {
opacity: 1;
}

.image-hover:hover .default-img {
opacity: 0;
}

.image-grid a {
position: relative;
display: block;
z-index: 1;
outline: none;

}

@media screen and (max-width: 480px) {
  .image-grid a {
    flex: 0 0 100%;
    
  }
  
}


.image-grid a img {
height: auto;
display: block;
transition: transform 0.4s ease; /* плавное увеличение */
}
@media screen and (max-width: 1280px) {
  .image-grid a {
    flex: 0 0 50%; /* две колонки */
  }

  /* Шахматный порядок */
  .image-grid a:nth-child(3) { order: 4; }
  .image-grid a:nth-child(4) { order: 3; }
  .image-grid a:nth-child(5) { order: 5; }
  .image-grid a:nth-child(8) { order: 7; }
  .image-grid a:nth-child(8) { order: 3; }
  
 
}
@media screen and (max-width: 1280px) {
  .image-grid a img {
    width: 100%;
    height: auto;
    object-fit: contain;
    
  }
 
}


.image-grid a:hover {
  z-index: 10; /* поднимаем над другими ячейками */
}
.image-grid a:hover img {
transform: scale(1.05); /* плавное увеличение при наведении */

}
/* ====== About Section ====== */
.about-grid {
  display: flex;
  flex-wrap: wrap;
  background: #f0f0f0;
  width: 100%;
  margin: 100px auto 35px;
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.15);
  align-items: flex-start;
}

@media screen and (max-width: 540px) {
  .about-grid {
    margin: 5px auto 5px;
   
  }
  
}
@media screen and (max-width: 1200px) {
  .about-grid {
    margin: 50px auto 5px;
   
  }
  
}

.about-image {
  position: relative;
  top: -60px;
  left: -30px;
  flex-shrink: 0;
  display: flex;

}
@media screen and (max-width: 1200px) {
  .about-image {
    top:0;
    left: 0;
    
   
  }
  
}

@media screen and (max-width: 540px) {
  .about-image {
    top:0;
    left: 0;
    width: 100%;
   
  }
  
}

.about-image img {
  width: 100%;
  max-width: 483px;
  display: block;
}

@media screen and (max-width: 1200px) {
  .about-image img {
   width: 100%;
   
  }
  
}

.about-text {
  background: #f0f0f0;
  padding: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  width: 100%;
}
@media screen and (max-width: 1200px) {
  .about-text {
    justify-content: justify;
    padding:0px;
    margin: 0 20px 20px 20px;
    
  }
     
  }

@media screen and (max-width: 540px) {
  .about-text {
   padding: 0px;
   justify-content: justify;
   margin: 5px 0  5px;
  }
  
   
  }


.about-title {
  font-size: 40px;
  font-weight: bold;
  color: #000;
  margin-bottom: 20px;
}
@media screen and (max-width: 540px) {
  .about-title {
    font-size: 14px;
    padding: 0;
    margin: 0 10px 20px 10px; 
  }
  @media screen and (max-width: 1200px) {
    .about-title {
      font-size: 18px;
      padding: 0;
      margin: 0 10px 20px 10px; 
    }
  }
   
  }
.about-description {
  font-size: 16px;
  color: #000;
  line-height: 1.6;
}
@media screen and (max-width: 1200px) {
  .about-description {
    font-size: 14px;
    padding: 0;
  }
  
   
  }
@media screen and (max-width: 540px) {
  .about-description {
    font-size: 12px;
    padding: 0;
  margin: 0 10px 20px 10px;  
  }
}


/* ====== Footer ====== */
.banner-footer {
  background: #696a63;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
 
}

.footer-bottom {
  font-size: 12px;
  line-height: 1.4;
  text-align: justify;
  max-width: 1200px;
  width: 100%;
}
@media screen and (max-width: 480px) {
  .footer-bottom {
    font-size: 10px;
  }
  
}

.notice-title {
  font-weight: 800;
  font-size: 12px;
}
@media screen and (max-width: 480px) {
 .notice-title {
    font-size: 10px;
  }
  
}

/* ====== Button ====== */
.custom-button {
  display: inline-flex;
  align-items: center;
  margin-top: 70px;
  gap: 8px;
  background: #6f706d;
  color: #d1d4c8;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  outline: none;
}
@media screen and (max-width: 480px) {
  .custom-button {
    
    margin: 0 10px 10px 10px; 
  }
  
}
.custom-button:hover {
  background: #9aa580;
  transform: translateY(-2px);
}

.custom-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.arrow {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.custom-button:hover .arrow {
  transform: translateX(5px);
}
