body {
    --error-color: #a94442;
    --success-color: #3c763d;
    --warning-color: #f4af3d;
    --color-white: #fff;
}

.d-none {
    display: none !important;
}

.main-err-bg {
    background: var(--error-color);
}

.sp-error {
    color: var(--error-color);
}

.color-white {
    color: var(--color-white);
}

.pos-abs {
    position: absolute;
}

.z-index-9999 {
    z-index: 9999;
}

/* flex блок */
.d-flex {
    display: -webkit-flex !important;
    display: -ms-flexbox !important;
    display: flex !important;
}

.d-iflex {
    display: -webkit-inline-flex !important;
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
}

.flex-direction-column {
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

.justify-content-center {
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.justify-content-bs {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.justify-content-right {
    -webkit-justify-content: flex-end;
    -ms-flex-pack: flex-end;
    justify-content: flex-end;
}

.justify-content-left {
    -webkit-justify-content: flex-start;
    -ms-flex-pack: flex-start;
    justify-content: flex-start;
}

.flex-33 {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 33.333333%;
    flex: 1 1 33.333333%;
}

.align-items-start {
    -webkit-align-items: flex-start;
    -ms-flex-align: flex-start;
    align-items: flex-start;
}

.align-items-center {
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.align-items-end {
    -webkit-align-items: flex-end;
    -ms-flex-align: flex-end;
    align-items: flex-end;
}

.align-self-center {
    -ms-flex-item-align: center;
    -ms-grid-row-align: center;
    align-self: center;
}

.align-self-stretch {
    -webkit-align-self: stretch;
    -ms-flex-item-align: stretch;
    align-self: stretch;
}

.flex-wrap {
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.box-auto-2 {
    -webkit-box-flex: 2;
    -ms-flex: 2 1 auto;
    flex: 2 1 auto;
}

.box-auto-1 {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

.box-280-1 {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 280px;
    flex: 1 1 280px;
}

.box-120-1 {
    -webkit-box-flex: 0;
    -ms-flex: 1 1 120px;
    flex: 1 1 120px;
}

/* отступы */
.ml-auto {
    margin-left: auto !important;
}

.mr-auto {
    margin-right: auto !important;
}

.ml--15 {
    margin-left: -15px !important;
}

.mr--15 {
    margin-right: -15px !important;
}

.m-0 {
    margin: 0px !important;
}

.ml-0 {
    margin-left: 0px !important;
}

.mr-0 {
    margin-right: 0px !important;
}

.mt-5 {
    margin-top: 5px !important;
}

.mb-5 {
    margin-bottom: 5px !important;
}

.ml-5 {
    margin-left: 5px !important;
}

.mr-5 {
    margin-right: 5px !important;
}

.mt-10 {
    margin-top: 10px !important;
}

.mb-10 {
    margin-bottom: 10px !important;
}

.mr-15 {
    margin-right: 15px !important;
}

.ml-15 {
    margin-left: 15px !important;
}

.mt-15 {
    margin-top: 15px !important;
}

.mb-15 {
    margin-bottom: 15px !important;
}

.mt-25 {
    margin-top: 25px !important;
}

.mb-25 {
    margin-bottom: 25px !important;
}

.mt-35 {
    margin-top: 35px !important;
}

.mb-35 {
    margin-bottom: 35px !important;
}

.p-0 {
    padding: 0px !important;
}

.pl-0 {
    padding-left: 0px !important;
}

.pr-0 {
    padding-right: 0px !important;
}

.p-lr-0 {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.pt-5 {
    padding-top: 5px !important;
}

.pb-5 {
    padding-bottom: 5px !important;
}

.pr-5 {
    padding-right: 5px !important;
}

.pl-5 {
    padding-left: 5px !important;
}

.pr-10 {
    padding-right: 10px !important;
}

.pl-10 {
    padding-left: 10px !important;
}

.pt-10 {
    padding-top: 10px !important;
}

.pb-10 {
    padding-bottom: 10px !important;
}

.pr-15 {
    padding-right: 15px !important;
}

.pl-15 {
    padding-left: 15px !important;
}

.pt-15 {
    padding-top: 15px !important;
}

.pb-15 {
    padding-bottom: 15px !important;
}

.pt-25 {
    padding-top: 25px !important;
}

.pb-25 {
    padding-bottom: 25px !important;
}

.pr-25 {
    padding-right: 25px !important;
}

.pl-25 {
    padding-left: 25px !important;
}

.pt-35 {
    padding-top: 35px !important;
}

.pr-35 {
    padding-right: 35px !important;
}

.pb-35 {
    padding-bottom: 35px !important;
}

.pl-35 {
    padding-left: 35px !important;
}

.w-100 {
    width: 100% !important;
}

.maxhp-220 {
    max-height: 220px !important;
}

.maxhp-300 {
    max-height: 300px !important;
}

.maxhp-500 {
    max-height: 500px !important;
}

.minhp-100 {
    min-height: 100px !important;
}

.minhp-300 {
    min-height: 300px !important;
}

.minhp-500 {
    min-height: 500px !important;
}

.overflow-auto {
    overflow: auto;
}

.resize-none {
    resize: none !important;
}

.tt-uppercase {
    text-transform: uppercase !important;
}

.fz-12px {
    font-size: 12px;
}

.fz-14px {
    font-size: 14px;
}

.fz-16px {
    font-size: 16px;
}

.fz-18px {
    font-size: 18px;
}

.fz-20px {
    font-size: 20px;
}

/* кастомный алерт */
.alert-n {
    width: 20%;
    min-height: 100px;
    min-width: 320px;
    background-color: #fff;
    position: fixed;
    border-radius: 5px;
    -webkit-box-shadow: 0 0 51px 0 rgba(0, 0, 0, 0.18);
    -moz-box-shadow: 0 0 51px 0 rgba(0, 0, 0, 0.18);
    -ms-box-shadow: 0 0 51px 0 rgba(0, 0, 0, 0.18);
    -o-box-shadow: 0 0 51px 0 rgba(0, 0, 0, 0.18);
    box-shadow: 0 0 51px 0 rgba(0, 0, 0, 0.18);
    /*    top: 0;
        right: 0;*/
}

.alert-n {
    top: 17px;
    right: 23px;
}

.alert-n .container-fluid {
    padding: 30px 25px 20px;
}

.alert-n.in {
    z-index: 9999;
}

.alert-n.out {
    z-index: -1;
}

.alert-n.error {
    color: var(--error-color);
}

.alert-n.success {
    color: var(--success-color);
}

.alert-n.warning {
    color: var(--warning-color);
}

.alert-n .close {
    position: absolute;
    right: 12.5px;
    top: 7.5px;
    color: #1d496a;
    opacity: 0.7;
}

.alert-caption {
    text-transform: uppercase;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    /*padding-bottom: 7px;*/
}

.alert-n span {
    display: inline-block;
    float: left;
    width: 100%;
    font-size: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.error-summary {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    color: var(--error-color);
}

.error-summary ul {
    padding: 0;
}

.error-summary ul li {
    list-style-type: none;
    display: inline-block;
    float: left;
    width: 100%;
    font-size: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.modal-full {
    width: calc(80% - 60px);
    margin: 30px auto;
}

/* load индикатор(например при ajax/pjax) */
.loading-pj {
    height: 200px;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.lds-spinner {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-spinner div {
    transform-origin: 40px 40px;
    animation: lds-spinner 1.2s linear infinite;
}

.lds-spinner div:after {
    content: " ";
    display: block;
    position: absolute;
    top: 3px;
    left: 37px;
    width: 6px;
    height: 18px;
    border-radius: 20%;
    background: var(--warning-color);
}

.lds-spinner div:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -1.1s;
}

.lds-spinner div:nth-child(2) {
    transform: rotate(30deg);
    animation-delay: -1s;
}

.lds-spinner div:nth-child(3) {
    transform: rotate(60deg);
    animation-delay: -0.9s;
}

.lds-spinner div:nth-child(4) {
    transform: rotate(90deg);
    animation-delay: -0.8s;
}

.lds-spinner div:nth-child(5) {
    transform: rotate(120deg);
    animation-delay: -0.7s;
}

.lds-spinner div:nth-child(6) {
    transform: rotate(150deg);
    animation-delay: -0.6s;
}

.lds-spinner div:nth-child(7) {
    transform: rotate(180deg);
    animation-delay: -0.5s;
}

.lds-spinner div:nth-child(8) {
    transform: rotate(210deg);
    animation-delay: -0.4s;
}

.lds-spinner div:nth-child(9) {
    transform: rotate(240deg);
    animation-delay: -0.3s;
}

.lds-spinner div:nth-child(10) {
    transform: rotate(270deg);
    animation-delay: -0.2s;
}

.lds-spinner div:nth-child(11) {
    transform: rotate(300deg);
    animation-delay: -0.1s;
}

.lds-spinner div:nth-child(12) {
    transform: rotate(330deg);
    animation-delay: 0s;
}

@keyframes lds-spinner {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
