/* Веста Альфа — look of the old vesta-alpha.com (Joomla template beez5), made responsive. */

/* The old site served Calibri as a web font. Calibri itself may not be redistributed, so where it is not
   installed (Mac, Android, iOS) Carlito is used: an open font with exactly the same letter widths. */
@font-face {
    font-family: Carlito;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/carlito-400-cyrillic.woff2) format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: Carlito;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/carlito-400-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: Carlito;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/carlito-700-cyrillic.woff2) format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: Carlito;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/carlito-700-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --font: Calibri, Carlito, "Segoe UI", Arial, sans-serif;
    --font-head: Georgia, "Times New Roman", serif;
    --text: #333;
    --text-dark: #363739;
    --muted: #4b4a4a;
    --accent: #880000;
    --price: #91191d;
    --price-big: #9f2b39;
    --line: #b9babb;
    --page-bg: #d4d6d7;
    --bar: #2f2f2f;
    --panel-border: #eee;
    --panel-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    --width: 980px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-width: 320px;
    font: 13px/1.35 var(--font);
    color: #000;
    background: var(--page-bg) url(../img/page-bg-top.png) center top no-repeat;
}

/* Not «.page»: WordPress puts that class on <body> of every page (home, contacts) */
.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: url(../img/page-bg-bottom.png) center bottom no-repeat;
}

a { color: var(--text); }
img { max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.romul,
.page-title {
    font: 700 24px/1.15 var(--font-head);
    color: var(--text-dark);
    margin: 0 0 16px;
}

/* ---------- Header ---------- */

.header-top {
    max-width: var(--width);
    height: 106px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 50px;
}

.logo { flex: 0 0 auto; display: block; margin-left: 28px; }
.logo img { display: block; }

.search-box {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 602px;
    max-width: 100%;
    height: 50px;
    padding: 0 12px 0 3px;
    background: #d9d9d9;
    border: 1px solid #c5c5c5;
}
.search-box form { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; }

.search-input {
    flex: 1 1 auto;
    width: 340px;
    min-width: 0;
    height: 33px;
    padding: 2px 6px;
    font: 18px var(--font);
    background: #fff;
    border: 2px solid #eee;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; }

.search-submit {
    flex: 0 0 auto;
    height: 25px;
    padding: 0 6px;
    font: 15px var(--font);
    text-transform: uppercase;
    color: #f3f5f5;
    background: #717171 url(../img/bg_srchbtn.gif) repeat-x;
    border: 1px solid #e9e9e9;
}
.search-submit:hover { color: #fff; background: #5a5a5a; }

.header-phone {
    flex: 0 0 auto;
    font: 20px var(--font);
    color: #393838;
    text-decoration: none;
    white-space: nowrap;
}

.nav-toggle { display: none; }

/* Dark menu bar with КАТАЛОГ / КОНТАКТЫ */
.topmenu {
    height: 34px;
    background: var(--bar) url(../img/bg_nemenu.gif) repeat-x;
    margin-bottom: 20px;
}
.topmenu-list {
    position: relative;
    max-width: var(--width);
    height: 100%;
    margin: 0 auto;
    padding: 0 0 0 224px; /* the first word lines up with the search field above */
    list-style: none;
    display: flex;
}
.topmenu-item { position: static; display: flex; }
.topmenu-item + .topmenu-item { background: url(../img/mmenu_separat.gif) left center no-repeat; padding-left: 2px; }
.topmenu-link {
    display: flex;
    align-items: center;
    padding: 0 20px;
    font: 700 11px var(--font);
    letter-spacing: .02em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
}
.topmenu-link:hover,
.topmenu-link.is-active,
.has-dropdown.is-open .topmenu-link {
    color: #222;
    background: linear-gradient(#f2f2f2, #cfd0d1);
}

.catalog-dropdown {
    display: none;
    position: absolute;
    z-index: 50;
    top: 34px;
    left: 119px; /* moved with the menu words (+24px) */
    width: 580px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    background: #e8e9ea url(../img/topmenu-bg.jpg) left top;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}
.has-dropdown.is-open .catalog-dropdown { display: grid; }
@media (hover: hover) {
    .has-dropdown:hover .catalog-dropdown { display: grid; }
    .has-dropdown:hover .topmenu-link { color: #222; background: linear-gradient(#f2f2f2, #cfd0d1); }
}
.catalog-dropdown-item {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 87px;
    padding: 8px 20px;
    font-size: 13px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #d0d1d2;
    border-right: 1px solid #d0d1d2;
}
.catalog-dropdown-item:hover { background: rgba(255, 255, 255, .55); }
/* Section icons already have their rounded frame */
.catalog-dropdown-icon { flex: 0 0 auto; width: 75px; height: 75px; }
.catalog-dropdown-icon img { display: block; width: 75px; height: 75px; }

/* ---------- Layout ---------- */

.wrapper {
    flex: 1 0 auto;
    width: 100%;
    max-width: calc(951px + 2 * 15px);
    margin: 0 auto;
    padding: 0 15px 40px;
}

.content-wrap { display: flex; align-items: flex-start; gap: 0; }
.content-left { flex: 0 0 237px; width: 237px; }
.content-right { flex: 1 1 auto; min-width: 0; padding-left: 14px; }
.content-narrow { max-width: 560px; margin: 0 auto; }

/* Translucent panels (sidebar blocks, filter box) */
.side-block,
.catalog-filters {
    background: url(../img/gray-semitransdot.png);
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
}

/* ---------- Left catalog ---------- */

.sidebar-toggle { display: none; }
.side-block { margin-bottom: 12px; }
.side-cat + .side-cat { border-top: 1px solid #fff; }

.cat-tile {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 54px;
    padding: 1px 18px;
    text-decoration: none;
}
.cat-tile-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 50px;
    height: 51px;
    background: url(../img/icon-pd-bg2.png) no-repeat;
}
.cat-tile-icon img { width: 38px; height: 38px; object-fit: contain; border-radius: 4px; }
.cat-tile-title {
    font: 700 12px/1.2 var(--font-head);
    text-transform: uppercase;
    color: #363636;
}
.cat-tile:hover .cat-tile-title,
.cat-tile.is-active .cat-tile-title { color: #000; }

.side-group {
    display: block;
    margin: 6px 18px 2px 52px;
    font: 700 12px var(--font-head);
    color: #000;
    text-decoration: none;
}

.side-list {
    margin: 0;
    padding: 2px 18px 10px 30px;
    list-style: none;
}
.side-list li {
    position: relative;
    padding-left: 20px;
    color: var(--accent);
}
.side-list li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: .65em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #9a9a9a;
}
.side-list li.is-active::before { background: var(--accent); }
.side-list a {
    display: inline-block;
    padding: 1px 0;
    font-size: 14px;
    color: #252525;
    text-decoration: none;
}
.side-list a:hover { text-decoration: underline; }
.side-list .is-active > a { color: var(--accent); }

/* ---------- Section pages (category tiles, brands) ---------- */

.section-intro { margin: -4px 0 20px; font-size: 13px; }

.section-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px 14px;
    margin-bottom: 30px;
}
.section-tiles-big { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.section-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    line-height: 1.25;
    color: #222;
    text-decoration: none;
}
.section-tile-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 97px;
    height: 98px;
    background: url(../img/icon-pd-bg.png) no-repeat;
}
.section-tile-icon img { width: 74px; height: 74px; object-fit: contain; border-radius: 6px; }
.section-tiles-big .section-tile-icon { background: none; }
.section-tiles-big .section-tile-icon img { width: 97px; height: 98px; }
.section-tile:hover .section-tile-name { text-decoration: underline; }

.brands-title { font: 400 22px var(--font); color: var(--text-dark); margin: 10px 0 14px; }
.brand-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    justify-items: center;
    gap: 10px;
}
.brand-tile {
    display: grid;
    place-items: center;
    height: 80px;
    padding: 8px;
    background: #fff;
    border: 1px solid #ddd;
    text-align: center;
    font: 700 13px var(--font-head);
    color: #363636;
    text-decoration: none;
}
.brand-tile:hover { border-color: #999; }
/* Logos from the old site already have their rounded frame */
.brand-tile.has-logo { height: auto; padding: 0; background: none; border: 0; }
.brand-tile.has-logo img { display: block; width: 94px; height: 94px; object-fit: contain; transition: transform .15s; }
.brand-tile.has-logo:hover img { transform: scale(1.05); }

/* ---------- Category page ---------- */

.cat-subtitle { font: 400 24px var(--font); color: var(--text-dark); margin: -2px 0 20px; }

.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px 24px;
    margin: 0 0 20px;
    padding: 11px;
}
.filter-selects {
    flex: 1 1 260px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    max-width: 260px;
}
.filter-select select {
    width: 100%;
    height: 22px;
    padding: 0 4px;
    font: 12px var(--font);
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 2px;
}
.filter-price {
    flex: 0 1 300px;
    margin: 0 0 0 auto;
    padding: 8px 12px 6px;
    background: #fff;
    border: 1px solid #ddd;
    min-width: 0;
}
.filter-price legend {
    float: left;
    padding: 0;
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 13px;
}
.filter-price-inputs { clear: both; display: flex; gap: 10px; font-size: 12px; }
.filter-price-inputs label { display: flex; align-items: center; white-space: nowrap; }
.filter-price-inputs input {
    width: 84px;
    height: 24px;
    margin-left: 4px;
    padding: 0 4px;
    font: 13px var(--font);
    border: 1px solid #ccc;
    -moz-appearance: textfield;
}
.filter-price-inputs input::-webkit-inner-spin-button { -webkit-appearance: none; }
.filter-price-slider { position: relative; height: 22px; margin-top: 4px; }
.filter-price-slider input {
    position: absolute;
    inset: 0;
    width: 100%;
    margin: 0;
    pointer-events: none;
    background: none;
    -webkit-appearance: none;
    appearance: none;
}
.filter-price-slider::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 9px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #ddd var(--from, 0%), #f0b545 var(--from, 0%), #f0b545 var(--to, 100%), #ddd var(--to, 100%));
}
.filter-price-slider input::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #999;
    cursor: pointer;
}
.filter-price-slider input::-moz-range-thumb {
    pointer-events: auto;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #999;
    cursor: pointer;
}
.filter-price-limits { display: flex; justify-content: space-between; font-size: 11px; color: #666; }

.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 12px;
    padding-left: 6px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 366px;
    padding: 6px 12px 14px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: -3px 3px 6px rgba(0, 0, 0, .12);
    color: #333;
    text-decoration: none;
    transition: box-shadow .15s;
}
.product-card:hover { box-shadow: -3px 3px 10px rgba(0, 0, 0, .25); }
.product-status {
    align-self: flex-end;
    min-height: 18px;
    font-size: 12px;
    color: #333;
}
.product-status img { position: relative; top: 2px; }
.product-image {
    display: grid;
    place-items: center;
    height: 190px;
    margin: 4px 0 10px;
}
.product-image img { max-height: 190px; width: auto; object-fit: contain; }
.product-info { display: flex; flex-direction: column; gap: 3px; }
.product-brand { font: 700 16px/1.15 var(--font-head); color: #363636; }
.product-price { font: 700 18px var(--font-head); color: var(--price); white-space: nowrap; }
.product-price small { font-size: 12px; color: #4e4e4e; }
.product-article { font-size: 12px; color: var(--muted); }
.product-name { font-size: 12px; color: var(--muted); }

.show-more-wrap { text-align: center; margin: 24px 0 0; }
.show-more {
    display: inline-block;
    min-width: 166px;
    padding: 3px 18px;
    font: 700 13px var(--font);
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: #7b7b7b url(../img/show_more_empty.gif) center / 100% 100%;
    border-radius: 3px;
}
.show-more:hover { filter: brightness(1.1); }
.show-more.is-loading { opacity: .6; pointer-events: none; }

.pagination { margin-top: 16px; text-align: center; font-size: 14px; }
.pagination .page-numbers { display: inline-block; min-width: 26px; padding: 2px 6px; color: #333; }
.pagination .current { font-weight: 700; color: var(--accent); }
.js .pagination { display: none; }

.no-products { font-size: 15px; margin: 20px 0; }
.cat-description { margin-top: 30px; }

/* ---------- Product page ---------- */

.product-page {
    display: grid;
    grid-template-columns: 510px 1fr;
    gap: 0 5px;
    padding: 0 15px 20px 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.product-top {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 0 10px 13px;
}
.breadcrumbs,
.product-actions {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 11px;
}
.breadcrumbs li + li::before { content: ">"; margin: 0 6px; color: #000; }
.breadcrumbs a { color: #333; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: #aaa; }
.product-actions { flex-wrap: nowrap; white-space: nowrap; }
.product-actions li + li::before { content: "|"; margin: 0 8px; color: #333; }
.back-link,
.print-link { color: #333; text-decoration: none; }
.back-link::before { content: "▶"; margin-right: 5px; color: #b9b9b9; }
.back-link:hover,
.print-link:hover { text-decoration: underline; }

.product-left { padding: 20px 20px 0 30px; }
.product-main-image {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 422px;
    aspect-ratio: 1;
    border: 1px solid transparent;
    cursor: zoom-in;
}
.product-main-image img { max-height: 420px; width: auto; object-fit: contain; }
.zoom-hint {
    display: inline-block;
    margin: 20px 0 6px;
    padding-left: 25px;
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: none;
    color: #333;
    background: url(../img/zoom.png) left center no-repeat;
}
.zoom-hint:hover { text-decoration: underline; }
.product-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px -16px 0 -16px; padding: 0 10px; }
.product-thumb {
    width: 90px;
    height: 90px;
    padding: 0;
    background: #fff;
    border: 1px solid #ddd;
}
.product-thumb.is-active { border-color: #333; }
.product-thumb img { display: block; width: 88px; height: 88px; object-fit: contain; }

.product-right { padding-top: 0; min-width: 0; }
.product-title {
    margin: -2px 0 10px;
    font: 700 22px/1.15 var(--font-head);
    color: #333;
}

.tabs { display: flex; gap: 2px; margin-bottom: 4px; }
.tab {
    padding: 6px 10px;
    font: 11px var(--font);
    text-transform: uppercase;
    color: #333;
    background: linear-gradient(#f6f6f6, #dadbdc);
    border: 1px solid #ccc;
}
.tab:hover { background: linear-gradient(#fff, #e6e7e8); }
.tab.is-active { background: #fff; border-bottom-color: #fff; font-weight: 700; }

.tab-pane { font-size: 13px; }
.tab-pane[data-pane="info"] { margin-top: 6px; }

.variant-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 4px 0 8px; }
.variant-button {
    min-width: 34px;
    padding: 4px 8px;
    font: 700 12px var(--font);
    text-transform: uppercase;
    color: #333;
    background: #e8e8e8;
    border: 1px solid #ccc;
}
.variant-button.is-active { color: #fff; background: #6b6b6b; border-color: #555; }

.props { width: 100%; border-collapse: collapse; font-size: 12px; }
.props th,
.props td {
    padding: 4px 6px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e3e3e3;
}
.props th { width: 36%; font-weight: 400; color: #454545; }
.props td { font-weight: 700; color: #222; }

.price-row { display: flex; align-items: center; gap: 30px; padding: 12px 14px; }
.p-price { font: 700 22px var(--font); color: var(--price-big); }
.p-rouble { color: #2d2d2d; }
.stock-badge {
    padding: 3px 12px;
    font: 700 12px var(--font);
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(#8fc56a, #5e9a3c);
    border: 1px solid #4f8a30;
    border-radius: 2px;
}
.stock-badge.is-out { background: linear-gradient(#bbb, #888); border-color: #777; }

.accordion-item { border-top: 1px solid #fff; }
.accordion-item summary {
    padding: 7px 16px;
    font: 14px var(--font);
    text-transform: uppercase;
    background: #d7d8d9;
    cursor: pointer;
    list-style: none;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after { content: "+"; float: right; color: #555; }
.accordion-item[open] summary::after { content: "–"; }
.accordion-body { padding: 10px 16px; font-size: 13px; }

.entry-content p { margin: 0 0 .7em; }
.entry-content a { color: var(--accent); }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .8);
}
.lightbox img { max-width: 92vw; max-height: 90vh; background: #fff; }
.lightbox button {
    position: absolute;
    color: #fff;
    background: none;
    border: 0;
    font-size: 40px;
    line-height: 1;
    padding: 10px 16px;
}
.lightbox-close { top: 10px; right: 10px; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Home ---------- */

.home-top { display: grid; grid-template-columns: 605fr 300fr; gap: 8px; margin-bottom: 40px; }
.banner-frame { position: relative; background: #fff; padding: 5px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); min-height: 60px; }

.va-slider { position: relative; overflow: hidden; }
.va-slide { display: none; }
.va-slide.is-active { display: block; animation: va-fade .5s; }
.va-slide img { display: block; width: 100%; height: auto; }
@keyframes va-fade { from { opacity: 0; } to { opacity: 1; } }
.va-slider-prev,
.va-slider-next {
    position: absolute;
    top: 50%;
    width: 22px;
    height: 54px;
    margin-top: -27px;
    border: 0;
    opacity: 0;
    transition: opacity .2s;
    background: rgba(0, 0, 0, .35);
}
.va-slider-prev { left: 0; }
.va-slider-next { right: 0; }
.va-slider-prev::before, .va-slider-next::before { content: "‹"; color: #fff; font-size: 26px; }
.va-slider-next::before { content: "›"; }
.va-slider:hover .va-slider-prev,
.va-slider:hover .va-slider-next { opacity: 1; }
.home-text { margin-top: 30px; }

/* ---------- Footer ---------- */

.footer {
    display: flex;
    align-items: center;
    width: calc(100% - 30px);
    max-width: 929px;
    height: 39px;
    margin: 0 auto 30px;
    background: linear-gradient(#fdfdfd, #e3e4e5);
    border: 1px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.footer-copy {
    flex: 0 0 auto;
    padding: 0 24px;
    font-size: 10px;
    color: #555;
    border-right: 1px solid #ccc;
    line-height: 37px;
}
.footer-link {
    flex: 1 1 auto;
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    text-decoration: none;
    color: #333;
}
.footer-link:hover { text-decoration: underline; }

.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 38px;
    height: 38px;
    background: url(../img/uparray.png);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s;
}
.to-top.is-visible { opacity: .8; visibility: visible; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
    .header-top { gap: 20px; }
    .logo { margin-left: 0; }
    .topmenu-list { padding-left: 120px; }
    .catalog-dropdown { left: 15px; }
    .products { grid-template-columns: repeat(2, 1fr); }
    .product-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .product-left { padding-left: 15px; }
}

@media (max-width: 767px) {
    body { font-size: 14px; background-size: 1400px auto; }

    .header-top { height: auto; flex-wrap: wrap; gap: 8px 12px; padding: 10px 15px; }
    .logo img { width: 90px; height: auto; }
    .search-box { order: 3; width: 100%; height: auto; flex-wrap: wrap; gap: 6px; padding: 6px; }
    .search-box form { width: 100%; }
    .search-input { height: 34px; font-size: 16px; }
    .header-phone { font-size: 17px; margin: 0 auto 0 4px; }
    .nav-toggle {
        display: block;
        margin-left: auto;
        width: 40px; height: 40px;
        background: none;
        border: 0;
        position: relative;
    }
    .nav-toggle span,
    .nav-toggle span::before,
    .nav-toggle span::after {
        position: absolute;
        left: 9px;
        width: 22px;
        height: 2px;
        background: #333;
        content: "";
    }
    .nav-toggle span { top: 19px; }
    .nav-toggle span::before { top: -7px; left: 0; }
    .nav-toggle span::after { top: 7px; left: 0; }

    .topmenu { height: auto; min-height: 34px; margin-bottom: 14px; }
    .topmenu-list { padding: 0; flex-wrap: wrap; }
    .topmenu-item { flex: 1 1 50%; }
    .topmenu-link { flex: 1; justify-content: center; height: 34px; }
    .has-dropdown { flex-basis: 50%; }
    .catalog-dropdown {
        position: absolute;
        left: 0; right: 0;
        width: auto;
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-flow: row;
    }
    .header .topmenu { display: none; }
    .header.is-nav-open .topmenu { display: block; }
    .catalog-dropdown-item { min-height: 64px; padding: 6px 14px; }
    .catalog-dropdown-icon,
    .catalog-dropdown-icon img { width: 52px; height: 52px; }

    .content-wrap { flex-direction: column; }
    .content-left { width: 100%; flex-basis: auto; margin-bottom: 14px; }
    .content-right { padding-left: 0; width: 100%; }
    .sidebar-toggle {
        display: block;
        width: 100%;
        padding: 9px 14px;
        font: 700 13px var(--font-head);
        text-transform: uppercase;
        text-align: left;
        color: #333;
        background: url(../img/gray-semitransdot.png);
        border: 1px solid var(--panel-border);
        box-shadow: var(--panel-shadow);
    }
    .sidebar-toggle::after { content: "▾"; float: right; }
    .sidebar-inner { display: none; margin-top: 8px; }
    .content-left.is-open .sidebar-inner { display: block; }

    .romul, .page-title { font-size: 21px; }
    .cat-subtitle { font-size: 19px; margin-bottom: 14px; }
    .catalog-filters { gap: 10px; }
    .filter-selects { max-width: none; flex-basis: 100%; }
    .filter-price { flex-basis: 100%; margin-left: 0; }

    .products { grid-template-columns: repeat(2, 1fr); gap: 10px; padding-left: 0; }
    .product-card { min-height: 0; padding: 6px 8px 10px; }
    .product-image { height: 140px; }
    .product-image img { max-height: 140px; }
    .product-brand { font-size: 14px; }
    .product-price { font-size: 15px; white-space: normal; }

    .section-tiles { grid-template-columns: 1fr; gap: 10px; }
    .section-tile-icon { width: 70px; height: 70px; background-size: 70px 70px; }
    .section-tile-icon img { width: 52px; height: 52px; }

    .product-page { display: block; padding: 0 12px 16px; }
    .product-top { flex-direction: column; align-items: flex-start; padding: 10px 0; }
    .product-left { padding: 0; }
    .product-main-image { margin: 0 auto; }
    .product-thumbs { margin: 6px 0 14px; padding: 0; }
    .product-thumb { width: 64px; height: 64px; }
    .product-thumb img { width: 62px; height: 62px; }
    .zoom-hint { display: none; }
    .product-title { font-size: 20px; margin-top: 4px; }
    .tabs { flex-wrap: wrap; }
    .props { font-size: 13px; }

    .home-top { grid-template-columns: 1fr; }

    .footer { height: auto; flex-wrap: wrap; }
    .footer-copy { border-right: 0; }
}

@media print {
    .header, .footer, .content-left, .product-actions, .tabs, .zoom-hint, .to-top, .catalog-filters { display: none !important; }
    body, .site { background: #fff; }
    .product-page { box-shadow: none; }
    .accordion-item { display: block; }
}

/* ---------- Contacts ---------- */

.contacts .entry-content { font-size: 13px; }
.contacts .contact-line,
.contacts .contact-head,
.contacts .contact-metro {
    min-height: 26px;
    padding-left: 32px;
    background: left center no-repeat;
}
.contacts .contact-line { display: flex; align-items: center; margin: 6px 0; }
.contacts .contact-phone { background-image: url(../img/contacts/newphone.png); font-size: 14px; }
.contacts .contact-mail { background-image: url(../img/contacts/newmail.png); }
.contacts .contact-line a { color: #333; }
.contacts .contact-head {
    margin: 24px 0 6px;
    font: 400 19px/26px var(--font);
    color: #333;
    background-size: 24px 24px;
}
.contacts .contact-head + p { padding-left: 32px; }
.contacts .contact-head ~ p { padding-left: 32px; }
.contacts .contact-clock { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 6.5V12l3.5 2.5'/%3E%3C/svg%3E"); }
.contacts .contact-place { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.6'%3E%3Cpath d='M12 22s7-6.6 7-12.2A7 7 0 0 0 5 9.8C5 15.4 12 22 12 22z'/%3E%3Ccircle cx='12' cy='9.8' r='2.6'/%3E%3C/svg%3E"); }
.contacts p.contact-metro {
    padding-left: 54px;
    background: url(../img/contacts/metro.png) 32px center no-repeat;
}
.contact-map { margin-top: 24px; border: 1px solid #ccc; background: #fff; }
.contact-map iframe { display: block; border: 0; }

/* ---------- Brand pages (old site layout) ---------- */

.side-title {
    margin: 0 18px;
    padding: 12px 0 6px;
    font: 700 13px var(--font-head);
    color: #363636;
    border-bottom: 1px solid #b23a3a;
}
.side-brand-list .side-list { padding: 8px 18px 14px 18px; }
.side-brand-list .side-list li { padding-left: 0; }
.side-brand-list .side-list li::before { display: none; }
.side-brand-list .side-list a { font-size: 12px; }

.brand-media { margin: 0 0 30px; max-width: 690px; }
.brand-media .tabs { margin-bottom: 0; }
.brand-gallery,
.brand-video {
    position: relative;
    padding: 5px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.brand-gallery img { display: block; width: 100%; height: auto; }
.brand-badge {
    position: absolute;
    left: 5px;
    right: 5px;
    bottom: 5px;
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 26px;
    background: rgba(40, 40, 40, .45);
}
.brand-badge img { max-height: 46px; width: auto; }
.brand-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

.brand-group-title { font: 400 18px var(--font); color: #333; margin: 24px 0 10px; }
.brand-accordion { max-width: 690px; }
.brand-cat { margin-bottom: 2px; }
.brand-cat > summary {
    padding: 7px 14px;
    font: 12px var(--font);
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(#4c5a5f, #8fa3aa 55%, #4f5c61);
    cursor: pointer;
    list-style: none;
}
.brand-cat > summary::-webkit-details-marker { display: none; }
.brand-cat > summary::before { content: "▸"; display: inline-block; width: 14px; }
.brand-cat[open] > summary { color: #333; background: none; }
.brand-cat[open] > summary::before { content: ""; }
.brand-cat > .products { padding: 6px 0 16px 6px; }
.brand-history { max-width: 690px; }

@media (max-width: 767px) {
    .brand-badge { height: 40px; padding: 0 12px; }
    .brand-badge img { max-height: 30px; }
}

/* Brand logo first in the product photo row; a click opens «О бренде» */
.product-thumb-brand { box-shadow: 0 3px 3px rgba(0, 0, 0, .15); }
.product-thumb-brand:hover { border-color: #333; }
.product-thumb-brand:disabled { cursor: default; }
.product-thumb-brand:disabled:hover { border-color: #ddd; }
.brand-pane-logo { margin: 6px 0 15px; text-align: center; }
.brand-pane-logo img { width: 200px; height: auto; }

/* ======================================================================
   Typography of the old vesta-alpha.com (measured on its pages, 2026-10-31).
   Kept in one place on purpose: sizes and colours exactly as there.
   ====================================================================== */

body { font: 12px/normal var(--font); }

/* Header, menu, footer */
.topmenu-link { font: 400 14px/13px var(--font); letter-spacing: 0; }
.topmenu-link:hover,
.topmenu-link.is-active,
.has-dropdown.is-open .topmenu-link { color: #606060; }
.catalog-dropdown-item { font-size: 18px; line-height: 23.4px; color: #363636; }
.footer-copy { font-size: 13px; color: #929292; }
.footer-link { font-size: 14px; color: #606060; }

/* Headings */
.romul, .page-title { font: 700 24px/normal var(--font-head); color: #363739; }
.product_cat-section .romul,
.content-jewelry .romul,
.brand-page .romul { font-size: 26px; }
.cat-subtitle { font: 400 24px/28.8px var(--font); color: #363739; }
.brands-title,

/* Section page */
.section-intro { font-size: 14px; line-height: 19px; color: #474747; }
.section-tile { font-size: 18px; line-height: normal; color: #333; }

/* Left column */
.side-list a { font-size: 14px; line-height: 19.6px; color: #252525; }
.side-title { font: 700 15.6px var(--font-head); color: #363636; }
.side-brand-list .side-list a { font-size: 14px; }

/* Filters */
.filter-select select { font: 14px var(--font); color: #757677; height: 24px; }
.filter-price legend { font-size: 14px; font-weight: 700; color: #4a4a4a; }
.filter-price-inputs { font-size: 12px; color: #666; }
.filter-price-limits { font-size: 12px; color: #252525; }

/* Product page */
.tab { font: 400 13px var(--font); text-transform: uppercase; color: #000; }
.tab.is-active { font-weight: 400; color: #91191d; }
.variant-button { font: 400 14px var(--font); }
.props { font-size: 14px; }
.props th { font-size: 14px; line-height: 17px; color: #454545; }
.props td { font-size: 15px; line-height: 17px; font-weight: 700; color: #000; }
.tab-pane.entry-content,
.accordion-body { font-size: 14.6667px; line-height: 16px; color: #5d5e5e; }
.accordion-body { color: #4a5151; }
.tab-pane.entry-content a,
.accordion-body a { color: #333; }
/* «ОПТОМ» on top of «Купить» */
.tab-pane[data-pane="buy"] > p:first-child > strong:only-child { font-weight: 400; color: #91191d; line-height: 20px; }

/* Brand texts: as typed in Word on the old site */
.brand-history,
.tab-pane[data-pane="brand"] p,
.tab-pane[data-pane="brand"] li {
    font: 16px/18.4px "Times New Roman", Times, serif;
    color: #000;
    text-align: justify;
}

/* Brand page */
.brand-group-title { font: 400 24px/normal var(--font); color: #2f2f2f; }
.brand-cat > summary { font: 400 17px/20.4px var(--font); }
.brand-cat[open] > summary { color: #515151; }
.brand-media .tab { font: 400 13px "Century Gothic", CenturyGothic, AppleGothic, var(--font); color: #656566; }
.brand-media .tab.is-active { color: #656566; }

/* Contacts */
.contacts .entry-content { font-size: 16px; color: #333; }
.contacts .entry-content strong { color: #222; }
.contacts .contact-head { font: 400 22px/26.4px var(--font); color: #363739; }
.contacts .contact-line { font-size: 16px; }

@media (max-width: 767px) {
    .romul, .page-title,
    .product_cat-section .romul,
    .content-jewelry .romul,
    .brand-page .romul { font-size: 21px; }
    .cat-subtitle, .brands-title, .home-cats-title, .brand-group-title { font-size: 19px; line-height: 1.2; }
    .section-tile { font-size: 16px; }
    .catalog-dropdown-item { font-size: 16px; line-height: 1.25; }
    .topmenu-link { line-height: 34px; }
    .brand-cat > summary { font-size: 15px; }
}
.cat-tile.is-active .cat-tile-title { color: #363636; }
.variant-button { color: #000; }
.breadcrumbs, .product-actions { line-height: 16px; }

/* ======================================================================
   Product cards as on the old site (measured 2026-10-31): 219px wide incl. the 10px left shadow,
   inner padding 25/25/15, 155px photo raised by 15px, brand column 110px, stock mark bottom right.
   ====================================================================== */
.products {
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    gap: 15px 5px;
    padding-left: 0;
}
.product-card {
    position: relative;
    display: block;
    min-height: 366px;
    margin-left: 10px;
    padding: 25px 25px 34px;
    background: #fff;
    border: 1px solid #b9babb;
    border-left: 0;
    box-shadow: -6px 3px 6px -2px rgba(0, 0, 0, .18), 0 4px 5px -3px rgba(0, 0, 0, .2);
    color: #333;
    text-decoration: none;
    transition: none;
}
.product-card:hover { box-shadow: -6px 3px 6px -2px rgba(0, 0, 0, .18), 0 4px 5px -3px rgba(0, 0, 0, .2); }
.product-image {
    display: grid;
    place-items: center;
    width: 155px;
    height: 155px;
    margin: -15px auto 0;
    cursor: pointer;
}
.product-image img { max-width: 155px; max-height: 155px; width: auto; height: auto; object-fit: contain; }
.product-info { display: block; margin-top: 15px; }
.product-brand {
    display: block;
    max-width: 110px;
    margin-bottom: 8px;
    font: 700 16px/normal var(--font-head);
    color: #363636;
    text-align: left;
}
.product-price {
    display: block;
    margin-bottom: 8px;
    font: 700 18px/20px var(--font-head);
    color: #91191d;
    white-space: normal;
}
.product-price small { font-size: 12px; color: #4e4e4e; }
.product-text {
    display: block;
    padding: 2px 15px 8px 0;
    font: 12px/12px var(--font);
    color: #4b4a4a;
    text-align: left;
}
.product-article { white-space: nowrap; }
.product-article, .product-name { font-size: 12px; color: #4b4a4a; }
.product-status {
    position: absolute;
    right: 15px;
    bottom: 8px;
    font-size: 12px;
    color: #333;
    white-space: nowrap;
}
.product-status img { position: relative; top: 3px; }

@media (max-width: 767px) {
    .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 4px; }
    .product-card { min-height: 0; margin-left: 6px; padding: 18px 12px 32px; }
    .product-image { width: 100%; height: 130px; margin-top: -8px; }
    .product-image img { max-width: 100%; max-height: 130px; }
    .product-brand { max-width: none; font-size: 14px; }
    .product-price { font-size: 15px; }
    .product-status { right: 10px; }
}
/* Old site: the open tile's name again under it, then its subcategories */
.side-open-name { display: block; margin: 6px 18px 4px 70px; font: 700 12px/1.25 var(--font-head); color: #000; }
/* Exact old geometry: 219px column = 10px shadow + 209px card; photo at 27px from the top, text from 197px */
@media (min-width: 768px) {
    .products { grid-template-columns: repeat(auto-fill, 219px); gap: 15px 5px; }
    .product-image { position: relative; top: 2px; margin-top: 0; }
    .product-info { margin-top: 17px; }
}
/* Long articles («DOUGLAS TURQUOISE PINE 160») wrap instead of leaving the card */
.product-article { white-space: normal; overflow-wrap: anywhere; }
.product-card { overflow: hidden; min-width: 0; }

/* ======================================================================
   Brand page as on the old site (measured 2026-10-31): «Фото / Видео» tabs on top of the photo
   in one white frame, and the category bars (.promdiv) with their closed / open look.
   ====================================================================== */
.brand-media {
    max-width: 691px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.brand-tabs {
    display: flex;
    height: 38px;
    border: 1px solid #fff;
}
.brand-tab {
    flex: 0 0 auto;
    padding: 10px 14px;
    font: 400 13px "Century Gothic", CenturyGothic, AppleGothic, var(--font);
    text-transform: uppercase;
    color: #656566;
    background: url(../img/brand-tab-bg.jpg) left top repeat-x;
    background-size: auto 100%;
    border: 0;
    border-bottom: 1px solid #aaa;
    cursor: pointer;
}
.brand-tab.is-active { background: #fff; border-bottom: 0; color: #656566; }
.brand-tabs-closer {
    flex: 1 1 auto;
    background: url(../img/brand-tab-bg.jpg) left top repeat-x;
    background-size: auto 100%;
    border-bottom: 1px solid #aaa;
}
.brand-media .brand-gallery,
.brand-media .brand-video { box-shadow: none; padding: 5px 5px 6px; }

/* Category bars */
.brand-accordion { max-width: 691px; }
.brand-cat { margin: 0; }
.brand-cat > summary {
    padding: 13px 0 13px 42px;
    font: 400 17px/1.2 var(--font);
    text-transform: uppercase;
    color: #fff;
    background:
        url(../img/catalog-accordion-closed.png) 20px center no-repeat,
        url(../img/catalog-accordion-bg.jpg) left top repeat-x;
    background-size: auto, auto 100%;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #d7d8d8;
}
.brand-cat > summary::before,
.brand-cat[open] > summary::before { content: none; } /* the [open] rule above would add a 14px gap */
.brand-cat[open] > summary {
    color: #515151;
    background:
        url(../img/catalog-accordion-open.png) 20px center no-repeat,
        url(../img/catalog-accordion-bg-act.jpg) left top repeat-x;
    background-size: auto, auto 100%;
}
.brand-cat > .products { padding: 12px 0 20px 0; }

@media (max-width: 767px) {
    .brand-cat > summary { padding: 11px 0 11px 36px; font-size: 15px; background-position: 16px center, left top; }
    .brand-cat[open] > summary { background-position: 16px center, left top; }
}
/* Brand history: paragraphs spaced as in the old Word text (10pt) */
.brand-history p,
.tab-pane[data-pane="brand"] p { margin: 0 0 13px; }

/* ======================================================================
   Product page tabs, info frame and accordions as on the old site (measured 2026-10-31,
   old classes .popup-tab, .popup-info-pane, .popup-info-tab, .popup-accordion-content-inner).
   ====================================================================== */
.product-right .tabs { display: flex; gap: 0; margin: 0; }
.product-right .tab {
    flex: 0 0 auto;
    padding: 5px 9px;
    font: 400 13px var(--font);
    text-transform: uppercase;
    color: #000;
    text-shadow: 1px 1px 2px #fff, 0 0 .5em #d3d3d3;
    background: #cfcfcf;
    border: 0;
    border-left: 1px solid #fff;
    border-bottom: 1px solid #dfdfdf;
}
.product-right .tab:first-child { border-left: 1px solid #dfdfdf; }
.product-right .tab:nth-last-child(2) { border-right: 1px solid #dfdfdf; }
.product-right .tab:hover { background: #d9d9d9; }
.product-right .tab.is-active {
    color: #91191d;
    text-shadow: 1px 1px 2px #eee, 0 0 .5em #d3d3d3;
    background: #fff;
    border-top: 1px solid #dfdfdf;
    border-bottom: 1px solid #fff;
}
.tabs-closer { flex: 1 1 auto; border-bottom: 1px solid #dfdfdf; }
.tab-pane[data-pane="info"] { margin-top: 0; }

/* Frame of «Инфо»: variants, properties, price */
.info-frame { border: 1px solid #dfdfdf; border-top: 0; }
.variant-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 25px 14px 0 136px;
}
.variant-button {
    padding: 5px;
    font: 400 14px var(--font);
    text-transform: uppercase;
    color: #000;
    background: #dfdfdf;
    border: 5px solid #fff;
}
.variant-button.is-active { color: #fff; background: url(../img/tab-bg.jpg) left top repeat-x; background-size: auto 100%; border-color: #fff; }
.variant { padding: 25px 13px 0 15px; }
.variant-buttons + .variant,
.variant-buttons ~ .variant { padding-top: 0; }
.props { width: 100%; max-width: 372px; border-collapse: collapse; }
.props th { width: 124px; padding: 5px 2px; vertical-align: top; border-bottom: 1px solid #c4c4c4; }
.props td { padding: 4px 0; border-bottom: 1px solid #c4c4c4; }
.price-row { padding: 14px 0 14px 0; }

/* «Условия работы», «Описание» */
.accordion-item { border: 0; }
.accordion-item summary {
    position: relative;
    left: 1px;
    padding: 6px 16px;
    font: 400 14px var(--font);
    text-transform: uppercase;
    color: #000;
    text-shadow: 1px 1px 2px #fff, 0 0 .5em #d3d3d3;
    background: #d7d8d9;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #666;
}
.accordion-item summary::after { content: none; }
.accordion-item[open] summary { color: #a1303d; text-shadow: 1px 1px 1px #fff; }
.accordion-body {
    margin: 0 2px;
    padding: 10px 14px;
    border: 1px solid #dfdfdf;
    border-top: 0;
}
.accordion-body p { margin: 0 0 9px; font-size: 14.6667px; line-height: 16px; color: #4a5151; }

@media (max-width: 767px) {
    .variant-buttons { padding: 14px 10px 0; }
    .variant { padding: 14px 10px 0; }
    .product-right .tab { padding: 5px 7px; font-size: 12px; }
}
.accordion-item[open] summary::after { content: none; }
@media (min-width: 768px) {
    /* Old right column: 400px (tabs, frame and accordions) */
    .product-right { max-width: 400px; }
}

/* «Купить», «Доставка», «О бренде» as on the old site (.popup-pane-text, .popup-buy) */
.tab-pane[data-pane="buy"],
.tab-pane[data-pane="delivery"],
.tab-pane[data-pane="brand"] { border: 1px solid #dfdfdf; border-top: 0; }
.tab-pane[data-pane="delivery"],
.tab-pane[data-pane="brand"] { padding: 35px 24px 30px; text-align: justify; }
.tab-pane[data-pane="delivery"] p,
.tab-pane[data-pane="brand"] p {
    margin: 0 0 9px;
    font-size: 14.6667px;
    line-height: 16px;
    color: #5d5e5e;
    text-indent: -12px;
}
.tab-pane[data-pane="delivery"] strong { color: #5d5e5e; }
.tab-pane[data-pane="delivery"] ol { margin: 14px 0; padding: 0 0 0 30px; color: #000; }
.tab-pane[data-pane="delivery"] ol > li { margin: 0 0 9px; }
.tab-pane[data-pane="delivery"] ul { margin: 0; padding: 0 0 0 40px; }
.tab-pane[data-pane="delivery"] ul li,
.tab-pane[data-pane="delivery"] ul p { margin: 0; }
.tab-pane[data-pane="delivery"] a { color: #333; }
/* Brand texts keep the Word look (Times 16px) but the old pane geometry */
.tab-pane[data-pane="brand"] p { margin-bottom: 13.3333px; font: 16px/18.4px "Times New Roman", Times, serif; color: #000; }
.tab-pane[data-pane="brand"] .brand-pane-logo { margin: 0 0 15px; }
.tab-pane[data-pane="brand"] .brand-pane-logo img { width: 200px; margin-left: -13px; }

/* «Купить»: «ОПТОМ» tab + office map */
.pane-buy { padding: 0; }
.buy-tabs { display: flex; padding: 0 0 0 1px; border-bottom: 1px solid #ddd; }
.buy-tab {
    margin: 8px 0 -1px;
    padding: 3px 8px;
    font: 400 14.6667px/20px var(--font);
    text-transform: uppercase;
    color: #91191d;
    background: #fff;
    border: 1px solid #ddd;
    border-bottom-color: #fff;
}
.buy-map { margin: 0 6px 0 0; border: 1px solid #b9babb; }
.buy-map iframe { display: block; width: 100%; height: 473px; border: 0; }
.buy-text { padding: 12px 14px 4px; font-size: 14.6667px; line-height: 16px; color: #5d5e5e; }
.buy-text p { margin: 0 0 9px; }
@media (max-width: 767px) {
    .tab-pane[data-pane="delivery"], .tab-pane[data-pane="brand"] { padding: 20px 14px; }
    .buy-map iframe { height: 320px; }
}
/* «Купить» exact geometry of the old pane: tabs row 38px, map 390×475 */
.buy-tabs { height: 38px; align-items: flex-end; }
.buy-tab { margin: 0 0 -1px; }
.buy-map { margin-right: 8px; }

/* ======================================================================
   Menus as on the old site (measured 2026-10-31)
   ====================================================================== */
/* «Каталог» dropdown: two 372px columns, rows 111px, icons 97×98, text from 135px, line separators */
@media (min-width: 768px) {
    .catalog-dropdown {
        width: 744px;
        grid-template-columns: 372px 372px;
        padding: 0;
        border: 1px solid #fff;
        border-top: 0;
    }
    .catalog-dropdown-item {
        gap: 20px;
        min-height: 112px;
        padding: 8px 45px 5px 18px;
        font: 400 18px/23.4px var(--font);
        color: #363636;
        border: 0;
        border-right: 1px solid #fff;
        background: url(../img/catalog-border.png) left bottom no-repeat;
    }
    .catalog-dropdown-icon,
    .catalog-dropdown-icon img { width: 97px; height: 98px; }
    .catalog-dropdown-name { padding-top: 0; }
}

/* Left column tiles: frame 50×51; «Каталог»/«Бренды» icons fill it (48×48), category icons up to 36×36 */
.cat-tile { gap: 2px; }
.cat-tile-icon img { width: auto; height: auto; max-width: 36px; max-height: 36px; border-radius: 0; }
.cat-tile-icon img[src*="catalog-icon"],
.cat-tile-icon img[src*="brand-icon"] { width: 48px; height: 48px; max-width: none; max-height: none; }
@media (min-width: 768px) {
    .catalog-dropdown-name { max-width: 160px; }
}
@media (min-width: 768px) {
    /* Old .popup-panes: 399px wide */
    .product-right .tab-pane { max-width: 399px; }
}

/* ======================================================================
   Product breadcrumbs as on the old site (.breadcrumbproduct, measured 2026-10-31)
   ====================================================================== */
.product-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    height: auto;
    min-height: 36px;
    margin: 5px 15px 0 13px;
    padding: 0;
    border-bottom: 1px solid #a5b0cb;
}
.breadcrumbs,
.product-actions {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    font: 11px/16px var(--font);
}
.breadcrumbs li,
.product-actions li { margin: 9px 0 1px; padding: 2px 3px; }
.breadcrumbs li + li::before,
.product-actions li + li::before { content: none; }
.breadcrumbs a,
.product-actions a { color: #333; text-decoration: none; }
.breadcrumbs a:hover,
.product-actions a:hover { text-decoration: none; }
.breadcrumbs-sep { color: #000; }
.breadcrumbs-current { color: #aaa; }
.product-actions { flex-wrap: nowrap; white-space: nowrap; }
.back-link::before { content: none; }
.back-arrow { margin-right: 5px; color: #b9b9b9; }
.actions-sep { position: relative; top: -3px; color: #333; }
.print-link img { margin-left: 5px; vertical-align: -3px; }
.print-link span { position: relative; top: -3px; }

@media (max-width: 767px) {
    .product-top { flex-direction: column; margin: 0; padding-bottom: 6px; }
    .breadcrumbs li, .product-actions li { margin: 4px 0 0; }
}
/* Old: the first crumb's text starts exactly at the line's left end */
.breadcrumbs { margin-left: -3px; }
/* Old site: product name 7px under the breadcrumb line, photo 39px under it */
@media (min-width: 768px) {
    .product-title { margin: 7px 0 10px; }
    .product-left { padding-top: 38px; }
}
@media (min-width: 768px) {
    .product-title { margin-bottom: 11px; }
    .product-left { padding-top: 39px; }
}
/* The old CSS had text-indent: -12px here, but its text actually starts at the edge (the indent never
   showed there), so the list numbers keep their distance */
.tab-pane[data-pane="delivery"] p,
.tab-pane[data-pane="brand"] p { text-indent: 0; }
/* Old .popup-info-tabs: 260×37 block 1px under the frame top, 137px from its left; the table follows right under it */
@media (min-width: 768px) {
    .variant-buttons {
        width: 260px;
        height: 37px;
        margin: 1px 0 0 136px;
        padding: 0;
        flex-wrap: nowrap;
        overflow: hidden;
    }
}
@media (min-width: 768px) {
    /* padding instead of the buttons' margin (a margin would collapse through the frame) */
    .info-frame { padding-top: 1px; }
    .variant-buttons { margin-top: 0; }
    /* old table: 15px from the frame's outer edge, 372px wide */
    .variant { padding-left: 14px; padding-right: 11px; }
    .props { max-width: none; }
}
@media (min-width: 768px) {
    /* Same visible gap above the variant buttons as below them (to the first row's letters): 11px */
    .info-frame { padding-top: 6px; }
}

/* ======================================================================
   Section page category tiles as on the old site (/novognaya-producia.html, measured 2026-10-31):
   210×160 tiles in rows of 3 (224px / 166px pitch), 98×98 frame at 11/11, picture 12px below the frame
   top and centred, name in an 88px column from x=120, 30px down, centred.
   ====================================================================== */
@media (min-width: 768px) {
    .section-tiles:not(.section-tiles-big) {
        grid-template-columns: repeat(auto-fill, 210px);
        gap: 6px 14px;
        margin: 0 0 30px 8px;
    }
    .section-tiles:not(.section-tiles-big) .section-tile {
        display: flex;
        align-items: flex-start;
        gap: 0;
        width: 210px;
        height: 160px;
    }
    .section-tiles:not(.section-tiles-big) .section-tile-icon {
        display: block;
        flex: 0 0 98px;
        width: 98px;
        height: 98px;
        margin: 11px;
        text-align: center;
        background: url(../img/icon-pd-bg.png) 0 0 / 98px 98px no-repeat;
    }
    .section-tiles:not(.section-tiles-big) .section-tile-icon img {
        display: inline-block;
        width: auto;
        height: auto;
        max-width: 82px;
        max-height: 78px;
        margin-top: 12px;
        border-radius: 0;
        object-fit: contain;
    }
    .section-tiles:not(.section-tiles-big) .section-tile-name {
        flex: 0 0 88px;
        width: 88px;
        padding-top: 30px;
        font: 400 18px/normal var(--font);
        color: #333;
        text-align: center;
    }
}
.section-intro a { color: #333; text-decoration: underline; }
/* Old section intro: first paragraph 16px under the heading, 19px lines, 8px between paragraphs;
   the tiles start 178px under the heading's top */
@media (min-width: 768px) {
    .product_cat-section .romul { margin-bottom: 16px; }
    .section-intro { margin: 0; }
    .section-intro p { margin: 0 0 8px; line-height: 19px; }
    .section-tiles:not(.section-tiles-big) { margin-left: 8px; }
}
@media (min-width: 768px) {
    .section-intro { margin-left: 5px; }
    .section-intro + .section-tiles:not(.section-tiles-big) { margin-top: 29px; }
    .section-tiles:not(.section-tiles-big) { margin-left: 13px; }
}
/* Old site hover in the left column: #b16566, no underline (links and tile names) */
.side-list a:hover,
.cat-tile:hover .cat-tile-title { color: #b16566; }
/* Old site list markers in the left column: dark red squares (list-style square, #880000, 12px),
   text 38px from the block edge, 20px lines */
.side-list {
    list-style: square outside;
    color: #880000;
    margin: 12px 18px 12px 18px;
    padding: 0 0 0 20px;
}
.side-list li {
    padding-left: 0;
    font-size: 12px;
    line-height: normal;
    color: #880000;
}
.side-list li::before { content: none; }
.side-list a { line-height: 1.4em; }
.side-brand-list .side-list { list-style: none; padding-left: 0; }
.side-list a { display: inline-block; padding: 0; line-height: 20px; vertical-align: top; }

/* Left column tiles as on the old site (.category-left): each tile 53px with a white line on top and
   a grey one under it; the open tile (and «Каталог») gets a reddish line under its title, 18px from the edges */
.side-cat { border-top: 1px solid #fff; border-bottom: 1px solid #b9bcbc; }
.side-cat + .side-cat { border-top: 1px solid #fff; }
.cat-tile { min-height: 53px; }
.side-cat.is-open { padding-bottom: 10px; }
.side-cat.is-open > .cat-tile,
.side-block:first-child > .cat-tile {
    margin: 0 18px 12px;
    padding-left: 0;
    padding-right: 0;
    border-bottom: 1px solid #b58a8b;
}
.side-block:first-child > .side-list { margin-top: 0; }
.side-cat.is-open .side-open-name { margin-top: 0; }

/* Open tile: its name and the group headings sit at the red line's left edge, like headings over
   their lists (the old 70px indent looked odd) */
.side-cat.is-open .side-open-name,
.side-group {
    display: block;
    margin: 0 18px 4px;
    font: 700 12px/1.3 var(--font-head);
    color: #363636;
    text-decoration: none;
}
.side-group { margin-top: 10px; }
.side-group { cursor: default; }
.side-sub .side-list { margin-top: 4px; margin-bottom: 4px; }

/* Sidebar markers centred on the link's first line: the li line box gets the link's 20px height */
.side-list li { line-height: 20px; }

/* Footer as on the old site: a 899×31 menu row inset 7px/4px, the copyright cell 186px, the «Контакты» cell
   filling the rest behind a #dadada line; hovering the cell gives it the dark gradient and white text */
.footer { padding: 3px 22px 3px 6px; align-items: stretch; }
.footer-copy {
    flex: 0 0 186px;
    padding: 0;
    border-right: 0;
    line-height: 31px;
    text-align: center;
}
.footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #dadada;
}
.footer-link:hover {
    background: url(../img/footer-bg-active.jpg) left top repeat-x;
    color: #fff;
    text-decoration: none;
}
/* The hover fills the footer from top to bottom (inside its white border), the 31px gradient stretched */
.footer { padding-top: 0; padding-bottom: 0; }
.footer-copy { line-height: 37px; }
.footer-link:hover { background-size: 100% 100%; }

/* Новогодняя tile page (section.html?razdel=N) as on the old site: subcategory icons 98×98 with the name under
   them (Calibri 16px) in 155×200 cells from 40px in, groups under Georgia 20px headings 70px in */
.product_cat-section .cat-subtitle { margin: 26px 0 23px; }
.subcat-group-title { margin: 20px 0; padding-left: 70px; font: 700 20px/22px var(--font-head); color: #000; }
.subcat-tiles {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 12px;
    padding: 0 0 0 40px;
    list-style: none;
}
.cat-subtitle + .subcat-tiles { margin-top: 0; }
.subcat-tiles li { width: 155px; height: 200px; padding: 5px 10px; text-align: center; }
.subcat-tiles a { display: block; font: 400 16px/normal var(--font); color: #333; text-decoration: none; }
.subcat-tiles a:hover { color: #b16566; }
.subcat-tile-icon { display: block; width: 98px; height: 98px; margin: 0 auto; }
.subcat-tile-icon img { display: block; width: 98px; height: 98px; }
@media (max-width: 767px) {
    .subcat-group-title { padding-left: 0; font-size: 18px; }
    .subcat-tiles { padding-left: 0; justify-content: center; }
    .subcat-tiles li { height: auto; min-height: 170px; }
}
.subcat-tiles + .brands-title { margin-top: 22px; }

/* Section and tile pages: the old .category-list column has padding-left 19px (product lists keep 14px);
   the intro / tile offsets that made up for the 14px are taken back */
@media (min-width: 768px) {
    .product_cat-section .content-right { padding-left: 19px; }
    .product_cat-section .section-intro { margin-left: 0; }
    .product_cat-section .section-tiles:not(.section-tiles-big) { margin-left: 8px; }
    .subcat-tiles { padding-left: 41px; }
}
/* Old section brands (ul.brandall): 94px logos from the column edge, 104px across and 120px down,
   the first row 52px under the «Бренды» heading's top */
@media (min-width: 768px) {
    .product_cat-section .brand-tiles {
        grid-template-columns: repeat(auto-fill, 94px);
        gap: 26px 10px;
        margin-top: 23px; /* collapses with the heading's 14px */
    }
}

/* Brand photos as on the old site (#…-gallery): a 679×500 window, each photo in its own size with its middle
   shown; the next one fades in while sliding 200px to the left as the current one fades out to the right
   (main.js, 4s, then 2s still). No arrows. */
.brand-media .brand-gallery { padding: 6px; }
.brand-gallery-view {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #fff;
}
.brand-gallery .brand-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: none;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    opacity: 0;
}
.brand-gallery .brand-slide.is-active { opacity: 1; z-index: 1; }
.brand-gallery .brand-badge { left: 6px; right: 6px; bottom: 6px; }
@media (max-width: 767px) {
    .brand-gallery-view { height: auto; aspect-ratio: 679 / 500; }
}
/* Logo bar over the photos (.b_g_cats): 118px of semitransparent black, the logo in its own size 52px in */
.brand-gallery .brand-badge {
    height: 118px;
    padding: 0 52px;
    background: url(../img/semitransparent.png) repeat;
    z-index: 2;
}
.brand-gallery .brand-badge img { max-height: 118px; width: auto; height: auto; }
@media (max-width: 767px) {
    .brand-gallery .brand-badge { height: 60px; padding: 0 12px; }
    .brand-gallery .brand-badge img { max-height: 50px; }
}
/* «Видео» pane the size of «Фото»: the same 6px frame around a 679×500 player */
.brand-media .brand-video { padding: 6px; }
.brand-video iframe { width: 100%; height: 500px; aspect-ratio: auto; }
@media (max-width: 767px) {
    .brand-video iframe { height: auto; aspect-ratio: 679 / 500; }
}

/* «Коллекция» under the product as on the old site (.title-collection + Codrops content carousel): an inset
   rule 16px under the photos, the Georgia 22px title, then 830px of 166×210 cells (white card inset
   3/5/5px, 20px padding, blue glow on hover), 88px pictures, grey name, «7200 р.»; the 45px arrows from
   arrow-gal.png sit 39px outside, pale at either end; one cell per click (0.5s, easeOutExpo) */
.product-collection { grid-column: 1 / -1; min-width: 0; }
.product-collection::before {
    content: "";
    display: block;
    margin: 16px -15px 2px 0;
    border-top: 1px solid #9a9a9a;
    border-bottom: 1px solid #eee;
}
.collection-title {
    position: relative;
    top: -1px;
    height: 25px;
    margin: 0;
    padding-left: 20px;
    font: 700 22px/25px var(--font-head);
    color: #333;
}
.collection-carousel { position: relative; width: 830px; max-width: 100%; height: 220px; margin: 0 0 0 50px; }
.collection-viewport { height: 100%; overflow: hidden; }
.collection-track {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: transform .5s cubic-bezier(.19, 1, .22, 1);
}
.collection-item { position: relative; flex: 0 0 166px; height: 210px; text-align: center; }
.collection-item > a {
    position: absolute;
    inset: 3px 5px 5px;
    padding: 20px;
    background: #fff;
    overflow: hidden;
    text-decoration: none;
}
.collection-item > a:hover { box-shadow: 0 0 13px rgba(108, 132, 156, .75); }
.collection-pic { display: block; height: 91px; }
.collection-pic img { width: 88px; height: 88px; object-fit: contain; }
.collection-name { display: block; font: 400 16px/19px var(--font); color: #aaa; }
.collection-price { display: inline-block; padding: 0 0 14px 14px; font: 400 17px/21px var(--font); color: #333; }
.collection-prev,
.collection-next {
    position: absolute;
    top: 44px;
    z-index: 2;
    width: 45px;
    height: 45px;
    padding: 0;
    border: 0;
    background: url(../img/arrow-gal.png) no-repeat;
    opacity: .7;
    cursor: pointer;
}
.collection-prev { left: -39px; background-position: 0 -93px; }
.collection-next { right: -39px; background-position: 0 -3px; }
.collection-prev.is-off { background-position: 0 -138px; }
.collection-next.is-off { background-position: 0 -48px; }
.collection-prev:hover,
.collection-next:hover { opacity: 1; }
@media (max-width: 1023px) {
    .collection-carousel { width: auto; margin: 0 44px; }
}
@media (max-width: 767px) {
    .product-collection::before { margin-right: 0; }
    .collection-title { padding-left: 0; }
    .collection-carousel { margin: 0 36px; }
}
@media (max-width: 767px) {
    /* Phones: one whole cell between the arrows */
    .collection-carousel { width: 166px; margin: 0 auto; }
}
/* Collection: the arrows centred on the cards (the old 44px sat too high), a soft neutral shadow on hover
   instead of the old blue glow (small enough not to be cut by the carousel edge) */
.collection-prev,
.collection-next { top: 82px; }
.collection-item > a { transition: box-shadow .2s; }
.collection-item > a:hover { box-shadow: 0 1px 5px rgba(0, 0, 0, .16); }
/* Darker, larger hover shadow; the carousel clips only sideways so the shadow is not cut above and below */
.collection-viewport { overflow: visible; overflow-x: clip; }
.collection-item > a:hover { box-shadow: 0 3px 10px -2px rgba(0, 0, 0, .35); }
/* Metro line: the text on the icon's middle (26px line like the box) */
.contacts p.contact-metro { line-height: 26px; }

/* Сувенирная / LED / Часы category icons from the old site come with their frame drawn in (cats/framed/):
   shown whole at 98×98 instead of inside the theme frame */
.section-tile-icon:has(img[src*="/cats/framed/"]) { background: none !important; }
.section-tiles .section-tile-icon img[src*="/cats/framed/"] {
    width: 98px;
    height: 98px;
    max-width: none;
    max-height: none;
    margin-top: 0;
}

/* Brand page categories: «Показать еще (N)» under the first 9 cards, the old .giveBrandMore 166×24 button */
.brand-more-wrap { margin: 12px 0 24px; text-align: center; }
.brand-more {
    width: 166px;
    height: 24px;
    padding: 0;
    border: 0;
    background: url(../img/show_more_empty.gif);
    font: 700 13px/24px var(--font);
    text-transform: uppercase;
    color: #fff;
    vertical-align: top;
    cursor: pointer;
}
.brand-more:hover { filter: brightness(1.1); }
.brand-cat .product-card[hidden] { display: none; }

/* Сувенирная / LED / Часы section pages as on the old site (.promdiv.christmas-pd): 680px bars of 139px
   (white line on top, grey below, collection-item-bg), the 97×98 icon frame 11px in with the picture at most
   78px high, the name Calibri 26px/64px 123px in; a click opens the light-green list (#f5fbf5) with groups
   side by side: Calibri 20px headings, dark-red square markers, 14px links */
.cat-bars { width: 680px; max-width: 100%; margin: 0 0 0 1px; }
.cat-bar { border-top: 1px solid #cdcdcd; }
.cat-bar:last-child { border-bottom: 1px solid #fff; }
.cat-bar > summary {
    display: flex;
    align-items: flex-start;
    height: 139px;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #d7d8d8;
    background: url(../img/collection-item-bg.jpg) left top repeat-x;
    list-style: none;
    cursor: pointer;
}
.cat-bar > summary::-webkit-details-marker { display: none; }
.cat-bar-icon {
    display: flex;
    flex: 0 0 97px;
    align-items: center;
    justify-content: center;
    width: 97px;
    height: 98px;
    margin: 11px;
    background: url(../img/icon-pd-bg.png) left top no-repeat;
}
.cat-bar-icon img { width: auto; height: auto; max-width: 97px; max-height: 78px; }
.cat-bar-name { margin: 26px 0 0 4px; font: 400 26px/64px var(--font); color: #252525; }
.cat-bar-body { padding: 5px 0; background: #f5fbf5; }
.cat-bar-group { display: inline-block; vertical-align: top; margin: 0 10px; padding: 8px 10px 0; }
.cat-bar-group:first-child { margin-left: 11px; }
.cat-bar-group-title { margin: 0 0 11px; font: 400 20px/24px var(--font); color: #252525; }
.cat-bar-list {
    margin: 0 0 12px;
    padding: 0 0 0 20px;
    list-style: square outside;
    color: #880000;
}
.cat-bar-group-title + .cat-bar-list { margin-top: 12px; }
.cat-bar-list li { width: 190px; font-size: 16px; }
.cat-bar-list a { font: 400 14px/19.6px var(--font); color: #252525; text-decoration: none; }
.cat-bar-list a:hover { color: #b16566; }
@media (max-width: 767px) {
    .cat-bars { margin: 0; }
    .cat-bar > summary { height: auto; align-items: center; }
    .cat-bar-icon { flex-basis: 70px; width: 70px; height: 71px; margin: 8px; background-size: 70px 71px; }
    .cat-bar-icon img { max-width: 56px; max-height: 56px; }
    .cat-bar-name { margin: 0 8px 0 4px; font-size: 20px; line-height: 1.2; }
    .cat-bar-group { display: block; }
}
/* measured against the old page: first bar 37px under the heading's top, groups 31px in, the open list
   ends with the bar's grey line */
.product_cat-section .romul + .cat-bars { margin-top: -9px; }
.cat-bar-body { padding: 5px 0 7px 1px; border-bottom: 1px solid #d7d8d8; }
.cat-bar-group:first-child { margin-left: 10px; }
.cat-bar[open] > summary { height: 138px; border-bottom: 0; }
/* «Бренды» under the bars: 31px below them, the logos 63px under the heading's top (old page) */
.cat-bars + .brands-title { margin-top: 31px; }
@media (min-width: 768px) {
    .product_cat-section .cat-bars ~ .brand-tiles { margin-top: 34px; }
}

/* «Нажмите для увеличения» and the photo row as on the old page (.zoom, .popup-gallery), measured from the
   photo's bottom: the text 32px down and 20px in (the «+» 5px left of the photo), the thumbnails from 61px,
   the first one 16px left of the photo */
@media (min-width: 768px) {
    .zoom-hint { margin: 32px 0 11px -5px; background-position: 0 0; }
    .product-thumbs { margin-left: -26px; }
}
@media (min-width: 768px) {
    /* the old photo row is 100px high (6px under the thumbnails): the rule above «Коллекция» comes 16px later */
    .product-left { padding-bottom: 6px; }
}
@media (min-width: 768px) {
    /* the 17×17 «+» needs a 17px box: it starts 30px under the photo, the text 2px lower (old .zoom) */
    .zoom-hint { margin: 30px 0 10px -5px; padding: 2px 0 1px 25px; }
}

/* Brand texts are justified (old site): word breaks keep the gaps between words even in the narrow «О бренде» */
.brand-history p,
.tab-pane[data-pane="brand"] p { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
/* …Chrome does not hyphenate Russian here, so the narrow tab goes left-aligned: no wide gaps between words */
.tab-pane[data-pane="brand"] p { text-align: left; }

/* ---------- Price-list pages (template «Прайс-листы»): «Скачать все» bar in the colours of the brand-page
   category bars, then a table with the same header; Excel badges, Georgia names, the grey «Скачать»
   button of «Показать еще» ---------- */
.price-page { max-width: 760px; margin-left: auto; margin-right: auto; }
.price-intro { margin: 0 0 18px; font-size: 14px; line-height: 19px; color: #474747; }
.price-empty { padding: 18px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); font-size: 14px; color: #474747; }
.price-empty a { color: #333; }

.price-all {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 16px;
    padding: 14px 18px;
    background: linear-gradient(#4c5a5f, #8fa3aa 55%, #4f5c61);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    color: #fff;
}
.price-all-icon,
.price-file-icon {
    display: grid;
    place-items: center;
    border-radius: 3px;
    font: 700 12px var(--font);
    color: #fff;
    letter-spacing: .5px;
    clip-path: polygon(0 0, 72% 0, 100% 20%, 100% 100%, 0 100%);   /* a sheet with a folded corner */
}
.price-all-icon { flex: 0 0 46px; width: 46px; height: 54px; background: linear-gradient(#a33a4a, #6d1f2c); }
.price-all-info { flex: 1 1 auto; min-width: 0; }
.price-all-title { display: block; font: 700 17px/1.25 var(--font-head); text-shadow: 0 1px 1px rgba(0, 0, 0, .35); }
.price-all-meta { display: block; margin-top: 3px; font-size: 13px; color: #e3eaec; }
.price-all-button,
.price-file-download {
    font: 700 13px/19px var(--font);
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: #7b7b7b url(../img/show_more_empty.gif) center / 100% 100%;
    border-radius: 3px;
}
.price-all-button { flex: 0 0 auto; padding: 7px 20px; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.price-file-download { display: inline-block; min-width: 110px; padding: 4px 16px; }
.price-all-button:hover,
.price-file-download:hover { filter: brightness(1.1); }

.price-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); font-size: 14px; }
.price-table th {
    padding: 10px 12px;
    font: 400 12px var(--font);
    text-transform: uppercase;
    text-align: left;
    color: #fff;
    background: url(../img/catalog-accordion-bg.jpg) left top repeat-x, #4f5c61;
}
.price-table td { padding: 9px 12px; border-top: 1px solid #ececec; vertical-align: middle; color: #474747; }
.price-table tbody tr:nth-child(even) td { background: #f7f7f7; }
.price-table tbody tr:hover td { background: #f5fbf5; }
.price-file-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 700 14px/1.25 var(--font-head);
    color: #363636;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.price-file-name:hover { color: #b16566; }
.price-file-icon { flex: 0 0 26px; width: 26px; height: 30px; font-size: 8px; background: linear-gradient(#2e9b5d, #1d6f42); }
.price-file-csv { background: linear-gradient(#7b7b7b, #555); }
.price-col-n { width: 28px; color: #9a9a9a; text-align: right; }
.price-col-date, .price-col-size { width: 90px; white-space: nowrap; }
.price-col-dl { width: 130px; text-align: right; }

@media (max-width: 767px) {
    .price-all { flex-wrap: wrap; }
    .price-all-info { flex-basis: calc(100% - 62px); }
    .price-all-button { flex-basis: 100%; }
    .price-col-date, .price-col-n { display: none; }
    .price-table td, .price-table th { padding: 8px 6px; }
    .price-col-dl { width: auto; }
    .price-file-download { min-width: 0; padding: 4px 10px; }
}
/* «Скачать все»: a white card like the table and the product frames, a dark-red edge and dark text
   (the grey-blue gradient looked heavy) */
.price-all {
    background: #fff;
    border-left: 4px solid #7a1c2b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    color: #363636;
}
.price-all-title { color: #363636; text-shadow: none; }
.price-all-meta { color: #8a8a8a; }

/* Search suggestions as on the old site (.autocomplete): white list with a grey border under the field,
   upper-case articles, the typed part dark red, the hovered / chosen row light grey */
.search-box form { position: relative; }
.search-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    width: 472px;
    max-width: calc(100vw - 32px);
    max-height: 350px;
    margin: 4px 0 0;
    padding: 0;
    overflow: auto;
    list-style: none;
    text-align: left;
    background: #fff;
    border: 1px solid #999;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .15);
}
.search-suggest li {
    padding: 2px 10px;
    font: 17px/17px "Trebuchet MS", var(--font);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #000;
    cursor: pointer;
}
.search-suggest li.is-active { background: #f0f0f0; }
.search-suggest strong { font-weight: normal; color: #791d39; }

/* Collection cards grow with a long name (3 lines + price): the height follows the content, every card in the
   row as tall as the tallest one, at least the old 210px */
.collection-carousel { height: auto; }
.collection-item { height: auto; min-height: 210px; display: flex; }
.collection-item > a { position: relative; inset: auto; flex: 1 1 auto; margin: 3px 5px 5px; }

/* Product video as on the old site: the thumb after the brand logo is the first photo with the 45px play button
   (video-popup.png); the RuTube player (420×400) takes the place of the photo */
.product-thumb-video { position: relative; }
.product-thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 45px;
    height: 45px;
    margin: -22px 0 0 -22px;
    background: url(../img/video-popup.png) 0 0 / 100% 100% no-repeat;
}
.product-thumb-video:hover .product-thumb-play { filter: brightness(1.08); }
.product-video {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 422px;
    aspect-ratio: 1;
}
.product-video[hidden],
.product-main-image[hidden] { display: none; }
.product-video iframe { display: block; width: 420px; max-width: 100%; height: 400px; border: 0; }
/* Catalog: the old site's «ВИДЕО» ribbon (video.png, 73×72) in the top left corner of a card with a video */
.product-video-mark {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 73px;
    height: 72px;
    background: url(../img/video.png) no-repeat;
    pointer-events: none;
}

/* Home: the two top banners as on the old site (nivoSlider, measured 2026-11-03): no white frame, the pictures
   themselves (605×343 and 300×343) with a dark even shadow 0 0 10px #333, 10px apart, 33px under the menu and
   15px in from the content edge, the next title 58px below */
.home-top {
    grid-template-columns: minmax(0, 605px) minmax(0, 300px);
    gap: 10px;
    margin: 13px 0 58px 15px;
}
.home-top .banner-frame { padding: 0; background: none; box-shadow: 0 0 10px #333; min-height: 0; }
.home-top .banner-frame img { display: block; width: 100%; height: auto; }
@media (max-width: 960px) {
    .home-top { grid-template-columns: 1fr; margin-left: 0; }
}

/* Home: «Разделы каталога» — a white card per section (the banners' dark even shadow), three on top and two
   below: icon, name and product count over a dark-red rule, up to six subcategories with dark-red square
   markers (as in the sidebar), «Весь раздел →» */
.home-cats-title { margin: 0 0 18px 15px; font: 400 24px/1.2 var(--font); color: #363739; }
.home-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin: 0 0 20px 15px; }
.home-cat { grid-column: span 2; display: flex; flex-direction: column; padding: 18px 20px 16px; background: #fff; box-shadow: 0 0 10px rgba(51, 51, 51, .45); }
.home-cat:nth-child(n+4) { grid-column: span 3; }
.home-cat-head { display: grid; grid-template-columns: 70px 1fr; column-gap: 14px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #b58a8b; color: #333; text-decoration: none; }
.home-cat-icon { grid-row: span 2; }
.home-cat-icon img { display: block; width: 70px; height: auto; }
.home-cat-name { align-self: end; font: 700 17px/1.2 var(--font-head); }
.home-cat-count { align-self: start; margin-top: 3px; font-size: 13px; color: #888; }
.home-cat-head:hover .home-cat-name { color: #791d39; }
.home-cat-list { flex: 1; margin: 12px 0; padding: 0; list-style: none; columns: 2; column-gap: 16px; }
.home-cat:nth-child(-n+3) .home-cat-list { columns: 1; }
.home-cat-list li { position: relative; padding: 3px 0 3px 14px; break-inside: avoid; font-size: 14px; }
.home-cat-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; background: #791d39; }
.home-cat-list a { color: #333; text-decoration: none; }
.home-cat-list a:hover { color: #791d39; text-decoration: underline; }
.home-cat-all { align-self: flex-start; font-size: 13px; font-weight: 700; text-transform: uppercase; text-decoration: none; color: #791d39; }
.home-cat-all:hover { text-decoration: underline; }
@media (max-width: 960px) {
    .home-cats-title, .home-cats { margin-left: 0; }
    .home-cats { grid-template-columns: 1fr; }
    .home-cat, .home-cat:nth-child(n+4) { grid-column: auto; }
    .home-cat-list { columns: 1; }
}
