/* Chybová stránka
--------------------------------------------- */

.error-page {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 35px;
    padding-bottom: 60px;
}

.error-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 42px 46px;
    overflow: hidden;
    color: #fff;
    background:
            linear-gradient(135deg, rgba(26, 104, 72, 0.97), rgba(16, 64, 47, 0.98));
}

.error-card::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -100px;
    width: 280px;
    height: 280px;
    border: 38px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.error-card__icon {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 0 92px;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    border: 3px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    font-size: 60px;
    font-weight: 700;
    line-height: 1;
}

.error-card__content {
    position: relative;
    z-index: 1;
}

.error-card h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
}

.error-card__message {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.6;
}

.error-card__actions {
    margin-top: 24px;
}

.error-home-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 19px;
    color: #185d43;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition:
            color 0.2s ease,
            background-color 0.2s ease;
}

.error-home-link::before {
    content: "‹";
    margin-right: 8px;
    font-size: 22px;
    line-height: 14px;
}

.error-home-link:hover,
.error-home-link:focus {
    color: #fff;
    background: #20a66c;
}

.error-search {
    padding: 34px 46px 38px;
    background: #f5f7f6;
    border: 1px solid #e2e7e4;
    border-top: 0;
}

.error-search h2 {
    margin: 0 0 18px;
    color: #263d34;
    font-size: 20px;
    font-weight: 700;
}

.error-search__form {
    display: flex;
    width: 100%;
}

.error-search__input {
    min-width: 0;
    height: 48px;
    flex: 1 1 auto;
    padding: 0 16px;
    color: #263d34;
    background: #fff;
    border: 1px solid #ccd6d1;
    border-right: 0;
    border-radius: 0;
    font: inherit;
}

.error-search__input:focus {
    position: relative;
    z-index: 1;
    border-color: #1b8d5e;
    outline: 2px solid rgba(27, 141, 94, 0.15);
}

.error-search__button {
    min-width: 125px;
    height: 48px;
    padding: 0 22px;
    color: #fff;
    background: #1b8d5e;
    border: 1px solid #1b8d5e;
    border-radius: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.error-search__button:hover,
.error-search__button:focus {
    background: #146f49;
    border-color: #146f49;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media only screen and (max-width: 600px) {
    .error-page {
        padding-top: 20px;
        padding-bottom: 35px;
    }

    .error-card {
        display: block;
        padding: 32px 25px;
    }

    .error-card__icon {
        width: 68px;
        height: 68px;
        margin-bottom: 22px;
        flex-basis: 68px;
        font-size: 44px;
    }

    .error-card h1 {
        font-size: 30px;
    }

    .error-card__message {
        font-size: 16px;
    }

    .error-search {
        padding: 27px 25px 30px;
    }

    .error-search__form {
        display: block;
    }

    .error-search__input,
    .error-search__button {
        width: 100%;
    }

    .error-search__input {
        border-right: 1px solid #ccd6d1;
    }

    .error-search__button {
        margin-top: 10px;
    }
}
