.res-panel {
    border: 1px solid var(--outline);
    background: var(--client);
    border-radius: 8px;
    padding: 16px;
    font-family: "base_font";
    margin-top: 20px;
}

.contact-form {
    max-width: 720px;
    margin-top: 20px;
}

.contact-form h1 {
    margin: 0 0 8px;
    font-family: "title_font", system-ui, sans-serif;
}

.contact-intro {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.5;
}

.res-label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
}

.contact-form input:not([type="hidden"]),
.contact-form select,
.contact-form textarea {
    max-width: 100%;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.contact-form input:not([type="hidden"]),
.contact-form select {
    width: min(360px, 100%);
}

.form-hint {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9rem;
}

.message-label {
    display: block;
    margin-top: 18px;
}

textarea.res-message {
    width: 100%;
    height: 200px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.contact-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-status {
    min-height: 1.5em;
    margin: 12px 0 0;
}

.contact-status.success {
    color: #17733f;
}

.contact-status.error {
    color: var(--accent-strong);
}

#sendmsg:disabled {
    cursor: wait;
    opacity: 0.7;
}

.about-back {
    margin-bottom: 20px;
}

.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 30px;
    align-items: center;
    padding: 38px 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: var(--shadow);
}

.about-header h1 {
    margin: 0;
    font-family: "title_font", system-ui, sans-serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1;
}

.tagline {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.7;
}

.about-photo-panel {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.about-photo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.about-story {
    margin-top: 18px;
    padding: clamp(24px, 5vw, 44px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.about-story p {
    margin: 0 0 22px;
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.8;
}

.about-story p:first-child {
    color: var(--muted);
    font-size: 1.14rem;
}

.about-story p:last-child {
    margin: 32px 0 0;
    padding: 18px 20px;
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--surface-soft);
}

@media (max-width: 700px) {
    .about-hero {
        grid-template-columns: 1fr;
        padding: 26px;
    }

    .about-photo-panel {
        max-width: 230px;
        order: -1;
    }

    .about-story p {
        font-size: 0.98rem;
        line-height: 1.7;
    }
}
