/* Правки поверх main.min.css */

/* Trust: 3 пункти замість 4 */
@media (min-width: 1024px) {
    .trust__row {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Послуги: 5 карток без порожньої клітинки */
@media (min-width: 768px) and (max-width: 1023px) {
    .services__card:last-child:nth-child(odd) {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .services__card {
        grid-column: span 2;
    }

    .services__card:nth-last-child(-n+2):nth-child(3n+1),
    .services__card:nth-last-child(-n+2):nth-child(3n+1) ~ .services__card {
        grid-column: span 3;
    }
}

/* Ліцензії: 2 документи */
.licenses__row--two {
    grid-template-columns: 1fr;
}

.licenses__row--two .licenses__card {
    aspect-ratio: auto;
    min-height: 200px;
}

@media (min-width: 768px) {
    .licenses__row--two {
        grid-template-columns: repeat(2, 1fr);
    }
}

.licenses__text {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

/* Форма заявки */
.callback__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.callback__status {
    margin-top: var(--space-md);
    font-size: var(--font-size-sm);
}

.callback__status:empty {
    display: none;
}

.callback__status.is-success {
    color: var(--color-success);
}

.callback__status.is-error {
    color: var(--color-error);
}

.form__control.is-invalid + .form__message {
    color: var(--color-error);
}

.callback__note a {
    text-decoration: underline;
}
