@font-face {
    font-family: 'Proxima Nova';
    src: local('Proxima Nova Regular'), local('ProximaNova-Regular');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Proxima Nova';
    src: local('Proxima Nova Semibold'), local('ProximaNova-Semibold');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Proxima Nova';
    src: local('Proxima Nova Bold'), local('ProximaNova-Bold');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Main */

:root {
    --yellow: #e8ac3c;
    --yellow-bg: #F2A900;
    --dark: #2b2e36;
    --red: #7b2117;
    --brand-red: #85150E;
    --grey-bg: #f3f3f4;
    --grey-footer: #b4b5b9;
    --border: #d9d9dc;
    --text: #2b2e36;
    --text-muted: #6b6e76;
    --container: 1600px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Proxima Nova', 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: #fff;
}

img {
    max-width: 100%;
}

button, input, select {
    font: inherit;
    color: inherit;
}
button {
    border: none;
    background: none;
    cursor: pointer;
}

.header-box .wrap,
.main-box,
.footer .partners,
.nav {
    width: 80%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* Navbar */

.lang {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-end;
    gap: 1rem;
    padding-left: 16px;
}
.lang button,
.form button {
    padding: 0.2rem 1.25rem;
    border-radius: 1.25rem;
    background-color: var(--brand-red);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    line-height: 2.125rem;
}
.lang button {
    align-self: center;
    margin-top: 5px;
}
.lang div {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--yellow-bg);
    padding: 0 3.5rem 0 0.4rem;
}
.lang img {
    height: 1.5rem;
}
.uk-lang {
    width: 16px;
    height: 12px;
}
.lang select {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    outline: none;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23000'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 1.25rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 2.125rem;
    color: #000;
    cursor: pointer;
}

.favourites {
    gap: 0.4rem;
}
.favourites p:first-of-type {
    font-size: 1rem;
    font-weight: 600;
}
.favourites p:last-child {
    color: var(--brand-red);
    font-size: 1.125rem;
    font-weight: 600;
}

.nav {
    font-size: 16px;
    line-height: normal;
}
.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    padding: 2rem 0;
    margin-right: 3rem;
}
.nav-menu img {
    width: 300px;
    height: auto;
    flex-shrink: 0;
}
.nav-menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    list-style: none;
    font-size: 1.125rem;
    font-weight: 700;
    color: #4a545b;
}

/* Header */

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 8px;
    flex-shrink: 0;
}
.burger span {
    display: block;
    height: 3px;
    background: var(--brand-red);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.header-box {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background-color: var(--brand-red);
}
.header-box .wrap {
    display: grid;
    grid-template-columns: 3fr 1fr;
    align-items: center;
    gap: 24px;
}
.header-box h2 {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
}
.header-box h2 span {
    color: var(--yellow);
}

/* Search */

.search {
    display: flex;
}
.search img {
    width: 30px;
    height: 30px;
}
.search input {
    flex: 1;
    min-width: 0;
    max-width: 184.5px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-right: 0;
    background: #fff;
}
.search input:focus {
    outline: 2px solid var(--yellow);
    outline-offset: -2px;
}
.search button {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: var(--yellow);
}

.main-box {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 24px;
}
.main-box .top {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 24px;
    align-items: start;
}

/* Form */

.form {
    position: sticky;
    top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 16.25rem;
    max-width: 100%;
    padding: 20px;
    background: var(--yellow-bg);
    color: var(--brand-red);
}
.form h2 {
    font-size: 36px;
    font-weight: 900;
    width: 20%;
    margin-bottom: 4rem;
}
.form select {
    width: 100%;
    padding: 10px 0;
    border: 0;
    border-bottom: 3px solid #000;
    border-radius: 0;
    outline: none;
    color: var(--text);
    background: transparent;
    font-size: 18px;
}
.form button {
    width: 127px;
    margin: 2rem auto 0;
}

/* Products */

.products {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.products-liste {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.product {
    display: flex;
    gap: 1rem;
}
.products-liste .product {
    align-items: center;
}
.product img {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
}
.product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: var(--grey-bg);
}
.product-info > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.product h3 {
    font-size: clamp(24px, 2.4vw, 36px);
    font-weight: 900;
    line-height: 1.3;
    overflow-wrap: break-word;
}
.product h3:hover {
    color: var(--red);
}
.product-info > div:first-child p {
    font-size: 1rem;
    color: var(--text-muted);
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 3rem;
}
.product-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.price {
    font-size: 1.125rem;
    font-weight: 700;
}
.more {
    align-self: flex-start;
    font-size: clamp(18px, 1.6vw, 24px);
    color: var(--red);
    font-weight: 900;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: auto;
}
.tags button {
    padding: 2px 10px;
    background-color: var(--brand-red);
    font-size: 1rem;
    font-weight: 400;
    color: #fff;
}

/* Footer */

.footer {
    margin-top: 32px;
    background: var(--grey-footer);
}
.footer .partners {
    padding-top: 32px;
    padding-bottom: 32px;
}
.footer .partners img {
    display: block;
    height: auto;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 8px 16px;
    padding: 30px 16px 50px;
    background: var(--yellow-bg);
    font-size: 12px;
    font-weight: 600;
}

/* Modal window */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.5);
}
.modal {
    width: 100%;
    max-width: 480px;
    padding: 32px;
    background: #fff;
    color: var(--dark);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.modal-text {
    margin-bottom: 1rem;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}
.modal-mail {
    font-size: 18px;
    font-weight: 600;
    color: var(--red);
    text-decoration: underline;
    overflow-wrap: anywhere;
}
.modal-mail:hover {
    text-decoration: none;
}



@media (max-width: 1279px) {
    .products-liste {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 991px) {
    .header-box .wrap,
    .main-box,
    .footer .partners,
    .nav {
        width: 100%;
    }
    .header-box .wrap,
    .main-box .top {
        grid-template-columns: 1fr;
    }
    .nav-menu {
        flex-wrap: wrap;
        align-items: center;
        margin-right: 0;
        padding: 1.5rem 0;
    }
    .nav-menu img {
        width: min(300px, 60vw);
    }
    .burger {
        display: flex;
    }
    .nav-menu ul {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    .nav-menu.open ul {
        display: flex;
    }
    .nav-menu ul li {
        padding: 0.75rem 0;
        border-top: 1px solid var(--border);
        cursor: pointer;
    }
    .search input {
        max-width: none;
    }
    .form {
        position: static;
        width: 100%;
    }
    .form h2 {
        width: auto;
        margin-bottom: 1.5rem;
    }
}
@media (max-width: 767px) {
    .lang {
        padding: 0 16px;
        gap: 0.5rem;
    }
    .lang div {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
        padding: 0 0.5rem;
    }
    .lang select {
        width: 1.25rem;
        padding-right: 0;
        color: transparent;
        overflow: hidden;
        white-space: nowrap;
        background-position: center;
    }
    .lang select option {
        color: #000;
    }
    .product {
        flex-direction: column;
    }
    .products-liste .product {
        align-items: stretch;
    }
    .product img {
        width: 100%;
        height: auto;
    }
    .product-info > div:first-child p {
        margin-bottom: 1.5rem;
    }
    .modal {
        padding: 24px;
    }
    .modal-text {
        font-size: 18px;
    }
}
