:root {
    --ink: #261c12;
    --heading: #1a140c;
    --muted: #6d624f;
    --cream: #f8f1e3;
    --gold: #c6a15a;
    --gold-deep: #5c3d12;
    --gold-bright: #e8c872;
    --danger: #b42318;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    color: var(--cream);
    background: #120e0a;
}
.stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #1a140c;
}
.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}
.bg-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(12, 9, 6, 0.72) 0%, rgba(18, 12, 8, 0.55) 38%, rgba(10, 8, 6, 0.82) 100%);
}
.wrap { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 1.5rem 1rem 1.5rem; }
header.brand { text-align: center; margin-bottom: 0.15rem; }
header.brand img {
    width: min(148px, 42vw);
    height: auto;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.45));
}
header.brand p {
    margin: 0.4rem auto 0;
    max-width: 28rem;
    color: #f3e6c8;
    letter-spacing: 0.01em;
}
.site-footer a {
    color: var(--gold-bright);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.site-footer a:hover { border-bottom-color: var(--gold-bright); }
.ornament { display: flex; align-items: center; justify-content: center; gap: 0.7rem; margin: 0.8rem auto 0.1rem; }
.ornament::before, .ornament::after {
    content: "";
    width: 72px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-bright));
}
.ornament::after { background: linear-gradient(90deg, var(--gold-bright), transparent); }
.ornament span {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #fff4d2, #a9782c);
    transform: rotate(45deg);
    box-shadow: 0 0 0 4px rgba(232, 200, 114, 0.2);
}
.progress { display: flex; gap: 0.45rem; margin: 1rem 0 1rem; }
.progress span {
    flex: 1;
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 248, 236, 0.16);
    box-shadow: inset 0 0 0 1px rgba(232, 200, 114, 0.28);
}
.progress span.on { background: linear-gradient(90deg, #6b4e16, #e8c872); box-shadow: none; }
.card {
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255, 252, 246, 0.97), #fffaf2 30%) padding-box,
        linear-gradient(120deg, #f3e0a8, #a9782c 48%, #e8c872) border-box;
    border: 1.5px solid transparent;
    border-radius: 22px;
    padding: 1.4rem 1.35rem 1.45rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42); }
.step { display: none; }
.step.active { display: block; }
h2 {
    margin: 0 0 1rem;
    font-family: Cinzel, Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--heading);
}
h2::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 0.55rem 0.12rem 0;
    background: linear-gradient(135deg, #fff4d2, #a9782c);
    transform: rotate(45deg);
    vertical-align: middle;
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.82rem; font-weight: 650; color: #3f3426; }
.req { color: #b42318; margin-left: 0.15rem; font-weight: 700; }
.hp { position: absolute; left: -10000px; height: 0; overflow: hidden; }
label.full { grid-column: 1 / -1; }
.hint { font-weight: 500; color: var(--muted); line-height: 1.4; }
.cv-upload {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.9rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #fffaf0, #f6ecd4);
    border: 1px dashed #c6a15a;
}
.cv-file { width: 100%; }
.cv-file input[type="file"] { padding: 0.55rem 0.75rem; background: #fff; }
input, select, textarea {
    font: inherit;
    font-weight: 500;
    padding: 0.72rem 0.8rem;
    border: 1px solid #e6d3ae;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #a9782c;
    box-shadow: 0 0 0 4px rgba(198, 161, 90, 0.28);
}
.check {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.95rem;
    border: 1px solid #ead7ae;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, #fbf6ea);
    font-weight: 550;
}
.check input { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; accent-color: #8a6a2a; }
.actions { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 1.15rem; }
button {
    font: inherit;
    font-weight: 700;
    border: 0;
    border-radius: 999px;
    padding: 0.78rem 1.25rem;
    cursor: pointer;
}
button.primary {
    background: linear-gradient(100deg, #5c3d12 0%, #a9782c 55%, #e8c872 100%);
    color: #fffaf0;
    box-shadow: 0 10px 22px rgba(92, 61, 18, 0.28);
}
button.primary:hover { filter: brightness(1.08); }
button.ghost { background: transparent; color: var(--gold-deep); }
button:disabled { opacity: 0.55; cursor: wait; }
.err { color: var(--danger); font-size: 0.85rem; min-height: 1.2rem; margin: 0.4rem 0 0; }
.review { display: grid; grid-template-columns: 180px 1fr; gap: 0.45rem 0.8rem; margin-top: 0.4rem; font-size: 0.95rem; }
.review dt { color: var(--muted); }
.review dd { margin: 0; }
form[hidden],
#progress[hidden] { display: none !important; }
.done { display: none; text-align: center; }
.done.show { display: block; }
.done h2 { font-family: Cinzel, Georgia, serif; }
.done p { margin: 0; color: var(--muted); }
.site-footer {
    position: relative;
    z-index: 1;
    margin: 0.5rem auto 0;
    max-width: 920px;
    padding: 0 1rem 1.6rem;
    color: #f6edd9;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr 1.3fr;
    gap: 1.2rem;
    padding: 1.15rem 1.2rem;
    border: 1px solid rgba(232, 200, 114, 0.35);
    border-radius: 18px;
    background: rgba(16, 12, 8, 0.62);
    backdrop-filter: blur(8px);
}
.footer-grid a, .footer-grid address { display: block; font-style: normal; line-height: 1.55; }
.footer-grid a.contact-line {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.contact-line svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: currentColor;
    overflow: visible;
}
.footer-label {
    margin: 0 0 0.35rem;
    font-family: Cinzel, Georgia, serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}
.copy { margin: 0.85rem 0 0; color: #e7d7b0; font-size: 0.85rem; cursor: default; }
.copy a { pointer-events: none; text-decoration: none; color: inherit; }
.wa {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 5;
    width: 56px;
    height: 56px;
    padding: 11px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.wa svg { width: 34px; height: 34px; display: block; fill: #fff; overflow: visible; }
@media (max-width: 680px) {
    .grid, .review, .footer-grid { grid-template-columns: 1fr; }
    .card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .bg-video { display: none; }
    .card, button { transition: none; }
}
