/* Full-page fixed substrate — content scrolls over it */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: url("/images/band_up.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    pointer-events: none;
}

.page-bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.12) 0%,
        rgba(0, 0, 0, 0.04) 40%,
        rgba(0, 0, 0, 0.18) 100%
    );
}

.site-wrap {
    position: relative;
    z-index: 10;
}

/* Отступ под шапкой: логотип + ряд меню (награда — в градиентном баннере) */
.main-below-stacked-header {
    padding-top: 4.65rem;
}
@media (min-width: 640px) {
    .main-below-stacked-header {
        padding-top: 5rem;
    }
}

.main-below-double-header {
    padding-top: 6.65rem;
}
@media (min-width: 640px) {
    .main-below-double-header {
        padding-top: 7rem;
    }
}
@media (min-width: 1024px) {
    .main-below-double-header {
        padding-top: 7.2rem;
    }
}
@media (min-width: 1024px) {
    .main-below-stacked-header {
        padding-top: 5.35rem;
    }
}

/* Первый блок без <main> (баннер «О нас» и т.п.) */
.hero-below-stacked-header {
    margin-top: 4.65rem;
}
@media (min-width: 640px) {
    .hero-below-stacked-header {
        margin-top: 5rem;
    }
}
@media (min-width: 1024px) {
    .hero-below-stacked-header {
        margin-top: 5.35rem;
    }
}

/* Шапка: плавный градиент слева направо вместо ровной заливки */
.site-wrap > header {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(248, 250, 252, 0.93) 58%,
        rgba(226, 232, 240, 0.78) 100%
    );
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.award-under-brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    background: transparent;
    transition: transform 0.2s ease;
}
.award-under-brand:hover {
    transform: scale(1.03);
}
.award-under-brand img {
    display: block;
    height: 3.35rem;
    width: auto;
    max-width: min(56vw, 11.5rem);
    object-fit: contain;
    filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.16));
}
@media (min-width: 640px) {
    .award-under-brand img {
        height: 4.15rem;
        max-width: 14rem;
    }
}
@media (min-width: 1024px) {
    .award-under-brand img {
        height: 4.85rem;
        max-width: 18rem;
    }
}

/* Награда внизу градиентного баннера (под слоганом / призывом) */
.hero-banner .award-in-hero img,
.cta-banner .award-in-hero img {
    height: 2.85rem;
    max-width: min(78vw, 12.5rem);
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5))
        drop-shadow(0 2px 10px rgba(255, 255, 255, 0.14));
}
@media (min-width: 640px) {
    .hero-banner .award-in-hero img,
    .cta-banner .award-in-hero img {
        height: 3.5rem;
        max-width: 15rem;
    }
}
@media (min-width: 1024px) {
    .hero-banner .award-in-hero img,
    .cta-banner .award-in-hero img {
        height: 4.1rem;
        max-width: 17rem;
    }
}


/* Продукция: награда в верхнем левом углу баннера, крупнее */
.hero-banner .award-in-hero-corner img {
    height: 3.85rem;
    max-width: min(86vw, 15rem);
}
@media (min-width: 640px) {
    .hero-banner .award-in-hero-corner img {
        height: 4.75rem;
        max-width: 18rem;
    }
}
@media (min-width: 1024px) {
    .hero-banner .award-in-hero-corner img {
        height: 5.6rem;
        max-width: 20.5rem;
    }
}

/* Продукция: подложка под блоком линеек — от прозрачного к почти непрозрачному */
.products-catalog-surface {
    position: relative;
    border-radius: 1rem;
    padding: 1.5rem 0.5rem 2rem;
}
.products-catalog-surface::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.78) 0%,
        rgba(255, 255, 255, 0.90) 30%,
        rgba(255, 255, 255, 0.96) 65%,
        rgba(255, 255, 255, 0.99) 92%,
        #ffffff 100%
    );
    pointer-events: none;
    z-index: 0;
}
.products-catalog-surface > .products-catalog-inner {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .page-bg {
        background-attachment: scroll;
    }

    .hero-banner,
    .cta-banner {
        min-height: 50vh;
    }
}


/* Награда во второй полосе шапки: компактно в аккуратном квадрате */
.award-strip-left {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(59, 130, 246, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.award-strip-left img {
    width: 2.05rem;
    height: 2.05rem;
    max-width: none;
    object-fit: contain;
}
@media (min-width: 640px) {
    .award-strip-left {
        width: 3.05rem;
        height: 3.05rem;
    }
    .award-strip-left img {
        width: 2.3rem;
        height: 2.3rem;
    }
}

/* Карусель последних наград в шапке (главная страница) */
.awards-carousel-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}
.awards-carousel-title {
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 3px 12px rgba(15, 23, 42, 0.56);
    letter-spacing: 0.03em;
    line-height: 1;
    text-align: center;
}
.awards-carousel-window {
    position: relative;
    width: clamp(8.4rem, 16vw, 10.6rem);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.10);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.12));
    backdrop-filter: none;
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.16),
        0 0 26px rgba(255, 255, 255, 0.20),
        0 0 0 1px rgba(255, 255, 255, 0.20) inset;
}
.awards-carousel-window::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.12), rgba(59, 130, 246, 0.24));
    -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.52;
}
.awards-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.35s ease;
    will-change: transform;
}
.awards-carousel-item {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.22rem;
    text-decoration: none;
    position: relative;
}
.awards-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 0.78rem;
    box-shadow:
        0 6px 14px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}
.awards-carousel-item::after {
    content: "";
    position: absolute;
    inset: 0.22rem;
    border-radius: 0.78rem;
    pointer-events: none;
    box-shadow:
        inset 0 0 22px rgba(255, 255, 255, 0.32),
        inset 0 0 16px rgba(15, 23, 42, 0.08);
}
.awards-carousel-caption {
    display: none;
}
.awards-carousel-btn {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.25);
    background: rgba(255, 255, 255, 0.9);
    color: #1d4ed8;
    font-size: 0.95rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.awards-carousel-btn:disabled {
    opacity: 0.45;
    cursor: default;
}
.awards-carousel-empty {
    width: 100%;
    padding: 0.45rem 0.6rem;
    font-size: 0.72rem;
    color: #6b7280;
    text-align: center;
}


/* Главная: шапка в 2 строки (меню + полоса наград) */
.main-below-header-index {
    padding-top: 7.45rem;
}
@media (min-width: 640px) {
    .main-below-header-index {
        padding-top: 7.8rem;
    }
}
@media (min-width: 1024px) {
    .main-below-header-index {
        padding-top: 8.1rem;
    }
}

/* Главная: карусель реальных линеек продукции */
.lines-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.lines-carousel-window {
    flex: 1;
    overflow: hidden;
    border-radius: 1rem;
    scroll-behavior: smooth;
}
.lines-carousel-track {
    display: flex;
    gap: 0.9rem;
    will-change: scroll-position;
    scroll-snap-type: x mandatory;
}
.lines-carousel-item {
    min-width: calc((100% - 0.9rem) / 2);
    display: block;
    scroll-snap-align: center;
    text-decoration: none;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lines-carousel-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}
.lines-carousel-image {
    width: 100%;
    height: clamp(8.5rem, 19vw, 10.5rem);
    background: linear-gradient(145deg, #f1f5f9, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lines-carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.lines-carousel-fallback {
    color: #64748b;
    font-size: 0.95rem;
}
.lines-carousel-name {
    padding: 0.65rem 0.75rem 0.75rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: #1f2937;
}
.lines-carousel-btn {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.28);
    background: rgba(255, 255, 255, 0.94);
    color: #1d4ed8;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}
.lines-carousel-btn:disabled {
    opacity: 0.45;
    cursor: default;
}
.lines-carousel-loading,
.lines-carousel-empty {
    min-width: 100%;
    padding: 2rem 1rem;
    text-align: center;
    color: #6b7280;
    border-radius: 1rem;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    background: rgba(248, 250, 252, 0.8);
}

@media (min-width: 1024px) {
    .lines-carousel-item {
        min-width: calc((100% - 1.8rem) / 3);
    }
}

/* Главная: карусель последних новостей (картинка + заголовок) */
.news-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.news-carousel-window {
    flex: 1;
    overflow: hidden;
    border-radius: 1rem;
    scroll-behavior: smooth;
}
.news-carousel-track {
    display: flex;
    gap: 0.9rem;
    will-change: scroll-position;
    scroll-snap-type: x mandatory;
}
.news-carousel-item {
    min-width: calc((100% - 0.9rem) / 2);
    display: block;
    scroll-snap-align: center;
    text-decoration: none;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-carousel-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}
.news-carousel-image {
    width: 100%;
    height: clamp(8.5rem, 19vw, 10.5rem);
    background: linear-gradient(145deg, #f1f5f9, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.news-carousel-fallback {
    color: #64748b;
    font-size: 0.95rem;
}
.news-carousel-name {
    padding: 0.65rem 0.75rem 0.75rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-carousel-btn {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.28);
    background: rgba(255, 255, 255, 0.94);
    color: #1d4ed8;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}
.news-carousel-btn:disabled {
    opacity: 0.45;
    cursor: default;
}
.news-carousel-loading,
.news-carousel-empty {
    min-width: 100%;
    padding: 2rem 1rem;
    text-align: center;
    color: #6b7280;
    border-radius: 1rem;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    background: rgba(248, 250, 252, 0.8);
}
@media (min-width: 1024px) {
    .news-carousel-item {
        min-width: calc((100% - 1.8rem) / 3);
    }
}

/* Stage 1: KDV-like visual prototype (index page only) */
.kdv-page {
    background: #f5f7fa;
    color: #1f2937;
}

.kdv-page .site-wrap > header {
    background: rgba(255, 255, 255, 0.99);
    border-bottom: 1px solid #d9e0e8 !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}

.kdv-main {
    padding-bottom: 3rem;
}

.kdv-hero {
    position: relative;
    background: linear-gradient(130deg, #0f4d96 0%, #1d5faa 65%, #2d72bd 100%);
    overflow: hidden;
}

.kdv-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.2), transparent 42%),
        radial-gradient(circle at 88% 24%, rgba(255, 255, 255, 0.18), transparent 36%);
    pointer-events: none;
}

.kdv-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: center;
}

.kdv-hero-title {
    color: #ffffff;
    font-weight: 800;
    font-size: clamp(2rem, 4.8vw, 3.4rem);
    line-height: 1.05;
    margin: 0 0 0.85rem;
}

.kdv-hero-subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 40rem;
    margin: 0 0 1.25rem;
}

.kdv-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.kdv-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    color: #1e3a8a;
    font-weight: 700;
    padding: 0.72rem 1.35rem;
    text-decoration: none;
    border: 1px solid #dbe7f4;
}

.kdv-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 700;
    padding: 0.72rem 1.35rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.kdv-hero-media {
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 0.7rem;
}

.kdv-hero-media img {
    width: 100%;
    height: clamp(13.5rem, 30vw, 18rem);
    object-fit: contain;
    object-position: center;
    border-radius: 0.75rem;
}

.kdv-categories {
    margin-top: -1.4rem;
    position: relative;
    z-index: 20;
}

.kdv-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.kdv-category-card {
    background: #ffffff;
    border: 1px solid #d9e1ea;
    border-radius: 0.7rem;
    padding: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    color: #1f2937;
    box-shadow: none;
}

.kdv-section {
    padding: 3rem 0;
}

.kdv-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.kdv-title {
    margin: 0;
    font-size: clamp(1.55rem, 3.4vw, 2.2rem);
    line-height: 1.15;
    font-weight: 800;
    color: #0f172a;
}

.kdv-subtitle {
    margin: 0.3rem 0 0;
    color: #64748b;
    font-size: 0.98rem;
}

.kdv-filter-row {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin: 0 0 0.95rem;
}

.kdv-filter-chip {
    border-radius: 999px;
    padding: 0.34rem 0.8rem;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.kdv-filter-chip:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
}

.kdv-filter-chip.is-active {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1d4ed8;
}

.kdv-state-box {
    min-width: 100%;
    padding: 1.5rem 1rem;
    border: 1px dashed rgba(148, 163, 184, 0.55);
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.88);
    text-align: center;
}

.kdv-state-text {
    margin: 0 0 0.7rem;
    color: #475569;
    font-size: 0.95rem;
}

.kdv-state-retry {
    border: 1px solid #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.38rem 0.88rem;
}

.kdv-skeleton-card {
    pointer-events: none;
}

.kdv-skeleton-block {
    position: relative;
    overflow: hidden;
    border-radius: 0.6rem;
    background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 48%, #e5e7eb 100%);
    background-size: 200% 100%;
    animation: kdv-skeleton-shimmer 1.25s infinite linear;
}

.kdv-skeleton-image {
    width: 100%;
    height: clamp(8.5rem, 19vw, 10.5rem);
}

.kdv-skeleton-line {
    height: 0.8rem;
    width: 80%;
}

@keyframes kdv-skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.kdv-soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 252, 255, 0.96));
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.kdv-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
}

.kdv-feature {
    background: #ffffff;
    border: 1px solid #dbe3ec;
    border-radius: 0.75rem;
    padding: 1rem 1.1rem;
}

.kdv-feature h3 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.kdv-feature p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
}

.kdv-cta {
    background: linear-gradient(130deg, #0f4d96 0%, #1d5faa 100%);
    color: #ffffff;
    border-radius: 0.9rem;
    padding: 1.2rem;
}

.kdv-cta h2 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    line-height: 1.2;
}

.kdv-cta p {
    margin: 0 0 0.95rem;
    color: rgba(255, 255, 255, 0.92);
}

/* Inner pages in KDV-like style */
.kdv-inner-main {
    padding-bottom: 2.5rem;
}

.kdv-head-shell {
    border-bottom: 1px solid #d6dee7;
}

.kdv-head-top {
    min-height: 3.45rem;
}

.kdv-head-bottom {
    border-top: 1px solid #e5ebf2;
    background: #f8fbff;
}

.kdv-head-menu {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0.42rem 0;
    scrollbar-width: thin;
}

.kdv-head-menu a {
    display: inline-flex;
    align-items: center;
    height: 1.9rem;
    padding: 0 0.75rem;
    border-radius: 0.32rem;
    border: 1px solid transparent;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.kdv-head-menu a.is-active {
    color: #0f4d96;
    background: #eaf2fb;
    border-color: #bfd7f0;
}

.kdv-head-menu a:hover {
    color: #0f4d96;
}

.kdv-inner-hero {
    position: relative;
    background: linear-gradient(130deg, #0f4d96 0%, #1d5faa 60%, #3379c3 100%);
    color: #fff;
    padding: 2.2rem 0;
}

.kdv-inner-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.2), transparent 40%),
        radial-gradient(circle at 84% 15%, rgba(255, 255, 255, 0.14), transparent 35%);
    pointer-events: none;
}

.kdv-inner-content {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #dbe3ec;
    border-radius: 0.45rem;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
    padding: 0.9rem;
}

.kdv-catalog-lines-intro--only-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #334155;
}

/* Каталог: скрытый блок детали товара не должен оставаться в потоке страницы */
#productDetailSection[hidden],
#productDetailSection.hidden,
#productsListPanel[hidden],
#productsListPanel.hidden {
    display: none !important;
}

/* Каталог: деталь товара не показывается, если экран не «detail» */
.kdv-products-catalog-shell[data-catalog-view="lines"] #productDetailSection,
.kdv-products-catalog-shell[data-catalog-view="products"] #productDetailSection,
.kdv-products-catalog-shell[data-catalog-view="loading"] #productDetailSection,
.kdv-products-catalog-shell[data-catalog-view="error"] #productDetailSection {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

.kdv-products-catalog-shell[data-catalog-view="lines"] .kdv-product-detail-sheet,
.kdv-products-catalog-shell[data-catalog-view="products"] .kdv-product-detail-sheet {
    display: none !important;
}

/* Без мерцания при переключении линейки / экрана каталога */
.kdv-products-catalog-shell.kdv-catalog-instant,
.kdv-products-catalog-shell.kdv-catalog-instant *,
.site-global-left-nav.kdv-catalog-instant,
.site-global-left-nav.kdv-catalog-instant * {
    transition: none !important;
    animation: none !important;
}

.kdv-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.8rem;
}

.kdv-split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
}

/* Карточка товара: линейка → название → описание → панель характеристик; фото справа; снизу состав и БЖУ */
.kdv-product-detail-sheet {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

/* Единая верхняя панель: список товаров линейки и карточка товара */
.kdv-catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.6rem;
    padding: 0.65rem 0.75rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.kdv-catalog-toolbar--breadcrumb {
    margin-bottom: 0;
}

.kdv-product-detail-page-head {
    margin-bottom: 1.25rem;
}

.kdv-product-detail-page-head .kdv-catalog-toolbar {
    margin-bottom: 0;
}

.kdv-catalog-toolbar--breadcrumb .kdv-product-breadcrumb {
    flex: 1;
    min-width: 0;
}

.kdv-catalog-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    color: #374151;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    text-align: left;
    font-family: inherit;
}

.kdv-catalog-nav-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #1f2937;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.kdv-catalog-nav-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.kdv-catalog-nav-btn-icon {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    opacity: 0.85;
}

.kdv-product-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.35;
}

.kdv-breadcrumb-sep {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.15rem;
    user-select: none;
}

.kdv-breadcrumb-dot {
    display: block;
    width: 0.28rem;
    height: 0.28rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #94a3b8 0%, #cbd5e1 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.kdv-product-detail-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem 1.75rem;
    align-items: start;
}

@media (min-width: 768px) {
    .kdv-product-detail-grid {
        grid-template-columns: minmax(0, 1fr) minmax(12rem, 34%);
        gap: 2rem;
        padding: 2rem 2.25rem 2.25rem;
        align-items: start;
    }
}

.kdv-product-detail-copy {
    text-align: left;
    justify-self: stretch;
    min-width: 0;
    align-self: start;
}

.kdv-product-detail-category {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #475569;
    margin: 0 0 0.4rem 0;
    line-height: 1.35;
}

.kdv-product-detail-title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    color: #991b1b;
    margin: 0 0 0.65rem 0;
    letter-spacing: -0.02em;
}

.kdv-product-detail-heading-inline {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 0.45rem 0;
}

.kdv-product-detail-desc-wrap {
    margin: 0 0 0.85rem 0;
}

.kdv-product-detail-desc {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #64748b;
    margin: 0 0 0 0;
    max-width: none;
}

.kdv-product-detail-bullets {
    margin: 0 0 0 0;
    padding-left: 1.15rem;
    max-width: none;
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.55;
    list-style: disc;
    text-align: left;
}

.kdv-product-detail-bullets li {
    margin-bottom: 0.35rem;
}

.kdv-product-detail-desc--empty {
    font-style: italic;
    color: #94a3b8;
}

.kdv-product-detail-rule {
    border: 0;
    border-top: 1px solid #cbd5e1;
    margin: 0 0 0 0;
}

/* Панель «как в образце»: линия сверху, сетка подпись + красное значение */
.kdv-product-spec-panel {
    margin-top: 1.15rem;
    padding-top: 1.1rem;
    border-top: 1px solid #c8d4e0;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 0 0 0.35rem 0.35rem;
}

.kdv-product-spec-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.75rem, 1fr));
    gap: 0.95rem 1.15rem;
}

.kdv-product-spec-row--main {
    align-items: start;
}

.kdv-product-detail-extra {
    padding: 1.35rem 1.25rem 1.65rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
}

@media (min-width: 768px) {
    .kdv-product-detail-extra {
        padding: 1.5rem 2.25rem 1.85rem;
    }
}

.kdv-product-detail-extra .kdv-product-detail-subheading {
    margin-top: 0;
    margin-bottom: 0.55rem;
}

.kdv-product-detail-extra .kdv-product-detail-subheading:not(:first-child) {
    margin-top: 1.35rem;
}

.kdv-product-detail-extra .kdv-product-nutrition-row {
    margin-bottom: 0;
}

.kdv-product-spec-cell {
    min-width: 0;
}

.kdv-product-spec-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.28rem;
    line-height: 1.3;
}

.kdv-product-spec-value {
    font-size: 1rem;
    font-weight: 800;
    color: #991b1b;
    line-height: 1.2;
    word-break: break-word;
}

.kdv-product-spec-value--barcode {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
}

.kdv-product-detail-photo {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .kdv-product-detail-photo {
        justify-content: flex-end;
        align-items: flex-end;
        align-self: stretch;
        min-height: 100%;
    }
}

.kdv-product-detail-photo-inner {
    position: relative;
    width: 100%;
    max-width: 20rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .kdv-product-detail-photo-inner {
        margin-left: auto;
        margin-right: 0;
    }
}

.kdv-product-detail-photo-inner img {
    width: 100%;
    height: auto;
    max-height: min(55vh, 22rem);
    object-fit: contain;
    object-position: top center;
    display: block;
}

/* Бейджи на фото: новинка / топ / скоро */
.kdv-catalog-badges {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
    align-items: center;
    max-width: calc(100% - 0.75rem);
    pointer-events: none;
}

.kdv-catalog-badge {
    display: inline-block;
    padding: 0.2rem 0.45rem;
    border-radius: 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
    text-transform: uppercase;
}

.kdv-catalog-badge--new {
    background: #ef4444;
}
.kdv-catalog-badge--top,
.kdv-catalog-badge--hit {
    background: #f59e0b;
}
.kdv-catalog-badge--soon,
.kdv-catalog-badge--promo {
    background: #059669;
}

.kdv-product-detail-badges {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0;
    max-width: 100%;
    pointer-events: none;
}

.kdv-product-detail-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.55rem;
    color: #fff;
    border-radius: 0.3rem;
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.2);
    line-height: 1.15;
}

.kdv-product-detail-badge--new {
    background: #dc2626;
}
.kdv-product-detail-badge--top,
.kdv-product-detail-badge--hit {
    background: #d97706;
}
.kdv-product-detail-badge--soon,
.kdv-product-detail-badge--promo {
    background: #047857;
}

.kdv-product-detail-subheading {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.kdv-product-nutrition-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
    gap: 0.75rem 1rem;
}

.kdv-product-ingredients {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #475569;
    border-left: 3px solid #b91c1c;
    padding-left: 0.85rem;
    margin: 0 0 0.35rem 0;
    text-align: left;
    background: rgba(255, 255, 255, 0.65);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-right: 0.65rem;
    border-radius: 0 0.25rem 0.25rem 0;
}

.kdv-home-catalog-shell {
    border: 1px solid #dde6f0;
    border-radius: 0.45rem;
    background: #ffffff;
    padding: 0.7rem;
}

.kdv-home-catalog-menu {
    border: 1px solid #d8e3ef;
    border-radius: 0.4rem;
    background: #f7fafe;
    padding: 0.55rem;
}

.kdv-home-catalog-menu .kdv-side-menu-title {
    margin-bottom: 0.35rem;
}

.kdv-home-top-section {
    padding: 0 0 0.75rem;
}

.kdv-first-screen {
    padding: 0.15rem 0 0.75rem;
}

.kdv-right-showcase-shell {
    border: 1px solid #d8e3ef;
    border-radius: 0.4rem;
    background: #f7fafe;
    padding: 0.55rem;
    min-height: calc(100vh - 1rem);
    overflow: visible;
}

/* Витрина с заданными высотами строк — не растягивать под весь экран */
.kdv-right-showcase-shell.kdv-showcase-shell--sized {
    min-height: 0;
    height: auto;
    align-content: start;
}

.kdv-showcase-shell--sized .kdv-showcase-grid {
    align-content: start;
    height: auto;
}

/* Страница каталога: мягкий фон и тень вместо «обрубка» без полной высоты экрана */
.kdv-right-showcase-shell.kdv-products-catalog-shell {
    min-height: 0;
    padding: 0.65rem 0.65rem 1.4rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 18%),
        radial-gradient(ellipse 120% 80% at 50% 0%, rgba(219, 234, 254, 0.35), transparent 55%),
        linear-gradient(165deg, #f3f7fc 0%, #e8f1fa 42%, #dfeaf5 100%);
    border-color: #c5d5e5;
    box-shadow:
        0 3px 14px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    position: relative;
    overflow: visible;
}

.kdv-right-showcase-shell.kdv-products-catalog-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(to top, rgba(226, 235, 245, 0.55) 0%, transparent min(28%, 5.5rem));
    opacity: 0.9;
}

.kdv-right-showcase-shell.kdv-products-catalog-shell > * {
    position: relative;
    z-index: 1;
}

.kdv-products-hero-shell {
    border: 1px solid rgba(159, 196, 234, 0.75);
    border-radius: 0.4rem;
    background: linear-gradient(130deg, rgba(15, 77, 150, 0.78) 0%, rgba(29, 95, 170, 0.74) 60%, rgba(51, 121, 195, 0.7) 100%);
    backdrop-filter: blur(3px);
    color: #fff;
    padding: 2rem 1rem;
    min-height: calc(100vh - 1rem);
    overflow: hidden;
}

.kdv-products-hero-inner::after {
    content: "";
    display: table;
    clear: both;
}

.kdv-home-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.7rem;
}

.kdv-home-tile {
    display: block;
    text-decoration: none;
    border: 1px solid #dde6f0;
    border-radius: 0.42rem;
    overflow: hidden;
    background: #fff;
}

.kdv-home-tile.is-active {
    border-color: #8fb7e3;
    box-shadow: 0 0 0 2px #eaf2fb inset;
}

.kdv-home-tile-image {
    height: 9.2rem;
    background: #eef3f9;
}

.kdv-home-tile-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.kdv-home-tile-name {
    padding: 0.55rem 0.62rem 0.62rem;
    color: #1f2937;
    font-size: 0.9rem;
    font-weight: 700;
}

.kdv-side-menu {
    border: 1px solid #dde6f0;
    border-radius: 0.42rem;
    background: #f8fbff;
    padding: 0.55rem;
}

.kdv-side-menu-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.45rem;
}

.kdv-side-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.kdv-side-menu-item {
    width: 100%;
    display: block;
    text-align: left;
    border: 1px solid transparent;
    border-radius: 0.32rem;
    background: #ffffff;
    color: #334155;
    padding: 0.44rem 0.55rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.kdv-side-menu-item:hover {
    color: #0f4d96;
}

.kdv-side-menu-item.is-active {
    background: #eaf2fb;
    border-color: #bfd7f0;
    color: #0f4d96;
}

.site-global-left-nav {
    display: none;
}

/* Логотип — разметка: <a class="kdv-side-nav-logo" href="index.html">…</a> */
.kdv-side-nav-logo {
    display: block;
    margin: 0 0 0.5rem 0;
    line-height: 0;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: opacity 0.2s ease;
}
.kdv-side-nav-logo:hover {
    opacity: 0.88;
}
.kdv-side-nav-logo:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}
.kdv-side-nav-logo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 2.4rem;
    object-fit: contain;
    object-position: left center;
}

.site-global-left-nav .kdv-side-menu-item {
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 0.78rem;
}

/* Линейки в том же столбце: обычный регистр названий, не как пункты верхнего меню */
.kdv-products-lines-nav-block {
    margin-top: 0.7rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    contain: layout style;
}

.kdv-products-lines-nav-list {
    contain: layout style;
}

.kdv-products-lines-nav-title {
    margin-bottom: 0.3rem;
}

.site-global-left-nav .kdv-products-lines-menu-btn {
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.8125rem;
    font-weight: 600;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
}

.kdv-products-lines-menu-name {
    flex: 1;
    min-width: 0;
    text-align: left;
    line-height: 1.3;
    word-break: break-word;
}

.kdv-products-lines-menu-count {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #94a3b8;
}

.site-global-left-nav .kdv-products-lines-menu-btn.is-active .kdv-products-lines-menu-count {
    color: #2563eb;
}

.kdv-catalog-grid--lines-full {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.left-nav-offset {
    margin-left: 0;
}

/* Без нижнего padding: нижняя граница .kdv-bottom-band-inner совпадает с низом footer и с fixed-меню (bottom: 0.75rem + margin-bottom footer) */
.kdv-bottom-band {
    width: auto;
    padding: 0.22rem 0 0;
}

/* Подвал: те же край и тень, что у .kdv-right-showcase-shell / каталога */
.kdv-right-showcase-shell.kdv-bottom-band-inner {
    min-height: 0;
    padding: 0.42rem 0.46rem 0.28rem;
    border: 1px solid #d8e3ef;
    border-radius: 0.4rem;
    background: #f7fafe;
    box-shadow:
        0 3px 14px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    position: relative;
    isolation: isolate;
    overflow: visible;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.kdv-bottom-band-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 50%,
        rgba(226, 235, 245, 0.35) 100%
    );
}

.kdv-bottom-band-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    opacity: 0.14;
    background:
        radial-gradient(ellipse 40% 35% at 15% 25%, rgba(255, 255, 255, 0.85) 0%, transparent 55%),
        radial-gradient(ellipse 42% 36% at 80% 55%, rgba(255, 255, 255, 0.55) 0%, transparent 52%);
    filter: blur(12px);
}

.kdv-bottom-band-inner > * {
    position: relative;
    z-index: 1;
}

/* Верхняя строка подвала: бренд + год слева, копирайт и ключ справа */
.kdv-footer-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.28rem 0.5rem;
    padding-bottom: 0.28rem;
    margin-bottom: 0.3rem;
    border-bottom: 1px solid rgba(203, 213, 225, 0.45);
}

.kdv-footer-brandline {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
    min-width: 0;
}

.kdv-footer-brandline__title {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.12;
}

.kdv-footer-brandline__year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.06rem 0.32rem;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1d4ed8;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid rgba(147, 197, 253, 0.65);
    border-radius: 999px;
}

.kdv-footer-topbar__right {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
}

.kdv-footer-topbar__copy {
    margin: 0;
    font-size: 0.5rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.01em;
    max-width: 15rem;
    text-align: right;
    line-height: 1.2;
}

.kdv-footer-admin-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.32rem 0.36rem;
    border-radius: 999px;
    border: 1px solid #dde6f0;
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.08);
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.kdv-footer-admin-key:hover {
    color: #1d4ed8;
    background: #f5f9ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.14);
    transform: translateY(-1px);
}

.kdv-footer-admin-key:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.kdv-footer-admin-key svg {
    width: 1.05rem;
    height: 1.05rem;
    display: block;
}

.kdv-footer-admin-key--corner {
    position: absolute;
    top: 0.26rem;
    right: 0.34rem;
    z-index: 20;
    padding: 0.3rem 0.36rem;
}

.kdv-footer-admin-key--corner svg {
    width: 1.18rem;
    height: 1.18rem;
}

/* Подвал: три блока — компактнее, ближе к сетке остальных карточек */
.kdv-footer-mid {
    align-items: stretch;
}

.kdv-bottom-band-inner .grid.kdv-footer-mid {
    gap: 0.4rem 0.55rem;
}

@media (min-width: 1024px) {
    .kdv-bottom-band-inner .grid.kdv-footer-mid {
        gap: 0.4rem 0.65rem;
    }
}

.kdv-footer-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 2.65rem;
    padding: 0.28rem 0.36rem;
    border-radius: 0.4rem;
    border: 1px solid #dde6f0;
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.04);
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: hidden;
    -webkit-mask-image: none;
    mask-image: none;
}

/* Три «настроения»: цветной туман + слой сумерек (без рамок) */
.kdv-footer-panel::before {
    display: none;
}

.kdv-footer-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(248, 250, 252, 0.18) 100%);
}

.kdv-footer-panel--company::before {
    background:
        radial-gradient(ellipse 52% 44% at 18% 28%, rgba(167, 243, 208, 0.5) 0%, transparent 72%),
        radial-gradient(ellipse 48% 40% at 85% 72%, rgba(45, 212, 191, 0.28) 0%, transparent 70%),
        radial-gradient(ellipse 55% 48% at 50% 100%, rgba(15, 23, 42, 0.12) 0%, transparent 65%);
}

.kdv-footer-panel--contacts::before {
    background:
        radial-gradient(ellipse 52% 44% at 24% 28%, rgba(147, 197, 253, 0.48) 0%, transparent 72%),
        radial-gradient(ellipse 50% 42% at 82% 65%, rgba(99, 102, 241, 0.22) 0%, transparent 70%),
        radial-gradient(ellipse 48% 40% at 52% 8%, rgba(15, 23, 42, 0.11) 0%, transparent 68%);
}

.kdv-footer-panel--map::before {
    background:
        radial-gradient(ellipse 54% 46% at 20% 72%, rgba(254, 215, 170, 0.45) 0%, transparent 72%),
        radial-gradient(ellipse 50% 42% at 82% 28%, rgba(251, 146, 60, 0.28) 0%, transparent 70%),
        radial-gradient(ellipse 48% 40% at 48% 48%, rgba(15, 23, 42, 0.1) 0%, transparent 65%);
}

.kdv-footer-panel--mission::before {
    background:
        radial-gradient(ellipse 50% 42% at 26% 30%, rgba(244, 114, 182, 0.32) 0%, transparent 72%),
        radial-gradient(ellipse 48% 40% at 78% 75%, rgba(251, 113, 133, 0.2) 0%, transparent 70%),
        radial-gradient(ellipse 45% 38% at 50% 50%, rgba(15, 23, 42, 0.08) 0%, transparent 70%);
}

.kdv-footer-panel--vision::before {
    background:
        radial-gradient(ellipse 52% 44% at 18% 75%, rgba(167, 243, 208, 0.45) 0%, transparent 72%),
        radial-gradient(ellipse 50% 42% at 84% 26%, rgba(134, 239, 172, 0.28) 0%, transparent 70%),
        radial-gradient(ellipse 55% 48% at 50% 100%, rgba(15, 23, 42, 0.09) 0%, transparent 65%);
}

/* Те же карточки внутри страницы (миссия / о нас) — без маски краёв */
.kdv-footer-panel--inpage {
    min-height: 0;
    -webkit-mask-image: none;
    mask-image: none;
}

.kdv-footer-panel--inpage .kdv-footer-panel__title {
    text-transform: none;
    letter-spacing: 0.04em;
    font-size: 0.76rem;
    color: #1e293b;
}

.kdv-footer-panel > * {
    position: relative;
    z-index: 1;
}

.kdv-footer-panel__title {
    margin: 0 0 0.12rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #475569;
    line-height: 1.15;
}

.kdv-footer-panel__brandline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.18rem 0.26rem;
    margin-bottom: 0.1rem;
}

.kdv-footer-panel__brand {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.1;
}

.kdv-footer-panel__year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.06rem 0.28rem;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1d4ed8;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
    border: none;
    box-shadow: 0 2px 10px -4px rgba(37, 99, 235, 0.2);
    border-radius: 0.28rem;
}

.kdv-footer-panel__text {
    margin: 0;
    font-size: 0.65rem;
    line-height: 1.22;
    color: #334155;
}

.kdv-footer-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.18rem;
    margin-bottom: 0.08rem;
}

.kdv-footer-panel__head .kdv-footer-panel__title {
    margin-bottom: 0;
}

.kdv-footer-panel__stack {
    display: flex;
    flex-direction: column;
    gap: 0.06rem;
    flex: 1;
    min-height: 0;
}

.kdv-footer-panel__map-lead {
    margin: 0 0 0.1rem;
    font-size: 0.5rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
    padding: 0.06rem 0.08rem;
    border-radius: 0.28rem;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.kdv-footer-panel--map {
    justify-content: stretch;
    align-items: stretch;
}

.kdv-footer-panel__geo.kdv-footer-find__geo-btn {
    margin-left: 0;
    width: 100%;
    flex: 1;
    min-height: 0;
    justify-content: flex-start;
    align-items: center;
    padding: 0.1rem 0.5rem 0.1rem 0.08rem;
    position: relative;
}

/* Карта: ряд — вдавленный пин слева, адрес справа без отдельной «рамки» */
.kdv-footer-panel--map .kdv-footer-find__geo-btn.kdv-footer-find__geo-btn--icon-only.kdv-footer-panel__geo {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    gap: 0.58rem;
    padding: 0.1rem 0.14rem 0.1rem 0.06rem;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0;
}

.kdv-footer-panel--map .kdv-footer-find__geo-btn-halo {
    display: none;
}

.kdv-footer-map-addr__city {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #0f172a;
    line-height: 1.15;
}

.kdv-footer-map-addr__street {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #475569;
    line-height: 1.18;
    text-align: left;
}

.kdv-footer-panel--map .kdv-footer-find__geo-btn:hover {
    transform: none;
    box-shadow: none !important;
    opacity: 0.92;
}

.kdv-footer-panel--map .kdv-footer-find__geo-btn:hover .kdv-footer-map-addr {
    background: transparent;
    box-shadow: none;
}

.kdv-footer-find__geo-btn--icon-only.kdv-footer-panel__geo {
    min-height: 2.2rem;
    padding: 0.22rem 0.45rem 0.22rem 0.28rem;
}

.kdv-footer-panel--map .kdv-footer-find__geo-btn--icon-only.kdv-footer-panel__geo {
    min-height: 0;
    padding: 0.1rem 0.14rem 0.1rem 0.06rem;
}

.kdv-footer-find__geo-btn--icon-only .kdv-footer-find__geo-raspberry {
    display: none;
}

.kdv-footer-find__geo-btn--icon-only .kdv-footer-find__geo-btn-text {
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
}

.kdv-footer-panel--map .kdv-footer-find__geo-btn--icon-only .kdv-footer-find__geo-btn-text {
    flex-direction: column;
    flex: 1;
    min-width: 0;
    width: auto;
    align-items: flex-start;
    gap: 0.02rem;
}

.kdv-footer-find__geo-btn--icon-only .kdv-footer-find__geo-btn-label {
    display: none;
}

.kdv-footer-find__geo-btn--icon-only .kdv-footer-find__geo-btn-addr:not(.kdv-footer-map-addr) {
    font-size: 0.7rem;
    font-weight: 700;
    color: #334155;
    max-width: none;
    letter-spacing: -0.02em;
}

.kdv-footer-find__geo-btn-addr.kdv-footer-map-addr {
    max-width: none;
}

.kdv-footer-map-addr {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.02rem;
    width: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.kdv-footer-find__geo-btn--icon-only .kdv-footer-find__geo-btn-pin {
    width: 2.2rem;
    height: 2.2rem;
}

.kdv-footer-find__geo-btn--icon-only .kdv-footer-find__geo-btn-pin svg {
    width: 1.18rem;
    height: 1.18rem;
}

.kdv-footer-panel--map .kdv-footer-find__geo-btn--icon-only .kdv-footer-find__geo-btn-pin {
    width: 2.26rem;
    height: 2.26rem;
}

.kdv-footer-panel--map .kdv-footer-find__geo-btn--icon-only .kdv-footer-find__geo-btn-pin svg {
    width: 1.24rem;
    height: 1.24rem;
}

.kdv-footer-panel--map .kdv-footer-find__geo-btn-pin {
    border: 1px solid rgba(125, 156, 195, 0.42);
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 50%),
        linear-gradient(168deg, #d2deec 0%, #e9f0f8 48%, #f8fbff 100%);
    box-shadow:
        inset 0 3px 6px rgba(15, 23, 42, 0.14),
        inset 0 -1px 0 rgba(255, 255, 255, 0.72),
        0 4px 14px rgba(37, 99, 235, 0.18);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #1d4ed8;
    transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.kdv-footer-panel--map .kdv-footer-find__geo-btn:hover .kdv-footer-find__geo-btn-pin {
    transform: translateY(-1px) scale(1.02);
    box-shadow:
        inset 0 3px 6px rgba(15, 23, 42, 0.14),
        inset 0 -1px 0 rgba(255, 255, 255, 0.74),
        0 6px 16px rgba(37, 99, 235, 0.24);
    color: #1e40af;
}

.kdv-footer-find {
    min-width: 0;
}

.kdv-footer-q {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
    border-radius: 999px;
    border: 1px solid #dbe4ef;
    background: #ffffff;
    backdrop-filter: none;
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.06);
    color: #64748b;
    transition: color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.kdv-footer-q:hover {
    color: #2563eb;
    background: #f5f9ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.14);
    transform: translateY(-1px);
}

.kdv-footer-q:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.kdv-footer-q svg {
    width: 0.8rem;
    height: 0.8rem;
}

.kdv-footer-find__line {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #334155;
    text-decoration: none;
    line-height: 1.2;
    padding: 0.06rem 0.08rem;
    border-radius: 0.28rem;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.kdv-footer-find__line:hover {
    color: #1d4ed8;
    background: #f3f7fd;
}

.kdv-footer-find__hours {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    margin: 0;
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.kdv-footer-find__ico {
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.kdv-footer-find__ico svg {
    width: 0.88rem;
    height: 0.88rem;
}

/* Кнопка геолокации / карты — без рамки, мягкое пятно */
.kdv-footer-find__geo-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    margin-left: auto;
    padding: 0.32rem 0.55rem 0.32rem 0.38rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: #334155;
    border: none;
    background:
        radial-gradient(ellipse 90% 75% at 20% 30%, rgba(191, 219, 254, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse 70% 60% at 95% 85%, rgba(254, 215, 170, 0.35) 0%, transparent 50%),
        rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 20px -8px rgba(37, 99, 235, 0.18);
    transition: box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.kdv-footer-find__geo-btn:hover {
    box-shadow:
        0 6px 28px -10px rgba(37, 99, 235, 0.28),
        0 2px 12px -4px rgba(251, 146, 60, 0.12);
    transform: translateY(-1px);
    color: #1e293b;
}

.kdv-footer-find__geo-btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.kdv-footer-find__geo-raspberry {
    position: absolute;
    right: 0.22rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2rem;
    height: 1.2rem;
    pointer-events: none;
    z-index: 3;
    filter: drop-shadow(0 1px 2px rgba(157, 23, 77, 0.25));
}

.kdv-footer-find__geo-raspberry svg {
    width: 100%;
    height: 100%;
    display: block;
}

.kdv-footer-find__geo-btn-halo {
    position: absolute;
    left: 0.22rem;
    top: 50%;
    width: 1.75rem;
    height: 1.75rem;
    margin-top: -0.875rem;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 182, 193, 0.55) 0%, rgba(255, 182, 193, 0) 48%),
        radial-gradient(circle at 68% 65%, rgba(254, 215, 170, 0.5) 0%, rgba(254, 215, 170, 0) 50%),
        radial-gradient(circle at 50% 50%, rgba(254, 243, 199, 0.35) 0%, rgba(254, 243, 199, 0) 58%);
    filter: blur(0.4px);
    z-index: 0;
}

.kdv-footer-find__geo-btn-pin {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    border: none;
    box-shadow: 0 2px 14px -4px rgba(190, 24, 93, 0.2);
    color: #be185d;
}

.kdv-footer-find__geo-btn-pin svg {
    width: 0.78rem;
    height: 0.78rem;
}

.kdv-footer-find__geo-btn-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.03rem;
    min-width: 0;
    text-align: left;
    line-height: 1.2;
}

.kdv-footer-find__geo-btn-label {
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
}

.kdv-footer-find__geo-btn:hover .kdv-footer-find__geo-btn-label {
    color: #1d4ed8;
}

.kdv-footer-find__geo-btn-addr {
    font-size: 0.54rem;
    font-weight: 600;
    color: #64748b;
    max-width: 9.5rem;
    line-height: 1.15;
}

.kdv-footer-panel__geo .kdv-footer-find__geo-btn-addr {
    max-width: none;
}

.kdv-footer-find__geo-btn-addr.kdv-footer-map-addr {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
}

.home-flex .site-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.home-flex .site-wrap > main {
    flex: 1 0 auto;
}

.home-flex .site-wrap > footer {
    margin-top: auto;
}

.kdv-catalog-card {
    background: #ffffff;
    border: 1px solid #dde6f0;
    border-radius: 0.42rem;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
}

/* Карточки линеек в каталоге: крупнее фото, компактнее подпись */
.kdv-line-card-image {
    position: relative;
    overflow: hidden;
    height: 14rem;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .kdv-line-card-image {
        height: 15.5rem;
    }
}

.kdv-line-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Счётчик позиций: только цифра, полупрозрачный круг, правый верхний угол */
.kdv-line-card-count {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    z-index: 2;
    box-sizing: border-box;
    min-width: 1.85rem;
    height: 1.85rem;
    padding: 0 0.32rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8125rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -0.02em;
    color: rgba(15, 23, 42, 0.88);
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    pointer-events: none;
    user-select: none;
}

@media (min-width: 640px) {
    .kdv-line-card-count {
        top: 0.55rem;
        right: 0.55rem;
        min-width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
}

.kdv-line-card-caption {
    padding: 0.45rem 0.65rem 0.55rem;
}

.kdv-line-card-title {
    margin: 0 0 0.2rem 0;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1f2937;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.kdv-line-card-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    font-size: 0.65rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.2;
}

.kdv-line-card-cta svg {
    width: 0.85rem;
    height: 0.85rem;
    flex-shrink: 0;
    color: #2563eb;
}

.line-card.group:hover .kdv-line-card-title {
    color: #2563eb;
}

.kdv-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.85rem;
}

.kdv-list-card {
    background: #fff;
    border: 1px solid #dde6f0;
    border-radius: 0.42rem;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kdv-list-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
    border-color: #9ec0e6;
}

@media (min-width: 900px) {
    .kdv-hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 1.8rem;
    }

    .kdv-categories-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .kdv-features-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .kdv-split-layout {
        grid-template-columns: 240px 1fr;
        align-items: start;
    }

    /* Одинаковый отступ от края окна: слева у колонки меню и снизу у меню и подвала */
    body.site-with-left-nav {
        --kdv-left-nav-viewport-inset: 0.75rem;
        --kdv-left-nav-width: 13.5rem;
        --kdv-left-nav-content-offset: calc(
            var(--kdv-left-nav-viewport-inset) + var(--kdv-left-nav-width) + var(--kdv-left-nav-viewport-inset)
        );
    }

    .site-global-left-nav {
        display: block;
        position: fixed;
        top: 7.55rem;
        bottom: var(--kdv-left-nav-viewport-inset);
        left: var(--kdv-left-nav-viewport-inset);
        width: var(--kdv-left-nav-width);
        z-index: 35;
        background: rgba(248, 251, 255, 0.72);
        backdrop-filter: blur(6px);
        overflow-y: auto;
    }

    .left-nav-offset {
        margin-left: var(--kdv-left-nav-content-offset);
    }

    .site-with-left-nav .site-wrap > section,
    .site-with-left-nav .site-wrap > main {
        margin-left: var(--kdv-left-nav-content-offset);
    }

    /* Подвал: смещение как у main; margin-bottom = bottom у меню — нижние границы блоков на одной линии */
    .site-with-left-nav .site-wrap > footer {
        margin-left: var(--kdv-left-nav-content-offset);
        margin-bottom: var(--kdv-left-nav-viewport-inset);
    }

    .site-with-left-nav .site-wrap > footer.full-bleed-footer {
        margin-left: 0 !important;
        margin-bottom: 0 !important;
    }

    .home-full-top .site-global-left-nav {
        top: 0.15rem;
    }
}

.kdv-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    width: 100%;
    height: auto;
    overflow: visible;
    align-content: start;
}

.kdv-showcase-tile {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: 0.28rem;
    overflow: hidden;
    border: 1px solid #d6e0ea;
    background: #f1f5f9;
    height: 100%;
    min-height: 0;
}

/* Легаси-витрина без класса --placed */
.kdv-showcase-tile:not(.kdv-showcase-tile--placed) {
    grid-row: span 20;
}

.kdv-showcase-tile--catalog:not(.kdv-showcase-tile--placed),
.kdv-showcase-tile--news:not(.kdv-showcase-tile--placed) {
    grid-row: span 22;
}

.kdv-showcase-tile--awards:not(.kdv-showcase-tile--placed) {
    grid-row: span 18;
}

.kdv-showcase-tile--custom .kdv-showcase-tile-badge {
    display: none;
}

.kdv-showcase-tile--placed {
    /* позиция: inline grid-column / grid-row из админки (1 ячейка = 1 строка) */
}

.kdv-showcase-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.kdv-showcase-tile--custom img {
    object-fit: contain;
    object-position: center;
}

.kdv-showcase-tile-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.45rem 0.5rem;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.86) 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.kdv-showcase-tile-badge {
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
    background: rgba(255, 255, 255, 0.9);
    color: #0f4d96;
    border-radius: 999px;
    border: 1px solid rgba(191, 215, 240, 0.95);
    padding: 0.12rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Главная витрина — мягкий фон без blur (не «стекло») */
.kdv-home-showcase-shell.kdv-products-catalog-shell {
    border-radius: 0.75rem;
    padding: 0.8rem 0.75rem 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 26%),
        radial-gradient(ellipse 110% 75% at 50% -8%, rgba(219, 234, 254, 0.18), transparent 54%),
        linear-gradient(168deg, rgba(248, 250, 252, 0.72) 0%, rgba(241, 245, 249, 0.55) 42%, rgba(233, 239, 246, 0.48) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: rgba(203, 213, 225, 0.55);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.03),
        0 14px 44px -12px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.kdv-home-showcase-shell.kdv-products-catalog-shell::before {
    opacity: 0.45;
    background: linear-gradient(to top, rgba(226, 235, 245, 0.28) 0%, transparent min(32%, 6rem));
}

.kdv-home-showcase-shell .kdv-showcase-grid {
    gap: 0.65rem;
}

.kdv-home-showcase-shell .kdv-showcase-tile {
    display: block;
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(226, 232, 240, 0.72);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 6px 20px -6px rgba(15, 23, 42, 0.08);
    transition:
        border-color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.kdv-home-showcase-shell .kdv-showcase-tile:hover {
    border-color: rgba(147, 197, 253, 0.65);
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.04),
        0 14px 32px -8px rgba(37, 99, 235, 0.18);
    transform: translateY(-3px);
}

.kdv-home-showcase-shell .kdv-showcase-tile:focus-visible {
    outline: none;
    border-color: #60a5fa;
    box-shadow:
        0 0 0 3px rgba(96, 165, 250, 0.35),
        0 8px 24px -6px rgba(37, 99, 235, 0.15);
}

.kdv-home-showcase-shell .kdv-showcase-tile-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(165deg, rgba(250, 251, 252, 0.52) 0%, rgba(241, 245, 249, 0.42) 48%, rgba(232, 238, 244, 0.36) 100%);
    pointer-events: none;
    transition: background 0.28s ease;
}

.kdv-home-showcase-shell .kdv-showcase-tile:hover .kdv-showcase-tile-media {
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.58) 0%, rgba(244, 247, 251, 0.48) 55%, rgba(238, 242, 247, 0.42) 100%);
}

.kdv-home-showcase-shell .kdv-showcase-tile-media--empty {
    background: linear-gradient(165deg, rgba(241, 245, 249, 0.55), rgba(226, 232, 240, 0.45));
}

.kdv-home-showcase-shell .kdv-showcase-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0.5rem;
    box-sizing: border-box;
}

.kdv-home-showcase-shell .kdv-showcase-tile--custom .kdv-showcase-tile-media img {
    object-fit: contain;
    object-position: center;
    padding: 0.5rem;
}

/* Маленькая этикетка типа — билетик без наклона */
.kdv-home-showcase-shell .kdv-showcase-tile-badge {
    top: 0.55rem;
    left: 0.55rem;
    z-index: 3;
    padding: 0.26rem 0.6rem 0.24rem 0.78rem;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #1e3a8a;
    background: linear-gradient(180deg, #fffef9 0%, #f8fafc 100%);
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 0.28rem;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 2px 10px rgba(15, 23, 42, 0.09);
}

.kdv-home-showcase-shell .kdv-showcase-tile-badge::before {
    content: "";
    position: absolute;
    left: 0.32rem;
    top: 20%;
    bottom: 20%;
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0 2px,
        rgba(148, 163, 184, 0.42) 2px 4px
    );
    border-radius: 1px;
}

.kdv-home-showcase-shell .kdv-showcase-tile--news .kdv-showcase-tile-badge {
    color: #9a3412;
    background: linear-gradient(180deg, #fffaf5 0%, #fff7ed 100%);
}

.kdv-home-showcase-shell .kdv-showcase-tile--awards .kdv-showcase-tile-badge {
    color: #854d0e;
    background: linear-gradient(180deg, #fffef7 0%, #fffbeb 100%);
}

/* Подпись поверх фото — размытое облачко по контуру букв */
.kdv-home-showcase-shell .kdv-showcase-tile-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0.38rem 0.46rem 0.36rem;
    display: flex;
    align-items: flex-end;
    gap: 0.3rem;
    pointer-events: none;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.kdv-home-showcase-shell .kdv-showcase-tile-overlay::before {
    display: none;
}

.kdv-home-showcase-shell .kdv-showcase-tile-type-icon {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 0.95rem;
    height: 0.95rem;
    margin-left: 0.12rem;
    margin-bottom: 0.12rem;
    color: rgba(248, 250, 252, 0.96);
    opacity: 1;
}

.kdv-home-showcase-shell .kdv-showcase-tile-type-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    filter:
        drop-shadow(0 0 1px rgba(15, 23, 42, 0.95))
        drop-shadow(0 0 3px rgba(15, 23, 42, 0.82))
        drop-shadow(0 0 6px rgba(15, 23, 42, 0.62))
        drop-shadow(0 0 10px rgba(15, 23, 42, 0.42));
}

.kdv-home-showcase-shell .kdv-showcase-tile--news .kdv-showcase-tile-type-icon,
.kdv-home-showcase-shell .kdv-showcase-tile--awards .kdv-showcase-tile-type-icon,
.kdv-home-showcase-shell .kdv-showcase-tile--catalog .kdv-showcase-tile-type-icon {
    color: rgba(248, 250, 252, 0.92);
}

.kdv-home-showcase-shell .kdv-showcase-tile-label {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    padding: 0.08rem 0.42rem 0.1rem 0.06rem;
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.26;
    letter-spacing: -0.012em;
    text-wrap: balance;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    hyphens: auto;
    overflow-wrap: anywhere;
    /* размытое тёмное облачко по контуру каждой буквы */
    text-shadow:
        0 0 1px rgba(15, 23, 42, 0.96),
        0 0 2px rgba(15, 23, 42, 0.94),
        0 0 4px rgba(15, 23, 42, 0.9),
        0 0 6px rgba(15, 23, 42, 0.82),
        0 0 9px rgba(15, 23, 42, 0.7),
        0 0 13px rgba(15, 23, 42, 0.54),
        0 0 18px rgba(15, 23, 42, 0.38),
        0 1px 1px rgba(0, 0, 0, 0.88);
}

.kdv-home-showcase-shell .kdv-showcase-tile-label::before {
    display: none;
}

.kdv-home-showcase-shell .kdv-showcase-tile:hover .kdv-showcase-tile-label {
    color: #fff;
    text-shadow:
        0 0 1px rgba(15, 23, 42, 0.98),
        0 0 2px rgba(15, 23, 42, 0.96),
        0 0 4px rgba(15, 23, 42, 0.92),
        0 0 7px rgba(15, 23, 42, 0.86),
        0 0 10px rgba(15, 23, 42, 0.74),
        0 0 14px rgba(15, 23, 42, 0.58),
        0 0 20px rgba(15, 23, 42, 0.42),
        0 1px 1px rgba(0, 0, 0, 0.9);
}

.kdv-home-showcase-shell .kdv-showcase-tile:hover .kdv-showcase-tile-type-icon svg {
    filter:
        drop-shadow(0 0 1px rgba(15, 23, 42, 0.98))
        drop-shadow(0 0 3px rgba(15, 23, 42, 0.88))
        drop-shadow(0 0 7px rgba(15, 23, 42, 0.68))
        drop-shadow(0 0 12px rgba(15, 23, 42, 0.48));
}

/* Крупный акцент 2×2 и больше */
.kdv-home-showcase-shell .kdv-showcase-tile--featured .kdv-showcase-tile-overlay {
    padding: 0.48rem 0.52rem 0.44rem;
}

.kdv-home-showcase-shell .kdv-showcase-tile--featured .kdv-showcase-tile-type-icon {
    width: 1rem;
    height: 1rem;
}

.kdv-home-showcase-shell .kdv-showcase-tile--featured .kdv-showcase-tile-label {
    font-size: 0.875rem;
    line-height: 1.22;
    -webkit-line-clamp: 3;
}

.kdv-home-showcase-shell .kdv-showcase-tile--featured .kdv-showcase-tile-badge {
    font-size: 0.6875rem;
    padding: 0.28rem 0.55rem;
}

@media (prefers-reduced-motion: reduce) {
    .kdv-home-showcase-shell .kdv-showcase-tile {
        transition: none;
    }
    .kdv-home-showcase-shell .kdv-showcase-tile:hover {
        transform: none;
    }
}

@media (min-width: 900px) {
    .kdv-showcase-grid:not([style*="grid-template-columns"]) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.kdv-company-band {
    padding: 0.35rem 0 1.4rem;
}

.kdv-company-band-inner {
    border: 1px solid #d8e3ef;
    border-radius: 0.4rem;
    background: #f7fafe;
    padding: 0.8rem 0.85rem;
}

.kdv-company-band-title {
    color: #0f4d96;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.55rem;
}

.kdv-company-band-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.kdv-company-band-links a {
    display: inline-flex;
    align-items: center;
    border: 1px solid #bfd7f0;
    border-radius: 999px;
    background: #ffffff;
    color: #0f4d96;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.26rem 0.58rem;
    text-decoration: none;
}

/* ——— Мобильная навигация: верхняя панель + выезжающая шторка ——— */
.site-mobile-shell {
    position: relative;
    z-index: 60;
    /* Высота блока под фиксированную панель (совпадает с padding-top у main ≤899px) */
    --site-mobile-bar-stack: calc(env(safe-area-inset-top, 0px) + 3.45rem);
}

.site-mobile-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 62;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3.35rem;
    padding: 0.45rem max(0.75rem, env(safe-area-inset-right)) 0.45rem max(0.75rem, env(safe-area-inset-left));
    padding-top: max(0.45rem, env(safe-area-inset-top));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 252, 0.94) 100%);
    border-bottom: 1px solid rgba(203, 213, 225, 0.85);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-mobile-bar-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.site-mobile-bar-logo {
    height: 1.85rem;
    width: auto;
    max-width: min(52vw, 9.5rem);
    object-fit: contain;
    object-position: left center;
}

.site-mobile-menu-trigger {
    flex-shrink: 0;
    width: 2.85rem;
    height: 2.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(191, 215, 240, 0.95);
    background: linear-gradient(145deg, #ffffff 0%, #eff6ff 100%);
    box-shadow:
        0 2px 8px rgba(37, 99, 235, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.site-mobile-menu-trigger:hover {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow:
        0 4px 14px rgba(37, 99, 235, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.site-mobile-menu-trigger:active {
    transform: scale(0.96);
}

.site-mobile-menu-trigger .hamburger-line {
    display: block;
    width: 1.15rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #1d4ed8, #2563eb);
    transition:
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.22s ease,
        width 0.22s ease;
}

.mobile-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
    width: 1.05rem;
}

.mobile-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.05rem;
}

.site-mobile-backdrop {
    position: fixed;
    inset: 0;
    top: var(--site-mobile-bar-stack);
    z-index: 58;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s ease, visibility 0.32s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    -webkit-tap-highlight-color: transparent;
}

.site-mobile-shell.is-open .site-mobile-backdrop {
    opacity: 1;
    visibility: visible;
}

.site-mobile-drawer {
    position: fixed;
    top: var(--site-mobile-bar-stack);
    right: 0;
    z-index: 61;
    width: min(20.5rem, 92vw);
    height: calc(100dvh - var(--site-mobile-bar-stack));
    max-height: calc(100dvh - var(--site-mobile-bar-stack));
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 38%, #f1f5f9 100%);
    border-left: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow:
        -12px 0 40px rgba(15, 23, 42, 0.18),
        -2px 0 0 rgba(255, 255, 255, 0.5) inset;
    transform: translateX(104%);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    padding-top: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.site-mobile-shell.is-open .site-mobile-drawer {
    transform: translateX(0);
    pointer-events: auto;
}

.site-mobile-drawer-head {
    position: relative;
    flex-shrink: 0;
    padding: 1.15rem 1.15rem 1rem 1.15rem;
    background: linear-gradient(130deg, #0f4d96 0%, #1d5faa 72%, #2b6fbe 100%);
    color: #fff;
    box-shadow: 0 8px 28px rgba(15, 77, 150, 0.35);
}

.site-mobile-drawer-head::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.site-mobile-drawer-kicker {
    margin: 0 0 0.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.site-mobile-drawer-title {
    margin: 0;
    padding-right: 2.75rem;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.site-mobile-drawer-close {
    position: absolute;
    top: 0.85rem;
    right: 0.75rem;
    width: 2.35rem;
    height: 2.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.site-mobile-drawer-close:hover {
    background: rgba(255, 255, 255, 0.24);
}

.site-mobile-drawer-close:active {
    transform: scale(0.94);
}

.site-mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0.85rem 0.75rem 1.25rem;
}

.site-mobile-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.site-mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.25rem;
    padding: 0.55rem 0.65rem 0.55rem 0.55rem;
    border-radius: 0.85rem;
    text-decoration: none;
    color: #1e293b;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.site-mobile-nav-link:active {
    transform: scale(0.985);
}

.site-mobile-nav-link:hover {
    border-color: rgba(147, 197, 253, 0.85);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.1);
}

.site-mobile-nav-link.is-active {
    border-color: rgba(59, 130, 246, 0.55);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    box-shadow:
        0 4px 16px rgba(37, 99, 235, 0.14),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.site-mobile-nav-icon {
    flex-shrink: 0;
    width: 2.65rem;
    height: 2.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.7rem;
    background: linear-gradient(145deg, rgba(241, 245, 249, 0.95), rgba(226, 232, 240, 0.65));
    border: 1px solid rgba(203, 213, 225, 0.65);
    color: #334155;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.site-mobile-nav-link:hover .site-mobile-nav-icon {
    transform: scale(1.04);
    border-color: rgba(147, 197, 253, 0.75);
}

.site-mobile-nav-link.is-active .site-mobile-nav-icon {
    background: linear-gradient(145deg, #2563eb, #1d4ed8);
    border-color: rgba(30, 64, 175, 0.35);
    color: #fff;
}

.site-mobile-nav-chevron {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 1.35rem;
    font-weight: 300;
    color: #94a3b8;
    line-height: 1;
    opacity: 0.65;
}

.site-mobile-nav-link.is-active .site-mobile-nav-chevron {
    color: #3b82f6;
    opacity: 1;
}

.site-mobile-shell.is-open .site-mobile-nav-link {
    animation: site-mobile-nav-row-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.site-mobile-shell.is-open .site-mobile-nav-link:nth-child(1) {
    animation-delay: 0.03s;
}
.site-mobile-shell.is-open .site-mobile-nav-link:nth-child(2) {
    animation-delay: 0.06s;
}
.site-mobile-shell.is-open .site-mobile-nav-link:nth-child(3) {
    animation-delay: 0.09s;
}
.site-mobile-shell.is-open .site-mobile-nav-link:nth-child(4) {
    animation-delay: 0.12s;
}
.site-mobile-shell.is-open .site-mobile-nav-link:nth-child(5) {
    animation-delay: 0.15s;
}
.site-mobile-shell.is-open .site-mobile-nav-link:nth-child(6) {
    animation-delay: 0.18s;
}

@keyframes site-mobile-nav-row-in {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (min-width: 900px) {
    .site-mobile-shell {
        display: none !important;
    }
}

@media (max-width: 899px) {
    .site-with-left-nav .site-wrap > main {
        padding-top: 3.45rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lines-carousel-window,
    .news-carousel-window {
        scroll-behavior: auto;
    }
    .lines-carousel-item,
    .news-carousel-item,
    .kdv-filter-chip,
    .awards-carousel-track,
    .awards-carousel-btn {
        transition: none !important;
    }
    .kdv-skeleton-block {
        animation: none;
    }
    .site-mobile-drawer,
    .site-mobile-backdrop,
    .site-mobile-menu-trigger .hamburger-line,
    .site-mobile-nav-link {
        transition: none !important;
        animation: none !important;
    }
}

/* Язык: плавающая кнопка внизу справа; список открывается вверх */
.site-lang-fab {
    position: fixed;
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    z-index: 45;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.site-lang-fab__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.65);
    background: rgba(255, 255, 255, 0.96);
    color: #1e293b;
    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.site-lang-fab__trigger:hover {
    background: #fff;
    border-color: #94a3b8;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
}

.site-lang-fab__trigger:active {
    transform: scale(0.98);
}

.site-lang-fab__trigger[aria-expanded="true"] {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.site-lang-fab__icon {
    display: flex;
    color: #2563eb;
}

.site-lang-fab__code {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    min-width: 1.5rem;
    text-align: center;
}

.site-lang-fab__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.45rem);
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 11.25rem;
    padding: 0.35rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.site-lang-fab__panel[hidden] {
    display: none !important;
}

.site-lang-fab__option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.65rem;
    border: none;
    border-radius: 0.45rem;
    background: transparent;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.site-lang-fab__option:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.site-lang-fab__option.is-active {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
}

.site-lang-fab__trigger:focus-visible,
.site-lang-fab__option:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .site-lang-fab__trigger {
        transition: none;
    }
}
