/* ===================================
   ГЛАВНЫЙ CSS ФАЙЛ - IOIT
   Полная поддержка всех браузеров
   =================================== */

/* ===================================
   1. CSS ПЕРЕМЕННЫЕ И RESET
   =================================== */

:root {
    --primary-color: #e8f4fd;
    --secondary-color: #d1e9f8;
    --accent-color: #b8ddf3;
    --dark-color: #2c5aa0;
    --light-color: #f8fbff;
    --text-primary: #1a365d;
    --text-secondary: #2d3748;
    --wave-color: #c7e3f7;
    --success-color: #4ecdc4;
    --error-color: #ef4444;

    /* Тени */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(44, 90, 160, 0.1);
    --shadow-lg: 0 10px 30px rgba(44, 90, 160, 0.15);
    --shadow-xl: 0 20px 50px rgba(44, 90, 160, 0.2);

    /* Анимации */
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.5s ease;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--light-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-transition: var(--transition-base);
    transition: var(--transition-base);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* ===================================
   2. НАВИГАЦИЯ
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: rgba(248, 251, 255, 0.95);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    -webkit-box-shadow: var(--shadow-md);
    box-shadow: var(--shadow-md);
    -webkit-transition: var(--transition-base);
    transition: var(--transition-base);
    border-bottom: 1px solid rgba(184, 221, 243, 0.3);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-color) !important;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.navbar-logo {
    height: 45px;
    width: auto;
    -o-object-fit: contain;
    object-fit: contain;
}

.navbar-nav {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    padding: 0.5rem 1rem;
    position: relative;
    -webkit-transition: var(--transition-base);
    transition: var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: -webkit-linear-gradient(left, var(--accent-color), var(--dark-color));
    background: linear-gradient(90deg, var(--accent-color), var(--dark-color));
    -webkit-transition: var(--transition-base);
    transition: var(--transition-base);
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Переключатель языков */
.language-switcher {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 4px;
    border: 1px solid rgba(184, 221, 243, 0.3);
    margin-right: 15px;
}

.lang-btn {
    background: transparent;
    color: var(--text-primary);
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    -webkit-transition: var(--transition-base);
    transition: var(--transition-base);
}

.lang-btn.active {
    background: -webkit-linear-gradient(135deg, var(--dark-color), var(--accent-color));
    background: linear-gradient(135deg, var(--dark-color), var(--accent-color));
    color: white;
    -webkit-box-shadow: 0 2px 10px rgba(44, 90, 160, 0.3);
    box-shadow: 0 2px 10px rgba(44, 90, 160, 0.3);
}

.btn-contact {
    background: -webkit-linear-gradient(135deg, var(--dark-color), var(--accent-color));
    background: linear-gradient(135deg, var(--dark-color), var(--accent-color));
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 500;
    -webkit-transition: var(--transition-base);
    transition: var(--transition-base);
    -webkit-box-shadow: var(--shadow-md);
    box-shadow: var(--shadow-md);
}

.btn-contact:hover {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: var(--shadow-lg);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* ===================================
   3. HERO СЕКЦИЯ
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    /* Добавьте эти строки для фона: */
    background-image:
        linear-gradient(135deg, rgba(232, 244, 253, 0.9), rgba(209, 233, 248, 0.8), rgba(184, 221, 243, 0.7)),
        url('/images/main-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(184, 221, 243, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(199, 227, 247, 0.3) 0%, transparent 50%);
    -webkit-animation: waveMove 20s ease-in-out infinite;
    animation: waveMove 20s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.2;
    -webkit-animation: fadeInUp 1s ease;
    animation: fadeInUp 1s ease;
}

.hero .lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    color: var(--text-secondary);
    opacity: 0.9;
    -webkit-animation: fadeInUp 1s ease 0.2s both;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 1rem;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-animation: fadeInUp 1s ease 0.4s both;
    animation: fadeInUp 1s ease 0.4s both;
}

/* ===================================
   4. КНОПКИ
   =================================== */

.btn {
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    -webkit-transition: var(--transition-base);
    transition: var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-custom {
    background: -webkit-linear-gradient(135deg, var(--dark-color), var(--accent-color));
    background: linear-gradient(135deg, var(--dark-color), var(--accent-color));
    color: white;
    -webkit-box-shadow: var(--shadow-md);
    box-shadow: var(--shadow-md);
}

.btn-custom:hover {
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
    -webkit-box-shadow: var(--shadow-lg);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-custom {
    background: rgba(255, 255, 255, 0.7);
    color: var(--dark-color);
    border: 2px solid var(--dark-color);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-outline-custom:hover {
    background: var(--dark-color);
    color: white;
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
    -webkit-box-shadow: var(--shadow-md);
    box-shadow: var(--shadow-md);
}

/* ===================================
   5. СЕКЦИИ
   =================================== */

section {
    padding: 80px 0;
    position: relative;
}

/* Светлые секции */
.wave-section,
.light-section {
    background: -webkit-linear-gradient(135deg, rgba(248, 251, 255, 0.95), rgba(232, 244, 253, 0.9));
    background: linear-gradient(135deg, rgba(248, 251, 255, 0.95), rgba(232, 244, 253, 0.9));
    color: var(--text-primary);
}

/* Темные секции */
.stats-section,
/* Темные секции */
.stats-section {
    background-image:
        -webkit-linear-gradient(135deg, rgba(26, 54, 93, 0.9), rgba(44, 90, 160, 0.9)),
        url('/images/main-bg.jpg');
    background-image:
        linear-gradient(135deg, rgba(26, 54, 93, 0.9), rgba(44, 90, 160, 0.9)),
        url('/images/main-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
}

.team-section {
    background: -webkit-linear-gradient(135deg, var(--text-primary), var(--dark-color));
    background: linear-gradient(135deg, var(--text-primary), var(--dark-color));
    color: white;
}

/* Заголовки секций */
section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

section .text-muted {
    text-align: center;
    opacity: 0.8;
    margin-bottom: 3rem;
}

/* ===================================
   6. КАРТОЧКИ
   =================================== */

.project-card,
.competency-card,
.contact-card,
.stats-card {
    background: rgba(255, 255, 255, 0.9);
    background-image: -webkit-linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.8));
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.8));
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(184, 221, 243, 0.3);
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    -webkit-transition: var(--transition-base);
    transition: var(--transition-base);
    -webkit-box-shadow: var(--shadow-md);
    box-shadow: var(--shadow-md);
}

.project-card:hover,
.competency-card:hover,
.contact-card:hover,
.stats-card:hover {
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
    -webkit-box-shadow: var(--shadow-xl);
    box-shadow: var(--shadow-xl);
}

/* Иконки в карточках */
.feature-icon {
    width: 80px;
    height: 80px;
    background: -webkit-linear-gradient(135deg, var(--dark-color), var(--accent-color));
    background: linear-gradient(135deg, var(--dark-color), var(--accent-color));
    border-radius: 50%;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    -webkit-box-shadow: var(--shadow-md);
    box-shadow: var(--shadow-md);
}

/* ===================================
   7. СТАТИСТИКА
   =================================== */

.stats-card {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.stat-text {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Статистика в темной секции */
.stats-section .stats-card {
    background: rgba(255, 255, 255, 0.1);
    background-image: -webkit-linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(184, 221, 243, 0.1));
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(184, 221, 243, 0.1));
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.stats-section .stat-number {
    color: var(--accent-color);
}

.stats-section .stat-text {
    color: rgba(255, 255, 255, 0.9);
}

/* ===================================
   8. КАРУСЕЛЬ ПРОЕКТОВ
   =================================== */
/* carousel-styles.css - Современные стили для карусели проектов */

/* Основные переменные цветов */
:root {
    --carousel-primary: #1a365d;
    --carousel-secondary: #e8f4fd;
    --carousel-accent: #1e40af;
    --carousel-text: #475569;
    --carousel-text-light: #64748b;
    --carousel-bg: #f8f9fa;
    --carousel-white: #ffffff;
}

/* Обертка карусели */
.modern-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Основной контейнер карусели */
.modern-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #f8f9fa;
}

/* Трек карусели */
.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Элемент проекта */
.project-item {
    flex: 0 0 100%;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.project-item.active {
    opacity: 1;
}

/* Карточка проекта - новый дизайн */
.project-card-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    height: 600px;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* Левая часть - изображение */
.project-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f0f4f8;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.project-card-modern:hover .project-image {
    transform: scale(1.05);
}

/* Градиент поверх изображения */
.project-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0.7;
}

/* Категория проекта */
.project-category {
    position: absolute;
    bottom: 30px;
    left: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Правая часть - информация */
.project-info {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    overflow-y: auto;
}

/* Номер проекта - скрыт */
.project-number {
    display: none;
}

/* Заголовок проекта */
.project-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a365d;
    margin-bottom: 15px;
    line-height: 1.1;
}

/* Локация */
.project-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #64748b;
    font-size: 1rem;
}

.project-location svg {
    width: 18px;
    height: 18px;
    fill: #64748b;
}

/* Описание */
.project-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 30px;
}

/* Статистика проекта */
.project-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #1a365d;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Теги проекта */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tag {
    background: #e8f4fd;
    color: #1e40af;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Ссылка на проект */
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #1e40af;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.project-link:hover {
    gap: 20px;
    color: #1a365d;
}

.project-link svg {
    transition: transform 0.3s ease;
}

.project-link:hover svg {
    transform: translateX(5px);
}

/* Кнопки управления */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carousel-control:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.carousel-control.prev {
    left: 0;
}

.carousel-control.next {
    right: 0;
}

.carousel-control svg {
    width: 24px;
    height: 24px;
    stroke: #1a365d;
    stroke-width: 2.5;
}

/* Прогресс и счетчик */
.carousel-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #1e40af;
    transition: width 0.6s ease;
    border-radius: 2px;
}

.carousel-counter {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-weight: 600;
}

#currentSlide {
    font-size: 1.8rem;
    color: #1a365d;
}

.separator {
    color: #cbd5e1;
    font-size: 1.2rem;
}

#totalSlides {
    font-size: 1.2rem;
    color: #64748b;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .project-card-modern {
        height: 500px;
    }

    .project-title {
        font-size: 2rem;
    }

    .project-info {
        padding: 40px;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 991px) {
    .project-card-modern {
        grid-template-columns: 1fr;
        height: auto;
        max-height: 90vh;
    }

    .project-image-wrapper {
        height: 350px;
    }

    .project-info {
        padding: 35px;
        max-height: 500px;
        overflow-y: auto;
    }

    .project-title {
        font-size: 1.8rem;
    }

    .modern-carousel-wrapper {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .modern-carousel-wrapper {
        padding: 0 20px;
    }

    .project-card-modern {
        border-radius: 16px;
    }

    .project-image-wrapper {
        height: 280px;
    }

    .project-info {
        padding: 25px;
        max-height: 450px;
    }

    .project-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .project-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .project-stats {
        gap: 20px;
        margin-bottom: 25px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .project-category {
        left: 20px;
        bottom: 20px;
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
    }

    .carousel-control svg {
        width: 20px;
        height: 20px;
    }

    .progress-bar {
        width: 150px;
    }
}

@media (max-width: 576px) {
    .modern-carousel-wrapper {
        padding: 0 15px;
    }

    .project-card-modern {
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    .project-image-wrapper {
        height: 220px;
    }

    .project-info {
        padding: 20px;
        max-height: 400px;
    }

    .project-title {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .project-location {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .project-location svg {
        width: 16px;
        height: 16px;
    }

    .project-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .project-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .project-tags {
        gap: 6px;
        margin-bottom: 25px;
    }

    .tag {
        font-size: 0.7rem;
        padding: 5px 12px;
    }

    .project-link {
        font-size: 0.9rem;
    }

    .carousel-control {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.95);
    }

    .carousel-control.prev {
        left: -5px;
    }

    .carousel-control.next {
        right: -5px;
    }

    .carousel-progress {
        gap: 15px;
        margin-top: 25px;
    }

    .progress-bar {
        width: 120px;
        height: 3px;
    }

    #currentSlide {
        font-size: 1.5rem;
    }

    #totalSlides {
        font-size: 1rem;
    }
}

/* Специальные стили для маленьких экранов */
@media (max-width: 380px) {
    .project-info {
        padding: 18px;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .project-stats {
        display: none;
    }

    .project-tags {
        gap: 5px;
    }

    .tag {
        font-size: 0.65rem;
        padding: 4px 10px;
    }
}

/* Скроллбар для контента на мобильных */
@media (max-width: 991px) {
    .project-info::-webkit-scrollbar {
        width: 4px;
    }

    .project-info::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 2px;
    }

    .project-info::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 2px;
    }
}

/* Анимации */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.project-item.active .project-info > * {
    animation: slideIn 0.8s ease forwards;
}

.project-item.active .project-info > *:nth-child(1) { animation-delay: 0.1s; }
.project-item.active .project-info > *:nth-child(2) { animation-delay: 0.2s; }
.project-item.active .project-info > *:nth-child(3) { animation-delay: 0.3s; }
.project-item.active .project-info > *:nth-child(4) { animation-delay: 0.4s; }
.project-item.active .project-info > *:nth-child(5) { animation-delay: 0.5s; }
.project-item.active .project-info > *:nth-child(6) { animation-delay: 0.6s; }

/* Дополнительные стили для hover эффектов */
.project-card-modern {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Стиль для точек-индикаторов (опционально) */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 24px;
    border-radius: 4px;
    background: #1e40af;
}
/* ===================================
   9. КОМАНДА
   =================================== */

.team-card {
    background: rgba(255, 255, 255, 0.1);
    background-image: -webkit-linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 40%, rgba(255, 255, 255, 0.05) 100%);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 40%, rgba(255, 255, 255, 0.05) 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    -webkit-transition: var(--transition-base);
    transition: var(--transition-base);
    -webkit-box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
}

.team-card:hover {
    -webkit-transform: translateY(-8px) scale(1.02);
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    -webkit-box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

.team-photo {
    width: 160px;
    height: 160px;
    margin: 0 auto 25px;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: -webkit-linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.team-photo img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -webkit-transition: var(--transition-base);
    transition: var(--transition-base);
}

.team-card:hover .team-photo img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.team-image-placeholder {
    width: 100%;
    height: 100%;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: -webkit-linear-gradient(135deg, var(--dark-color), var(--accent-color));
    background: linear-gradient(135deg, var(--dark-color), var(--accent-color));
    color: white;
    font-size: 3rem;
    font-weight: bold;
}

.team-card h5 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.team-card .position {
    color: #b8ddf3;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.team-card .text-muted {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===================================
   10. КОНТАКТЫ И ФОРМЫ
   =================================== */

.contact-form-card {
    background: rgba(255, 255, 255, 0.95);
    background-image: -webkit-linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 255, 0.9));
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 255, 0.9));
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 50px;
    -webkit-box-shadow: var(--shadow-xl);
    box-shadow: var(--shadow-xl);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(184, 221, 243, 0.4);
    border-radius: 10px;
    font-family: inherit;
    -webkit-transition: var(--transition-base);
    transition: var(--transition-base);
}

.form-control:focus {
    outline: none;
    background: white;
    border-color: var(--accent-color);
    -webkit-box-shadow: 0 0 0 0.2rem rgba(184, 221, 243, 0.25);
    box-shadow: 0 0 0 0.2rem rgba(184, 221, 243, 0.25);
}

.btn-submit {
    background: -webkit-linear-gradient(135deg, var(--dark-color), var(--accent-color));
    background: linear-gradient(135deg, var(--dark-color), var(--accent-color));
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    -webkit-transition: var(--transition-base);
    transition: var(--transition-base);
    -webkit-box-shadow: var(--shadow-md);
    box-shadow: var(--shadow-md);
}

.btn-submit:hover {
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
    -webkit-box-shadow: var(--shadow-lg);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   11. МОДАЛЬНЫЕ ОКНА
   =================================== */

.team-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.team-modal-wrapper {
    min-height: 100vh;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 20px;
}

.team-modal-content {
    background: -webkit-linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 255, 0.9));
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 255, 0.9));
    border-radius: 30px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    -webkit-box-shadow: 0 20px 60px rgba(44, 90, 160, 0.3);
    box-shadow: 0 20px 60px rgba(44, 90, 160, 0.3);
    overflow: hidden;
    position: relative;
}

.team-modal-close {
    position: absolute;
    right: 25px;
    top: 25px;
    font-size: 35px;
    font-weight: bold;
    color: var(--dark-color);
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    -webkit-transition: var(--transition-base);
    transition: var(--transition-base);
}

.team-modal-close:hover {
    background: var(--dark-color);
    color: white;
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}

.team-modal-image {
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: -webkit-linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
}

.team-modal-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.team-modal-info {
    padding: 50px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Модальные окна форм */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.custom-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background: -webkit-linear-gradient(135deg, #ffffff 0%, #e8f4fd 100%);
    background: linear-gradient(135deg, #ffffff 0%, #e8f4fd 100%);
    padding: 50px 40px 40px;
    border-radius: 30px;
    -webkit-box-shadow: 0 25px 50px -12px rgba(44, 90, 160, 0.35);
    box-shadow: 0 25px 50px -12px rgba(44, 90, 160, 0.35);
    max-width: 500px;
    width: 90%;
    text-align: center;
    -webkit-animation: modalAppear 0.3s ease;
    animation: modalAppear 0.3s ease;
}

.custom-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    font-weight: 300;
    color: #2c5aa0;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    -webkit-transition: var(--transition-base);
    transition: var(--transition-base);
}

.custom-modal-close:hover {
    background: #2c5aa0;
    color: white;
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}

.custom-modal-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2.5rem;
}

.custom-modal-icon.success {
    background: -webkit-linear-gradient(135deg, #2c5aa0, #b8ddf3);
    background: linear-gradient(135deg, #2c5aa0, #b8ddf3);
    color: white;
    -webkit-box-shadow: 0 10px 30px rgba(44, 90, 160, 0.3);
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.3);
}

.custom-modal-icon.error {
    background: -webkit-linear-gradient(135deg, #ef4444, #dc2626);
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    -webkit-box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

.custom-modal-btn {
    background: -webkit-linear-gradient(135deg, #2c5aa0, #b8ddf3);
    background: linear-gradient(135deg, #2c5aa0, #b8ddf3);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    -webkit-transition: var(--transition-base);
    transition: var(--transition-base);
    -webkit-box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.custom-modal-btn:hover {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

/* ===================================
   12. FOOTER
   =================================== */

footer {
    background: -webkit-linear-gradient(135deg, var(--text-primary), var(--dark-color));
    background: linear-gradient(135deg, var(--text-primary), var(--dark-color));
    color: white;
    padding: 50px 0;
}

footer h5 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

footer a {
    color: white;
    opacity: 0.8;
    -webkit-transition: var(--transition-base);
    transition: var(--transition-base);
}

footer a:hover {
    opacity: 1;
}

/* ===================================
   13. АНИМАЦИИ
   =================================== */

@-webkit-keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(30px);
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(30px);
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@-webkit-keyframes waveMove {
    0%, 100% {
        -webkit-transform: translateX(0) scale(1);
        transform: translateX(0) scale(1);
        opacity: 0.7;
    }
    50% {
        -webkit-transform: translateX(-30px) scale(1.05);
        transform: translateX(-30px) scale(1.05);
        opacity: 1;
    }
}

@keyframes waveMove {
    0%, 100% {
        -webkit-transform: translateX(0) scale(1);
        transform: translateX(0) scale(1);
        opacity: 0.7;
    }
    50% {
        -webkit-transform: translateX(-30px) scale(1.05);
        transform: translateX(-30px) scale(1.05);
        opacity: 1;
    }
}

@-webkit-keyframes modalAppear {
    from {
        opacity: 0;
        -webkit-transform: translate(-50%, -50%) scale(0.9);
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        -webkit-transform: translate(-50%, -50%) scale(1);
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes modalAppear {
    from {
        opacity: 0;
        -webkit-transform: translate(-50%, -50%) scale(0.9);
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        -webkit-transform: translate(-50%, -50%) scale(1);
        transform: translate(-50%, -50%) scale(1);
    }
}

.fade-in {
    -webkit-animation: fadeInUp 0.8s ease;
    animation: fadeInUp 0.8s ease;
}

/* ===================================
   14. УТИЛИТЫ
   =================================== */

.text-center {
    text-align: center;
}

.text-muted-custom {
    opacity: 0.7;
    color: var(--text-secondary);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
}

/* ===================================
   15. МЕДИА ЗАПРОСЫ
   =================================== */

/* Планшеты */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(248, 251, 255, 0.98);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 15px;
        -webkit-box-shadow: var(--shadow-lg);
        box-shadow: var(--shadow-lg);
    }

    .language-switcher {
        margin: 15px auto;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .modern-carousel-wrapper {
        padding: 0 60px;
    }

    .team-modal-content {
        max-height: none;
        height: auto;
        margin: 20px 0;
    }

    .team-modal-content .row {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .team-modal-image {
        min-height: 300px;
        max-height: 400px;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-buttons {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
    }

    .modern-carousel-wrapper {
        padding: 0 50px;
    }

    .carousel-control {
        width: 45px;
        height: 45px;
    }

    .project-image-wrapper {
        height: 250px;
    }

    .project-info {
        padding: 25px;
    }

    .project-title {
        font-size: 1.6rem;
    }

    .project-stats {
        gap: 20px;
    }

    .contact-form-card {
        padding: 30px 20px;
    }
}

/* Маленькие мобильные устройства */
@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-logo {
        height: 35px;
    }

    .btn-contact {
        padding: 6px 15px;
        font-size: 0.9rem;
    }

    .lang-btn {
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    .lang-btn::before {
        display: none;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }

    .modern-carousel-wrapper {
        padding: 0 40px;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
    }

    .carousel-control.prev {
        left: -5px;
    }

    .carousel-control.next {
        right: -5px;
    }

    .project-item {
        padding: 0 5px;
    }

    .project-number {
        font-size: 2.5rem;
    }

    .project-image-wrapper {
        height: 200px;
    }

    .project-info {
        padding: 20px;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .project-stats {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 15px;
    }

    .progress-bar {
        width: 150px;
    }

    .stats-card,
    .competency-card,
    .contact-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .team-card {
        padding: 30px 20px;
    }

    .team-photo {
        width: 140px;
        height: 140px;
    }

    .team-modal-close {
        position: fixed;
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 25px;
    }

    .team-modal-info {
        padding: 25px 20px;
    }

    .custom-modal-content {
        padding: 40px 25px 30px;
        width: 95%;
    }

    footer {
        padding: 30px 0;
    }
}

/* Очень маленькие экраны */
@media (max-width: 400px) {
    .modern-carousel-wrapper {
        padding: 0 30px;
    }

    .carousel-control {
        width: 35px;
        height: 35px;
    }

    .carousel-control.prev {
        left: -10px;
    }

    .carousel-control.next {
        right: -10px;
    }

    .progress-bar {
        width: 120px;
    }
}

/* ===================================
   16. ПОДДЕРЖКА SAFARI
   =================================== */

/* Специальные правила для Safari */
@supports (-webkit-appearance: none) {
    .carousel-track {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .project-card-modern,
    .team-card,
    .competency-card {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* iOS Safari */
@supports (-webkit-touch-callout: none) {
    .modern-carousel {
        -webkit-tap-highlight-color: transparent;
    }

    .carousel-control,
    .btn,
    .team-card {
        -webkit-user-select: none;
        user-select: none;
    }
}

/* ===================================
   17. ПЕЧАТЬ
   =================================== */

@media print {
    .navbar,
    .carousel-control,
    .language-switcher,
    .btn-contact,
    footer {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .hero,
    section {
        background: white !important;
        color: black !important;
        page-break-inside: avoid;
    }
}

/* ===================================
   18. ДОСТУПНОСТЬ
   =================================== */

/* Для пользователей с настройкой уменьшения движения */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        -webkit-animation-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        -webkit-animation-iteration-count: 1 !important;
        animation-iteration-count: 1 !important;
        -webkit-transition-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Фокус для клавиатурной навигации */
*:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Скрытие элементов доступно для скринридеров */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* ===================================
   ИСПРАВЛЕНИЕ НАВИГАЦИИ ДЛЯ SAFARI
   Добавьте эти стили в конец main-styles.css
   =================================== */

/* Фикс ширины навигации для Safari */
.navbar {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.navbar .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Специфичные правила для Safari */
@supports (-webkit-appearance: none) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .navbar .container {
        width: calc(100% - 30px);
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* Фикс для Bootstrap navbar */
    .navbar-collapse {
        width: 100%;
        max-width: 100%;
    }

    .navbar-nav {
        width: auto;
        max-width: 100%;
    }

    /* Убираем горизонтальный скролл */
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
}

/* Дополнительные фиксы для iOS Safari */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari specific */
    .navbar {
        width: 100vw;
        max-width: 100vw;
        position: fixed;
        left: 0;
        right: 0;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    /* Предотвращаем выход за границы viewport */
    .navbar::before,
    .navbar::after {
        content: '';
        display: table;
        clear: both;
    }

    /* Фикс для контейнера */
    .container {
        width: 100%;
        max-width: calc(100vw - 30px);
        padding-left: 15px;
        padding-right: 15px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
}

/* Медиа-запросы для Safari */
@media screen and (max-width: 1200px) {
    .navbar .container {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media screen and (max-width: 768px) {
    .navbar .container {
        padding: 0 15px;
    }
}

/* Убедимся, что навигация не создает горизонтальный скролл */
.navbar-expand-lg {
    width: 100%;
    max-width: 100%;
}

.navbar-brand,
.navbar-nav,
.navbar-collapse {
    max-width: 100%;
}

/* Фикс для элементов навигации */
.navbar-nav {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.nav-item {
    flex-shrink: 1;
}

/* Убедимся что кнопки не выходят за границы */
.language-switcher,
.btn-contact {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Дополнительный фикс для body и html */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Фикс для всех секций */
section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Специальный фикс для hero секции */
.hero {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

/* Убедимся, что ничто не выходит за границы viewport */
* {
    max-width: 100vw;
}

/* Исключение для модальных окон */
.team-modal,
.custom-modal {
    max-width: none;
}

<style>


/*ИСПРАВЛЯЮ ПОЛОСКИ НА КНОПКАХ*/
.btn {
    border: none !important;
    outline: none !important;
}

.btn:focus,
.btn:active,
.btn:hover {
    border: none !important;
    outline: none !important;
}

/* Исправления для кнопки с номером телефона */
.btn-phone,
.phone-button,
.header-phone,
.navbar .btn,
a[href^="tel:"] {
    border: none !important;
    outline: none !important;
    text-decoration: none !important;
}

/* Убираем темные полоски у всех элементов с градиентом */
.btn-custom,
.btn-primary,
.btn-gradient,
[class*="gradient"] {
    border: none !important;
    outline: none !important;
}

/* Специфичные исправления для элементов с тенью */
.btn-custom:focus,
.btn-custom:active,
.btn-custom:focus-visible {
    box-shadow: var(--shadow-md) !important;
    outline: none !important;
    border: none !important;
}

/* Исправления для ссылок в навигации */
.navbar a,
.navbar .btn,
.nav-link {
    border: none !important;
    outline: none !important;
}

/* Мобильные исправления */
@media (max-width: 768px) {
    /* Убираем все границы и outline на мобильных */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    .btn,
    a.btn,
    button {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border: none !important;
        outline: none !important;
    }
}

/* Дополнительно для номеров телефона */
.phone-number,
.tel-link,
[class*="phone"],
[class*="tel"] {
    border: none !important;
    outline: none !important;
    text-decoration: none !important;
}
</style>

/* Флаги для переключателя языков */
.lang-btn[data-lang="ru"]::before {
    content: "🇷🇺";
    margin-right: 5px;
    font-size: 1rem;
    display: inline-block;
}

.lang-btn[data-lang="kz"]::before {
    content: "🇰🇿";
    margin-right: 5px;
    font-size: 1rem;
    display: inline-block;
}

.lang-btn[data-lang="en"]::before {
    content: "🇬🇧";
    margin-right: 5px;
    font-size: 1rem;
    display: inline-block;
}

/* Альтернативный вариант с более высокой специфичностью */
.navbar .language-switcher .lang-btn[data-lang="ru"]::before,
body .language-switcher .lang-btn[data-lang="ru"]::before {
    content: "🇷🇺" !important;
    margin-right: 5px !important;
    font-size: 1rem !important;
    display: inline-block !important;
}

.navbar .language-switcher .lang-btn[data-lang="kz"]::before,
body .language-switcher .lang-btn[data-lang="kz"]::before {
    content: "🇰🇿" !important;
    margin-right: 5px !important;
    font-size: 1rem !important;
    display: inline-block !important;
}

.navbar .language-switcher .lang-btn[data-lang="en"]::before,
body .language-switcher .lang-btn[data-lang="en"]::before {
    content: "🇬🇧" !important;
    margin-right: 5px !important;
    font-size: 1rem !important;
    display: inline-block !important;
}

