:root {
    --uasoft-accent: #1355BC;
    --uasoft-dark: #1F3F5D;
    --uasoft-text: #A1ADB7;
    /*--uasoft-blue-gay: rgba(231, 241, 255, 0.5);*/
    --uasoft-blue-gay: #f3f8fe;
    --uasoft-link: #5DFB6D;
    --uasoft-accent-2: #39B7FF;
    --uasoft-color-border: #88ACDF;
    --uasoft-font-small: 0.875rem;
    --uasoft-font-default: 1rem;
    --uasoft-font-medium: 1.125rem;
    --uasoft-font-large: 1.5rem;
    --uasoft-font-x-large: 2rem;
    --uasoft-font-h2: 3rem;
    --uasoft-font-h3: 3rem;
    --uasoft-font-h4: 2rem;
    --uasoft-font-h5: 1.75rem;
    --uasoft-font-h6: 1.5rem;
    --uasoft-font-family: 'Lufga';
    --uasoft-content-padding: 16px;

    --uasoft-icon-arrow-white: url("data:image/svg+xml,%3Csvg viewBox='0 0 11 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.35083 2.845L1.17833 10.0175L0 8.83917L7.17167 1.66667H0.850834V0H10.0175V9.16667H8.35083V2.845V2.845Z' fill='%23ffffff'/%3E%3C/svg%3E");
    --uasoft-icon-arrow-dark: url("data:image/svg+xml,%3Csvg viewBox='0 0 11 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.35083 2.845L1.17833 10.0175L0 8.83917L7.17167 1.66667H0.850834V0H10.0175V9.16667H8.35083V2.845V2.845Z' fill='%231F3F5D'/%3E%3C/svg%3E");
}

html {
    scroll-behavior: smooth;
}

@media (min-width: 765px) {
    :root {
        --uasoft-font-h2: 4rem;
        --uasoft-content-padding: 24px;
    }
}

@font-face {
    font-family: 'Lufga';
    font-style: normal;
    font-weight: 300;
    src: local('Lufga'), url('../fonts/LufgaLight.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Lufga';
    font-style: normal;
    font-weight: 400;
    src: local('Lufga'), url('../fonts/LufgaRegular.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Lufga';
    font-style: normal;
    font-weight: 500;
    src: local('Lufga'), url('../fonts/LufgaMedium.woff') format('woff');
    font-display: swap;
}


/* Basic Reset */
* {
    box-sizing: border-box;
}
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
/*blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}*/
table {
    border-collapse: collapse;
    border-spacing: 0;
}

img {
    max-width: 100%;
    height: auto;
}

strong, b {
    font-weight: 600;
}

body {
    font-family: var(--uasoft-font-family), serif;
    font-size: var(--uasoft-font-default);
    line-height: 1.5;
    color: var(--uasoft-dark);
}

body.open-mobile-menu,
body.open-modal {
    overflow: hidden;
}

.container,
.uasoft-large-text-section .wp-block-group__inner-container {
    padding: 0 var(--uasoft-content-padding);
    max-width: 1648px;
    margin: 0 auto;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
}

/* colors */
.bg-dark {
    background-color: var(--uasoft-dark) !important;
}

.bg-accent {
    background-color: var(--uasoft-accent) !important;
}


/* buttons */
.button-icon {
    background-color: var(--uasoft-dark);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn,
.wp-block-button .wp-element-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.4445em 2em;
    font-size: var(--uasoft-font-medium);
    line-height: 1.22;
    font-weight: 500;
    text-decoration: none;
    border-radius: 3em;
    cursor: pointer;
    border: 1px solid var(--uasoft-color-border);
    appearance: none;
    color: #ffffff;
    background-color: var(--uasoft-accent);
}

.btn.btn-sm,
.wp-block-button.btn-sm .wp-element-button {
    padding: 1.11em 1.16em;
}

.btn.btn-white,
.wp-block-button.btn-white .wp-element-button {
    color: var(--uasoft-dark);
    background-color: #ffffff;
}

.btn.has-icon,
.wp-block-button.has-icon .wp-element-button {
    justify-content: start;
    padding-right: 4.8889em;
}

.btn.has-icon::after,
.wp-block-button.has-icon .wp-element-button::after {
    content: '';
    position: absolute;
    right: 0.6667em;
    width: 2.8889em;
    height: 2.8889em;
    border-radius: 50%;
    background-image: var(--uasoft-icon-arrow-dark);
    background-size: 11px auto;
    background-repeat: no-repeat;
    background-position: center;
    background-color: white;
    color: red;
}

.btn.btn-sm.has-icon::after,
.wp-block-button.btn-sm.has-icon .wp-element-button::after {
    right: 0.3333em;
}

.btn.btn-white.has-icon::after {
    background-color: var(--uasoft-dark);
    background-image: var(--uasoft-icon-arrow-white);
}

.btn.btn-white.has-icon.light-icon::after {
    background-color: #E7F1FF;
    background-image: var(--uasoft-icon-arrow-dark);
}

.btn-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    border-radius: 50%;
}


/* headings */
h1, .h1 {
    font-size: 4rem;
    line-height: 0.9;
    font-weight: 700;
}

h2, .h2 {
    font-size: var(--uasoft-font-h2);
    font-weight: 400;
}

h3, .h3 {
    font-size: var(--uasoft-font-h3);
    font-weight: 400;
    line-height: 1.32;
}

h4, .h4 {
    font-size: var(--uasoft-font-h4);
    font-weight: 400;
    line-height: 1.125;
}

/* headings */
h5, .h5 {
    font-size: var(--uasoft-font-h5);
    font-weight: 500;
    line-height: 1.3333;
}

h6, .h6 {
    font-size: var(--uasoft-font-h6);
    font-weight: 500;
    line-height: 1.2857;
}

@media (min-width: 1280px) {
    h4, .h4 {
        font-size: clamp(2rem, -0.1875rem + 2.9167vw, 2.875rem);
    }
}

.stretch-link::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

/* header */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.open-consultation-popup .link-text,
.open-mobile-menu .open-menu-popup .burger {
    display: none;
}

.open-mobile-menu .open-menu-popup .close {
    display: block !important;
}

.header-buttons-content {
    display: flex;
    gap: 12px;
}

.home-hero {
    background-image: url('../images/block-bg-world.svg');
    background-repeat: no-repeat;
}

.link-with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    font-size: var(--uasoft-font-medium);
}

@media (max-width: 1200px) {
    .navigation-container {
        display: block;
        position: absolute;
        left: 0;
        top: 80px;
        width: 100%;
        height: calc(100vh - 80px);
        z-index: 101;
        background-color: #ffffff;
        background-image: url('../images/block-bg-world.svg');
        background-repeat: no-repeat;
        background-position: left 50% top 46%;
        background-size: 96% auto;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
        pointer-events: none;
    }

    .open-mobile-menu .navigation-container {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .open-consultation-popup {
        opacity: 1;
        transform: scale(1);
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    }

    .open-mobile-menu .open-consultation-popup {
        opacity: 0;
        transform: scale(0.8);
        pointer-events: none;
    }

    .admin-bar .navigation-container {
        top: 126px;
    }

    .site-navigation {
        padding: 60px 0;
    }

    .site-navigation .main-menu a {
        text-decoration: none;
        color: var(--uasoft-dark);
        font-size: var(--uasoft-font-h6);
        line-height: 1;
        font-weight: 500;
        padding: 10px 0;
        display: block;
        text-align: center;
    }
}

@media (min-width: 765px) {
    .open-consultation-popup .link-text {
        display: inline;
    }
}

@media (min-width: 1200px) {
    .main-menu {
        display: flex;
        align-items: center;
    }

    .main-menu a {
        padding: 13px 16px;
        text-decoration: none;
        font-weight: 500;
        font-size: var(--uasoft-font-medium);
        color: var(--uasoft-dark);
    }

    .open-menu-popup {
        display: none;
    }
}

.uasoft-large-text-section {
    padding: 82px 0;
}

.uasoft-large-text-section .has-medium-font-size {
    font-size: 32px !important;
    line-height: 1.1875;
}

.uasoft-large-text-section em {
    color: #A1ADB7;
}

.uasoft-large-text-section .wp-block-group__inner-container {
    max-width: 1030px;
    margin-left: auto;
    margin-right: auto;
}

/* blue cta */
.blue-cta {
    display: none;
}

.blue-cta-btn a {
    white-space: nowrap;
}

@media (min-width: 768px) {
    .blue-cta {
        display: block;
        background: #39B7FF;
        color: #ffffff;
        padding: 24px 0;
        margin-top: 80px;
    }

    .blue-cta-wrap {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 129px;
    }

    .blue-cta-text {
        font-size: 46px;
        line-height: 1.26;
        font-weight: 600;
    }
}

@media (min-width: 1200px) {
    .blue-cta {
        padding: 70px 0;
    }
    .blue-cta-text {
        font-size: 72px;
        font-weight: 500;
        line-height: 1;
    }
}


.clutch-block {
    display: flex;
    align-items: end;
    gap: 6vw;
}
.clutch-block > * {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.clutch-block-left {
    text-align: right;
}
.clutch-block-right {
    text-align: left;
}

.clutch-block-text {
    text-transform: uppercase;
    font-size: 1.375rem;
}
.clutch-block-left .clutch-block-text {
    letter-spacing: -0.02em;
}
.clutch-block-right .clutch-block-text {
    letter-spacing: 0.03em;
}

.clutch-block-logo svg {
    width: 144px;
}

.clutch-block-rating svg {
    width: 23px;
    height: 21px;
}

@media (min-width: 768px) {
    .clutch-block {
        order: 2;
        width: 72%;
    }

    .clutch-block > * {
        gap: 10px;
    }

    .clutch-block-text {
        font-size: 28px;
        white-space: nowrap;
    }

    .clutch-block-right .clutch-block-text {
        font-size: 32px;
    }

    .clutch-block-logo svg {
        width: 192px;
    }

    .clutch-block-rating {
        display: flex;
        gap: 4px;
    }
}

@media (min-width: 1200px) {
    .clutch-block-rating svg {
        width: 32px;
        height: 31px;
    }
}

body:not(.page-template-page-without-title) .site-main {
    margin-top: 24px;
}

body:not(.page-template-page-without-title) .site-main .entry-content {
    margin-top: 48px;
}

.single-content h2,
.single-content h3,
.single-content h4,
.single-content h5 {
    margin-bottom: 0.325em;
    font-weight: 400;
    line-height: 1.1;
}

.single-content p,
.single-content li {
    font-size: var(--uasoft-font-medium);
    font-weight: 300;
}

.single-content p {
    margin-bottom: 1.5rem;
}

.wp-block-gallery,
.wp-block-image {
    margin-bottom: 1.5rem;
}

.single-content ul,
.single-content ol {
    margin-bottom: 1.5rem;
}

.single-content ul {
    list-style: disc inside;
}

.single-content ul li,
.single-content ol li {
    padding: 6px 0;
}

.single-content blockquote {
    background: #E7F1FF99;
    padding: 16px;
    font-size: 1.5rem;
    font-weight: 500;
    border-radius: 0 44px 44px 44px;
    margin-bottom: 2rem;
}

.single-content blockquote p {
    font-weight: 400;
}

.wp-block-quote>cite {
    font-size: 1.25rem;
    text-align: right;
    font-style: italic;
}

.wp-block-table {
    margin-bottom: 1.5rem;
}

.wp-block-buttons {
    margin-bottom: 1.5rem;
}

.wp-block-embed {
    margin-bottom: 24px;
}

.wp-block-embed.aligncenter .wp-block-embed__wrapper {
    text-align: center;
}

.wp-block-embed__wrapper iframe {
    width: 100%;
    height: auto;
    max-width: 800px !important;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    border-radius: 32px;
    overflow: hidden;
}


@media (min-width: 992px) {
    .single-content blockquote {
        padding: 30px;
    }
}


/* footer */
.footer-content {
    padding: 78px 0 42px;
}

.footer-logo {
    margin-bottom: 40px;
}

.footer-section-menu {
    margin-top: 44px;
}

.footer-section-menu .small-title {
    margin-bottom: 10px;
}

.footer-menu a {
    text-decoration: none;
    color: var(--uasoft-dark);
    font-size: var(--uasoft-font-h6);
    line-height: 1;
    font-weight: 500;
    padding: 10px 0;
    display: block;
}

@media (min-width: 765px) {
    .footer-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 3.33%;
    }

    .footer-content > * {
        flex: 1 1 30%;
    }

    .footer-section-1 {
        flex: 1 1 100%;
    }

    .footer-logo {
        margin-bottom: 0;
    }

    .footer-phone {
        font-size: 72px;
    }
}

@media (min-width: 1400px) {
    .footer-content {
        flex-wrap: nowrap;
        gap: 2%;
        padding-bottom: 84px;
    }

    .footer-content > * {
        flex: 1 1 12%;
    }

    .footer-section-1 {
        flex: 1 1 44%;
    }

    .footer-phone {
        margin-top: 10px;
    }

    .footer-section-menu {
        margin-top: 0;
    }

    .footer-menu a {
        padding: 8px 0;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    height: 100%;
    z-index: 101;
    visibility: hidden;
    transition: visibility 0s 0.3s;
}

.modal.open {
    visibility: visible;
    transition: visibility 0s;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 101;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(50px);
}

.modal-wrapper {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-16px);
    opacity: 0;
    z-index: 102;
    width: calc(100vw - 30px);
    max-width: 548px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background-color: rgba(231, 241, 255, 0.6);
    border-radius: 32px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.open .modal-wrapper {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.modal-form-wrapper {
    position: relative;
    padding: 16px;
}

.modal-image {
    display: none;
}

.modal .btn-circle {
    position: absolute;
    top: 16px;
    right: 16px;
}

.modal-title {
    margin-bottom: 16px;
    font-size: var(--uasoft-font-x-large);
    padding-right: 60px;
}

.modal-text {
    margin-top: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.57;
}

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

.form-row label {
    display: block;
    margin-bottom: 10px;
    line-height: 1;
}

.wpcf7-form-control-wrap {
    display: flex;
    flex-direction: column;
}

.wpcf7-not-valid-tip {
    font-size: 14px !important;
}

.form-field {
    border-radius: 16px;
    background: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    padding: 14px 1.25em;
    max-width: 100%;
    border: 1px solid #ffffff;
    font-family: var(--uasoft-font-family), serif;
}

.form-field.wpcf7-not-valid {
    border-color: #dc3232;
}

.form-field:focus {
    outline: none;
}

.form-field::placeholder {
    color: var(--uasoft-text);
}

.form-field::-webkit-input-placeholder {
    color: var(--uasoft-text);
}

.form-field::-moz-placeholder {
    color: var(--uasoft-text);
}

.form-field:-ms-input-placeholder {
    color: var(--uasoft-text);
}

textarea.form-field {
    resize: vertical;
    height: 168px;
}

/* CF7 submit button loader */
@keyframes cf7-spin {
    to { transform: rotate(360deg); }
}

.btn.is-loading {
    pointer-events: none;
}

.btn.has-icon.is-loading::after {
    width: 1.25em;
    height: 1.25em;
    right: 1.5em;
    top: 50%;
    margin-top: -0.625em;
    background-image: none;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    animation: cf7-spin 0.7s linear infinite;
}

.btn.btn-white.has-icon.is-loading::after {
    border-color: rgba(31, 63, 93, 0.2);
    border-top-color: var(--uasoft-dark);
}

@media (min-width: 768px) {
    .form-row-group {
        display: flex;
        justify-content: space-between;
        gap: 16px;
    }

    .form-row-group .form-row {
        flex: 1 1 calc(50% - 8px);
        width: calc(50% - 8px);
    }
}

@media (min-width: 1200px) {
    .modal-wrapper {
        display: flex;
        max-width: 1182px;
        top: 50%;
    }

    .modal.open .modal-wrapper {
        transform: translateX(-50%) translateY(-50%);
    }

    .modal-content {
        width: 46%;
    }

    .modal-form-wrapper {
        padding: 40px 44px 28px;
    }

    .modal-image {
        display: block;
        width: 54%;
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        background-image: url('../images/form-image-min.webp');
    }
}