/* --- Кнопки ------------------------------------------------------------ */

.vx-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    border: 0;
    border-radius: 8px;
    font-family: var(--vx-font-heading);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.vx-button--primary {
    background: var(--vx-primary);
    color: var(--vx-white);
}

.vx-button--primary:hover,
.vx-button--primary:focus-visible {
    background: var(--vx-gray-100);
}

.vx-button--secondary {
    background: var(--vx-white);
    border: 1px solid var(--vx-gray-80);
    color: var(--vx-primary);
}

.vx-button--secondary:hover,
.vx-button--secondary:focus-visible {
    border-color: var(--vx-primary);
}

/* --- Секція ------------------------------------------------------------ */

.vx-section {
    padding-block: 40px;
}

.vx-section--light {
    background: var(--vx-white);
}

.vx-section--last {
    padding-bottom: 64px;
}

.vx-section__head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-block: 16px;
    border-bottom: 1px solid var(--vx-gray-30);
}

.vx-section__number {
    margin: 0;
    color: var(--vx-blue);
    font-family: var(--vx-font-heading);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
}

.vx-section__title {
    margin: 0;
}

.vx-section__lead {
    margin: 16px 0 0;
    max-width: 864px;
}

@media (min-width: 1024px) {
    .vx-section {
        padding-block: 48px;
    }

    .vx-section--last {
        padding-bottom: 96px;
    }

    .vx-button {
        width: 264px;
    }
}

/* --- Поля форми -------------------------------------------------------- */

.vx-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}

.vx-field__label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--vx-primary);
}

.vx-input,
.vx-textarea {
    width: 100%;
    padding: 10px 16px;
    background: var(--vx-white);
    border: 1px solid var(--vx-gray-10);
    border-radius: 8px;
    font-family: var(--vx-font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--vx-primary);
}

.vx-input {
    height: 48px;
}

.vx-textarea {
    height: 148px;
    padding-block: 12px;
    resize: vertical;
}

.vx-input::placeholder,
.vx-textarea::placeholder {
    color: var(--vx-gray-60);
    opacity: 1;
}

.vx-input:focus-visible,
.vx-textarea:focus-visible {
    outline: 2px solid var(--vx-blue);
    outline-offset: -1px;
    border-color: var(--vx-blue);
}

.vx-input--invalid {
    border-color: var(--vx-error);
}

.vx-field__error {
    font-size: 14px;
    line-height: 1.5;
    color: var(--vx-error);
}

/* --- Повідомлення ------------------------------------------------------ */

.vx-notice {
    padding: 12px 16px;
    border: 1px solid;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.4;
}

.vx-notice:focus-visible {
    outline: 2px solid var(--vx-blue);
    outline-offset: 2px;
}

.vx-notice--success {
    border-color: var(--vx-success);
    color: #2f6a2b;
}

.vx-notice--error {
    border-color: var(--vx-error);
    color: var(--vx-error);
}

.vx-contact__button {
    margin-top: 24px;
}

/* --- Етапи циклу -------------------------------------------------------- */
/* Спільні для секції 03 на головній і для сторінки «Повний цикл».           */

.vx-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 17px;
    margin: 0;
    padding: 0;
}

.vx-step__top {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 16px;
}

.vx-step__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 10px;
    border-radius: 8px;
    color: var(--vx-white);
    background: var(--vx-step-tile);
}

.vx-step__icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.vx-step__arrow {
    width: 80px;
    min-width: 0;
    height: 15px;
    color: var(--vx-step-arrow);
}

.vx-step__title {
    margin: 0 0 8px;
    font-family: var(--vx-font-heading);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.vx-step__text {
    margin: 0;
    color: var(--vx-gray-80);
}

/* --brand — головна, --dark — сторінка «Повний цикл». */
.vx-steps--brand {
    --vx-step-tile: var(--vx-blue);
    --vx-step-arrow: var(--vx-blue);
}

.vx-steps--dark {
    --vx-step-tile: linear-gradient(180deg, #626262 0%, #212121 100%);
    /* Не токен: серед сірих дизайн-системи такого немає. */
    --vx-step-arrow: #5d5d5d;
}

@media (min-width: 1024px) {
    .vx-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 23px;
    }

    .vx-step__arrow {
        width: 105px;
    }

    .vx-step__title {
        font-size: 24px;
        line-height: 1.2;
    }
}

/* --- Герой сторінки ----------------------------------------------------- */
/* Спільний для «Контактів» і «Повного циклу».                                  */

.vx-page-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 236px;
    overflow: hidden;
}

.vx-page-hero__media {
    position: absolute;
    inset: 0;
}

.vx-page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Затемнення 30% — без нього білий текст не читається на світлих ділянках приладової панелі. */
.vx-page-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 30%);
}

.vx-page-hero__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-block: 32px;
    color: var(--vx-white);
}

.vx-page-hero__title {
    margin: 0;
    font-family: var(--vx-font-heading);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.vx-page-hero__lead {
    margin: 0;
    font-family: var(--vx-font-heading);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

@media (min-width: 1024px) {
    .vx-page-hero {
        min-height: 420px;
    }

    .vx-page-hero {
        align-items: flex-start;
    }

    .vx-page-hero__inner {
        gap: 24px;
        padding-block: 259px 0;
    }

    .vx-page-hero__title {
        font-size: 40px;
        line-height: 1.1;
    }

    .vx-page-hero__lead {
        max-width: 839px;
        font-size: 18px;
    }
}
