
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
:root {
  --main-color:  #1b4a9c;
  --secondary-color:#0077ff ;
  --third-color: #0502b1;
  --text-color: #f0f0f0;
}

/*header*/

.header {
    height: auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--main-color);
}
.nav {
  text-decoration: none;
  color: #f0f0f0;
}

.header img {
    margin-top: 1em;
}
.navigation {
    text-decoration: none;
    color: var(--text-color);
    font-size: large;
    display: flex;
    gap: 2em;
    margin-right: 2em;
    font-family: "Bebas Neue", sans-serif;
    font-weight: 600;
    font-style: normal;
    cursor: pointer;
    padding: 1.6em;
}

.navigation h3 {
  padding: 1em;
  transition: all 0.3s ease;
}

.navigation h3:hover {
  color: white;
  background-color: var(--third-color);
}

/* About us */

.body {
  display: flex;
  justify-content: center;
  margin-top: 2em;
  flex-direction: column;
  margin-left: 15%;
  margin-right: 15%;  
}
.abouts {
  width: 100%;
}

.about-img {
  width: 100%;
  height: auto;
}

.abouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  align-items: end;
}

.about h2 {
    font-size: xx-large;
  font-family: "Noto Sans", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-variation-settings:
  "wdth" 100;
}

.about h4 {
  font-size: large;
    margin-top: 2em;
  font-family: "Noto Sans", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-variation-settings:
  "wdth" 100;
}

.statistics {
  display: flex;
  justify-content: space-between;
  margin-top: 2em;
}

.digit {
    text-align: center;
    width: 24%;
    padding: 1em;
    background-color: rgb(207, 207, 207);
}

.digit h3 {
    font-size: x-large;
  font-family: "Noto Sans", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-variation-settings:
  "wdth" 100;
}




.digit p {
    margin-top: 0.6em;
  font-size: medium;
    font-family: "Noto Sans", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-variation-settings:
  "wdth" 100;
}

/* Our products */

.description-product {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2em;
}
.description-product h2 {
  font-size: xx-large;
  font-family: "Noto Sans", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-variation-settings:
  "wdth" 100;
}

.katalog p {
  padding: 2em;
  font-family: "Noto Sans", sans-serif;
  border: 2px solid var(--main-color);
  font-weight: bold;
  cursor: pointer;
}
.katalog p:hover {
  background-color: var(--main-color);
  color: white;
  transition: all 0.5s ease;
}

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2em;
  margin-top: 2em;
}

.product {
  position: relative;
  overflow: hidden;
  border-radius: 0.5em;
}

.product-img {
  width: 100%;
  height: 20em;
  object-fit: cover;
  display: block;
  filter: brightness(60%);
  transition: filter 0.4s ease;
}

.product:hover .product-img {
  filter: brightness(90%);
}

/* Назва продукту поверх картинки */
.product-title {
  position: absolute;
  bottom: 1em;
  left: 1em;
  z-index: 2;
  color: white;
  font-weight: bold;
  font-size: 2em;
  margin: 0;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

.overlay {
  position: absolute;
  bottom: 2em;
  left: 1em;
  z-index: 3;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-btn {
  opacity: 0;
  visibility: hidden;
  background-color: var(--main-color);
  border: none;
  padding: 1em 1em;
  color: rgb(28, 28, 28);
  font-weight: bold;
  border-radius: 0.3em;
  position: absolute;
  bottom: 1em;
  left: 1em;
  z-index: 3;
  cursor: pointer;
}

.product-btn:hover {
  background-color: var(--secondary-color);
  color: white;
} 

.product:hover .product-btn {
  opacity: 1;
  visibility: visible;
}

.product-btn {
  margin-left: 2em;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.product:hover .product-btn {
  transform: translateY(0);
}

hr {
  width: 6em;
  height: 0.1em;
  background-color: var(--main-color);
  border: 1px solid var(--main-color);
  border-radius: 0.5em;
  margin-left: 2em;
}

.product:hover .overlay {
  position: absolute;
  bottom: 4em;
  transform: translateY(10px);
  opacity: 1;
}

/* Footer */

.footer {
  background-color: var(--main-color);
  color: #fff;
  padding: 40px 20px;
  font-family: 'Arial', sans-serif;
  margin-top: 2em;
}

.footer h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.2rem;
  border-top: 2px solid var(--text-color);
  padding-top: 10px;
  color: #e0e0e0;
  margin-left: 15%;
  margin-right: 15%;
  margin-top: 1em;
}

.adress{
  cursor: pointer;
}

.sections {
  margin-left: 18%;
  margin-right: 18%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 14%;
}

.navigations,
.contact,
.social-medias {
  flex: 1;
  min-width: 200px;
}

.navigations a {
  color: var(--text-color);
  text-decoration: none;
  flex-direction: column;
}


/* Заголовки секцій */
.navigations h4,
.contact h4,
.adress h4 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--text-color);
  border-bottom: 2px solid var(--text-color);
  display: inline-block;
  padding-bottom: 5px;
  cursor: pointer;
}

/* Текст у блоках */
.navigations p,
.contact p {
  margin: 5px 0;
  transition: color 0.3s ease;
  cursor: pointer;
}

.navigations p:hover,
.contact p:hover,
.adress p:hover {
  color: yellow;
}

/* Контактні рядки */
.piece {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.schedule p {
  margin: 2px 0;
}

/* Іконки соцмереж */
.messenger img,
.social-media img {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.messenger,
.social-media {
  margin-bottom: 10px;
}

/* Ефекти наведення для іконок */
.messenger img:hover,
.social-media img:hover {
  transform: scale(1.1);
}

.social-medias {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Заголовки */
.social-medias h4 {
  color: var(--text-color);
  font-size: 1.1rem;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--text-color);
  display: inline-block;
  padding-bottom: 5px;
}

/* Іконки */
.icons {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Іконки стилізація */
.icons img {
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Наведення на іконки */
.icons img:hover {
  transform: scale(1.15);
  filter: brightness(1.2);
}

/* Адаптивність для планшетів (768px–1024px) */
@media screen and (max-width: 1024px) {
  /* Зменшуємо відступи для body */
  .body {
    margin-left: 5%;
    margin-right: 5%;
  }

  /* Шапка: зменшуємо розмір навігації */
  .navigation {
    gap: 1em;
    margin-right: 1em;
    padding: 1em;
  }

  .navigation h3 {
    font-size: 1rem;
    padding: 0.8em;
  }

  /* Секція "Про нас": сітка залишається 2-колонковою, але зменшуємо шрифти */
  .about h2 {
    font-size: x-large;
  }

  .about h4 {
    font-size: medium;
  }

  .statistics {
    gap: 1em;
  }

  .digit {
    width: 30%;
    padding: 0.8em;
  }

  .digit h3 {
    font-size: large;
  }

  .digit p {
    font-size: small;
  }

  /* Продукти: сітка на 2 колонки */
  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em;
  }

  .product-img {
    height: 15em;
  }

  .product-title {
    font-size: 1.5em;
  }

  .product-btn {
    padding: 0.8em;
  }

  /* Футер: зменшуємо відступи та розриви */
  .sections {
    margin-left: 5%;
    margin-right: 5%;
    gap: 5%;
  }

  .navigations,
  .contact,
  .social-medias {
    min-width: 150px;
  }
}

/* Адаптивність для мобільних (<768px) */
@media screen and (max-width: 767px) {
  /* Шапка: навігація стає вертикальною */
  .header {
    flex-direction: column;
    align-items: center;
  }

  .navigation {
    flex-direction: column;
    gap: 0.5em;
    margin-right: 0;
    padding: 1em;
    width: 100%;
    text-align: center;
  }

  .navigation h3 {
    font-size: 1rem;
    padding: 0.5em;
  }

  .header img {
    margin-right: 5em;

  }

  /* Body: прибираємо бічні відступи */
  .body {
    margin-left: 2%;
    margin-right: 2%;
  }

  /* Секція "Про нас": сітка стає одноколонковою */
  .abouts {
    grid-template-columns: 1fr;
  }

  .about-img {
    order: 1; /* Зображення після тексту */
  }

  .about {
    order: 2;
  }

  .about h2 {
    font-size: large;
  }

  .about h4 {
    font-size: small;
  }

  .statistics {
    flex-direction: column;
    gap: 0.5em;
  }

  .digit {
    width: 100%;
    padding: 0.5em;
  }

  .digit h3 {
    font-size: medium;
  }

  .digit p {
    font-size: x-small;
  }

  /* Продукти: сітка на 1 колонку */
  .products {
    grid-template-columns: 1fr;
    gap: 1em;
  }

  .product-img {
    height: 12em;
  }

  .product-title {
    font-size: 1.2em;
  }

  .product-btn {
    padding: 0.6em;
    font-size: 0.9em;
  }

  .description-product {
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
  }

  .katalog p {
    padding: 1em;
    font-size: 0.9em;
  }

  /* Футер: секції стають вертикальними */
.sections {
  flex-direction: column;
  margin-left: 2%;
  margin-right: 2%;
  gap: 2em;
  align-items: center;
  justify-content: center;
  text-align: center; /* Центруємо текст у всіх дочірніх елементах */
}

.navigations,
.contact,
.social-medias,
.adress {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center; /* Центруємо текст у кожному блоці */
}

.navigations h4,
.contact h4,
.social-medias h4,
.adress h4 {
  text-align: center; /* Центруємо заголовки */
}

.navigations p,
.contact p,
.adress p {
  text-align: center; /* Центруємо текст */
}

.piece {
  justify-content: center; /* Центруємо контактні рядки */
}

.schedule {
  display: flex;
  flex-direction: column;
  align-items: center; /* Центруємо графік роботи */
}

.icons {
  justify-content: center; /* Центруємо іконки соцмереж */
}

.footer h3 {
  margin-left: 2%;
  margin-right: 2%;
  font-size: 1rem;
  text-align: center; /* Центруємо підпис */
}

.messenger img,
.social-media img,
.icons img {
  width: 28px;
  height: 28px;
}

}