@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat';
    list-style: none;
    text-decoration: none;
}
body{
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    z-index: 1001;
}
.menu ul li{
    position: relative;
    float: left;
}
.menu ul li a{
    display: inline-block;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    padding: 15px;
}
.menu ul li a:hover{
    text-decoration: underline;
    color: #fff;
}
.logo-img{
    width: 14%;
}
.dropdown {
    position: relative; /* Необходимо для позиционирования выпадающего контента */
    display: inline-block;
}
.dropdown-content {
    display: none; /* Изначально скрыто */
    position: absolute; /* Позиционируем относительно родительского элемента */
    background-color: rgba(0, 0, 0, .8); /* Цвет фона */
    min-width: 300px; /* Минимальная ширина меню */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); /* Тень */
    z-index: 1; /* Чтобы меню было сверху */
    grid-template-columns: repeat(6, 1fr); /* Четыре равных столбца */
}
.dropdown-content .dropdown-column a{
    width: 100%;
    text-align: center;
    white-space: nowrap; 
    text-align: center;
    font-size: 18px;
}
.h{
    text-align: center;
    color: rgb(238, 0, 91);
}
.dropdown:hover > .dropdown-content{
    display: grid;
    padding: 0; /* Убираем отступы */
    margin: 0; /* Убираем внешние отступы */
}
.menu li {
    margin-right: 20px; /* Отступ между ссылками */
}

.menu li:last-child {
    margin-right: 0; /* Убираем отступ у последнего элемента */
}
.menu-toggle {
    display: none; /* Скрыть чекбокс */
}
.link-checkbox{
    display: none;
}
.menu-button {
    display: none; /* Скрыть кнопку по умолчанию */
    cursor: pointer;
    font-size: 24px;
    color: white;
}
/** КОНЕЦ ШАПКИ САЙТА */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%; 
    margin-top: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center; /* Выровнять элементы по центру вертикально */
    padding: 20px;
    text-align: center; /* Центрировать текст */
}
.footer p{
    color: #fff;
    font-size: 24px;
}
.footer a{
    color: #fff;
    font-size: 20px;
    margin: 0 120px;
}
.footer a:hover{
    color: deeppink;
}



  
  .container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 100px 20px;
  }
  
  .card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: calc(25% - 20px);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: default;
    width: 400px;
  }
  
  .card-image {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* или "cover", если нужно обрезать */
  }
  .card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  
  .card-content {
    padding: 10px;
  }
  
  .card-name {
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    margin-bottom: 10px;
    color: #333;
  }
  
  .card-description {
    display: none;
    font-size: 14px;
    color: #444;
  }
  
  .add-button {
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .add-button:hover {
    background-color: #218838;
  }
  
  /* Открытая карточка */
  .card.expanded {
    width: 65%;
    flex-direction: row;
    align-items: flex-start;
  }
  
  .card.expanded img {
    width: 40%;
    height: auto;
  }
  
  .card.expanded .card-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    width: 60%;
  }
  
  .card.expanded .card-description {
    display: block;
  }
  
  .card.expanded .card-name {
    text-align: left;
    font-size: 20px;
    padding-bottom: 10px;
  }
  
  /* Смежная карточка */
  .card.adjacent {
    width: 30%;
  }