/* Страница «Контакты» */
.contacts-section {
    padding-top: 1.25rem;
    padding-bottom: 0;
}

.contacts-section > .text-content-block {
    margin-bottom: 0;
}

/* Отступ до футера — как на главной/рейтинге */
.contacts-mail-line {
    text-align: center;
    margin-top: 0.75rem;
}

.contacts-email-img {
    display: inline-block;
    height: 1.8em;
    width: auto;
    vertical-align: middle;
    position: relative;
    top: -5px;
    margin: 0 0.15rem;
}

.contacts-form-embed {
    max-width: 574px;
    margin: 1.2rem auto 0;
    padding: 1.2rem 1.4rem 0;
    border-top: 1px solid var(--border);
}

.contacts-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.contacts-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contacts-field label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.contacts-field input,
.contacts-field textarea {
    width: 100%;
    background: rgba(15, 10, 8, 0.6);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contacts-field input:focus,
.contacts-field textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.18);
}

.contacts-field textarea {
    resize: vertical;
    min-height: 130px;
}

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

.contacts-submit {
    width: auto;
    min-width: 220px;
    align-self: center;
    justify-content: center;
}

.contacts-notice {
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.contacts-notice--success {
    color: var(--accent-gold);
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid var(--border-hover);
}

.contacts-notice--error {
    color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, rgba(249, 115, 22, 0.06) 100%);
    border: 1px solid var(--border-hover);
    border-left: 3px solid var(--accent-primary);
}

@media (max-width: 520px) {
    .contacts-submit {
        width: 100%;
        min-width: 0;
    }
}
