.wrapper {
    box-sizing: content-box;
    max-width: 1620px;
    padding: 0 40px;
    margin: 0 auto;
}
.wrapper-lg {
    box-sizing: content-box;
    margin: 0 auto;
    max-width: 1920px;
}

.row {
    display: flex;
}

.space-y-lg {
    padding-top: 150px;
    padding-bottom: 150px;
}

.space-y-md {
    padding-top: 100px;
    padding-bottom: 100px;
}

.uppercase {
    text-transform: uppercase;
}
html.noscroll {
    overflow: hidden;
}

body {
    font-family: 'Inter';
    --primary: #FFF201;
    --secondary: #006FFF;
    --white: #FFFFFF;
    --black: #0D0D0D;
    --error: #FF4D4D;
    background: var(--black);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
}

main {
    transition: .3s;
}

main.blackout {
    opacity: .3;
}

h1 {
    font-weight: 700;
    font-size: 200px;
    line-height: 120%;
}

h1.text-sm {
    font-size: 100px;
}

h2 {
    font-weight: 700;
    font-size: 40px;
    line-height: 120%;
}

h3 {
    font-weight: 500;
    font-size: 40px;
    line-height: 120%;
}

h4 {
    font-weight: 300;
    font-size: 24px;
    line-height: 120%;
}

h5 {
    font-weight: 500;
    font-size: 20px;
    line-height: 140%;
}

h6 {
    font-weight: 500;
    font-size: 16px;
    line-height: 120%;
}

.h7 {
    font-weight: 300;
    font-size: 16px;
    line-height: 120%;
}

.landing-title {
    font-size: 64px;
    text-transform: uppercase;
}

.section-label {
    display: inline-flex;
    padding: 8px 15px;
    background-color: var(--primary);
}
.section-label p {
    font-size: 10px;
    line-height: 1.2;
    font-weight: bold;
    color: var(--black);
    text-transform: uppercase;
}

.text-editor p:not(:last-child) {
    padding-bottom: 20px;
}

p {
    font-weight: 500;
    font-size: 20px;
    line-height: 140%;
}

a {
    color: var(--secondary);
}

a:hover {
    color: var(--primary);
}

.button p {
    transition: .3s;
}

.button:hover p {
    color: var(--primary);
}

.link {
    position: relative;
    color: var(--white);
    transition: .2s;
    cursor: pointer;
    display: flex;
    width: fit-content;
}

.link:hover {
    color: var(--primary);
}

.link.arrow .h7 {
    position: absolute;
    right: 100%;
    top: 7px;
    margin-right: 10px;
    font-size: 14px;
    z-index: 1;
}

.link .arrow-text {
    text-transform: uppercase;
}

.link.arrow:hover:before {
    top: 27px;
    filter: brightness(0) saturate(100%) invert(82%) sepia(66%) saturate(2194%) hue-rotate(5deg) brightness(110%) contrast(103%);
}
.link.arrow:hover:after {
    background: var(--primary);
}

.link.arrow:before {
    content: '';
    position: absolute;
    right: 100%;
    top: 7px;
    width: 10px;
    height: 80px;
    background-image: url('../img/icons/link-arrow-to-bottom.svg');
    z-index: 2;
    transition: .2s;
}

.link.arrow::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 7px;
    margin-right: 4px;
    width: 2px;
    height: 80px;
    background: var(--white);
    z-index: 3;
    transition: .2s;
}

.link.arrow-horizontal {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.link.arrow-horizontal.arrow-left {
    text-align: right;
    justify-content: flex-end;
    padding-left: 80px;
}

.link.arrow-horizontal.arrow-right {
    justify-content: flex-start;
    padding-right: 30px;
}

.link.arrow-horizontal .h7 {
    font-size: 14px;
    text-transform: uppercase;
}

.link.arrow-horizontal::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 130px;
    height: 10px;
    z-index: 1;
    transition: right .2s, left .2s;
}

.link.arrow-horizontal::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 130px;
    height: 2px;
    background: var(--white);
    z-index: 2;
    transition: right .2s, left .2s;
}

.link.arrow-horizontal.arrow-left::before,
.link.arrow-horizontal.arrow-left::after {
    background-image: url('../img/icons/link-arrow-to-left.svg');
    right: 0;
}

.link.arrow-horizontal.arrow-right::before,
.link.arrow-horizontal.arrow-right::after {
    background-image: url('../img/icons/link-arrow-to-right.svg');
    left: 0;
    transform: translateY(calc(-4px - 50%));
}

.link.arrow-horizontal.arrow-left:hover::before {
    right: 20px;
}

.link.arrow-horizontal.arrow-right:hover::before {
    left: 20px;
}

.link.arrow-horizontal.arrow-left:hover::before,
.link.arrow-horizontal.arrow-left:hover::after,
.link.arrow-horizontal.arrow-right:hover::before,
.link.arrow-horizontal.arrow-right:hover::after {
    filter: brightness(0) saturate(100%) invert(82%) sepia(66%) saturate(2194%) hue-rotate(5deg) brightness(110%) contrast(103%);
}

.page-title {
    position: relative;
    padding: 10px 50px 10px 150px;
    background: var(--primary);
    width: fit-content;
    color: var(--black);
}

.page-title h1 {
    text-transform: uppercase;
}

.page-title h6 {
    position: absolute;
    top: 60px;
    left: 113px;
}

.page-title .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--secondary);
    border-radius: 50px;
    width: 90px;
    height: 90px;
    position: absolute;
    right: -45px;
    top: -45px;
}

.checkbox-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 24px;
    border: 2px solid var(--white);
    cursor: pointer;
    transition: .2s;
    user-select: none;
}

.checkbox-wrap:hover {
    color: var(--primary);
}

.checkbox {
    position: relative;
}

.checkbox input {
    display: none;
}

.checkbox input:checked+.checkbox-wrap {
    color: var(--primary);
}

.checkbox.no-icon input:checked+.checkbox-wrap,
.checkbox.no-icon:hover .checkbox-wrap {
    border-color: var(--primary);
}

.checkbox input:checked+.checkbox-wrap .icon {
    opacity: 1;
}

.checkbox.no-icon .icon {
    display: none;
}

.checkbox .icon {
    position: absolute;
    opacity: 0;
    transition: .2s;
    width: 30px;
    height: 30px;
    top: -15px;
    left: -15px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--secondary);
    border-radius: 50px;
}

.checkbox .icon img {
    transition: .2s;
    width: 14px;
    height: 10px;
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 330px;
    height: 80px;
    background: var(--secondary);
    color: var(--white);
    transition: .2s;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 24px;
    border: unset;
    outline: unset;
    line-height: 30px;
    font-family: inherit;
}

.btn-primary {
    width: unset;
    padding-left: 40px;
    padding-right: 40px;
}

.button:hover {
    background: var(--primary);
    color: var(--black);
}

main {
    position: relative;
    z-index: 9999;
}

.back-section .wrapper {
    display: flex;
    padding-top: 35px;
    padding-bottom: 25px;
}

.title-section {
    padding-bottom: 60px;
}

.title-section .row {
    align-items: center;
}

.title-section .col:first-child {
    width: 55%;
}

.title-section .col:last-child {
    display: flex;
    justify-content: center;
    width: 45%;
}

.title-section .col:last-child .text {
    max-width: 489px;
}

.overlay {
    display: none;
    position: absolute;
    position: fixed;
    z-index: 9999999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background: rgba(13, 13, 13, 0.95);
}

.overlay .wrap {
    display: none;
}

.overlay .wrap.active {
    display: block;
}

.overlay.active {
    display: flex;
    justify-content: center;
}

.overlay .container {
    border: 3px solid var(--white);
    padding: 50px 120px;
    position: relative;
    background: var(--black);
    max-width: 1000px;
}

.overlay .container img.closeOverlay {
    cursor: pointer;
    position: absolute;
    right: -50px;
    top: 0;
}

.overlay .terms-wrap a {
    width: fit-content;
    padding-left: 60px;
    margin-bottom: 30px;
}

.overlay .terms-wrap .terms {
    max-height: 735px;
    overflow-y: scroll;
    margin-right: -110px;
    padding-right: 110px;
}

.overlay .terms-wrap .terms::-webkit-scrollbar {
    width: 3px;
}

.overlay .terms-wrap .terms::-webkit-scrollbar {
    background: transparent;
}

.overlay .terms-wrap .terms::-webkit-scrollbar-thumb {
    background: var(--white);
    width: 3px;
    border-radius: 3px;
}

.terms h2 {
    margin-bottom: 50px;
    text-transform: uppercase;
}

/* For landing page */
.terms h2:not(:first-child) {
    margin-top: 50px;
}

.terms h6:not(:last-child) {
    margin-bottom: 50px;
}

input, textarea, button {
    -webkit-appearance: none;
    border-radius: unset !important;
}

input:not([type='submit']),
textarea {
    width: 100%;
    font-family: 'Inter';
    font-weight: 500;
    font-size: 20px;
    line-height: 140%;
    padding: 18px 20px;
    color: var(--white);
    border: 3px solid var(--white);
    transition: .2s;
    background: transparent;
    resize: none;
    position: relative;
}
.light-form input:not([type='submit']),
.light-form textarea {
    font-size: 16px;
    font-weight: 300;
    line-height: 120%;
    color: var(--black);
    border: 0;
    border-bottom: 2px solid var(--black);
}

input::placeholder,
textarea::placeholder {
    font-family: 'Inter';
    font-weight: 300;
    font-size: 20px;
    line-height: 140%;
    color: var(--white);
    text-transform: uppercase;
}
.light-form input::placeholder,
.light-form textarea::placeholder {
    font-size: 16px;
    line-height: 120%;
    color: var(--black);
}

input:focus,
textarea:focus {
    border: 3px solid var(--primary);
}
.light-form input:focus,
.light-form textarea:focus {
    border: 0;
    border-bottom: 2px solid var(--primary);
}

input:not(:placeholder-shown):not([type='submit']),
textarea:not(:placeholder-shown) {
    border: 0;
    border: 3px solid var(--primary);
}
.light-form input:not(:placeholder-shown):not([type='submit']),
.light-form textarea:not(:placeholder-shown) {
    border: 0;
    border-bottom: 2px solid var(--primary);
}

.wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wpcf7 form .row {
    width: 100%;
    display: flex;
    gap: 20px;
}

.wpcf7 form .row .col {
    width: 100%;
}

.wpcf7 form .row.submit {
    margin-top: 10px;
}

.wpcf7 form .row.submit .col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.wpcf7 form .row.submit .policy {
    text-align: right;
    text-transform: uppercase;
}

.wpcf7 form .row.submit .col input {
    width: 330px;
}

.wpcf7 form .row.submit .col p {
    position: relative;
}

.wpcf7 form .row.submit .col p a {
    color: var(--secondary);
}

.wpcf7 form .row.submit .col p a:hover {
    color: var(--primary);
}

.wpcf7 form .row.submit .wpcf7-spinner {
    position: absolute;
    opacity: 1;
    border-radius: unset;
    margin: 0;
    background: url('/wp-content/themes/kalyna/assets/img/loader.gif');
    background-size: cover;
    top: calc(50% - 24px);
    right: -60px;
    width: 48px;
    height: 48px;
}

.wpcf7 form .wpcf7-not-valid-tip {
    color: var(--error);
    text-align: right;
    margin-top: 10px;
    font-size: 12px;
    line-height: 140%;
    position: relative;
}

.wpcf7 form input.wpcf7-not-valid,
.wpcf7 form textarea.wpcf7-not-valid {
    border-color: var(--error);
}
.light-form .wpcf7 form input.wpcf7-not-valid,
.light-form .wpcf7 form textarea.wpcf7-not-valid {
    border-color: var(--error);
}

.light-form .submit_wrap {
    /*width: 100%;*/
}

.light-form .submit_wrap .wpcf7-submit {
    width: 100%;
    margin-top: 30px;
}

.wpcf7 form.invalid .wpcf7-response-output {
    padding: 20px;
    margin: 0;
}

.wpcf7 form .row.submit .wpcf7-spinner:before {
    display: none;
}

.wpcf7 form .wpcf7-not-valid-tip::after {
    content: '';
    width: 20px;
    height: 20px;
    position: absolute;
    right: 20px;
    bottom: 51.8px;
    background: url('/wp-content/themes/kalyna/assets/img/icons/error-solid.svg');
    filter: brightness(0) saturate(100%) invert(61%) sepia(94%) saturate(3849%) hue-rotate(329deg) brightness(100%) contrast(104%);
}

/* hide the reCAPTCHA badge */
.grecaptcha-badge {
    visibility: hidden;
}

@media(max-width: 1700px) {
    .page-title {
        padding: 6px 36px 6px 40px;
    }
    .page-title h1 {
        font-size: 140px;
    }
    .page-title h6 {
        top: 44px;
        left: 18px;
    }
}

@media(max-width: 1024px) {
    .space-y-lg {
        padding-top: 100px;
        padding-bottom: 100px;
    }
    .title-section .row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .title-section .row  .col {
        width: 100%;
    }
    .title-section .col:last-child .text {
        max-width: unset;
        padding: 0 40px;
    }
    .row {
        flex-direction: column;
    }
    .row .col {
        width: 100%;
    }
    .overlay .terms-wrap .terms {
        margin-right: 0;
        padding-right: 20px;
        height: auto;
        max-height: 613px;
    }
    .light-form .submit_wrap .wpcf7-submit {
        width: unset;
    }
}

@media(max-width: 768px) {
    .space-y-lg {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .overlay .terms-wrap .terms {
        max-height: 591px;
    }
    .back-section .wrapper {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .wrapper {
        padding: 0 20px;
    }
    h1,
    .landing-title {
        font-size: 36px;
    }
    h2 {
        font-size: 24px;
    }
    h3 {
        font-size: 16px;
    }
    h4 {
        font-weight: 500;
    }
    h5, h6, p {
        font-weight: 300;
    }

    h4, h5, p {
        font-size: 12px;
    }
    h6, .h7 {
        font-size: 8px;
    }

    .page-title h1 {
        font-size: 40px;
    }
    .page-title .icon {
        width: 40px;
        height: 40px;
        right: -20px;
        top: -20px;
    }
    .page-title .icon img {
        width: 10px;
    }
    .page-title h6 {
        top: 16px;
    }
    .link .arrow-text {
        font-size: 24px;
        margin-top: 8px;
    }
    .link.arrow .h7 {
        font-size: 10px;
        top: 11px;
    }
    .link.arrow:before, .link.arrow::after {
        height: 60px;
        background-position: bottom;
        top: 13px;
    }
    .checkbox-wrap {
        padding: 5px 10px;
        border-width: 2px;
    }
    .checkbox-wrap img {
        width: 6px;
    }
    .checkbox .icon {
        width: 12px;
        height: 12px;
        top: -6px;
        left: -6px;
    }
    .terms h2 {
        margin-bottom: 20px;
    }
    .terms h6:not(:last-child) {
        margin-bottom: 30px;
    }
    .link.arrow-horizontal.arrow-left {
        padding-left: 30px;
    }
    .link.arrow-horizontal .arrow-text {
        gap: 10px;
        font-size: 10px;
        margin-top: 0;
    }
    .link.arrow-horizontal .h7 {
        font-size: 8px;
    }
    .link.arrow-horizontal.arrow-left::before, .link.arrow-horizontal.arrow-left::after {
        width: 60px;
    }
    .overlay .terms-wrap a {
        margin-bottom: 20px;
    }

    .light-form .submit_wrap .wpcf7-submit {
        width: 100%;
    }
}

@media(max-width: 768px)  and (max-height: 920px) {
    .overlay.contact-terms .container {
        padding: 30px 40px;
    }
}

@media(max-height: 920px) {
    .overlay.contact .subtitle {
        margin-bottom: 20px;
    }
    .overlay .container {
        padding: 30px 80px;
    }
    .overlay.contact .title {
        margin-bottom: 15px;
    }
    .overlay.contact textarea {
        height: 200px;
    }
    .overlay .terms-wrap .terms {
        height: 613px;
        margin-right: -70px;
        padding-right: 70px;
    }
}

@media(max-height: 725px) {
    .overlay.contact textarea {
        height: 120px;
    }
    .overlay .terms-wrap .terms {
        height: 533px;
    }
}

@media(max-width: 480px) {
    .button {
        width: 100%;
        height: 60px;
        font-size: 16px;
    }
    input:not([type='submit']),
    textarea {
        font-size: 12px;
        line-height: 140%;
        padding: 10px 18px;
        border: 2px solid var(--white);
    }
    input::placeholder,
    textarea::placeholder {
        font-size: 12px;
    }
    input:focus,
    textarea:focus {
        border: 2px solid var(--primary);
    }
    input:not(:placeholder-shown):not([type='submit']),
    textarea:not(:placeholder-shown) {
        border: 2px solid var(--primary);
    }
    .wpcf7 form {
        gap: 10px;
    }
    .wpcf7 form .row {
        gap: 10px;
    }
    .wpcf7 form.invalid .wpcf7-response-output {
        padding: 10px;
        font-size: 12px;
    }
    .wpcf7 form .wpcf7-not-valid-tip::after {
        content: '';
        width: 12px;
        height: 12px;
        position: absolute;
        right: 12px;
        bottom: 42px;
        background-size: contain;
    }
    .wpcf7 form .wpcf7-not-valid-tip {
        margin-top: 5px;
    }
    .wpcf7 form .row.submit {
        margin-top: 0p;
    }
    .wpcf7 form .row.submit .col {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .wpcf7 form .row.submit .col br {
        display: none;
    }
    .wpcf7 form .row.submit .col p {
        width: 100%;
        text-align: center;
    }
    .wpcf7 form .row.submit .col input {
        width: 100%;
    }
    .overlay .terms-wrap .terms {
        height: 405px;
    }
}
