body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: var(--color-gray-5);
}

.navbar {
    padding-top: 7px;
    padding-bottom: 7px;
}

.navbar-nav .nav-link {
    color: var(--color-gray-5);
    font-weight: 400;
}

.btn-outline-light-gray {
    color: var(--color-gray-5);
    border: 1px solid var(--color-light-gray-4);
    padding: 12px 24px;
    font-weight: 400;
}

.btn-outline-light-gray:hover {
    background-color: var(--color-light-gray-1);
    border-color: var(--color-gray-1);
}

.btn-wine {
    background-color: var(--color-wine);
    border: 1px solid var(--color-wine);
    color: var(--color-white);
    font-weight: 500;
    padding: 12px 24px;
}

.btn-wine:hover {
    background-color: var(--color-wine-hover);
    color: var(--color-white);
}

.btn-green {
    background-color: var(--color-green);
    border: 1px solid var(--color-green);
    color: var(--color-white);
    font-weight: 500;
    padding: 12px 24px;
}

.btn-green:hover {
    background-color: var(--color-green-hover);
    color: var(--color-white);
}

.navbar-toggler {
    border: none;
    height: 46px;
    width: 46px;
    background-image: url("../imgs/burger.svg");
}

nav .logo,
.offcanvas .logo,
footer .content-2 img {
    width: 180px;
    height: 65px;
    object-fit: contain;
}

.offcanvas-end {
    width: 320px !important;
}

.offcanvas-body {
    padding: 0 20px 32px;
}

.offcanvas .nav-item a.nav-link {
    font-size: 18px;
}

body .offcanvas .btn-close {
    --bs-btn-close-bg: url(../imgs/close.svg) !important;
    box-sizing: content-box;
    width: 46px;
    height: 46px;
    padding: 20px;
    margin: 0 0 0 auto;
    background: transparent var(--bs-btn-close-bg) center no-repeat;
}

body .offcanvas .btn-close:hover {
    --bs-btn-close-bg: url(../imgs/close_hover.svg) !important;
    background: transparent var(--bs-btn-close-bg) center no-repeat;
}

.no-outline:focus {
    outline: none !important;
    box-shadow: none !important;
}

main .content-1 {
    padding: 64px 0;
}

.content-2 {
    padding: 64px 0;
}

main .content-3 {
    padding: 64px 0 64px;
    position: relative;
}

.content-3.distributor-wrapper {
    position: relative;
    z-index: 1;
}

.content-3.distributor-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 99vw;
    height: 100%;
    background: url("../imgs/bg_content_3.png") no-repeat center right;
    background-size: contain;
    z-index: -1;
}

.text-bg-success {
    font-size: 16px;
    font-weight: 600;
    font-style: normal;
    line-height: 150%;
    background: var(--color-green) !important;
    border-radius: 10px;
    color: var(--color-light-gray-0);
    padding: 5px 15px;
}

.content-3 .text-description {
    font-size: 24px;
    line-height: 150%;
}

.content-3 p.text-new,
.content-3.distributor-wrapper p {
    font-size: 18px;
    line-height: 150%;
    margin-bottom: 0 !important;
}

.text-new {
    max-width: 734px;
}

.line-height-100 {
    line-height: 100%;
}

.content-2 .text-h {
    font-weight: bold;
    font-size: 56px;
    line-height: 120%;
}

.content-2 .slider-content p {
    font-size: 18px;
}

.content-2 .my-slider .col-md-6 {
    width: 600px;
}


.content-3 .text-h {
    font-weight: bold;
    font-size: 48px;
    line-height: 120%;
}

.text-h1 {
    font-weight: bold;
    font-size: 38px;
    line-height: 120%;
}

.text-h2 {
    font-weight: bold;
    font-size: 28px;
    line-height: 120%;
}

.content-2 .text-body {
    font-size: 18px;
    line-height: 150%;
}

.content-2 img {
    max-width: 100%;
    height: 363px;
    object-fit: contain;
}

.btn-arrow {
    background-color: #8B0000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-arrow:hover {
    background-color: #a30000;
}

.slider-dots .tns-nav {
    display: flex;
    gap: 8px;
}

.slider-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-gray-5);
    border: none;
    opacity: .2;
    padding: 0;
    cursor: pointer;
}


.slider-dots .tns-nav-active {
    background: var(--color-gray-5);
    opacity: 1;
}

.btn-next,
.btn-prev {
    background-color: #fff;
    border: 1px solid var(--color-light-gray-3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-next:hover,
.btn-prev:hover {
    border-color: var(--color-gray-hover-border);
}


.advantages .gap-3 {
    padding: 30px;
    text-align: center;
    border: 1px solid var(--color-light-gray-5);
    border-radius: 15px;
    height: 100%;
}

.advantages .col-12 {
    margin: 0;
}

.text-h4 {
    font-size: 16px;
    font-weight: 800;
    line-height: 200%;
    font-style: normal;
}

.advantages .text-body {
    font-size: 14px;
    color: var(--color-gray-3);
    line-height: 150%;
}

.advantages .text-h4 {
    color: var(--color-wine);
}

.block-version {
    border: 1px solid var(--color-light-gray-5);
    border-radius: 15px;
    padding: 30px 50px;

}

span.red {
    color: var(--color-red);
}

footer .content-2 .hr {
    border-top: 1px solid var(--color-gray-5);
    padding-top: 34px;
}

footer .content-2 .hr a {
    font-size: 14px;
}

.footer-menu p {
    font-size: 14px;
}

.footer-menu p.mb6 {
    margin-bottom: 6px;
}

.footer-subscription small {
    font-size: 16px;
}

.border-distributor div .text-center {
    border: 1px solid var(--color-light-gray-0);
    border-radius: 15px;
    padding: 30px;
    background: white;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
}

.border-distributor .col-12 {
    margin: 11px 0;
}

.border-distributor img {
    width: 40px;
    height: 30px;
}

.border-distributor p {
    margin: 0;
    font-weight: 18px;
    font-weight: 500;
    font-style: normal;
}

.form-control {
    border: 1px solid var(--color-gray-0);
    border-radius: 15px;
    padding: 12px 20px;
    font-size: 16px;
}

.btn-outline-darked {
    color: var(--color-gray-5);
    border: 1px solid var(--color-gray-5);
    border-radius: 500px;
    padding: 12px 24px;
    font-weight: 400;
    background: transparent;
    transition: background 0.2s, color 0.2s;
}

.btn-outline-darked:hover,
.btn-outline-darked:active,
.btn-outline-darked:focus {
    background: var(--color-gray-5);
    color: #fff;
    border-color: var(--color-gray-5);
}

.auth-body {
    background: #f0f2f5;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 1rem;
}

.img-tovar {
    width: 100%;
    height: 380px;
    padding-bottom: 80%;
    background-size: cover;
    background-color: #F2F2F2;
    background-position: center;
}

.card-title-tovar {
    color: #686767;
    font-weight: bold;
}

.card-title-tovar-slide {
    color: #686767;
    font-weight: bold;
    display: block;
    height: 25px;
    overflow: hidden;
    margin-bottom: 0;
}

.modal-content {
    padding: 40px;
    color: var(--color-gray-5);
}

.modal-content .btn-close {
    --bs-btn-close-bg: url(../imgs/close.svg) !important;
    box-sizing: content-box;
    width: 48px;
    height: 48px;
    margin: 0 0 0 auto;
    padding-bottom: 10px;
    background: transparent var(--bs-btn-close-bg) center no-repeat;
}

.modal-content .btn-close:focus,
.modal-content .btn-close:active {
    outline: none !important;
    box-shadow: none !important;
}

body .modal-content .btn-close:hover {
    --bs-btn-close-bg: url(../imgs/close_hover.svg) !important;
    background: transparent var(--bs-btn-close-bg) center no-repeat;
}

.modal-body {
    padding: 0;
}

.modal-body h5 {
    font-size: 48px;
    font-weight: bold;
    line-height: 120%;
    margin-bottom: 0;
}

.modal-body p {
    font-size: 22px;
    font-weight: 400;
    font-style: normal;
    line-height: 150%;
    margin-bottom: 0;
}

.modal-body .productHeader {
    gap: 12px;
}

.gap32 {
    gap: 32px;
}

.modal-body .productCharacteristics p {
    margin-bottom: 10px;
}

.modal-body .productCharacteristics div {
    font-size: 18px;
}

.modal-body .productScheme img {
    max-width: 500px;
    width: 100%;
}

.slider-products-prev,
.slider-products-next {
    display: block !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 46px;
    height: 46px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    opacity: 0.8;
}

.slider-products-prev {
    left: 0;
    transform: translateY(-50%) scaleX(-1);
}

.slider-products-next {
    right: 0;
}

.slider-products-prev:hover,
.slider-products-next:hover {
    border-color: var(--color-gray-hover-border);
}

.content-3 .tns-inner:has(.slider-container) {
    margin: 0 !important;
}

#productModalGallery .carousel-control-prev,
#productModalGallery .carousel-control-next,
#productModalSchemes .carousel-control-prev,
#productModalSchemes .carousel-control-next {
    width: 46px;
    height: 46px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    opacity: 0.8;
    transform: translateY(-50%);
}

#productModalGallery .carousel-control-prev,
#productModalSchemes .carousel-control-prev {
    left: -10px;
}

#productModalSchemes .carousel-control-next,
#productModalSchemes .carousel-control-prev {
    top: 55px;
}

#productModalGallery .carousel-control-next,
#productModalSchemes .carousel-control-next {
    right: -10px;
}

#productModalGallery .carousel-control-prev:hover,
#productModalGallery .carousel-control-next:hover,
#productModalSchemes .carousel-control-prev:hover,
#productModalSchemes .carousel-control-next:hover {
    border-color: var(--color-gray-hover-border);
    opacity: 1;
}

#productModalGallery .carousel-control-prev-icon,
#productModalGallery .carousel-control-next-icon,
#productModalSchemes .carousel-control-prev-icon,
#productModalSchemes .carousel-control-next-icon {
    width: 8px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg width='8' height='14' viewBox='0 0 8 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L1 13' stroke='%23060606'/%3E%3C/svg%3E");
}

#productModalGallery .carousel-control-prev-icon,
#productModalSchemes .carousel-control-prev-icon {
    transform: rotate(180deg);
}

#productModalGallery .slider-dots,
#productModalSchemes .slider-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

#productModalGallery .gallery-dot,
#productModalSchemes .scheme-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-gray-5);
    border: none;
    opacity: .2;
    padding: 0;
    cursor: pointer;
}

#productModalGallery .gallery-dot.tns-nav-active,
#productModalSchemes .scheme-dot.tns-nav-active {
    background: var(--color-gray-5);
    opacity: 1;
}

.custom-rounded-top {
    border-top-left-radius: 0;
    border-top-right-radius: 15px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 15px;
}

#productModalGallery .carousel-item,
#productModalSchemes .carousel-item {
    transition: none !important;
}

.mobile-search-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: 72px;
    z-index: 1200;
    display: none;
}

.mobile-search-panel.open {
    display: block;
    animation: slideDown .22s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-search-inner {
    margin: 0 auto;
    max-width: 720px;
    background: #ffffff;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(10, 10, 10, 0.12);
    border-radius: 8px;
    position: relative;
    z-index: 1210;
}

.mobile-search-backdrop {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.18);
    z-index: 1190;
}

#distributorList .list-group-item {
    cursor: pointer;
}

#distributorList .list-group-item.selected {
    border-left: 4px solid #198754;
    background: #f8fff6;
}

.worktime-box {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
}

.worktime-box table td {
    padding: 4px 6px;
    font-size: 14px;
}

.worktime-box tr td:first-child {
    color: #333;
    width: 70px;
}

.btn-close-custom {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.3s ease;
    padding: 0;
}

.btn-close-custom:hover {
    background-color: #f8f9fa;
    color: #495057;
    transform: rotate(90deg);
}

.btn-close-custom:active {
    background-color: #e9ecef;
    transform: scale(0.95);
}

.btn-close-alternative {
    position: relative;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.btn-close-alternative::before,
.btn-close-alternative::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: currentColor;
    transform-origin: center;
}

.btn-close-alternative::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.btn-close-alternative::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav.navbar .btn-outline-light-gray, .offcanvas-body .btn-outline-light-gray{
    font-size: 15px;
}

#distributorList,
#mobileDistributorList {
    max-height: 200px;
    overflow-y: auto;
}

#distributorList::-webkit-scrollbar,
#mobileDistributorList::-webkit-scrollbar {
    width: 6px;
}

#distributorList::-webkit-scrollbar-track,
#mobileDistributorList::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#distributorList::-webkit-scrollbar-thumb,
#mobileDistributorList::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#distributorList::-webkit-scrollbar-thumb:hover,
#mobileDistributorList::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

@media (min-width: 1400px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1340px !important;
    }

}

/* Планшеты */
@media (max-width: 1400px) {
    .block-version {
        padding: 50px;
    }

    main .content-2 {
        margin: 32px 0;
        padding: 0;
    }

    main .content-3 {
        margin: 32px 0 0;
        padding: 0;
    }

    main .content-3.distributor-wrapper {
        margin: 64px 0;
        padding: 0;
    }

    main .content-1 {
        margin: 32px 0;
        padding: 0;
    }

    footer.container {
        margin-top: 32px;
        margin-bottom: 32px;
    }

    footer .content-2 {
        padding: 32px 0;
    }

    .text-h2 {
        font-size: 24px;
    }

    .block-version img.w-100 {
        height: auto;
    }

    .content-2 .text-h {
        font-size: 42px;
    }

    .new-products .row.p-0 .slider-container>.ps-3.pe-3.position-relative:nth-child(n+7) {
        display: none;
    }

    .new-products .img-tovar {
        height: 250px !important;
    }

    .footer-subscription a {
        display: block;
    }

}

/* Телефоны */
@media (max-width: 991.98px) {
    nav .logo {
        width: 129.2px;
        height: auto;
    }

    .content-2 {
        padding: 20px 0;
    }

    main .content-3 {
        padding: 20px 0;
    }

    main .content-3.distributor-wrapper {
        padding: 24px 0;
    }

    main .content-1 {
        padding: 24px 0;
    }

    main .content-3 .text-description {
        font-size: 18px;
    }

    .advantages .text-body {
        font-size: 18px;
    }

    .text-h1 {
        font-size: 28px;
    }

    .text-h4 {
        font-size: 22px;
    }

    .text-h2 {
        font-size: 18px;
    }

    .block-version {
        padding: 30px;
    }

    .block-version .col-12 {
        padding: 0;
    }

    .block-version .text-body {
        font-size: 16px;
    }

    .block-version img.w-100 {
        padding-bottom: 24px;
    }

    .btn {
        width: 100%;
    }

    .content-2 .text-h {
        font-size: 34px;
    }

    .slider-dots {
        margin-bottom: auto;
    }

    .new-products .row.p-0 .slider-container>.ps-3.pe-3.position-relative:nth-child(n) {
        display: inline-block;
    }

    .new-products .row.p-0 .img-tovar {
        height: 250px !important;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-body h5 {
        font-size: 26px;
    }

    .modal-body .productHeader p {
        font-size: 16px;
    }

    .text-bg-success {
        font-size: 14px;
    }

    .modal-body p {
        font-size: 18px;
    }

    .modal-body .productCharacteristics div {
        font-size: 16px;
    }

    .modal-body .productContactBtn {
        width: 100%;
    }

    .slider-container {
        overflow: hidden;
    }

    .slider-item {
        flex: 0 0 50%;
        max-width: 50%;
        box-sizing: border-box;
    }

    .tns-outer {
        position: relative;
    }

    .tns-controls,
    .tns-nav {
        display: none;
    }

    .card .row.g-0 {
        flex-direction: column-reverse;
    }

    #map {
        min-height: 260px;
    }

    .mobile-search-panel {
        top: 64px;
    }
}


@media (min-width: 992px) {
    .slider-container {
        display: flex;
        flex-wrap: wrap;
    }

    .slider-item {
        flex: 0 0 auto;
        max-width: none;
    }
}