/* --- BALANCED CONTACT PAGE STYLES --- */
.contact-page-balanced {
    background-color: #f4f6f9; 
    min-height: 100vh;
    padding-bottom: 80px;
}

/* 1. შავი ჰედერი (დინამიური სიმაღლით) */
.contact-header-balanced {
    background-color: #000;
    min-height: 380px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 150px; 
    padding-bottom: 140px; 
    text-align: center;
    color: #fff;
}

.header-inner-balanced {
    max-width: 800px;
    padding: 0 20px;
}

.header-inner-balanced h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.header-inner-balanced p {
    font-size: clamp(16px, 2vw, 20px);
    color: #ccc;
    font-weight: 400;
    line-height: 1.5;
}

/* 2. მთავარი კონტეინერი */
.contact-body-balanced {
    position: relative;
    z-index: 10;
    margin-top: -100px; 
}

.contact-container-balanced {
    max-width: 1400px; /* ოდნავ გავაფართოვეთ მეტი სივრცისთვის */
    margin: 0 auto;
    padding: 0 5%;
}

/* 3. ერთიანი დიდი ბარათი */
.contact-main-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* ფოტოს ოდნავ ნაკლები, ტექსტს მეტი სივრცე */
    overflow: hidden;
    margin-bottom: 40px;
}

/* მარცხენა მხარე (ინფო) */
.contact-info-side {
    padding: 60px 8%; /* პროცენტული Padding მეტი ჰაერისთვის */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* მისამართი და მეილი */
.info-group {
    display: flex;
    flex-direction: column;
    gap: 35px; /* გავზარდეთ დაშორება აიქონებს შორის */
    margin-bottom: 50px; /* გავზარდეთ დაშორება დეპარტამენტებამდე */
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon-box {
    width: 48px;
    height: 48px;
    background: #fcf1f1;
    color: #d11f26;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.info-item:hover .info-icon-box {
    transform: scale(1.08);
    background: #d11f26;
    color: #fff;
}

.info-text-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
}

.info-text-box span {
    font-size: 13px;
    text-transform: uppercase;
    color: #888;
    font-weight: 700;
}

.info-text-box p, .info-text-box a {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    line-height: 1.5;
    transition: color 0.3s;
    margin: 0;
}

.info-text-box a:hover { color: #d11f26; }

/* დეპარტამენტები (სრულად გასწორებული შეჯახების პრობლემა) */
.dept-group {
    display: flex;
    flex-direction: column;
    gap: 12px; /* დაშორება ქარდებს შორის */
    margin-bottom: 50px; /* დაშორება ქვედა ღილაკებამდე */
}

.dept-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
    gap: 20px; /* მინიმალური მანძილი ტექსტსა და ნომერს შორის */
}

.dept-row:hover {
    background-color: #fafafa;
    border-color: #ddd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.dept-name {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    line-height: 1.4;
    flex: 1; /* იკავებს მთელ თავისუფალ ადგილს */
    padding-right: 10px; /* იცავს ნომერთან მიტყუპებისგან */
}

.dept-phone-action {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #000;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px; /* ოდნავ დაპატარავდა იდეალური ფიტისთვის */
    transition: color 0.3s;
    flex-shrink: 0; /* ნომერი არასდროს არ შეიკუმშება */
}

.call-action-btn {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dept-phone-action:hover { color: #d11f26; }
.dept-phone-action:hover .call-action-btn {
    background: #d11f26;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(209, 31, 38, 0.3);
}

/* ღილაკები და სოც.ქსელები */
.action-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.balanced-wa-btn {
    background: #25D366;
    color: #fff !important;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.balanced-wa-btn i { font-size: 20px; }
.balanced-wa-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    background: #20bd5a;
}

.balanced-socials {
    display: flex;
    gap: 12px;
}

.balanced-socials a {
    width: 45px;
    height: 45px;
    background: #f5f5f5;
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
}

.balanced-socials a:hover {
    background: #000;
    color: #fff;
    transform: translateY(-3px);
}

/* მარჯვენა მხარე (ფოტო) */
.contact-image-side {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.contact-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
}

/* 4. რუკის სექცია */
.contact-map-balanced {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.contact-map-balanced iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* === PERFECT MOBILE RESPONSIVE === */
@media (max-width: 1100px) {
    .contact-main-card { grid-template-columns: 1fr; }
    .contact-image-side { order: -1; height: 350px; min-height: auto; }
}

@media (max-width: 768px) {
    .contact-header-balanced { 
        min-height: auto; 
        padding-top: 130px; 
        padding-bottom: 120px; 
    }
    
    .header-inner-balanced p {
        font-size: 15px; 
        line-height: 1.6;
        padding: 0 10px;
    }
    
    .contact-info-side { 
        padding: 40px 25px; 
    }
    
    .info-group { gap: 30px; margin-bottom: 40px; }
    .info-text-box p, .info-text-box a { font-size: 15px; }

    .dept-group { margin-bottom: 40px; }

    .dept-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }

    .dept-name { padding-right: 0; font-size: 13px; }

    .dept-phone-action {
        width: 100%;
        justify-content: space-between; 
        background: #f9f9f9;
        padding: 8px 10px 8px 15px;
        border-radius: 30px;
    }
    
    .call-action-btn { width: 36px; height: 36px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

    .action-group { flex-direction: column; align-items: stretch; gap: 20px; }
    .balanced-wa-btn { justify-content: center; padding: 16px 30px; }
    .balanced-socials { justify-content: center; }
    
    .contact-map-balanced { height: 350px; }
}