:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f6f8;
    color: #1f2933;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f5f6f8;
}

.page {
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 28px;
}

.brand img {
    max-width: 220px;
    max-height: 72px;
}

.shop-back {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    border: 1px solid #b8c2cc;
    border-radius: 6px;
    padding: 9px 13px;
    color: #1f2933;
    background: #ffffff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.shop-back:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.panel {
    background: #ffffff;
    border: 1px solid #d9dee5;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

h1 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.2;
}

p {
    line-height: 1.55;
}

.intro {
    margin: 0 0 24px;
    color: #52606d;
}

.field {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid #b8c2cc;
    border-radius: 6px;
    padding: 12px 13px;
    font: inherit;
    background: #ffffff;
    color: #1f2933;
}

input:focus,
textarea:focus {
    outline: 3px solid color-mix(in srgb, var(--accent) 20%, transparent);
    border-color: var(--accent);
}

textarea {
    min-height: 112px;
    resize: vertical;
}

.hint {
    margin-top: 6px;
    color: #66788a;
    font-size: 14px;
}

.error {
    margin-top: 6px;
    color: #a61b1b;
    font-size: 14px;
}

.alert {
    border-radius: 6px;
    padding: 13px 14px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fff2f0;
    border: 1px solid #f3b5ad;
    color: #8a1f11;
}

.alert-success {
    background: #effaf1;
    border: 1px solid #a7d8ad;
    color: #1f6b2a;
}

.hidden-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.actions {
    margin-top: 22px;
}

button {
    border: 0;
    border-radius: 6px;
    padding: 13px 18px;
    font: inherit;
    font-weight: 700;
    color: #ffffff;
    background: var(--accent);
    cursor: pointer;
}

button:hover {
    filter: brightness(0.95);
}

.legal {
    margin-top: 18px;
    color: #66788a;
    font-size: 14px;
}

.footer {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
    font-size: 14px;
}

.footer a {
    color: var(--accent);
}

@media (max-width: 560px) {
    .page {
        width: min(100% - 20px, 760px);
        padding: 22px 0;
    }

    .panel {
        padding: 20px;
    }

    .brand {
        align-items: flex-start;
        flex-direction: column;
    }

    h1 {
        font-size: 24px;
    }
}
