form[name='FOOTER_FORM'] > p .notetext {
    display: block;
    text-align: center;
    padding-top: 16px;
    color: #000;
}
.slider-pr {
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 125px;
    /* Чтобы во время перетаскивания слайда ничего не выделить внутри него */
    user-select: none;
    /* Чтобы запретить скролл страницы, если мы начали двигать слайдер по оси X */
    touch-action: pan-y;
}

/* Если где-то внутри слайдера будут изображения,
то нужно задать им pointer-events: none,
чтобы они не перетаскивались мышью */

.slider-pr__ img {
    poiner-events: none;
}

.slider-pr__list {
    width: 100%;
    height: 125px;
    overflow: hidden;
}

.slider-pr__list.grab {
    cursor: grab;
}

.slider-pr__list.grabbing{
    cursor: grabbing;
}

.slider-pr__track {
    display: flex;
}

.slider-pr__slide {
    width: 100%;
    height: 125px;
    /* Чтобы слайды не сжимались */
    flex-shrink: 0;
}

.slider-pr__arrows {
    margin-top: 15px;
    text-align: center;
}

.next,
.prev {
    background: none;
    border: none;
    margin: 0 10px;
    font-size: 30px;
    cursor: pointer;
}

.next.disabled,
.prev.disabled {
    opacity: .25;
    pointer-events: none;
}

.title-h2 {
    text-align: center;
    margin-bottom: 25px;
}

@media screen and (max-width: 768px) {
    .product__image-slider-overlay {
        display: none;
    }
    .slider-pr {
        visibility: visible;
        z-index: 33;
    }
    .product__image-slider-overlay-dots {
        z-index: 34;
    }
}

.block-errors {
    padding: 10px;
    text-align: center;
    color: red;
}
.sucsess-text {
    font-weight: 800;
    font-size: 18px;
}
/*.content-box {
    box-sizing: content-box;
}*/
.btn-style-1 {
    display: inline-block;
    border-radius: 5px;
    width: 202px;
    height: 40px;
    background: #404040;

    font-weight: 700;
    font-size: 15px;
    line-height: 40px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-align: center;
    color: #ffffff;
    border: 0;
}
.btn-style-2 {
    display: inline-block;
    border-radius: 5px;
    width: 202px;
    height: 40px;
    background: #f2e2d3;

    font-weight: 700;
    font-size: 15px;
    line-height: 40px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-align: center;
    color: #404040;
    border: 0;
}
.section-title {
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 36px;
    color: #404040;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.64px;
}
.tooltip-success-copy {
    display: none;
    color: green;
    text-align: center;
    margin-top: 20px;
}
@media (max-width: 500px) {
    .section-title {
        font-size: 22px;
        margin-bottom: 25px;
    }
}

/* портфолио */
.portfolio {
    padding: 0 15px;
    margin-bottom: 80px;
}
.portfolio__wrap {
    position: relative;
    display: flex;
    gap: 20px;
}
.portfolio-nav {
    width: 100%;
    text-align: center;
}
.portfolio-nav .navigation-wrap {
    display: inline-block;
}
.portfolio-nav .load_more {
    display: block;
    margin: 30px auto 50px;
}
.popup-portfolio {
    position: relative;
    max-width: 1180px;
    border-radius: 10px;
    border-bottom: 4px solid #FFF;
    box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.10);
}
.popup-portfolio .close-modal {
    display: none !important;
}
.popup-portfolio .close-modal-custom {
    background-color: #fff;
}
@media (max-width: 768px) {
    .popup-portfolio.modal {
        width: 100%;
        padding: 15px;
    }
    .portfolio__wrap {
        gap: 10px;
    }
}
@media (max-width: 630px) {
    .portfolio__wrap {
        flex-direction: column;
        gap: 30px;
    }
}
/* форма расчитать */
.form-calc {
}
.form-calc__title {
    color: #404040;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.56px;
    text-transform: uppercase;
    margin-bottom: 23px;
}
.form-calc__fields {
}
.form-calc__field {
}
.form-calc__field textarea {
    height: 101px;
    border-radius: 5px;
    background: #F7F7F7;
    color: #808080;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 110% /* 15.4px */;
    letter-spacing: 0.49px;
    resize: none;
    padding-top: 12px;
}
.form-calc__attach {
    margin-bottom: 20px;
}
.form-calc__attach-txt {
    color: #404040;
    font-size: 14px;
    font-weight: 600;
    line-height: 110% /* 15.4px */;
    letter-spacing: 0.49px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #404040;
    margin-bottom: 15px;
}
.form-calc__agree {
}
.form-calc__submit {

}
.bages {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    position: absolute;
    z-index: 10;
    top: 10px;
    left: 10px;
    width: 80%;
}
.bages-item {
    display: inline-block;
    padding: 7px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    line-height: 1;
}


.share-web {
    display: inline-block;
    width: 26px;
    height: 29px;
    background-image: url('/img/share-web.svg');
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: background .3s;
}
.pair-fixed .share-web {
    background-image: url('/img/share-soc-def.svg');
}
.share-web:hover {
    background-image: url('/img/share-web-hover.svg');
}

.share-web.active {
    background-image: url('/img/share-web-active.svg');
}
.pair-fixed .share-web:hover,
.pair-fixed .share-web.active {
    background-image: url('/img/share-soc-active.svg');
}

.share-buttons {
    position: absolute;
    top: 84px;
    right: 0;
    opacity: 0;
    z-index: 100;
    padding: 27px;
    border-radius: 10px;
    border: 1px solid #E2E2E2;
    background: #F7F7F7;
    box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.15);
    pointer-events: none;
    transition: opacity .3s, top .3s;
}
.share-buttons-v2 {
    top: 50px;
}
.share-buttons.show {
    top: 64px;
    opacity: 1;
    pointer-events: all;
}
.share-buttons .share-btn {
    display: flex;
    align-items: center;
    gap: 7px;
}
.share-buttons .share-btn + .share-btn {
    margin-top: 11px;
}

.share-buttons .share-btn:hover span {
    color: #8C6942;
}

.share-buttons .share-btn:hover svg {
    color: #8C6942;
}

.share-buttons svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #404040;
    transition: color .3s;
}
.share-buttons span {
    color: var(--Dark-Gray, #404040);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.15px;
    transition: color .3s;
}

.icon-message-modal {
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    margin-left: auto;
    cursor: pointer;
    margin-right: 15px;
}

.icon-message-modal:after {
    content: '';
    display: block;
    background: url('/img/info.svg') no-repeat;
    width: 100%;
    height: 100%;
    transition: background .3s;
}

.icon-message-modal:hover:after {
    background: url('/img/info-hover.svg') no-repeat;
}

.icon-message-modal.active:after {
    background: url('/img/info-active.svg') no-repeat;
}

.info-modal {
    position: absolute;
    z-index: 100;
    bottom: calc(100% + 40px);
    right: -8px;
    width: 274px;
    padding: 26px;
    opacity: 0;
    pointer-events: none;

    border-radius: 10px;
    border: 1px solid #E2E2E2;
    background: #F7F7F7;
    box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.15);
    transition: opacity .3s, bottom .3s;
}

.info-modal.show {
    opacity: 1;
    bottom: calc(100% + 10px);
    pointer-events: all;
}

.info-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: block;
    width: 13px;
    height: 13px;
    background: url('/img/close.svg') no-repeat;
    background-size: cover;
    cursor: pointer;
    transition: filter .3s;
}

.info-modal__close:hover {
    filter: brightness(0.5);
}

.info-modal__text {
    color: var(--Dark-Gray, #404040);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    margin-bottom: 0;
}

.info-modal__link {
    color: var(--Dark-Gray, #404040);
    font-weight: 700;
    text-decoration: underline;
}

@media screen and (max-width: 480px) {
    .share-buttons.show {
        top: 52px;
    }
    .info-modal {
        right: 0;
    }
}
.fancybox-image {
    border-radius: 15px;
}

/* Блок портфолио в карточке товара */
 .portfolio-related {
     max-width: 1400px;
     margin: 0 auto;
     padding: 44px;
     background-color: #F6F6F6;
     border-radius: 10px;
     box-sizing: border-box;
 }

/* Заголовок */
.portfolio-related__title {
    color: var(--Dark-Gray, #404040);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1.12px;
    margin: 0 0 20px;
}

/* Основная сетка: две колонки с gap 28px */
.portfolio-related__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* 50% / 50% */
    gap: 28px;
    margin-bottom: 20px;
}

/* Левая часть: одна картинка */
.portfolio-related__main {

}

.portfolio-related__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Правая часть: сетка 2×2 */
.portfolio-related__secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

/* Элемент карточки (для единообразия) */
.portfolio-related__main,
.portfolio-related__item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow  0.2s ease;
}

.portfolio-related__main a,
.portfolio-related__item a{
    display: block;
}

.portfolio-related__item:hover {
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

/* Изображение внутри карточки */
.portfolio-related__item-img {
    display: block;
    width: 100%;
    height: 100%;  /* квадрат 1:1 */
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-related__main:hover .portfolio-related__image,
.portfolio-related__item:hover .portfolio-related__item-img {
    transform: scale(1.05);
}

/* Адаптивность: на планшетах и мобильных сетка становится в колонку */
@media (max-width: 768px) {
    .portfolio-related {
        margin-top: 25px;
        padding: 24px;
    }
    .portfolio-related__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .portfolio-related__secondary {
        gap: 28px;
    }
    .portfolio-related__title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
}

/* Для очень маленьких экранов правую сетку можно сделать в одну колонку */
@media (max-width: 480px) {
    .portfolio-related__secondary {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
