/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a2634;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #9b59b6;
    --light-color: #f8f9fa;
    --light-gray: #ecf0f1;
    --dark-color: #1a2634;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    animation: fadeIn 1s ease-out;
}

.logo-link {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

.logo-link:hover,
.logo-link:focus-visible {
    color: var(--secondary-color);
}

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

.nav {
    display: flex;
    gap: 20px;
}

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

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

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

.nav a:hover {
    color: var(--secondary-color);
}

.nav a.active {
    color: var(--secondary-color);
    font-weight: 600;
}

.nav a.active::after {
    width: 100%;
}

/* Main content */
.main {
    margin-top: 80px;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Projects section */
.projects {
    padding: 80px 0;
    background-color: var(--light-color);
}

.projects h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary-color);
    animation: fadeIn 1s ease-out;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    animation: fadeIn 1.2s ease-out;
}

.project-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    transform: translateY(0);
    animation: fadeInUp 0.8s ease-out both;
}

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

.project-image {
    height: 200px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

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

.project-content {
    padding: 20px;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    transition: var(--transition);
}

.project-card:hover .project-title {
    color: var(--secondary-color);
}

.project-description {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.project-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Contacts section */
.contacts {
    position: relative;
    padding: 80px 0;
    min-height: 500px;
    overflow: hidden;
}

.map-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.map-background iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(30%) opacity(0.7);
}

.contacts .container {
    position: relative;
    z-index: 1;
}

.contacts h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

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

.contact-item {
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out both;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.contact-item h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-item p {
    color: var(--text-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-subtitle {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-link {
    color: var(--text-color);
    text-decoration: none;
}

.contact-hours {
    margin-top: 10px;
    font-size: 0.9rem;
}

.contact-form-container {
    margin-top: 50px;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form-title {
    color: var(--primary-color);
    margin-bottom: 25px;
}

.map-iframe {
    border: 0;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-30 {
    margin-bottom: 30px;
}

.list-indented {
    margin-left: 20px;
    margin-bottom: 30px;
}

.text-light {
    color: var(--text-light);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-60 {
    margin-top: 60px;
}

.technology-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    margin-top: 80px;
}

.technology-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.technology-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.technology-content {
    padding: 80px 0;
}

.technology-section {
    margin-bottom: 60px;
}

.technology-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 10px;
}

.technology-section h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.technology-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
}

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

.feature-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-item h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.use-cases {
    background-color: var(--light-color);
    padding: 60px 0;
    margin: 60px 0;
}

.use-cases h2 {
    text-align: center;
    margin-bottom: 40px;
}

.technology-cta {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    margin: 60px 0;
}

.technology-cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.technology-cta p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 30px;
}

.technology-form {
    max-width: 600px;
    margin: 60px auto;
}

/* Переопределяем общий .form-section, чтобы technology форма всегда центрировалась */
.form-section.technology-form {
    width: min(100%, 600px);
    margin: 60px auto;
}

.project-detail {
    padding: 100px 0 50px;
}

.breadcrumbs {
    background: var(--light-color);
    border-bottom: 1px solid #dde5ee;
}

.breadcrumbs-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

.breadcrumbs-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumbs-item:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: #95a5b3;
}

.breadcrumbs-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs-item a:hover,
.breadcrumbs-item a:focus-visible {
    color: var(--secondary-color);
}

.breadcrumbs-item[aria-current="page"] span {
    color: var(--text-color);
    font-weight: 600;
}

.project-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.project-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 38, 52, 0.72), rgba(52, 152, 219, 0.58));
}

.project-header .container {
    position: relative;
    z-index: 1;
}

.project-header--project1 {
    background-image: url('slides/project1/header_background.png');
}

.project-header--project2 {
    background-image: url('slides/project2/header_background.png');
}

.project-header--project3 {
    background-image: url('slides/project3/header_background.png');
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.meta-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 20px;
}

.technologies {
    margin: 40px 0;
}

.tech-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tech-tag {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.features-list {
    margin: 30px 0;
    padding-left: 20px;
}

.features-list li {
    margin-bottom: 10px;
    position: relative;
}

.features-list li::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: -20px;
}

.results-metrics {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(39, 174, 96, 0.1));
    padding: 40px;
    border-radius: 10px;
    margin: 40px 0;
}

.results-metrics h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

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

.metric-value {
    font-size: 2.5rem;
    font-weight: bold;
}

.metric-value.primary {
    color: var(--secondary-color);
}

.metric-value.success {
    color: var(--success-color);
}

.metric-value.info {
    color: var(--info-color);
}

.metric-item p {
    color: var(--text-color);
}

@media (max-width: 768px) {
    .technology-hero {
        padding: 60px 0;
    }

    .technology-hero h1 {
        font-size: 2rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* Анимации при прокрутке */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover эффекты для кнопок и ссылок */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Слайд-шоу */
.slideshow {
    position: relative;
    max-width: 100%;
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: var(--primary-color);
}

.slideshow-container {
    display: flex;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(52, 152, 219, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    padding: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.4s ease, cursor 0.3s ease;
    border: none;
    cursor: pointer;
}

.slide:hover .slide-image {
    transform: scale(1.015);
}

.slide-caption {
    color: var(--white);
    font-size: 1rem;
    text-align: center;
    margin: 0;
    max-width: 95%;
    line-height: 1.4;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
}

/* Элементы управления */
.slideshow-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    pointer-events: none;
    z-index: 20;
}

.slide-btn {
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.slide-btn:hover {
    background: rgba(52, 152, 219, 0.8);
    border-color: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.slide-btn svg {
    width: 20px;
    height: 20px;
}

.slide-indicator {
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Прогресс-бар */
.slideshow-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 15;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--success-color));
    width: 0%;
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 10px;
    height: 10px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Контейнер с точками и действиями */
.slide-dots-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 15;
}

.slide-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.dot.active {
    background-color: var(--secondary-color);
    border-color: var(--white);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

/* Кнопка автопрокрутки */
.slideshow-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auto-play-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.auto-play-btn:hover {
    background: rgba(52, 152, 219, 0.3);
    border-color: var(--secondary-color);
    transform: scale(1.1);
}

.auto-play-btn.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.auto-play-btn svg {
    width: 18px;
    height: 18px;
}

/* Видео контейнер */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: var(--light-color);
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    font-size: 1.2rem;
}

/* Информация о заказчике */
.client-info {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 4px solid var(--secondary-color);
}

.client-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.client-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.client-description {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.client-website {
    display: inline-block;
    margin-top: 10px;
}

/* Задача и решение */
.task-solution {
    margin: 40px 0;
}

.task-section,
.solution-section {
    margin-bottom: 30px;
}

.task-section h3,
.solution-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.task-section p,
.solution-section p {
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Кнопка перехода на сайт продукта */
.product-website-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 30px 0;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.product-website-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

/* Навигация между проектами */
.project-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    margin-bottom: 30px;
    padding: 40px 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    flex-wrap: wrap;
    gap: 20px;
}

.project-navigation a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    white-space: nowrap;
}

.project-navigation a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-navigation > a:first-of-type {
    order: 1;
}

.project-navigation-center {
    order: 2;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.project-navigation-center a {
    white-space: nowrap;
}

.project-navigation > a:last-of-type {
    order: 3;
}

.nav-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Бейдж типа проекта */
.project-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-type-badge.product {
    background-color: var(--secondary-color);
    color: var(--white);
}

.project-type-badge.custom {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Сообщение об отсутствии проектов */
.no-projects {
    text-align: center;
    padding: 50px;
    color: var(--text-light);
    font-size: 1.2rem;
    grid-column: 1 / -1;
}



/* Адаптивность для страниц проектов */
@media (max-width: 768px) {
    .slide {
        height: 300px;
    }
    
    .project-navigation {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .project-navigation a,
    .project-navigation-center a {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .project-navigation-center {
        order: 2 !important;
    }
    
    .nav-buttons {
        flex-direction: column;
    }
    
    .product-website-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Адаптивность для контактов с картой */
    .contacts {
        min-height: 600px;
        padding: 60px 0;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        padding: 20px;
    }
}

/* ===== НОВЫЕ СТИЛИ ===== */

/* Мобильное меню */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }

    .header .container {
        position: relative;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        min-height: 68px;
        padding: 14px 20px;
    }

    .logo {
        margin: 0 auto;
        text-align: center;
        padding-right: 32px;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        gap: 0;
        display: none;
        z-index: 999;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav a {
        padding: 15px 20px;
        border-bottom: 1px solid var(--light-gray);
    }

    .technology-hero {
        margin-top: 0;
        padding-top: 70px;
    }

    .form-section.technology-form {
        margin: 40px auto;
        padding: 28px 22px;
    }
}

/* Hero улучшения */
.hero {
    background: linear-gradient(135deg, #1a2634 0%, #2c3e50 50%, #3498db 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

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

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    opacity: 0.95;
}

.hero-cta {
    display: inline-flex;
    gap: 15px;
    align-items: center;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-primary {
    background-color: var(--success-color);
    color: var(--white);
}

.cta-primary:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

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

.cta-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Счетчик статистики */
.stats-bar {
    background-color: var(--white);
    padding: 40px 0;
    margin-top: -20px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.stat-label {
    color: var(--text-color);
    font-size: 1rem;
    margin-top: 8px;
}

/* Фильтры проектов */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--text-light);
    background-color: var(--white);
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
}

.filter-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.filter-btn.active {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* Отзывы / Testimonials */
.testimonials {
    background: linear-gradient(135deg, var(--light-color) 0%, var(--white) 100%);
    padding: 80px 0;
    margin: 60px 0;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--primary-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
    position: relative;
}

.testimonial-card::before {
    content: '❝';
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.3;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-color);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 1.3rem;
}

.author-info h4 {
    color: var(--primary-color);
    margin-bottom: 2px;
    font-weight: 600;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.author-rating {
    color: var(--warning-color);
    font-size: 0.9rem;
}

/* Формы */
.form-section {
    background: var(--light-color);
    padding: 40px;
    border-radius: 10px;
    margin: 40px 0;
}

.form-section h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input[type="tel"][name="phone"] {
    min-width: 150px;
    letter-spacing: 0.5px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input.phone-error {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group input.phone-error::after {
    content: attr(data-error);
    display: block;
    color: var(--accent-color);
    font-size: 0.875rem;
    margin-top: 4px;
}

.form-submit {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 32px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.form-submit:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Сообщение об успехе */
.success-message {
    background-color: var(--success-color);
    color: var(--white);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
}

.success-message.show {
    display: block;
    animation: slideDown 0.5s ease-out;
}

.error-message {
    background-color: rgba(231, 76, 60, 0.12);
    color: #b92d1f;
    padding: 12px 14px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
}

.error-message.show {
    display: block;
}

.captcha-block {
    margin: 10px 0 20px;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Улучшение карточек проектов */
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.projects-header h2 {
    margin: 0;
}

.project-count {
    color: var(--text-light);
    font-size: 1.1rem;
}

.project-card {
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

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

.project-image {
    height: 220px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.project-image::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.project-content {
    padding: 25px;
}

.project-type-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.project-type-badge.product {
    background-color: rgba(52, 152, 219, 0.15);
    color: var(--secondary-color);
}

.project-type-badge.custom {
    background-color: rgba(231, 76, 60, 0.15);
    color: var(--accent-color);
}

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

.project-description {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.project-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.project-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Иконки для действий */
.demo-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-block;
}

.demo-btn:hover {
    background-color: var(--secondary-color);
}

/* Горизонтальный разделитель */
.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    margin: 40px 0;
}

/* Обновлённые стили для адаптивности */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .testimonials {
        padding: 40px 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Адаптивность для слайдшоу */
    .slideshow {
        margin: 20px 0;
        border-radius: 8px;
    }
    
    .slide {
        height: 350px;
    }
    
    .slide-content {
        padding: 20px;
        gap: 15px;
    }
    
    .slide-image {
        max-width: 95%;
        max-height: 60%;
    }
    
    .slide-caption {
        font-size: 1rem;
    }
    
    .slide-btn {
        width: 40px;
        height: 40px;
    }
    
    .slide-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .slide-indicator {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .slide-dots-container {
        flex-direction: column;
        gap: 15px;
        padding: 10px 15px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .auto-play-btn {
        width: 36px;
        height: 36px;
    }
}

/* ===== МОДАЛЬНОЕ ОКНО ДЛЯ ИЗОБРАЖЕНИЙ ===== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slideUp 0.3s ease;
}

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

.image-modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.image-modal-caption {
    color: var(--white);
    text-align: center;
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    transition: var(--transition);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-close:hover {
    color: var(--secondary-color);
    transform: scale(1.2) rotate(90deg);
}

.image-modal-prev,
.image-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2001;
}

.image-modal-prev:hover,
.image-modal-next:hover {
    background: rgba(52, 152, 219, 0.6);
    border-color: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.image-modal-prev {
    left: -70px;
}

.image-modal-next {
    right: -70px;
}

.image-modal-counter {
    color: var(--white);
    margin-top: 15px;
    font-size: 0.95rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .image-modal-close {
        top: 10px;
        right: 10px;
    }
    
    .image-modal-prev,
    .image-modal-next {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .image-modal-prev {
        left: 10px;
    }
    
    .image-modal-next {
        right: 10px;
    }
}