.header {
    margin: 30px 30px 0 30px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    min-width: 0;
    flex: 0 1 420px;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
}

.language-option {
    min-width: 42px;
    padding: 7px 9px;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    transition: background-color 160ms ease, color 160ms ease;
}

.language-option:hover,
.language-option:focus-visible {
    color: #fff;
}

.language-option.is-active {
    background: #fff;
    color: #111;
}

.main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.nav-button {
    background-color: transparent;
    background-image: url(./public/images/button-bg.png);
    background-repeat: no-repeat;
    background-position: center;
    padding: 20px;
    width: 275px;
    text-transform: uppercase;
    color: #fff;
}

.nav-button-soon {
    background-image: url(./public/images/button_soon.png);
    background-repeat: no-repeat;
    background-position: center;
    height: 58px;
}

.nav-button:hover {
    background-image: url(./public/images/button-hover-bg.png);

}

.nav-button.nav-button-soon:hover {
    cursor: default;
    background-image: url(./public/images/button_soon.png);
    background-size: cover;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    overflow: auto;
    padding: clamp(8px, 2vw, 32px);
    background: rgba(4, 4, 8, 0.8);
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__panel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 100%;
    padding: 4px 2px 8px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-style: solid;
    border-width: clamp(24px, 6.5vw, 66px);
    border-image: url(./public/images/frame.png) 140 fill stretch;
    filter: drop-shadow(0 26px 60px rgba(0, 0, 0, 0.75));
}

.modal__plaque {
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(655px, 92%);
    aspect-ratio: 655 / 114;
    margin-top: calc(clamp(24px, 6.5vw, 66px) / -1.9);
    background: url(./public/images/plaque.png) center / 100% 100% no-repeat;
}

.modal__title {
    padding: 0 18px;
    font-size: clamp(14px, 1.9vw, 21px);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f2e3b4;
    text-shadow: 0 2px 4px #000;
}

.modal__close {
    position: absolute;
    top: 0;
    right: 2px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(200, 170, 105, 0.55);
    border-radius: 999px;
    background: radial-gradient(circle at 50% 30%, rgba(90, 72, 40, 0.7), rgba(12, 12, 18, 0.9));
    color: #e4d1a0;
    font-size: 17px;
    line-height: 1;
}

.modal__close:hover {
    border-color: #e6d39a;
    color: #fff5d6;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(12px, 1.8vw, 24px);
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.products.delivery {
    grid-template-columns: repeat(1, minmax(250px, 1fr));
}

.product {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    border-style: solid;
    border-width: 14px;
    border-image: url(./public/images/cell.png) 30 fill stretch;
}

.product__image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product__gallery {
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}

.product__gallery-button {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 34px;
    height: 52px;
    transform: translateY(-50%);
    border: 1px solid rgba(240, 226, 184, 0.7);
    background: rgba(5, 5, 9, 0.68);
    color: #f0e2b8;
    font-family: Georgia, serif;
    font-size: 36px;
    line-height: 1;
    opacity: 0;
    transition: opacity 160ms ease, background-color 160ms ease;
}

.product__gallery:hover .product__gallery-button,
.product__gallery-button:focus-visible {
    opacity: 1;
}

.product__gallery-button:hover {
    background: rgba(5, 5, 9, 0.9);
}

.product__gallery-button--previous {
    left: 10px;
}

.product__gallery-button--next {
    right: 10px;
}

.product__gallery-counter {
    position: absolute;
    right: 10px;
    bottom: 8px;
    padding: 3px 7px;
    background: rgba(5, 5, 9, 0.7);
    color: #f0e2b8;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.product__name {
    font-size: 17px;
    letter-spacing: 0.05em;
    color: #f0e2b8;
    text-shadow: 0 1px 3px #000;
    text-transform: uppercase;
}

.product__desc {
    flex: 1;
    font-family: Georgia, serif;
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(226, 214, 182, 0.75);
    text-wrap: pretty;
}

.product__desc.delivery {
    font-size: 16px;
}

.product__price {
    font-size: 20px;
    color: #e9d79c;
    text-shadow: 0 1px 3px #000;
}

.product__buy,
.contacts__open,
.modal__done {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    background-color: transparent;
    background-image: url(./public/images/button-bg.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.product__buy:hover,
.contacts__open:hover,
.modal__done:hover {
    background-image: url(./public/images/button-hover-bg.png);
    color: #fff;
}

.modal__divider {
    width: 100%;
    aspect-ratio: 1140 / 84;
    background: url(./public/images/divider.png) center / 100% 100% no-repeat;
}

.contacts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-style: solid;
    border-width: 12px;
    border-image: url(./public/images/cell.png) 30 fill stretch;
}

.contacts[hidden] {
    display: none;
}

.contacts__text {
    flex: 1;
    min-width: 200px;
}

.contacts__text h4 {
    font-size: 16px;
    letter-spacing: 0.06em;
    color: #f0e2b8;
}

.contacts__text p {
    font-family: Georgia, serif;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(226, 214, 182, 0.75);
}

.contacts__handle {
    font-size: 22px;
    color: #7ec8ff;
    text-shadow: 0 0 12px rgba(60, 150, 255, 0.6);
}

.contacts__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contacts__open {
    padding: 0 22px;
}

.contacts__copy {
    height: 46px;
    padding: 0 20px;
    border: 1px solid rgba(200, 170, 105, 0.5);
    background: rgba(10, 10, 16, 0.5);
    color: #e4d1a0;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.modal__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.modal__order {
    font-family: Georgia, serif;
    font-size: 14px;
    color: rgba(226, 214, 182, 0.7);
}

.modal__done {
    padding: 0 30px;
}