/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Убираем подчеркивание у всех ссылок */
a {
    text-decoration: none;
}

/* Улучшения для мобильных устройств */
html {
    /* Улучшаем поддержку touch на мобильных */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    /* Улучшаем производительность прокрутки */
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    /* Улучшаем поддержку touch на мобильных */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Улучшаем производительность прокрутки */
    -webkit-overflow-scrolling: touch;
}

/* Улучшения для интерактивных элементов */
button, 
input, 
select, 
textarea {
    /* Улучшаем поддержку touch */
    touch-action: manipulation;
    /* Убираем задержку на мобильных */
    -webkit-tap-highlight-color: transparent;
}

/* Улучшения для изображений */
img {
    /* Улучшаем производительность */
    will-change: transform;
    /* Убираем выделение на мобильных */
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    user-select: none;
    /* Глобально отключаем перетаскивание изображений */
    -webkit-user-drag: none;
    user-drag: none;
}

/* Улучшения для ссылок */
a {
    /* Убираем задержку на мобильных */
    -webkit-tap-highlight-color: transparent;
    /* Улучшаем поддержку touch */
    touch-action: manipulation;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #3498db;
    --text-color: #333;
    --light-gray: #f9f9f9;
    --dark-gray: #666;
    --white: #fff;
    --shadow: 0 3px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-description {
    color: var(--dark-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Навигация */
header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header-hidden {
    transform: translateY(-100%);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    width: 100%;
    gap: 1.5rem;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    transition: var(--transition);
    text-align: left;
    flex-grow: 0;
    order: 1;
}

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

/* Телефон в шапке */
.header-phone {
    display: flex;
    align-items: center;
    order: 3;
}

.header-phone-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    background-color: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    white-space: nowrap;
}

.header-phone-link:hover {
    background-color: rgba(52, 152, 219, 0.2);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.header-phone-link i {
    font-size: 1rem;
    margin-right: 0.3rem;
    color: var(--secondary-color);
}

.header-phone-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.header-phone-text .phone-country {
    color: var(--secondary-color);
}

.header-phone-text .phone-code {
    color: var(--dark-gray);
}

.header-phone-text .phone-number {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    order: 2;
    flex-grow: 1;
    justify-content: center;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Мобильное меню - скрыто по умолчанию */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.8rem 0;
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--light-gray);
}

/* Герой секция */
.hero {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.4), rgba(52, 152, 219, 0.4)), url('images/hero-glass.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.cta-button.primary {
    background: var(--accent-color);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--white);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Секция продуктов */
.products {
    padding: 5rem 1rem;
    background-color: var(--light-gray);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    padding: 0 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.5rem;
}

.product-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-content p {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.product-features i {
    color: var(--secondary-color);
}

.product-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    margin-top: auto;
    display: block;
    width: 100%;
    text-align: center;
}

.product-link:hover {
    color: var(--primary-color);
}

/* Секция о нас */
.about {
    padding: 5rem 1rem;
    background: linear-gradient(rgba(255, 255, 255, 0.916), rgba(255, 255, 255, 0)), url('images/company-glass.png') center/cover;
    background-attachment: scroll;
    position: relative;
    overflow: hidden;
}

.about-content {
    width: 100%;
    padding: 0 2rem;
}

.about-text {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
}

.about-text.animate {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--dark-gray);
}

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

.feature {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.feature.animate {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.feature i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.feature:hover i {
    transform: scale(1.1);
}

/* Секция технологий */
.technology {
    padding: 5rem 1rem;
    background-color: var(--white);
}

.technology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    width: 100%;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.technology-item {
    text-align: center;
    padding: 1rem;
    background: transparent;
    border-radius: 10px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.technology-item:hover {
    transform: translateY(-3px);
}

.technology-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.technology-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.technology-item:hover .technology-image {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.technology-item h3 {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

/* Секция проектов */
.projects {
    padding: 5rem 1rem;
    background: linear-gradient(rgba(255, 255, 255, 0.802), rgba(255, 255, 255, 0)), url('images/project-glass.png') center/cover;
    background-attachment: scroll;
    position: relative;
    overflow: hidden;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    padding: 0 2rem;
    justify-items: center;
}

/* Сетка с 3 колонками для десктопной версии */
.projects-grid-desktop {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    justify-content: center;
}

.project-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
}

/* Адаптивные размеры карточек для больших экранов */
@media (min-width: 1200px) {
    .project-card {
        max-width: 450px;
    }
}

@media (min-width: 1400px) {
    .project-card {
        max-width: 500px;
    }
}

@media (min-width: 1600px) {
    .project-card {
        max-width: 550px;
    }
}

/* Центрирование последней карточки в сетке с 3 колонками */
.projects-grid-desktop .project-card:last-child:nth-child(3n-2) {
    grid-column: 2;
}

.projects-grid-desktop .project-card:last-child:nth-child(3n-1) {
    grid-column: 2;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
    color: var(--white);
    z-index: 1;
}

.project-category {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    background: rgba(255,255,255,0.9);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.project-info p {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.project-meta i {
    color: var(--secondary-color);
    margin-right: 0.3rem;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: var(--light-gray);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.project-card:hover .feature-tag {
    background: var(--secondary-color);
    color: var(--white);
}

.project-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    transition: var(--transition);
}

/* Стили для ссылок на карты */
.map-target {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.map-target::before {
    content: '\f3c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.map-target:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.map-target:hover::before {
    color: var(--primary-color);
}

.project-link i {
    transition: var(--transition);
}

.project-card:hover .project-link {
    color: var(--primary-color);
}

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

/* Контактная форма */
.contact {
    padding: 5rem 1rem;
    background-color: var(--white);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(44, 62, 80, 0.1) 100%);
    z-index: 0;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Стили для валидации формы */
.contact-form input:invalid,
.contact-form textarea:invalid,
.contact-form select:invalid {
    border-color: #e74c3c;
}

.contact-form input:valid,
.contact-form textarea:valid,
.contact-form select:valid {
    border-color: #27ae60;
}

.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    min-height: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.error-message.show {
    opacity: 1;
}

.form-group {
    position: relative;
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
    border-color: #27ae60;
    box-shadow: 0 0 5px rgba(39, 174, 96, 0.3);
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    padding: 1rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.info-item:hover i {
    transform: scale(1.1);
}

.info-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Футер */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 1rem 1rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(44, 62, 80, 0.1) 100%);
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-section h4 {
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

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

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 1;
}

/* Адаптивность */
@media (max-width: 768px) {
    /* Общие стили */
    body {
        font-size: 14px;
        padding-top: 60px; /* Место для фиксированного меню */
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    /* Навигация */
    header {
        padding: 0.9rem 0;
        height: 60px;
    }
    
    nav {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 0 1rem;
        width: 100%;
        position: relative;
    }
    
    .logo {
        font-size: 1.2rem;
        text-align: center;
        flex-grow: 1;
        order: 2;
    }
    
    .nav-links {
        display: none; /* Скрываем навигацию на мобильных */
    }
    
    .header-phone {
        display: none; /* Скрываем телефон в шапке на мобильных */
    }
    
    /* Мобильное меню - показываем только на мобильных */
    .mobile-menu-toggle {
        display: block;
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 1);
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .mobile-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .mobile-menu.active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }
    
    .mobile-menu a {
        display: block;
        padding: 0.8rem 0;
        color: var(--primary-color);
        text-decoration: none;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .mobile-phone {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 2px solid var(--secondary-color);
        background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(44, 62, 80, 0.05) 100%);
        border-radius: 8px;
        padding: 1rem;
    }
    
    .mobile-phone-link {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background-color: var(--secondary-color);
        color: var(--white) !important;
        padding: 1rem !important;
        border-radius: 5px;
        font-weight: 600;
        text-align: center;
        transition: var(--transition);
    }
    
    .mobile-phone-link:hover {
        background-color: var(--primary-color);
        transform: scale(1.02);
    }
    
    .mobile-phone-link i {
        font-size: 1.2rem;
        margin-right: 0.5rem;
    }
    
    .mobile-phone-text {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .mobile-phone-text .phone-country {
        color: var(--white);
    }
    
    .mobile-phone-text .phone-code {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .mobile-phone-text .phone-number {
        color: var(--white);
        font-weight: 700;
    }
    
    /* Герой секция */
    .hero {
        height: 100vh;
        min-height: 100vh;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        opacity: 0.9;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Продукты */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .about-content {
        padding: 0 1rem;
    }
    
    .technology-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        justify-items: center;
    }
    
    /* Отменяем 3-колоночную сетку на мобильных */
    .projects-grid-desktop {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .product-card {
        margin: 0;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-content h3 {
        font-size: 1.2rem;
    }
    
    .product-features {
        display: block;
    }
    
    /* О нас */
    .about-content {
        padding: 0 1rem;
    }
    
    .about-text {
        font-size: 0.9rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature {
        padding: 1rem;
    }
    
    /* Технологии */
    .technology-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .technology-item {
        padding: 0.5rem;
    }
    
    .technology-image {
        width: 60px;
        height: 60px;
        margin-bottom: 0.5rem;
    }
    
    .technology-item h3 {
        font-size: 0.8rem;
    }
    
    /* Проекты */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-info {
        padding: 1rem;
    }
    
    .project-info h3 {
        font-size: 1.1rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .project-features {
        display: none; /* Скрываем особенности на мобильных */
    }
    
    /* Контактная форма */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .form-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .form-group {
        margin-bottom: 0.8rem;
    }
    
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        padding: 0.8rem;
    }
    
    .contact-info {
        gap: 1rem;
    }
    
    .info-item {
        padding: 1rem;
    }
    
    /* Футер */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
  .projects-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }
  .project-card {
    width: 100%;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    background: #fff;
  }
  .project-carousel {
    border-radius: 16px 16px 0 0;
    overflow: hidden;
  }
  .project-info {
    padding: 1.2rem 1rem 1.5rem 1rem;
    text-align: left;
  }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .product-image,
    .project-image {
        height: 150px;
    }
    
    .project-meta {
        font-size: 0.75rem;
    }
    
    .info-item i {
        font-size: 1.2rem;
    }
}

/* ===== СТИЛИ ДЛЯ ТЕКСТА ПО СЕКЦИЯМ ===== */

/* Hero секция - стили текста */
.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    line-height: 1.6;
}

/* Products секция - стили текста */
.products-header-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 700;
}

.products-header-description {
    color: var(--dark-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.product-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.product-description {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.product-feature-item {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* About секция - стили текста */
.about-header-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 700;
}

.about-header-description {
    color: var(--dark-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-main-text {
    color: var(--dark-gray);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.feature-description {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Technology секция - стили текста */
.technology-header-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 700;
}

.technology-header-description {
    color: var(--dark-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.technology-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.technology-description {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Projects секция - стили текста */
.projects-header-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 700;
}

.projects-header-description {
    color: var(--dark-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.project-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.project-description {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Contact секция - стили текста */
.contact-header-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 700;
}

.contact-header-description {
    color: var(--dark-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-info-title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-info-text {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Стили для контактной информации */
.contact-address {
    font-style: normal;
    text-decoration: none;
    color: var(--dark-gray);
    transition: var(--transition);
}

.contact-address:hover {
    color: var(--secondary-color);
}

.contact-phone {
    text-decoration: none;
    color: var(--dark-gray);
    transition: var(--transition);
    display: inline-block;
}

.contact-phone:hover {
    color: var(--secondary-color);
    transform: scale(1.02);
}

.contact-email {
    text-decoration: none;
    color: var(--dark-gray);
    transition: var(--transition);
    display: inline-block;
}

.contact-email:hover {
    color: var(--secondary-color);
    transform: scale(1.02);
}

.contact-hours {
    font-style: normal;
    text-decoration: none;
    color: var(--dark-gray);
    transition: var(--transition);
}

.contact-hours:hover {
    color: var(--secondary-color);
}

/* Стили для footer контактов */
.footer-email,
.footer-phone {
    text-decoration: none;
    color: var(--light-gray);
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-email:hover,
.footer-phone:hover {
    color: var(--white);
    transform: translateX(5px);
}

/* Стили для частей контактной информации */
.address-city,
.address-street,
.address-number {
    transition: var(--transition);
}

.phone-country,
.phone-code,
.phone-number {
    transition: var(--transition);
}

.email-local,
.email-domain {
    transition: var(--transition);
}

.hours-days,
.hours-time {
    transition: var(--transition);
}

/* Эффекты при наведении на части контактов */
.contact-phone:hover .phone-country,
.contact-phone:hover .phone-code,
.contact-phone:hover .phone-number {
    color: var(--secondary-color);
}

.contact-email:hover .email-local,
.contact-email:hover .email-domain {
    color: var(--secondary-color);
}

.contact-address:hover .address-city,
.contact-address:hover .address-street,
.contact-address:hover .address-number {
    color: var(--secondary-color);
}

.contact-hours:hover .hours-days,
.contact-hours:hover .hours-time {
    color: var(--secondary-color);
}

/* Footer секция - стили текста */
.footer-title {
    color: var(--light-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-description {
    color: var(--light-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--light-gray);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.footer-copyright {
    color: var(--dark-gray);
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.4;
}

/* ===== АДАПТИВНЫЕ СТИЛИ ДЛЯ ТЕКСТА ===== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .products-header-title,
    .about-header-title,
    .technology-header-title,
    .projects-header-title,
    .contact-header-title {
        font-size: 1.8rem;
    }
    
    .products-header-description,
    .about-header-description,
    .technology-header-description,
    .projects-header-description,
    .contact-header-description {
        font-size: 1rem;
    }
    
    .product-title,
    .feature-title,
    .technology-title,
    .project-title {
        font-size: 1.1rem;
    }
    
    .product-description,
    .feature-description,
    .technology-description,
    .project-description {
        font-size: 0.9rem;
    }
    
    .about-main-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .contact-info-title {
        font-size: 1rem;
    }
    
    .contact-info-text {
        font-size: 0.9rem;
    }
    
    .contact-phone,
    .contact-email {
        font-size: 0.9rem;
    }
    
    .footer-email,
    .footer-phone {
        font-size: 0.85rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
    }
    
    .footer-description,
    .footer-text {
        font-size: 0.85rem;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 0.3px;
        margin-bottom: 0.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-buttons {
        gap: 0.6rem;
    }
    
    .cta-button {
        max-width: 250px;
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .products-header-title,
    .about-header-title,
    .technology-header-title,
    .projects-header-title,
    .contact-header-title {
        font-size: 1.3rem;
    }
    
    .products-header-description,
    .about-header-description,
    .technology-header-description,
    .projects-header-description,
    .contact-header-description {
        font-size: 0.9rem;
    }
    
    .product-title,
    .feature-title,
    .technology-title,
    .project-title {
        font-size: 1rem;
    }
    
    .product-description,
    .feature-description,
    .technology-description,
    .project-description {
        font-size: 0.85rem;
    }
    
    .about-main-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .contact-info-title {
        font-size: 0.95rem;
    }
    
    .contact-info-text {
        font-size: 0.85rem;
    }
    
    .contact-phone,
    .contact-email {
        font-size: 0.85rem;
    }
    
    .footer-email,
    .footer-phone {
        font-size: 0.8rem;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-description,
    .footer-text {
        font-size: 0.8rem;
    }
    
    .footer-copyright {
        font-size: 0.75rem;
    }
} 

/* Карусель в карточке проекта */
.project-carousel {
    width: 100%;
    max-width: 100%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--white);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-card .carousel {
    width: 100%;
    height: 100%;
    background: none;
}
.project-card .carousel-cell {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-card .carousel-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}
@media (max-width: 768px) {
    .project-carousel {
        height: 180px;
    }
    .project-card .carousel-cell {
        height: 180px;
    }
}

/* Модальное окно для полноэкранного просмотра изображений */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
    /* Улучшения для мобильных устройств */
    touch-action: none;
    -webkit-overflow-scrolling: touch;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    /* Улучшения для мобильных устройств */
    touch-action: manipulation;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    /* Улучшения для мобильных устройств */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.modal-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Улучшения для мобильных устройств */
    touch-action: manipulation;
}

#modalImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* Улучшения для мобильных устройств */
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    /* Добавляем поддержку масштабирования */
    transition: transform 0.3s ease;
    /* Улучшаем производительность */
    will-change: transform;
}

#modalImage:hover {
    transform: scale(1.02);
}

.modal-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    pointer-events: none;
    /* Улучшения для мобильных устройств */
    touch-action: none;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
    /* Улучшения для мобильных устройств */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    /* Увеличиваем область нажатия */
    min-width: 44px;
    min-height: 44px;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.nav-btn i {
    font-size: 1.2rem;
}

.modal-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    /* Улучшения для мобильных устройств */
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Стили для изображений в карусели - делаем их кликабельными */
.project-card .carousel-cell img {
    cursor: pointer;
    transition: var(--transition);
}

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

/* Адаптивность модального окна */
@media (max-width: 768px) {
    .close-modal {
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .nav-btn i {
        font-size: 1rem;
    }
    
    .modal-counter {
        bottom: 1rem;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .modal-navigation {
        padding: 0 0.5rem;
    }

    /* Улучшенные стили для Flickity каруселей на мобильных */
    .flickity-viewport {
        touch-action: pan-x pan-y;
    }

    .flickity-slider {
        touch-action: pan-x pan-y;
    }

    .carousel-cell {
        touch-action: manipulation;
    }

    .carousel-cell img {
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
    }

    /* Улучшенные стили для модального окна на мобильных */
    .image-modal {
        touch-action: none;
    }

    .modal-content {
        touch-action: manipulation;
    }

    #modalImage {
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
        /* Добавляем поддержку масштабирования */
        transition: transform 0.3s ease;
    }

    /* Стили для кнопок навигации в модальном окне */
    .nav-btn {
        /* Увеличиваем область нажатия для мобильных */
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }

    /* Улучшенные стили для точек навигации */
    .carousel-dot {
        /* Увеличиваем область нажатия */
        min-width: 20px;
        min-height: 20px;
        touch-action: manipulation;
    }

    /* Стили для улучшения отзывчивости на мобильных */
    .project-card {
        /* Улучшаем производительность анимаций */
        will-change: transform;
        /* Добавляем поддержку touch-action */
        touch-action: pan-y pinch-zoom;
    }

    .project-card .carousel {
        /* Улучшаем поддержку свайпов */
        touch-action: pan-x pan-y;
    }

    .project-card .carousel-cell img {
        /* Улучшаем производительность */
        will-change: transform;
        /* Добавляем поддержку touch-action */
        touch-action: manipulation;
    }
} 

/* Стили для мобильной карусели */
.product-carousel-mobile,
.projects-carousel-mobile {
    display: none;
}

/* Новая карусель для technology секции */
.technology-carousel-mobile {
    display: none;
}

.technology-carousel-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 100%;
}

.technology-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 10;
}

.technology-carousel-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.technology-carousel-btn:disabled {
    background: var(--dark-gray);
    cursor: not-allowed;
    transform: translateY(-50%);
}

.technology-carousel-btn i {
    font-size: 1.2rem;
}

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

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

.technology-carousel-track {
    display: flex;
    align-items: center;
    width: max-content;
    padding: 0 60px; /* Место для кнопок */
    transition: transform 0.1s linear; /* Более плавная анимация для непрерывной прокрутки */
}

.technology-carousel-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 1.5rem;
    min-width: 120px;
    text-align: center;
}

.technology-carousel-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--white);
    box-shadow: var(--shadow);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.technology-carousel-item:hover img {
    transform: scale(1.05);
}

.technology-carousel-item h3 {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Пауза анимации при наведении */
.technology-carousel-container:hover .technology-carousel-track {
    animation-play-state: paused;
}

/* Мобильные стили для карусели */
@media (max-width: 768px) {
    .product-grid-desktop,
    .technology-grid-desktop,
    .projects-grid-desktop {
        display: none;
    }
    
    .product-carousel-mobile,
    .projects-carousel-mobile {
        display: block;
    }
    
    .technology-carousel-mobile {
        display: block;
    }
    
    .projects-mobile {
        display: block;
    }
    
    .technology-carousel-container {
        margin: 0;
        padding: 0 1rem;
    }
    
    .technology-carousel-item {
        margin: 0 1rem;
        min-width: 100px;
    }
    
    .technology-carousel-item img {
        width: 70px;
        height: 70px;
    }
    
    .technology-carousel-item h3 {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .technology-carousel-container {
        padding: 0 0.5rem;
    }
    
    .technology-carousel-item {
        margin: 0 0.8rem;
        min-width: 90px;
    }
    
    .technology-carousel-item img {
        width: 60px;
        height: 60px;
    }
    
    .technology-carousel-item h3 {
        font-size: 0.75rem;
    }
} 

/* Стили для обычных каруселей (products и projects) */
.carousel-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    align-items: center;
}

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

.carousel-slide .product-card,
.carousel-slide .project-card {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 0 1rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-btn {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    background: var(--dark-gray);
    cursor: not-allowed;
    transform: none;
}

.carousel-btn i {
    font-size: 1.2rem;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex: 1;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-gray);
    border: 2px solid var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--secondary-color);
}

.carousel-dot:hover {
    background: var(--secondary-color);
    transform: scale(1.2);
}

/* Мобильные стили для обычных каруселей */
@media (max-width: 768px) {
    .carousel-container {
        margin: 0;
        padding: 0 1rem;
    }
    
    .carousel-slide {
        padding: 0;
    }
    
    .carousel-slide .product-card,
    .carousel-slide .project-card {
        margin: 0 auto;
        max-width: 400px;
    }
    
    .carousel-controls {
        margin-top: 1.5rem;
        max-width: 280px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        padding: 0 0.5rem;
    }
    
    .carousel-slide .product-card,
    .carousel-slide .project-card {
        max-width: 100%;
    }
    
    .carousel-controls {
        margin-top: 1rem;
        max-width: 250px;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
    
    .carousel-btn i {
        font-size: 0.9rem;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

/* Стили для мобильной версии проектов */
.projects-mobile {
    display: none;
}

@media (max-width: 768px) {
    .projects-mobile {
        display: block;
        padding: 0 1rem;
    }
    
    .projects-mobile .project-card {
        width: 100%;
        margin-bottom: 2rem;
        background: var(--white);
        border-radius: 12px;
        box-shadow: var(--shadow);
        overflow: hidden;
        transition: var(--transition);
        /* Добавляем поддержку touch-action для лучшего взаимодействия */
        touch-action: pan-y pinch-zoom;
    }
    
    .projects-mobile .project-card:last-child {
        margin-bottom: 0;
    }
    
    .projects-mobile .project-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    
    .projects-mobile .project-carousel {
        width: 100%;
        overflow: hidden;
        border-radius: 12px 12px 0 0;
        /* Улучшаем поддержку свайпов */
        touch-action: pan-x pan-y;
    }

    .projects-mobile .project-carousel .carousel img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        /* Добавляем поддержку touch-action для изображений */
        touch-action: manipulation;
        /* Улучшаем производительность на мобильных */
        will-change: transform;
    }
    
    .projects-mobile .project-info {
        padding: 1.5rem;
    }
    
    .projects-mobile .project-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        color: var(--primary-color);
    }
    
    .projects-mobile .map-target {
        display: block;
        margin-bottom: 1rem;
        color: var(--secondary-color);
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .projects-mobile .project-description {
        margin-bottom: 1.5rem;
        line-height: 1.6;
        color: var(--text-color);
    }
    
    .projects-mobile .project-link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--secondary-color);
        font-weight: 600;
        transition: var(--transition);
    }
    
    .projects-mobile .project-link:hover {
        color: var(--primary-color);
    }

    /* Улучшенные стили для Flickity каруселей на мобильных */
    .flickity-viewport {
        touch-action: pan-x pan-y;
    }

    .flickity-slider {
        touch-action: pan-x pan-y;
    }

    .carousel-cell {
        touch-action: manipulation;
    }

    .carousel-cell img {
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
    }

    /* Улучшенные стили для модального окна на мобильных */
    .image-modal {
        touch-action: none;
    }

    .modal-content {
        touch-action: manipulation;
    }

    #modalImage {
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
        /* Добавляем поддержку масштабирования */
        transition: transform 0.3s ease;
    }

    /* Стили для кнопок навигации в модальном окне */
    .nav-btn {
        /* Увеличиваем область нажатия для мобильных */
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }

    /* Улучшенные стили для точек навигации */
    .carousel-dot {
        /* Увеличиваем область нажатия */
        min-width: 20px;
        min-height: 20px;
        touch-action: manipulation;
    }

    /* Стили для улучшения отзывчивости на мобильных */
    .project-card {
        /* Улучшаем производительность анимаций */
        will-change: transform;
        /* Добавляем поддержку touch-action */
        touch-action: pan-y pinch-zoom;
    }

    .project-card .carousel {
        /* Улучшаем поддержку свайпов */
        touch-action: pan-x pan-y;
    }

    .project-card .carousel-cell img {
        /* Улучшаем производительность */
        will-change: transform;
        /* Добавляем поддержку touch-action */
        touch-action: manipulation;
    }
} 

/* Стили для улучшения отзывчивости на мобильных */
.project-card {
    /* Улучшаем производительность анимаций */
    will-change: transform;
    /* Добавляем поддержку touch-action */
    touch-action: pan-y pinch-zoom;
}

.project-card .carousel {
    /* Улучшаем поддержку свайпов */
    touch-action: pan-x pan-y;
}

.project-card .carousel-cell img {
    /* Улучшаем производительность */
    will-change: transform;
    /* Добавляем поддержку touch-action */
    touch-action: manipulation;
}

/* Стили для каруселей на главной странице */
.product-carousel-mobile,
.projects-carousel-mobile {
    /* Улучшаем поддержку свайпов */
    touch-action: pan-x pan-y;
}

.product-carousel-mobile .carousel-track,
.projects-carousel-mobile .carousel-track {
    /* Улучшаем производительность */
    will-change: transform;
    /* Добавляем поддержку touch-action */
    touch-action: pan-x pan-y;
}

.product-carousel-mobile .carousel-slide,
.projects-carousel-mobile .carousel-slide {
    /* Улучшаем поддержку touch-action */
    touch-action: manipulation;
}

.product-carousel-mobile img,
.projects-carousel-mobile img {
    /* Улучшаем производительность */
    will-change: transform;
    /* Добавляем поддержку touch-action */
    touch-action: manipulation;
    /* Убираем выделение на мобильных */
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    user-select: none;
}

/* Стили для десктопной версии на главной странице */
.product-grid-desktop img,
.projects-grid-desktop img {
    /* Улучшаем производительность */
    will-change: transform;
    /* Добавляем поддержку touch-action */
    touch-action: manipulation;
    /* Убираем выделение на мобильных */
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    user-select: none;
    /* Добавляем плавный переход для hover эффектов */
    transition: transform 0.3s ease;
}

.product-grid-desktop img:hover,
.projects-grid-desktop img:hover {
    transform: scale(1.05);
}

/* Улучшенные стили для каруселей на главной странице */
.carousel-container {
    /* Улучшаем поддержку свайпов */
    touch-action: pan-x pan-y;
}

.carousel-track {
    /* Улучшаем производительность */
    will-change: transform;
    /* Добавляем поддержку touch-action */
    touch-action: pan-x pan-y;
}

.carousel-slide {
    /* Улучшаем поддержку touch-action */
    touch-action: manipulation;
}

.carousel-slide img {
    /* Улучшаем производительность */
    will-change: transform;
    /* Добавляем поддержку touch-action */
    touch-action: manipulation;
    /* Убираем выделение на мобильных */
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    user-select: none;
}

/* Стили для кнопок карусели на мобильных */
.carousel-btn {
    /* Увеличиваем область нажатия для мобильных */
    min-width: 44px;
    min-height: 44px;
    /* Улучшаем поддержку touch */
    touch-action: manipulation;
    /* Убираем задержку на мобильных */
    -webkit-tap-highlight-color: transparent;
}

/* Стили для точек навигации карусели */
.carousel-dot {
    /* Увеличиваем область нажатия */
    min-width: 20px;
    min-height: 20px;
    /* Улучшаем поддержку touch */
    touch-action: manipulation;
    /* Убираем задержку на мобильных */
    -webkit-tap-highlight-color: transparent;
}

/* Карточки и треки карусели: включаем корректный touch */
.product-carousel-mobile .carousel-track,
.projects-carousel-mobile .carousel-track,
.product-grid-desktop .product-image img,
.projects-grid-desktop .project-image img {
  touch-action: pan-x pan-y;
  cursor: grab;
}

.product-carousel-mobile .carousel-track:active,
.projects-carousel-mobile .carousel-track:active {
  cursor: grabbing;
}

/* Стили для страницы credits */
.credits-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    padding: 6rem 2rem 4rem;
}

.credits-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.credits-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.credits-content {
    padding: 4rem 2rem;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.credits-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.credits-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.credits-card-header {
    margin-bottom: 1.5rem;
}

.credits-card-header h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.credits-card-header i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.credits-info {
    color: var(--dark-gray);
}

.info-row {
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-row span:first-child {
    font-weight: 500;
    color: var(--primary-color);
}

.info-row span:last-child {
    color: var(--dark-gray);
    text-align: right;
}

.info-row a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.info-row a:hover {
    color: var(--primary-color);
}

/* Монопространственный шрифт для номеров */
.info-row .monospace {
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
    .credits-hero h1 {
        font-size: 2.2rem;
    }
    
    .credits-hero p {
        font-size: 1rem;
    }
    
    .credits-content {
        padding: 2rem 1rem;
    }
    
    .credits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .credits-card {
        padding: 1.5rem;
    }
    
    .credits-card-header h3 {
        font-size: 1.2rem;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-row span:last-child {
        text-align: left;
        margin-top: 0.3rem;
    }
    
    .info-row span:first-child {
        margin-bottom: 0.3rem;
    }
}

@media (max-width: 480px) {
    .credits-hero {
        padding: 5rem 1rem 3rem;
    }
    
    .credits-hero h1 {
        font-size: 1.8rem;
    }
    
    .credits-card {
        padding: 1rem;
    }
    
    .credits-card-header h3 {
        font-size: 1.1rem;
    }
    
    .credits-card-header i {
        font-size: 1rem;
    }
}

/* Стили для кнопки скачивания */
.credits-content .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 300px;
    text-align: center;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.credits-content .cta-button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.credits-content .cta-button i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Адаптивные стили для кнопки */
@media (max-width: 768px) {
    .credits-content .cta-button {
        min-width: 280px;
        font-size: 1.1rem;
        padding: 0.9rem 1.8rem;
    }
}

@media (max-width: 480px) {
    .credits-content .cta-button {
        min-width: 250px;
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
}

/* Адаптивные стили для кнопки */
@media (max-width: 480px) {
    .credits-content .cta-button {
        min-width: 250px;
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
}

/* Стили для секции скачивания */
.download-section {
    display: flex;
    justify-content: center;
    margin: 3rem 0 0 0;
}