/*Hero*/
.hero {
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 860px;
}

.hero__title {
    background: var(--gradient-light);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    max-width: 1166px;
}

.hero__sub-title {
    color: var(--neutral-250);
    max-width: 884px;
    margin: 0 auto;
}

.hero__text-block {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero__button {
    padding: 18px 64px;
    background-color: #222222;
    margin-top: 64px;
    margin-inline: auto;
    transition: background-color .5s ease-in-out;
    position: relative;
    overflow: hidden;
    max-width: 262px;
}

.hero__button::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    background: #1b5aff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: width .7s cubic-bezier(0.4, 0.2, 0.2, 1), height .7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.hero__button:hover::before,
.hero__button:focus-visible::before {
    width: 400px;
    height: 400px;
}

.hero__button span {
    position: relative;
    z-index: 1;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    border-radius: 24px;
}

@media (max-width: 1100px) {
    .title-l {
        font-size: 36px !important;
    }

    .subtitle-l {
        font-size: 20px !important;
    }

    .hero__text-block {
        max-width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 660px;
    }
}

@media (max-width: 500px) {
    .title-l {
        font-size: 24px !important;
    }
}

/*Feedback*/

.feedback {
    background-color: #FEFEFE;
    border-radius: 32px;
    padding: 16px;
}

.feedback > .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.feedback__video-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    position: relative;
}

.feedback__left {
    max-width: 674px;
    width: 100%;
    position: relative;
}

.feedback__left-overlay {
    background-color: rgba(246, 246, 246, 0.1);
    padding: 44px 32px;
    border-radius: 32px;
    position: absolute;
    bottom: 31px;
    left: 24px;
    right: 43px;
    text-align: center;
    text-wrap: balance;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feedback__left-title {
    background: linear-gradient(90deg, #7F98DE 0%, #FFFFFF 45.67%, #758DCF 100%);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
}

.feedback__right {
    background-color: #F5F5F5;
    border-radius: 16px;
    padding: 122px 78px;
    position: relative;
    overflow: hidden;
}

.feedback__right::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: -20px;
    width: 248px;
    height: 248px;
    background-image: url('../images/feedback/feedback-decoration.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    opacity: 0.8;
}

.form__group {
    position: relative;
}

.feedback__left-subtitle {
    margin-top: 16px;
    color: var(--neutral-250);
}

.form__label {
    position: absolute;
    top: -8px;
    left: 20px;
    background: #F5F5F5;
    padding-inline: 5px;
    font-family: 'PT Sans', sans-serif;
    color: var(--primary-200);
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    z-index: 5;
    transition: color .3s ease-in-out;
}

.form__input[type=tel] {
    color: #222222;
    font-weight: 700;
}

.form__input,
.form__textarea {
    width: 100%;
    min-height: 56px;
    border-radius: 12px;
    border: 2px solid var(--primary-200);
    font-family: 'PT Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 120%;
    padding: 16px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: #F5F5F5;
}

.form__input:focus,
.form__textarea:focus {
    border: 2px solid var(--primary-500);
}

.wpcf7-form .form__group:has(.form__input:focus) .form__label {
    color: var(--primary-500) !important;
}

.form__input:hover,
.form__textarea:hover {
    border: 2px solid var(--primary-500);
}

.wpcf7-form .form__group:has(.form__input:hover) .form__label {
    color: var(--primary-500) !important;
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--neutral-250);
    opacity: 0.7;
}

.invisible {
    display: none;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.wpcf7-form .wpcf7-list-item {
    margin-block: 16px 44px;
    position: relative;
}

.wpcf7-form .wpcf7-list-item-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
}

.checkbox__input:checked + .checkbox__custom {
    background: #1B5AFF;
    border-color: #1B5AFF;
}

.checkbox__input:checked + .checkbox__custom::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid var(--neutral-500);
    transform: rotate(45deg);
}

.wpcf7-response-output {
    display: none;
}

.wpcf7-form > p {
    display: flex;
    justify-content: center;
}


.form__checkbox {
    margin-block: 16px 28px;
    position: relative;
}

.wpcf7-list-item > label {
    display: flex;
}

.wpcf7-spinner {
    display: none;
}

.checkbox__label {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    cursor: pointer;
    line-height: 1.5;
    position: relative;
}

.checkbox__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox__custom {
    width: 24px;
    height: 24px;
    border: 2px solid var(--neutral-300);
    border-radius: 50px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox__input:checked + .checkbox__custom {
    background: linear-gradient(0deg, #1B5AFF, #1B5AFF),
    radial-gradient(50% 50% at 50% 50%, #FFFFFF 2.4%, #8DADFF 50%, #1B5AFF 72.12%);
    border-color: #1B5AFF;
    z-index: 5;
}

.checkbox__input:checked + .checkbox__custom::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: radial-gradient(50% 50% at 50% 50%, #FFFFFF 2.4%, #8DADFF 50%, #1B5AFF 72.12%);
    top: -2px;
    left: -1.5px;
    z-index: 5;
}

.checkbox__text {
    color: #222222;
    margin-left: 8px;
}

.privacy-link {
    color: #1B5AFF !important;
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

.feedback__submit {
    background-color: #222222;
    padding: 18px 64px;
    max-width: 338px;
    text-wrap: nowrap;
    margin: 0 auto;
    transition: background-color .5s ease-in-out;
}


.feedback__submit:active {
    transform: translateY(0);
}

.feedback__submit:hover {
    background-color: #1b5aff;
}

.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

#email, #comment {
    border-color: var(--neutral-300);
}

.wpcf7-form p {
    margin: 0;
}

.wpcf7-not-valid-tip {
    color: var(--error);
    font-family: 'PT Sans', sans-serif;
    font-weight: 400;
    line-height: 120%;
    font-size: 16px;
    margin-top: 8px;
    display: block;
}

.wpcf7-form .wpcf7-not-valid {
    border-color: var(--error) !important;
}

.wpcf7-form .form__group:has(.wpcf7-not-valid) .form__label {
    color: var(--error) !important;
}

.checkbox__custom {
    width: 24px;
    height: 24px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid var(--neutral-300);
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    margin: 0;
    vertical-align: middle;
}

.checkbox__custom:hover {
    border-color: #1B5AFF;
    transform: scale(1.05);
}

.checkbox__custom:focus {
    outline: none;

}

.checkbox__custom:checked {
    background: linear-gradient(0deg, #1B5AFF, #1B5AFF),
    radial-gradient(50% 50% at 50% 50%, #FFFFFF 2.4%, #8DADFF 50%, #1B5AFF 72.12%);
    border-color: #1B5AFF;
}

.checkbox__custom:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--neutral-500);
    border-radius: 50%;
    display: block;
    filter: blur(2px);
}

.checkbox__custom:active {
    transform: scale(0.95);
}

.checkbox__custom:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 1100px) {
    .feedback > .container {
        display: flex;
        flex-direction: column;
    }

    .feedback__left-overlay {
        top: 20px;
        right: 24px;
    }

    .feedback__left {
        max-width: 100%;
        height: 225px;
    }

    .feedback__left-title {
        font-size: 24px !important;

    }

    .feedback__left-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .feedback__submit {
        max-width: 100%;
        font-size: 18px !important;
    }

    .feedback__right {
        padding: 20px 8px;
    }

    .feedback__right:before {
        width: 140px;
        height: 140px;
    }

    .button-l {
        font-size: 16px;
    }

    .feedback__left-subtitle {
        margin-top: 5px;
    }

    .wpcf7-form .wpcf7-list-item {
        margin-block: 10px !important;
    }

    .form__checkbox {
        margin: 0;
    }
}

@media (min-width: 501px) and (max-width: 505px) {
    .feedback__left-overlay {
        top: 25px;
    }
}

@media (max-width: 500px) {

    .feedback__left-overlay {
        padding: 25px 16px;
        top: 25px;
    }

    .feedback__left-title {
        font-size: 20px !important;
    }
}

/*Runner*/

.runner {
    background-color: var(--neutral-900);
    color: var(--primary-50);
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    min-height: 103px;
    align-items: center;
    justify-content: flex-start;
}

.runner__row {
    animation: runner 60s linear infinite;
}

.runner__row--duplicate {
    left: 100%;
}

.runner__item {
    padding-right: 1rem;
}

.runner__item::after {
    content: "•";
    margin-left: 1rem;
}

@keyframes runner {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/*Services*/
.services {
    padding: 100px 66px;
    background-color: var(--neutral-500);
    border-radius: 32px;
    overflow: hidden;
}

.services__header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 801px;
    margin-inline: auto;
}

.services__title {
    background: var(--gradient-dark);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 32px;
}

.services__subtitle {
    color: var(--neutral-600);
}

.services__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    max-width: 1272px;
    margin: 0 auto;
}

.services__card {
    background: #F5F5F5;
    color: var(--neutral-800);
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    padding: 44px 33px;
    transition: background-color .3s ease-in-out, padding-top 1s ease-in-out;
    max-width: 408px;
    width: 100%;
}

.services__card:hover {
    background-color: #242424;
}

.services__card:hover > .services__card-title {
    color: var(--primary-50);
    margin-left: -4px;
}

.services__card:hover > .services__card-icon {
    bottom: -22px;
    right: -20px;
    transform: scale(1.5);
    filter: blur(8px);
}

.services__card-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    filter: blur(16px);
    z-index: 1;
    opacity: 0;
    transition: all 1s ease-in-out;
}

.services__card:hover > .services__card-icon::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.services__card-icon {
    position: absolute;
    bottom: 32px;
    right: 32px;
    transition: all 1s ease-in-out;
}

.services__card-icon--special {
    background: transparent;
}

.services__card-title {
    font-family: 'Days One', sans-serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--neutral-800);
    line-height: 120%;
    transition: all 1s ease-in-out;
}

.services__card-title--white {
    color: var(--neutral-500);
}

@media (max-width: 1439px) {
    .services__grid {
        justify-content: center;
    }

    .services__card {
        max-width: 100%;
    }

    .services__card {
        min-height: 200px;
    }

    .services__card-icon {
        bottom: 5px;
        right: 16px;
    }

    .services__card-image {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 900px) {
    .services__card:hover {
        background: #F5F5F5;
    }

    .services__card:hover > .services__card-title {
        color: var(--neutral-800);
    }

    .services__card:hover > .services__card-icon {
        bottom: 0;
        right: 0;
        transform: scale(1);
        filter: none;
    }

    .services__card:hover > .services__card-icon::after {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }

    .services__card:hover > .services__card-icon {
        bottom: 32px;
        right: 32px;
    }

    .services__card:hover > .services__card-title {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .services__card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 22px 20px;
        min-height: 100px;
    }

    .services__card-image {
        width: 40px;
        height: 40px;
    }

    .services__card-title {
        font-size: 20px !important;
    }

    .services {
        padding: 25px 15px;
    }

    .services__card-icon {
        bottom: 0;
        right: 0;
        position: relative;
    }
}