/*
Theme Styles
*/
/* "виртуальный" шрифт только для символа & */
@font-face {
    font-family: 'AmpersandFont';
    src: local("Arial"), local("Helvetica"), local(sans-serif);
    unicode-range: U+0026;
}

:root {
    --color-primary: #FF5A00;
    /* Vibrant Orange */
    --color-secondary: #00877A;
    --color-bg-gray: #E0E6EA;
    /* Footer/Backgrounds */
    --font-main: 'AmpersandFont', 'Exo 2.0', sans-serif;
    --container-width: 1440px;
    /* Reset to 1440px as per new request */
    --border-radius: 0px;
}

/* Глобальное применение шрифта с подменой & */
html,
body,
p,
a,
span,
li,
blockquote,
h1,
h2,
h3,
h4,
h5,
h6,
div,
td,
th {
    font-family: 'AmpersandFont', 'Exo 2.0', sans-serif;
}


* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: #fff;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0;
    /* Removing padding to let Swiper and Grid be exactly 1420px */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Progressive Image Loading */
.img-progressive-load {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.img-progressive-load.loaded {
    opacity: 1;
}

/* Button */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    border: none;
    cursor: pointer;
    line-height: 1.2;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-green {
    background: #8ed03f;
    color: #fff;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    line-height: normal;
}

.btn-green:hover {
    background: #7db838;
}

.header-request-btn {
    width: 168px;
    /* Fixed width to prevent any size changes */
    height: 42px;
    /* Original height */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    position: relative;
    background: var(--color-primary);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    transition: background 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-text {
    display: inline-block;
}

.header-request-btn.has-count .btn-text {
    transform: none;
    /* No shifting */
}

.request-count {
    position: absolute;
    right: 4px;
    width: 32px;
    height: 32px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.header-request-btn.has-count .request-count {
    transform: scale(1);
    opacity: 1;
}

.header-request-btn:hover {
    background: #e04e00;
}

/* Header Search */
.header-search {
    margin-right: 20px;
}

.search-open-btn {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.search-open-btn:hover {
    color: #FF5A00;
}

/* Sidebar Search */
.sidebar-search .search-form-container {
    position: relative;
    width: 100%;
}

.sidebar-search-input {
    width: 100%;
    height: 40px;
    padding: 0 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    font-family: var(--font-main);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.sidebar-search-input:focus {
    border-color: #FF5A00;
}

/* Search Overlay Popup */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-inner {
    width: 100%;
    max-width: 900px;
    padding: 80px 30px 40px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    max-height: 100vh;
}

@media (max-width: 768px) {
    .search-overlay-inner {
        padding: 60px 20px 20px;
    }
}

.header-search {
    margin-right: 0px;
}

.search-overlay.active .search-overlay-inner {
    transform: translateY(0);
}

.search-close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .search-close-btn {
        top: 10px;
        right: 15px;
    }

    .search-close-btn svg {
        width: 32px;
        height: 32px;
    }
}

.search-close-btn:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

.search-overlay .header-search-input {
    width: 100%;
    height: 80px;
    border: none;
    border-bottom: 2px solid #333;
    font-family: var(--font-main);
    font-size: 42px;
    font-weight: 700;
    padding: 0;
    outline: none;
    background: transparent;
    transition: border-color 0.3s;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .search-overlay .header-search-input {
        font-size: 24px;
        height: 50px;
        margin-bottom: 15px;
    }
}

.search-overlay .search-results-dropdown {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    max-height: 65vh;
    background: transparent;
}

.search-overlay .search-results-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 10px;
    width: 100%;
}

.search-all-button-wrap {
    text-align: center;
    padding: 25px 0 10px;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.search-results-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 30px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid #eee;
    border-radius: 30px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.search-results-all:hover {
    border-color: #FF5A00;
}

.search-arrow-svg {
    width: 24px;
    height: 24px;
    display: block;
    transition: stroke 0.2s;
    /* Meticulously align with the middle of lowercase letters */
    margin-top: 2px;
}

.search-results-all:hover .search-arrow-svg {
    stroke: #FF5A00;
}

/* Sidebar Specific Search Styles */
.sidebar-search .search-form-container {
    position: relative;
    width: 100%;
}

.sidebar-search .search-results-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: none;
    max-height: 80vh !important;
    max-height: 80dvh !important;
    display: flex !important;
    flex-direction: column !important;
}

.sidebar-search .search-results-dropdown.active {
    display: flex !important;
}

.sidebar-search .search-result-item {
    display: flex !important;
    flex-direction: column !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none !important;
    color: #333 !important;
    transition: background 0.2s;
}

.search-result-title {
    display: block !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    line-height: 1.3 !important;
    margin: 0 0 6px 0 !important;
    color: #000 !important;
    word-break: break-word;
}

.search-result-subtitle {
    display: block !important;
    font-size: 0.85rem !important;
    color: #666 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    word-break: break-word;
}

.search-results-list {
    overflow-y: auto !important;
    flex: 1 !important;
    -webkit-overflow-scrolling: touch;
}

/* Mobile specific overrides */
@media (max-width: 1150px) {
    .sidebar-search .search-results-dropdown {
        top: 100%;
        max-height: calc(100dvh - 220px) !important;
    }
}

.sidebar-search .search-all-button-wrap {
    padding: 15px;
    text-align: center;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    flex-shrink: 0 !important;
}

.sidebar-search .search-results-all {
    display: inline-flex;
    width: calc(100% - 30px);
    margin: 0 15px;
    border-radius: 30px;
    padding: 12px 10px;
    white-space: nowrap;
    font-size: 13px;
    justify-content: space-between;
}

.sidebar-search .search-results-all:hover {
    background: #fff;
    border-color: #FF5A00;
}

.search-result-item {
    display: block;
    padding: 20px 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.search-result-item:hover {
    background: #E0E6EA;
}

.search-result-title {
    display: block;
    color: #000;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 5px;
}

.search-result-subtitle {
    display: block;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    font-size: 18px;
    color: #999;
}

/* Qty Selector */
.qty-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #eef2f5;
    color: #9ab4bd;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #e0e6ea;
    color: #333;
}

.qty-input {
    width: 70px;
    height: 36px;
    border: 1px solid #eef2f5;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #FF5A00;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-left: 8px;
}

.add-to-cart-btn:hover {
    background: #7db838;
}

.add-to-cart-btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary:hover {
    background: #e04e00;
    transform: translateY(-2px);
}

/* HEADER */
.site-header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-title a {
    text-decoration: none;
    color: inherit;
}

/* Custom logo styling to mimic 'ArtBioTech' text from image if no img */
.site-branding span {
    color: var(--color-primary);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-weight: 500;
    font-size: 1.125rem;
    /* Reduced from 22px to 18px for better fit */
    color: #333;
    position: relative;
    padding-bottom: 5px;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.main-navigation a:hover {
    color: var(--color-primary);
}

.main-navigation a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Mobile Menu Toggle (SVG Burger) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 3100;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.burger-svg {
    display: block;
    overflow: visible;
}

.burger-svg path {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: 12px 12px;
}

.menu-toggle .line-top {
    transform: translateY(-4px);
}

.menu-toggle .line-bottom {
    transform: translateY(4px);
}

/* Animation to Cross */
.menu-open .menu-toggle .line-top {
    transform: translateY(0) rotate(45deg);
}

.menu-open .menu-toggle .line-bottom {
    transform: translateY(0) rotate(-45deg);
}

.header-actions-mobile {
    display: none;
    align-items: center;
    gap: 1.25rem;
    margin-right: 15px;
    /* Better offset */
}

.header-actions-mobile .header-search {
    margin: 0;
    display: block !important;
}

.header-actions-mobile .mobile-search-btn {
    padding: 5px;
    color: #333;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-btn svg {
    stroke: #333;
}

.search-close-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    padding: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close-btn svg {
    stroke: var(--color-primary);
}

.mobile-menu-dropdown {
    display: none;
}

.search-close-btn:hover {
    transform: scale(1.1);
}



/* HEADER RIGHT SECTION */
.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-search .search-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #9ab4bd;
    display: flex;
    align-items: center;
}

.header-search .search-btn:hover {
    color: var(--color-primary);
}

.header-contacts {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.4;
}

.contact-phone {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.contact-email {
    font-size: 16px;
    color: #666;
}

.static-menu {
    gap: 1.5625rem;
}

.static-menu a {
    font-size: 1.125rem;
    /* Match primary menu */
    font-weight: 500;
}

/* RESPONSIVE BASE */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.25rem;
    box-sizing: border-box;
}

@media (max-width: 1440px) {
    :root {
        --container-width: 100%;
    }
}

@media (max-width: 1150px) {
    .site-header {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        padding: 0.5rem 0;
        z-index: 9999;
        background: #fff;
    }

    body {
        padding-top: 70px;
        /* Header height placeholder */
    }

    .header-inner {
        padding-bottom: 0.5rem;
    }

    .header-actions-mobile {
        display: flex;
        margin-left: auto;
        /* Push to right */
    }

    .menu-toggle {
        display: flex;
    }

    .site-branding img {
        width: 180px;
    }

    .main-navigation.desktop-only {
        display: none;
    }

    .mobile-menu-dropdown {
        display: none;
        background: #fff;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 9999;
        border-top: 1px solid #f0f0f0;
    }

    .mobile-menu-dropdown.active {
        display: block;
    }

    /* JavaScript handles the .open class toggle */
    .mobile-menu-dropdown .accordion-menu .sub-menu {
        display: none;
    }

    .mobile-menu-dropdown .accordion-menu li.open>.sub-menu {
        display: block;
    }

    /* Standardize accordion menu in dropdown */
    .mobile-menu-dropdown .accordion-menu {
        border-bottom: none;
    }

    .mobile-menu-dropdown .accordion-menu>li:last-child {
        border-bottom: 1px solid #e0e0e0;
    }

    .header-right {
        display: none;
    }
}

@media (max-width: 480px) {
    .site-branding img {
        width: 160px;
    }
}

/* HERO SECTION SLIDER */
.hero-section-slider {
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
    background: #fff;
}

.hero-section-slider .swiper-slide {
    height: 500px;
    display: flex;
    align-items: center;
    padding: 0;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    background-color: #fff;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    padding-left: 0rem;
    /* Aligned to container */
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.hero-title span {
    color: var(--color-primary);
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.4;
    color: #333;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-image-mobile {
    display: none;
}

.br-desktop-only {
    display: inline;
}

.hero-image-container {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* SWIPER PAGINATION CUSTOM */
.hero-pagination-container {
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
    background: #fff;
}

.hero-pagination-container .swiper-pagination {
    position: static !important;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.hero-pagination-container .swiper-pagination-bullet {
    width: 22px;
    height: 22px;
    background: transparent;
    border: 2px solid #9ab4bd;
    /* Footer-like color */
    opacity: 1;
    margin: 0 !important;
    transition: 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-pagination-container .swiper-pagination-bullet::after {
    content: '';
    width: 0;
    height: 0;
    background: var(--color-primary);
    border-radius: 50%;
    transition: 0.3s;
}

.hero-pagination-container .swiper-pagination-bullet-active::after {
    width: 12px;
    height: 12px;
}

.hero-section-slider-wrapper .swiper-button-next,
.hero-section-slider-wrapper .swiper-button-prev {
    display: none !important;
}

/* Gray-blue separator bar */
.section-separator {
    width: 100vw;
    /* Full viewport width */
    height: 3.125rem;
    /* 50px */
    background-color: #9ab4bd;
    margin-left: calc(-50vw + 50%);
    /* Break out of container */
    margin-right: calc(-50vw + 50%);
    margin-bottom: 0;
    /* No gap, grid handles spacing */
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.15);
    /* Inner shadow */
}

.gray-frame {
    background-color: #e0e0e0 !important;
    min-height: 200px;
    /* Default min height for grid items */
}


/* WIREFRAME MODE STYLES */
/* Validating requests: "all sections starting from banner should be simple blocks with outline and dimensions" */
.hero-section,
.bento-grid,
.grid-card {
    position: relative;
    background: #fff;
    /* Reset backgrounds to white for wireframe look */
}



/* Override specifics for wireframe clarity */
.grid-card {
    border-radius: 0;
    box-shadow: none;
}

/* BENTO GRID */
.bento-grid {
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 0.625rem;
    /* 10px */
    margin-top: 3.125rem;
    /* 50px in rem */
    margin-bottom: 5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 1420px;
    width: 100%;
    background: #fff;
    /* White background */
}

.grid-card {
    /* border: 1px solid #000; */
    /* padding: 1.875rem; */
    background: #e0e0e0;
    min-width: 0;
    /* Critical for Swiper */
    box-sizing: border-box;
    /* Ensure padding doesn't break width */
    border-radius: 1.25rem;
}

/* Left Column Card */
.card-1 {
    height: auto;
    min-height: 56.56rem;
    /* 905px */
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
    /* Light background for empty areas */
}

.info-plate-orange {
    background-color: var(--color-primary);
    color: #fff;
    padding: 1.5rem 4rem;
    font-size: 1.5rem;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
    font-weight: 500;
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 160px;
    /* Compact size like in prototype */
    position: relative;
    z-index: 5;
}

.info-plate-content {
    text-align: left;
}

/* Video Background Styles */
.card-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 2;
    transition: opacity 0.5s ease;
}

.video-preview.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-video-btn {
    position: absolute;
    top: 2rem;
    left: 2rem;
    /* Сменим на 2rem как на макете обычно, пользователь уточнит если надо именно 21.5 */
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.play-video-btn:hover {
    transform: scale(1.1);
    background-color: #f0f0f0;
}

.play-video-btn svg {
    color: #000;
    width: 1.5rem;
    height: 1.5rem;
}

.play-video-btn.hidden {
    display: none;
}

#video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    /* Space for orange plate */
    z-index: 1;
    display: flex;
    align-items: flex-end;
    /* Align video to bottom */
}

#video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    /* Fill width, show bottom portion with figure */
}

.card-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Keep cover for background videos in cards 3 and 6 */
}


/* Row 2 */
/* DESKTOP GRID DEFINITION */
.grid-right-column {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: repeat(3, 1fr) !important;
    gap: 0.625rem !important;
    /* 10px in REM */
}

/* Row 1: Small Left, Big Right */
.card-2 {
    grid-column: 1 / 2;
    /* Span 1 column */
    grid-row: 1;
    height: 18.4375rem;
    background-size: cover;
    background-position: center;
}

.card-3 {
    grid-column: 2 / 4;
    /* Span 2 columns */
    grid-row: 1;
    height: 18.4375rem;
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-3-content {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-catalog {
    min-width: 12rem;
    font-size: 1.25rem;
}

/* Row 2: Full Width */
.card-4 {
    grid-column: 1 / 4;
    /* Span 3 columns (Full width) */
    grid-row: 2;
    width: 100%;
    height: 18.4375rem;
}

/* Row 3: Big Slider Left, Small Right (Vice Versa) */
.card-5 {
    grid-column: 1 / 3;
    /* Span 2 columns (Left) */
    grid-row: 3;
    width: 100%;
    height: 18.4375rem;
    min-width: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    background-color: #9ab4bd !important;
    color: #fff;
    border-radius: 1.25rem;
}

.card-5 .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Центрируем весь блок текста */
    padding: 0 2rem 2.3rem;
}

.slide-content {
    text-align: left;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #fff;
    line-height: 1.1;
}

.slide-text {
    font-size: 1.75rem;
    line-height: 1.2;
    margin: 0;
    color: #fff;
}

/* White Navigation Arrows */
.card-5 .swiper-button-next,
.card-5 .swiper-button-prev {
    color: #fff !important;
}

.card-5 .swiper-button-next::after,
.card-5 .swiper-button-prev::after {
    font-size: 1.5rem;
    font-weight: bold;
}


.card-6 {
    grid-column: 3 / 4;
    /* Span 1 column (Right) */
    grid-row: 3;
    width: 100%;
    height: 18.4375rem;
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-6-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(154, 180, 189, 0.7);
    /* Цвет #9ab4bd с прозрачностью */
    z-index: 2;
}

.card-6-content {
    position: relative;
    z-index: 5;
}

.feedback-btn {
    width: 8rem;
    height: 8rem;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    text-align: center;
    font-size: 1rem;
    line-height: 1.2;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.feedback-btn:hover {
    transform: scale(1.05);
}

.pulse-circles .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #fff;
    opacity: 0;
    animation: pulse 3s infinite;
}

.pulse-circles .circle:nth-child(2) {
    animation-delay: 1s;
}

.pulse-circles .circle:nth-child(3) {
    animation-delay: 2s;
}

@keyframes pulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }

    100% {
        width: 160%;
        height: 160%;
        opacity: 0;
    }
}




/* Product & Tags row */
.card-product {
    background: #eef2f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-tags {
    background: url('assets/molecules.png') no-repeat center/cover, #cad8de;
    position: relative;
}

/* Stats Row (Card 4) */
.card-4 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #FEF9F7 !important;
    /* Очень светлый тёплый оттенок как на макете */
    padding: 3rem 2rem;
    text-align: center;
}

.stats-wrapper {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 2.5rem;
}

.stat-item {
    flex: 1;
}

.stat-item strong {
    font-size: 3.5rem;
    /* Large numbers */
    color: var(--color-primary);
    font-weight: 500;
    line-height: 1;
}

.stat-item span {
    display: block;
    font-size: 1.125rem;
    color: #333;
    margin-top: 0.5rem;
    font-weight: 600;
}

.stats-description {
    max-width: 800px;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-primary);
    /* Red/Orange text as on prototype */
    font-weight: 500;
    margin: 0;
}

/* Bottom row: Reliability & feedback */
.card-reliability {
    background: #9ab4bd;
    color: #fff;
    display: flex;
    align-items: center;
}

.card-feedback {
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-weight: bold;
}

/* Responsive Media Query */
@media (max-width: 1150px) {
    .bento-grid {
        grid-template-columns: 1fr;
        margin-bottom: 3rem;
    }

    /* Forced Layout Reset */
    .grid-right-column {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: repeat(3, 1fr) !important;
        gap: 0.625rem !important;
    }

    .hero-section-slider .swiper-slide {
        height: 18.75rem !important;
        /* 300px */
    }

    .card-intro-girl.card-1 {
        min-height: 31.25rem;
        /* 500px */
        height: auto;
    }

    /* Stack everything */
    .card-2,
    .card-3,
    .card-4,
    .card-5,
    .card-6 {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .card-tags {
        background: url('assets/molecules.png') no-repeat center/cover, #cad8de;
        position: relative;
    }

    /* Stats Row */
    .card-stats {
        grid-column: span 2;
        background: #fff5f0;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 40px;
        text-align: center;
    }

    .stat-item strong {
        display: block;
        font-size: 36px;
        color: var(--color-primary);
        font-weight: 800;
    }

    .stat-item span {
        font-size: 14px;
        color: #666;
    }

    .stats-desc {
        grid-column: span 2;
        text-align: center;
        font-size: 14px;
        color: #888;
        margin-top: -10px;
        padding-bottom: 20px;
    }

    /* Bottom row: Reliability & feedback */
    .card-reliability {
        background: #9ab4bd;
        color: #fff;
        display: flex;
        align-items: center;
    }

    .card-feedback {
        background: #fff;
        border: 1px solid #eee;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .feedback-circle {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        border: 2px solid var(--color-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--color-primary);
        font-weight: bold;
    }
}

/* Responsive Media Query */
@media (max-width: 1150px) {
    .bento-grid {
        grid-template-columns: 1fr;
        margin-bottom: 3rem;
    }

    .grid-right-column {
        display: flex;
        /* Use flex for column stacking */
        flex-direction: column;
        gap: 1rem;
    }

    .hero-section-slider .swiper-slide {
        height: 18.75rem !important;
        /* 300px */
    }

    .card-intro-girl.card-1 {
        min-height: 31.25rem;
        /* 500px */
        height: auto;
    }

    /* Stack everything */
    .card-2,
    .card-3,
    .card-4,
    .card-5,
    .card-6 {
        width: 100% !important;
        grid-column: auto !important;
        grid-row: auto !important;
        min-height: 18.75rem;
    }
}

/* FOOTER */
.site-footer {
    background: #9ab4bd;
    color: #fff;
    padding: 3rem 0;
    font-size: 1rem;
    min-height: auto;
    /* max-height removed to allow content to grow on mobile */
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.site-footer .container {
    width: 100%;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.footer-left {
    flex: 1;
}

.footer-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
}

/* RESPONSIVE FOOTER */
@media (max-width: 890px) {
    .site-footer {
        padding: 2rem 0;
    }

    /* Removed footer-top column stacking for 480-890. Kept desktop layout */
    .contacts-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-row {
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .contact-row .email,
    .contact-row .department {
        text-align: left;
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-disclaimer p:first-child {
        font-size: 1.1rem;
    }

    .footer-disclaimer {
        font-size: 0.875rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .footer-top {
        margin-left: 1.25rem !important;
        flex-direction: column !important;
    }

    .footer-left,
    .footer-right,
    .footer-contacts {
        width: 100% !important;
    }

    .footer-company p {
        margin-left: 0 !important;
    }

    .footer-logo {
        display: flex;
        justify-content: flex-start;
        width: 100%;
    }

    .footer-logo img {
        width: clamp(140px, 50vw, 220px);
    }

    .contacts-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .contact-row {
        display: flex !important;
        flex-direction: column-reverse !important;
        align-items: flex-start !important;
        gap: 0.25rem !important;
    }

    .contact-row .email,
    .contact-row .department {
        text-align: left !important;
        width: 100% !important;
    }

    .footer-disclaimer p:first-child {
        font-size: clamp(0.75rem, 4vw, 1rem) !important;
    }

    .footer-disclaimer {
        font-size: clamp(0.7rem, 3.5vw, 0.875rem) !important;
    }
}




.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    filter: brightness(0) invert(1);
    max-height: 6rem;
    height: auto;
    width: 220px;
    max-width: 100%;
}

.footer-company p {
    margin: 0.25rem 0;
    line-height: 1.5;
    font-size: 1.125rem;
    margin-left: 3.6rem;
}

.footer-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-contacts h4 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: left;
}

.contacts-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.5rem 3rem;
}

.contact-row {
    display: contents;
}

.contact-row .email {
    font-weight: 400;
    font-size: 1.125rem;
    text-align: left;
}

.contact-row .department {
    text-align: left;
    font-weight: 600;
    font-size: 1.125rem;
}

.phone-line {
    margin: 0.75rem 0 0 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: left;
}

.phone-row {
    grid-column: 1;
    display: block;
}

.phone-row .phone {
    display: block;
    padding-top: 1.75rem;
    font-size: clamp(1rem, 4vw, 1.45rem);
    font-weight: 700;
    white-space: nowrap;
}

.footer-contacts a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-contacts a:hover {
    opacity: 0.8;
}

/* Footer Bottom on White Background */
.footer-bottom-white {
    background: #fff;
    padding: 1.8rem;
    /* Generous padding */
    border-top: 1px solid #f0f0f0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    /* 18px */
    color: #666;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #9ab4bd;
    /* Theme blue-gray */
    text-decoration: underline;
    /* Underlined as per prototype */
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
    color: #9ab4bd;
}

.footer-copyright {
    color: #9ab4bd;
    /* Theme blue-gray */
}

.footer-copyright p {
    margin: 0;
}

/* Footer Disclaimer */
.footer-disclaimer {
    margin-top: 2rem;
    /* More space */
    padding-top: 0;
    border-top: none;
    /* Removed border as requested */
    font-size: 1rem;
    /* 16px */
    color: #9ab4bd;
    /* Theme blue-gray */
    line-height: 1.3;
    text-align: center;
}

.footer-disclaimer p {
    margin: 0.1rem;
    color: #9ab4bd;
    /* Theme blue-gray for all paragraphs */
}

.footer-disclaimer p:first-child {
    font-weight: 300;
    color: #9ab4bd;
    font-size: 2rem;
    /* 32px - Large header disclaimer */
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 2500;
    /* Below header (3000) */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: flex-start;
    /* Start from top */
    justify-content: center;
    padding: 130px 1.25rem 2rem;
    /* Buffer for header (approx 90-100px) */
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    width: 100%;
    max-width: 39.375rem;
    border-radius: 1.25rem;
    position: relative;
    box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 0.9375rem;
    right: 1.25rem;
    font-size: 1.875rem;
    font-weight: bold;
    color: #9ab4bd;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.modal-body {
    padding: 1.875rem 2.5rem;
    overflow-y: auto;
}

.modal-title {
    font-size: 1.75rem;
    color: #9ab4bd;
    text-align: center;
    margin-bottom: 2.1875rem;
    font-weight: 500;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9375rem 1.875rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
    min-width: 0;
}

.form-group:has(#phone) {
    margin-bottom: 1.5625rem;
}

.form-group label {
    font-size: 0.8125rem;
    color: #333;
    margin-bottom: 0.375rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 0.9375rem;
    border: 0.0625rem solid #c8d3d9;
    border-radius: 0.25rem;
    font-family: inherit;
    font-size: 0.875rem;
    width: 100%;
    color: #9ab4bd;
    background-color: #fff;
    line-height: 1.2;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ab4bd;
    opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    background-color: #fff;
    color: #000;
    /* Text becomes black when typing/focused */
}

.form-group input:not(:placeholder-shown):not(:focus),
.form-group textarea:not(:placeholder-shown):not(:focus) {
    border-color: #c8d3d9;
}

.form-group textarea {
    height: 8.125rem;
    resize: none;
}

.full-width {
    grid-column: span 2;
    margin-top: 0.3125rem;
}

/* Custom Select Styling */
.custom-select-wrapper {
    position: relative;
    cursor: pointer;
}

.custom-select-wrapper::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 2.5rem;
    height: 100%;
    background-color: #9ab4bd;
    border-radius: 0 0.25rem 0.25rem 0;
    pointer-events: none;
}

.custom-select-wrapper::before {
    content: '';
    position: absolute;
    right: 0.9375rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.75rem;
    height: 0.5rem;
    background: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    z-index: 2;
    pointer-events: none;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 3.125rem;
    cursor: pointer;
}

/* Styling the generic option list (limited) 
   Note: For a perfect match of the dropdown list styling, a full custom JS dropdown is needed.
   But we can style the 'select' to look right in its closed state. 
*/

/* Custom Dropdown (Custom UI) */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown-selected {
    padding: 0.6875rem 3.125rem 0.6875rem 0.9375rem;
    border: 0.0625rem solid #c8d3d9;
    border-radius: 0.25rem;
    color: #9ab4bd;
    background: #fff;
    min-height: 2.6875rem;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    /* Slightly smaller for better fit */
    line-height: 1.2;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.custom-dropdown-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 0.0625rem solid #c8d3d9;
    border-top: none;
    z-index: 110;
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.1);
    border-radius: 0 0 0.25rem 0.25rem;
}

.custom-dropdown.open .custom-dropdown-options {
    display: block;
}

.custom-dropdown-option {
    padding: 0.625rem 0.9375rem;
    color: #000;
    border-bottom: 0.0625rem solid #f0f4f7;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.custom-dropdown-option:last-child {
    border-bottom: none;
}

.custom-dropdown-option:hover {
    background: #f9fbff;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 1.5625rem;
    gap: 1.25rem;
}

.consent-wrapper {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
    position: relative;
}

.consent-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 1.125rem;
    width: 1.125rem;
    z-index: 2;
    margin: 0;
}

.checkmark {
    position: relative;
    top: 0;
    left: 0;
    height: 1.125rem;
    width: 1.125rem;
    background-color: #fff;
    border: 0.0625rem solid #c8d3d9;
    border-radius: 0.125rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.consent-wrapper:hover input~.checkmark {
    border-color: var(--color-primary);
}

.consent-wrapper input:checked~.checkmark {
    background-color: #fff;
    border-color: var(--color-primary);
    animation: checkbox-pop 0.3s ease;
}

@keyframes checkbox-pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.consent-wrapper input:checked~.checkmark:after {
    display: block;
}

.consent-wrapper .checkmark:after {
    left: 0.35rem;
    top: 0.1rem;
    width: 0.25rem;
    height: 0.55rem;
    border: solid var(--color-primary);
    border-width: 0 0.125rem 0.125rem 0;
    transform: rotate(45deg);
    transition: all 0.2s ease;
}

.consent-wrapper label {
    font-size: 0.625rem;
    color: #000;
    line-height: 1.3;
    cursor: pointer;
}

.btn-orange {
    background-color: var(--color-primary);
    color: #fff;
    padding: 0.625rem 1.875rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    min-width: 10rem;
}

.form-note {
    font-size: 0.6875rem;
    color: #000;
    margin-top: 0.625rem;
}

/* Success Message Styles */
.success-message {
    height: 21.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.success-box {
    background-color: #87d448;
    color: #fff;
    padding: 2.5rem;
    border-radius: 1.25rem;
    width: 100%;
}

.success-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.success-box p {
    font-size: 1.25rem;
    font-weight: 60;
    margin-bottom: 1.25rem;
}

.success-box small {
    font-size: 0.8125rem;
    line-height: 1.4;
    opacity: 0.9;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: 1;
    }

    .form-footer {
        flex-direction: column;
        align-items: center;
    }

    .modal-body {
        padding: 20px;
    }
}

/* CATALOG PAGE */
.catalog-page-wrapper {
    padding: 3.125rem 0;
    background-color: #fff;
}

.catalog-container {
    display: flex;
    gap: 3.75rem;
    align-items: flex-start;
}

/* Sidebar Accordion Menu */
.catalog-sidebar {
    width: 18.75rem;
    /* 300px */
    flex-shrink: 0;
}

.sidebar-search {
    margin-bottom: 2rem;
}

.sidebar-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #c8d3d9;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.sidebar-search input:focus {
    border-color: var(--color-primary);
}

.accordion-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 1.125rem;
    /* 18px */
    font-weight: 600;
    line-height: 1.5;
    background: #fff;
}

.accordion-menu>li {
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.accordion-menu>li:last-child {
    border-bottom: none;
}

/* Top Level */
.accordion-menu li a {
    color: #000 !important;
}

.accordion-menu li.open>a,
.accordion-menu li.current-menu-item>a,
.accordion-menu li.current_page_item>a,
.accordion-menu li.current-product_cat-ancestor>a,
.accordion-menu li.current-menu-ancestor>a,
.accordion-menu li a:hover {
    color: var(--color-primary) !important;
}

/* Sub Menu (Second Level) */
.accordion-menu .sub-menu {
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.accordion-menu li.open>.sub-menu {
    display: block;
}

.accordion-menu .sub-menu li {
    border-bottom: 1px solid #e8e8e8;
}

.accordion-menu .sub-menu li:last-child {
    border-bottom: none;
}

.accordion-menu .sub-menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.125rem 0.75rem 1.75rem;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    background: #fff;
}

/* Third Level (Nested Menu) */
.accordion-menu .sub-menu .sub-menu li a {
    padding-left: 2.375rem;
    font-weight: 400;
}

/* Fourth Level (Nested Menu) */
.accordion-menu .sub-menu .sub-menu .sub-menu li a {
    padding-left: 3rem;
    font-weight: 400;
}

.accordion-menu a:hover,
.accordion-menu .current-menu-item>a,
.accordion-menu .current_page_item>a,
.accordion-menu .current-product_cat-ancestor>a,
.accordion-menu .current-menu-ancestor>a {
    background: #fff !important;
    color: var(--color-primary) !important;
}

/* Arrow Icons */
.accordion-menu li.menu-item-has-children>a::after {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-left: 0.625rem;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23999'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

.accordion-menu li.open>a::after {
    transform: rotate(180deg);
}

/* Catalog Main Content */
.catalog-main {
    flex: 1;
    padding-top: 0;
}

.catalog-top-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 2rem;
    height: 2.875rem;
    /* Exactly match sidebar search height */
}

.breadcrumbs {
    font-size: 0.875rem;
    color: #999;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    column-gap: 8px;
    row-gap: 4px;
}

.breadcrumb-item {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs span {
    color: var(--color-primary);
    /* Orange for current page */
    font-weight: 500;
}

.breadcrumbs .sep {
    color: #999;
}

.catalog-header {
    margin-bottom: 2rem;
    padding-top: 0;
    /* Remove padding to align with first menu item */
    display: flex;
    align-items: center;
    min-height: 3.375rem;
    /* Match height of first menu item toggle (padding + line-height) */
}

.catalog-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.catalog-grid {
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
    margin-bottom: 4rem;
}

.category-card {
    display: flex;
    border-radius: 1.25rem;
    overflow: hidden;
    height: 25rem;
    /* 400px */
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.category-image {
    flex: 0 0 60%;
    position: relative;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: #e0e6ea;
}

.category-info {
    flex: 0 0 40%;
    padding: 3rem 2.5rem;
    /* Increased vertical padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center text vertically */
    gap: 1rem;
    /* Slightly tighter gap to allow for more container padding */
    color: #fff;
    transition: background-color 0.3s ease;
}

.category-info h2 {
    font-size: 2.125rem;
    /* Slightly smaller to fit Better */
    margin: 0;
    /* Margin removed in favor of container gap */
    font-weight: 700;
    line-height: 1.1;
}

.category-info p {
    font-size: 0.9375rem;
    /* 15px - smaller for better fit */
    line-height: 1.4;
    margin: 0;
    /* Margin removed in favor of container gap */
    opacity: 1;
}

.category-info p:last-child {
    margin-bottom: 0;
}

/* Category Card Background Logic */
.category-info.item-orange {
    background-color: var(--color-primary);
}

.category-card:hover .category-info.item-orange {
    background-color: #9ab4bd !important;
}

/* Optional: Gray Card (alternating) */
.category-info.item-gray {
    background-color: #9ab4bd;
}

.category-card:hover .category-info.item-gray {
    background-color: var(--color-primary) !important;
}

/* Product Title */
.product-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

/* Responsive Catalog */
@media (max-width: 1150px) {
    .catalog-container {
        flex-direction: column;
        gap: 2rem;
    }

    .catalog-sidebar {
        width: 100%;
    }

    .category-card {
        flex-direction: column;
        height: auto;
    }

    .category-image,
    .category-info {
        flex: 0 0 100%;
    }

    .category-image {
        height: auto;
    }

    .category-image img {
        height: auto;
        object-fit: contain;
    }
}

/* Product Page Specific Styles */
.product-main {
    padding-bottom: 5rem;
}

.product-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3.125rem;
    margin-bottom: 4rem;
}

.product-subtitle {
    font-size: 1.125rem;
    color: #4f4f4f;
    line-height: 1.5;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.product-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.characteristics-table {
    width: 100%;
    border-collapse: collapse;
}

.characteristics-table td {
    padding: 0.75rem 0;
    font-size: 1rem;
    line-height: 1.4;
}

.characteristics-table tr.table-header-row td {
    color: #9ab4bd;
    font-weight: 700;
    padding-bottom: 1.25rem;
}

.product-section.no-table-header .characteristics-table {
    margin-top: -0.5rem;
}

.characteristics-table td:first-child {
    font-weight: 700;
    color: #333;
    width: 40%;
    padding-right: 1.25rem;
}

.characteristics-table td:last-child {
    color: #333;
}

.product-info-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center-align children per mockup */
}

.product-image-box {
    width: 100%;
    background: #fff;
    border-radius: 0.75rem;
    padding: 0;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.05);
    margin-bottom: 0.75rem;
    /* Reduced to move content higher */
    overflow: hidden;
}

.product-image-box img {
    width: 100%;
    height: auto;
    display: block;
}

.instruction-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    color: var(--color-primary);
    text-decoration: none;
    margin: 0.5rem 0 2.5rem;
    /* Moved higher */
    transition: opacity 0.2s;
    width: 100%;
}

.instruction-link:hover {
    opacity: 0.8;
}

.instruction-text {
    font-size: 1.2rem;
    /* Slightly larger like in the screenshot */
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    /* Centered text lines */
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.instruction-text span {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}

.instruction-text .file-ext {
    font-weight: 400;
}

.instruction-link svg {
    flex-shrink: 0;
    color: var(--color-primary);
    width: 3.2rem;
    /* Tall enough for 2 lines of text */
    height: 3.2rem;
}

.back-to-catalog-btn {
    background-color: var(--color-primary);
    color: #fff;
    padding: 1.125rem 5rem;
    /* Much larger and centered padding */
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(255, 90, 0, 0.2);
    display: inline-block;
    width: fit-content;
}

.back-to-catalog-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 90, 0, 0.3);
    background-color: #e04e00;
}

/* Packaging Table */
.packaging-table-wrapper {
    overflow-x: auto;
}

.packaging-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0.1875rem;
    /* Reduced spacing to bring cells closer */
    background: transparent;
    border: none;
    margin: 0;
}

.packaging-table th {
    background: #9ab4bd;
    color: #fff;
    text-align: center;
    padding: 0.875rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.375rem;
    border: none;
    vertical-align: middle;
}

.packaging-table td {
    padding: 0.875rem 1rem;
    background: #fff;
    border: 1px solid #c8d3d9;
    border-radius: 0.375rem;
    font-size: 1rem;
    color: #333;
    text-align: center;
    vertical-align: middle;
}

.packaging-table td:nth-child(1) {
    font-weight: 700;
}

.packaging-table td:nth-child(2) {
    white-space: nowrap;
}

/* Ensure no override borders */
.packaging-table th,
.packaging-table td {
    border-right: none;
    border-bottom: none;
}

.packaging-table td {
    border: 1px solid #c8d3d9;
}

.packaging-table tr:last-child td {
    border-bottom: 1px solid #c8d3d9;
}

.packaging-table td strong {
    color: #333;
    font-weight: 700;
}

.qty-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    /* Slightly larger gap for perfect spacing per mockup */
}

.qty-btn {
    width: 2.125rem;
    /* Increased size to match mockup ratio */
    height: 2.125rem;
    border-radius: 50%;
    border: none;
    background: #edf2f6;
    /* Exact light blue-gray from mockup */
    color: #9ab4bd;
    /* Gray-blue from header */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 300;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.qty-btn:hover {
    background: #fff;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.qty-input {
    width: 4.5rem;
    /* Stretched for better visibility */
    height: 1.875rem;
    border: 1px solid #c8d3d9;
    border-radius: 0.375rem;
    text-align: center;
    font-size: 0.9375rem;
    color: #000;
    padding: 0;
    margin: 0;
    -moz-appearance: textfield;
}

.qty-input:hover,
.qty-input:focus {
    border-color: var(--color-primary);
    outline: none;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-btn {
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 50%;
    background: #8ec34f;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s, background 0.2s;
}

.add-to-cart-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.add-to-cart-btn:hover {
    transform: scale(1.05);
    background: #7cb23e;
}

@media (max-width: 850px) {
    .product-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-info-right {
        order: -1;
    }

    .packaging-table,
    .packaging-table thead,
    .packaging-table tbody,
    .packaging-table th,
    .packaging-table td,
    .packaging-table tr {
        display: block;
    }

    .packaging-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .packaging-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }

    .packaging-table td:before {
        position: absolute;
        top: 1.25rem;
        left: 1rem;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label);
        font-weight: 700;
        text-align: left;
    }

    .qty-selector {
        justify-content: flex-end;
    }
}

/*
Theme Styles
*/

:root {
    --color-primary: #FF5A00;
    /* Vibrant Orange */
    --color-secondary: #00877A;
    --color-bg-gray: #E0E6EA;
    /* Footer/Backgrounds */
    --font-main: 'Exo 2.0', sans-serif;
    --container-width: 1440px;
    /* Reset to 1440px as per new request */
    --border-radius: 0px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: #fff;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0;
    /* Removing padding to let Swiper and Grid be exactly 1420px */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Button */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    border: none;
    cursor: pointer;
    line-height: 1.2;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-green {
    background: #87d448;
    color: #fff;
    padding: 10px 45px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
}

.btn-green:hover {
    background: #76ba3d;
    transform: translateY(-2px);
}

.btn-primary:hover {
    background: #e04e00;
    transform: translateY(-2px);
}

/* HEADER duplicate removed for consistency */

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-title a {
    text-decoration: none;
    color: inherit;
}

/* Custom logo styling to mimic 'ArtBioTech' text from image if no img */
.site-branding span {
    color: var(--color-primary);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-weight: 500;
    font-size: 1.125rem;
    /* Reduced from 22px to 18px for better fit */
    color: #333;
    position: relative;
    padding-bottom: 5px;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.main-navigation a:hover {
    color: var(--color-primary);
}

.main-navigation a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Mobile Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-box {
    width: 35px;
    height: 28px;
    display: block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 35px;
    height: 3px;
    background-color: var(--color-primary);
    position: absolute;
    border-radius: 4px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before {
    content: "";
    top: -10px;
}

.hamburger-inner::after {
    content: "";
    bottom: -10px;
}

/* Hamburger Animation (Active) */
.main-navigation.toggled .hamburger-inner {
    background-color: transparent !important;
}

.main-navigation.toggled .hamburger-inner::before {
    top: 0;
    transform: rotate(45deg);
}

.main-navigation.toggled .hamburger-inner::after {
    top: 0;
    transform: rotate(-45deg);
}

/* HEADER RIGHT SECTION */
.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-search .search-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #9ab4bd;
    display: flex;
    align-items: center;
}

.header-search .search-btn:hover {
    color: var(--color-primary);
}

.header-contacts {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.4;
}

.contact-phone {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.contact-email {
    font-size: 16px;
    color: #666;
}

.static-menu {
    gap: 1.5625rem;
}

.static-menu a {
    font-size: 1.125rem;
    /* Match primary menu */
    font-weight: 500;
}

/* RESPONSIVE BASE */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.25rem;
    box-sizing: border-box;
}

@media (max-width: 1440px) {
    :root {
        --container-width: 100%;
    }
}

@media (max-width: 1150px) {
    .site-header {
        padding: 0.75rem 0;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 3100;
        /* Higher than overlay */
        background: transparent;
        border: none;
    }

    .main-navigation.toggled .menu-toggle {
        position: fixed;
        top: 2rem;
        right: 3.5rem;
    }

    .main-navigation .menu-primary-container,
    .main-navigation .menu-static-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 3000;
        /* Match header or slightly below toggle */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .main-navigation.toggled .menu-primary-container,
    .main-navigation.toggled .menu-static-container {
        display: flex;
        opacity: 1;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .main-navigation a {
        font-size: 1.5rem !important;
    }

    .header-contacts,
    .header-cta,
    .header-search {
        display: none;
    }

    .header-right {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .site-branding img {
        width: 160px;
    }
}

/* HERO SECTION SLIDER */
.hero-section-slider {
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
    background: #fff;
}

.hero-section-slider .swiper-slide {
    height: 500px;
    display: flex;
    align-items: center;
    padding: 0;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    background-color: #fff;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    padding-left: 0rem;
    /* Aligned to container */
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.hero-title span {
    color: var(--color-primary);
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.4;
    color: #333;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-image-container {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* SWIPER PAGINATION CUSTOM */
.hero-pagination-container {
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
    background: #fff;
}

.hero-pagination-container .swiper-pagination {
    position: static !important;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.hero-pagination-container .swiper-pagination-bullet {
    width: 22px;
    height: 22px;
    background: transparent;
    border: 2px solid #9ab4bd;
    /* Footer-like color */
    opacity: 1;
    margin: 0 !important;
    transition: 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-pagination-container .swiper-pagination-bullet::after {
    content: '';
    width: 0;
    height: 0;
    background: var(--color-primary);
    border-radius: 50%;
    transition: 0.3s;
}

.hero-pagination-container .swiper-pagination-bullet-active::after {
    width: 12px;
    height: 12px;
}

.hero-section-slider-wrapper .swiper-button-next,
.hero-section-slider-wrapper .swiper-button-prev {
    display: none !important;
}

/* Gray-blue separator bar */
.section-separator {
    width: 100vw;
    /* Full viewport width */
    height: 3.125rem;
    /* 50px */
    background-color: #9ab4bd;
    margin-left: calc(-50vw + 50%);
    /* Break out of container */
    margin-right: calc(-50vw + 50%);
    margin-bottom: 0;
    /* No gap, grid handles spacing */
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.15);
    /* Inner shadow */
}

.gray-frame {
    background-color: #e0e0e0 !important;
    min-height: 200px;
    /* Default min height for grid items */
}


/* WIREFRAME MODE STYLES */
/* Validating requests: "all sections starting from banner should be simple blocks with outline and dimensions" */
.hero-section,
.bento-grid,
.grid-card {
    position: relative;
    background: #fff;
    /* Reset backgrounds to white for wireframe look */
}



/* Override specifics for wireframe clarity */
.grid-card {
    border-radius: 0;
    box-shadow: none;
}

/* BENTO GRID */
.bento-grid {
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 0.625rem;
    /* 10px */
    margin-top: 3.125rem;
    /* 50px in rem */
    margin-bottom: 5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 1420px;
    width: 100%;
    background: #fff;
    /* White background */
}

.grid-card {
    /* border: 1px solid #000; */
    /* padding: 1.875rem; */
    background: #e0e0e0;
    min-width: 0;
    /* Critical for Swiper */
    box-sizing: border-box;
    /* Ensure padding doesn't break width */
    border-radius: 1.25rem;
}

/* Left Column Card */
.card-1 {
    height: auto;
    min-height: 56.56rem;
    /* 905px */
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
    /* Light background for empty areas */
}

.info-plate-orange {
    background-color: var(--color-primary);
    color: #fff;
    padding: 1.5rem 4rem;
    font-size: 1.5rem;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
    font-weight: 500;
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 160px;
    /* Compact size like in prototype */
    position: relative;
    z-index: 5;
}

.info-plate-content {
    text-align: left;
}

/* Video Background Styles */
.card-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 2;
    transition: opacity 0.5s ease;
}

.video-preview.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-video-btn {
    position: absolute;
    top: 2rem;
    left: 2rem;
    /* Сменим на 2rem как на макете обычно, пользователь уточнит если надо именно 21.5 */
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.play-video-btn:hover {
    transform: scale(1.1);
    background-color: #f0f0f0;
}

.play-video-btn svg {
    color: #000;
    width: 1.5rem;
    height: 1.5rem;
}

.play-video-btn.hidden {
    display: none;
}

#video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    /* Space for orange plate */
    z-index: 1;
    display: flex;
    align-items: flex-end;
    /* Align video to bottom */
}

#video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    /* Fill width, show bottom portion with figure */
}

.card-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Keep cover for background videos in cards 3 and 6 */
}


/* Row 2 */
/* DESKTOP GRID DEFINITION */
.grid-right-column {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: repeat(3, 1fr) !important;
    gap: 0.625rem !important;
    /* 10px in REM */
}

/* Row 1: Small Left, Big Right */
.card-2 {
    grid-column: 1 / 2;
    /* Span 1 column */
    grid-row: 1;
    height: 18.4375rem;
    background-size: cover;
    background-position: center;
}

.card-3 {
    grid-column: 2 / 4;
    /* Span 2 columns */
    grid-row: 1;
    height: 18.4375rem;
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-3-content {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-catalog {
    min-width: 12rem;
    font-size: 1.25rem;
}

/* Row 2: Full Width */
.card-4 {
    grid-column: 1 / 4;
    /* Span 3 columns (Full width) */
    grid-row: 2;
    width: 100%;
    height: 18.4375rem;
}

/* Row 3: Big Slider Left, Small Right (Vice Versa) */
.card-5 {
    grid-column: 1 / 3;
    /* Span 2 columns (Left) */
    grid-row: 3;
    width: 100%;
    height: 18.4375rem;
    min-width: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    background-color: #9ab4bd !important;
    color: #fff;
    border-radius: 1.25rem;
}

.card-5 .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Центрируем весь блок текста */
    padding: 0 2rem 2.3rem;
}

.slide-content {
    text-align: left;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #fff;
    line-height: 1.1;
}

.slide-text {
    font-size: 1.75rem;
    line-height: 1.2;
    margin: 0;
    color: #fff;
}

/* White Navigation Arrows */
.card-5 .swiper-button-next,
.card-5 .swiper-button-prev {
    color: #fff !important;
}

.card-5 .swiper-button-next::after,
.card-5 .swiper-button-prev::after {
    font-size: 1.5rem;
    font-weight: bold;
}


.card-6 {
    grid-column: 3 / 4;
    /* Span 1 column (Right) */
    grid-row: 3;
    width: 100%;
    height: 18.4375rem;
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-6-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(154, 180, 189, 0.7);
    /* Цвет #9ab4bd с прозрачностью */
    z-index: 2;
}

.card-6-content {
    position: relative;
    z-index: 5;
}

.feedback-btn {
    width: 8rem;
    height: 8rem;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    text-align: center;
    font-size: 1rem;
    line-height: 1.2;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.feedback-btn:hover {
    transform: scale(1.05);
}

.pulse-circles .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #fff;
    opacity: 0;
    animation: pulse 3s infinite;
}

.pulse-circles .circle:nth-child(2) {
    animation-delay: 1s;
}

.pulse-circles .circle:nth-child(3) {
    animation-delay: 2s;
}

@keyframes pulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }

    100% {
        width: 160%;
        height: 160%;
        opacity: 0;
    }
}




/* Product & Tags row */
.card-product {
    background: #eef2f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-tags {
    background: url('assets/molecules.png') no-repeat center/cover, #cad8de;
    position: relative;
}

/* Stats Row (Card 4) */
.card-4 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #FEF9F7 !important;
    /* Очень светлый тёплый оттенок как на макете */
    padding: 3rem 2rem;
    text-align: center;
}

.stats-wrapper {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 2.5rem;
}

.stat-item {
    flex: 1;
}

.stat-item strong {
    font-size: 3.5rem;
    /* Large numbers */
    color: var(--color-primary);
    font-weight: 500;
    line-height: 1;
}

.stat-item span {
    display: block;
    font-size: 1.125rem;
    color: #333;
    margin-top: 0.5rem;
    font-weight: 600;
}

.stats-description {
    max-width: 800px;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-primary);
    /* Red/Orange text as on prototype */
    font-weight: 500;
    margin: 0;
}

/* Bottom row: Reliability & feedback */
.card-reliability {
    background: #9ab4bd;
    color: #fff;
    display: flex;
    align-items: center;
}

.card-feedback {
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-weight: bold;
}

/* Responsive Media Query */
@media (max-width: 1150px) {
    .bento-grid {
        grid-template-columns: 1fr;
        margin-bottom: 3rem;
    }

    /* Forced Layout Reset */
    .grid-right-column {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: repeat(3, 1fr) !important;
        gap: 0.625rem !important;
    }

    .hero-section-slider .swiper-slide {
        height: 18.75rem !important;
        /* 300px */
    }

    .card-intro-girl.card-1 {
        min-height: 31.25rem;
        /* 500px */
        height: auto;
    }

    /* Stack everything */
    .card-2,
    .card-3,
    .card-4,
    .card-5,
    .card-6 {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .card-tags {
        background: url('assets/molecules.png') no-repeat center/cover, #cad8de;
        position: relative;
    }

    /* Stats Row */
    .card-stats {
        grid-column: span 2;
        background: #fff5f0;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 40px;
        text-align: center;
    }

    .stat-item strong {
        display: block;
        font-size: 36px;
        color: var(--color-primary);
        font-weight: 800;
    }

    .stat-item span {
        font-size: 14px;
        color: #666;
    }

    .stats-desc {
        grid-column: span 2;
        text-align: center;
        font-size: 14px;
        color: #888;
        margin-top: -10px;
        padding-bottom: 20px;
    }

    /* Bottom row: Reliability & feedback */
    .card-reliability {
        background: #9ab4bd;
        color: #fff;
        display: flex;
        align-items: center;
    }

    .card-feedback {
        background: #fff;
        border: 1px solid #eee;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .feedback-circle {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        border: 2px solid var(--color-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--color-primary);
        font-weight: bold;
    }
}

/* Responsive Media Query */
@media (max-width: 1150px) {
    .bento-grid {
        grid-template-columns: 1fr;
        margin-bottom: 3rem;
    }

    .grid-right-column {
        display: flex;
        /* Use flex for column stacking */
        flex-direction: column;
        gap: 1rem;
    }

    .hero-section-slider .swiper-slide {
        height: 18.75rem !important;
        /* 300px */
    }

    .card-intro-girl.card-1 {
        min-height: 31.25rem;
        /* 500px */
        height: auto;
    }

    /* Stack everything */
    .card-2,
    .card-3,
    .card-4,
    .card-5,
    .card-6 {
        width: 100% !important;
        grid-column: auto !important;
        grid-row: auto !important;
        min-height: 18.75rem;
    }
}

/* FOOTER */
.site-footer {
    background: #9ab4bd;
    color: #fff;
    padding: 3rem 0;
    font-size: 1rem;
    min-height: auto;
    /* max-height removed to allow content to grow on mobile */
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.site-footer .container {
    width: 100%;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.footer-left {
    flex: 1;
}

.footer-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
}

/* RESPONSIVE FOOTER */
@media (max-width: 890px) {
    .site-footer {
        padding: 2rem 0;
    }

    /* Removed footer-top column stacking for 480-890. Kept desktop layout */
    .contacts-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-row {
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .contact-row .email,
    .contact-row .department {
        text-align: left;
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-disclaimer p:first-child {
        font-size: 1.1rem;
    }

    .footer-disclaimer {
        font-size: 0.875rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .footer-top {
        margin-left: 2rem !important;
        flex-direction: column !important;
    }

    .footer-left,
    .footer-right,
    .footer-contacts {
        width: 100% !important;
    }

    .footer-company p {
        margin-left: 0 !important;
    }

    .footer-logo {
        display: flex;
        justify-content: flex-start;
        width: 100%;
    }

    .footer-logo img {
        width: clamp(140px, 50vw, 220px);
    }

    .contacts-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .contact-row {
        display: flex !important;
        flex-direction: column-reverse !important;
        align-items: flex-start !important;
        gap: 0.25rem !important;
    }

    .contact-row .email,
    .contact-row .department {
        text-align: left !important;
        width: 100% !important;
    }

    .footer-disclaimer p:first-child {
        font-size: clamp(0.75rem, 4vw, 1rem) !important;
    }

    .footer-disclaimer {
        font-size: clamp(0.7rem, 3.5vw, 0.875rem) !important;
    }
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    filter: brightness(0) invert(1);
    max-height: 6rem;
    height: auto;
    width: 220px;
    max-width: 100%;
}

.footer-company p {
    margin: 0.25rem 0;
    line-height: 1.5;
    font-size: 1.125rem;
    margin-left: 3.6rem;
}

/* CATALOG PAGE */
.catalog-page-wrapper {
    padding: 3.125rem 0;
    background-color: #fff;
}

.catalog-container {
    display: flex;
    gap: 3.75rem;
    align-items: flex-start;
}

/* Sidebar Accordion Menu */
.catalog-sidebar {
    width: 18.75rem;
    /* 300px */
    flex-shrink: 0;
}

.sidebar-search {
    margin-bottom: 2rem;
}

.sidebar-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #c8d3d9;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.sidebar-search input:focus {
    border-color: var(--color-primary);
}

.accordion-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 1.125rem;
    /* 18px */
    font-weight: 600;
    line-height: 1.5;
    background: #fff;
}

.accordion-menu>li {
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.accordion-menu>li:last-child {
    border-bottom: none;
}

/* Top Level */
.accordion-menu>li>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9375rem 1.125rem;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    background: #fff;
}

.accordion-menu>li>a:hover,
.accordion-menu>li.open>a,
.accordion-menu>li.current-menu-item>a {
    color: var(--color-primary) !important;
    background: #fff !important;
}

/* Sub Menu (Second Level) */
.accordion-menu .sub-menu {
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.accordion-menu li.open>.sub-menu {
    display: block;
}

.accordion-menu .sub-menu li {
    border-bottom: 1px solid #e8e8e8;
}

.accordion-menu .sub-menu li:last-child {
    border-bottom: none;
}

.accordion-menu .sub-menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.125rem 0.75rem 1.75rem;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    background: #fff;
}

/* Third Level (Nested Menu) */
.accordion-menu .sub-menu .sub-menu li a {
    padding-left: 2.375rem;
    font-weight: 400;
}

/* Fourth Level (Nested Menu) */
.accordion-menu .sub-menu .sub-menu .sub-menu li a {
    padding-left: 3rem;
    font-weight: 400;
}

.accordion-menu a:hover,
.accordion-menu .current-menu-item>a {
    background: #fff !important;
    color: var(--color-primary) !important;
}

/* Arrow Icons */
.accordion-menu li.menu-item-has-children>a::after {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-left: 0.625rem;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23999'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

.accordion-menu li.open>a::after {
    transform: rotate(180deg);
}

/* Catalog Main Content */
.catalog-main {
    flex: 1;
    padding-top: 0;
}

.catalog-top-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 2rem;
    height: 2.875rem;
    /* Exactly match sidebar search height */
}

.breadcrumbs {
    font-size: 0.875rem;
    color: #999;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    column-gap: 8px;
    row-gap: 4px;
}

.breadcrumb-item {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs span {
    color: var(--color-primary);
    /* Orange for current page */
    font-weight: 500;
}

.breadcrumbs .sep {
    color: #999;
}

.catalog-header {
    margin-bottom: 1rem;
    padding-top: 0;
    /* Remove padding to align with first menu item */
    display: flex;
    align-items: center;
    min-height: 3.375rem;
    /* Match height of first menu item toggle (padding + line-height) */
}

.catalog-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.catalog-grid {
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
}

.category-card {
    display: flex;
    border-radius: 1.25rem;
    overflow: hidden;
    height: 27rem;
    /* 400px */
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.category-image {
    flex: 0 0 60%;
    position: relative;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: #e0e6ea;
}

.category-info {
    flex: 0 0 40%;
    padding: 3rem 2.5rem;
    /* Increased vertical padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center text vertically */
    gap: 1rem;
    /* Slightly tighter gap to allow for more container padding */
    color: #fff;
    transition: background-color 0.3s ease;
}

.category-info h2 {
    font-size: 2.125rem;
    /* Slightly smaller to fit Better */
    margin: 0;
    /* Margin removed in favor of container gap */
    font-weight: 700;
    line-height: 1.1;
}

.category-info p {
    font-size: 0.9375rem;
    /* 15px - smaller for better fit */
    line-height: 1.4;
    margin: 0;
    /* Margin removed in favor of container gap */
    opacity: 1;
}

.category-info p:last-child {
    margin-bottom: 0;
}

/* Category Card Background Logic */
.category-info.item-orange {
    background-color: var(--color-primary);
}

.category-card:hover .category-info.item-orange {
    background-color: #9ab4bd !important;
}

/* Optional: Gray Card (alternating) */
.category-info.item-gray {
    background-color: #9ab4bd;
}

.category-card:hover .category-info.item-gray {
    background-color: var(--color-primary) !important;
}

/* Responsive Catalog */
@media (max-width: 1150px) {
    .catalog-container {
        flex-direction: column;
        gap: 2rem;
    }

    .catalog-sidebar {
        width: 100%;
    }

    .category-card {
        flex-direction: column;
        height: auto;
    }

    .category-image,
    .category-info {
        flex: 0 0 100%;
    }

    .category-image {
        height: auto;
    }

    .category-image img {
        height: auto;
        object-fit: contain;
    }
}

/* Product Page Specific Styles */
.product-main {
    padding-bottom: 5rem;
}

.product-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3.125rem;
    margin-bottom: 4rem;
}

.product-subtitle {
    font-size: 1.125rem;
    color: #4f4f4f;
    line-height: 1.5;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.product-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.characteristics-table {
    width: 100%;
    border-collapse: collapse;
}

.characteristics-table td {
    padding: 0.75rem 0;
    font-size: 1rem;
    line-height: 1.4;
}

.characteristics-table tr.table-header-row td {
    color: #9ab4bd;
    font-weight: 700;
    padding-bottom: 1.25rem;
}

.product-section.no-table-header .characteristics-table {
    margin-top: -0.5rem;
}

.characteristics-table td:first-child {
    font-weight: 700;
    color: #333;
    /* Labels are now black */
    width: 40%;
    padding-right: 1.25rem;
}

.characteristics-table td:last-child {
    color: #333;
}

.product-info-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center-align children per mockup */
}

.product-image-box {
    width: 100%;
    background: #fff;
    border-radius: 0.75rem;
    padding: 0;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.05);
    margin-bottom: 0.75rem;
    /* Reduced to move content higher */
    overflow: hidden;
}

.product-image-box img {
    width: 100%;
    height: auto;
    display: block;
}

.instruction-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    color: var(--color-primary);
    text-decoration: none;
    margin: 0.5rem 0 2.5rem;
    /* Moved higher */
    transition: opacity 0.2s;
    width: 100%;
}

.instruction-link:hover {
    opacity: 0.8;
}

.instruction-text {
    font-size: 1.2rem;
    /* Slightly larger like in the screenshot */
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    /* Centered text lines */
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.instruction-text span {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0.35rem 0;
}

.instruction-link svg {
    flex-shrink: 0;
    color: var(--color-primary);
    width: 3.2rem;
    /* Tall enough for 2 lines of text */
    height: 3.2rem;
}

.back-to-catalog-btn {
    background-color: var(--color-primary);
    color: #fff;
    padding: 1.125rem 5rem;
    /* Much larger and centered padding */
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(255, 90, 0, 0.2);
    display: inline-block;
    width: fit-content;
}

.back-to-catalog-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 90, 0, 0.3);
    background-color: #e04e00;
}

/* Packaging Table */
.packaging-table-wrapper {
    overflow-x: auto;
}

.packaging-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0.1875rem;
    /* Reduced spacing to bring cells closer */
    background: transparent;
    border: none;
    margin: 0;
}

.packaging-table th {
    background: #9ab4bd;
    color: #fff;
    text-align: center;
    padding: 0.875rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.375rem;
    border: none;
    vertical-align: middle;
}

.packaging-table td {
    padding: 0.875rem 1rem;
    background: #fff;
    border: 1px solid #c8d3d9;
    border-radius: 0.375rem;
    font-size: 1rem;
    color: #333;
    text-align: center;
    vertical-align: middle;
    line-height: 1.3rem;
}

/* Ensure no override borders */
.packaging-table th,
.packaging-table td {
    border-right: none;
    border-bottom: none;
}

.packaging-table td {
    border: 1px solid #c8d3d9;
}

.packaging-table tr:last-child td {
    border-bottom: 1px solid #c8d3d9;
}

.packaging-table td strong {
    display: block;
    color: #333;
}

.qty-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    /* Slightly larger gap for perfect spacing per mockup */
}

.qty-btn {
    width: 2.125rem;
    /* Increased size to match mockup ratio */
    height: 2.125rem;
    border-radius: 50%;
    border: none;
    background: #edf2f6;
    /* Exact light blue-gray from mockup */
    color: #9ab4bd;
    /* Gray-blue from header */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 300;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.qty-btn:hover {
    background: #fff;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.qty-input {
    width: 4.5rem;
    /* Stretched for better visibility */
    height: 1.875rem;
    border: 1px solid #c8d3d9;
    border-radius: 0.375rem;
    text-align: center;
    font-size: 0.9375rem;
    color: #000;
    padding: 0;
    margin: 0;
    -moz-appearance: textfield;
}

.qty-input:hover,
.qty-input:focus {
    border-color: var(--color-primary);
    outline: none;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-btn {
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 50%;
    background: #8ec34f;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s, background 0.2s;
}

.add-to-cart-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.add-to-cart-btn:hover {
    transform: scale(1.05);
    background: #7cb23e;
}

@media (max-width: 850px) {
    .product-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-info-right {
        order: -1;
    }

    .packaging-table,
    .packaging-table thead,
    .packaging-table tbody,
    .packaging-table th,
    .packaging-table td,
    .packaging-table tr {
        display: block;
    }

    .packaging-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .packaging-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }

    .packaging-table td:before {
        position: absolute;
        top: 1.25rem;
        left: 1rem;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label);
        font-weight: 700;
        text-align: left;
    }

    .qty-selector {
        justify-content: flex-end;
    }
}

/* About Page Styles */
.about-grid-wrapper {
    margin-top: 3rem;
    margin-bottom: 5rem;
    display: grid;
    grid-template-columns: 35% 1fr;
    grid-template-areas:
        "video header"
        "video content";
    gap: 0 4rem;
    align-items: start;
}

.about-header {
    grid-area: header;
}

.about-header .breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #999;
}

.about-left-col {
    grid-area: video;
    margin-top: 0;
    /* Reset margin since it's aligned via grid areas */
}

.about-left-col .card-1 {
    min-height: 0;
    height: auto;
    background: transparent;
    border-radius: 1.25rem;
    overflow: hidden;
}

.about-left-col .card-1 video {
    width: 100%;
    height: auto;
    display: block;
}

.about-right-col {
    grid-area: content;
    padding-left: 0;
}

.about-header .page-title {
    margin: 0 0 2rem 0;
    font-size: 2.25rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

/* Text Content Styling */
.about-text-content {
    font-size: 1.125rem;
    line-height: 1.4;
    color: #333;
}

.about-text-content p {
    margin: 0 0 1.5rem 0;
}

.about-text-content .text-orange-bold {
    color: var(--color-primary);
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.15rem;
}

.about-text-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1.25rem 0;
    color: #333;
}

/* Ensure mobile layout */
@media (max-width: 850px) {
    .about-grid-wrapper {
        display: flex !important;
        flex-direction: column !important;
        margin-top: 1rem;
    }

    .about-header {
        order: 1;
        margin-bottom: 1.5rem;
    }

    .about-left-col {
        order: 2;
        margin-bottom: 2rem;
        margin-top: 0 !important;
    }

    .about-right-col {
        order: 3;
        padding-left: 0 !important;
        margin-top: 0 !important;
    }

    .about-header .page-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    /* Specific fix for About video border-radius */
    .about-left-col .card-1 {
        min-height: auto !important;
        height: auto !important;
        border-radius: 1.25rem !important;
    }

    .about-left-col .card-1 video {
        border-radius: 1.25rem !important;
    }
}

/* Contacts Page Styles */
.contacts-grid-wrapper {
    margin-top: 3rem;
    margin-bottom: 5rem;
    align-items: start;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 5rem;
}

.contacts-left-col .about-text-content p {
    text-align: justify;
}

@media (max-width: 500px) {
    .contacts-left-col .about-text-content p {
        text-align: left;
    }
}

.contacts-left-col .breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #999;
}

.contacts-left-col .page-title {
    margin: 0 0 2rem 0;
    font-size: 2.25rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.contacts-right-col {
    margin-top: 2.75rem;
    /* Align with title */
}

.contacts-right-col .director-img-wrapper {
    background: transparent;
    border-radius: 1.25rem;
    overflow: hidden;
}

.contacts-right-col img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1.25rem;
}

@media (max-width: 1150px) {
    .contacts-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contacts-right-col {
        margin-top: 0;
        max-width: 400px;
    }
}

/* Contacts Content specific styling */
.contacts-director-info {
    margin-top: 3rem;
}

.contacts-director-info .name {
    font-size: 1.2rem;
    font-weight: 700;
}

.contacts-footer-info {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.contacts-footer-info p {
    margin-bottom: 1.5rem;
}

.contacts-emails {
    line-height: 1.8;
}

.contacts-phone {
    margin-top: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

/* Contacts table alignment */
.contacts-table {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    margin-top: 1rem;
}

.contacts-table td {
    padding: 0.2rem 0;
    font-size: 1.125rem;
    line-height: 1.3;
}

.contacts-table td:first-child {
    width: 250px;
}

.contacts-table a:hover {
    color: var(--color-primary);
}

/* Catalog Inner Page & Filters */
.catalog-filters {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.filter-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: #666;
}

.filter-checkbox input {
    width: 18px;
    height: 18px;
    border: 1px solid #c8d3d9;
    border-radius: 3px;
    cursor: pointer;
}

/* Product Accordions */
.products-accordion-list {
    margin-top: 2rem;
    border: 1px solid #eee;
    border-radius: 0.75rem;
    overflow: hidden;
}

.accordion-list-header {
    display: flex;
    background: #f9f9f9;
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-item-header {
    display: flex;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
    align-items: center;
}

.product-item-header:hover {
    background-color: #fcfcfc;
}

.col-name {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: #333;
}

.col-sku {
    width: 151px;
    color: #666;
}

.col-size {
    width: 120px;
    color: #666;
}

.toggle-icon {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}

.toggle-icon::before,
.toggle-icon::after {
    content: "";
    position: absolute;
    background: var(--color-primary);
    transition: transform 0.3s;
}

.toggle-icon::before {
    top: 9px;
    left: 2px;
    width: 16px;
    height: 2px;
}

.toggle-icon::after {
    top: 2px;
    left: 9px;
    width: 2px;
    height: 16px;
}

.product-accordion-item.open .toggle-icon::after {
    transform: rotate(90deg);
}

.product-item-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #fff;
}

.product-accordion-item.open .product-item-content {
    max-height: 1000px;
}

.content-inner {
    padding: 1.5rem 1.5rem 2rem 4rem;
    /* Offset for toggle icon */
    border-top: 1px solid #f5f5f5;
}

.product-full-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 2rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .accordion-list-header {
        display: none;
    }

    .product-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .col-sku,
    .col-size {
        width: 100%;
        font-size: 0.875rem;
        padding-left: 2.25rem;
    }

    .content-inner {
        padding: 1.5rem;
    }
}

/* Taxonomy Category Header */
.catalog-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.catalog-header-top .catalog-title {
    color: var(--color-primary) !important;
    /* Force orange */
    margin: 0;
    font-size: 2.25rem;
    font-weight: 700;
}

.btn-download {
    background: var(--color-primary);
    color: #fff;
    padding: 0.625rem 2.8125rem;
    /* 10px 45px in rem */
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-download:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: #fff;
}

/* Category Banner on Inner Page */
.category-banner-inner {
    margin-bottom: 3rem;
    display: flex;
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.category-banner-inner .category-image {
    width: 55%;
    flex-shrink: 0;
}

.category-banner-inner .category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-banner-inner .category-info {
    width: 45%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #9AB4BD;
    /* Based on mockup color */
    color: #fff;
}

.category-banner-inner .category-info h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.category-banner-inner .category-info p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

/* The .category-banner-dynamic now inherits all styles from .category-card for consistency */
.category-banner-dynamic:hover {
    transform: none !important;
}

.category-banner-dynamic:hover .category-info.item-gray {
    background-color: #9ab4bd !important;
}

.category-banner-dynamic:hover .category-info.item-orange {
    background-color: var(--color-primary) !important;
}

/* Subcategory Group Styling */
.subcategory-group {
    margin-bottom: 4rem;
}

.subcategory-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    margin-bottom: 2.5rem;
}

.sub-group-title {
    font-size: 2rem;
    /* Reduced from 2.75rem */
    font-weight: 700;
    color: #000;
    margin: 0;
    letter-spacing: 0.5px;
}

.sub-header-line {
    flex: 1;
    height: 3px;
    background: #e5e5e5;
    transform: translateY(4px);
}

.sub-toggle-btn {
    width: 36px;
    height: 36px;
    background-color: #8ed03f;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    border-radius: 50%;
    transition: transform 0.3s ease;
    transform: translateY(4px);
    flex-shrink: 0;
}

.subcategory-group.open .sub-toggle-btn {
    transform: rotate(180deg) translateY(-4px);
}

.subcategory-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.subcategory-group.open .subcategory-content {
    max-height: 5000px;
}

/* Subcategory Banner (Inside Group) */
.subcategory-banner {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    background: #fff;
}

.sub-banner-img {
    flex: 0 0 320px;
    border-radius: 1rem;
    overflow: hidden;
}

.sub-banner-img img {
    width: 100%;
    height: auto;
    display: block;
}

.sub-banner-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.sub-banner-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.sub-banner-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
    margin: 0;
}

/* Product Row Items */
.subcategory-product-list {
    border-top: 1px solid #ddd;
    margin-top: 1rem;
}

.product-row-item {
    display: flex;
    align-items: center;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    gap: 1rem;
}

.product-row-item:hover {
    background-color: #fafafa;
}

.p-row-title {
    flex: 0 0 300px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin-left: 0;
    /* Shifting left by 15px in rem */
}

.p-row-desc {
    flex: 1;
    font-size: 1rem;
    /* 15px - cleaner */
    line-height: 1.4;
    color: #555;
    padding: 0 1.5rem;
}

.p-row-action {
    flex: 0 0 200px;
    /* Fixed width to prevent button wrap */
    text-align: right;
}

.btn-learn-more {
    display: inline-block;
    padding: 0.625rem 2.8125rem;
    /* 10px 45px in rem */
    /* Balanced padding */
    background: #FF5A00;
    color: #fff;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s;
    white-space: nowrap;
    /* CRITICAL: prevent wrap */
}

.btn-learn-more:hover {
    transform: translateY(-1px);
    background-color: #e8560d;
    color: #fff;
}

@media (max-width: 992px) {
    .subcategory-banner {
        flex-direction: column;
        gap: 1.5rem;
    }

    .sub-banner-img {
        width: 100%;
        flex: none;
    }

    .product-row-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .p-row-title,
    .p-row-desc,
    .p-row-action {
        flex: auto;
        width: 100%;
        padding: 0;
        text-align: left;
    }

}

/* Interactive Filters System */
.product-filters-section {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.filter-group {
    margin-bottom: 2.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filters-toggle {
    margin-bottom: 0.5rem !important;
}

/* Folding logic for filters */
.filter-group.filter-collapsible .filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.filter-group.filter-collapsible.open .filter-content {
    max-height: 3000px;
}

.filter-group.open .sub-toggle-btn {
    transform: rotate(180deg);
}

.filter-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    padding-left: 2px;
}

.product-filters-section .sub-group-title {
    color: #999 !important;
    /* Muted grey only for the filters section */
}

.product-filters-section .directions-title,
.product-filters-section .parameters-title {
    color: #FF5A00;
}

.directions-title,
.parameters-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.directions-filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.filter-footer-area {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    min-height: 40px;
    margin-bottom: 2rem;
}

.filter-hints-container {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    margin-right: 1.5rem;
    padding-top: 6px;
}

.filter-hint-item {
    font-size: 0.8125rem;
    color: #b0b0b0;
    line-height: 1.5;
    display: none;
}

.filter-hint-item strong {
    color: #8a8a8a;
    font-weight: 600;
}

.filter-hint-item span {
    color: #b0b0b0;
}

/* Custom Styled Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 0.75rem;
}

.custom-checkbox input {
    display: none !important;
    /* Force hide */
}

.checkbox-box {
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
    background: #fff;
    flex-shrink: 0;
}

.custom-checkbox input:checked+.checkbox-box {
    background-color: #8ed03f;
    border-color: #8ed03f;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 18px;
    background-position: center;
    background-repeat: no-repeat;
}

.checkbox-box::after {
    display: none;
}

.checkbox-text {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
}

.directions-group-content .checkbox-text {
    font-weight: 700;
}

.parameters-group-content .checkbox-text {
    font-weight: 500;
}

/* Clear Filters Button */
.directions-group-content {
    display: flex;
    flex-direction: column;
}

.parameters-group-content {
    margin-top: 1.3rem;
    display: flex;
    flex-direction: column;
}

.clear-filters-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: default;
    color: #ccc;
    font-weight: 700;
    transition: all 0.2s;
    white-space: nowrap;
    margin-right: 2px;
    transform: translateY(9px);
    pointer-events: none;
}

.clear-filters-btn.active {
    display: flex;
    color: #FF5A00;
    cursor: pointer;
    pointer-events: auto;
}

.clear-filters-btn.active:hover {
    opacity: 0.8;
}

.clear-icon {
    width: 32px;
    height: 32px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.clear-filters-btn.active .clear-icon {
    border-color: #FF5A00;
}

.clear-icon::before,
.clear-icon::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 2px;
    background: #ccc;
    top: 50%;
    left: 50%;
    transition: background-color 0.2s;
}

.clear-filters-btn.active .clear-icon::before,
.clear-filters-btn.active .clear-icon::after {
    background: #FF5A00;
}

.clear-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.clear-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 1150px) {
    .directions-filter-grid {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .directions-filter-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .filter-footer-area {
        flex-direction: column !important;
        align-items: flex-end !important;
        gap: 1rem !important;
        margin-top: 1.5rem !important;
    }

    .filter-hints-container {
        margin-right: 0 !important;
        order: 1 !important;
        width: 100% !important;
    }

    .filter-hint-item {
        font-size: 0.875rem !important;
        margin-bottom: 0.75rem !important;
        padding: 8px 12px !important;
        background: #f8fafc !important;
        border-radius: 8px !important;
        border-left: 3px solid #ff5a00 !important;
    }

    .filter-hint-item strong {
        display: block !important;
        margin-bottom: 2px !important;
        color: #333 !important;
    }

    .filter-hint-item span {
        display: inline !important;
        color: #666 !important;
    }

    .clear-filters-btn {
        order: 2 !important;
        margin-left: 0 !important;
        margin-top: 0.5rem !important;
        transform: none !important;
        width: auto !important;
        display: inline-flex !important;
        align-self: flex-end !important;
    }
}

/* Request Page Specifics */
.request-page .catalog-main {
    padding-bottom: 5rem;
}

.request-page .catalog-title {
    color: #000;
}

.request-empty-message {
    padding: 3rem;
    text-align: center;
    background: #f9f9f9;
    border-radius: 12px;
}

.request-empty-message a {
    color: var(--color-primary);
    font-weight: 600;
}

.request-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #ff4d4f;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.remove-item-btn:hover {
    transform: scale(1.2);
}

.request-qty-input {
    width: 60px !important;
    text-align: center !important;
}

.action-cell {
    width: 50px;
    text-align: center;
}

.request-page .qty-selector {
    justify-content: center;
}

.request-page .qty-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
}

/* Zayavka Table & Form Styles */
.request-page .catalog-title {
    color: #000 !important;
    /* Force black title */
}

.request-zayavka-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 3rem;
}

.request-zayavka-table th {
    background: #9ab4bd;
    color: #fff;
    text-align: left;
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.request-zayavka-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    color: #333;
    background: #fff;
}

.zayavka-qty-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 4px;
    border-radius: 4px;
}

.action-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.action-btn.remove {
    background: #ff5a00;
    color: #fff;
    font-size: 18px;
}

.action-btn.minus,
.action-btn.plus {
    background: #eef2f5;
    color: #9ab4bd;
}

.action-btn.save {
    background: #FF5A00;
    color: #fff;
}

.request-zayavka-table .qty-input {
    width: 45px;
    height: 28px;
    border: 1px solid #c8d3d9;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    -moz-appearance: textfield;
}

.request-zayavka-table .qty-input::-webkit-outer-spin-button,
.request-zayavka-table .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.request-form-zayavka-wrapper {
    background: #fdfdfd;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-top: 2rem;
}

.request-form-zayavka-wrapper .form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
}

.form-footer-zayavka {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    gap: 2rem;
}

.send-zayavka-btn {
    padding: 12px 40px;
    font-size: 18px;
}

.custom-checkbox-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.consent-text {
    font-size: 0.8125rem;
    color: #9ab4bd;
    line-height: normal;
}

/* Absolute override for request page title */
.request-zayavka-table thead th {
    background: #9ab4bd;
    border: none;
    border-radius: 4px;
}

.request-zayavka-table tbody td {
    border: 1px solid #eee;
    border-radius: 4px;
}

/* Final Polish for Zayavka Page */
.remove-item-action {
    width: 28px;
    height: 28px;
    background: #ff5a00;
    color: #fff;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
    transition: transform 0.2s;
}

.remove-item-action:hover {
    transform: scale(1.1);
    background: #e04e00;
}

.qty-status-icon {
    width: 28px;
    height: 28px;
    background: #fff;
    border: 1px solid #8ed03f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.request-page .packaging-table {
    border-spacing: 0.25rem;
}

.request-page .packaging-table th {
    background: #9ab4bd;
    color: #fff;
    padding: 1rem;
    font-weight: 500;
}

.request-page .packaging-table td {
    padding: 1rem;
}

.request-qty-input {
    width: 50px !important;
    height: 36px !important;
    border: 1px solid #c8d3d9 !important;
    border-radius: 4px !important;
}

/* Standalone form improvements */
.request-form-standalone {
    background: #f4f7f9;
}

.request-form-standalone .btn-orange:hover {
    background: #e04e00;
}

.qty-status-icon {
    background: #8ed03f !important;
    border: none !important;
}

.qty-status-icon svg {
    stroke: #fff !important;
}

/* Absolute override for request page title */
body.page-template-page-request .catalog-main .catalog-header-top .catalog-title,
.request-page .catalog-main .catalog-header-top h1.catalog-title {
    color: #000 !important;
}

/* Style adjustments for Confirmation green button */
.action-btn-save {
    width: 30px;
    height: 30px;
    background: #8ed03f;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.6;
    /* Dim by default */
}

.action-btn-save.pending {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(142, 208, 63, 0.4);
}

.qty-btn-manual {
    width: 30px;
    height: 30px;
    background: #eef2f5;
    color: #9ab4bd;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.request-qty-input-manual {
    width: 50px !important;
    height: 34px !important;
    text-align: center !important;
    border: 1px solid #c8d3d9 !important;
    border-radius: 4px !important;
    margin: 0 4px;
}

.request-page .packaging-table td {
    text-align: center;
}

.request-page .packaging-table th {
    text-align: center;
}

.request-page .qty-selector {
    gap: 10px !important;
}

.request-page .qty-input {
    width: 3.125rem !important;
    /* Match product page exactly */
    height: 2.125rem !important;
}

/* Ensure confirm button is identical to add-to-cart-btn but without extra margin */
.confirm-qty-btn {
    opacity: 0.5;
    background: #8ed03f !important;
    color: #fff !important;
}

.confirm-qty-btn.pending {
    opacity: 1;
    transform: scale(1.1);
}

/* Request Table Footer Styles */
.request-table-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 20px;
    padding: 0 15px;
    transition: all 0.3s ease;
}

.request-table-footer.is-empty {
    margin: 0;
    padding: 0;
    height: 0;
    line-height: 0;
    overflow: hidden;
}

.request-table-footer.is-empty .total-request-summary {
    display: none;
}

.add-more-items {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1rem;
}

.add-more-items .circle-plus {
    background: #8ed03f;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.add-more-items .circle-plus svg {
    display: block;
}

.add-more-items.top-header-btn {
    margin-right: 15px;
    /* Alignment with form corner start */
    margin-top: 5px;
}

.request-form-standalone {
    margin-top: 1.5rem;
    padding: 2rem 3rem 3rem;
    border-radius: 12px;
}

.request-form-title {
    margin-top: 0;
    margin-bottom: 2.5rem;
}

/* Reduced gap specifically when empty */
.request-footer-container.is-empty+.request-form-standalone {
    margin-top: 0.5rem;
}

.add-more-items:hover .circle-plus {
    transform: scale(1.15) rotate(90deg);
}

/* Modern animations for table buttons */
.request-page .qty-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.request-page .qty-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.request-page .qty-btn:active {
    transform: translateY(0) scale(0.95);
    filter: brightness(0.9);
}

/* Specific button pulse for pending confirmation */
@keyframes pulseConfirm {
    0% {
        box-shadow: 0 0 0 0 rgba(142, 208, 63, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(142, 208, 63, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(142, 208, 63, 0);
    }
}

.confirm-qty-btn.pending {
    opacity: 1 !important;
    animation: pulseConfirm 2s infinite;
    transform: scale(1.05);
}

/* Search results title color override */
.search-results .catalog-header-top .catalog-title {
    color: #000 !important;
}

.search-results .catalog-header-top .catalog-title span {
    color: #000 !important;
}

.remove-btn-manual {
    position: relative;
}

.remove-btn-manual:hover {
    background: #ff3d00 !important;
    transform: rotate(90deg) scale(1.1);
}

.total-request-summary {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    white-space: nowrap;
    text-align: right;
}

.total-request-summary #total-request-qty {
    color: #333;
}

/* Search Pagination styling to match breadcrumbs */
.search-results-wrap .pagination {
    padding-top: 2.5rem;
}

.search-results-wrap .pagination .nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.search-results-wrap .pagination .page-numbers {
    font-size: 0.875rem;
    color: #999;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 400;
    line-height: 1;
}

.search-results-wrap .pagination .page-numbers:hover {
    color: #FF5A00;
}

.search-results-wrap .pagination .page-numbers.current {
    color: #FF5A00;
    font-weight: 600;
}

.search-results-wrap .pagination .page-numbers.prev,
.search-results-wrap .pagination .page-numbers.next {
    font-size: 1.25rem;
    line-height: 1;
    margin-top: -2px;
}

/* ==========================================================================
   FINAL MOBILE HEADER & MENU FIXES (Appended to override all duplicates)
   ========================================================================== */
@media (max-width: 1150px) {

    html,
    body {
        overflow-x: hidden !important;
    }

    body.menu-open {
        overflow: hidden !important;
        height: 100vh !important;
    }

    .site-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 10000 !important;
        background: #fff !important;
        padding: 0.75rem 0 !important;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05) !important;
    }

    #page {
        padding-top: 70px !important;
        padding-bottom: calc(64px + env(safe-area-inset-bottom) + 20px) !important;
    }

    .header-inner {
        padding-bottom: 0 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .catalog-header-top {
        display: contents !important;
    }

    .catalog-header-top .catalog-title {
        font-size: 1.75rem !important;
        line-height: 1.1 !important;
        text-align: center !important;
        margin-bottom: 1.5rem !important;
    }

    .category-banner-dynamic {
        order: 1 !important;
        margin-bottom: 2rem !important;
    }

    .catalog-header-top .btn-download {
        order: 2 !important;
        width: max-content !important;
        min-width: 200px !important;
        margin: 0 auto 0 auto !important;
        text-align: center !important;
        font-size: 1rem !important;
        padding: 1rem 3rem !important;
    }

    .header-actions-mobile {
        display: none !important;
    }

    .header-right {
        display: flex !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    .header-contacts {
        display: flex !important;
        flex-direction: column !important;
        text-align: right !important;
        gap: 2px !important;
    }

    .catalog-sidebar {
        display: none !important;
    }

    .catalog-main {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .product-filters-section {
        order: 3 !important;
    }

    .category-groups-wrapper {
        order: 4 !important;
    }

    .catalog-container {
        gap: 0 !important;
    }

    .category-card {
        gap: 0 !important;
    }

    .category-image,
    .category-info {
        margin: 0 !important;
    }

    .category-image img {
        display: block !important;
    }

    .catalog-page-wrapper {
        padding: 0 !important;
    }

    .contact-phone {
        font-size: 14px !important;
        font-weight: 700 !important;
    }

    .contact-email {
        font-size: 12px !important;
    }

    .header-cta {
        display: none !important;
    }

    .header-search {
        display: flex !important;
    }

    .header-search .search-open-btn svg {
        width: 20px !important;
        height: 20px !important;
    }

    .site-branding img {
        width: 140px !important;
    }

    .mobile-menu-dropdown,
    .catalog-drawer {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        bottom: 64px !important;
        top: 60px !important;
        /* Reduced to eliminate gap */
        width: 100% !important;
        height: calc(100dvh - 60px - 64px) !important;
        z-index: 9999 !important;
        background: #fff !important;
        /* Reverted to solid white */
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        visibility: hidden;
        border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
        overflow-y: auto !important;
        opacity: 1 !important;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
    }

    .mobile-menu-dropdown.active,
    .catalog-drawer.active {
        transform: translateY(0) !important;
        visibility: visible !important;
    }

    .bottom-nav-item.menu-toggle .burger-svg path {
        stroke: var(--bottom-nav-orange) !important;
        stroke-width: 2.2px !important;
        /* Slightly thicker to match border weight */
    }
}

/* Force hide mobile elements on desktop */
@media (min-width: 1151px) {

    .mobile-menu-dropdown,
    .catalog-drawer,
    .drawer-overlay,
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* MOBILE BOTTOM NAV & CATALOG DRAWER BASE STYLES */
:root {
    --bottom-nav-orange: #ff5000;
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(64px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    z-index: 10005;
    justify-content: space-evenly;
    align-items: stretch;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

@media (max-width: 1150px) {
    .mobile-bottom-nav {
        display: flex;
    }
}

@media (max-width: 1150px) {
    .bottom-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        color: #333;
        text-decoration: none;
        cursor: pointer;
        flex: 1;
        transition: opacity 0.2s;
        height: 100%;
    }
}

.bottom-nav-icon-wrap {
    height: 32px;
    /* Smaller, standardized height */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 2px;
}

#bottom-catalog-toggle .bottom-nav-icon-wrap {
    background: none !important;
    width: 100%;
}

#bottom-catalog-toggle .bottom-nav-icon-wrap img {
    filter: invert(41%) sepia(97%) saturate(4156%) hue-rotate(1deg) brightness(102%) contrast(106%) !important;
    /* Calibrated for #ff5000 */
    width: 58px !important;
    height: 24px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
}

.bottom-nav-item img {
    max-width: 38px;
    max-height: 38px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.bottom-nav-item span {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    color: #333;
    /* Softer text color */
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
}

.header-request-btn.bottom-nav-item {
    background: none !important;
    /* padding: 8px 0 0 0 !important;
    /* Match other items */
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 0 !important;
    align-items: center !important;
}

.request-circle {
    width: 28px;
    height: 28px;
    background: #fff;
    border: 2px solid var(--bottom-nav-orange);
    /* Thinner border */
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
}

.request-circle .request-count {
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    color: #000 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    transform: none !important;
    opacity: 0;
    /* Hide count if 0 */
    transition: opacity 0.2s;
    pointer-events: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.header-request-btn.has-count .request-count {
    opacity: 1 !important;
}

/* CATALOG DRAWER Specific overrides */
.catalog-drawer .sidebar-search .search-results-dropdown {
    width: calc(100% + 3rem) !important;
    left: -1.5rem !important;
    max-height: calc(100dvh - 220px) !important;
    z-index: 12000 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    position: absolute;
    top: 100%;
    display: none;
    overflow-y: hidden !important;
    /* The list inside will scroll */
    background: #fff !important;
    flex-direction: column !important;
}

.catalog-drawer .sidebar-search .search-results-dropdown.active {
    display: flex !important;
}

.catalog-drawer .drawer-content {
    overflow: visible !important;
    /* CRITICAL: Prevent clipping */
    display: flex;
    flex-direction: column;
    height: auto;
    flex: 1;
}

.catalog-drawer .catalog-nav {
    flex: 1;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    margin-top: 1rem;
    padding-bottom: 20px;
}

/* Ensure drawer itself scrolls if content is too large, but content is flex 1 */
@media (max-width: 1150px) {
    .catalog-drawer {
        display: flex !important;
        flex-direction: column !important;
    }
}

.catalog-drawer .search-form-container {
    position: relative !important;
    z-index: 12001 !important;
}

.catalog-drawer .drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.drawer-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.drawer-close {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #999;
}

.catalog-drawer .drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.catalog-drawer .sidebar-search {
    margin-bottom: 1.5rem;
}

.drawer-overlay {
    position: fixed;
    top: 60px;
    /* Align with drawers */
    left: 0;
    width: 100%;
    height: calc(100dvh - 60px - 64px);
    /* Full space between header and bottom nav */
    background: rgba(0, 0, 0, 0.3);
    z-index: 9998;
    /* Below drawer but above content */
    display: none;
    backdrop-filter: blur(2px);
}

.drawer-overlay.active {
    display: block;
}

/* Mobile fixes for image scaling and accordion distortion */
@media (max-width: 1150px) {
    .subcategory-header {
        gap: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .sub-group-title {
        font-size: clamp(1.35rem, 6.5vw, 2rem) !important;
        white-space: nowrap !important;
        flex: 0 1 auto !important;
        max-width: calc(100% - 100px) !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
    }

    .sub-toggle-btn {
        flex-shrink: 0 !important;
        width: clamp(28px, 8vw, 36px) !important;
        height: clamp(28px, 8vw, 36px) !important;
        background-size: clamp(14px, 4vw, 20px) !important;
    }

    .sub-header-line {
        display: block !important;
        flex: 1 !important;
    }

    .category-card,
    .subcategory-banner {
        flex-direction: column !important;
        height: auto !important;
    }

    .category-image,
    .sub-banner-img {
        height: auto !important;
        width: 100% !important;
        flex: none !important;
        margin: 0 !important;
    }

    .category-image img,
    .sub-banner-img img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
        max-height: none !important;
    }

    /* Hero Slider Mobile Proportional Scaling */
    .hero-section-slider .swiper-slide {
        height: auto !important;
        min-height: 480px !important;
        background-image: none !important;
        background-color: #fff !important;
        padding: 1.5rem 0 3.5rem 0 !important;
        /* Slightly increased for better header breathing room */
        display: flex !important;
        flex-direction: column !important;
        /* Force vertical flow */
        align-items: center !important;
        justify-content: flex-start !important;
        /* Anchored to top for consistent line height */
    }

    .hero-content {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 1.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: left !important;
        margin-top: 0 !important;
        /* Stable top alignment */
    }

    .hero-content br.br-desktop-only {
        display: none !important;
        /* Hide unwanted breaks on mobile with higher specificity */
    }

    .hero-title {
        font-size: clamp(1.4rem, 6vw, 2.5rem) !important;
        margin-bottom: 0 !important;
        /* Minimized gap to image */
        line-height: 1.1 !important;
        width: 100% !important;
        max-width: 800px !important;
        /* Wider for tablets/small laptops */
        text-align: left !important;
        align-self: center !important;
        display: block !important;
    }

    .hero-title span {
        white-space: nowrap !important;
        /* Always keep second line together */
    }

    .hero-description {
        font-size: clamp(1rem, 3.5vw, 1.25rem) !important;
        margin-top: 0 !important;
        /* Added gap to prevent overlap with image */
        margin-bottom: 2rem !important;
        width: 100% !important;
        max-width: 800px !important;
        /* Wider for tablets/small laptops */
        line-height: 1.5 !important;
        text-align: left !important;
        align-self: center !important;
        display: block !important;
    }

    .hero-content br {
        display: inline !important;
        /* Keep mandatory breaks visible */
    }

    .hero-image-mobile {
        display: block !important;
        width: calc(100% + 3rem) !important;
        height: auto !important;
        /* Scale naturally */
        aspect-ratio: 800 / 550 !important;
        /* Original image ratio prevents side cropping */
        margin: 0.5rem -1.5rem 0.75rem -1.5rem !important;
        /* Span full screen width and reduce vertical gap */
        overflow: hidden !important;
        border-radius: 0 !important;
        /* Full bleed typically has no radius */
    }

    .hero-image-mobile img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        /* This makes the image fill the vertical space */
        object-position: center !important;
        display: block !important;
        max-width: none !important;
        margin: 0 !important;
    }

    /* Keep compact look only for true mobile phones */
    @media (max-width: 480px) {

        .hero-title,
        .hero-description {
            max-width: 350px !important;
        }
    }

    .hero-btn {
        padding: 14px 32px !important;
        font-size: 1.125rem !important;
        min-height: auto !important;
        align-self: center !important;
        /* Button Centered */
        width: fit-content !important;
    }

    .hero-pagination-container {
        display: none !important;
    }

    /* Reduce gray separator size on mobile */
    .section-separator {
        height: 1.25rem !important;
    }

    /* Reduce gray separator size on mobile */
    .section-separator {
        height: 1.25rem !important;
    }

    /* Bento Grid Mobile Stack - Concise & Centered UX */
    .bento-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        margin-top: 1.5rem !important;
    }

    .grid-right-column {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 1.5rem !important;
    }

    .grid-card {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 4 / 3 !important;
        /* Proportional identical to 429px */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        border-radius: 1.25rem !important;
        overflow: hidden !important;
        position: relative !important;
    }

    /* Video Block (Card 1) Scaled perfectly proportionally */
    .card-1 {
        min-height: 0 !important;
        aspect-ratio: 4 / 7 !important;
        /* Exact proportion of 400x700 from mobile view */
        justify-content: flex-end !important;
    }

    .card-video-container,
    #video-wrapper,
    #video-wrapper video {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        z-index: 1 !important;
    }

    .info-plate-orange {
        width: 100% !important;
        min-height: auto !important;
        padding: 1.5rem !important;
        background: var(--color-primary) !important;
        border-radius: 0 !important;
        position: relative !important;
        z-index: 5 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .info-plate-content {
        text-align: center !important;
        font-size: 1rem !important;
        line-height: 1.4 !important;
        font-weight: 500 !important;
        color: #fff !important;
    }

    /* Card 5 - Centered Slider (Преимущества) - Balanced Height */
    .card-5 {
        background-color: #9ab4bd !important;
        min-height: 0 !important;
    }

    .card-5 .swiper-slide {
        padding: 2.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .card-5 .slide-content {
        text-align: center !important;
    }

    .card-5 .slide-title {
        font-size: clamp(2rem, 9vw, 3.2rem) !important;
        margin-bottom: 0.5rem !important;
        line-height: 1 !important;
        font-weight: 800 !important;
    }

    .card-5 .slide-text {
        font-size: clamp(1rem, 4vw, 1.4rem) !important;
        line-height: 1.2 !important;
    }

    .card-4 {
        padding: 2.5rem 1.5rem !important;
        aspect-ratio: auto !important;
        height: auto !important;
    }

    .stats-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* Fix for Plus sign next to numbers */
    .stat-item strong {
        display: inline-block !important;
        font-size: 3rem !important;
        vertical-align: middle !important;
    }

    /* Lock scroll when modal is active */
    body.modal-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* Feedback Modal Mobile Improvements */
    .modal {
        padding: calc(110px + env(safe-area-inset-top)) 10px calc(90px + env(safe-area-inset-bottom)) !important;
        /* Larger gaps to keep menus visible and untouched */
        display: none;
        align-items: center !important;
        z-index: 2500 !important;
        /* Below menus but above content */
        background-color: rgba(0, 0, 0, 0.4) !important;
    }

    .modal-content {
        max-height: calc(100vh - 220px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
        /* Strictly limit height to the gap between buttons */
        width: 100% !important;
        margin: 0 !important;
        border-radius: 1.25rem !important;
        box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2) !important;
    }

    .modal-body {
        padding: 1.5rem 1rem !important;
        /* Tighter padding on mobile */
    }

    .modal-title {
        font-size: 1.35rem !important;
        margin-bottom: 1.5rem !important;
    }

    .form-group label {
        font-size: 0.75rem !important;
    }

    .form-group input,
    .form-group textarea,
    .custom-dropdown-selected {
        font-size: 1rem !important;
        /* Standard font size to prevent iOS zoom */
        padding: 12px !important;
        height: auto !important;
    }

    .custom-dropdown-selected {
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
    }

    .custom-select-wrapper::after {
        width: 3rem !important;
    }

    .consent-wrapper {
        display: flex !important;
        align-items: flex-start !important;
        gap: 10px !important;
        margin-bottom: 1.5rem !important;
    }

    .consent-wrapper input[type="checkbox"] {
        width: 20px !important;
        height: 20px !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }

    .consent-wrapper label {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
        cursor: pointer !important;
    }

    .btn.btn-orange {
        width: 100% !important;
        /* Full width button on mobile */
        padding: 1rem !important;
        font-size: 1.1rem !important;
        height: auto !important;
    }

    .modal-close {
        top: 0.5rem !important;
        right: 0.75rem !important;
        font-size: 2.5rem !important;
        /* Larger touch area */
        line-height: 1 !important;
    }

    /* Packaging Table to Blocks transformation */
    .packaging-table-wrapper {
        overflow-x: hidden !important;
        padding: 0 !important;
        margin-top: 1.5rem !important;
    }

    .packaging-table,
    .packaging-table thead,
    .packaging-table tbody,
    .packaging-table th,
    .packaging-table td,
    .packaging-table tr {
        display: block !important;
        width: 100% !important;
    }

    .packaging-table thead {
        display: none !important;
    }

    .packaging-table tr {
        background: #fff !important;
        border: 1px solid #eef2f4 !important;
        border-radius: 1.25rem !important;
        margin-bottom: 1.5rem !important;
        padding: 1.25rem !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    }

    .packaging-table td {
        display: block !important;
        position: relative !important;
        padding: 12px 0 12px 155px !important;
        /* More space for labels */
        min-height: 48px !important;
        border: none !important;
        border-bottom: 1px solid #f5f8fa !important;
        text-align: right !important;
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        color: #333 !important;
        word-break: break-word !important;
        /* Force wrapping */
        white-space: normal !important;
    }

    .packaging-table td:before {
        content: attr(data-label) !important;
        position: absolute !important;
        left: 0 !important;
        top: 12px !important;
        width: 145px !important;
        /* Wide enough for 'Добавить в заявку' */
        text-align: left !important;
        font-weight: 700 !important;
        color: #333 !important;
        font-size: 0.85rem !important;
        white-space: normal !important;
        /* Allow labels to wrap if still too long */
        line-height: 1.2 !important;
    }

    /* Specifically center the request row vertically */
    .packaging-table td[data-label="Добавить в заявку"],
    .packaging-table td[data-label="Заявка"] {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 0 12px 0 !important;
        border-bottom: none !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
    }

    .packaging-table td[data-label="Добавить в заявку"]:before,
    .packaging-table td[data-label="Заявка"]:before {
        position: static !important;
        flex: 1 0 100px !important;
        width: auto !important;
        top: auto !important;
        margin-right: 15px !important;
        padding-right: 5px !important;
    }

    .packaging-table td[data-label="Добавить в заявку"] .qty-selector {
        flex: 0 0 auto !important;
        gap: 8px !important;
        justify-content: flex-end !important;
    }

    /* Target the text nodes and containers to ensure they wrap on the right */
    .packaging-table td {
        word-break: break-word !important;
        white-space: normal !important;
    }

    .qty-selector {
        width: auto !important;
        display: inline-flex !important;
        /* Changed to inline-flex to stay right */
        gap: 6px !important;
        align-items: center !important;
        justify-content: flex-end !important;
        vertical-align: middle !important;
    }

    .qty-input {
        width: 44px !important;
        height: 36px !important;
        margin: 0 !important;
        text-align: center !important;
        flex: none !important;
        border-radius: 6px !important;
        font-size: 0.9rem !important;
        padding: 0 !important;
    }

    .qty-btn {
        width: 36px !important;
        height: 36px !important;
        flex-shrink: 0 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.1rem !important;
    }

    .add-to-cart-btn {
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        flex: none !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-left: 4px !important;
        padding: 0 !important;
    }

    .add-to-cart-btn svg {
        width: 20px !important;
        height: 20px !important;
    }

    /* Request Form Mobile Adaptation */
    .request-page .request-form-standalone {
        padding: 1.5rem !important;
    }

    .request-page .form-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .request-page .form-group {
        grid-column: span 1 !important;
    }

    .request-page .form-group.empty-desktop-placeholder {
        display: none !important;
    }

    .request-page .form-footer {
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: stretch !important;
    }

    .request-page .btn.btn-orange {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* =======================================================
   Image Preloader — спиннер поверх картинки
   Белый фон, dual-ring спиннер, современный вид.
   ======================================================= */

/* Обёртка — занимает точно то же место что и img */
.media-loading-wrap {
    position: relative;
    display: block;
    /* ВАЖНО: не inline-block — иначе не заполняет родителя */
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #f2f2f2;
    line-height: 0;
}

/* Белый frosted-glass оверлей */
.media-loading-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* Картинка: скрыта до загрузки */
.media-loading-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
    z-index: 1;
}

/* Когда загружено — убираем оверлей, показываем картинку */
.media-loading-wrap.media-loaded::before {
    opacity: 0;
    pointer-events: none;
}

.media-loading-wrap.media-loaded img {
    opacity: 1;
}

/* ---------------------------------
   Dual-ring спиннер (.mlw-spinner)
   Центрируется абсолютно поверх wrap
   --------------------------------- */
.mlw-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    z-index: 3;
    pointer-events: none;
    /* Плавно исчезает при загрузке */
    opacity: 1;
    transition: opacity 0.35s ease;
}

/* Внешнее кольцо */
.mlw-spinner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.08);
    border-top-color: var(--color-primary, #e43019);
    animation: mlw-spin-outer 0.9s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

/* Внутреннее кольцо (меньше, в другую сторону) */
.mlw-spinner::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-bottom-color: rgba(228, 48, 25, 0.45);
    animation: mlw-spin-inner 1.3s linear infinite reverse;
}

/* Скрываем спиннер когда загружено */
.media-loading-wrap.media-loaded .mlw-spinner {
    opacity: 0;
}

@keyframes mlw-spin-outer {
    to {
        transform: rotate(360deg);
    }
}

@keyframes mlw-spin-inner {
    to {
        transform: rotate(360deg);
    }
}


button-catalog {
    display: block;
    width: fit-content; 
    margin-left: auto;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    border: none;
    cursor: pointer;
    line-height: 1.2;
    background: #ffffff;
    color: var(--color-primary);
}


