/*NOTE: This file is intended for programmers. Aspro technical support is not advised to work with him.*/

/* Examples (uncomment to use):*/

/* Expand site width */

/* body .wrapper { max-width: 1400px !important;  } */

/* Set site background image */

/* body {  background: url(image_source) top no-repeat; }

/* Hide compare button */

/* a.compare_item { display: none !important;  }*/

/**
окно ввода количества товара на детальной
где есть разные единицы измерения
 */
.counter_block_inner .measure-block {
    user-select: none;
}
.counter_block_inner .measure-block input {
    pointer-events: none;
    user-select: none;
}

.inline-block {
    display: inline-block;
}
.item-stock .value {
    color: #2d2d2d;
}
.item-stock .icon {
    background-color: #2d2d2d;
}
.font-small {
    font-size: 0.867em;
}

.additional_price {
    font-weight: 700;
    font-size: 0.867em;
    color: #777;
    margin: 0 3px;
}

.adaptive-video {
    position: relative;
}

.adaptive-video iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.image-container-contain,
.image-container {
    width: 100%;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-container-contain img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-gap: 25px;
    margin: 40px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-gap: 20px;
    margin: 40px 0;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-gap: 20px;
    margin: 40px 0;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-gap: 15px;
    margin: 40px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-gap: 20px;
}

.gallery-grid a {
    display: block;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-grid img.contain {
    object-fit: contain;
}

.snippet__text-image img {
    float: right;
    max-width: 50%;
    padding: 0 0 20px 20px;
}

.snippet__image-text img {
    float: left;
    max-width: 50%;
    padding: 0 20px 20px 0;
}

.snippet__text-image::after,
.snippet__image-text::after {
    content: '';
    display: block;
    clear: both;
}

.section-gallery-item {
    height: 500px;
    width: 100%;
    display: block;
}

.section-gallery-item img {
    height: 100%;
    width: 100% !important;
    object-fit: contain;
    padding: 20px 0;
}

.section-gallery-item::before {
    content: '';
    background-image: url(/images/icons/magnifier.svg);
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    width: 100px;
    height: 100px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.section-gallery-item:hover::before {
    opacity: 0.4;
}

.owl-section-thumbs {
    display: flex;
}

.owl-section-thumbs .section-gallery-thumb-item {
    height: 150px;
    /*width: 25%;*/
    /* ширина задается инлайново в шаблоне вывода */
    box-shadow: 3px 3px 15px rgba(30 30 30 / .2);
}

.owl-section-thumbs .section-gallery-thumb-item:not(:last-child) {
    margin-right: 15px;
}

.owl-section-thumbs .section-gallery-thumb-item.active {
    position: relative;
}

.owl-section-thumbs .section-gallery-thumb-item.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background-color: var(--theme-base-color);
}

.section-gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.owl-carousel.bordered {
    margin-bottom: 30px;
    box-shadow: 3px 3px 15px rgba(30 30 30 / .1);
}

.top_big_banners .item .item_inner .text .section {
    opacity: 1;
}

/* В шапке в разделе каталога всегда темный телефон, вне зависимости от настроек раздела */

body .has-secion-banner.light-menu-color header .logo_and_menu-row:not(.logo_top_white) .phone > a {
    color: #222;
}

/* Всегда темная иконка телефона там же */

body .has-secion-banner.light-menu-color header .logo_and_menu-row:not(.logo_top_white) .logo-row .svg:not(.svg-inline-search2):not(.light-ignore) svg use {
    fill: #333;
}

/* Слегка опускаем фоновый баннер в разделе каталога */

.section-banner-top__picture {
    top: -63px;
}

.promotion-section {
    position: relative;
    margin-bottom: 90px;
}

.promotion-section__header {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #257de3;
    padding: 15px 65px;
    transform: skew(-10deg);
    border-radius: 5px;
    display: inline-block;
    z-index: 2;
    box-shadow: 5px 5px 20px rgb(0 0 0 / 0.2);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 22px;
}

.promotion-section__content {
    width: calc(100% - 50px);
    transform: skew(-10deg) translate(50px, 30px);
    background-color: rgba(37, 125, 227, 0.3);
    border-radius: 5px;
    padding: 55px 36px 36px 36px;
    font-size: 16px;
    color: #000;
    box-shadow: inset 5px 5px 20px rgb(0 0 0 / 0.2);
    overflow: hidden;
    position: relative;
}

.promotion-section__content::before {
    content: "";
    width: 100%;
    height: 100%;
    background-image: url(/images/percent.png);
    background-size: 300px 300px;
    background-position: 20% 45%;
    background-repeat: no-repeat;
    filter: invert();
    opacity: 0.3;
    position: absolute;
    top: 0;
    left: 0;
}

.promotion-section__content p {
    margin: 0 0 1em 0;
    font-weight: 500;
    font-size: 18px;
}

.promotion-section__content > * {
    z-index: 2;
    position: relative;
}

.promotion-section__timer {
    display: flex;
    gap: 12px;
    position: absolute;
    right: 70px;
}

.promotion-section__timer .timer {
    padding: 15px 15px 25px 15px;
    background-color: #257de3;
    transform: skew(-10deg);
    box-shadow: 5px 5px 20px rgb(0 0 0 / 0.2);
    color: #fff;
    font-size: 22px;
    letter-spacing: 2px;
    border-radius: 5px;
    position: relative;
    min-width: 63px;
}

.timer::before {
    position: absolute;
    bottom: 1px;
    color: #fff;
    font-size: 12px;
    opacity: 0.5;
}

.timer.timer-days::before {
    content: "д";
}

.timer.timer-hours::before {
    content: "ч";
}

.timer.timer-minutes::before {
    content: "м";
}

.timer.timer-seconds::before {
    content: "c";
}

.product-list-properties.block {
    margin-top: 16px;
    font-size: 12px;
}

.list-properties__item {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    border-bottom: 1px solid #ececec;
    justify-content: space-between;
    line-height: 1.4;
    margin-bottom: 5px;
}

.list-properties__item .prop__label {
    color: #111;
    text-align: left;
}

.list-properties__item .prop__value {
    color: #888;
    text-align: right;
}

@media (min-width: 400px) {
    .has-secion-banner .top-block-wrapper {
        padding-top: 60px;
    }
}

@media (max-width: 768px) {
    .snippet__text-image,
    .snippet__image-text {
        max-width: 100%;
    }

    .snippet__text-image img,
    .snippet__image-text img {
        float: none;
        display: block;
        padding: 0 0 20px 0;
        max-width: 100%;
        text-align: center;
    }

    .owl-carousel.bordered {
        margin-bottom: 20px;
    }

    .section-gallery-item {
        height: 375px;
    }

    .owl-section-thumbs .section-gallery-thumb-item {
        height: 100px;
    }
}

@media (max-width: 550px) {
    .section-gallery-item {
        height: 325px;
    }

    .owl-section-thumbs .section-gallery-thumb-item {
        height: 80px;
    }
}

@media (max-width: 500px) {
    .promotion-section {
        margin: 0 20px 90px 20px;
    }

    .promotion-section__content {
        width: 100%;
        transform: skew(-10deg) translate(0, 30px);
    }

    .promotion-section__header {
        left: 50%;
        transform: translateX(-50%) skew(-10deg);
    }

    .promotion-section__timer {
        right: unset;
        left: 50%;
        transform: translateX(-50%);
    }
}

.b24-window-mounts {
    position: relative;
    z-index: 999999999;
}

#mobileheader .mobileheader-v4 {
    display: flex;
    align-items: center;
    height: auto !important;
    justify-content: space-between;
}
.additional-mobile-search {
    margin-top: -1px;
}

.mobile-visible {
	display: none;
}

@media (max-width: 768px) {
	.mobile-visible {
		display: block;
	}
	.mobile-hidden {
		display: none;
	}
}

.has-discount .price.font-bold.font_mxs {
    color: #cd2c2c;
}


/* Кнопка открытия модального окна */
.open-telegram_modal-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.18);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;

}

.open-telegram_modal-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);

}

/* Overlay */
.telegram_modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.telegram_modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* telegram_modal */
.telegram_modal {
    background: rgb(85, 99, 108);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-family: "Montserrat", sans-serif;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.telegram_modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 46px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.telegram_modal-close:hover {
    color: white;
}

.telegram_modal-content {
    text-align: center;
}

.telegram_modal-title {
    font-size: 25px;
    font-weight: 500;
    color: white;
    line-height: 1.2;
    margin-bottom: 12px;
}

.telegram_modal-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: white;
    line-height: 1.2;
    margin: 0 auto 16px auto;
    max-width: 235px;
}

.telegram_modal-logo {
    width: 80%;
    margin: 0 auto 10px auto;
}

.telegram_modal-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.telegram-link,
.telegram-link:visited {
    display: inline-block;
    background: rgb(0, 173, 239);
    color: white;
    padding: 8px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.telegram-link:hover {
    text-decoration: none;
    color: white;
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
    background: rgb(0, 143, 198);
}

.qr-code {
    width: 170px;
    height: 170px;
    margin: 0 auto 25px;
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hidden {
    display: none;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    white-space: nowrap;
}

.button {
    padding: 7px 12px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    gap: 5px;
}

.button-primary {
    background: rgb(209, 210, 212);
    color: #000;

}

.button-primary:hover {
    background: rgb(200, 201, 204);
}

.button-secondary {
    background-color: green;
}

.button-secondary:hover {
    background: #019a01;
}

.call-btn {
    display: none;
}

.checkbox-group {
    text-align: left;
}

@media (max-width: 768px) {
    .call-btn {
        display: inline-flex;
    }
    .qr-code {
        display: none;
    }
}

/* Форма вопроса */
.question-form {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.question-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.form-group {
    margin-bottom: 12px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 7px 12px;
    background: rgb(214, 214, 214);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 13px;
    transition: all 0.3s ease;
    font-family: inherit;
    color: #222;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgb(214, 214, 214);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

.checkbox-group label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #002a7f, #00194c);
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.submit-btn:hover {
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #00194c, #002a7f);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.user-consent-link a {
    color: #fff;
    text-decoration: underline;
}
.action-buttons .button-icon {
    width: 20px;
    height: 20px;
}
.action-buttons img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: invert();
}
.form-success-send {
    color: #fff;
    width: 80%;
    font-size: 20px;
    line-height: 1.7;
    margin: 0 auto;
}
.form-error-send {
    color: #fff;
    background-color: tomato;
    border-radius: 8px;
}