:root {
    --bg-primary: #f5f5f5;
    --bg-secondary: #f8f8f8;

    --brand-color: #250255;
    --brand-text-color: #5c20bc;
    --brand-color--accent: #f99417;
    --brand-border-color: #5c20bc;
    --brand-border-color-rgb: 92, 32, 188;

    --text-color-primary: #250255;
    --text-color-white: #f5f5f5;

    --transition-primary: 200ms ease-out;

    --swiper-theme-color: #F99417 !important;
}

/* CUSTOM SCROLL BAR CSS */
.custom-scrollbar {
    --sb-size: 6px;
    --sb-thumb: rgba(92, 32, 188 ,0.6);
    --sb-thumb-hover: rgba(92, 32, 188, 0.8);
    --sb-track: transparent;
}

.custom-scrollbar::-webkit-scrollbar {
    width: var(--sb-size);
    height: var(--sb-size);
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: var(--sb-track);
}

.custom-scrollbar::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: var(--sb-thumb);
    border-radius: 999px;
    min-height: 20px;
    border: 0;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: var(--sb-thumb-hover);
}

.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: var(--sb-thumb) var(--sb-track);
}
/* END of CUSTOM SCROLL BAR CSS */

.refactored *,
.refactored *::before,
.refactored *::after,
.sidepanel *,
.legacy input,
.legacy textarea {
	box-sizing: border-box;
	font-family: inherit;
}

* {
	font-family: inherit;
}

*:active {
    -webkit-tap-highlight-color: rgba(var(--brand-border-color-rgb), 0.15);
}

ul, ul li {
	list-style: none;
}

.refactored :where(ul, ul li) {
    padding-left: 0;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.refactored :where(h1, h2, h3, h4, p, ul, li),
.sidepanel :where(ul, ul li) {
    margin: 0;
}

.refactored :where(img) {
    display: block;
    width: 100%;
    height: auto;
}

button {
    color: inherit;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    border: none;
    background: none;
}

strong {
    font-weight: 600;
}

.container {
    max-width: 1440px;
    padding-left: 110px;
    padding-right: 110px;
    margin: 0 auto;
}

.section-padding, .anketa {
    padding: 80px 0;
}

section:has(.bg-layer) {
    position: relative;
}

.section-title, .anketa h2 {
    font-size: clamp(1.75rem, 1.5739rem + 0.7512vw, 2.25rem);
    font-weight: 700;
    line-height: 1.28;
    text-align: center;

    margin-bottom: 14px;
}

.anketa h2 {
    margin-bottom: 8px;
}

.section-text, .anketa p, .anketa h3 {
    line-height: 1.67;
    text-align: center;

    margin-bottom: 56px;
}

.anketa h3 {
    font-weight: 400;
    font-size: inherit;

    line-height: 1.67;
    text-align: center;
    color: var(--text-color-primary);
}

.anketa h3, .anketa p {
    margin-bottom: 40px;
}

.page-button__contained, .page-button__outlined {
    display: flex;
    justify-content: center;
    align-items: center;
    outline: none;

    text-align: center;
    padding: clamp(18px, 0.965rem + 0.594vw, 24px) clamp(24px, 1.181rem + 1.188vw, 36px);
    border-radius: 40px;

    transition: border-color var(--transition-primary),
                color var(--transition-primary),
                background-color var(--transition-primary);
}

.page-button__contained {
    font-weight: 700;
    color: var(--text-color-white);
    background-color: var(--brand-color);
    border: none;

    &:hover,
    &:focus {
        background-color: var(--brand-border-color);
    }
}

.page-button__outlined {
    border: 1px solid var(--brand-color);

    &:hover,
    &:focus {
        color: var(--brand-color--accent);
        border-color: var(--brand-color--accent);
    }
}

.refactored .hidden {
    display: none !important;
}

.margin-x-auto {
    margin-left: auto;
    margin-right: auto;
}

.flex_row-reverse {
    flex-direction: row-reverse;
}

.text-wrap {
    white-space: wrap !important;
}

.big-number {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.44;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
}

.link-swiper-slide:hover {
    color: #F99417;
}

.link-swiper-slide, .link-swiper-slide:visited {
    display: flex;
    align-items: center;
    justify-content: center;

    color: inherit;
    transition: color var(--transition-primary);
}

.text-swiper-slide {
    text-align: center;
}

.p-swiper-slide {
    line-height: 1.67;
}

.btn_form_bl {
    display: flex;
    justify-content: center;
}

.btn_form {
    font-size: 16px;
    line-height: 1.12;
    border: none;
    cursor: pointer;
}


.btn_form {
    background: rgba(249, 148, 23, 0.7);
    border: none;
    border-radius: 5px;
    padding: 15px 30px;
    font-weight: 500;
    font-size: calc(12px + 6 * (100vw / 2560));
    text-align: center;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #250255;
    cursor: pointer;
    transition: 0.2s;
}

.btn_form:hover {
    background: rgba(249, 148, 23, 1);
}

.form_fields {
    max-width: 416px;
    margin: 0 auto;

    label {
        padding-left: 12px;
        transition: color var(--transition-primary);
    }

    margin-bottom: 32px;
}

.input-box {
    width: 100%;
    margin-bottom: 24px;
}

.form_userbox {
    input, textarea {
        font-size: 16px;
        line-height: 1.12;

        width: 100%;
        padding: 16px 24px;
        border: 1px solid var(--brand-border-color);
        border-radius: 20px;
        background-color: var(--bg-secondary);
        transition: var(--transition-primary);
        outline: none;
    }

    input {
        height: 50px;
    }

    textarea {
        height: 115px;
        resize: none;
    }

    input::placeholder,
    textarea::placeholder {
        color: #adabc3;
    }

    /*.form_userbox input:valid*/
    input:hover,
    input:focus,
    textarea:hover,
    textarea:focus {
        border-color: var(--brand-color--accent);
    }
}

/* .form_userbox input:valid + label*/
.input-box:has(input:focus),
.form_message:has(textarea:focus) {
    label {
        color: var(--brand-color--accent);
    }
}


.form_userbox input.btn_form {
    background: transparent;
}

.breadcrumbs__item {
    display: inline;
    color: #6a4e8f;
    margin-right: 0 !important;
}

.breadcrumbs__item::before {
    content: "/";
}

.breadcrumbs__item:first-child::before {
    content: none;
}

.breadcrumbs__link {
    color: #250255;
}

.breadcrumbs__link:hover {
    color: #6a4e8f;
}

.breadcrumbs__link:visited {
    color: #250255;
}

.breadcrumbs__link:active {
    color: #250255;
}

.breadcrumbs__link__last {
    color: #250255;
}

.breadcrumbs__link__last:visited {
    color: #250255;
}

.breadcrumbs__link__last:active {
    color: #250255;
}

/* ЧИК ЧИК */
/* body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: #6a4e8f;
}

body::-webkit-scrollbar-thumb {
    background-color: #5b4073;
    border-radius: 20px;
    border: 1px solid #b183ee;
} */

#toTop {
    position: fixed;
    bottom: calc(13% + 6px);
    right: 3%;

    display: none;
    color: transparent;
    text-decoration: none;
    text-indent: 100%;

    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(249, 148, 23, 0.1);
    transition: background-color var(--transition-primary);
    overflow: hidden;
    rotate: 90deg;

    &::after {
        content: '';
        position: absolute;
        inset: 0;


        background-color: var(--brand-border-color);
        -webkit-mask: url('../images/chevron-left.svg') no-repeat center / 26px;
        mask: url('../images/chevron-left.svg') no-repeat center / 26px;
    }

    &:hover,
    &:focus {
    background-color: rgba(249, 148, 23, 0.4);
    }
}

#toTop:active, #toTop:focus {
    outline: none;
}

.page-hero {
    padding-top: 282px;
    padding-bottom: 110px;
}

.page-hero__with-breadcrumbs {
    padding-top: 178px;
    padding-bottom: 110px;

    .breadcrumbs {
        margin-bottom: 74px;
    }
}

.page-hero__content {

    h1 {
        font-size: clamp(2.25rem, 1.718rem + 1.98vw, 3.5rem);
        font-weight: 700;
        line-height: 1.18;
        margin-bottom: 16px;
    }

    p {
        font-size: clamp(14px, 0.769rem + 0.396vw, 18px);
        line-height: 1.67;
    }

    p:last-of-type {
        margin-bottom: 48px;
    }
}

.page-hero__actions {
    display: flex;
    gap: 24px;
}

.callWidget {
    position: fixed;
    bottom: 5%;
    right: 3%;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;
    background-color: #674498;
    border-radius: 50%;
    transition: background-color var(--transition-primary);

    animation: callWidget 20s infinite;
    z-index: 9999;

    &:hover {
        background-color: var(--brand-color);
        z-index: 9999;
    }
}

@keyframes callWidget {
    0% {
        scale: 1;
        transform: rotate(0deg);
    }

    25% {
        scale: 1.1;
        transform: rotate(90deg);
    }

    50% {
        scale: 1.2;
        transform: rotate(-90deg);
    }

    75% {
        scale: 1.1;
        transform: rotate(0deg);
    }

    100% {
        scale: 1;
    }
}


/* --- @MEDIA 1200px --- */

@media (max-width: 1200px) {
    .section-padding, .anketa {
        padding: 75px 0;
    }
}

/* --- @MEDIA 1024px --- */

@media (max-width: 1024px) {
    .container {
        padding-left: 55px;
        padding-right: 55px;
    }

    .page-hero,
    .page-hero__with-breadcrumbs {
        margin: 0 auto;
        padding-top: 106px;
        padding-bottom: 415px;
    }

    .page-hero__with-breadcrumbs .breadcrumbs {
        margin-bottom: 40px;
    }

    .page-hero__content {
        text-align: center;
        margin: 0 auto;

        h1 {
            line-height: 1.39;
        }

        p:last-of-type {
        line-height: 1.71;
            margin-bottom: 32px;
        }
    }

    .page-hero__actions {
        justify-content: center;
        gap: 24px;
    }
}


/* --- @MEDIA 768px --- */

@media screen and (max-width: 768px) {

    .section-padding, .anketa {
        padding: 32px 0;
    }

    .section-text {
        margin-bottom: 32px;
    }

    .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .big-number {
        font-size: 40px;
        line-height: 1.25;
    }

    .callWidget,
     #toTop {
        width: 50px;
        height: 50px;
        z-index: 9999;
    }

    .page-hero__actions {
        flex-direction: column;
        align-items: center;
    }
}

/* --- BACKGROUND LAYER --- */

.page__bg-layer__large {
    .gear-1 {
        top: 48px;
        left: -57px;
        width: 265px;
        height: 278px;
    }

    .gear-2 {
        top: 150px;
        right: 185px;
        width: 173px;
        height: 181px;
    }

    .gear-3 {
        top: calc(50% - 60px);
        left: calc(50% - 120px);
        width: 230px;
        height: 240px;
    }

    .gear-4 {
        bottom: 90px;
        left: 143px;
        width: 173px;
        height: 181px;
    }

    .gear-5 {
        bottom: -110px;
        right: 123px;
        width: 265px;
        height: 278px;
    }
}

.page__bg-layer__small {
    .gear-1 {
        top: 0px;
        left: -74px;
        width: 265px;
        height: 278px;
    }

    .gear-2 {
        top: 180px;
        right: 103px;
        width: 173px;
        height: 181px;
    }
}

@media screen and (max-width: 960px) {
    .page__bg-layer__large {
        .gear-1 {
            top: 51px;
            left: -109px;
        }

        .gear-2 {
            top: calc(50% - 200px);
            right: -58px
        }

        .gear-3 {
            display: none;
        }

        .gear-4 {
            bottom: 435px;
            left: -43px;
        }

        .gear-5 {
            bottom: 28px;
            right: -65px;
        }
    }

    .page__bg-layer__small {
        .gear-1 {
            top: -160px;
            left: -120px;
        }

        .gear-2 {
            top: calc(50% - 85px);
            right: -46px;
        }
    }
}

@media screen and (max-width: 768px) {
    .page__bg-layer__large {
        .gear-2 {
            top: calc(50% + 75px);
            right: -58px
        }

        .gear-4 {
            bottom: -135px;
            left: -43px;
        }

        .gear-5 {
            display: none;
        }
    }
}

@keyframes inf_spin {
    0% {
        rotate: 0deg;
    }

    25% {
        rotate: 90deg;
    }

    30% {
        rotate: 80deg;
    }

    75% {
        rotate: 270deg;
    }

    80% {
        rotate: 260deg;
    }

    100% {
        rotate: 360deg;
    }
}