
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400&display=swap');

  body {
  position: relative;
  margin: 0;
  padding: 0;
  min-height: 100vh;
   font-family: 'Inter', sans-serif;
  background-color: white;
  overflow-x: hidden; /* на всякий случай */
}

body::before {
  content: "";
  position: fixed;  /* чтобы фон не сдвигался при прокрутке */
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1; /* под основным содержимым */
  
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38'%3E%3Ctext x='50%25' y='50%25' font-size='35' text-anchor='middle' dominant-baseline='central' fill='%2300e69650' transform='rotate(45,19,19)'%3E%E2%9C%A6%3C/text%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38'%3E%3Ctext x='50%25' y='50%25' font-size='35' text-anchor='middle' dominant-baseline='central' fill='%2300e69650' transform='rotate(45,19,19)'%3E%E2%9C%A6%3C/text%3E%3C/svg%3E");
  background-repeat: repeat, repeat;
  background-position: 0 0, 19px 19px;
  background-size: 38px 38px, 38px 38px;

  /* маска градиентом слева направо */
  -webkit-mask-image: linear-gradient(to right, black 0%, transparent 80%);
  mask-image: linear-gradient(to right, rgb(0, 0, 0) 0%, transparent 80%);
}
.search-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

#query {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

#query:focus {
  border-color: rgb(20, 215, 150);
}

.left {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  background-color: transparent;
  gap: 10px; 
}
.fix{
   margin: 0;
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column; /* Обязательно! */
  height: 100vh;
  background: #f4f4f4;
}
.wrapper {
  display: flex;
  flex-wrap: wrap; /* разрешаем перенос */
  gap: 20px; /* отступы между колонками */
  padding: 2% 5vw;
  width: 100%;
  box-sizing: border-box;
  justify-content: flex-start;
}


.wrapper header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 10px 20px;
  background-color: #fff;
}
body {
  margin: 0;
  font-family: sans-serif;
}

.left header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  
}

.logo {
  width: 60px; /* уменьшает логотип */
  height: auto;
}

.faceimg { 
  position: absolute;
      left: 70%;
      transform: translateX(-50%);
}
.text-section.half-width {

  
   background-color: #eee;
  font-family: 'Inter', sans-serif;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  overflow: hidden;
  box-sizing: border-box; /* важно! */
  width: 48%; /* две колонки */
}
* {
  box-sizing: border-box;
}
body.scrollable-body {
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}


.text-section {
  background-color: #eee;
  font-family: 'Inter', sans-serif;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.27);
  overflow: hidden; 
  width: 100%; 
}

.header {
  background-color: rgb(20, 215, 150);
  color: white;
  padding: 15px 20px;
  font-size: 18px;
  font-weight: bold;
}

.content {
  background-color: #f0f0f0;
  padding: 20px;
  font-size: 16px;
  color: #333;
}


.right {
  position: fixed; 
  top: 0; 
  right: -15px;
  width: 60px;
  height: 100vh; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 10px;
  gap: 20px;
  background-color: #ddd;
  z-index: 1000; 
}


.slide-button {
  position: relative;
  width: 60px;
  font-family: 'Inter', sans-serif;
  height: 40px;
  background-color: rgb(20, 215, 150);
  color: white;
  border: none;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: width 0.314s ease;
  border-radius: 5px 0 0 8px;
  text-align: left;
  padding-left: 10px;
}

.slide-button span {
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.slide-button:hover {
  width: 160px;
}

.slide-button:hover span {
  opacity: 1;
}

.headline-button {
  background-color:hex(#ffffff) ;
  color:hex(#1c5251);
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  
  cursor: pointer;
  margin-bottom: 20x;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background-color 0.3s;

}
.headline {
  background-color: hex(#ffffff);
  display: inline-block;
  color: hex(#1c5251);
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  
}
 #cookieBanner {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #2b2b2b;
        color: #fff;
        padding: 15px;
        display: none;
        font-family: sans-serif;
        font-size: 14px;
        box-shadow: 0 -2px 6px rgba(0,0,0,0.25);
        z-index: 1000;
      }
      #cookieBanner .btn {
        margin-left: 10px;
        padding: 6px 14px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 13px;
      }
      #cookieAllow { background: #4caf50; color: #fff; }
      #cookieDeny { background: #f44336; color: #fff; }
.switch-lang {
  background-color: rgb(20, 215, 150);
  color: white;
 padding: 8px 16px; 
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  border-color: transparent;
}
.headline-button:hover {
  background-color: #a00;
}
a.text:active, /* активна/посещенная ссылка */
a.text:hover,  /* при наведении */
a.text {
  text-decoration: none;
  color: #ffffff;
}
.button { 
  background-color: rgb(20, 215, 150);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 25px rgb(12, 148, 102);
  max-width: fit-content;
  max-height: fit-content;
  
}
.button:hover{
  background-color: rgb(32, 218, 156);
  
}
@media (max-width: 768px)  {
  body {
    flex-direction: column;
    height: auto;
  }

  .left {
    padding: 20px;
    width: 100%;
    background-color: transparent;
  }

.right {
  position: static;
  width: 100%;
  height: auto;
  flex-direction: row;
  justify-content: space-between; /* равномерно распределить */
  flex-wrap: wrap;
  padding: 10px;
  background-color: transparent;
  order: -1; /* чтобы блок был выше */
  gap: 10px; /* расстояние между кнопками */
  bottom: 0px;
}

.slide-button {
  width: 48%; /* две кнопки в ряд */
  height: auto;
  padding: 10px;
  font-size: 14px;
  text-align: left;
  border-radius: 8px;
}
#rotate-warning {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  color: white;
  text-align: center;
  padding-top: 40vh;
  font-size: 1.5em;
}

/* Показываем предупреждение только в landscape-режиме на мобильных устройствах */


.slide-button span {
  opacity: 1; /* текст всегда виден */
  transition: none;
}


  .faceimg {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
  }

  .text-section.half-width {
    width: 100%;
  }
}

#rotate-warning {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgb(202, 221, 255);
  color: rgb(0, 0, 0);
  text-align: center;
  padding-top: 40vh;
  font-size: 1.5em;
}

/* Только на мобильных устройствах в горизонтальной ориентации */
/* Только на мобильных устройствах в горизонтальной ориентации */
/* Более компактный вид на телефонах и планшетах */
@media screen and (max-width: 1024px) {
  body {
    font-size: 14px;
  }

  .text-section,
  .text-section.half-width {
    padding: 12px;
    font-size: 14px;
    border-radius: 6px;
  }

  .header {
    font-size: 16px;
    padding: 10px 14px;
  }

  .content {
    font-size: 14px;
    padding: 14px;
  }

  .button,
  .headline-button,
  .switch-lang {
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 6px;
  }

  .product-card {
    width: 240px;
    padding: 12px;
    font-size: 13px;
  }

  .product-card h2 {
    font-size: 16px;
  }

  .product-card li {
    font-size: 12px;
  }

  /* Кнопки сбоку всегда раскрыты */
  .slide-button {
    width: 140px;
    height: 36px;
    font-size: 14px;
    padding-left: 8px;
  }
  .slide-button span {
    opacity: 1;
  }
}




.product-card {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 16px;
  margin: 10px;
  width: 300px;
  background: #f9f9f9;
  box-shadow: 2px 2px 12px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
  

}
.product-card img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  display: block;
  background: #fff;         /* уберёт нежелательный фон */
  border-radius: 6px;
  overflow: hidden;
}

.product-card h2 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

.product-card ul {
  list-style-type: none;
  padding-left: 0;
}

.product-card li {
  padding: 4px 0;
  font-size: 14px;
}
