/* ============= ROOT STYLES =============== */

:root {
    --p120: clamp(40px, 20.58px + 5.18vw, 120px);

    --m60: clamp(20px, 12.00px + 2.50vw, 60px);
    --m40: clamp(20px, 15.15px + 1.29vw, 40px);
    --m30: clamp(20px, 18.00px + 0.63vw, 30px);
    --m20: clamp(15px, 13.79px + 0.32vw, 20px);
    --m15: 15px;
    --m10: 10px;

    --fs70: clamp(28px, 19.60px + 2.63vw, 70px);
    --fs54: clamp(24px, 18.00px + 1.88vw, 54px);
    --fs50: clamp(28px, 23.60px + 1.38vw, 50px);
    --fs28: clamp(22px, 20.80px + 0.38vw, 28px);
    --fs22: clamp(20px, 19.60px + 0.13vw, 22px);
    --fs20-16: clamp(16px, 15.20px + 0.25vw, 20px);
    --fs18: 18px;
    --fs16: 16px;
    --fs15: 15px;
    --fs14: 14px;
    --fs12: 12px;

    --lh130: 130%;
    --lh120: 120%;
    --lh110: 110%;
    --lh105: 105%;
    --lh100: 100%;

    --fw400: 400;
    --fw500: 500;
    --fw600: 600;
    --fw700: 700;
    --fw800: 800;

    --transition: 0.3s ease-in;
    --cursor-pointer: pointer;
}

/* ============= SCROLLBAR STYLES =============== */

body::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar {
    width: 2px;
    /* ширина scrollbar */
}

::-webkit-scrollbar-track {
    background-color: var(--bg-primary-second);
    /* цвет дорожки */
}

::-webkit-scrollbar-thumb {
    background-color: var(--colors-main);
}

/* ============= SELECTION STYLES =============== */

::selection {
    background-color: var(--colors-main);
    color: var(--bg-primary-main);
}


/*  */


.usefull-links-block{
    .usefull_links{
        padding: 20px;
        border-radius: 10px;
        background: var(--bg-primary-main);
        display: grid;
        grid-template-columns: 50% 50%;
        gap: 10px;
        .link_block{
            display: flex;
            flex-direction: column;
            gap: 10px;
            .title{

            }
            .desc{
                a{
                    text-decoration: underline;
                    transition: all 0.3s ease-in-out;
                    &:hover{
                        color: var(--hover-main);
                        text-decoration-color: var(--hover-main);
                    }
                }
            }
        }
    }
    .contacts-block__site-link{
        display: flex;
        flex-direction: column;
        gap: 10px;
        .links{
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
    }
    .usefull_links-container{
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 850px) {
    .usefull-links-block{
        .usefull_links{
            display: flex;
            flex-direction: column;
        }
    }
}
/*============= ALIGNES ===============*/

.alignwide {
    width: 100%;
}

.alignfull {
    margin-left: calc(-100vw / 2 + 100% / 2);
    margin-right: calc(-100vw / 2 + 100% / 2);
    max-width: 1920px;
}

@media only screen and (min-width: 1920px) {
    .alignfull {
        width: 100vw !important;
        max-width: unset;
    }
}

/* =========== BASE CONFIG =========== */
html {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: var(--text-primary-main);
    font-weight: var(--fw400);
    font-size: var(--fs16);
    line-height: var(--lh130);
    box-sizing: border-box;
    outline: none;
    border: none;
}

body {
    position: relative;
    display: flex;
    flex-direction: column;
    width: auto;
    min-height: 100vh;
    margin: 0 auto;
    background-color: var(--bg-primary-second);
    overflow-x: hidden;
    cursor: default;
}

body.no-scroll {
    overflow: hidden;
}

.decor-line-left,
.decor-line-center,
.decor-line-right {
    position: absolute;
    top: 0;
    width: 1px;
    min-height: 100vh;
    height: 100%;
    background: linear-gradient(180deg, rgba(148, 130, 113, 0.09) 0%, rgba(148, 130, 113, 0.3) 30%, rgba(148, 130, 113, 0.3) 70%, rgba(148, 130, 113, 0.09) 100%);
    z-index: -1;
}

.decor-line-left {
    left: calc((100% - 1570px) / 2);
}

.decor-line-center {
    left: 50%;
}

.decor-line-right {
    right: calc((100% - 1570px) / 2);
}

@media (max-width: 1630px) {
    .decor-line-left {
        left: 30px;
    }

    .decor-line-right {
        right: 30px;
    }
}

@media (max-width: 1025px) {
    .decor-line-left {
        left: 10px;
    }

    .decor-line-right {
        right: 10px;
    }
}

@media (max-width: 650px) {
    .decor-line-left {
        left: 5px;
    }

    .decor-line-right {
        right: 5px;
    }
}

main {
    flex: 1 1 auto;
}

li {
    position: relative;
    list-style: none;
}

button {
    outline: none;
    border: none;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.more-item.hidden,
.toggle-content {
    display: none;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
}

.container {
    max-width: 1630px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.container.container--large {
    max-width: 1790px;
}

@media (max-width: 1025px) {
    .container {
        padding: 0 20px !important;
    }
}

@media (max-width: 650px) {
    .container {
        padding: 0 15px !important;
    }
}

.p-top {
    padding-top: var(--p120);
}

.p-bottom {
    padding-bottom: var(--p120);
}

/* =========== SITE DECOR STYLES =========== */

.site-decor,
.site-bg-img {
    position: fixed;
    z-index: -2;
}

.site-decor__left {
    top: 0;
    left: 0;
    max-width: 150px;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 7;
}

.site-decor__right {
    bottom: 10%;
    right: 0;
    max-width: 175px;
    width: 100%;
    height: auto;
    aspect-ratio: 35 / 114;
}

.site-bg-img {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 440px;
    width: 100%;
    height: auto;
    aspect-ratio: 22 / 26;
}

@media (max-width: 1025px) {

    .site-decor__left,
    .site-decor__right {
        max-width: 100px;
    }

    .site-bg-img {
        max-width: 330px;
        padding: 15px;
        display: none;
    }
}

/* =========== TEXT STYLES =========== */

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
    color: var(--text-primary-head);
    line-height: var(--lh110);
    font-weight: var(--fw600);
}

h1,
.h1 {
    font-family: var(--second-family);
    font-size: var(--fs70);
    font-weight: var(--fw700);
    line-height: var(--lh105);
}

h2,
.h2 {
    font-family: var(--second-family);
    font-size: var(--fs54);
    font-weight: var(--fw700);
}

h3,
.h3 {
    font-size: var(--fs28);
}

h4,
.h4 {
    font-size: var(--fs22);
}

h5,
.h5 {
    font-size: var(--fs18);
}

h6,
.h6 {
    font-size: var(--fs16);
    line-height: var(--lh120);
}

p {
    font-size: var(--fs16);
}

.p1,
.text-editor.p1 p,
.text-editor.p1 li {
    font-size: var(--fs20-16);
}

.p2,
.text-editor.p2 p,
.text-editor.p2 li,
.text-editor.p2 a {
    font-size: var(--fs16);
}

.p3,
.text-editor.p3 p,
.text-editor.p3 li,
.text-editor.p3 a {
    font-size: var(--fs14);
}

.p4 {
    font-size: var(--fs12);
    line-height: var(--lh100);
}

.button {
    font-size: var(--fs16);
    font-weight: var(--fw500);
    line-height: var(--lh100);
}

.menu {
    font-size: var(--fs16);
    font-weight: var(--fw500);
    line-height: var(--lh120);
}

.numbers {
    font-size: var(--fs50);
    line-height: var(--lh120);
    font-weight: var(--fw500);
}

a {
    width: fit-content;
    color: var(--text-primary-main);
    text-decoration: none;
    transition: var(--transition);
    cursor: var(--cursor-pointer);
}

span,
strong {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

strong {
    font-style: var(--fs18);
    font-weight: var(--fw600);
}

.page-header,
.block-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto var(--m40);
}

.page-header:has(.block-caption) {
    margin: 0 auto var(--m60);
}

.block-line {
    position: absolute;
    top: clamp(25px, 20.00px + 1.56vw, 50px);
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(148, 130, 113, 0.09) 0%, rgba(148, 130, 113, 0.3) 30%, rgba(148, 130, 113, 0.3) 70%, rgba(148, 130, 113, 0.09) 100%);
    z-index: -1;
}

.page-title,
.block-title {
    width: fit-content;
    padding: 20px 30px 10px;
    text-align: center;
    text-wrap: balance;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.block-title {
    max-width: 840px;
}

.page-title {
    max-width: 1060px;
}

.page-header:has(.page-caption) .page-title,
.block-header:has(.block-caption) .block-title {
    padding: 20px 30px 0;
}

.block-title.not-founded {
    margin: 0 auto;
}

.page-caption,
.block-caption {
    max-width: 770px;
    padding: 10px;
    text-align: center;
    text-wrap: balance;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

@media (max-width: 1025px) {

    .page-title,
    .block-title {
        padding: 10px 15px;
    }

    .page-header:has(.page-caption) .page-title,
    .block-header:has(.block-caption) .block-title {
        padding: 10px 15px 0;
    }
}

.full-text p,
.full-text li {
    font-size: var(--fs16);
}

.text-editor p strong,
.text-editor li strong,
.full-text p strong,
.full-text li strong {
    color: var(--text-primary-head);
    font-weight: var(--fw600);
    font-size: var(--fs18);
}

.text-editor ol,
.full-text ol {
    padding-left: 15px;
}

.text-editor ol li,
.full-text ol li {
    list-style-type: decimal;
    list-style-position: inside;
}

.text-editor ul,
.full-text ul {
    padding-left: 24px;
}

.text-editor ul li,
.full-text ul li {
    list-style: disc;
}

.text-editor h5:not(:last-child),
.text-editor h6:not(:last-child),
.full-text h5:not(:last-child),
.full-text h6:not(:last-child),
.text-editor p:not(:last-child),
.text-editor ul:not(:last-child),
.text-editor ol:not(:last-child),
.full-text p:not(:last-child),
.full-text ul:not(:last-child),
.full-text ol:not(:last-child),
.text-editor li:not(:last-child),
.full-text li:not(:last-child) {
    margin-bottom: var(--m10);
}

.text-editor h1:not(:last-child),
.text-editor h2:not(:last-child),
.text-editor h3:not(:last-child),
.text-editor h4:not(:last-child),
.full-text h1:not(:last-child),
.full-text h2:not(:last-child),
.full-text h3:not(:last-child),
.full-text h4:not(:last-child) {
    margin-bottom: var(--m20);
}

.text-editor a,
.full-text a {
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: var(--text-primary-main);
}

.trim-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-more-text {
    display: flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    color: var(--text-primary-head);
    font-weight: var(--fw500);
    cursor: var(--cursor-pointer);
    transition: var(--transition);
}

.btn-more-text svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    object-fit: contain;
}

.btn-more-text path {
    stroke: var(--text-primary-head);
}

.show-more {
    margin: var(--m30) auto 0;
}

/* =========== IMG STYLES =========== */

svg,
img {
    width: 100%;
    height: 100%;
    object-position: center;
    display: block;
    pointer-events: none;
    user-select: none;
}

svg.cover,
img.cover {
    object-fit: cover;
}

svg.contain,
img.contain {
    object-fit: contain;
}

path,
circle {
    transition: var(--transition);
}

/* =========== IMG HOVER STYLE =========== */

.img-holder {
    position: relative;
}


.img-hover {
    position: absolute;
    bottom: 10px;
    right: 10px;
    transform: translate(66px, 66px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 5px;
    background: transparent;
    border: 1px solid var(--bg-primary-main);
    flex-shrink: 0;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
    pointer-events: none;
}

.img-hover.fill {
    background: var(--colors-main);
    border: transparent;
}

.img-hover::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: var(--colors-second);
    filter: blur(60px);
    -webkit-filter: blur(60px);
    transition: var(--transition);
    z-index: -1;
}

.img-hover.fill::before {
    opacity: 0;
}

.img-hover img,
.img-hover svg {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}

/* =========== MEDIA IMG HOVER =========== */

@media (max-width: 1025px) {
    .img-hover {
        transform: translate(0);
        width: 34px;
        height: 34px;
        opacity: 1;
    }

    .img-hover::before {
        width: 130px;
        height: 130px;
        filter: blur(30px);
        -webkit-filter: blur(30px);
    }
}

/* =========== PAGE PRIVACY POLICY STYLES =========== */

body.privacy-policy h2.wp-block-heading,
body.page-id-61 h2.wp-block-heading {
    margin-bottom: var(--m20);
}

body.privacy-policy .content,
body.page-id-61 .content {
    padding-bottom: var(--p120);
}

body.privacy-policy .content *:not(:last-child),
body.page-id-61 .content *:not(:last-child) {
    margin-bottom: var(--m15);
}

/* =========== BREADCRUMBS STYLES =========== */

.breadcrumbs {
    width: 100%;
    padding: 65px 0 20px;
    margin: 0 auto;
    font-size: var(--fz14);
    color: var(--text-primary-main);
    text-align: center;
}

.breadcrumbs span {
    font-size: var(--fz14);
    color: var(--text-primary-main);
    transition: var(--transition);
}

.breadcrumbs span .current-item,
.breadcrumbs span .current-item span {
    color: var(--colors-main);
}

/* =========== MEDIA BREADCRUMBS =========== */

@media (max-width: 1025px) {
    .breadcrumbs {
        padding-top: 30px;
    }
}

/* ============ BTN STYLES ================= */

.btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: fit-content;
    outline: none;
    white-space: nowrap;
    cursor: var(--cursor-pointer);
    border: 1px solid transparent;
    transition: var(--transition);
    font-size: var(--fs16);
    font-weight: var(--fw500);
    line-height: var(--lh100);
    text-align: center;
    border-radius: 5px;
    padding: 15px;
    z-index: 2;
}

.btn.btn--with-icon {
    white-space: normal;
    text-align: left;
}

.btn.btn--full {
    width: 100%;
}

.btn.btn--big {
    padding: 19px;
}

.btn svg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn span {
    font-family: inherit;
    color: inherit;
    font-weight: inherit;
    line-height: inherit;
    transition: var(--transition);
}

.btn-more {
    margin-top: var(--m40);
    margin-left: auto;
    margin-right: auto;
}

/* ============ BTN STYLES LIGHT THEME ================= */

.btn.btn--disabled {
    color: var(--bg-primary-stroke) !important;
    background: var(--bg-primary-second) !important;
    pointer-events: none;
}

.btn.btn--disabled svg path {
    stroke: var(--bg-primary-stroke) !important;
}

.btn--primary {
    color: var(--text-alt-head);
    background: var(--colors-main);
    border-color: var(--colors-main);
}

.btn--primary svg path {
    stroke: var(--text-alt-head);
}

.btn--second {
    color: var(--colors-main);
    background: transparent;
    border-color: var(--colors-main);
}

.btn--second svg path {
    stroke: var(--colors-main);
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 5px;
    background: var(--colors-main);
    flex-shrink: 0;
    pointer-events: none;
    z-index: 3;
    transition: var(--transition);
}

.video-play svg {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* ============ MEDIA BTNS ================= */

@media (max-width: 1025px) {
    .video-play {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 650px) {
    .btn {
        width: 100%;
    }
}

/* ============ SWIPER STYLES ================= */

.swiper {
    width: 100% !important;
    overflow: hidden !important;
}

.swiper:not(.swiper-thumbs) .swiper-slide {
    height: auto !important;
}

.swiper-slide {
    box-sizing: border-box !important;
}

.swiper-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-top: var(--m40);
}

.swiper-button-lock,
.swiper-nav:has(.swiper-button-lock) {
    display: none;
}

.btn-navigation.swiper-button-prev::after,
.btn-navigation.swiper-button-next::after {
    display: none;
}

.btn-navigation.swiper-button-prev,
.btn-navigation.swiper-button-next {
    position: relative;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-top: 0;
    background: transparent;
    border: 1px solid var(--colors-main);
    border-radius: 5px;
    flex-shrink: 0;
    z-index: 2;
    transition: var(--transition);
    cursor: var(--cursor-pointer);
}

.btn-navigation.swiper-button-prev.swiper-button-disabled,
.btn-navigation.swiper-button-next.swiper-button-disabled {
    opacity: 1;
    pointer-events: none;
    background: var(--bg-primary-third);
    border-color: var(--bg-primary-third);
}

.btn-navigation.swiper-button-prev svg,
.btn-navigation.swiper-button-next svg {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}

.btn-navigation.swiper-button-prev path,
.btn-navigation.swiper-button-next path {
    stroke: var(--colors-main);
}

.btn-navigation.swiper-button-prev.swiper-button-disabled path,
.btn-navigation.swiper-button-next.swiper-button-disabled path {
    stroke: var(--bg-primary-stroke);
}

.swiper-nav .swiper-pagination {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px 10px;
    width: fit-content !important;
}

.swiper-nav .swiper-pagination .swiper-pagination-bullet {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 !important;
    background: var(--colors-main);
    transition: var(--transition);
}

.swiper-nav .swiper-pagination .swiper-pagination-bullet-active {
    width: 15px;
}

/* ============ MEDIA SWIPER ================= */

@media (max-width: 1025px) {

    .btn-navigation.swiper-button-prev,
    .btn-navigation.swiper-button-next {
        width: 34px;
        height: 34px;
    }
}

/* ============ PAGINATION STYLES ================= */

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    width: fit-content;
    margin-top: var(--m40);
    margin-left: auto;
    margin-right: auto;
}

.pagination span.page-numbers.prev,
.pagination span.page-numbers.next {
    opacity: 1;
    pointer-events: none;
    background: var(--bg-primary-third);
    border-color: var(--bg-primary-third);
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    position: relative;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-top: 0;
    background: transparent;
    border: 1px solid var(--colors-main);
    border-radius: 5px;
    flex-shrink: 0;
    z-index: 2;
    transition: var(--transition);
    cursor: var(--cursor-pointer);
}

.pagination .page-numbers.prev {
    margin-right: 40px;
}

.pagination .page-numbers.next {
    margin-left: 40px;
}

.pagination .page-numbers.prev svg,
.pagination .page-numbers.next svg {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}

.pagination span.page-numbers.prev svg path,
.pagination span.page-numbers.next svg path {
    stroke: var(--bg-primary-stroke);
}

.pagination .page-numbers.prev svg path,
.pagination .page-numbers.next svg path {
    stroke: var(--colors-main);
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    border-radius: 5px;
    font-size: var(--fs16);
    color: var(--text-primary-main);
    background: transparent;
    transition: var(--transition);
}

.pagination .page-numbers.current {
    color: var(--text-alt-head);
    background: var(--colors-main);
}

/* ============ MEDIA PAGINATION ================= */

@media (max-width: 1025px) {
    .pagination .page-numbers.prev {
        margin-right: 20px;
    }

    .pagination .page-numbers.next {
        margin-left: 20px;
    }

    .pagination .page-numbers.prev,
    .pagination .page-numbers.next {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 650px) {
    .pagination .page-numbers.prev {
        margin-right: 5px;
    }

    .pagination .page-numbers.next {
        margin-left: 5px;
    }
}

/* ============ LOGO STYLES ================= */

.logo {
    display: flex;
    max-width: 125px;
    width: 100%;
    height: fit-content;
    aspect-ratio: 25 / 24;
    border-radius: 3px;
    background: var(--bg-primary-second);
    flex-shrink: 0;
    cursor: var(--cursor-pointer);
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

@media (max-width: 1025px) {
    .logo {
        max-width: 90px;
        aspect-ratio: 9 / 8;
        max-height: 80px;
    }
}

/* ============ SOCIALS STYLES ================= */

.socials {
    display: flex;
    /* flex-wrap: wrap; */
    align-items: center;
    gap: 10px;
}

.socials__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--colors-main);
    border-radius: 5px;
    background: var(--bg-primary-second);
    flex-shrink: 0;
    transition: var(--transition);
}

.socials__item svg {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ============ CONTACTS STYLES ================= */

.worktime,
.addresses,
.emails,
.phones {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.worktime {
    gap: 5px;
}

#header #mobile-mnu .mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#header #mobile-mnu .worktime *,
#header #mobile-mnu .addresses__value *,
#header #mobile-mnu .emails__value,
#header #mobile-mnu .phones__value {
    font-weight: var(--fw500);
    font-size: var(--fs18);
    line-height: var(--lh120);
    color: var(--text-primary-head);
}

#header #mobile-mnu .addresses__value * {
    text-wrap: balance;
}

/* ============ CARDS COUNTER STYLES ================= */

.card-counter {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: fit-content;
}

.card-count {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--colors-second);
    opacity: 0.3;
    flex-shrink: 0;
}

.card-count.fill {
    background: var(--bg-primary-main);
    opacity: 1;
}

/* ============ REVIEWS WIDGET STYLES ================= */

.widget-reviews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.widget-item-review {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: auto;
    border-radius: 3px;
    padding: 10px;
    background: var(--bg-primary-main);
}

a.widget-item-review,
a.widget-item-review * {
    cursor: pointer;
}

.widget-item-review__img {
    max-width: 105px;
    width: auto;
    height: 20px;
    flex-shrink: 0;
}

.widget-item-review__img img {
    object-fit: contain;
}

.widget-item-review__rating {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-left: 10px;
    border-left: 1px solid var(--bg-primary-stroke);
}

.widget-item-review__icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.widget-item-review__icon img,
.widget-item-review__icon svg {
    object-fit: contain;
}

.widget-item-review__value {
    font-weight: var(--fw500);
    font-size: var(--fs14);
    line-height: var(--lh130);
    color: var(--text-primary-head);
}

/* ============ MEDIA WIDGET REVIEWS ================= */

@media (max-width: 650px) {
    .widget-item-review {
        flex: 1 1 auto;
    }
}

/* ============ MENU STYLES ================= */

.header-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 30px;
    width: 50%;
}

.header-menu--left {
    justify-content: flex-end;
}

.header-menu .nav-menu-element {
    cursor: var(--cursor-pointer);
}

.header-menu .nav-menu-element>a {
    display: flex;
    align-items: flex-end;
    font-weight: var(--fw500);
    font-size: var(--fs16);
    line-height: var(--lh120);
    color: var(--text-primary-main);
    transition: var(--transition);
}

.header-menu>.nav-menu-element.active>a {
    color: var(--colors-main);
}

.header-menu .nav-menu-element:has(.sub-menu)>a {
    position: relative;
    gap: 5px;
}

.header-menu .nav-menu-element:has(.sub-menu)>a::after {
    content: "";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background-image: url(../images/sub-menu-icon.svg);
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.header-menu .nav-menu-element.active:has(.sub-menu)>a::after {
    background-image: url(../images/sub-menu-icon-active.svg);
}

.header-menu .sub-menu {
    position: absolute;
    top: 47px;
    left: -17px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 373px;
    width: max-content;
    padding: 20px;
    background-color: var(--text-primary-head);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 2;
}

.header-menu .sub-menu>li {
    display: flex;
    align-items: center;
    width: fit-content;
}

.header-menu .sub-menu>li a {
    position: relative;
    display: block;
    max-width: 270px;
    width: fit-content;
    font-size: var(--fs16);
    font-weight: var(--fw500);
    line-height: var(--lh120);
    color: var(--text-alt-head);
    background: transparent !important;
    transition: var(--transition);
}

.header-menu .sub-menu>li.active a {
    opacity: 0.5;
}

.header-menu .sub-menu::before {
    content: "";
    position: absolute;
    top: -28px;
    left: 0;
    width: 100%;
    height: 50%;
}

.header-menu .sub-menu::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../images/sub-menu-bg.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    mix-blend-mode: screen;
    opacity: 0.4;
    pointer-events: none;
}

/* ============ HEADER STYLES ================= */

#header {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 0px 0;
    /* background: var(--bg-primary-second); */
    transition: var(--transition);
    z-index: 100;

    .top-container {
        position: relative;
        width: 100%;
        height: 100%;
        padding: 15px 0;
        z-index: 100;

        &::after {
            content: "";
            position: absolute;
            top: 0px;
            left: 0px;
            width: 100%;
            height: 100%;
            background: var(--bg-primary-second);
            opacity: 0.9;
            z-index: -1;
        }
    }
}

#header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(148, 130, 113, 0.09) 0%, rgba(148, 130, 113, 0.3) 30%, rgba(148, 130, 113, 0.3) 70%, rgba(148, 130, 113, 0.09) 100%);
    z-index: -1;
}

#header .header__desc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

#header .header__desc .header__logo {
    padding: 10px 20px;
    margin-top: -20px;
    margin-bottom: -65px;
    z-index: 20;
    opacity: 0.8;
    position: relative;
    overflow: visible;

    .box-logo {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0px;
        left: 0px;
        opacity: 1;
        pointer-events: none;
        border-bottom: 1px solid black;

        &::after,
        &::before {
            content: "";
            position: absolute;
            width: 1px;
            height: 36px;
            bottom: 0px;
            opacity: 1;
            background: black;
        }

        &::after {
            right: 0px;
        }

        &::before {
            left: 0px;
        }
    }

    &::after,
    &::before {
        content: "";
        position: absolute;
        width: 100vw;
        height: 1px;
        bottom: 35px;
        opacity: 1;
        background: black;
    }

    &::after {

        left: 0px;
        transform: translateX(-100%);
    }

    &::before {
        right: 0px;
        transform: translateX(100%);
    }
}

#header .header__left {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 300px;
    width: 100%;
}

#header .header__location {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#header .header-address,
#header .header-worktime {
    display: flex;
    gap: 10px;
}

#header .header-address__icon,
#header .header-worktime__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

#header .header-address__icon img,
#header .header-address__icon svg,
#header .header-worktime__icon img,
#header .header-worktime__icon svg {
    object-fit: contain;
}

#header .header-address__value,
#header .header-address__value *,
#header .header-worktime__value * {
    font-size: var(--fs14);
    line-height: var(--lh130);
    color: var(--text-primary-main);
    text-wrap: balance;
}

#header .header__middle {
    display: flex;
    gap: 15px 30px;
    width: 100%;
}

#header .header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    max-width: 300px;
    width: 100%;
}

#header .header__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

#header .header-phone {
    color: var(--text-primary-head);
    transition: var(--transition);
    white-space: nowrap;
}

#header .header__modal {
    color: var(--colors-main);
    transition: var(--transition);
    cursor: var(--cursor-pointer);
}

#header .header__bvi-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(148, 131, 113, 0.4);
    border-radius: 5px;
    flex-shrink: 0;
    transition: var(--transition);
    cursor: var(--cursor-pointer);
}

#header .header__bvi-button img,
#header .header__bvi-button svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    object-fit: contain;
}

/* ================ MOBILE NAV STYLES ============= */

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 15px;
    width: 100%;
    padding: 15px;
    background: var(--bg-primary-second);
    visibility: hidden;
    pointer-events: none;
    z-index: 90;
}

.mobile-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(148, 130, 113, 0.09) 0%, rgba(148, 130, 113, 0.3) 30%, rgba(148, 130, 113, 0.3) 70%, rgba(148, 130, 113, 0.09) 100%);
}

.mobile-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: var(--cursor-pointer);
}

.mobile-nav__icon svg,
.mobile-nav__icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.mobile-nav__item .mobile-nav__caption {
    color: var(--text-primary-main);
    text-align: center;
    transition: var(--transition);
}

.mobile-nav__item.active .mobile-nav__icon path {
    stroke: var(--colors-main);
}

.mobile-nav__item.active .mobile-nav__caption {
    color: var(--colors-main);
}

/* ================ MOBILE MNU STYLES ============= */

#header .header__burger {
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 131, 113, 0.4);
    border-radius: 5px;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    cursor: var(--cursor-pointer);
    transition: var(--transition);
}

#header .header__burger svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
}

#header .header__burger.clicked {
    background: var(--hover-main);
    border-color: var(--hover-main);
}

#header .header__burger.clicked svg path {
    stroke: var(--text-alt-head);
}

#header #mobile-mnu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 320px;
    background-color: var(--bg-primary-second);
    padding: 20px 20px 60px;
    transition: var(--transition);
    transform: translateX(-320px);
    overflow-y: auto;
    z-index: 9998;
}

#header #mobile-mnu::before,
#header #mobile-mnu .sub-menu::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: var(--bg-primary-stroke);
}

#header #mobile-mnu #close-mnu {
    font-size: 30px;
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: var(--cursor-pointer);
    display: block;
    z-index: 50;
}

#header #mobile-mnu #close-mnu path {
    fill: var(--colors-main);
}

#header #mobile-mnu.opened {
    transform: translateX(0);
}

#header #mobile-mnu .mobile-modal {
    width: 100%;
}

#header #mobile-mnu .menu-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style-type: none;
}

#header #mobile-mnu .menu-mobile li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-weight: var(--fw500);
    font-size: var(--fs18);
    line-height: var(--lh120);
    color: var(--text-primary-head);
}

#header #mobile-mnu .menu-mobile li.active>a {
    color: var(--colors-main);
}

#header #mobile-mnu .nav-menu-element:has(.sub-menu)>a::after {
    content: "";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background-image: url(../images/sub-menu-icon.svg);
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(-90deg);
    flex-shrink: 0;
    transition: var(--transition);
}

#header #mobile-mnu .sub-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 320px;
    background-color: var(--bg-primary-second);
    padding: 20px 20px 60px;
    transition: var(--transition);
    transform: translateX(-320px);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999;
}

#header #mobile-mnu .sub-menu.opened {
    transform: translateX(0);
    z-index: 10;
}

#header #mobile-mnu .back-btn {
    display: flex;
    justify-content: flex-start !important;
    gap: 5px;
    align-items: center;
}

#header #mobile-mnu .back-btn::before {
    content: "";
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-image: url(../images/sub-menu-icon.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    rotate: 90deg;
}

/* =========== MEDIA HEADER =========== */

@media (max-width: 1650px) {
    #header .header__middle {
        gap: 15px 20px;
    }

    #header .header-menu {
        gap: 10px 20px;
    }
}

@media (max-width: 1441px) {
    #header .header__desc {
        position: relative;
    }

    #header .header__desc .header__left {
        margin-left: auto;
        max-width: unset;
        width: unset;
    }

    #header .header__desc .header__middle {
        flex-wrap: wrap;
        gap: 15px 20px;
        width: unset;
        padding-left: 145px;
        order: -1;
    }

    #header .header__desc .header-menu {
        gap: 10px 20px;
        width: unset;
    }

    #header .header__desc .header-menu--left {
        justify-content: flex-start;
    }

    #header .header__desc .header__logo {
        position: absolute;
        top: 0;
        left: 0;
        margin-top: -15px;
    }

    #header .header__actions {
        gap: 20px;
        max-width: unset;
        width: unset;
    }
}

@media (max-width: 1192px) {
    #header .header__location {
        display: none;
    }
}

@media (max-width: 1025px) {
    #header .header__desc .header__left {
        margin-left: unset;
    }

    #header .header__desc .header__middle {
        padding-left: unset;
        order: unset;
    }

    #header .header__desc .header__logo {
        left: 50%;
        transform: translateX(-50%);
    }

    #header .header__desc .header-menu {
        display: none;
    }

    #header .header__burger {
        display: flex;
    }

    .mobile-nav {
        visibility: visible;
        pointer-events: all;
    }

    #header .header__desc .header__logo {
        .box-logo {

            &::after,
            &::before {
                height: 6px;
            }
        }

        &::after,
        &::before {
            bottom: 6px;
        }
    }
}

@media (max-width: 650px) {
    #header {
        padding: 12px 0;
    }

    #header .header__desc .logo {
        margin-top: -12px;
    }

    #header .header__contacts {
        display: none;
    }
}

/* ============= FOOTER STYLES =========== */

#footer {
    margin-bottom: 20px;
}

#footer .footer__caption {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#footer .footer__caption::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(148, 130, 113, 0.09) 0%, rgba(148, 130, 113, 0.3) 30%, rgba(148, 130, 113, 0.3) 70%, rgba(148, 130, 113, 0.09) 100%);
    z-index: -1;
}

#footer .footer__caption__value {
    width: fit-content;
    height: fit-content;
    padding: 10px 15px;
    background: var(--bg-primary-second);
    text-align: center;
}

#footer .footer__wrapper {
    position: relative;
    z-index: 2;
    border-radius: 10px;
    background: var(--bg-alt-main);
    padding-top: 160px;
    padding-bottom: 10px;
    overflow: hidden;
}

#footer .footer__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    mix-blend-mode: screen;
}

#footer .footer__bg img {
    object-fit: cover;
}

#footer .footer__content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 20px;
    overflow: hidden;
	&:has(.footer_warning){
		gap:15px;
	}
}

#footer .footer_warning{
	color: var(--text-alt-main);
    font-size: 12px;
}

#footer .footer__top {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    min-height: 390px;
}

#footer .footer__section {
    width: 50%;
}

#footer .footer__left,
#footer .footer__right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
}

#footer .footer__menues {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

#footer .footer__nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: calc((100% - 40px) / 3);
}

#footer .footer__nav-title {
    color: var(--text-alt-main);
}

#footer .footer-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#footer .footer-menu li a {
    font-weight: var(--fw500);
    line-height: var(--lh120);
    color: var(--bg-primary-main);
}

#footer .footer__details {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

#footer .footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

#footer .footer__contacts-title {
    margin-bottom: 10px;
    color: var(--text-alt-main);
}

#footer .addresses,
#footer .phones,
#footer .worktime {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#footer .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

#footer a.contact-item,
#footer a.contact-item * {
    cursor: pointer;
}

#footer .contact-item__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

#footer .contact-item__icon img,
#footer .contact-item__icon svg {
    object-fit: contain;
}

#footer .contact-item__value,
#footer .contact-item__value * {
    color: var(--text-alt-main);
    text-wrap: balance;
    transition: var(--transition);
}

#footer .footer__actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 260px;
    width: 100%;
}

#footer .footer__modal {
    width: 100%;
}

#footer .footer__socials {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#footer .footer__socials-caption {
    color: var(--text-alt-main);
}

#footer .footer__text {
    max-width: 640px;
}

#footer .footer__text * {
    color: var(--text-alt-main);
}

#footer .footer__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    padding-top: 12px;
    border-top: 1px solid var(--colors-second);
}

#footer .dev {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    line-height: 1;
    color: var(--text-alt-main);
}

.glogo {
    width: 111px;
    height: 17px;
    mask-image: url("../images/gmask.png");
    mask-origin: border-box;
    mask-size: contain;
    mask-repeat: no-repeat;
    background-color: var(--text-alt-main);
    position: relative;
    cursor: pointer;
    display: inline-flex;
    vertical-align: sub;
    overflow: hidden;
    transition: var(--transition);
}

.glogo:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: red;
    transform: translateX(100%);
    transition: transform 0.7s ease-in;
    background: linear-gradient(90deg, #fe6604 10%, #ee0a76 30%, #ee0a76 60%, #fe6604 101%) repeat-x 0 0;
    background-size: 100px;
    animation-duration: 5s;
    animation-name: slideUp;
    animation-iteration-count: infinite;
    animation-delay: 3s;
}

@keyframes slideUp {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100%);
    }
}

#footer .footer__links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#footer .privacy-holder {
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: var(--text-alt-main);
}

#footer .footer__copy {
    color: var(--text-alt-main);
}

.site-core-cookie-notice {
    background: var(--bg-primary-main);
    border-top: 1px solid var(--colors-main);
}

.site-core-cookie-accept-button {
    background: var(--colors-main);
    border: 0;
    color: var(--text-alt-head);
    cursor: var(--cursor-pointer);
}

/* ============= MEDIA FOOTER =========== */

@media (max-width: 1441px) {
    #footer .footer__wrapper {
        padding-top: 80px;
    }

    #footer .footer__actions {
        width: auto;
    }
}

@media (max-width: 1192px) {
    #footer .footer__wrapper {
        padding-top: 40px;
    }

    #footer .footer__top {
        flex-direction: column;
        min-height: unset;
    }

    #footer .footer__section {
        width: 100%;
    }

    #footer .footer__bottom {
        flex-wrap: wrap;
    }

    #footer .dev {
        justify-content: center;
        width: 100%;
        order: 5;
    }
}

@media (max-width: 1025px) {
    #footer {
        margin-bottom: 88px;
    }

    #footer .footer__wrapper {
        padding-top: 20px;
    }

    #footer .footer__content,
    #footer .footer__top,
    #footer .footer__left,
    #footer .footer__right,
    #footer .footer__details {
        gap: 20px;
    }

    #footer .footer__bottom {
        flex-direction: column;
        align-items: center;
    }

    #footer .footer__bottom * {
        text-align: center;
    }

    #footer .footer__links {
        align-items: center;
    }
}

@media (max-width: 650px) {
    #footer .footer__wrapper {
        width: calc(100% + 30px);
        margin-left: -15px;
    }

    #footer .footer__menues {
        flex-direction: column;
    }

    #footer .footer__nav {
        width: 100%;
        gap: 10px;
    }

    #footer .footer-menu {
        flex-direction: row;
        flex-wrap: wrap;
    }

    #footer .footer__details {
        flex-wrap: wrap;
    }

    #footer .footer__actions {
        flex-direction: column-reverse;
        max-width: unset;
        width: 100%;
    }
}

/* ============== FIXED CONTACTS STYLES ============= */

.fixed-contacts {
    position: fixed;
    right: 10px;
    bottom: 20%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 50;
}

.fixed-contacts .socials {
    flex-direction: column;
    gap: 10px;
}

.fixed-contacts .fixed-contacts__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 5px;
    border: 1px solid var(--colors-main);
    background: var(--bg-primary-second);
    flex-shrink: 0;
    transition: var(--transition);
    cursor: pointer;
}

.fixed-contacts .fixed-scroll-top {
    opacity: 0;
    pointer-events: none;
}

.fixed-contacts .fixed-scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.fixed-contacts .fixed-contacts__btn svg,
.fixed-contacts .fixed-contacts__btn img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

@media (max-width: 1025px) {
    .fixed-contacts {
        right: 5px;
        bottom: 122px;
    }

    .fixed-contacts .socials__item,
    .fixed-contacts .fixed-contacts__btn {
        width: 34px;
        height: 34px;
    }
}

/* ============== MODAL STYLES ============= */

.fancybox__content .fancybox__html5video {
    outline: 0;
}

.theme-modal {
    display: none;
}

.theme-modal.fancybox__content {
    display: flex;
    flex-direction: column;
    max-width: 770px;
    width: 100%;
    overflow-y: auto;
    padding: 50px 130px;
    border-radius: 10px;
    background: var(--bg-primary-second);
    transition: var(--transition);
    z-index: 9999;
}

.theme-modal.fancybox__content .full-text {
    padding-right: 15px;
}

.theme-modal.fancybox__content .modal__title {
    margin-bottom: 30px;
    text-align: center;
}

#modal-success.theme-modal.fancybox__content .modal__title,
#modal-error.theme-modal.fancybox__content .modal__title {
    margin-bottom: 10px;
    text-align: center;
}

#modal-success.theme-modal.fancybox__content .modal__subtitle,
#modal-error.theme-modal.fancybox__content .modal__subtitle {
    text-align: center;
    text-wrap: balance;
}

.fancybox__toolbar__column.is-right .f-button svg path,
.fancybox__toolbar__column.is-right .f-button svg circle {
    stroke: var(--bg-primary-main);
}

.fancybox__toolbar__column.is-left .fancybox__infobar,
.fancybox__toolbar__column.is-left .fancybox__infobar * {
    color: var(--text-alt-head);
}

.fancybox__content>.f-button.is-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 5px !important;
    border: 1px solid transparent;
    background: var(--bg-primary-second);
    --f-button-width: 16px !important;
    --f-button-height: 16px !important;
    --f-button-svg-width: 100% !important;
    --f-button-svg-height: 100% !important;
    --f-button-bg: transparent !important;
    --f-button-active-bg: transparent !important;
    --f-button-hover-bg: transparent !important;
    top: 0 !important;
    right: 0 !important;
    opacity: 1 !important;
    transition: var(--transition);
}

.fancybox__content:has(iframe, video)>.f-button.is-close-btn {
    top: -56px !important;
}

.fancybox__content>.f-button.is-close-btn svg {
    width: 16px;
    height: 16px;
}

.fancybox__backdrop {
    background: rgba(65, 56, 51, 0.8) !important;
}

/* ============== FORM STYLES ============= */

input,
textarea,
select {
    outline: none;
    border: none;
    margin: 0;
    padding: 0;
}

textarea {
    resize: none;
    min-height: 100px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.form__inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.label-input {
    position: relative;
    width: 100%;
}

input,
textarea {
    display: block;
    padding: 23px 15px 7px;
    width: 100%;
    max-height: 53px;
    height: fit-content;
    color: var(--text-primary-head);
    background: var(--bg-primary-main);
    border: 1px solid var(--bg-primary-stroke);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    background: transparent;
    border-color: var(--text-primary-head);
}

input::placeholder,
textarea::placeholder {
    transform: translateY(5px);
    color: var(--text-primary-head);
    opacity: 0;
    transition: var(--transition);
}

input:focus::placeholder,
textarea:focus::placeholder {
    opacity: 1;
    transform: translateY(0px);
}

input.error,
textarea.error,
select.error,
input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
    border-color: #ff3c3c;
    color: #ff3c3c !important;
}

input.error::placeholder,
input[aria-invalid="true"]::placeholder,
textarea[aria-invalid="true"]::placeholder {
    color: #ff3c3c !important;
}

.label-text {
    position: absolute;
    left: 15px;
    top: 18px;
    font-size: var(--fs16);
    color: var(--text-primary-second);
    transition: 0.3s linear;
    pointer-events: none;
}

.label-text.label-text-error {
    opacity: 0;
    color: #ff3c3c !important;
}

.label-input:has(input:focus) .label-text,
.label-input:has(textarea:focus) .label-text,
.label-input input:not(:placeholder-shown)~.label-text,
.label-input textarea:not(:placeholder-shown)~.label-text {
    transform: translateY(-9px);
    font-size: 12px;
    color: var(--text-primary-second);
}

.label-input:has(input.error) .label-text,
.label-input:has(textarea.error) .label-text {
    opacity: 0;
}

.label-input:has(input.error) .label-text.label-text-error,
.label-input:has(textarea.error) .label-text.label-text-error {
    opacity: 1;
}

.file label {
    width: fit-content;
    cursor: pointer;
    transition: var(--transition);
}

.file .file__title {
    color: var(--text-alt-head);
    transition: var(--transition);
    cursor: pointer;
}

.file__upload-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form:has(.file__item) .file__upload-wrap {
    margin-top: 10px;
}

.file__item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.file__item p {
    font-size: 14px;
    color: var(--text-alt-main);
}

.file__item-delete {
    cursor: pointer;
}

.file__item-delete svg {
    width: 12px;
    height: 12px;
}

.file__item-delete svg path {
    fill: var(--colors-main);
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 20px;
    width: 100%;
    max-height: 56px;
    height: fit-content;
    text-indent: 0px;
    color: var(--text-primary-second);
    background: var(--bg-primary-main);
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

select:focus {
    color: var(--text-primary-main);
}

.select-arrow {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    z-index: 2;
    pointer-events: none;
}

select:focus~.select-arrow path {
    stroke: var(--text-primary-second);
}

select.error~.select-arrow path {
    stroke: #ff3c3c;
}

.form input.hidden {
    display: none;
}

.form__buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form__buttons .btn {
    width: 100%;
}

.form__buttons .privacy-policy {
    position: relative;
    width: 100%;
    padding-left: 34px;
    color: var(--text-primary-main);
    transition: var(--transition);
}

.form__buttons .privacy-policy a {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-decoration: underline;
    text-decoration-skip-ink: none;
}

.form__buttons .privacy-policy:has(.error),
.form__buttons .privacy-policy:has(.error) a {
    color: #ff3c3c !important;
}

input[type="checkbox"] {
    appearance: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    padding: 0;
    background: transparent !important;
    border: 1px solid var(--text-primary-main);
    border-radius: 5px;
    flex-shrink: 0;
    transition: var(--transition);
    cursor: pointer;
}

input[type="checkbox"]::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-image: url(../images/input-check.svg);
    background-repeat: no-repeat;
    background-size: 14px;
    background-position: center;
    opacity: 0;
    transition: var(--transition);
}

input[type="checkbox"]:checked::before {
    opacity: 1;
}

input[type="checkbox"].error,
input[type="checkbox"].error {
    border-color: #ff3c3c !important;
}

input[type="checkbox"]:checked {
    border-color: var(--colors-main) !important;
    background-color: var(--colors-main) !important;
}

/* ============ CUSTOM DROWDOWN ================= */

.custom-dropdown {
    position: relative;
}

.dropdown-trigger {
    position: relative;
    cursor: pointer;
}

.dropdown-trigger::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url(../images/select-dark.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    transition: var(--transition);
}

.custom-dropdown.opened .dropdown-trigger::after {
    transform: translateY(-50%) scaleY(-1);
}

.dropdown-value {
    display: block;
    padding: 15px;
    width: 100%;
    max-height: 53px;
    height: fit-content;
    border-radius: 5px;
    border: 1px solid var(--bg-primary-stroke);
    background: var(--bg-primary-main);
    color: var(--text-primary-main);
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.custom-dropdown.opened .dropdown-value {
    background: transparent;
    border-color: var(--text-primary-head);
}

.dropdown-list {
    position: absolute;
    z-index: 3;
    top: 55px;
    left: 0;
    transform: translateY(5px);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 210px;
    border-radius: 5px;
    background: var(--bg-primary-main);
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.dropdown-list.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.dropdown-item {
    padding: 10px 15px;
    transition: var(--transition);
    cursor: pointer;
}

.dropdown-item.active {
    background: var(--colors-main);
    color: var(--text-alt-head);
}

/* ============ FORM DARK-THEME STYLES ================= */

.form.dark-theme input,
.form.dark-theme textarea,
.form.dark-theme .dropdown-value {
    border-color: rgba(239, 237, 234, 0.4);
    background: transparent;
    color: var(--text-alt-head);
}

.form.dark-theme input:focus,
.form.dark-theme textarea:focus,
.form.dark-theme .custom-dropdown.opened .dropdown-value {
    border-color: var(--bg-primary-main);
    background: var(--bg-primary-main);
    color: var(--text-primary-head);
}

.form.dark-theme .label-text {
    position: absolute;
    left: 15px;
    top: 17px;
    font-size: var(--fs16);
    color: var(--text-alt-head);
    transition: 0.3s linear;
    pointer-events: none;
}

.form.dark-theme .label-input:has(input:focus) .label-text,
.form.dark-theme .label-input:has(textarea:focus) .label-text {
    color: var(--text-primary-main) !important;
}

.form.dark-theme .label-input input:not(:placeholder-shown)~.label-text,
.form.dark-theme .label-input textarea:not(:placeholder-shown)~.label-text {
    transform: translateY(-9px);
    font-size: 12px;
    color: var(--text-alt-head);
}

.form.dark-theme .form__buttons .privacy-policy,
.form.dark-theme .form__buttons .privacy-policy a {
    color: var(--text-alt-main);
}

.form.dark-theme input[type="checkbox"] {
    border-color: var(--text-alt-head);
}

.form.dark-theme .dropdown-trigger::after {
    background-image: url(../images/select-light.svg);
}

.form.dark-theme .custom-dropdown.opened .dropdown-trigger::after {
    background-image: url(../images/select-dark.svg);
}

/* ============ MEDIA FORM ================= */

@media (max-width: 1025px) {
    .theme-modal.fancybox__content {
        padding: 20px;
    }

    #modal-full-text.theme-modal.fancybox__content {
        padding-top: 40px;
    }

    .fancybox__content>.f-button.is-close-btn {
        width: 40px;
        height: 40px;
    }

    .fancybox__content:has(iframe, video)>.f-button.is-close-btn {
        top: -50px !important;
    }

    .theme-modal.fancybox__content .modal__title {
        margin: 0 20px 20px;
    }

    .form {
        gap: 20px;
    }
}

@media (max-width: 650px) {
    .form__inputs {
        gap: 10px;
    }

    .form__buttons {
        gap: 10px;
    }

    .form__buttons .privacy-policy {
        font-size: 14px;
    }
}

/* ============= 404 ERROR PAGE =========== */

.error-page__holder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.error-page__img {
    max-width: 580px;
    width: 100%;
    height: auto;
    aspect-ratio: 58 / 22;
}

.error-page__img img {
    object-fit: contain;
}

.error-page__text * {
    text-align: center;
}

.error-page__btn {
    max-width: 380px;
}

/* ============= MEDIA 404 ERROR PAGE =========== */

@media (max-width: 650px) {
    .error-page__holder {
        gap: 20px;
    }
}


/* ============= TAGS STYLES =========== */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    width: fit-content;
    height: fit-content;
    padding: 5px 10px;
    border-radius: 3px;
    background: var(--bg-primary-second);
}

/* ============= TABS STYLES =========== */

.tabs-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    width: fit-content;
    padding: 5px;
    border-radius: 5px;
    background: var(--bg-primary-main);
    margin: 0 auto 20px;
}

.tabs-btn {
    flex: 1 1 auto;
    width: fit-content !important;
    justify-content: center;
    padding: 15px 28px;
    text-align: center;
    white-space: normal;
}

.tabs-btn.active {
    background: var(--hover-main) !important;
    border-color: var(--hover-main) !important;
    color: var(--text-alt-head) !important;
    pointer-events: none !important;
}

.tabs-btn.is-loading {
    opacity: 0.5;
}

/* ============= MEDIA TABS STYLES =========== */

@media (max-width: 650px) {
    .tabs-btns {
        width: 100%;
    }
}

/* ============= PRELOADER STYLES =========== */

.preloader {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
}

.preloader.visible {
    opacity: 1;
    pointer-events: auto;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--colors-main);
    border-radius: 50%;
    border-top-color: rgba(0, 0, 0, 0.1);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* ============= CAT SERIVES STYLES FOR BLOCK =========== */

.cat-services-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.cat-services-item__left {
    position: sticky;
    top: 135px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 50%;
    height: 100%;
}

.cat-services-item__card {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: var(--bg-alt-main);
    overflow: hidden;
    z-index: 2;
}

.cat-services-item__card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* mix-blend-mode: screen; */
    z-index: -1;
}

.cat-services-item__card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    max-width: 400px;
    padding: 10px;
    flex-grow: 1;
}

.cat-services-item__card-title.h4 {
    color: var(--text-alt-head);
}

.cat-services-item__card-caption {
    color: var(--text-alt-head);
}

.cat-services-item__card-img {
    align-self: flex-end;
    max-width: 250px;
    min-width: 160px;
    width: 45%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin-right: 15px;
}

.cat-services-item__card-img img {
    object-fit: contain;
}

.cat-services-item__services {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 50%;
    flex-grow: 1;
}

.cat-services-item__service {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    border-radius: 5px;
    padding: 10px;
    border-bottom: 2px solid transparent;
    box-shadow: -20px 20px 40px 0 rgba(210, 206, 203, 0.2);
    background: var(--bg-primary-main);
    transition: var(--transition);
}

.cat-services-item__service-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    max-width: 530px;
}

.cat-services-item__service-name {
    transition: var(--transition);
}

.cat-services-item__service-price .price-value {
    color: var(--text-primary-head);
    font-size: var(--fs15);
    font-weight: 600;
    white-space: nowrap;
}

.cat-services-item__service-btn {
    gap: 0;
    align-self: flex-start;
    justify-content: space-between;
    max-width: 200px;
    width: 48px;
    overflow: hidden;
    flex-shrink: 0;
}

.cat-services-item__service-btn span {
    width: 0;
    opacity: 0;
    text-align: left;
    white-space: normal;
    transition: all var(--transition);
    pointer-events: none;
}


@media (min-width: 1025px) {
    .cat-services-item__service:hover {
        background: var(--bg-primary-second);
        border-color: var(--colors-second);
    }

    .cat-services-item__service:hover .cat-services-item__service-name {
        color: var(--colors-main);
    }

    .cat-services-item__service:hover .cat-services-item__service-btn {
        width: 200px;
    }

    .cat-services-item__service:hover .cat-services-item__service-btn span {
        opacity: 1;
    }
}

@media (max-width: 1441px) {
    .cat-services-item__service:hover .cat-services-item__service-btn {
        width: 150px;
    }
}

@media (max-width: 1192px) {
    .cat-services-item__service {
        flex-direction: column;
        gap: 15px;
    }

    .cat-services-item__service-content {
        gap: 15px;
        max-width: unset;
    }

    .cat-services-item__service-btn {
        gap: 10px;
        max-width: unset;
        width: 100% !important;
    }

    .cat-services-item__service-btn span {
        opacity: 1;
        width: auto;
    }
}

@media (max-width: 1025px) {
    .cat-services-item {
        flex-direction: column;
        gap: 20px;
    }

    .cat-services-item__left,
    .cat-services-item__services {
        width: 100%;
    }

    .cat-services-item__left {
        position: relative;
        top: unset;
        gap: 20px;
    }

    .cat-services-item__card-img {
        max-width: 160px;
    }

    .cat-services-item__service {
        flex-direction: row;
        /* flex-wrap: wrap; */
    }

    .cat-services-item__service-btn {
        max-width: unset;
        width: fit-content !important;
    }
}

@media (max-width: 650px) {
    .cat-services-item__card-content {
        gap: 20px;
        max-width: unset;
    }

    .cat-services-item__card-img {
        display: none;
    }

    .cat-services-item__service {
        flex-direction: column;
    }

    .cat-services-item__service-btn {
        width: 100% !important;
    }
}

/* ============= SERVISES STYLES =========== */

.services__holder .services-caption {
    margin-top: 10px;
}

.services-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.item-service {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: calc((100% - 10px) / 2);
    padding: 10px;
    border: 1px solid var(--colors-main);
    border-radius: 5px;
    background: var(--bg-primary-second);
    transition: var(--transition);
}

.item-service__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    flex-grow: 1;
}

.item-service__details {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
}

.item-service__price .price-value {
    font-size: var(--fs15);
    font-weight: 600;
    color: var(--text-primary-head);
    white-space: nowrap;
}

.item-service__btn {
    gap: 0;
    align-self: flex-start;
    justify-content: space-between;
    max-width: 150px;
    width: 48px;
    background: var(--bg-primary-main);
    overflow: hidden;
    flex-shrink: 0;
}

.item-service__btn span {
    width: 0;
    opacity: 0;
    text-align: left;
    white-space: normal;
    transition: var(--transition);
    pointer-events: none;
}

.item-service__img {
    position: relative;
    max-width: 160px;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 5px;
    background: var(--bg-alt-main);
    overflow: hidden;
}

.item-service__img>img {
    filter: blur(10px);
    -webkit-filter: blur(10px);
    object-fit: contain;
    transition: var(--transition);
}

.item-service__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: screen;
}

.item-service__bg img {
    object-fit: cover;
}

/* ============= MEDIA SERVICES =========== */

@media (min-width: 1025px) {
    .item-service:hover {
        background: var(--bg-primary-main);
        border-color: var(--bg-primary-main);
    }

    .item-service:hover .item-service__btn {
        width: 150px;
    }

    .item-service:hover .item-service__btn span {
        opacity: 1;
    }

    .item-service:hover .item-service__img img {
        filter: blur(0);
        -webkit-filter: blur(0);
    }
}

@media (max-width: 1025px) {
    .item-service {
        width: 100%;
    }

    .item-service__btn {
        width: 100%;
    }

    .item-service__btn span {
        width: auto;
        opacity: 1;
    }

    .item-service__img img {
        filter: unset;
        -webkit-filter: unset;
    }
}

@media (max-width: 650px) {
    .item-service__details {
        flex-direction: column;
        align-items: unset;
        gap: 10px;
    }

    .item-service__btn {
        max-width: unset;
    }
}

@media (max-width: 498px) {
    .item-service {
        flex-direction: column-reverse;
    }

    .item-service__content {
        gap: 10px;
    }

    .item-service__img {
        max-width: unset;
        height: 160px;
    }

    .item-service__img>img {
        filter: unset;
        -webkit-filter: unset;
    }
}

/* ============= REVIEWS LINKS STYLES =========== */

.reviews-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    background: var(--bg-primary-main);
    margin-bottom: var(--m40);
}

.review-link {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    width: calc((100% - 30px) / 4);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--bg-primary-second);
    background: var(--bg-primary-second);
    transition: var(--transition);
}

.review-link__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.review-link__rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-link__stars {
    position: relative;
    width: 82px;
    height: 24px;
}

.review-link__stars-gray,
.review-link__stars-gold {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    width: 100%;
    height: 100%;
}

.review-link__star {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.review-link__star svg,
.review-link__star img {
    object-fit: contain;
}

.review-link__stars-gold {
    z-index: 2;
    overflow: hidden;
}

.review-link__value {
    color: var(--text-primary-head);
}

.review-link__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.review-link__icon img,
.review-link__icon svg {
    object-fit: contain;
}

.review-link__bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-link__img {
    width: auto;
    height: 24px;
}

.review-link__img img {
    object-fit: contain;
    object-position: top left;
}

/* ============= MEDIA REVIEWS LINKS =========== */

@media (max-width: 1192px) {
    .review-link {
        gap: 20px;
        width: calc((100% - 10px) / 2);
    }
}

@media (max-width: 650px) {
    .review-link {
        width: 100%;
    }
}

/* ============= REVIEWS STYLES =========== */

.reviews-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 10px;
}

.reviews-block .item-review {
    width: 100%;
    height: 100%;
}

.item-review {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 50px;
    width: calc((100% - 30px) / 4);
    padding: 10px;
    border-radius: 5px;
    background: var(--bg-primary-main);
    overflow: hidden;
    transition: var(--transition);
}

.item-review:has(.item-review__img) {
    padding: 0;
    border: 1px solid var(--bg-primary-stroke);
    min-height: 250px;
}

.item-review__top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-review__details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px 15px;
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bg-primary-stroke);
}

.item-review__name {
    color: var(--text-primary-main);
}

.item-review__date {
    color: var(--text-primary-second);
}

.item-review__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.item-review__gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.item-review__gallery-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
    cursor: var(--cursor-pointer);
}

.item-review__gallery-img img {
    object-fit: cover;
}

.item-review__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
    overflow: hidden;
}

.item-review__text * {
    color: var(--text-primary-head);
}

.item-review__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: var(--cursor-pointer);
}

.item-review__img img {
    object-fit: contain;
}

/* ============= MEDIA REVIEWS =========== */

@media (max-width: 1192px) {
    .item-review {
        gap: 20px;
        width: calc((100% - 20px) / 3);
    }
}

@media (max-width: 1025px) {
    .reviews-items {
        gap: 10px;
    }
}

@media (max-width: 769px) {
    .reviews-items {
        gap: 10px;
    }

    .item-review {
        width: calc((100% - 10px) / 2);
    }
}

@media (max-width: 498px) {
    .item-review {
        width: 100%;
    }
}

/* ============= WORKS STYLES =========== */

.works-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 10px;
}

.works-block .tabs-content {
    position: relative;
}

.works-block .works-block__wrapper {
    transition: var(--transition);
}

.works-block .works-block__wrapper.hidden {
    opacity: 0;
    pointer-events: none;
}

.works-block .item-work {
    width: 100%;
    height: 100%;
}

.item-work {
    display: flex;
    flex-direction: column;
    width: calc((100% - 10px) / 2);
    padding: 10px;
    border-radius: 10px;
    background: var(--bg-primary-main);
}

.item-work__media {
    display: flex;
    gap: 5px;
}

.item-work__media:not(:last-child) {
    margin-bottom: 10px;
}

.item-work__img {
    position: relative;
    width: 50%;
    min-height: 100px;
    height: auto;
    aspect-ratio: 37 / 18;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
}

.item-work__img img {
    object-fit: cover;
}

.item-work__img-tag {
    position: absolute;
    top: 5px;
    left: 5px;
    width: fit-content;
    height: fit-content;
    padding: 5px 10px;
    border-radius: 3px;
    background: var(--bg-primary-second);
    pointer-events: none;
}

.item-work__tags:not(:last-child) {
    margin-bottom: 20px;
}

.item-work__title:not(:last-child) {
    margin-bottom: 10px;
}

.item-work__desc {
    max-width: 605px;
    max-height: 150px;
    padding-top: 2px;
    padding-right: 15px;
    overflow-y: auto;
}

.item-work__desc:not(:last-child) {
    margin-bottom: 30px;
}

.item-work__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 60px;
    margin-top: auto;
}

.item-work__characteristics {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
}

.item-work__characteristic {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 145px;
    width: fit-content;
}

.item-work__btn {
    flex: 1 1 auto;
}

/* ============= MEDIA WORKS =========== */

@media (max-width: 1441px) {
    .item-work__bottom {
        gap: 10px 30px;
    }

    .item-work__characteristics {
        gap: 15px 20px;
    }
}

@media (max-width: 1192px) {
    .item-work__desc:not(:last-child) {
        margin-bottom: 20px;
    }

    .item-work__characteristic {
        min-width: unset;
    }

    .item-work__btn {
        width: 100%;
    }
}

@media (max-width: 1025px) {
    .works-items {
        gap: 10px;
    }
}

@media (max-width: 650px) {
    .item-work {
        width: 100%;
    }
}

/* ============= DOCUMENTS STYLES =========== */

.documents-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 10px;
}

.documents-block .item-document {
    width: 100%;
    height: 100%;
}

.item-document {
    display: flex;
    flex-direction: column;
    gap: 50px;
    width: calc((100% - 30px) / 4);
    border-radius: 5px;
    padding: 10px;
    border: 1px solid var(--bg-primary-main);
    background: var(--bg-primary-main);
    transition: var(--transition);
    cursor: pointer;
}

.item-document__info {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
}

.item-document__ext {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 60px;
    padding: 10px;
    border-radius: 5px;
    flex-shrink: 0;
    background: var(--colors-second);
    color: var(--text-alt-head);
    text-transform: uppercase;
}

/* ============= MEDIA DOCUMENTS =========== */

@media (max-width: 1441px) {
    .item-document {
        gap: 40px;
        width: calc((100% - 20px) / 3);
    }
}

@media (max-width: 1192px) {
    .item-document {
        gap: 20px;
    }

    .item-document__ext {
        min-width: 50px;
        height: 40px;
    }
}

@media (max-width: 1025px) {
    .documents-items {
        gap: 10px;
    }

    .item-document {
        width: calc((100% - 10px) / 2);
    }
}

@media (max-width: 650px) {
    .item-document {
        width: 100%;
    }
}

/* ============= STOCKS STYLES =========== */

.stocks-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 10px;
}

.stocks-block .item-stock {
    width: 100%;
    height: 100%;
}

.item-stock {
    display: flex;
    flex-direction: column;
    width: calc((100% - 10px) / 2);
    padding: 10px;
    border-radius: 10px;
    background: var(--bg-primary-main);
    border: 1px solid var(--bg-primary-main);
    transition: var(--transition);
    cursor: pointer;
}

.item-stock__tags:not(:last-child) {
    margin-bottom: 15px;
}

.item-stock__tag {
    transition: var(--transition);
}

.item-stock__name {
    transition: var(--transition);
}

.item-stock__name:not(:last-child) {
    margin-bottom: 40px;
}

.item-stock__content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    height: 100%;
    margin-top: auto;
}

.item-stock__info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.item-stock__desc strong {
    color: var(--colors-main) !important;
}

.item-stock__img {
    position: relative;
    z-index: 2;
    align-self: flex-end;
    max-width: 240px;
    width: 32%;
    height: auto;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 5px;
    background: var(--text-primary-head);
    overflow: hidden;
}

.item-stock__img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../images/stock-decor.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: -1;
}

.item-stock__img img {
    object-fit: contain;
    object-position: bottom center;
}

.item-stock__btn {
    max-width: 250px;
    width: 100%;
}

/* ============= MEDIA STOCKS =========== */

@media (max-width: 1441px) {
    .item-stock__info {
        gap: 20px;
    }
}

@media (max-width: 1192px) {
    .item-stock__name:not(:last-child) {
        margin-bottom: 20px;
    }

    .item-stock__img {
        display: none;
    }

    .item-stock__btn {
        max-width: unset;
    }
}

@media (max-width: 1025px) {
    .stocks-items {
        gap: 10px;
    }
}

@media (max-width: 769px) {
    .item-stock {
        width: 100%;
    }
}

/* ============= DOCTORS STYLES =========== */

.doctors-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 10px;
}

.doctors-block .item-doctor {
    width: 100%;
    height: 100%;
}

.item-doctor {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: calc((100% - 30px) / 4);
    padding: 10px;
    border-radius: 10px;
    border-bottom: 2px solid var(--bg-primary-main);
    background: var(--bg-primary-third);
    transition: var(--transition);
    overflow: hidden;
}

.item-doctor__link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* pointer-events: none; */
}

.item-doctor__top {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.item-doctor__media {
    position: relative;
    max-width: 300px;
    width: 83%;
    max-height: 400px;
    height: auto;
    aspect-ratio: 6 / 8;
    border-radius: 5px;
    flex-shrink: 0;
    overflow: hidden;
}

.item-doctor__img,
.item-doctor__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.item-doctor__img img {
    /* opacity: 0; */
    object-fit: cover;
}

.item-doctor__video {
    object-fit: cover;
    z-index: -1;
}

.item-doctor__experience {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-doctor__name {
    margin-bottom: 30px;
    transition: var(--transition);
}

.item-doctor__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
}

.item-doctor__position {}

.item-doctor__btn {
    /* flex: 1 1 auto; */
    justify-content: center;
    text-align: center;
}

/* ============= MEDIA DOCTORS =========== */

@media (max-width: 1441px) {
    .item-doctor__top {
        flex-direction: column;
    }

    .item-doctor__media {
        max-width: unset;
        width: 100%;
    }

    .item-doctor__experience {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    .item-doctor__experience-text {
        font-size: 14px;
    }

    .item-doctor__name {
        margin-bottom: 20px;
    }

    .item-doctor__bottom {
        flex-wrap: wrap;
        gap: 10px;
    }

    .item-doctor__btn {
        width: 100%;
    }
}

@media (max-width: 1192px) {
    .item-doctor {
        width: calc((100% - 20px) / 3);
    }
}

@media (max-width: 1025px) {
    .doctors-items {
        gap: 10px;
    }
}

@media (max-width: 769px) {
    .item-doctor {
        width: calc((100% - 10px) / 2);
    }
}

@media (max-width: 498px) {
    .item-doctor__name {
        margin-bottom: 10px;
        font-size: 16px;
    }
}

@media (max-width: 375px) {
    .item-doctor {
        width: 100%;
    }

    .item-doctor__media {
        aspect-ratio: 1 / 1;
    }
}

/* ============= SINGLE DOCTORS STYLES =========== */

.single-doctors__wrapper {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.single-doctors__media {
    position: sticky;
    top: 135px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 640px;
    width: 45%;
    height: fit-content;
}

.single-doctors__media:not(:has(.single-doctors__video-holder)) {
    .single-doctors__img {
        margin: 0px auto;
    }
}

.single-doctors__video-holder {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 40%;
}

.single-doctors__video {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 25 / 33;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.single-doctors__video::before {
    content: "";
    background: var(--colors-second);
    opacity: 0.5;
}

.single-doctors__preview,
.single-doctors__video::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.single-doctors__preview {
    z-index: -1;
}

.single-doctors__preview img {
    object-fit: cover;
}

.single-doctors__img {
    width: 60%;
    max-height: 500px;
    height: auto;
    aspect-ratio: 38 / 50;
    border-radius: 10px;
    overflow: hidden;
}

.single-doctors__img img {
    object-fit: cover;
    object-position: top;
}

.single-doctors__gallery {
    width: 100%;
    min-width: 0;
}

.single-doctors__gallery-swiper {
    width: 100%;
}

/* Слайд 60% ширины: вертикальные фото видно целиком, а не только лицо */
.single-doctors__gallery-swiper .swiper-slide {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 60%;
    height: auto;
}

.single-doctors__gallery-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 38 / 50;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
}

/* Если слайд один — центрируем его и без Swiper (когда JS не отработал) */
.single-doctors__gallery-swiper .swiper-slide:only-child {
    margin-left: auto;
    margin-right: auto;
}

.single-doctors__info-holder {
    max-width: 770px;
    width: 55%;
}

.single-doctors__info {
    display: flex;
    flex-direction: column;
    max-width: 640px;
}

.single-doctors__experience {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10.5px;
}

.single-doctors__position {
    margin-bottom: 20px;
}

.single-doctors__short-desc {
    margin-bottom: 30px;
}

.single-doctors__short-desc * {
    color: var(--text-primary-head);
}

.single-doctors__btn-holder {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 20px;
}

.single-doctors__btn-holder:not(:last-child) {
    margin-bottom: 40px;
}

.single-doctors__btn {
    flex: 1 1 auto;
}

.single-doctors__btn-caption {
    max-width: 200px;
    width: 100%;
    color: var(--text-primary-second);
}

.single-doctors__about {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.single-doctors__text-section {
    display: flex;
    flex-direction: column;
    gap: 20px;

    .single-doctors__text-value {
        text-align: justify;
    }
}

/* ============= MEDIA SINGLE DOCTORS =========== */

@media (max-width: 1192px) {

    .single-doctors__short-desc,
    .single-doctors__btn-holder:not(:last-child) {
        margin-bottom: 20px;
    }

    .single-doctors__about {
        gap: 20px;
    }
}

@media (max-width: 1025px) {
    .single-doctors__wrapper {
        gap: 20px;
    }
}

@media (max-width: 769px) {
    .single-doctors__wrapper {
        flex-direction: column;
        align-items: center;
    }

    .single-doctors__media {
        position: static;
        max-width: 450px;
        width: 100%;
    }

    .single-doctors__video-holder,
    .single-doctors__img {
        width: 50%;
    }

    .single-doctors__info-holder,
    .single-doctors__info {
        max-width: unset;
        width: 100%;
    }
}

@media (max-width: 650px) {
    .single-doctors__btn-caption {
        max-width: unset;
        text-align: center;
    }
}

/* ============= HOVER STYLES =========== */

@media (min-width: 1025px) {
    a:hover {
        color: var(--hover-main);
    }

    .text-editor a:hover,
    .full-text a:hover {
        color: var(--colors-main);
    }

    .breadcrumbs span:hover {
        color: var(--hover-main);
    }

    .btn.btn--primary:hover {
        background: var(--hover-main);
        border-color: var(--hover-main);
        color: var(--text-alt-head);
    }

    .btn.btn--second:hover {
        background: var(--bg-primary-second);
        /* border-color: var(--hover-main); */
        /* color: var(--hover-main); */
        color: #0fad94;
        border-color: #0fad94;
    }

    .btn.btn--second:hover svg path {
        stroke: var(--hover-main);
    }

    .btn-more-text:hover,
    .show-more:hover span {
        color: var(--hover-main);
    }

    .btn-more-text:hover span::before {
        width: 100%;
    }

    .btn-more-text:hover path,
    .show-more:hover path {
        stroke: var(--hover-main);
    }

    .pagination .page-numbers.prev:hover,
    .pagination .page-numbers.next:hover,
    .btn-navigation.swiper-button-prev:hover,
    .btn-navigation.swiper-button-next:hover {
        border-color: var(--hover-main);
        background: var(--bg-primary-second);
    }

    .pagination .page-numbers.prev:hover path,
    .pagination .page-numbers.next:hover path,
    .btn-navigation.swiper-button-prev:hover path,
    .btn-navigation.swiper-button-next:hover path {
        stroke: var(--hover-main);
    }

    .pagination .page-numbers:hover {
        color: var(--text-alt-head);
        background: var(--colors-main);
    }

    .socials__item:hover {
        background: var(--colors-main);
        border-color: var(--colors-main);
    }

    .socials__item:hover path {
        fill: var(--text-alt-head);
    }

    .img-holder:hover .img-hover {
        transform: translate(0, 0);
        opacity: 1;
    }

    .header-menu>li.has-childs:hover .sub-menu {
        opacity: 1;
        visibility: visible;
    }

    .header-menu>.nav-menu-element:hover>a {
        color: var(--hover-main);
    }

    .header-menu .nav-menu-element:has(.sub-menu):hover>a::after {
        transform: scaleY(-1);
        background-image: url(../images/sub-menu-icon-hover.svg);
    }

    .header-menu .sub-menu>li a:hover {
        opacity: 0.5;
    }

    #header .header-phone:hover,
    #header .header__modal:hover {
        color: var(--hover-main);
    }

    #header .header__bvi-button:hover {
        border-color: var(--hover-main);
    }

    #header .header__bvi-button:hover path {
        stroke: var(--hover-main);
    }

    .mobile-nav__item:hover .mobile-nav__icon path {
        stroke: var(--hover-main);
    }

    .mobile-nav__item:hover .mobile-nav__caption {
        color: var(--hover-main);
    }

    #footer a.footer__nav-title:hover,
    #footer .footer-menu li a:hover {
        opacity: 0.5;
    }

    #footer a.contact-item:hover .contact-item__value {
        color: var(--text-alt-head);
    }

    .site-core-cookie-accept-button:hover {
        background: var(--hover-main);
        color: var(--text-alt-head);
    }

    #footer .privacy-holder:hover,
    #footer .dev:hover {
        color: var(--text-alt-head);
    }

    #footer .dev:hover .glogo {
        background-color: var(--text-alt-head);
    }

    .fixed-contacts .fixed-contacts__btn:hover {
        background: var(--colors-main);
        border-color: var(--colors-main);
    }

    .fixed-contacts .fixed-contacts__btn:hover path {
        stroke: var(--bg-primary-main);
    }

    .fancybox__content>.f-button.is-close-btn:hover {
        border-color: var(--hover-main);
    }

    .fancybox__content .f-button.is-close-btn:hover svg path {
        fill: transparent !important;
        stroke: var(--hover-main) !important;
    }

    input:hover,
    textarea:hover {
        background: transparent;
        border-color: var(--text-primary-head);
    }

    .label-input:has(input:hover) .label-text,
    .label-input:has(textarea:hover) .label-text {
        color: var(--text-primary-main);
    }

    .file label:hover .file__title {
        color: var(--text-alt-main);
    }

    .file label:hover .file__icon path {
        stroke: var(--hover-main);
    }

    select:hover {
        color: var(--text-primary-main);
    }

    select:hover~.select-arrow path {
        stroke: var(--text-primary-second);
    }

    .form__buttons .privacy-policy a:hover {
        color: var(--colors-main);
    }

    input[type="checkbox"]:hover {
        border-color: var(--hover-main) !important;
    }

    .dropdown-value:hover {
        background: transparent;
        border-color: var(--text-primary-head);
    }

    .dropdown-item:hover {
        background: var(--colors-main);
        color: var(--text-alt-head);
    }

    .form.dark-theme input:hover,
    .form.dark-theme textarea:hover,
    .form.dark-theme .dropdown-value:hover {
        border-color: var(--bg-primary-main);
        background: var(--bg-primary-main);
        color: var(--text-primary-head);
    }

    .form.dark-theme .label-input:has(input:hover) .label-text,
    .form.dark-theme .label-input:has(textarea:hover) .label-text {
        color: var(--text-primary-main) !important;
    }

    .form.dark-theme .form__buttons .privacy-policy a:hover {
        color: var(--text-alt-head);
    }

    .form.dark-theme:has(.dropdown-value:hover) .dropdown-trigger::after {
        background-image: url(../images/select-dark.svg);
    }

    .review-link:hover {
        border: 1px solid var(--bg-primary-stroke);
        background: var(--bg-primary-main);
    }

    .item-document:hover {
        border-color: var(--colors-second);
        background: transparent;
    }

    .item-doctor:hover {
        background: var(--bg-primary-second);
        border-color: var(--colors-second);
    }

    .item-doctor:hover .item-doctor__name {
        color: var(--hover-main);
    }

    .item-doctor:has(.item-doctor__video):hover .item-doctor__img {
        opacity: 0;
    }

    .item-stock:hover {
        border-color: var(--bg-primary-stroke);
        background: var(--bg-primary-second);
    }

    .item-stock:hover .item-stock__name {
        color: var(--hover-main);
    }

    .item-stock:hover .item-stock__tag {
        background: var(--bg-primary-main);
        color: var(--text-primary-main);
    }
}

/*# sourceMappingURL=main.css.map */