/* Подключаем шрифт через @import в самом верху файла */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Вот здесь он применяется ко всему сайту */
    font-family: 'Inter', sans-serif;
    background-color: #0F172A;
    color: #FFFFFF;
}

/* Базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0F172A; /* Тёмно-синий основной */
    color: #FFFFFF;
    scroll-behavior: smooth; /* Плавный скролл к секциям */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Хэдер */
.main-header {
    background-color: #0F172A;
    border-bottom: 1px solid rgba(214, 160, 23, 0.2);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* Фиксированная высота хедера */
}

/* --- СТИЛИ ДЛЯ ЛОГОТИПА --- */
.logo {
    display: flex;
    align-items: center;
    height: 100%; /* Занимает всю высоту хедера */
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.navbar-logo {
    height: 76px; /* Крупный размер без изменения высоты хедера */
    width: auto;
    display: block;
    object-fit: contain;
    margin: 0;
}

.accent-text {
    color: #D4A017; /* Акцентный золотой */
}

.nav-menu a {
    color: #FFFFFF;
    text-decoration: none;
    margin-right: 30px;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #D4A017;
}

/* --- БЛОК ДЕЙСТВИЙ В ШАПКЕ (Кнопка + Языки) --- */
.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Селектор языков */
.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background-color: transparent;
    border: 1px solid rgba(214, 160, 23, 0.3);
    color: #FFFFFF;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.lang-btn:hover, .lang-switcher.active .lang-btn {
    border-color: #D4A017;
    color: #D4A017;
}

/* Иконка стрелочки */
.lang-arrow {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.2s ease;
}

.lang-switcher:hover .lang-arrow, .lang-switcher.active .lang-arrow {
    transform: rotate(180deg);
}

/* Выпадающее меню языков */
.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #1E293B;
    border: 1px solid rgba(214, 160, 23, 0.25);
    border-radius: 4px;
    min-width: 150px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 1100;
    margin-top: 8px;
    overflow: hidden;
}

.lang-switcher:hover .lang-dropdown, .lang-switcher.active .lang-dropdown {
    display: block;
}

.lang-dropdown a {
    color: #E2E8F0;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s ease;
}

.lang-dropdown a:hover {
    background-color: rgba(214, 160, 23, 0.15);
    color: #D4A017;
}

.lang-dropdown a.active-lang {
    color: #D4A017;
    background-color: rgba(214, 160, 23, 0.05);
    font-weight: 700;
}

/* --- КНОПКИ --- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: #D4A017;
    color: #0F172A;
    margin-right: 15px;
}

.btn-primary:hover {
    background-color: #F5B041;
}

.btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-header {
    display: inline-block;
    border: 1px solid #D4A017 !important;
    color: #D4A017 !important;
    padding: 8px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    background-color: transparent !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
    text-align: center;
    line-height: 1.2 !important;
}

.btn-header:hover {
    background-color: #D4A017 !important;
    color: #0F172A !important;
}

/* Прокачанный подвал */
.main-footer {
    background-color: #0B0F19;
    padding: 70px 0 30px 0;
    border-top: 1px solid rgba(214, 160, 23, 0.1);
    color: #94A3B8;
    position: relative;
    overflow: hidden;
}

.footer-bg-logo {
    position: absolute;
    top: 45%;
    left: 35%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: auto;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
    object-fit: contain;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 2fr;
    gap: 50px;
    margin-bottom: 50px;
    text-align: left;
    position: relative;
    z-index: 2;
}

.footer-col h4, .footer-title-align {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col h4::after, .footer-title-align::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: #D4A017;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.6;
    color: #64748B;
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links-list a:hover {
    color: #D4A017;
    padding-left: 5px;
    transition: all 0.3s ease;
}

.footer-contacts-list {
    list-style: none;
    margin-top: 14px;
}

.footer-contacts-list li {
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.footer-contacts-list a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-contacts-list a:hover {
    color: #D4A017;
}

.contact-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 2px;
}

.location-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #E2E8F0;
    margin-bottom: 15px;
}

.footer-map-wrapper {
    width: 100%;
    height: 200px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(214, 160, 23, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #64748B;
    position: relative;
    z-index: 2;
}

.developer-link {
    color: #D4A017;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.developer-link:hover {
    color: #F5B041;
    text-shadow: 0 0 8px rgba(245, 176, 65, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .footer-col h4::after, .footer-title-align::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-contacts-list li, .location-line {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .footer-bg-logo {
        left: 50%;
        top: 30%;
        transform: translate(-50%, -50%);
        width: 320px;
    }
    .lang-switcher {
        margin-right: 5px;
    }
}

/* Отступ сверху для отдельной страницы (из-за шапки) + Фоновое изображение */
.projects-page-wrapper {
    padding: 120px 0 100px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Эффект параллакса при скролле */
    min-height: 100vh;
    color: #FFFFFF;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 16px;
    color: #CBD5E1;
    line-height: 1.6;
}

/* --- СТИЛИ КАРТОЧЕК И СЕТКИ --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.project-card {
    background-color: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 160, 23, 0.15);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #D4A017;
    box-shadow: 0 12px 30px rgba(212, 160, 23, 0.25);
}

/* Обертка для интерактивных картинок */
.project-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    background-color: #0F172A;
    cursor: ew-resize;
    overflow: hidden;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
}

.card-img.active {
    opacity: 1;
    z-index: 1;
}

.no-images-placeholder {
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 14px;
}

/* Контентная часть карточки */
.project-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-grow: 1;
}

.project-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #FFFFFF;
    line-height: 1.3;
}

/* Ссылка-локация */
.project-location-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(214, 160, 23, 0.08);
    border: 1px solid rgba(214, 160, 23, 0.2);
    padding: 6px 14px;
    border-radius: 6px;
    color: #D4A017 !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.project-location-link:hover {
    background-color: rgba(214, 160, 23, 0.18);
    border-color: #D4A017;
    transform: scale(1.02);
}

.project-description {
    color: #94A3B8;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.project-link {
    display: inline-block;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 2px solid #D4A017;
    align-self: flex-start;
    margin-top: auto;
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.project-link:hover {
    color: #D4A017;
}

/* Стили блока карты */
.map-section-wrapper {
    margin-top: 90px;
    border-top: 1px solid rgba(212, 160, 23, 0.2);
    padding-top: 60px;
}

.map-header {
    text-align: center;
    margin-bottom: 45px;
}

.map-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.map-subtitle {
    font-size: 18px;
    color: #D4A017;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#uzb-projects-map {
    width: 100%;
    height: 550px;
    border-radius: 12px;
    border: 1px solid rgba(212, 160, 23, 0.25);
    overflow: hidden;
    background-color: #1E293B;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Адаптивность */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .project-card-image-wrapper {
        height: 220px;
    }
}

.project-detail-section {
    background-color: #0F172A; /* Тёмно-синий основной фон */
    color: #F8FAFC;
    padding: 120px 0 80px 0; /* Отступ сверху от шапки */
    min-height: 80vh;
}

.project-back-link {
    display: inline-flex;
    align-items: center;
    color: #D4A017; /* Акцентный золотой */
    text-decoration: none;
    margin-bottom: 30px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-back-link:hover {
    color: #F8FAFC;
}

.project-header {
    border-bottom: 1px solid #1E293B; /* Графитовый */
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.project-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
    letter-spacing: 0.3px;
    color: #FFFFFF;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #94A3B8;
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item a {
    color: #D4A017;
    text-decoration: none;
}

.meta-item a:hover {
    text-decoration: underline;
}

/* Сетка и контейнеры */
.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.main-project-img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #1E293B;
    object-fit: cover;
    max-height: 600px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.gallery-thumb {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #1E293B;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.gallery-thumb:hover {
    transform: scale(1.05);
    border-color: #D4A017;
}

/* Активное состояние миниатюры (опционально для красоты) */
.gallery-thumb.active {
    border-color: #D4A017;
    box-shadow: 0 0 8px rgba(212, 160, 23, 0.4);
}

.no-image-placeholder {
    background-color: #1E293B;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #64748B;
    border: 1px dashed #334155;
}

.vacancies-page {
    padding: 120px 0 80px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    color: #FFFFFF;
}

.vacancies-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка страницы */
.vacancies-header-block {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.vacancies-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.vacancies-subtitle {
    color: #94A3B8;
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
}

/* Список и карточки */
.vacancies-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vacancy-card {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 24px 28px;
    border-radius: 10px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.vacancy-card:hover {
    transform: translateY(-3px);
    border-color: #D4A017;
    box-shadow: 0 8px 24px rgba(214, 160, 23, 0.15);
}

.vacancy-header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
    text-align: center;
}

.vacancy-name {
    font-size: 22px;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.vacancy-salary {
    color: #B48406;
    font-weight: 700;
    font-size: 16px;
    background: rgba(214, 160, 23, 0.1);
    padding: 5px 14px;
    border-radius: 6px;
    border: 1px solid rgba(214, 160, 23, 0.2);
    display: inline-block;
}

/* Мета (опыт работы) */
.vacancy-meta-wrapper {
    text-align: center;
    margin-bottom: 18px;
}

.vacancy-meta {
    display: inline-block;
    font-size: 13px;
    color: #475569;
    background: #E2E8F0;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 500;
}

/* Секции контента внутри карточки */
.vacancy-section {
    margin-bottom: 14px;
}

.vacancy-section:last-of-type {
    margin-bottom: 0;
}

.vacancy-section h4 {
    color: #1E293B;
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vacancy-text {
    color: #334155;
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0;
    white-space: pre-line;
}

/* Футер карточки */
.vacancy-footer {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #E2E8F0;
    text-align: center;
}

.vacancy-contacts {
    font-size: 13px;
    color: #475569;
    margin: 0;
    line-height: 1.4;
}

.vacancy-contacts a {
    color: #B48406;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.vacancy-contacts a:hover {
    color: #D4A017;
    text-decoration: underline;
}

/* Заглушка (Empty state) */
.vacancies-empty {
    background-color: rgba(30, 41, 59, 0.4);
    border: 2px dashed rgba(212, 160, 23, 0.2);
    padding: 50px 30px;
    text-align: center;
    border-radius: 12px;
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.empty-title {
    font-size: 20px;
    color: #FFFFFF;
    margin-bottom: 10px;
    font-weight: 600;
}

.vacancy-empty-desc {
    max-width: 550px;
    margin: 0 auto 20px auto;
    color: #94A3B8;
}

.vacancy-empty-note {
    color: #D4A017;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}