:root {
  color-scheme: light; /* Это подскажет браузеру, что ты сам контролируешь цвета */
}
body{
    font-family: 'Arial', sans-serif;
    margin: 0;
    background-color: #f8d9b5;
    color: #333;
 
    
}
header{
    text-align: center;
}
footer{
    margin-left: 10px;
}
#headimage {
    
 width: 40% ;
    height: auto;
    border-radius: 30px;
    padding: 10px 10px 10px 10px;
}

.conteiner1 {
    
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    margin: 50px;
    border-radius: 30px;
    background-color: whitesmoke
}
.textcontainer1 {
   
    left: auto;
    font-size: 20px;
}

#andreiimg {
    width: auto;
    height: 500px;
}

.gallery {
    text-align: center;
    padding: 40px 20px;
    background-color: #f3f3f3;
    border-radius: 20px;
    margin: 40px auto;
    max-width: 1000px;
}

.gallery h2 {
    margin-bottom: 20px;
    font-size: 28px;
    color: #333;
}

.main-photo img {
    width: 100%;
    max-height: 800px;
    border-radius: 20px;
    object-fit: cover;
    transition: 0.3s;
}

.thumbnails {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnails img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}

.thumbnails img:hover,
.thumbnails img.active {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .conteiner1 {
      flex-direction: column;
    }
  
    #andreiimg {
      width: 90%;
      height: auto;
    }
  
    .textcontainer1 {
      font-size: 18px;
      padding: 10px;
    }
    .thumbnails img {
        width: 80px;
        height: 60px;
    }

    .gallery h2 {
        font-size: 22px;
    }

    .contact-icons {
        gap: 20px;
      }
      
      .contact-icons a img {
        width: 50px;
        height: 50px;
      }
  }

  .contacts {
    text-align: center;
    background-color: #ffffff;
    padding: 10px 10px;
    border-radius: 20px;
    margin: 40px auto;
    max-width: 500px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
  }
  
  .contacts h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
  }
  
  .contact-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
  }
  
  .contact-icons a img {
    width: 80px;
    height: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
  }
  
  .contact-icons a img:hover {
    transform: scale(1.1);
    opacity: 0.8;
  }

  .radius{
    text-align: center;
    }
    .radius-img {
        width: 40% ;
    }
  
