/* ===============================
   VARIABLES
================================ */
:root {
    --primary: #174eb6;
    --primary-dark: #4338ca;
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.9);
    --border: rgba(255, 255, 255, 0.25);
    --text: #0f172a;
    --muted: #64748b;
}

/* ===============================
   HERO SECTION (IMAGE + OVERLAY)
================================ */
.contact-hero {
    position: relative;
    height: 100vh;
    padding: 120px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;

    background-image: url("/assets/img/contact.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* затемнение */
.contact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 1;
}

/* контент поверх */
.contact-hero .container {
    position: relative;
    z-index: 2;
    padding: 48px 56px;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.contact-hero h1 {
    font-size: clamp(40px, 4vw, 56px);
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.contact-hero p {
    font-size: clamp(18px, 1.3vw, 22px);
    color: #e5e7eb;
    max-width: 620px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ===============================
   CONTACT SECTION
================================ */
/* ================= CONTACT SECTION ================= */

/* ============================================
   CONTACT SECTION - BEAUTIFUL & CHIC STYLING
   ============================================ */

.contact-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ============================================
   LEFT: CONTACT FORM
   ============================================ */

.contact-form {
    background: #c8e2ec;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

.contact-form h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.contact-form > p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* SUCCESS & ERROR MESSAGES */
.success-message {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 500;
    border-left: 4px solid #10b981;
    animation: slideIn 0.4s ease;
}

.error-message {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 4px solid #ef4444;
    animation: slideIn 0.4s ease;
}

.error-message ul {
    margin: 0;
    padding-left: 20px;
}

.error-message li {
    margin: 4px 0;
    font-size: 14px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FORM ELEMENTS */
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.3px;
}

.contact-form input,
.contact-form textarea {
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1a1a1a;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #6366f1;
    background: #fafaff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9ca3af;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    padding: 16px 32px;
    background: linear-gradient(135deg, #4b71d1 0%, #2a467a 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    margin-top: 8px;
}

.contact-form button:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

.contact-form button:active {
    transform: translateY(0);
}

/* ============================================
   RIGHT: CONTACT INFO
   ============================================ */

.contact-info {
    background: linear-gradient(135deg, #203961 0%, #334155 100%);
    padding: 50px;
    border-radius: 24px;
    color: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 100px;
}

.contact-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

.contact-info p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
    color: #e2e8f0;
}

.contact-info p b {
    color: #ffffff;
    font-weight: 600;
    display: inline-block;
    min-width: 80px;
}

.contact-info .emoji {
    font-size: 1.4rem;
    margin-right: 10px;
}


.map {
    margin-top: 32px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    height: 300px;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        position: static;
    }

    .contact-form,
    .contact-info {
        padding: 40px 30px;
    }
}

@media (max-width: 640px) {
    .contact-section {
        padding: 60px 16px;
    }

    .contact-form,
    .contact-info {
        padding: 30px 24px;
        border-radius: 20px;
    }

    .contact-form h2 {
        font-size: 26px;
    }

    .contact-info h2 {
        font-size: 24px;
    }

    .map {
        height: 250px;
    }
}
