.tp-hero-buttons,
.tp-hero-buttons * {
    box-sizing: border-box;
}

.tp-hero-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    width: auto;
    max-width: 100%;
    font-family: inherit;
}

.tp-hero-buttons .tp-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 50px;
    padding: 13px 24px;
    border: 2px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 120ms ease;
    appearance: none;
}

.tp-hero-buttons .tp-hero-button,
.tp-hero-buttons .tp-hero-button:link,
.tp-hero-buttons .tp-hero-button:visited,
.tp-hero-buttons .tp-hero-button:hover,
.tp-hero-buttons .tp-hero-button:focus,
.tp-hero-buttons .tp-hero-button:active,
.tp-hero-buttons .tp-hero-button span {
    text-decoration: none !important;
    text-decoration-line: none !important;
}

.tp-hero-buttons .tp-hero-button--primary {
    border-color: #ff8500;
    background: #ff8500;
    color: #ffffff;
}

.tp-hero-buttons .tp-hero-button--primary,
.tp-hero-buttons .tp-hero-button--primary:link,
.tp-hero-buttons .tp-hero-button--primary:visited,
.tp-hero-buttons .tp-hero-button--primary:hover,
.tp-hero-buttons .tp-hero-button--primary:focus,
.tp-hero-buttons .tp-hero-button--primary:active {
    color: #ffffff;
}

.tp-hero-buttons .tp-hero-button--secondary {
    border-color: #ffffff;
    background: rgba(11, 46, 89, 0.78);
    color: #ffffff;
}

.tp-hero-buttons .tp-hero-button--primary:active {
    border-color: #cc6200;
    background: #cc6200;
    transform: translateY(1px);
}

.tp-hero-buttons .tp-hero-button--secondary:active {
    border-color: #ffffff;
    background: #0b2e59;
    color: #ffffff;
    transform: translateY(1px);
}

@media (hover: hover) and (pointer: fine) {
    .tp-hero-buttons .tp-hero-button--primary:hover {
        border-color: #e66f00;
        background: #e66f00;
        color: #ffffff;
    }

    .tp-hero-buttons .tp-hero-button--secondary:hover {
        border-color: #ffffff;
        background: #0b2e59;
        color: #ffffff;
    }
}

.tp-hero-buttons .tp-hero-button:focus-visible {
    outline: 3px solid rgba(255, 133, 0, 0.55);
    outline-offset: 3px;
}

.tp-hero-modal button:focus-visible,
.tp-hero-form input:focus-visible,
.tp-hero-form textarea:focus-visible,
.tp-hero-form a:focus-visible {
    outline: 3px solid rgba(255, 133, 0, 0.35);
    outline-offset: 3px;
}

.tp-hero-modal[hidden] {
    display: none !important;
}

.tp-hero-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    overflow-y: auto;
    background: rgba(5, 20, 38, 0.68);
}

.tp-hero-modal__dialog {
    width: 100%;
    max-width: 440px;
    padding: 24px;
    border-radius: 12px;
    background: #ffffff;
    color: #172033;
    box-shadow: 0 20px 60px rgba(5, 20, 38, 0.28);
}

.tp-hero-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.tp-hero-modal__title {
    margin: 0;
    color: #0b2e59;
    font: inherit;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.tp-hero-modal__close {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #0b2e59;
    font: inherit;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.tp-hero-modal__close:hover {
    background: #f1f4f8;
}

.tp-hero-modal__intro {
    margin: 10px 0 20px;
    color: #4d5968;
    font-size: 15px;
    line-height: 1.5;
}

.tp-hero-form {
    display: grid;
    gap: 16px;
}

.tp-hero-form__field {
    display: grid;
    gap: 7px;
}

.tp-hero-form__field label {
    color: #172033;
    font-size: 14px;
    font-weight: 600;
}

.tp-hero-form input[type="text"],
.tp-hero-form input[type="tel"],
.tp-hero-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid #b8c1cc;
    border-radius: 7px;
    background: #ffffff;
    color: #172033;
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
}

.tp-hero-form textarea {
    min-height: 104px;
    resize: vertical;
}

.tp-hero-form input:focus,
.tp-hero-form textarea:focus {
    border-color: #0b2e59;
}

.tp-hero-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #4d5968;
    font-size: 13px;
    line-height: 1.45;
    cursor: pointer;
}

.tp-hero-form__consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: #ff8500;
}

.tp-hero-form__consent a {
    color: #0b2e59;
    text-decoration: underline;
}

.tp-hero-form__submit {
    min-height: 50px;
    padding: 13px 24px;
    border: 2px solid #ff8500;
    border-radius: 8px;
    background: #ff8500;
    color: #ffffff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease;
}

.tp-hero-form__submit:hover,
.tp-hero-form__submit:focus-visible {
    border-color: #e66f00;
    background: #e66f00;
}

.tp-hero-form__submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.tp-hero-form-result {
    min-height: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.tp-hero-form-result[hidden] {
    display: none !important;
}

.tp-hero-form-result.is-success {
    padding: 10px 12px;
    border: 1px solid #b8cde3;
    border-radius: 6px;
    background: #eef5fc;
    color: #0b2e59;
}

.tp-hero-form-result.is-error {
    padding: 10px 12px;
    border: 1px solid #e4a7a7;
    border-radius: 6px;
    background: #fff1f1;
    color: #8a1f1f;
}

.tp-hero-form__trap {
    position: fixed;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

body.tp-hero-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .tp-hero-buttons {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }

    .tp-hero-buttons .tp-hero-button {
        width: 100%;
    }

    .tp-hero-modal {
        padding: 14px;
    }

    .tp-hero-modal__dialog {
        padding: 20px 16px;
    }

    .tp-hero-modal__title {
        font-size: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tp-hero-buttons .tp-hero-button,
    .tp-hero-form__submit {
        transition: none;
    }

    .tp-hero-buttons .tp-hero-button:active {
        transform: none;
    }
}
