:root {
    --surface: rgba(255, 255, 255, 0.94);
    --surface-soft: rgba(255, 255, 255, 0.72);
    --text: #161616;
    --muted: #666;
    --line: #ddd3c7;
    --accent: #b99600;
    --accent-dark: #8d7600;
    --danger: #b42318;
    --success: #166534;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(185, 150, 0, 0.10), transparent 28%),
        linear-gradient(180deg, #f6f3ef 0%, #efebe5 100%);
}

a {
    color: inherit;
}

.page-shell {
    max-width: 1360px;
    margin: 0 auto;
    padding: 32px 20px 64px;
}

.hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.hero__brand {
    display: flex;
    gap: 28px;
    align-items: center;
}

.hero__logo {
    width: 180px;
    max-width: 28vw;
    height: auto;
    display: block;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(185, 150, 0, 0.10);
    color: var(--accent-dark);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.hero h1 span {
    display: block;
    margin-top: 10px;
    font-size: 0.55em;
    color: var(--muted);
    font-weight: 650;
}

.lead {
    max-width: 820px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.lang-switcher form {
    display: flex;
    gap: 8px;
}

.lang-btn,
.btn,
.btn-link {
    cursor: pointer;
    transition: 0.2s ease;
}

.lang-btn {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
}

.lang-btn:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card--form {
    padding: 28px;
}

.card--info {
    padding: 24px;
    position: sticky;
    top: 30px;
}

.section-head {
    margin-bottom: 18px;
}

.section-head h2,
.section-head h3 {
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.section-head--small h3 {
    font-size: 1.15rem;
}

.form-section {
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field {
    min-width: 0;
}

.field--full {
    grid-column: 1 / -1;
}

label,
.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 650;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="date"],
textarea,
input[type="file"] {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    border-radius: 14px;
    padding: 14px 16px;
    font: inherit;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

input:focus,
textarea:focus {
    border-color: rgba(185, 150, 0, 0.75);
    box-shadow: 0 0 0 4px rgba(185, 150, 0, 0.12);
    background: #fff;
}

.stack {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.stack--tight {
    gap: 10px;
    margin-bottom: 0;
}

.coauthor-item,
.upload-item,
.contact-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    background: var(--surface-soft);
}

.coauthor-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.upload-stack {
    display: grid;
    gap: 12px;
}

.upload-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.upload-item input[type="file"] {
    flex: 1;
}

.upload-actions {
    display: flex;
    justify-content: flex-start;
}

.btn {
    border: 0;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 0.98rem;
    font-weight: 700;
}

.btn--primary {
    background: linear-gradient(180deg, #c5a300 0%, #aa8a00 100%);
    color: white;
    box-shadow: 0 14px 30px rgba(185, 150, 0, 0.28);
}

.btn--primary:hover {
    transform: translateY(-1px);
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    color: var(--text);
}

.btn-link {
    background: transparent;
    border: 0;
    color: var(--danger);
    font-weight: 700;
    padding: 0;
    white-space: nowrap;
}

.legal-box {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 22px;
}

.legal-scroll {
    max-height: 260px;
    overflow: auto;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
}

.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
}

.hint {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.actions {
    display: flex;
    justify-content: flex-start;
    padding-top: 10px;
}

.info-block {
    margin-bottom: 28px;
}

.info-block:last-child {
    margin-bottom: 0;
}

.info-block h4 {
    margin: 0 0 10px;
    font-size: 1.08rem;
}

.progress-panel {
    padding: 0;
}

.progress-header {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.progress-value {
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--accent-dark);
}

.progress-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.progress-bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar__fill {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #c5a300 0%, #aa8a00 100%);
    transition: width 0.25s ease, background 0.25s ease;
}

.progress-help {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.checklist ul,
.plain-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    font-size: 0.96rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.checklist li:last-child {
    border-bottom: 0;
}

.status {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d6d6d6;
    flex-shrink: 0;
    position: relative;
    transition: background 0.2s ease, transform 0.2s ease;
}

.status.ok {
    background: #1a7f37;
    transform: scale(1.02);
}

.status.ok::after {
    content: "✓";
    color: white;
    font-size: 12px;
    line-height: 18px;
    display: block;
    text-align: center;
}

.status.pending {
    background: #d6d6d6;
}

.counter-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.counter-row:last-child {
    border-bottom: 0;
}

.messages {
    margin-bottom: 20px;
}

.message {
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 600;
}

.message--success {
    background: rgba(22, 101, 52, 0.12);
    color: var(--success);
}

.form-errors,
.errorlist {
    color: var(--danger);
}

.errorlist {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    font-size: 0.92rem;
}

@media (max-width: 960px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .card--info {
        position: static;
    }
}

@media (max-width: 820px) {
    .hero,
    .hero__brand {
        flex-direction: column;
    }

    .hero__logo {
        width: 140px;
        max-width: none;
    }

    .form-grid,
    .upload-item {
        grid-template-columns: 1fr;
        display: grid;
    }

    .card--form,
    .card--info {
        padding: 20px;
    }

    .upload-item {
        gap: 10px;
    }
}

.hp-field {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}