.mg-contact {
    direction: rtl;
    color: #f6f6f6;
    background:
        radial-gradient(circle at 85% 8%, rgba(214, 164, 25, 0.11), transparent 30rem),
        #080808;
}

.mg-contact,
.mg-contact * {
    box-sizing: border-box;
}

.mg-contact__container {
    width: min(calc(100% - 32px), 1180px);
    margin-inline: auto;
}

.mg-contact__hero {
    padding: 72px 0 42px;
    text-align: center;
}

.mg-contact__eyebrow,
.mg-contact__section-label {
    display: inline-block;
    color: #f3d77c;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.mg-contact__hero h1 {
    margin: 10px 0 16px;
    color: #fff;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.08;
}

.mg-contact__hero p {
    max-width: 760px;
    margin: 0 auto;
    color: #aaa;
    font-size: 17px;
    line-height: 1.9;
}

.mg-contact__grid {
    padding: 10px 0 70px;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 28px;
    align-items: start;
}

.mg-contact__aside {
    display: grid;
    gap: 18px;
}

.mg-contact__info-card,
.mg-contact__form-card,
.mg-contact__safety {
    border: 1px solid rgba(247, 213, 106, 0.16);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(24, 24, 24, 0.96), rgba(13, 13, 13, 0.98));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.mg-contact__info-card,
.mg-contact__form-card {
    padding: 28px;
}

.mg-contact__info-card h2,
.mg-contact__form-card h2 {
    margin: 8px 0 18px;
    color: #fff;
    font-size: 24px;
    line-height: 1.4;
}

.mg-contact__details {
    display: grid;
    gap: 10px;
}

.mg-contact__detail {
    padding: 14px 16px;
    display: grid;
    gap: 5px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.mg-contact__detail:hover {
    transform: translateY(-1px);
    border-color: rgba(247, 213, 106, 0.38);
}

.mg-contact__detail span {
    color: #999;
    font-size: 12px;
}

.mg-contact__detail strong {
    color: #f3d77c;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.mg-contact__empty {
    margin: 0;
    color: #999;
    line-height: 1.8;
}

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

.mg-contact__socials a {
    min-height: 48px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #ddd;
    border: 1px solid rgba(247, 213, 106, 0.18);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mg-contact__socials a:hover {
    transform: translateY(-1px);
    color: #f3d77c;
    border-color: rgba(247, 213, 106, 0.45);
}

.mg-contact__socials svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: #f3d77c;
}

.mg-contact__safety {
    padding: 20px 22px;
}

.mg-contact__safety strong {
    display: block;
    margin-bottom: 6px;
    color: #f3d77c;
}

.mg-contact__safety p {
    margin: 0;
    color: #999;
    font-size: 13px;
    line-height: 1.8;
}

.mg-contact__form-intro {
    margin: -7px 0 22px;
    color: #999;
    line-height: 1.8;
}

.mg-contact__alert {
    margin-bottom: 20px;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.7;
}

.mg-contact__alert--success {
    color: #b7f7ca;
    border: 1px solid rgba(82, 204, 120, 0.3);
    background: rgba(36, 138, 70, 0.14);
}

.mg-contact__alert--error {
    color: #ffb8b8;
    border: 1px solid rgba(255, 92, 92, 0.28);
    background: rgba(160, 37, 37, 0.14);
}

.mg-contact__form {
    display: grid;
    gap: 18px;
}

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

.mg-contact__field {
    display: grid;
    gap: 8px;
}

.mg-contact__field label {
    color: #ddd;
    font-size: 14px;
    font-weight: 800;
}

.mg-contact__field label span {
    color: #f3d77c;
}

.mg-contact__field input,
.mg-contact__field textarea {
    width: 100%;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 13px;
    outline: none;
    background: rgba(255, 255, 255, 0.035);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mg-contact__field input {
    min-height: 50px;
    padding: 0 14px;
}

.mg-contact__field textarea {
    min-height: 180px;
    padding: 13px 14px;
    resize: vertical;
    line-height: 1.8;
}

.mg-contact__field input:focus,
.mg-contact__field textarea:focus {
    border-color: rgba(247, 213, 106, 0.58);
    box-shadow: 0 0 0 3px rgba(247, 213, 106, 0.08);
}

.mg-contact__error {
    color: #ff9c9c;
    font-size: 12px;
}

.mg-contact__submit {
    min-height: 52px;
    padding: 0 24px;
    cursor: pointer;
    color: #111;
    border: 1px solid #d6a419;
    border-radius: 14px;
    background: #d6a419;
    font: inherit;
    font-weight: 900;
    transition: transform 0.2s ease, background 0.2s ease;
}

.mg-contact__submit:hover {
    transform: translateY(-1px);
    background: #f3d77c;
}

.mg-contact__privacy-note {
    margin: 0;
    color: #777;
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

.mg-contact__honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

@media (max-width: 900px) {
    .mg-contact__grid {
        grid-template-columns: 1fr;
    }

    .mg-contact__aside {
        order: 2;
    }

    .mg-contact__form-card {
        order: 1;
    }
}

@media (max-width: 640px) {
    body {
        padding-bottom: 0;
    }

    .mg-contact__container {
        width: min(calc(100% - 28px), 1180px);
    }

    .mg-contact__hero {
        padding: 52px 0 32px;
    }

    .mg-contact__hero p {
        font-size: 15px;
    }

    .mg-contact__grid {
        padding-bottom: 48px;
    }

    .mg-contact__info-card,
    .mg-contact__form-card {
        padding: 22px;
        border-radius: 18px;
    }

    .mg-contact__row,
    .mg-contact__socials {
        grid-template-columns: 1fr;
    }
}
