

/* Start:/local/templates/kedr/components/bitrix/news.list/stock_page/style.css?178939908715219*/
.breadcrumbs {
    margin-bottom: 24px;
}

.stock-hero {
    position: relative;
    display: flex;
    width: 100vw;
    min-height: 340px;
    align-items: center;
    margin: 0 0 50px calc(50% - 50vw);
    overflow: hidden;
    background: #f1f7fa url('/local/templates/kedr/components/bitrix/news.list/stock_page/stock-hero-v2.png?v=2') center/cover no-repeat;
}

.stock-hero::after {
    position: absolute;
    inset: 0;
    content: '';
    background:
        radial-gradient(circle at 16% 105%, rgba(14, 166, 119, .12), transparent 29%),
        linear-gradient(90deg, rgba(247, 251, 252, .98) 0%, rgba(247, 251, 252, .94) 46%, rgba(247, 251, 252, .62) 63%, rgba(247, 251, 252, .12) 78%, rgba(247, 251, 252, .02) 100%);
}

.stock-hero__content {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    max-width: 1000px;
    padding: 44px 40px 44px max(36px, calc((100vw - 1260px) / 2));
}

.stock-hero h1 {
    margin: 0 0 14px;
    color: #27313a;
    font-family: Raleway, sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.12;
}

.stock-hero__content > p {
    max-width: 640px;
    margin: 0;
    color: #4d5a63;
    font-size: 19px;
    line-height: 1.55;
}

.stock-hero__advantages {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 20px 48px;
    max-width: 100%;
    margin-top: 36px;
}

.stock-hero__advantages li {
    display: flex;
    gap: 14px;
    align-items: center;
    min-width: 0;
    color: #6f7d85;
    font-size: 14px;
    line-height: 1.35;
}

.stock-hero__advantages strong {
    display: block;
    margin-bottom: 2px;
    color: #2f3940;
    font-size: 15px;
    font-weight: 700;
}

.stock-benefits__item strong {
    display: block;
    margin-bottom: 3px;
    color: #2f3940;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.stock-hero__icon {
    display: grid;
    width: 50px;
    min-width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid rgba(21, 167, 111, .16);
    border-radius: 11px;
    background: rgba(255, 255, 255, .78);
    color: #15a76f;
}

.stock-hero__advantage-text,
.stock-hero__advantage-text > span {
    display: block;
}

.stock-hero__advantage-text {
    width: auto;
    min-width: 0;
}

.stock-hero__advantage-text strong,
.stock-hero__advantage-text > span {
    white-space: nowrap;
}

.stock-hero__icon svg,
.stock-categories__mark svg,
.stock-help__icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stock-hero__icon svg {
    width: 32px;
    height: 32px;
}

.stock-catalog {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.stock-categories {
    --stock-sticky-top: 157px;
    position: sticky;
    top: var(--stock-sticky-top);
    display: flex;
    max-height: calc(100vh - var(--stock-sticky-top) - 16px);
    min-height: 0;
    flex-direction: column;
    padding: 18px 13px 12px;
    overflow: hidden;
    border: 1px solid #e8eef1;
    border-top: 3px solid #13a570;
    border-radius: 8px;
    background: #f8fafb;
    box-shadow: 0 9px 28px rgba(37, 57, 69, .07);
    scrollbar-color: #b9d9ce transparent;
    scrollbar-width: thin;
}

.stock-categories h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 7px 11px;
    color: #253039;
    font-family: Raleway, sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.stock-categories h2 small {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: #e5f5ef;
    color: #159769;
    font-size: 12px;
    font-weight: 700;
}

.stock-categories nav {
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding-right: 4px;
    overflow-y: auto;
    scrollbar-color: #b9d9ce transparent;
    scrollbar-width: thin;
}

.stock-categories nav a {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 8px 7px;
    border-radius: 5px;
    color: #3d4951;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease;
}

.stock-categories nav a:hover,
.stock-categories nav a:focus-visible {
    color: #079969;
    background: #fff;
    box-shadow: 0 3px 10px rgba(34, 70, 59, .05);
}

.stock-categories__mark {
    width: 18px;
    height: 18px;
    color: #20ad76;
}

.stock-categories__count {
    min-width: 20px;
    padding: 3px 5px;
    border-radius: 999px;
    background: #e7ecef;
    color: #6f7b83;
    font-size: 12px;
    text-align: center;
}

.stock-categories__all {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 11px 9px 4px;
    border-top: 1px solid #e1e9ec;
    color: #099c6b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.stock-categories__all:hover,
.stock-categories__all:focus-visible {
    color: #087eba;
}

/*
 * Группы товаров лежат в общей сетке из 4 колонок карточек.
 * Ширина группы = число её товаров (max 4), поэтому категории с 1–2 позициями
 * встают в один ряд вместо длинного узкого столбика.
 * Заголовки групп в одном ряду выравниваются через subgrid по строкам.
 */
.stock-groups {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 52px 32px;
    min-width: 0;
}

.stock-group {
    display: grid;
    grid-column: span var(--stock-span, 1);
    grid-row: span 2;
    grid-template-rows: auto 1fr;
    min-width: 0;
    scroll-margin-top: 157px;
    border: 2px solid #b9d9ce;
    padding: 16px 10px 10px;
}

.stock-group--span-1 { --stock-span: 1; }
.stock-group--span-2 { --stock-span: 2; }
.stock-group--span-3 { --stock-span: 3; }
.stock-group--span-4 { --stock-span: 4; }

@supports (grid-template-rows: subgrid) {
    .stock-group {
        grid-template-rows: subgrid;
        row-gap: 0;
    }
}

/* Заголовки групп: h2 резервирует 3 строки (одинаковая высота в ряду),
   4-я строка допускается, длиннее — обрезается многоточием (полное имя — в title и в DOM),
   счётчик прижат к нижней кромке блока прямо над карточками. */
.stock-group__heading {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.stock-group__heading h2 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 63px;
    margin: 0;
    color: #28333b;
    font-family: Raleway, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.stock-group__heading > span {
    margin-top: auto;
    color: #89949b;
    font-size: 13px;
}

.stock-grid {
    display: grid;
    grid-template-columns: repeat(var(--stock-span, 1), minmax(0, 1fr));
    align-content: start;
    border-top: 1px solid #e7ecef;
    border-left: 1px solid #e7ecef;
}

.stock-card {
    display: flex;
    min-width: 0;
    min-height: 350px;
    flex-direction: column;
    padding: 17px 14px 14px;
    border-right: 1px solid #e7ecef;
    border-bottom: 1px solid #e7ecef;
    background: #fff;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.stock-card:hover {
    border-color: #dbe8e3;
    box-shadow: 0 12px 30px rgba(34, 55, 67, .11);
}

.stock-card__link {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.stock-card__image {
    display: flex;
    height: 155px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.stock-card__image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: contain;
}

.stock-card__availability {
    align-self: center;
    margin-bottom: 9px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #e4f8ec;
    color: #14a35f;
    font-size: 12px;
    font-weight: 600;
}

.stock-card__name {
    display: -webkit-box;
    overflow: hidden;
    color: #303b42;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.42;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.stock-card__button {
    width: 100%;
    min-height: 38px;
    margin-top: 12px;
    padding: 9px 10px;
    border-radius: 4px;
    font-family: Raleway, sans-serif;
    font-size: 13px;
    font-weight: 600;
}

.stock-card > .form-popup {
    z-index: 100000;
    box-sizing: border-box;
    overflow-y: auto;
    background: rgba(24, 43, 52, .72);
}

.stock-card > .form-popup .form-popup__wrap {
    top: 50%;
    left: 50%;
    box-sizing: border-box;
    width: min(780px, calc(100vw - 40px));
    height: auto;
    max-height: calc(100vh - 40px);
    padding: 34px 44px;
    overflow-y: auto;
    border-radius: 10px;
    background: linear-gradient(145deg, #087e9f 0%, #08a878 100%);
    box-shadow: 0 24px 70px rgba(5, 29, 40, .34);
    transform: translate(-50%, -50%);
}

.stock-card:has(> .form-popup[style*="display: block"]) > .stock-card__button {
    visibility: hidden;
}

.stock-card > .form-popup .close {
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    background: none !important;
    cursor: pointer;
    opacity: 1;
}

.stock-card > .form-popup .close::before,
.stock-card > .form-popup .close::after {
    position: absolute;
    top: 15px;
    left: 4px;
    width: 24px;
    height: 2px;
    border: 0;
    background: #fff;
    content: '';
}

.stock-card > .form-popup .close::before {
    transform: rotate(45deg);
}

.stock-card > .form-popup .close::after {
    transform: rotate(-45deg);
}

.stock-card > .form-popup .h4 {
    margin-top: 0;
}

.stock-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 50px 0 34px;
    padding: 21px 12px;
    border: 1px solid #edf1f3;
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #f8fbfa);
    box-shadow: 0 8px 25px rgba(37, 57, 69, .045);
}

.stock-benefits__item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 0 15px;
    color: #6f7b83;
    font-size: 13px;
    line-height: 1.45;
}

.stock-benefits__item + .stock-benefits__item {
    border-left: 1px solid #e8edef;
}

.stock-benefits__icon {
    display: grid;
    width: 40px;
    min-width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 10px;
    background: #eaf8f2;
    color: #14a36f;
}

.stock-benefits__icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stock-help {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 74px;
    padding: 22px 28px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f4f9fd, #edf6fc);
}

.stock-help__icon {
    width: 48px;
    height: 48px;
    color: #238fcf;
}

.stock-help__text strong,
.stock-help__text span {
    display: block;
}

.stock-help__text strong {
    margin-bottom: 4px;
    color: #2d3941;
    font-size: 16px;
}

.stock-help__text span {
    color: #76838b;
    font-size: 13px;
}

.stock-help__button {
    min-width: 180px;
    padding: 13px 22px;
    border: 0;
    border-radius: 5px;
    background: #0b87c5;
    color: #fff;
    cursor: pointer;
    font-family: Raleway, sans-serif;
    font-weight: 600;
}

.stock-help__button:hover,
.stock-help__button:focus-visible {
    background: #0875aa;
}

.stock-about {
    margin-bottom: 0;
}

.stock-about > .container {
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.stock-catalog__empty {
    grid-column: 1 / -1;
    padding: 60px 24px;
    border-radius: 8px;
    background: #f6f9fa;
    text-align: center;
}

@media (max-width: 1240px) {
    .stock-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stock-group--span-4 { --stock-span: 3; }
    .stock-hero__content { max-width: 900px; padding-left: 42px; }
    .stock-hero__advantages { gap: 18px 36px; }
}

@media (max-width: 980px) {
    .stock-hero__content { max-width: 820px; }
    .stock-hero__advantages { gap: 16px 24px; }
    .stock-hero__icon { width: 44px; min-width: 44px; height: 44px; }
    .stock-hero__icon svg { width: 28px; height: 28px; }
    .stock-catalog { grid-template-columns: 250px minmax(0, 1fr); gap: 24px; }
    .stock-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
    .stock-group--span-4,
    .stock-group--span-3 { --stock-span: 2; }
    .stock-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; }
    .stock-benefits__item:nth-child(3) { border-left: 0; }
}

@media (max-width: 720px) {
    .stock-categories nav a { font-size: 14px; }
    .stock-card__name { font-size: 15px; }
    .stock-benefits__item { font-size: 13px; }
    .stock-benefits__item strong { font-size: 16px; }
    .breadcrumbs { margin-bottom: 18px; }
    .stock-hero { min-height: 0; margin-bottom: 28px; }
    .stock-hero::after { background: rgba(247, 250, 252, .9); }
    .stock-hero__content { padding: 34px 22px; }
    .stock-hero h1 { font-size: 32px; }
    .stock-hero__content > p { font-size: 15px; }
    .stock-hero__advantages { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
    .stock-hero__advantage-text { width: auto; }
    .stock-hero__advantage-text strong,
    .stock-hero__advantage-text > span { white-space: normal; }
    .stock-catalog { display: block; }
    .stock-categories { position: static; max-height: none; margin-bottom: 30px; overflow: visible; }
    .stock-categories nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stock-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stock-group__heading h2 { font-size: 16px; }
    .stock-benefits { grid-template-columns: 1fr; }
    .stock-benefits__item { padding: 10px 4px; }
    .stock-benefits__item + .stock-benefits__item { border-top: 1px solid #e8edef; border-left: 0; }
    .stock-help { grid-template-columns: 46px minmax(0, 1fr); padding: 20px; }
    .stock-help__button { grid-column: 1 / -1; width: 100%; }
    .stock-card > .form-popup .form-popup__wrap {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        padding: 30px 18px 24px;
    }
}

@media (max-width: 480px) {
    .stock-categories nav,
    .stock-groups { grid-template-columns: 1fr; }
    .stock-groups { gap: 36px; }
    .stock-group { --stock-span: 1; }
    .stock-card { min-height: 350px; }
    .stock-benefits__item { font-size: 13px; }
    .stock-group__heading > span { display: none; }
}

/* End */


/* Start:/local/templates/kedr/components/bitrix/news.list/stock_slider/style.css?17889883382816*/
.stock-slider {
    margin-top: 46px;
}

.stock-slider__heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 16px;
}

.stock-slider__heading h2 {
    margin: 0;
    color: #28333b;
    font-family: Raleway, sans-serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.25;
}

.stock-slider__controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.stock-slider__all {
    margin-right: 6px;
    color: #099c6b;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.stock-slider__all:hover,
.stock-slider__all:focus-visible {
    color: #087eba;
}

.stock-slider__arrow {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 1px solid #e0e8ec;
    border-radius: 50%;
    background: #fff;
    color: #4b585f;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.stock-slider__arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stock-slider__arrow:hover:not(:disabled),
.stock-slider__arrow:focus-visible:not(:disabled) {
    border-color: #b9ddcd;
    background: #f3fbf7;
    color: #0d9a68;
}

.stock-slider__arrow:disabled {
    color: #c3ccd2;
    cursor: default;
    opacity: .55;
}

.stock-slider--static .stock-slider__arrow {
    display: none;
}

.stock-slider__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 4 * 14px) / 5);
    gap: 14px;
    margin: 0;
    padding: 2px 2px 6px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-color: #cfdde5 transparent;
    scrollbar-width: thin;
}

.stock-slider__track::-webkit-scrollbar {
    height: 6px;
}

.stock-slider__track::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #d8e3e9;
}

.stock-slider__card {
    scroll-snap-align: start;
    border: 1px solid #e7ecef;
    border-radius: 6px;
}

.stock-card__availability--order {
    background: #eef2f4;
    color: #6d7a82;
}

.stock-card__availability--new {
    background: #fdf0e3;
    color: #d3801d;
}

@media (max-width: 1240px) {
    .stock-slider__track { grid-auto-columns: calc((100% - 3 * 14px) / 4); }
}

@media (max-width: 980px) {
    .stock-slider__track { grid-auto-columns: calc((100% - 2 * 14px) / 3); }
}

@media (max-width: 720px) {
    .stock-slider { margin-top: 34px; }
    .stock-slider__heading h2 { font-size: 20px; }
    .stock-slider__track { grid-auto-columns: calc((100% - 14px) / 2); }
}

@media (max-width: 480px) {
    .stock-slider__track { grid-auto-columns: 78%; }
    .stock-slider__all { display: none; }
}

/* End */
/* /local/templates/kedr/components/bitrix/news.list/stock_page/style.css?178939908715219 */
/* /local/templates/kedr/components/bitrix/news.list/stock_slider/style.css?17889883382816 */
