@font-face {
    font-family: 'liter';
    src: url('./liter.woff2');
}

h1 {
    text-align: center;
    font-family: liter;
    margin: calc(3vh + 40px) calc(10vw - 20px);
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    justify-content: center;
    margin-bottom: 120px;
}

/* Общие стили для карточек */
.product {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 10px;
    cursor: pointer;
    /* ширина по умолчанию для минимум 2 столбцов */
    flex: 1 1 calc(33% - 50px);
    max-width: calc(33% - 50px);
}

.product img {
    max-width: 100%;
    border-radius: 8px;
}

.product-title {
    margin-top: 10px;
    font-family: liter;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    max-width: 800px;
    margin: auto;
}

.modal-content img {
    max-width: 400px;
    margin-right: 20px;
}

.modal-title {
    font-size: 24px;
    margin: 0;
    font-family: liter;
}

.modal-description {
    color: gray;
    font-family: liter;
}

#close-modal {
    font-family: liter;
    border: none;
    background: #efefef;
    padding: 4px 12px;
    border-radius: 12px;
}

body {
    margin: 0;
    padding: 0;
}

.header {
    background: rgba(220, 220, 220, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 6px 24px;
    display: flex;
    position: fixed;
    justify-content: center;
}

.header p {
    font-size: 14px;
}

a,
p {
    color: #000;
    text-decoration: none;
    font-family: liter;
    margin: 0 6px;
    text-align: center;
}

.footer {
    position: fixed;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    background: rgba(220, 220, 220, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px calc(15vw - 150px);
}

.footer p {
    text-align: start;
    margin: 0 2vw;
    font-size: 14px;
}

@media screen and (max-width: 800px) {
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        min-width: none;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.8);
    }

    .modal-content {
        display: block;
        min-width: none;
    }

    .modal-content img {
        margin-right: 0;
        width: 100%;
    }

    .modal-title {
        font-size: 24px;
        margin: 0;
        font-family: liter;
    }

    .modal-description {
        color: gray;
        font-family: liter;
    }

    .product {
        flex: 1 1 calc(48% - 50px);
        max-width: calc(48% - 50px);
    }
/* Стили для кнопок */
.btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    text-decoration: none;
    color: #fff;
    background-color: #007bff;
    border: 2px solid #007bff;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

/* Эффект при наведении */
.btn:hover {
    background-color: #fff;
    color: #007bff;
}

/* Эффект при нажатии */
.btn:focus, .btn:active {
    background-color: #0056b3;
    color: #fff;
}