/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0a0a0a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* SVG Icons */
.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
}

.nav-brand .logo-image {
    width: 3rem;
    height: 3rem;
    border-radius: 4px;
    object-fit: contain;
}

.footer-brand .logo-image {
    width: 3rem;
    height: 3rem;
    border-radius: 4px;
    object-fit: contain;
}

.platform-item .icon {
    width: 3rem;
    height: 3rem;
}

.feature .icon {
    font-size: 2.5rem;
    color: #E53E3E;
    min-width: 60px;
    width: 60px;
    height: 60px;
}

.social-links .icon {
    width: 1.5rem;
    height: 1.5rem;
}


/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #E53E3E;
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.nav-brand i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.lang-dropdown {
    position: relative;
    margin-left: 1rem;
}

.lang-current {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 999px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lang-current:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-menu {
    position: absolute;
    right: 0;
    top: 48px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    list-style: none;
    padding: 6px;
    margin: 0;
    display: none;
    min-width: 160px;
    backdrop-filter: blur(6px);
    z-index: 1001;
}

.lang-menu.open {
    display: block;
}

.lang-menu li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    color: #fff;
    cursor: pointer;
    border-radius: 8px;
}

.lang-menu li:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-menu .flag {
    font-size: 1.1rem;
}

.lang-current .flag {
    font-size: 1.68rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    padding-top: 80px; /* Добавляем отступ сверху, чтобы учесть высоту фиксированного хедера */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

/* Анимация для появляющихся скриншотов */
@keyframes screenshotAppear {
    0% {
        opacity: 0;
        transform: scale(0.75) translateZ(0);
    }
    20% {
        opacity: 0.3;
        transform: scale(0.85) translateZ(0);
    }
    60% {
        opacity: 0.8;
        transform: scale(1) translateZ(0);
    }
    80% {
        opacity: 0.7;
        transform: scale(1.08) translateZ(0);
    }
    100% {
        opacity: 0;
        transform: scale(1.2) translateZ(0);
    }
}

/* Стили для анимированных скриншотов */
.hero-screenshot {
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0.5);
    pointer-events: none;
    z-index: 1;
    object-fit: cover;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
    /* анимация будет задана через JavaScript */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Slides System */
.hero-slides-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto 0;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(25, 255, 255, 0.1);
    flex-shrink: 0;
    /* Соотношение сторон 16:9 */
    aspect-ratio: 16 / 9;
    height: auto;
    width: 100%;
    max-width: 100%;
    
    /* Обеспечиваем корректное отображение на мобильных устройствах */
    max-width: 100vw;
}

.hero-slides-wrapper {
    display: flex;
    width: 100%; /* Используем 100% ширины контейнера */
    height: 100%;
    transform: translateX(0);
    /* animation: slideLeft 30s linear infinite; - УБРАНА, JavaScript контролирует движение */
    /* animation-play-state: running; - УБРАНА, JavaScript контролирует движение */
}

/* .hero-slides-container:hover .hero-slides-wrapper {
    animation-play-state: paused;
} - УБРАНО, поскольку анимация отключена */

.hero-slide {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.hero-slide:hover {
    z-index: 10;
}

.slide-content {
    position: relative;
    width: 90%;
    height: 85%;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
}

.slide-media {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.slide-media img,
.slide-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.slide-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.slide-content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Убрали hover эффект для изображений */

.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 1rem;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.8), rgba(220, 38, 38, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
    border-radius: 0 0 12px 12px;
}

.slide-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #fff;
}

.slide-info p {
    font-size: 0.85rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.hero-slides-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
    z-index: 20;
}

.slides-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.slides-nav-btn:hover {
    background: rgba(229, 62, 62, 0.8);
    border-color: rgba(229, 62, 62, 1);
    transform: scale(1.1);
}

/* Анимация движения слайдов слева направо */
@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 6));
    }
}

/* Пауза анимации при наведении */
.hero-slides-container.paused .hero-slides-wrapper {
    animation-play-state: paused;
}

.hero-platforms {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.platform-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.platform-item i {
    font-size: 2rem;
    color: #E53E3E;
}

/* cta-button styles removed */

/* Section Styles */
section {
    padding: 3rem 0;
    margin-bottom: 0;
}

/* Специальные отступы для конкретных секций */
    .hero {
        padding-bottom: 3rem;
        padding-top: 70px; /* Уменьшаем отступ для планшетов */
    }

.about {
    padding: 4rem 0 3rem 0;
}

.development-projects {
    padding: 4rem 0 3rem 0;
}

.porting-projects {
    padding: 4rem 0 3rem 0;
}

.partners {
    padding: 4rem 0 3rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #fff;
}

/* About Section */
.about {
    background: #0f0f0f;
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

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

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature > div {
    flex: 1;
    text-align: center;
}

.feature i {
    font-size: 2rem;
    color: #E53E3E;
    min-width: 50px;
}

.feature h4 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.feature p {
    color: #ccc;
}

/* Projects Section */
.projects {
    background: #0a0a0a;
}

.projects-table {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    margin: 0 auto;
}

.table-header {
    display: grid;
    grid-template-columns: 320px 2fr 1fr 1fr;
    background: linear-gradient(135deg, #E53E3E, #DC2626);
    padding: 1rem;
    font-weight: 600;
    color: #fff;
    min-height: 60px;
}

.table-row {
    display: grid !important;
    grid-template-columns: 320px 2fr 1fr 1fr !important;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
    align-items: stretch;
    min-height: 280px;
    gap: 0.5rem;
}

.table-cell {
    padding: 0 0.5rem;
    color: #ccc;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.table-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell strong {
    color: #fff;
    font-size: 1.1rem;
}

.platforms {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.platform {
    background: #E53E3E;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.platform.from {
    background: #666;
}

.platforms i {
    color: #E53E3E;
    margin: 0.25rem;
}

.platforms .icon {
    color: #E53E3E;
    margin: 0 0.25rem;
    width: 1.2em;
    height: 1.2em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.platforms .icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.arrow-text {
    color: #E53E3E;
    margin: 0 0.25rem;
    font-weight: bold;
}

.link-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(74, 14, 226, 0.2);
    color: #E53E3E;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 0.25rem 0;
    border: 1px solid rgba(74, 14, 226, 0.3);
    transition: all 0.3s ease;
}

.link-button:hover {
    background: rgba(74, 144, 226, 0.3);
    transform: translateY(-2px);
}

/* Preview Styles */
.preview-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    position: relative;
    align-self: center;
}

.preview-cell picture {
    width: 100%;
    height: 100%;
    display: flex;
}

.preview-cell .project-preview {
    display: block;
    width: 10%;
    height: 100%;
    object-fit: cover !important;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.preview-cell picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel Styles */
.project-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    min-width: 100%;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide .carousel-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    max-width: 100%;
    max-height: 100%;
}

/* Удаляем дублирующийся и ненужный CSS */

/* Удаляем ненужные дублирующиеся строки */

/* Carousel Controls */
.carousel-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
    background: #E53E3E;
    transform: scale(1.3);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.project-carousel:hover .carousel-arrow {
    opacity: 1;
}

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

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

.carousel-arrow:hover {
    background: rgba(229, 62, 62, 0.9);
    transform: translateY(-50%) scale(1.1);
}

/* Удаляем дублирующийся CSS-селектор */

/* Удаляем дублирующийся CSS-селектор */

/* Мобильная адаптация карусели */
@media (max-width: 768px) {
    .preview-cell {
        width: 100%;
        max-width: 100%;
        order: -1;
        margin-bottom: 1rem;
    }
    
    .project-carousel {
        width: 100%;
        height: 100%;
        margin: 0 auto;
    }
    
    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .carousel-nav {
        padding: 4px 8px;
    }
    
    .carousel-dot {
        width: 6px;
        height: 6px;
    }
}

/* Стили для названий и описаний проектов */
.project-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.project-description {
    color: #ccc;
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

/* Partners Section */
.partners {
    background: #0a0a0a;
    padding: 4rem 0 3rem 0;
}

.partners .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.partners .section-header h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.partners .section-header p {
    color: #ccc;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.partner-card {
    background: linear-gradient(135deg, rgba(25, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-radius: 20px;
    padding: 0;
    text-align: center;
    border: 2px solid rgba(229, 62, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.partner-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: #E53E3E;
    box-shadow: 0 15px 40px rgba(229, 62, 62, 0.4), 
                0 5px 15px rgba(0, 0, 0, 0.5);
}

.partner-card:hover::before {
    opacity: 1;
}

.partner-card > * {
    position: relative;
    z-index: 1;
}

.partner-logo-container {
    width: 100%;
    height: 120px;
    min-height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    overflow: hidden;
    border: none;
    padding: 1rem;
}

.partner-logo {
    max-width: 80%;
    max-height: 80%;
    min-width: 40%;
    min-height: 40%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: brightness(0.9);
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.partner-card img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    filter: brightness(0.9);
    transition: all 0.3s ease;
}

.partner-card:hover img {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.partner-card picture {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.partner-card picture img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.partner-card h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.partner-card p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.partner-card small {
    display: inline-block;
    background: rgba(229, 62, 62, 0.2);
    color: #E53E3E;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
    border: 1px solid rgba(229, 62, 62, 0.3);
    transition: all 0.3s ease;
}

.partner-card:hover small {
    background: rgba(229, 62, 62, 0.3);
    border-color: #E53E3E;
}

.partner-card a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(229, 62, 62, 0.2);
    border: 1px solid rgba(229, 62, 62, 0.4);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.partner-card a:hover {
    background: #E53E3E;
    border-color: #E53E3E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 62, 0.4);
}

/* Contacts Section - removed */

/* Footer */
.footer {
    background: #E53E3E;
    padding: 2rem 0 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-main {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 1rem;
    width: 100%;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.contact-email {
    display: flex !important;
    align-items: center !important;
    color: #fff;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.social-links {
    display: flex !important;
    align-items: center !important;
    gap: 1rem;
    flex-shrink: 0;
}

.contact-email a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}


.footer-copyright {
    text-align: center;
    margin-top: 1rem;
    color: #fff;
    font-size: 0.9rem;
}

.footer-copyright p {
    margin: 0;
}

/* Responsive Design */
/* Улучшаем адаптивность для мобильных устройств */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 90%;
    }
    
    .nav {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-slides-container {
        max-width: 90%;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .preview-cell {
        max-width: 100%;
        height: 200px;
    }
    
    .project-carousel {
        max-width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* Убираем ограничение ширины для контейнеров на мобильных устройствах */
    .hero-slides-container,
    .projects-table {
        width: 100%;
        max-width: 100%;
    }
    
    /* Улучшаем отображение таблицы проектов на мобильных устройствах */
    .table-header,
    .table-row {
        display: block;
    }
    
    .table-cell {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
        margin-bottom: 0.5rem;
    }
    
    .table-cell:last-child {
        margin-bottom: 0;
    }
    
    .preview-cell {
        width: 10%;
        height: 200px;
    }
    
    .project-carousel {
        width: 100%;
        height: 200px;
    }

    .nav {
        padding: 0.8rem 1rem;
    }
    
    .nav-brand {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(229, 62, 62, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        gap: 1rem;
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(25, 255, 255, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .hero {
        padding-top: 70px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .hero-platforms {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .platform-item {
        padding: 0.75rem;
        min-width: 80px;
    }
    
    /* Адаптивность слайдов */
    .hero-slides-container {
        margin: 1.5rem auto 0;
        max-width: 100%;
        height: 250px;
    }
    
    .slide-info h3 {
        font-size: 0.9rem;
    }

    .slide-info p {
        font-size: 0.75rem;
    }

    .slides-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        min-height: auto;
    }
    
    .table-header {
        grid-template-columns: 1fr;
        align-items: center;
    }

    .preview-cell {
        order: -1;
        margin-bottom: 1rem;
        width: 100%;
        height: auto;
        max-width: 100%;
        justify-content: center;
    }

    .project-preview {
        width: 100%;
        max-width: 100%;
        height: 200px;
        object-fit: contain;
    }

    .project-carousel {
        width: 100%;
        max-width: 100%;
        height: 200px;
    }
    
    .table-cell {
        padding: 0.5rem 0;
        align-items: flex-start;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1.5rem;
    }
    
    .footer-main {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }
    
    .contact-email {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 12px;
    }
    
    /* Убираем ограничение ширины для контейнеров на мобильных устройствах */
    .hero-slides-container,
    .projects-table {
        width: 100%;
        max-width: 100%;
    }
    
    /* Улучшаем отображение таблицы проектов на мобильных устройствах */
    .table-header,
    .table-row {
        display: block;
    }
    
    .table-cell {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
        margin-bottom: 0.5rem;
    }
    
    .table-cell:last-child {
        margin-bottom: 0;
    }
    
    .preview-cell {
        width: 100%;
        height: 160px;
    }
    
    .project-carousel {
        width: 100%;
        height: 160px;
    }

    .nav-brand {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        padding: 0.8rem;
    }
    
    .hero {
        padding-top: 60px;
        padding: 1.5rem 0 2rem;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .nav {
        padding: 0.7rem 0.8rem;
    }
    
    .platform-item {
        padding: 0.6rem;
        min-width: 70px;
        gap: 0.3rem;
    }
    
    .platform-item .icon {
        width: 2rem;
        height: 2rem;
    }

    /* Мобильная адаптация слайдов и проектов */
    .hero-slides-container {
        margin: 1.2rem auto 0;
        max-width: 100%;
        height: 200px;
    }

    .project-preview {
        height: 160px;
        object-fit: contain;
    }

    .project-carousel {
        height: 160px;
        object-fit: contain;
    }

    .slide-info {
        padding: 0.4rem;
    }

    .slide-info h3 {
        font-size: 0.8rem;
    }

    .slide-info p {
        font-size: 0.65rem;
    }

    .slides-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .table-header,
    .table-row {
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .features {
        gap: 1.5rem;
    }
    
    .feature {
        padding: 1.2rem;
        gap: 0.8rem;
    }
    
    .feature .icon {
        font-size: 2rem;
        min-width: 50px;
        width: 50px;
        height: 50px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }
    
    .partner-card {
        padding: 0.8rem;
    }
    
    .footer {
        padding: 1.5rem 0 0.8rem;
    }
    
    .footer-copyright {
        margin-top: 0.8rem;
    }
}

@media (max-width: 360px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero-slides-container {
        height: 180px;
    }
    
    .project-preview,
    .project-carousel {
        height: 140px;
        object-fit: contain;
    }
    
    .platform-item {
        padding: 0.5rem;
        min-width: 60px;
        gap: 0.2rem;
    }
    
    .platform-item .icon {
        width: 1.8rem;
        height: 1.8rem;
    }
    
    .features {
        gap: 1.2rem;
    }
    
    .feature {
        padding: 1rem;
        gap: 0.6rem;
    }
    
    .feature .icon {
        font-size: 1.8rem;
        min-width: 45px;
        width: 45px;
        height: 45px;
    }
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Media gallery picture elements */
.media-item picture {
    width: 100%;
    display: block;
    margin-bottom: 1rem;
}

.media-item picture img {
    width: 100%;
    border-radius: 10px;
}
