@import "bootstrap-ext.css";

html.locked {
    overflow-y: hidden;
    height: 100vh;
}

/* :root, */
body.light {
    --background-color: rgba(255, 255, 255, 1);
    --background-card: #F5F6F7;
    --text-color: #0D141C;
    --color-blue: #1890FF;
    --primary-color: #1890FF;
}

body.dark {
    --background-color: #18191F;
    --background-card: #262626;
    --text-color: rgba(255, 255, 255, 1);
    --color-blue: #329CFF;
}

/* dark mode */
/* @media ( prefers-color-scheme: dark ) {
    :root {
        --background-color: #18191F;
        --background-card: #262626;
        --text-color: rgba(255, 255, 255, 1);
        --color-blue: #329CFF;
    }
} */
:root {
    --bs-color-link: var(--color-blue);
}

a,
.btn-link,
.btn-link:hover {
    color: var(--color-blue);
    text-decoration: none;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 14px;
    font-family: Inter, Roboto, sans-serif;
}

img {
    max-width: 100%;
}

/* цвет обводки пункта меню примерно rgba(102, 102, 102, .5) */


section {
    padding: 2rem 0;
}
section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}
section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.card {
    background-color: var(--background-card);
    color: var(--text-color);
    padding: 20px;
    height: 100%;
    border: none;
    border-radius: 16px;
}
h1 {
    font-size: 32px;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 0;
}
h4 {
    font-size: 18px;
    line-height: 120%;
    margin-bottom: 0;
}
.card .title {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: 0;
}

i.icon svg {
    width: 24px;
    height: 24px;
}
i.icon path {
    stroke: var(--color-blue);
}
.btn.btn-primary {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
    color: #fff;
    width: fit-content;
}
.btn.btn-secondary {
    background-color: var(--background-card);
    border-color: var(--background-card);
    color: var(--text-color);
    width: fit-content;
}
.btn-lg {
    border-radius: 1.5em;
    font-size: 1.5rem;
}
.btn.btn-primary:hover {
    opacity: 0.75;
}
.btn.btn-lg {
    --bs-btn-padding-y: 0.5em;
    --bs-btn-padding-x: 1em;
    width: 100%;
}

.logo {
    max-width: 180px;
}

@media screen and (min-width: 1200px) {
    body {
        font-size: 16px;
    }
    section {
        padding: 5em 0;
        overflow-x: hidden;
    }
    section h2 {
        font-size: 2.75rem;
        margin-bottom: 1em;
    }
    section h3 {
        font-size: 1.75rem;
        margin-bottom: 1em;
    }
    h1 {
        font-size: 64px;
        letter-spacing: -0.64px;
    }
    h4 {
        font-size: 24px;
    }
    .card {
        background-color: var(--background-card);
        color: var(--text-color);
        padding: 24px;
        border-radius: 24px;
    }
    i.icon svg {
        width: 26px;
        height: 26px;
    }
    .btn.btn-lg {
        width: fit-content;
    }
    .logo {
        max-width: initial;
    }

}

header .header-wrap {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
}
header .btn-link,
header .btn-link:hover {
    color: var(--text-color);
    border-radius: 3em;
    padding: 1em;
}
header .btn-link:hover {
    border-color: rgba(125, 125, 125, .45) ;
}
header {
    position: fixed;
    z-index: 100;
    width: 100%;
    background-color: rgba(255, 255, 255, .8);
    border-bottom: 1px solid rgba(125, 125, 125, 0.2);
    backdrop-filter: blur(20px);
    transition: background-color .3s ease-in-out;
}
html.locked header {
    background-color: #fff;
}
body.dark header {
    background-color: rgba(24, 25, 31, 0.8);
}
html.locked body.dark header {
    background-color: #18191F;
}
body.admin-bar header {
    top: 32px;
}

body>main {
    padding-top: 60px;
}
@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 46px;
    }
}

@media screen and (min-width: 1200px) {
    header {
        padding: 10px 0;
    }

    header .header-wrap {
        justify-content: space-around;
        gap: 48px;
    }
    body>main {
        padding-top: 80px;
    }
}

@media screen and (min-width: 1830px) {
    header .header-wrap {
        flex-direction: row;
        justify-content: space-between;
    }
}

header .switchtheme .icon {
    width: 20px;
    height: 20px;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url(../img/moon.svg);
}

body.dark header .switchtheme .icon {
    background-image: url(../img/sun.svg);
}

header #burger-switcher path {
    stroke: var(--text-color)
}

.mobile-menu {
    height: 0;
    overflow: hidden auto;
    transition: height .3s ease-in-out;
    padding: 0;
    position: fixed;
    top: 60px;
    z-index: 100;
    background-color: var(--background-color);
    color: var(--text-color);
    width: 100%;
}
.mobile-menu a {
    color: var(--text-color);
    text-align: left;
}
.mobile-menu.active {
    height: calc( 100vh - 60px );
}
body.admin-bar .mobile-menu {
    top: 96px;
}
body.admin-bar .mobile-menu.active {
    height: calc( 100vh - 96px );
}
.mobile-menu-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2em;
    justify-content: space-evenly;
    height: 100%;
}
.mobile-menu .menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1em;
    padding: 0;
    text-align: left;
}
#main {
    position: relative;
}
#main:before {
    background: url(../img/main-back.jpg)  0px -6.1px / 100% 182.879% no-repeat;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: .6;
}
#main ul {
    margin: 0;
    padding: 0 0 0 2.3em;
}
#main ul li {
    font-weight: 500;
}
#main img {
    border-radius: 0;
}
@media screen and (min-width: 1200px) {
    #main ul li {
        font-size: 1.75rem;
    }
}
@media screen and (min-width: 1199px) and (max-width: 1582px) {
    #main h1 {
        font-size: calc(2.2vw + 1.5vh);
    }
    #main ul li {
        font-size: calc(1.2vw + .8vh);
    }
}
@media screen and (max-width: 575px) {
    #main img.sm-wide {
        width: 100vw !important;
        max-width: 100vw;
        margin-left: -12px;
        margin-top: calc(0px - 2em - 10%);
        margin-bottom: calc(0px - 2em - 10%);
        -webkit-mask-image: -webkit-linear-gradient( 0deg, rgba(0,0,0,0) 10%, rgba(0,0,0,1) 25%, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 90%);
        mask-image: linear-gradient( 0deg, rgba(0,0,0,0) 10%, rgba(0,0,0,1) 25%, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 90%);
        mask-mode: alpha;

    }
}

#it .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    height: 100%;
}

@media screen and (min-width: 1200px) {
    #it .card {
        gap: 32px;
        height: 100%;
    }
}


#stack .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    height: 100%;
    min-height: 157px;
}
#stack .card .list {
    display: flex;
    flex-wrap: wrap;
    gap: 1em 1.1em;
}
#stack .card .list-item {
    white-space: nowrap;
    font-size: 13px;
    vertical-align: middle;
}
#stack .card .list-item-icon {
    vertical-align: text-bottom;
    display: inline-block;
    margin-right: .3em;
    filter: invert(1) brightness(1.2) saturate(0);
}

body.dark #stack .card .list-item-icon {
    filter: invert(0) brightness(1);
}




#bnr .container .card {
    position: relative;
    overflow: hidden;
    background-color: transparent;
}
#bnr .container .card:before {
    background: url(../img/main-back.jpg) lightgray;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100%;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: .6;
}
#bnr a {
    color: inherit;
    text-decoration: underline;
}

#prmo .prmo-row {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2em;
}
#prmo .card {
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 20px;
    height: 100%;
    font-size: 14px;
}
#prmo ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
#prmo ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(140, 140, 140, .3);
    line-height: 140%;
}
#prmo ul li:last-child {
    border-bottom: none;
}

@media screen and (min-width: 1200px) {
    #prmo .prmo-row {
        flex-direction: row;
        align-items: center;
    }
    #prmo .left {
        width: 42%
    }
    #prmo .right {
        width: 50%
    }
    #prmo .card {
        gap: 24px;
    }
    #prmo h4 {
        font-size: 20px;
    }
}

#interface img {
    max-height: 80vh;
    margin: 0 auto;
    display: block;
    border-radius: 16px;
}
@media screen and (min-width: 1200px) {
    #interface img {
        border-radius: 24px;
    }
}

#docs .card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    height: 100%
}
#docs .card .wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
#docs .card .wrap .icon {
    width: 22px;
    height: 22px;
}
#docs .card .btn-link {
    white-space: nowrap;
}

@media screen and (min-width: 1200px) {
    #docs .card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        height: 100%
    }
    #docs .card .wrap {
        display: contents;
    }
    #docs .card .wrap .icon {
        width: 32px;
        height: 32px;
    }
    #docs .card .btn-link {
        position: relative;
        top: -7px;
        margin-bottom: -12px;
    }
}

#form .btn-lg {
    width: 100%;
}

footer {
    padding: 48px 0;
}
footer .footer-wrap {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
}
footer a,
footer a:hover,
footer .btn-link,
footer .btn-link:hover {
    color: var(--text-color);
    padding-left: 0;
}

@media screen and (min-width: 1200px) {
    footer {
        padding: 120px 0;
    }
    footer .footer-wrap {
        flex-direction: row;
        justify-content: space-around;
    }
}
@media screen and (min-width: 1830px) {
    footer .footer-wrap {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* cf7 */


.wpcf7 input[type=text],
.wpcf7 input[type=email],
.wpcf7 input[type=url],
.wpcf7 input[type=tel],
.wpcf7 input[type=number],
.wpcf7 input[type=date],
.wpcf7 input[type=file],
.wpcf7 textarea,
.wpcf7 textarea:focus {
    margin-top: 5px;
    border-radius: 12px;
    border: 1px solid #43505E;
    background: transparent;
    padding: 12px 16px;
    margin-bottom: 1.2em;
    color: var(--text-color);
}
.wpcf7 input[type=text].wpcf7-not-valid,
.wpcf7 input[type=email].wpcf7-not-valid,
.wpcf7 input[type=url].wpcf7-not-valid,
.wpcf7 input[type=tel].wpcf7-not-valid,
.wpcf7 input[type=number].wpcf7-not-valid,
.wpcf7 input[type=date].wpcf7-not-valid,
.wpcf7 input[type=file].wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid:focus {
    border-color: #FF0004;
    --text-color: #FF0004;
    color: var(--text-color)
}
.wpcf7-mask::placeholder,
.wpcf7-mask:focus::placeholder {
    color: var(--text-color);
    opacity: .5;
}
.wpcf7-not-valid-tip {
    opacity: 0;
    position: absolute;
    bottom: -1.7em;
    right: .3em;
    font-size: .8em !important;
    transition: opacity .2s ease;
}
.wpcf7-form-control-wrap:hover .wpcf7-not-valid-tip {
    opacity: 1;
}
@media screen and (min-width: 1200px) {
    .wpcf7-not-valid-tip {
        font-size: .6em !important;
    }
}

.wpcf7 .submit-wrapper {
    position: relative;
}
.wpcf7-spinner {
    position: absolute;
    top: 50%;
    right: .5em;
    transform: translateY(-50%);
}
.wpcf7 form .wpcf7-response-output {
    padding: .5em 1em;
    border-radius: 2em;
    text-align: center;
    margin: .5em 0 1.8em 0;
}
.wpcf7 form.invalid .wpcf7-response-output {
    border: 1px solid #FF0004;
    background: rgba(255, 17, 0, 0.10);
}
.wpcf7 form.sent .wpcf7-response-output {
    border: 1px solid #00b10f;
    background: rgba(0, 177, 15, 0.10);
}
label.not-valid {
    color: #FF0004;
}
label.not-valid input {
    border: 1px solid #FF0004;
}

[data-name="acceptance"] label {
    display: flex;
    align-items: center;
    gap: .6em;
    margin-top: 1em;
}
[data-name="acceptance"] .wpcf7-list-item {
    margin-left: 0;
}
[data-name="acceptance"] label input {
    display: block;
    margin: 0 !important;
}

header i.icon.icon-phone,
.mobile-menu i.icon.icon-phone,
header i.icon.icon-mail,
.mobile-menu i.icon.icon-mail,
footer i.icon.icon-phone,
footer i.icon.icon-mail,
header i.icon.icon-phone svg,
footer i.icon.icon-phone svg,
footer i.icon.icon-mail svg {
    display: inline-block;
    width: 16px;
    height: 100%;
    vertical-align: text-bottom;
    margin-right: .3em;
}
.mobile-menu i.icon.icon-phone,
.mobile-menu i.icon.icon-mail,
header i.icon.icon-phone path,
footer i.icon.icon-phone path,
footer i.icon.icon-mail path {
    stroke: var(--text-color);
}