/* --- Basic Variables and ReSeT --- */
:root {
    --primary-color: #1a2a6c; /* Глубокий синий (Бизнес) */
    --accent-color: #00a8ff;  /* Яркий голубой (Акценты) */
    --training-color: #b21f1f; /* Темно-красный (Обучение) */
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --bg-light: #f4f7f6;
    --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

a { text-decoration: none; color: inherit; }

/* --- Main Page (Triple Split Screen) --- */
.split-container.triple {
    display: flex !important;
    flex-direction: row; 
    height: 100vh; 
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.split-side {
    flex: 1; 
    position: relative;
    text-decoration: none;
    display: flex !important;
    align-items: center; 
    justify-content: center;
    background-size: cover;
    background-position: center;
    transition: flex 0.5s ease;
}

.split-side::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    z-index: 1;
    transition: var(--transition);
}

.main-split-container {
    display: flex;
    width: 100%;
    height: 100vh;
    flex-direction: row;
    overflow: hidden; 
}

/* Photos for BackGrounDS */
.side-applicants::before { background-image: url('https://workcoach.uz/img/photo-1573497019940-1c28c88b4f3e-small.jpg'); }
.side-employers::before { background-image: url('https://workcoach.uz/img/photo-1497366216548-37526070297c-small.jpg'); }
.side-training::before { background-image: url('https://workcoach.uz/img/photo-1524178232363-1fb2b075b655-small.jpg'); }

.split-side:hover::before {
    filter: brightness(0.3) scale(1.05);
}

.split-container.triple .split-side:hover {
    flex: 1.5;
}

.side-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    padding: 20px;
    width: 100%;
    max-width: 400px;
}

.side-content h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.side-content p {
    font-size: 1.1rem;
    max-width: 350px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.side-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    opacity: 0.8;
    font-weight: 700;
}

.btn-outline {
    display: inline-block;
    padding: 15px 35px;
    border: 2px solid #fff;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    transition: var(--transition);
    background: transparent;
    cursor: pointer;
}

.split-side:hover .btn-outline {
    background: #fff;
    color: var(--primary-color);
}

/* Internal Pages (Applicants, Employers, Training, About) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header {
    background: var(--primary-color);
    padding: 140px 0 80px;
    color: white;
    text-align: center;
}

.section-padding { padding: 50px 0; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.accent-text {
    color: var(--accent-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: block;
}

/* Menu and Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 3000;
    padding: 20px 0;
    transition: 0.3s;
}

.overlay-nav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 4000;
    top: 0;
    left: 0;
    background-color: rgba(26, 42, 108, 0.98);
    overflow-x: hidden;
    transition: 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-content a {
    font-size: 32px;
    color: white;
    display: block;
    padding: 15px;
    font-weight: 700;
    transition: 0.3s;
    text-align: center;
}

.overlay-content a:hover { color: var(--accent-color); }

.close-btn {
    position: absolute;
    top: 30px;
    right: 45px;
    font-size: 60px;
    color: white;
}

.main-logo {
    height: 60px;
    width: auto;
    display: block;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-link:hover .main-logo {
    transform: scale(1.05);
}

.menu-btn {
    cursor: pointer;
    z-index: 3001;
    padding: 10px;
}

.menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background: #fff;
    margin: 6px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: 0.3s;
}

/* На внутренних страницах (где фон белый) можно инвертировать логотип или добавить подложку, 
   но так как ваш логотип на белом фоне (судя по названию), он будет отлично смотреться везде. */

/* Шапка */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 3000;
    background: transparent; /* На главной будет прозрачно */
    padding: 15px 0;
    transition: background 0.3s ease;
}

/* Если страница НЕ главная, делаем фон шапки темным/белым для видимости лого */
body:not(.home-page) .site-header {
    background: var(--primary-color); 
    padding: 10px 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Контейнер логотипа */
.logo-container {
    display: flex;
    align-items: center;
    height: 60px; /* Фиксируем высоту области логотипа */
}

.main-logo {
    height: 100%;       /* Логотип занимает всю высоту контейнера */
    width: auto;        /* Ширина подстраивается автоматически */
    max-width: 200px;   /* Ограничение по ширине, чтобы не "съел" меню */
    object-fit: contain; /* Гарантирует, что логотип не растянется и не обрежется */
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Кнопка меню */
.menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background: #fff;
    margin: 6px 0;
    transition: 0.3s;
}

/* --- ШАПКА И ЛОГОТИП --- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 3000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

/* Шапка на внутренних страницах */
.inner-page .site-header {
    background: #ffffff; /* Белый фон шапки */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Легкая тень для отделения от контента */
    position: fixed;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: block;
    height: 70px; /* Увеличил высоту для лучшей видимости */
}

.main-logo {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Кнопка гамбургер */
.menu-btn {
    cursor: pointer;
    z-index: 3001;
    padding: 5px;
}

.menu-btn span {
    display: block;
    width: 32px;
    height: 3px;
    background: #fff;
    margin: 6px 0;
    border-radius: 2px;
}

/* Полноэкранное меню */
.overlay-nav {
    height: 100%;
    width: 0; /* Изначально скрыто */
    position: fixed;
    z-index: 4000; /* Выше всего */
    top: 0;
    left: 0;
    background-color: rgba(26, 42, 108, 0.98);
    overflow: hidden;
    transition: 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-content {
    width: 100%;
    text-align: center;
}

.overlay-content a {
    font-size: 32px;
    color: white;
    display: block;
    padding: 15px;
    transition: 0.3s;
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 45px;
    font-size: 60px;
    color: white;
}

/* --- ТЕКСТОВЫЙ ЛОГОТИП --- */
.logo-text-link {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    height: 50px;
}

.logo-text-link .accent-weight {
    color: var(--accent-color);
    margin-left: 5px;
}

.inner-page .logo-text-link {
    color: var(--primary-color);
}

.logo-text-link:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* Убираем старые стили .main-logo и .logo-container, если они были */

/* --- СТИЛИ ЛОГОТИПА --- */
.logo-text-link {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    height: 50px;
    transition: var(--transition);
}

/* Цвет на ГЛАВНОЙ странице (белый текст на темных фото) */
.home-page .logo-text-link {
    color: #ffffff;
}

/* Цвет на ВНУТРЕННИХ страницах (темный текст на светлом фоне) */
.inner-page .logo-text-link {
    color: var(--primary-color); /* Ваш глубокий синий */
}

/* Вторая часть названия (COACH) всегда голубая */
.logo-text-link .accent-weight {
    color: var(--accent-color);
    margin-left: 5px;
}

/* Кнопка меню тоже должна менять цвет, чтобы ее было видно */
.inner-page .menu-btn span {
    background: var(--primary-color); /* Синие полоски вместо белых */
}
/* --- ФИКСИРОВАННЫЙ ЦВЕТ ЛОГОТИПА --- */
.logo-text-link {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    height: 70px;
    transition: var(--transition);
    
    /* Теперь на ВСЕХ страницах текст будет белым */
    color: #ffffff !important; 
}

/* Вторая часть названия (COACH) остается голубой */
.logo-text-link .accent-weight {
    color: var(--accent-color);
    margin-left: 5px;
}

/* Чтобы белый текст был виден на внутренних страницах, 
   убедитесь, что фон шапки там темный */
.inner-page .site-header {
    background: var(--primary-color); /* Ваш темно-синий цвет */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Полоски меню на внутренних страницах тоже делаем белыми */
.inner-page .menu-btn span {
    background: #ffffff !important;
}

/* Стиль кнопки Telegram */
.btn-telegram {
    display: inline-flex;
    align-items: center;
    background-color: #0088cc; /* Фирменный цвет Telegram */
    color: #ffffff !important;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 136, 204, 0.3);
}

.btn-telegram i {
    margin-right: 10px;
    font-size: 1.4rem;
}

.btn-telegram:hover {
    background-color: #0077b5;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 136, 204, 0.4);
    color: #fff;
}

.badge {
    background: var(--accent-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card-new {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    transition: 0.3s;
    height: 100%;
    border-bottom: 4px solid transparent;
}

.service-card-new:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom: 4px solid var(--accent-color);
}

.service-card-new h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

.service-card-new ul {
    margin-top: 15px;
    padding-left: 20px;
    list-style-type: disc;
}

/* --- Adaptability --- */
@media screen and (max-width: 1366px) {
    .main-split-container { display: flex !important; flex-direction: column !important; height: auto !important; min-height: 100vh; overflow: visible !important; }
    .split-side { width: 100% !important; min-height: 60vh !important; height: auto !important; position: relative; display: flex !important; align-items: center; justify-content: center; padding: 60px 20px; transition: none !important; }
    .split-content { position: relative !important; top: 0 !important; left: 0 !important; transform: none !important; width: 100% !important; max-width: 500px; text-align: center; z-index: 2; }
    .split-side:hover { width: 100% !important; flex: none !important; }
}

@media (min-width: 1025px) {
    .split-side:hover { flex: 1.3; }
}

@media screen and (max-width: 1024px) {
    .split-container.triple { flex-direction: column !important; height: auto !important; min-height: 100vh; }
    .split-side { width: 100% !important; height: auto !important; min-height: 40vh; padding: 50px 20px; flex: none !important; }
    .side-content p { font-size: 1rem !important; margin-bottom: 20px; }
    .side-content h2 { font-size: 1.8rem !important; margin-bottom: 10px; }
}

@media screen and (min-width: 1014px) and (max-width: 1380px) {
    .split-side { flex: 1 !important; transform: none !important; cursor: default; }
    .split-side:hover { flex: 1 !important; transform: none !important; }
    .split-side:hover .side-content { transform: none !important; opacity: 1 !important; }
    .split-content p { font-size: 1rem !important; line-height: 1.4; }
    .split-content h2 { font-size: 1.8rem !important; margin-bottom: 15px; }
}

@media (max-width: 768px) {
    .logo-container { height: 40px; }
    .split-side { padding: 40px 15px; min-height: 50vh !important; }
    .split-content p { font-size: 1rem !important; line-height: 1.4; }
    .split-content h2 { font-size: 1.8rem !important; margin-bottom: 15px; }
    .target-list { grid-template-columns: 1fr !important; padding-left: 0 !important; }
}

