/* Keep the catalogue independent of the header and promotion height. */
body.catalog-menu-open { overflow: hidden; }
.catalog-menu[hidden] { display: none; }
.catalog-menu {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    padding: 24px; background: rgba(13, 35, 36, .48);
}
.catalog-menu__panel {
    width: 100%; max-width: 960px; max-height: 100%;
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0, 35, 36, .2);
}
.catalog-menu__header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 22px 28px; border-bottom: 1px solid #e4eded;
}
.catalog-menu__header h2 { margin: 0; font-size: 26px; line-height: 1.2; color: #005c5f; }
.catalog-menu__close {
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 44px; height: 44px; padding: 0; border: 0;
    border-radius: 50%; background: #eff5f5; color: #005c5f;
    font-size: 30px; line-height: 1; cursor: pointer;
}
.catalog-menu__grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px; padding: 24px 28px; overflow-y: auto; overscroll-behavior: contain;
}
.catalog-menu__card {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; min-width: 0; min-height: 144px; padding: 20px;
    border: 1px solid #e0eaea; border-radius: 12px;
    color: #183b3d; background: #fff; text-decoration: none;
    transition: background .15s, border-color .15s;
}
.catalog-menu__card:hover { color: #005c5f; background: #f3f9f8; border-color: #77a9a6; text-decoration: none; }
.catalog-menu__card span { min-width: 0; font-size: 20px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.catalog-menu__card img { flex: 0 0 112px; width: 112px; height: 104px; object-fit: contain; }
.catalog-menu__card--all { background: #edf6f5; }
.catalog-menu__card small { display: block; margin-top: 8px; font-size: 14px; font-weight: 400; }
.catalog-menu a:focus-visible, .catalog-menu button:focus-visible { outline: 3px solid #005c5f; outline-offset: -4px; }
#promo-week { padding-right: 44px !important; }
#promo-week > button { right: 2px !important; top: 2px !important; min-width: 40px; min-height: 40px; }
@media (min-width: 993px) {
    .catalog-menu { background: rgba(0, 0, 0, .65); }
    .catalog-menu__panel { position: relative; max-width: 1200px; border-radius: 8px; box-shadow: none; }
    .catalog-menu__header { position: absolute; top: 8px; right: 8px; z-index: 1; padding: 0; border: 0; }
    .catalog-menu__header h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .catalog-menu__close { flex-basis: 32px; width: 32px; height: 32px; background: #fff; color: #333; font-size: 26px; }
    .catalog-menu__grid { gap: 0 20px; padding: 48px 40px 25px; }
    .catalog-menu__card { min-height: 248px; padding: 20px; gap: 16px; border: 2px solid #f4f4f4; border-radius: 10px; color: #262626; }
    .catalog-menu__card span { flex: 1 1 0; font-size: clamp(20px, 1.6vw, 30px); font-weight: 400; line-height: 1; text-transform: uppercase; }
    .catalog-menu__card img { flex: 0 0 36%; width: 36%; max-width: 220px; height: 220px; }
    .catalog-menu__card--all { background: #fff; }
    .catalog-menu__card--all span { max-width: 200px; }
    .catalog-menu__card small { display: none; }
    .catalog-menu__card:hover { background: #fff; border-color: #dcebea; color: #005c5f; }
    #verh header > .container { max-width: 100%; }
    #verh header > .container > .row { display: flex; align-items: center; }
    #verh header > .container > .row > div { float: none; min-width: 0; }
    #verh header > .container > .row > div:nth-child(1) { flex: 0 0 8%; }
    #verh header > .container > .row > div:nth-child(3) { flex: 0 0 15%; }
    #verh header > .container > .row > div:nth-child(4) { flex: 0 0 170px; }
    #verh #menuosn { flex: 1 1 0; width: auto; margin: 0; }
    #verh header > .container > .row > div:last-child { flex: 0 0 22%; }
    #verh .opisdeyat, #verh #menuknop, #verh #search, #verh ul.nesk { margin-top: 0; margin-bottom: 0; }
    #verh #search { width: 100%; max-width: none; margin: 0; }
    #verh #menuknop { margin: 0; }
    #verh #menuknop a { margin: 0; padding: 0 16px; white-space: nowrap; }
    #verh ul.nesk { display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 0; }
    #verh ul.nesk li.triod { flex: 1 1 0; width: auto; min-width: 0; }
}
@media (min-width: 993px) and (max-width: 1200px) {
    #verh header > .container > .row > div:last-child { flex-basis: 250px; }
}
@media (max-width: 992px) {
    #menutwigmob .hidden-md, #verh .hidden-md { display: block !important; }
    #verh .hidden-xs.hidden-sm { display: none !important; }
    #menutwigmob { top: 0; }
    body.promo-on #promo-week { margin-top: 77px; }
    body.promo-on #vynosvv { margin-top: 8px; }
}
@media (max-width: 600px) {
    .catalog-menu { padding: 12px; }
    .catalog-menu__header { padding: 16px; }
    .catalog-menu__header h2 { font-size: 22px; }
    .catalog-menu__grid { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 10px; }
    .catalog-menu__card { min-height: 104px; padding: 16px; }
    .catalog-menu__card span { font-size: 18px; }
    .catalog-menu__card img { flex-basis: 80px; width: 80px; height: 80px; }
}
