.main-slider__content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    color: #fff;
    /* Remove padding here, we will apply it to the text-box */
}

.main-slider__text-box {
    margin-left: 10vw; /* Увеличенный отступ от левого края (примерно в 2 раза от стандарта) */
    width: 33.333vw;   /* 1/3 ширины экрана/баннера */
    box-sizing: border-box;
    padding-top: 40px;
    padding-bottom: 40px;
}

.main-slider__title {
    font-size: 70px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .3px !important;
    line-height: 1.1 !important;
    margin: 0 0 20px 0;
    color: #fff !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.main-slider__anons {
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    margin: 0;
    color: #fff !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .main-slider__text-box {
        margin-left: 0;
        width: 100%;
        padding: 20px 15px; /* Отступы для мобильной версии по краям */
    }
    
    .main-slider__title {
        font-size: 32px !important;
        margin-bottom: 10px;
    }
    
    .main-slider__anons {
        font-size: 16px !important;
    }
}

/* Universal Typography override from pmcgroup.shop */
body {
    font-size: 20px !important;
    line-height: 1.6 !important;
    color: #252424 !important;
    background: #f5f3ee !important;
}

/* Force Raleway on all elements EXCEPT icons and logo */
*:not(i):not([class*="icon"]):not(.fa):not(.fas):not(.slick-arrow):not(.slick-dots):not(.logo__text) {
    font-family: 'Raleway', sans-serif !important;
}

.logo__text {
    font-family: 'Montserrat', sans-serif !important;
}

h1, .h1 {
    font-size: 46px !important;
    text-transform: uppercase !important;
    letter-spacing: .6px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
}

h2, .h2 {
    font-size: 46px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}

h3, .h3 {
    font-size: 32px !important;
    font-weight: 600 !important;
}

@media (max-width: 768px) {
    h1, .h1 { font-size: 33px !important; }
    h2, .h2 { font-size: 28px !important; }
    h3, .h3 { font-size: 24px !important; }
    body { font-size: 16px !important; }
    .logo__text { font-size: 18px !important; }
}

/* Header Integration */
.header {
    position: fixed !important;
    z-index: 100 !important;
    left: 0;
    right: 0;
    top: 0;
    background: #f5f3ee !important;
    transition: 0.3s;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.header.header-mainpage {
    background: transparent !important;
    box-shadow: none !important;
}

/* Ensure child elements are transparent on top, and match body when scrolled */
.header.header-mainpage .header__main,
.header.header-mainpage .header__nav,
.header.header-mainpage .catalog-nav {
    background: transparent !important;
    border: none !important;
}

.header:not(.header-mainpage) .header__main,
.header:not(.header-mainpage) .header__nav,
.header:not(.header-mainpage) .catalog-nav {
    background: #f5f3ee !important;
}

.header.header-mainpage::before {
    content: '';
    display: block;
    position: absolute;
    z-index: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

/* Prevent padding-top on body/wrapper from pushing slider down on main page */
.is-main-page, 
.is-main-page .wrapper, 
.is-main-page .content-wrapper, 
.is-main-page .page-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.main-slider {
    margin-top: 0 !important;
}

/* Match pmcgroup.shop slider height (100vh) */
.main-slider__slide {
    height: 100vh !important;
    display: flex !important;
    align-items: center;
}

.main-slider__slide > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 0;
}

/* Text color changes on scroll */
.header.header-mainpage .logo__text {
    color: #fff !important;
}

.header:not(.header-mainpage) .logo__text {
    color: #252424 !important;
}

.header.header-mainpage .header__nav-menu>ul>li>a,
.header.header-mainpage .tel,
.header.header-mainpage .city-selector,
.header.header-mainpage .btn-cat-toggle,
.header.header-mainpage .user-nav {
    color: #fff !important;
}

.header:not(.header-mainpage) .header__nav-menu>ul>li>a,
.header:not(.header-mainpage) .tel,
.header:not(.header-mainpage) .city-selector,
.header:not(.header-mainpage) .btn-cat-toggle,
.header:not(.header-mainpage) .user-nav {
    color: #252424 !important;
}

/* Some icons/buttons may need color updates on scroll too, similar to pmcgroup */
.header:not(.header-mainpage) .btn-search-open,
.header:not(.header-mainpage) .btn-nav-open i,
.header:not(.header-mainpage) .user-nav img,
.header:not(.header-mainpage) .user-nav svg,
.header:not(.header-mainpage) .user-nav i,
.header:not(.header-mainpage) .tel::before {
    filter: invert(100%);
}

/* Features Blocks */
.mainpage-about__feats-item-body {
    background: #fff !important;
}

.mainpage-about__feats-item p {
    color: #252424 !important;
}

/* Hover effect for the new cart icon in catalog */
.btn_cart-icon {
    transition: color 0.3s ease;
}
.btn_cart-icon:hover {
    color: #e06520 !important;
}

/* Make product cards transparent to blend with the site background like pmcgroup.shop */
.item.item-tile,
.item.item-tile .item__wrapper,
.item.item-tile .item__main {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Pagination (Pager) Styles */
.pager li.active a, 
.pager li.active span {
    background-color: #e06520 !important;
    border-color: #e06520 !important;
    color: #fff !important;
}

.pager li a:hover {
    background-color: #e06520 !important;
    border-color: #e06520 !important;
    color: #fff !important;
}

/* White backgrounds for product details (selects and characteristics table) */
.product-incart-form select.form-control,
.modal-product__item-property select.form-control,
.form-group select.form-control,
.table-product-chars,
.table-product-chars tr,
.table-product-chars td,
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #ffffff !important;
}

/* About Page (o-brende / proizvodstvo) Light Theme Override */
.about-page {
    background: transparent !important;
    color: #252424 !important;
}

.about-page h2:not(.main-slider__title) {
    color: #252424 !important;
    font-size: 38px !important;
    font-weight: 600 !important;
    margin-bottom: 20px;
}

.about-page p:not(.main-slider__anons) {
    color: #252424 !important;
    font-size: 18px;
    line-height: 1.6;
}

.about-page strong {
    color: #252424;
}

.about-page .orange {
    color: #e06520 !important;
    font-weight: 700;
}

/* Hero Banner */
.about-page__intro {
    background: url('/img/about/about-intro.jpg') no-repeat center center / cover !important;
    position: relative;
    text-align: center;
    padding-bottom: 60px;
    padding-top: calc(100vh - 140px);
}

.about-page__intro::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.about-page__intro-text {
    position: relative;
    z-index: 2;
    max-width: 1050px;
    padding: 0 15px;
    margin: 0 auto;
}

.about-page__intro-text h1 {
    color: #ffffff !important;
    margin-bottom: 25px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.about-page__intro-text p {
    color: #ffffff !important;
    font-size: 22px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* Features Block */
.about-page__feats .mainpage-about__feats-item-body {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border-radius: 4px;
    padding: 30px;
}

.about-page__feats .mainpage-about__feats-item-title {
    color: #252424 !important;
    font-size: 28px !important;
}

.about-page__feats .mainpage-about__feats-item-title strong {
    color: #e06520 !important;
    font-size: 64px !important;
    font-weight: 800;
}

.about-page__feats .mainpage-about__feats-item p {
    color: #555555 !important;
    font-size: 16px;
}

/* Cards with Images */
.about-cat-img {
    position: relative;
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.about-cat-img p {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Dealer Request Form */
.about-page .dealer-form {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    padding: 40px;
    margin-top: 30px;
}

.about-page .dealer-form h2 {
    color: #252424 !important;
    margin-bottom: 25px;
}

.about-page .dealer-form h3 {
    color: #252424 !important;
}

.about-page .dealer-form .checkbox > label {
    color: #555555 !important;
    font-size: 14px;
}

.about-page .dealer-form .dealer-form__notice {
    color: #e06520 !important;
}

@media (max-width: 768px) {
    .about-page__intro {
        padding-top: 150px;
        padding-bottom: 40px;
    }
    .about-page h2:not(.main-slider__title) {
        font-size: 26px !important;
    }
    .about-page__intro-text p {
        font-size: 18px;
    }
    .about-page .dealer-form {
        padding: 20px;
    }
}

/* About Slider under Header (Matches Homepage) */
.about-page.has-slider {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.about-page.has-slider .about-slider {
    margin-top: 0 !important;
    margin-bottom: 40px;
    position: relative;
}

.about-page.has-slider .about-slider .main-slider__slide {
    height: 100vh !important;
    display: flex !important;
    align-items: center;
}

.about-page.has-slider .about-slider .main-slider__slide > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 0;
}

.about-page .main-slider__title {
    font-size: 70px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .3px !important;
    line-height: 1.1 !important;
    margin: 0 0 20px 0 !important;
    color: #ffffff !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6) !important;
    font-family: 'Raleway', sans-serif !important;
}

.about-page .main-slider__anons {
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    color: #ffffff !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6) !important;
    font-family: 'Raleway', sans-serif !important;
}

@media (max-width: 768px) {
    .about-page .main-slider__text-box {
        margin-left: 0;
        width: 100%;
        padding: 20px 15px;
    }
    
    .about-page .main-slider__title {
        font-size: 32px !important;
        margin-bottom: 10px !important;
    }
    
    .about-page .main-slider__anons {
        font-size: 16px !important;
    }
}

/* ==========================================================================
   Bento Modern Gallery (About / Производство)
   ========================================================================== */
.about-gallery-section {
    margin-top: 50px;
    margin-bottom: 50px;
}

.about-gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.about-gallery-header h2 {
    font-size: 42px !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
    color: #252424 !important;
}

.about-gallery-subtitle {
    font-size: 20px;
    color: #666666 !important;
    margin: 0 auto;
    max-width: 700px;
}

.bento-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 270px;
    gap: 18px;
}

.bento-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    display: block;
    cursor: pointer;
    background: #1e1e1e;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Bento Rhythmic Spans for 10 items (Zero gaps, perfectly filled 4x4) */
.bento-item--0 {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item--1 {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-item--2 {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-item--3 {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-item--4 {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-item--5 {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-item--6 {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-item--7 {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-item--8 {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-item--9 {
    grid-column: span 1;
    grid-row: span 1;
}

/* Hover Effects */
.bento-item:hover img {
    transform: scale(1.04);
}

.bento-item__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.bento-item:hover .bento-item__overlay {
    opacity: 1;
}

.bento-item__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    color: #252424;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bento-item:hover .bento-item__icon {
    transform: scale(1);
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 230px;
        gap: 14px;
    }
    .bento-item--0 {
        grid-column: span 2;
        grid-row: span 2;
    }
    .bento-item--3,
    .bento-item--6,
    .bento-item--7 {
        grid-column: span 2;
        grid-row: span 1;
    }
    .bento-item--1,
    .bento-item--2,
    .bento-item--4,
    .bento-item--5,
    .bento-item--8,
    .bento-item--9 {
        grid-column: span 1;
        grid-row: span 1;
    }
    .about-gallery-header h2 {
        font-size: 32px !important;
    }
    .about-gallery-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .bento-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
        gap: 12px;
    }
    .bento-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}





/* Side Menu Capture Forms */
.side-menu-capture {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

/* Header Contacts overriding */
.header__contacts {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    width: 100%;
    padding-right: 25px;
}
.header__contacts .city-selector {
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.8;
}
.header__contacts .city-selector i {
    margin-right: 5px;
}
.header__contacts-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.header__contacts .callback-link {
    font-size: 13px !important;
    color: #e06520 !important;
    text-decoration: underline !important;
    margin-top: 2px !important;
    margin-left: 0 !important;
    display: inline-block !important;
}

@media (max-width: 991px) {
    .header__contacts {
        padding-right: 0;
        justify-content: flex-start;
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }
    .header__contacts-right {
        align-items: flex-start;
    }
    .header__contacts .callback-link {
        margin-top: -15px !important;
        margin-bottom: 25px !important;
    }
}

.side-menu-capture .item-capture {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Stick icon to the right */
    background-color: #e06520;
    color: #fff;
    text-decoration: none;
    height: 50px;
    width: 50px;
    border-radius: 5px 0 0 5px;
    overflow: hidden;
    transition: width 0.3s ease, background-color 0.2s ease;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.1);
}

.side-menu-capture .item-capture:hover {
    width: 220px;
    background-color: #c4571c;
    color: #fff;
}

.side-menu-capture .item-capture .icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-menu-capture .item-capture .icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.side-menu-capture .item-capture .capture-text {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding-left: 20px;
    margin-right: auto;
}

.side-menu-capture .item-capture:hover .capture-text {
    opacity: 1;
}

@media (max-width: 768px) {
    .side-menu-capture .item-capture:hover {
        width: 50px;
    }
    .side-menu-capture .item-capture .capture-text {
        display: none;
    }
}
