:root {
    --primary: #3f739b;
    --primary-dark: #0069c0;
    --border: #dfe7f0;
    --panel-bg: #ffffff;
    --page-bg: #f5f7fa;
    --text: #1f2937;
    --muted: #5b6472;
}

body {
    background: var(--page-bg);
    color: var(--text);
}

.page-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.article-panel,
.side-panel {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.contact-card {
    padding: 28px;
}

.article-panel h2 {
    margin-bottom: 20px;
    font-size: clamp(1.7rem, 2vw, 2.2rem);
    color: var(--text);
}

.contact-form {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 14px 16px;
    align-items: center;
}

.contact-form label {
    font-weight: 700;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 130, 230, 0.12);
    outline: none;
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.form-actions {
    grid-column: 2;
    display: flex;
    justify-content: flex-start;
    margin-top: 8px;
}

.submit-btn {
    padding: 12px 22px;
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.submit-btn:hover,
.submit-btn:focus-visible {
    background: var(--primary-dark);
    transform: translateY(-1px);
    outline: none;
}

.side-panel {
    padding: 18px;
    min-height: 100%;
}

.map-frame {
    width: 100%;
    min-height: 420px;
    height: 100%;
    border: 0;
    border-radius: 14px;
}

.site-footer {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 22px 16px;
    margin-top: 30px;
}

.site-footer p {
    margin: 0;
    line-height: 1.8;
}

@media (max-width: 820px) {
    .page-content {
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-form label {
        margin-bottom: -4px;
    }

    .form-actions {
        grid-column: 1;
        justify-content: stretch;
    }

    .submit-btn {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .page-content {
        padding: 0 14px;
    }

    .contact-card,
    .side-panel {
        padding: 18px 14px;
    }

    .article-panel h2 {
        margin-bottom: 16px;
    }

    .map-frame {
        min-height: 280px;
    }
}