:root {
    --sd-blue: #0878D1;
    --sd-blue-dark: #0756A5;
    --sd-green: #78B82A;
    --sd-green-dark: #287433;
    --sd-bg: #F7FBFE;
    --sd-banner: #E9F6FF;
    --sd-text: #183247;
    --sd-muted: #637888;
    --sd-radius: 1rem;
    --sd-radius-sm: 0.75rem;
    --bs-primary: #0878D1;
    --bs-primary-rgb: 8, 120, 209;
    --bs-success: #78B82A;
    --bs-body-color: #183247;
    --bs-body-bg: #F7FBFE;
    --bs-link-color: #0878D1;
    --bs-link-hover-color: #0756A5;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--sd-bg);
    color: var(--sd-text);
}

a {
    color: var(--sd-blue);
}

.btn-primary {
    --bs-btn-bg: var(--sd-blue);
    --bs-btn-border-color: var(--sd-blue);
    --bs-btn-hover-bg: var(--sd-blue-dark);
    --bs-btn-hover-border-color: var(--sd-blue-dark);
    --bs-btn-active-bg: var(--sd-blue-dark);
    --bs-btn-active-border-color: var(--sd-blue-dark);
}

.btn-outline-primary {
    --bs-btn-color: var(--sd-blue);
    --bs-btn-border-color: var(--sd-blue);
    --bs-btn-hover-bg: var(--sd-blue);
    --bs-btn-hover-border-color: var(--sd-blue);
}

.sd-header {
    --sd-header-control-h: 2.375rem; /* 38px */
    --sd-header-control-px: 0.85rem;
    --sd-header-control-fs: 0.875rem;
    --sd-header-control-icon: 1.05rem;
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid rgba(24, 50, 71, 0.08);
    transition: box-shadow 0.25s ease;
}

.sd-header.is-compact {
    --sd-header-control-h: 2rem; /* 32px */
    --sd-header-control-px: 0.7rem;
    --sd-header-control-fs: 0.8125rem;
    --sd-header-control-icon: 0.95rem;
    box-shadow: 0 6px 20px rgba(24, 50, 71, 0.1);
}

/* Единая высота контролов верхней шапки (кнопки, язык, каталог, корзина, меню, телефон). */
.sd-header .btn.btn-sm,
.sd-header .sd-nav-catalog,
.sd-header .sd-cart-link,
.sd-header .sd-nav-link,
.sd-header .sd-header__phone {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--sd-header-control-h);
    height: var(--sd-header-control-h);
    padding-top: 0;
    padding-bottom: 0;
    padding-left: var(--sd-header-control-px);
    padding-right: var(--sd-header-control-px);
    font-size: var(--sd-header-control-fs);
    font-weight: 600;
    line-height: 1;
    vertical-align: middle;
    transition:
        height 0.25s ease,
        min-height 0.25s ease,
        padding 0.25s ease,
        font-size 0.25s ease,
        color 0.15s ease,
        background-color 0.15s ease,
        border-color 0.15s ease;
}

.sd-header__inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: padding 0.25s ease;
}

.sd-header.is-compact .sd-header__inner {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.sd-header__row {
    transition: gap 0.25s ease;
}

.sd-header.is-compact .sd-header__row {
    gap: 0.5rem !important;
}

.sd-header__actions {
    flex-shrink: 0;
}

.sd-header__account {
    gap: 0.25rem;
}

.sd-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.sd-logo__img,
.sd-logo img {
    display: block;
    height: 56px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: height 0.25s ease, max-width 0.25s ease;
}

.sd-header.is-compact .sd-logo__img,
.sd-header.is-compact .sd-logo img {
    height: 40px;
    max-width: 150px;
}

@media (max-width: 575.98px) {
    .sd-logo__img,
    .sd-logo img {
        height: 48px;
        max-width: 140px;
    }

    .sd-header.is-compact .sd-logo__img,
    .sd-header.is-compact .sd-logo img {
        height: 36px;
        max-width: 120px;
    }
}

.sd-nav-catalog {
    border-radius: 999px;
    gap: 0.25rem;
}

.sd-nav-link {
    color: var(--sd-text);
    text-decoration: none;
    font-weight: 500;
    border-radius: 999px;
}

.sd-header .sd-nav-link {
    font-weight: 500;
}

.sd-nav-link:hover,
.sd-nav-link.is-active {
    color: var(--sd-blue);
    background: var(--sd-banner);
}

.sd-header-nav {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
    transition: margin-top 0.25s ease, gap 0.25s ease;
}

.sd-header.is-compact .sd-header-nav {
    margin-top: 0.5rem;
    gap: 0.35rem !important;
}

.sd-header-nav__catalog {
    min-width: 0;
}

.sd-header-search {
    display: flex;
    align-items: stretch;
    flex: 1 1 12rem;
    min-width: 0;
    max-width: 32rem;
    height: var(--sd-header-control-h);
    min-height: var(--sd-header-control-h);
}

.sd-header-search__input {
    box-sizing: border-box;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 0.9rem;
    border: 1px solid rgba(24, 50, 71, 0.16);
    border-right: 0;
    border-radius: 999px 0 0 999px;
    background: var(--sd-bg);
    color: var(--sd-text);
    font-size: var(--sd-header-control-fs);
    line-height: 1.2;
}

.sd-header-search__input::placeholder {
    color: var(--sd-muted);
}

.sd-header-search__input:focus {
    outline: 0;
    border-color: var(--sd-blue);
    background: #fff;
}

.sd-header-search__submit {
    flex-shrink: 0;
    width: var(--sd-header-control-h);
    min-width: var(--sd-header-control-h);
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-radius: 0 999px 999px 0;
}

.sd-header-menu {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.sd-header-menu > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.25rem 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sd-header-menu__item {
    margin: 0;
}

.sd-header-menu--drawer {
    display: block;
    margin-bottom: 1.25rem;
}

.sd-header-menu--drawer > ul {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.15rem;
}

.sd-catalog-offcanvas .sd-header-menu--drawer .sd-nav-link {
    justify-content: flex-start;
    width: 100%;
    min-height: 2.75rem;
    height: auto;
    padding: 0.75rem 0.65rem;
    border-radius: 0.5rem;
}

.sd-cart-link {
    position: relative;
    flex-direction: row;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--sd-text);
    border: 1px solid transparent;
    border-radius: 999px;
}

.sd-cart-link:hover,
.sd-cart-link.is-active {
    color: var(--sd-blue);
    background: var(--sd-banner);
}

.sd-cart-link__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
}

.sd-cart-link i {
    font-size: var(--sd-header-control-icon);
    line-height: 1;
    color: var(--sd-blue);
    transition: font-size 0.25s ease;
}

.sd-header__lang {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.sd-header__lang-toggle {
    gap: 0.375rem;
}

.sd-header__lang-icon {
    font-size: var(--sd-header-control-icon);
    line-height: 1;
}

.sd-header__lang-chevron {
    flex-shrink: 0;
    font-size: 0.7rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.sd-header__lang.is-open .sd-header__lang-chevron {
    transform: rotate(180deg);
}

.sd-header__lang.is-open .sd-header__lang-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.sd-header__lang-menu {
    position: absolute;
    top: calc(100% + 0.375rem);
    right: 0;
    z-index: 70;
    min-width: 10rem;
    padding: 0.375rem;
    border: 1px solid rgba(24, 50, 71, 0.12);
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(24, 50, 71, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.sd-header__lang-menu[hidden] {
    display: block !important;
}

.sd-header__lang-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    color: var(--sd-text);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sd-header__lang-option:hover {
    background: var(--sd-banner);
    color: var(--sd-blue);
}

.sd-header__lang-option.is-active {
    background: var(--sd-blue);
    color: #fff;
}

.sd-header__lang-option.is-active .sd-header__lang-option-code {
    color: rgba(255, 255, 255, 0.72);
}

.sd-header__lang-option-code {
    flex-shrink: 0;
    min-width: 1.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #737373;
}

.sd-header__lang-option-name {
    flex: 1 1 auto;
    min-width: 0;
}

.sd-header__phone {
    gap: 0.375rem;
    text-decoration: none;
    color: var(--sd-text);
    border: 1px solid transparent;
    border-radius: 999px;
    white-space: nowrap;
}

.sd-header__phone:hover,
.sd-header__phone:focus-visible {
    color: var(--sd-blue);
    background: var(--sd-banner);
}

.sd-header__phone-icon {
    font-size: var(--sd-header-control-icon);
    line-height: 1;
    color: var(--sd-blue);
    transition: font-size 0.25s ease;
}

.sd-header__phone-number {
    font-weight: 600;
}

.sd-header__lang-short {
    display: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

@media (max-width: 767.98px) {
    .sd-header {
        --sd-header-control-h: 2.75rem; /* 44px tap target */
        --sd-header-control-px: 0.55rem;
        --sd-header-control-fs: 0.8125rem;
    }

    .sd-header.is-compact {
        --sd-header-control-h: 2.75rem;
        --sd-header-control-px: 0.5rem;
    }

    .sd-header__inner {
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    .sd-header__row {
        flex-wrap: nowrap;
        gap: 0.35rem !important;
    }

    .sd-header-nav {
        margin-top: 0.65rem;
        flex-wrap: nowrap;
        gap: 0.35rem !important;
    }

    .sd-header.is-compact .sd-header-nav {
        margin-top: 0.45rem;
    }

    .sd-header-nav > .sd-header-menu {
        display: none !important;
    }

    .sd-header-search {
        max-width: none;
        flex: 1 1 auto;
    }

    .sd-header-search__input {
        padding-left: 0.75rem;
        padding-right: 0.7rem;
        font-size: 0.875rem;
    }

    .sd-header__actions {
        gap: 0.25rem !important;
        min-width: 0;
    }

    .sd-header__action-label {
        display: none;
    }

    .sd-header .sd-header__account,
    .sd-header .sd-cart-link,
    .sd-header .sd-header__phone {
        width: var(--sd-header-control-h);
        min-width: 2.75rem;
        padding-left: 0;
        padding-right: 0;
    }

    .sd-header .sd-nav-catalog {
        flex-shrink: 0;
        padding-left: 0.7rem;
        padding-right: 0.75rem;
    }

    .sd-nav-catalog__label {
        display: inline;
    }

    .sd-header__lang-current {
        display: none !important;
    }

    .sd-header__lang-short {
        display: inline;
    }

    .sd-header__lang-chevron {
        display: none;
    }

    .sd-header .sd-header__lang-toggle {
        padding-left: 0.5rem;
        padding-right: 0.55rem;
        min-width: 2.75rem;
    }

    .sd-header__phone-number {
        display: none !important;
    }

    .sd-logo__img,
    .sd-logo img {
        height: 40px;
        max-width: 110px;
    }

    .sd-header.is-compact .sd-logo__img,
    .sd-header.is-compact .sd-logo img {
        height: 36px;
        max-width: 100px;
    }
}

.sd-cart-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.45rem;
    z-index: 1;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    background: var(--sd-green);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.05rem;
    text-align: center;
}

.sd-hero {
    background: var(--sd-badge, var(--sd-banner));
    border-radius: var(--sd-radius);
    padding: 2.5rem 1.5rem;
}

.sd-hero-badge {
    display: inline-block;
    background: rgba(120, 184, 42, 0.18);
    color: var(--sd-green-dark);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.sd-feature-card,
.sd-category-card,
.sd-product-card {
    background: #fff;
    border: 0;
    border-radius: var(--sd-radius-sm);
    box-shadow: 0 8px 24px rgba(8, 120, 209, 0.06);
    position: relative;
    z-index: 1;
    overflow: visible;
}

.sd-product-card:hover,
.sd-product-card:focus-within {
    z-index: 4;
}

.sd-category-card {
    text-align: center;
    text-decoration: none;
    color: var(--sd-text);
    transition: border-color 0.15s ease, transform 0.15s ease;
    border: 2px solid transparent;
}

.sd-category-card:hover {
    border-color: var(--sd-blue);
    color: var(--sd-text);
    transform: translateY(-2px);
}

.sd-category-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 0.75rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sd-banner);
    color: var(--sd-blue);
    font-size: 1.75rem;
}

.sd-product-card .sd-product-media {
    background: #f3f7fa;
    border-radius: var(--sd-radius-sm) var(--sd-radius-sm) 0 0;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sd-product-card .sd-product-media img {
    max-height: max(50vh, 500px);
    object-fit: contain;
    width: 100%;
}

.sd-product-gallery {
    --sd-gallery-ratio: 1 / 1;
    background: #fff;
    border-radius: var(--sd-radius-sm);
    box-shadow: 0 8px 24px rgba(8, 120, 209, 0.06);
    padding: 0.75rem;
}

.sd-product-gallery__stage {
    background: #f3f7fa;
    border-radius: var(--sd-radius-sm);
    overflow: hidden;
    aspect-ratio: var(--sd-gallery-ratio);
    width: min(100%, min(70vh, 32rem));
    max-width: 100%;
    margin-inline: auto;
    position: relative;
}

/* Одно фото: flex только вне carousel-inner. Flex на inner ломает float + margin-right:-100%. */
.sd-product-gallery__stage:not(.carousel-inner) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sd-product-gallery__carousel {
    width: 100%;
}

.sd-product-gallery__carousel .carousel-inner {
    display: block;
    width: 100%;
    overflow: hidden;
}

.sd-product-gallery__carousel .carousel-item {
    width: 100%;
    height: 100%;
    margin-left: 0;
}

.sd-product-gallery__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: zoom-in;
}

.sd-product-gallery__stage .sd-product-gallery__link img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.sd-product-gallery__control {
    width: 2.75rem;
    opacity: 0.85;
}

.sd-product-gallery__control:hover,
.sd-product-gallery__control:focus {
    opacity: 1;
}

.sd-product-gallery__control .carousel-control-prev-icon,
.sd-product-gallery__control .carousel-control-next-icon {
    filter: invert(1) grayscale(100);
    background-color: rgba(24, 50, 71, 0.35);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    background-size: 60% 60%;
}

.sd-product-gallery__thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
}

.sd-product-gallery__thumb {
    flex: 0 0 4.5rem;
    width: 4.5rem;
    height: 4.5rem;
    padding: 0.2rem;
    border: 2px solid transparent;
    border-radius: 0.65rem;
    background: #f3f7fa;
    overflow: hidden;
}

.sd-product-gallery__thumb img {
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sd-product-gallery__thumb.is-active,
.sd-product-gallery__thumb[aria-current="true"] {
    border-color: var(--sd-blue);
    background: #fff;
}

.sd-product-gallery__thumb:focus-visible {
    outline: 2px solid var(--sd-blue);
    outline-offset: 2px;
}

@media (max-width: 575.98px) {
    .sd-product-gallery {
        padding: 0.5rem;
    }

    .sd-product-gallery__stage {
        width: 100%;
    }

    .sd-product-gallery__thumb {
        flex-basis: 3.75rem;
        width: 3.75rem;
        height: 3.75rem;
    }
}

.sd-product-price {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--sd-text);
}

.sd-warehouse-select--card {
    margin-bottom: 0.5rem;
}

.sd-warehouse-select--card .js-warehouse-toggle {
    border: 1px solid rgba(24, 50, 71, 0.12);
    background: #f3f7fa;
    color: var(--sd-text);
    border-radius: 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    box-shadow: none;
}

.sd-warehouse-select--card .js-warehouse-toggle:hover,
.sd-warehouse-select--card .js-warehouse-toggle:focus {
    border-color: var(--sd-blue);
    background: #fff;
    color: var(--sd-text);
    box-shadow: 0 0 0 0.15rem rgba(8, 120, 209, 0.15);
}

.sd-warehouse-select--card .js-warehouse-label {
    display: inline-block;
    max-width: calc(100% - 1.25rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.sd-warehouse-select--card .dropdown-menu {
    border: 0;
    border-radius: 0.65rem;
    box-shadow: 0 10px 28px rgba(8, 120, 209, 0.14);
    padding: 0.35rem;
    font-size: 0.8125rem;
}

.sd-warehouse-select--card .dropdown-item {
    border-radius: 0.45rem;
    padding: 0.4rem 0.65rem;
    color: var(--sd-text);
}

.sd-warehouse-select--card .dropdown-item:hover,
.sd-warehouse-select--card .dropdown-item:focus {
    background: var(--sd-banner);
    color: var(--sd-blue);
}

.sd-section-title {
    font-weight: 700;
    color: var(--sd-text);
}

@media (min-width: 992px) {
    .sd-checkout__aside .sticky-lg-top {
        top: 5.5rem;
    }
}

.sd-checkout-line__image {
    width: 64px;
    height: 64px;
}

.sd-checkout-line__meta li + li {
    margin-top: 0.15rem;
}

.sd-homepage-news__item {
    display: flex;
    flex-direction: column;
}

.sd-homepage-news__media {
    display: block;
    margin-bottom: 0.75rem;
    border-radius: var(--sd-radius-sm);
    overflow: hidden;
    background: #f3f7fa;
}

.sd-homepage-news__media img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
}

.sd-homepage-news__item h3 a:hover {
    color: var(--sd-blue);
}

.sd-footer {
    background: #fff;
    border-top: 1px solid rgba(24, 50, 71, 0.08);
}

.sd-footer__brand {
    color: var(--sd-text);
}

.sd-footer__brand:hover {
    color: var(--sd-blue);
}

.sd-footer__title {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sd-muted);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.sd-footer-menu > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

.sd-footer-menu__item {
    margin: 0;
}

.sd-footer-link {
    color: var(--sd-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
}

.sd-footer-link:hover {
    color: var(--sd-blue);
}

.sd-footer .sd-contact-list__item {
    margin-bottom: 0.75rem;
}

.sd-footer .sd-contact-social {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.1rem;
}

.sd-footer .dev {
    display: flex;
    align-items: center;
}

.sd-footer .dev a,
.sd-footer .dev__link {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: var(--sd-muted);
    text-decoration: none;
}

.sd-footer .dev a:hover,
.sd-footer .dev__link:hover {
    color: var(--sd-blue);
}

.sd-footer .dev__name {
    font-weight: 700;
    color: var(--sd-text);
}

.sd-footer .dev a:hover .dev__name,
.sd-footer .dev__link:hover .dev__name {
    color: var(--sd-blue);
}

@media (max-width: 767.98px) {
    .sd-footer-menu > ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }
}

/* —— Страница /contact —— */
.sd-contact-list__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sd-contact-list__item:last-child {
    margin-bottom: 0;
}

.sd-contact-list__item > .bi {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-top: 0.1rem;
}

.sd-contact-list__link {
    color: var(--sd-text);
    text-decoration: none;
}

.sd-contact-list__link:hover {
    color: var(--sd-blue);
}

.sd-contact-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--sd-radius-sm);
    border: 1px solid rgba(24, 50, 71, 0.1);
    background: var(--sd-banner);
    color: var(--sd-blue);
    font-size: 1.25rem;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sd-contact-social:hover {
    background: var(--sd-blue);
    border-color: var(--sd-blue);
    color: #fff;
}

.sd-contact-social--disabled {
    opacity: 0.45;
    cursor: default;
}

.sd-contact-social--disabled:hover {
    background: var(--sd-banner);
    border-color: rgba(24, 50, 71, 0.1);
    color: var(--sd-blue);
}

.sd-contact-content :first-child {
    margin-top: 0;
}

.sd-contact-content :last-child {
    margin-bottom: 0;
}

/* —— Страница /about —— */
.sd-about-content {
    color: var(--sd-text);
    line-height: 1.65;
}

.sd-about-content :first-child {
    margin-top: 0;
}

.sd-about-content :last-child {
    margin-bottom: 0;
}

.sd-about-content ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.sd-about-content a {
    color: var(--sd-blue);
    text-decoration: none;
}

.sd-about-content a:hover {
    text-decoration: underline;
}

.list-group-item.active {
    background-color: var(--sd-blue);
    border-color: var(--sd-blue);
}

.card {
    border-radius: var(--sd-radius-sm);
}

.text-muted,
.text-secondary {
    color: var(--sd-muted) !important;
}

/* —— Карточки категорий на /shop —— */
.sd-catalog-intro {
    max-width: 40rem;
}

.catalog-menu--cards .catalog-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .catalog-menu--cards .catalog-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .catalog-menu--cards .catalog-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (min-width: 1280px) {
    .catalog-menu--cards .catalog-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.catalog-menu--cards .catalog-cards__item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 100%;
    padding: 1rem 1.125rem;
    border: 1px solid rgba(24, 50, 71, 0.1);
    border-radius: var(--sd-radius-sm);
    background: #fff;
    box-shadow: 0 8px 24px rgba(8, 120, 209, 0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.catalog-menu--cards .catalog-cards__item:hover {
    border-color: rgba(8, 120, 209, 0.25);
    box-shadow: 0 12px 30px rgba(8, 120, 209, 0.1);
    transform: translateY(-1px);
}

.catalog-menu--cards .catalog-cards__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.catalog-menu--cards .catalog-cards__image {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(24, 50, 71, 0.1);
    border-radius: 0.75rem;
    background: var(--sd-banner);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-menu--cards .catalog-cards__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-menu--cards .catalog-cards__image--placeholder {
    color: var(--sd-blue);
    font-size: 1.25rem;
}

.catalog-menu--cards .catalog-cards__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--sd-text);
    text-decoration: none;
}

.catalog-menu--cards .catalog-cards__title:hover {
    color: var(--sd-blue);
}

.catalog-menu--cards .catalog-cards__subs {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.catalog-menu--cards .catalog-cards__subs--nested {
    margin-left: 0.75rem;
    margin-top: 0.15rem;
}

.catalog-menu--cards .catalog-cards__sub-link,
.catalog-menu--cards .catalog-cards__sub-text {
    display: block;
    padding: 0.25rem 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--sd-muted);
    text-decoration: none;
}

.catalog-menu--cards .catalog-cards__sub-link:hover {
    color: var(--sd-blue);
}

.catalog-menu--cards .catalog-cards__all {
    margin-top: auto;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sd-blue);
    text-decoration: none;
}

.catalog-menu--cards .catalog-cards__all:hover {
    text-decoration: underline;
}


/* —— Мегаменю каталога (desktop) —— */
/* Якорь панели — .sd-header-nav, не зона кнопки: иначе ширина = триггер. */
.header-catalog__trigger {
    display: inline-flex;
    align-items: center;
}

.header-catalog__chevron {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.header-catalog-zone.is-open .header-catalog__chevron {
    transform: rotate(180deg);
}

.header-catalog__panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 1040;
    width: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.header-catalog-zone.is-open .header-catalog__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.catalog-menu--mega {
    border: 1px solid rgba(24, 50, 71, 0.1);
    background: #fff;
    border-radius: var(--sd-radius-sm);
    box-shadow: 0 24px 60px rgba(8, 120, 209, 0.12);
    overflow: hidden;
    width: 100%;
}

.catalog-mega__inner {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 300px;
    max-height: min(70vh, 571px); 
}

.catalog-mega__nav {
    border-right: 1px solid rgba(24, 50, 71, 0.08);
    background: var(--sd-bg);
    overflow-y: auto;
}

.catalog-mega__nav-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.catalog-mega__nav-item.is-active .catalog-mega__nav-link {
    background: #fff;
    color: var(--sd-text);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--sd-blue);
}

.catalog-mega__nav-link {
    display: block;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    line-height: 1.35;
    color: var(--sd-muted);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.catalog-mega__nav-link:hover {
    background: #fff;
    color: var(--sd-blue);
}

.catalog-mega__panels {
    position: relative;
    overflow: hidden;
}

.catalog-mega__panel {
    display: none;
    height: 100%;
    padding: 1rem 1.25rem 1.25rem;
    overflow-y: auto;
}

.catalog-mega__panel.is-active {
    display: block;
}

.catalog-mega__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
}

@media (min-width: 900px) {
    .catalog-mega__columns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.catalog-mega__group-title {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--sd-text);
    text-decoration: none;
}

.catalog-mega__group-title:hover {
    color: var(--sd-blue);
}

.catalog-mega__level3 {
    list-style: none;
    margin: 0;
    padding: 0;
}

.catalog-mega__level3-link {
    display: block;
    padding: 0.2rem 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--sd-muted);
    text-decoration: none;
}

.catalog-mega__level3-link:hover {
    color: var(--sd-blue);
}

.catalog-mega__footer {
    border-top: 1px solid rgba(24, 50, 71, 0.08);
    padding: 0.75rem 1.25rem;
    background: var(--sd-banner);
}

.catalog-mega__all {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sd-blue);
    text-decoration: none;
}

.catalog-mega__all:hover {
    text-decoration: underline;
}

/* —— Мобильный каталог (offcanvas + drill-down) —— */
.sd-catalog-offcanvas {
    --bs-offcanvas-width: min(100vw, 22rem);
}

.catalog-menu--mobile .catalog-mobile__panel[hidden] {
    display: none !important;
}

.catalog-menu--mobile .catalog-mobile__panel.is-active:not([hidden]) {
    animation: sd-catalog-mobile-slide 0.2s ease;
}

@keyframes sd-catalog-mobile-slide {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.catalog-mobile__section-title {
    margin: 0 0 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sd-muted);
}

.catalog-mobile__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--sd-blue);
    font-size: 0.875rem;
    cursor: pointer;
}

.catalog-mobile__panel-title {
    display: block;
    margin: 0 0 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(24, 50, 71, 0.1);
    font-size: 1rem;
    font-weight: 700;
    color: var(--sd-text);
    text-decoration: none;
}

.catalog-mobile__panel-title:hover {
    color: var(--sd-blue);
}

.catalog-mobile__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.catalog-mobile__item {
    border-bottom: 1px solid rgba(24, 50, 71, 0.08);
}

.catalog-mobile__item:last-child {
    border-bottom: 0;
}

.catalog-mobile__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0;
    border: 0;
    background: transparent;
    color: var(--sd-text);
    font-size: 0.9375rem;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.catalog-mobile__row:hover {
    color: var(--sd-blue);
}

.catalog-mobile__row--branch {
    font-weight: 600;
}

.catalog-mobile__arrow {
    color: var(--sd-muted);
    font-size: 0.85rem;
}

.sd-warehouse-select .dropdown-item.active {
    background: var(--sd-blue, #0d6efd);
    color: #fff;
}

.js-add-to-cart.is-busy {
    opacity: 0.7;
    pointer-events: none;
}

.sd-cart-added-modal__media {
    width: 5.5rem;
    height: 5.5rem;
    flex-shrink: 0;
    border-radius: var(--sd-radius-sm);
    background: #f3f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sd-cart-added-modal__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sd-cart-added-modal__info {
    min-width: 0;
}

.sd-cart-added-modal__qty {
    max-width: 10rem;
}

.sd-cart-added-modal .modal-content {
    border: 0;
    border-radius: var(--sd-radius-sm);
    box-shadow: 0 12px 32px rgba(8, 120, 209, 0.12);
}

.sd-warehouse-select--card .js-warehouse-toggle.is-invalid {
    border-color: #dc3545;
}

.sd-cabinet-nav .list-group-item.active {
    background: var(--sd-blue);
    border-color: var(--sd-blue);
}

.sd-cabinet-nav .sd-cabinet-nav__logout {
    border-radius: 0;
    border: 0;
    background: transparent;
    color: #c0392b;
}

.sd-cabinet-nav .sd-cabinet-nav__logout:hover {
    background: rgba(192, 57, 43, 0.08);
    color: #922b21;
}

/* —— Файлы на шаблонной странице (base-file) —— */
.sd-page-files {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
}

.sd-page-file {
    width: 7.5rem;
    max-width: 100%;
}

.sd-page-file__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 0.5rem 0.75rem;
    border-radius: var(--sd-radius-sm);
    border: 1px solid rgba(24, 50, 71, 0.1);
    background: #fff;
    color: var(--sd-text);
    text-decoration: none;
    text-align: center;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.sd-page-file__link:hover {
    border-color: var(--sd-blue);
    box-shadow: 0 0.35rem 1rem rgba(8, 120, 209, 0.12);
    color: var(--sd-blue-dark);
}

.sd-page-file__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 3.25rem;
}

.sd-page-file__icon .bi {
    line-height: 1;
}

.sd-page-file__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    word-break: break-word;
}

.sd-page-file--pdf .sd-page-file__icon { color: #d32f2f; }
.sd-page-file--doc .sd-page-file__icon { color: #1565c0; }
.sd-page-file--xls .sd-page-file__icon { color: #2e7d32; }
.sd-page-file--ppt .sd-page-file__icon { color: #e65100; }
.sd-page-file--txt .sd-page-file__icon { color: #546e7a; }
.sd-page-file--zip .sd-page-file__icon { color: #6a1b9a; }
.sd-page-file--image .sd-page-file__icon { color: #00838f; }
.sd-page-file--video .sd-page-file__icon { color: #ad1457; }
.sd-page-file--audio .sd-page-file__icon { color: #6d4c41; }
.sd-page-file--default .sd-page-file__icon { color: var(--sd-blue); }

