/* Kontakty и страница «сообщение отправлено». Цвета — из палитры сайта (переменные в site.css) */
.contacts-page {
    padding-top: 1.5rem;
}

.contacts-title {
    margin-bottom: 1.5rem;
    font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.5rem);
    font-weight: 700;
    color: var(--hc-primary);
}

.contacts-card {
    height: 100%;
    padding: 1.75rem;
    border-radius: var(--hc-radius);
    background: #fff;
    box-shadow: var(--hc-shadow-soft);
}

    .contacts-card h2 {
        margin-bottom: 1.25rem;
        font-size: 1.4rem;
        font-weight: 700;
        color: var(--hc-primary);
    }

.contacts-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: var(--hc-sky-soft);
    color: var(--hc-primary);
    font-size: 1.6rem;
}

/* Карточка с контактами */
.contacts-info {
    background: linear-gradient(160deg, var(--hc-sky-soft) 0%, #fff 70%);
}

.contacts-lines {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2b3a4a;
}

.contacts-line:first-child {
    font-weight: 700;
}

.contacts-email {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: 1rem;
    padding: .7rem 1rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(62, 116, 149, 0.1);
}

    .contacts-email i {
        color: var(--hc-primary);
        font-size: 1.2rem;
    }

    .contacts-email a {
        color: var(--hc-primary);
        font-weight: 600;
    }

/* Форма */
.contacts-card .form-label {
    color: #4a5866;
    font-weight: 600;
}

.contacts-card .form-control {
    padding: .65rem 1rem;
    border: 2px solid #dbe8f7;
    border-radius: 12px;
    font-size: 1.05rem;
}

    .contacts-card .form-control:focus {
        border-color: var(--hc-sky);
        box-shadow: 0 0 0 4px rgba(117, 175, 245, 0.2);
    }

.contacts-captcha {
    display: flex;
    align-items: center;
    gap: .75rem;
}

    .contacts-captcha img {
        flex-shrink: 0;
        height: 48px;
        width: auto;
        border: 2px solid #dbe8f7;
        border-radius: 12px;
    }

    .contacts-captcha .form-control {
        max-width: 220px;
    }

.contacts-btn {
    padding: .7rem 1.8rem;
    border-radius: 999px;
    color: #fff;
    background: var(--hc-primary);
    font-size: 1.05rem;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(27, 110, 194, 0.3);
}

    .contacts-btn:hover {
        color: #fff;
        background: var(--hc-primary-dark);
    }

/* Сообщение отправлено */
.contacts-success {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.contacts-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: #e6f4ea;
    color: #1e7e34;
    font-size: 2.4rem;
}

.contacts-success-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2b3a4a;
}

.contacts-summary {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 16px;
    background: var(--hc-sky-soft);
    text-align: left;
}

.contacts-summary-row + .contacts-summary-row {
    margin-top: .75rem;
}

.contacts-summary-row > span {
    display: block;
    color: #7a8794;
    font-size: .9rem;
}

.contacts-summary-row p {
    margin-bottom: .3rem;
    color: #2b3a4a;
}

/* Адаптив */
@media (max-width: 575px) {
    .contacts-card {
        padding: 1.25rem;
    }

    .contacts-captcha {
        flex-wrap: wrap;
    }

        .contacts-captcha .form-control {
            max-width: none;
        }

    .contacts-btn {
        width: 100%;
    }
}
