﻿:root {
    --primary: #0c8a52;
    --primary-dark: #0a7344;
    --text: #25324a;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f5f6f8;
    --white: #ffffff;
    --shadow: 0 12px 32px rgba(0, 0, 0, .08);
    --radius: 18px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    background: #fff;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(100% - 48px, var(--container));
    margin: 0 auto;
}

.section {
    padding: 72px 0;
}

/* Hero */
.contact-hero {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.48) 0%, rgba(0,0,0,.15) 100%);
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

    .contact-hero-content h1 {
        margin: 0 0 14px;
        font-size: 40px;
        line-height: 1.08;
        font-weight: 600;
        max-width: 1200px;
    }

    .contact-hero-content p {
        margin: 0;
        font-size: 20px;
        line-height: 1.35;
        color: rgba(255,255,255,.92);
        max-width: 600px;
    }

/* Main */
.contact-main {
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 40px;
    align-items: start;
}

.section-tag {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(12, 138, 82, .08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.contact-info h2 {
    margin: 0 0 22px;
    font-size: 48px;
    line-height: 1.12;
    color: #394866;
}

.contact-text p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.35;
    font-size: 15px;
    display: flex;
}

.contact-text p strong {
    width: 60px;
    flex-shrink: 0;
}

.social-block {
    margin-top: 34px;
}

    .social-block h3 {
        margin: 0 0 18px;
        font-size: 28px;
        color: #394866;
    }

.social-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .social-list li {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 16px;
        color: var(--muted);
        font-size: 16px;
    }

    .social-list a {
        color: inherit;
        text-decoration: none;
        transition: color 0.2s;
    }

        .social-list a:hover {
            color: var(--primary);
        }

    .social-list .social-icon {
        width: 28px;
        height: 28px;
        object-fit: contain;
        filter: brightness(0) saturate(100%) invert(35%) sepia(73%) saturate(592%) hue-rotate(113deg) brightness(89%) contrast(95%);
    }


/* Feedback */
.contact-feedback {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.feedback-success {
    background: rgba(12, 138, 82, .10);
    color: var(--primary);
    border: 1px solid rgba(12, 138, 82, .25);
}

.feedback-error {
    background: rgba(220, 38, 38, .08);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, .20);
}

/* Form */
.contact-form-card {
    background: #fff;
    border: 1px solid #edf0f2;
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 28px;
}

    .contact-form-card h3 {
        margin: 0 0 22px;
        font-size: 34px;
        line-height: 1.2;
        color: #394866;
    }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid #dfe5ea;
    border-radius: 8px;
    padding: 14px 16px;
    outline: none;
    font-size: 15px;
    color: var(--text);
    background: #fff;
    transition: .2s ease;
}

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(12, 138, 82, .10);
    }

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.btn-send {
    border: none;
    border-radius: 8px;
    padding: 14px 18px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

    .btn-send:hover {
        background: var(--primary-dark);
    }

/* Map */
.map-section {
    background: var(--bg);
}

.map-header {
    text-align: center;
    margin-bottom: 28px;
}

    .map-header h2 {
        margin: 0;
        font-size: 50px;
        color: #394866;
    }

.map-wrapper {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: var(--shadow);
    background: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-hero-content h1 {
        font-size: 44px;
    }

    .contact-info h2,
    .contact-form-card h3,
    .map-header h2 {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .container {
        width: min(100% - 32px, var(--container));
    }

    .section {
        padding: 56px 0;
    }

    .contact-hero {
        min-height: 320px;
    }

    .contact-hero-content h1 {
        font-size: 34px;
    }

    .contact-hero-content p {
        font-size: 16px;
    }

    .contact-info h2,
    .contact-form-card h3,
    .map-header h2 {
        font-size: 28px;
    }

    .contact-form-card {
        padding: 20px;
    }
}
