@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');
div {
  box-sizing: border-box;
}
html,
body {
  
  -webkit-font-smoothing: antialiased;
  font-family: "Cormorant Infant";
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  clear: both;
  text-align: center;
  min-height: 100vh;
}

.container {
  width: 70%;
  margin: 0 auto;
  flex: 1 0 auto;
}
.sw {
  float: left;
  width: 100%;
  height: 80px;
  background: rgb(23, 179, 138);
  background: linear-gradient(
    0deg,
    rgba(23, 179, 138, 1) 0%,
    rgba(0, 118, 119, 1) 100%
  );
  padding: 15px 15px 15px 0;
  display: flex;
  margin-top: 20px;
  margin-bottom: 50px;
  box-shadow: 0 2px 0 0px rgba(0, 0, 0, 0.1);
}
.sw .form {
  margin: auto;
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
}

input {
  width: 80%;
  font-size: 20px;
}

button {
  width: 20%;
}
.sw a.logo {
  display: flex;
  flex: 1 1 auto;
  order: 0;
  width: 100%;
  height: 100%;
  max-width: 80px;

  transition: all 0.05s ease-in-out;
  visibility: visible;
  opacity: 1;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo img {
  display: inline-block;
  width: 75%;
  height: auto;
}

.alphabet-logo{
    display: inline;
}
.sw .search {
  flex: 1 1 auto;
  font-family: "Cormorant Infant";
  order: 2;
  outline: none;
  border: none;
  border-radius: 0;
  background: #fff;
  padding: 10px;
  height: 50px;
  transition: all 0.05s ease-in-out;
  -webkit-appearance: none;
}
.sw .search:focus {
  height: 80px;
  margin-left: -15px;
  padding: 10px 15px;
}
.sw .search:focus + .go {
  height: 80px;
  margin-right: -15px;
  max-width: 80px;
  color: #533687;
}
.sw .search:focus + .go svg {
  fill: black;
}
.sw .search:focus + .go + a.logo {
  visibility: hidden;
  opacity: 0;
  max-width: 0px;
  margin-right: 0;
}
.sw .go {
  flex: 1 1 auto;
  order: 3;
  max-width: 50px;
  display: inline-block;
  border: none;
  background: #fff;
  color: #ccc;
  height: 50px;
  transition: all 0.05s ease-in-out;
  font-size: 21px;
  outline: none;
}
.sw .go svg {
  width: 16px;
  fill: #ccc;
}

.content h1 {
  color: #000;
  padding: 0;
  font-size: 48px;
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.02em;
  margin-top: 50px 0 0 0;
}
.content p {
  font-family: "Roboto", sans-serif;
  font-size: 16px;

  -webkit-font-smoothing: antialiased;
}

.search-container {
  position: relative;
}

.last_block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 50px;
}

.last_block h2 {
  font-size: 40px;
  color: #636363;
  padding: 0;
  margin: 0;
  
  font-weight: 700;
}

.last_block p {
  font-size: 40px;
  color: #636363;
  padding: 0;
  margin: 0;
  
  font-weight: 700;
}

.last_block_items {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 10px;
  
}

.last_item {
    position: relative;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    
    
}

.image_link {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    
    
}

.image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(8px 8px 8px #636363);
}

.alphabet-image {
    width: 50%;
    height: 50%;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(8px 8px 8px #636363);
}

.last_item:hover .image {
    transform: scale(1.3);
    z-index: 2;
}

.last_item:hover .alphabet-image {
    transform: scale(1.3);
    z-index: 2;
}

.item_link {
    position: relative;
    z-index: 1;
    font-size: 20px;
    text-align: center;
    padding: 5px;
    width: 100%;
    color: #000;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom:30px;
    
    
}


cite {
  font-size: 25px;
  color: #636363;
}

@media screen and (max-width: 968px) {
  .content h1 {
    font-size: 40px;
  }

  .container {
    width: 85%;
  }

  .sw {
    height: 70px;
    padding: 8px 8px 8px 0;
  }
  .logo img {
    width: 65%;
  }

  .search-results {
    width: 85%;
  }
}

@media screen and (max-width: 715px) {
  .last_block_items {
    flex-direction: column;
    align-items: center;
  }
}

@media screen and (max-width: 551px) {
  .content h1 {
    font-size: 30px;
  }

  cite {
    font-size: 15px;
  }

  .container {
    width: 85%;
  }
  .sw {
    height: 60px;
    padding: 5px 5px 5px 0;
  }

  .logo img {
    width: 55%;
  }

  .last_block h2 {
    font-size: 20px;
  }
  .search-results {
    width: 85%;
  }
}

.search-results {
  margin-top: 100px; /* Отступ сверху для отделения от формы */
  background-color: #fff; /* Фон результата поиска */
  border: 1px solid #ccc; /* Рамка вокруг результатов поиска */
  max-height: 300px; /* Максимальная высота блока */
  overflow-y: auto; /* Прокрутка если результатов много */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Тень для блока */
  z-index: 1000; /* Убедитесь, что блок находится поверх других элементов */
  position: absolute; /* Позиционирование относительно родительского блока */
  width: 67.8%; /* Ширина блока */
}

.result-item {
  padding: 10px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ccc; /* Разделительная линия между результатами */
}

.result-item img {
  margin-right: 10px;
}

.result-item a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

.result-item a:hover {
  color: rgba(0, 118, 119, 1);
}

.result-item:last-child {
  border-bottom: none; /* Удалить разделительную линию у последнего элемента */
}

a .comeback-main{
    
    text-decoration: none;
}

.alphabet-navigation {
        text-align: center;
        margin: 50px 0 50px 0;
}
.alphabet {
        display: inline-block;
        margin-top: 10px;
}
.alphabet-letter {
        display: inline-block;
        width: 25px;
        height: 25px;
        line-height: 30px;
        margin: 0 3px;
        text-align: center;
        text-decoration: none;
        border: 1px solid #ccc;
        border-radius: 4px;
        background-color: #f8f8f8;
        color: rgba(23, 179, 138, 1);
        font-size: 16px;
        font-weight: bold;
        transition: background-color 0.3s, color 0.3s;
        
}
.alphabet-letter:hover {
    background-color: rgba(23, 179, 138, 1);
    color: #fff;
}



