html{
    scroll-behavior: smooth;
}

.main__container {
    width: 100%;
    display: grid;
    align-items: start;
    grid-template-columns: repeat(1, 1fr); /* або 2fr 1fr */
    grid-auto-rows: minmax(100px, auto);
    overflow-x: hidden;
    font-family: 'Ubuntu', 'PT Sans', sans-serif;
}

.container{ 
    max-width: 500px; 
    margin-left: 0;   /* прибираємо автоматичне вирівнювання */
    margin-right: auto;
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
    .container h1 { font-size: medium;
}

    .container h2 { margin-top: 0; 
    }
    .container label { display: block; margin-top: 12px; font-weight: bold; 
    }
    .container input, select { width: 95%; padding: 10px; margin-top: 6px; border: 1px solid #ccc; border-radius: 6px; 
    }
    .container button { 
        width: 120px;
        margin-top: 16px; 
        padding: 12px; background: rgb(146, 164, 160); 
        color: #fff; 
        border: none; 
        border-radius: 6px; 
        cursor: pointer;
        display: block;
        /* margin: 16px auto 16px; */
    }
    .container button:hover { background: rgb(70, 160, 125); }
    .msg { margin-top: 10px; color: #555; }


/* HEADER BLOCK START */

.header{
    background: url('./Img__background/coffee-1276778_1920.jpg') center no-repeat;
    background-attachment: fixed;
    background-size: cover;
    width: 100%;
    height: 800px;
    margin: auto;
    grid-column: 1/4;
    grid-row: 1;
    
}

.nav{
    width: 100%;
    height: 60px;
    background-color: rgb(146, 164, 160);
    position: fixed;
    top: 0;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.nav__items{
    color: whitesmoke;
    margin-left: 58px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 15px;    
}

.nav__items:hover{
    color: rgb(137, 133, 133);
    animation: 2s show ease;
}

@keyframes show {
    from { opacity: 0.4; }
    to { opacity: 1; }
}
.header__main{
    width: 100%;
    height: auto;
    background-color: rgba(104, 119, 114, 0.647);
    display: flex;
    flex-direction: row;
    margin-top: 100px;
    margin-left: 140px;
} 

.header__text{
    display: flex;
    flex-direction: column;
    justify-content: center;  
    align-items: center;
    align-content: space-around;
    width: 500px;
    margin-top: 115px;
    margin-left: -20px;
    z-index: 3;
    color: white;
}

.header__img{
    width: 429px;
    height: 456px;
    /* background-color: rgba(157, 146, 164, 0.576);  */
    border-radius: 2px;
    opacity: 0.6;
    margin-left: 25px;
    margin-top: -17px;
} 

.header__img img{
    width: 371px;
    height: 471px;
    border-radius: 2.5px;
    opacity: 0.9;
    
} 

.header__text img{
    opacity: 0.6;
}

.header__text h2{
    margin-top: 10px;
    text-transform: uppercase;
    font-size: 18px;
} 

.header__text p {
   text-align: center; 
  width: 100%;
  max-width: 500px;
  height: auto;
  color: white;
  font-size: 21px;
  margin: 20px auto;
}


 .header__text span{
    color: white;
    font-size: 21px; 
    margin-top: 50px;
    margin-bottom: 80px;
} 

.header__text__icons{
    box-sizing: border-box;
}

.header__text__icons img{
    margin-top: 10px;
} 

.header__social__contacts__icons{
    display: flex; 
    justify-items: center;
    margin-right: 419px;
    margin-top: 48px;
    
} */

.header__welcome__item{
    color: white;
    margin-left: -5px;
    
}  

 .name__item{
    color: white;
    margin-left: 20px;
} 
.header__text__icon h2{
    margin-left: 100px;
} 

.header__social__contacts__icons img{
   width: 46px;
   height: 46px;
   border-radius: 50%;
   margin-left: 15px;
   opacity: 0.7;
   background-color: rgba(104, 119, 114, 0.647);
} 

 .header__social__contacts__icons img:hover{
    opacity: 0.7;
    background-color: whitesmoke;
} 

a{
    text-decoration: none;
}  
 
/* END */

/* SERVICE BLOCK START */

.service__block{
   display: flex;
   position: relative;
   background: url('./gallery/5.jpg') no-repeat center;
   opacity: 0.9;
   background-attachment: fixed;
   background-size: cover;
   width: 100%;
   height: 800px;
   grid-column: 1/4;
   grid-row: 2;
   justify-content: center;
   align-items: flex-start;
} 

.service__block div{
    width: 300px;
    height: 512px;
    margin-top: 40px;
    margin-right: 27px;
    border-radius: 2%;
    opacity: 0.9;
    padding-left: 5px;
    /* text-shadow: rgb(9, 9, 9) 0 0.9px;    */
    background-color: rgba(169, 169, 169, 0.674);
}

.service__block img{
    width: 70px;
    height: 70px;
    margin: 22px 51px;
    /* background-color: rgba(138, 111, 150, 0.829);
    border-radius: 50%; */
}

.service__block div>img{
    opacity: 0.9;
}
.service__block div ul{
    margin-top: -10px;
}

.service__block ul{
    color: white;
    font-size: 17px;
    font-weight: 500;
    padding-right: 7px;
}

.service__block h3{
    color:white;
    width: 100px;
    border-bottom: 2px solid whitesmoke;
    margin: auto;
    padding: 21px;
}

.service__block span{
    width: auto;
    color: white;
    position: absolute;
    top: 600px;
    right: 560px;
    font-size: 17px;
}

.service__block span>p{
    margin-left: 30px;
    margin-bottom: -10px;
}

/* .service__clients{
    color: rgb(109, 109, 109);
} 

.service__greenCard{
    color: rgb(105, 97, 111);
}  */

/* END */

/* ARTICLES BLOCK START */

/* Основний контейнер */

.gallery___block {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    box-sizing: border-box;
    
  }
  
  /* Заголовок */
  .gallery__text {
    text-align: center;
    margin-bottom: 3rem;
    color: rgb(105, 97, 111);
  }
  .gallery__text h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  .gallery__text p {
    font-size: 1.2rem;
    color: #555;
  }
  
  /* Секція статей */
  .articles {
    display: grid;
    grid-template-columns: 1fr 1fr; /* дві рівні колонки */
    gap: 2rem;
    align-items: start;
    color: #555;
  }
  
  /* Картинки */
  .img01 img,
  .img02 img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
  }
  
  /* Текстові блоки */
  .articles h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
  }
  .articles p {
    line-height: 1.6;
    color: rgb(105, 97, 111);
  }
  
  /* Списки всередині тексту */
  .articles ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
  }
  .articles li {
    margin-bottom: 0.5rem;
  }
  

/* .gallery___block{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto; 
    grid-gap: 20px;
    color: rgb(105, 97, 111);
    align-self: center;
    margin: auto;
    width: 100%;                   
    max-width: 900px;  

} */

/* .articles{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto; 
    grid-gap: 20px;
    color: rgb(105, 97, 111);
    align-self: center;
    margin: auto;
    width: 100%;                   
    max-width: 900px;  
} */

/* .articles a{
    text-decoration: none;
}
.articles p {
    font-size: 15px;
    text-align: center;
    width: 100%;
  }
 
.img01{
    position: relative;
}

.img01 img{
    position: absolute;
    width: 500px;
    height: 370px;
}

.img02{
    position: relative;
}

.img02 img{
    position: absolute;
    width: 500px;
    height: 320px;
    
}

.articles__text p{
    margin-bottom: 150px;
}
.articles{
    margin-left: 93px;
} */
/* END */

/* GALLARY BLOCK START */


/* /* .gallery__text{
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgb(120, 120, 120);
    text-transform: uppercase;
    font-size: 20px;
} 

.gallery___block{
    display: grid;
    width: 100%;
    grid-column: 1/2;
    grid-row: 3;
}

.gallery__container {
    display: grid;
    grid-template-columns: repeat(2, 2fr 1fr);
    grid-template-rows: 1fr 2fr;
    column-gap: 5px;
    height: 400px;
    width: 1100px;
    /* height: fit-content; */
    /* align-items: center;
    margin-left: 40px;
    max-width: 100%;
} */

/* .gallery__container:first-child{
    justify-content: end;
}

.gallery__container img {
    object-fit: cover;
    margin-bottom: 5px;
    padding: 0;
}

div img:last-child {
    margin-bottom: 0;
} */ 

/* END */

/* ABOUT__ME__BLOCK START */

.about__me__block{
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    background: url('./gallery/art__4.jpg') no-repeat center;
    background-attachment: fixed;
    background-size: cover;
    grid-column: 1/4;
    grid-row: 4;
    margin-top: 90px;
    opacity: 0.9;
}
.about__me__text{
    /* position: relative; */
    justify-content: space-between;
    font-size: 18px;
    background-color: rgba(104, 119, 114, 0.647);
    color: whitesmoke;
    text-shadow: rgb(32, 31, 31) 0 1px;  
    width: 788px;
    height: 100%;
    margin: 80px auto;
    padding-left: 20px;
    padding-right: 12px;
    text-align: center;
    border-radius: 0.4%;
}

.about__me__text img{
    position: absolute;
    top: 114px;
    right: -10px;
    width:300px;
    height: 400px;

    border-radius: 0.4%;
}

.about__me__text h3{
    
    text-transform: uppercase;
}

.about__me__text p {
    width: 100%;
    max-width: 450px;   /* комфортна ширина для читання */
      /* центрування, якщо потрібно */
    text-align: right;
}



/* END */

/* FREE SPACE BLOCK */
.free__space__block{
    background: url('./Img__background/background-of-paint-still-life.jpg') no-repeat center;
    background-attachment: fixed;
    background-size: cover;
    width: 100%;
    height: auto;
    grid-column: 1/4;
    grid-row: 5;
    opacity: 0.9;
}
.container_edu {
    position: relative;
    margin-top: 30px;
  }
  
  /* Hide the images by default */
  .mySlides {
    display: none;
  }
  
  /* Add a pointer when hovering over the thumbnail images */
  .cursor {
    cursor: pointer;
  }
  
  /* Next & previous buttons */
  .prev,
  .next {
    cursor: pointer;
    position: absolute;
    top: 40%;
    width: auto;
    padding: 16px;
    /* margin-top: -50px; */
    /* margin-left: 100px; */
    color: white;
    font-weight: bold;
    font-size: 20px;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
  }
  
  /* Position the "next button" to the right */
  .next {
    right: 0;
    border-radius: 3px 0 0 3px;
  }
  
  /* On hover, add a black background color with a little bit see-through */
  .prev:hover,
  .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }
  
  /* Number text (1/3 etc) */
  .numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
  }
  
  /* Container for image text */
  .caption-container {
    text-align: center;
    background-color: #222;
    padding: 2px 16px;
    color: white;
  }
  
  .row:after {
    content: "";
    display: table;
    clear: both;
  }
  
  /* Six columns side by side */
  .column {
    float:inline-start;
    width: 25%;
  }
  
  /* Add a transparency effect for thumnbail images */
  .demo {
    opacity: 0.6;
  }
  
  .active,
  .demo:hover {
    opacity: 1;
  }

/* CONTACT BLOCK START */

.contacts__block{
    background: url('./gallery/20.jpg') no-repeat center;
    background-attachment:fixed;
    background-size: cover;
    /* background-color: darkgrey; */
    width: 100%;
    height:fit-content;
    grid-column: 1/4;
    grid-row: 6;
    
}

.contacts__form{
    width: 600px;
    font-size: 19px;
    background-color: rgba(104, 119, 114, 0.647);
    color: whitesmoke;
    text-shadow: rgb(32, 31, 31) 0 1px;   
    margin: auto; 
    padding-right: 20px;
    padding-top: 7px;
    border-radius: 0.8%;
}

.contacts__form h3{
    text-transform: uppercase;
    margin-left: 37px;
}

.contacts__group{
    display: flex;
    justify-content: space-between;
    margin-left: 36px;
}

.contacts__left__side{
    word-wrap: wrap;
    /* width: 343px; */
    /* margin-top: 6px; */
}

.contacts__left__side h4{
    text-transform: uppercase;
}

.contacts__right__side{
    width: 206px;
    word-wrap: wrap;
    margin-bottom: 26px;
}

.contacts__right__side input{
    width: 177px;
    height: 28px;
    border-radius: 2%;
}
.contacts__info input:nth-child(15){
    width: 184px;
    margin-top: 10px;
    color: white;
    background-color: rgb(33, 33, 33);
}
.contacts__info input:nth-child(13){
    height: 63px; 
}

#namef{
    font-size: small;
}

#emailf{
    font-size: small;
}
/* .contacts__right__side input:nth-child(9){
    height: 80px;
}

.contacts__right__side input:nth-child(11){
    width: 185px;
    background-color: rgb(28, 28, 28);
    color: white;
    margin-top: 7px;
} */

/* Contacts form START */

input.invalid {
    background-color: rgb(250, 211, 218);
}

input.valid {
    background-color: rgb(183, 249, 183);
}
/* END */

/* Footer block START */

footer{
    width: 100%;
    height: 170px;
    background-color: rgba(104, 119, 114, 0.647);
    grid-column: 1/4;
    grid-row: 7;
}

footer div{
    display: flex;
    justify-content: center;
    align-content: center;
    margin: auto;
}
footer img{
    border-radius: 50%;
    background-color: white;
    /* opacity: 0.9; */
    width: 45px;
    height: 45px;
    margin: 20px 7px;
}
footer p{
    color: white;
    text-align: center;
}

/* Gallery opening imaged css */
.large {
    width: 400px;
    height: 195px;
}

.small {
    width: 282px;
    height: 399px;
    overflow: hidden;
}
.small_2{
    width: 282px;
    height: 399px;
    overflow: hidden; 
}
.small_3{
    width: 282px;
    height: 399px;
    overflow: hidden;
}

#opened {
    display: none;
    position: fixed;
    z-index: 3;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.opened-img {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%; 
    margin-left: 537px;
    margin-top: 220px;
}

.opened-img img{
    height: 400px;
    width: 600px;
    position: relative;
    top: -150px;
    left: -500px;
}

.gallery__container img:hover{
    opacity: 0.7;
}

.closed {
    position: absolute;
    top: 5%;
    right: 5%;
    font-size: 60px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

/* End (Gallery opening img css) */

/* main_contract START */
.main_contract a{
    text-decoration: none;    
}

.main_contract a:hover {
    color: green; /* Цвет обычных ссылок */
  }
  

/* END */



/* SCROLL JS ANIMATION START */

.js-scroll {
    opacity: 0;
    transition: 500ms;
  }
  
  .js-scroll.scrolled {
    opacity: 1;
  }
  
  .scrolled.fade-in {
    animation:  2.5s show ease-in-out both;
  }
  
  .scrolled.fade-in-bottom {
    animation:  1s hide ease-in-out both;
  }
  
  .scrolled.slide-left {
    animation: 1.5s move ease-in-out both;
  }
  
  .scrolled.slide-right {
    animation:  1.5s move ease-in-out both;
  }

  @keyframes move {
    0% {
      -webkit-transform: translateX(-100px);
      transform: translateX(-100px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateX(0);
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  @keyframes move {
    0% {
      -webkit-transform: translateX(100px);
      transform: translateX(100px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateX(0);
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  @keyframes hide {
    0% {
      -webkit-transform: translateY(50px);
      transform: translateY(50px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateY(0);
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  @keyframes show {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
/* END */



