/* Top Header Styles */
.top-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.logo-img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.school-name {
    color: #333333;
}

.school-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: #2c3e50;
}

/* Location and Phone Styles */
.location-info {
    color: #666666;
}

.location-icon {
    color: #999999;
    font-size: 16px;
}

.location-trigger {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
    color: #666666;
    transition: color 0.2s ease;
}

.location-trigger:hover {
    color: #007bff;
}

.location-chevron {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.location-trigger[aria-expanded="true"] .location-chevron {
    transform: rotate(180deg);
}

.location-text {
    font-size: 14px;
    color: inherit;
}

/* City popup */
.city-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.city-popup-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.city-popup {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.city-popup-overlay.is-open .city-popup {
    transform: scale(1);
}

.city-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.city-popup-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.city-popup-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.city-popup-close:hover {
    background: #e0e0e0;
    color: #333;
}

/* Вкладки стран — в ряд по ширине */
.city-popup-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

/* Кнопки стран — стиль «таб/категория», отличаются от городов */
.city-popup-tab {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: none;
    border-radius: 20px;
    background: #e8e4f0;
    color: #5a4d7a;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    white-space: nowrap;
    text-align: center;
    letter-spacing: 0.02em;
}

.city-popup-tab:hover {
    background: #d4cee8;
    color: #3d3552;
}

.city-popup-tab.is-active {
    background: #6c5ce7;
    color: #fff;
}

.city-popup-tab.is-active:hover {
    background: #5b4bd4;
    color: #fff;
}

.city-popup-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 120px;
}

.city-popup-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Ссылки городов — стиль «карточка/кнопка», отличаются от вкладок стран */
.city-popup-link {
    display: inline-block;
    padding: 8px 14px;
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 8px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.city-popup-link:hover {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
}

.phone-info {
    font-weight: 700;
}

.phone-link {
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: #007bff;
}

/* Social Media Icons */
.social-icons {
    gap: 8px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e8e4f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.social-icon i {
    font-size: 18px;
    color: #6c5ce7;
}

.social-icon:hover {
    background-color: #6c5ce7;
    transform: scale(1.1);
}

.social-icon:hover i {
    color: #ffffff;
}

/* Instagram — цветная иконка */
.social-icon--instagram i {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.social-icon--instagram:hover i {
    -webkit-text-fill-color: #ffffff;
    background: none;
    color: #ffffff;
}

/* WhatsApp — зелёная иконка */
.social-icon--whatsapp i {
    color: #25D366;
}

.social-icon--whatsapp:hover {
    background-color: #25D366;
}

.social-icon--whatsapp:hover i {
    color: #ffffff;
}

/* Send Request Button */
.btn-send-request {
    background-color: #007bff;
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-send-request:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    color: #ffffff;
}

/* Navigation Menu Styles */
.navigation-menu {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.nav-menu {
    gap: 25px;
    width: 100%;
    display: flex;
    margin: 0;
    padding: 12px 15px;
}

.nav-link {
    background-color: #ffffff;
    border: 2px solid #ff6b35;
    border-radius: 25px;
    padding: 10px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: #ff6b35;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .top-header .row {
        flex-direction: column;
        gap: 15px;
    }
    
    .col-md-4 {
        width: 100%;
        justify-content: center !important;
    }
    
    .school-title {
        font-size: 12px;
    }
    
    .logo-img {
        max-height: 50px;
    }
}

@media (max-width: 768px) {
    .navigation-menu {
        display: none;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .btn-send-request {
        width: 100%;
        margin-top: 10px;
    }

    /* Уменьшаем размер шрифта кнопок стран на мобильных */
    .city-popup-tab {
        font-size: 9px;
    }
}
