/* ===== СБРОС СТИЛЕЙ И БАЗОВЫЕ НАСТРОЙКИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Плавная прокрутка */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased; /* Сглаживание для Mac */
    -moz-osx-font-smoothing: grayscale;
}

/* Контейнер для центрирования */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ШАПКА САЙТА ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Эффект размытия как в macOS */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 15px 0;
}

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

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    transition: transform 0.3s ease;
}

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

.logo i {
    color: #007AFF; /* Синий как в macOS */
    margin-right: 10px;
    font-size: 1.8rem;
}

.logo-text {
    display: flex;
    align-items: center;
}

.logo-accent {
    color: #007AFF;
    margin-left: 5px;
}

/* Навигационное меню */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #4a4a4a;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-menu a:hover {
    color: #007AFF;
    background-color: rgba(0, 122, 255, 0.1);
}

.nav-menu i {
    font-size: 0.9rem;
}

/* Контакты в шапке */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 10px;
    background-color: #f5f5f7;
    transition: all 0.3s ease;
}

.phone:hover {
    background-color: #e5e5ea;
    transform: translateY(-2px);
}

.phone i {
    color: #007AFF;
}

/* Кнопки */
.btn {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background-color: #007AFF;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
    background-color: #0056CC;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
}

/* Кнопка меню для мобильных (пока скрыта) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1a1a1a;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.menu-toggle:hover {
    background-color: #f5f5f7;
}
/* ===== ГЛАВНАЯ СЕКЦИЯ ===== */

.hero {
    min-height: 100vh;
    padding: 140px 0 80px; /* Увеличили с 120px до 140px */
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Текстовая часть */
.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.highlight {
    color: #007AFF;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(0, 122, 255, 0.2);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4a4a4a;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Статистика */
.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 2.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #007AFF;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Кнопки героя */
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-accent {
    background-color: #007AFF;
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: #007AFF;
    border: 2px solid #007AFF;
}

.btn-outline:hover {
    background-color: #007AFF;
    color: white;
}

/* Изображение в герое */
.hero-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.image-frame:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.image-frame img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #007AFF, #0056CC);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 122, 255, 0.3);
}

/* Прокрутка вниз */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #007AFF;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}
/* ===== ОБНОВЛЕННАЯ СЕКЦИЯ УСЛУГ ===== */
.services-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-heading {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #007AFF, #0056CC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-item {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: #007AFF;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #007AFF, #34C759);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-item:hover::before {
    opacity: 1;
}

.service-icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #007AFF, #34C759);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon-box i {
    font-size: 32px;
    color: white;
}

.service-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.service-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    color: #4a4a4a;
    font-size: 0.95rem;
}

.feature i {
    color: #34C759;
    margin-right: 10px;
    font-size: 0.9rem;
}

.service-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}

.service-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #007AFF;
}

.service-button {
    padding: 12px 25px;
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.service-button:hover {
    background: #0056CC;
    transform: translateX(5px);
}

.services-cta-box {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
    border-radius: 25px;
    border: 2px dashed #007AFF;
}

.services-cta-box p {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 30px;
    font-weight: 500;
}

.cta-button {
    padding: 18px 40px;
    background: linear-gradient(135deg, #007AFF, #0056CC);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 122, 255, 0.4);
}


/* Футер карточки */
.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #007AFF;
}

.btn-service {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #007AFF;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-service:hover {
    background-color: #0056CC;
    transform: rotate(90deg);
}

/* Призыв к действию */
.services-cta {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    border-radius: 20px;
    margin-top: 40px;
}

.services-cta p {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 20px;
}

/* ===== ФУТЕР ===== */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    color: #ffffff;
    padding: 80px 0 30px;
    position: relative;
}

/* Верхняя часть футера */
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Брендинг */
.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.footer-logo i {
    color: #007AFF;
    margin-right: 10px;
    font-size: 2rem;
}

.footer-description {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Социальные сети */
.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background-color: #007AFF;
    transform: translateY(-3px);
    border-color: #007AFF;
}

.social-link:nth-child(1):hover { background-color: #25D366; } /* WhatsApp */
.social-link:nth-child(2):hover { background-color: #0088cc; } /* Telegram */
.social-link:nth-child(3):hover { background-color: #7360F2; } /* Viber */
.social-link:nth-child(4):hover { background-color: #4C75A3; } /* VK */
.social-link:nth-child(5):hover { background-color: #EA4335; } /* Email */

/* Колонки футера */
.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #007AFF;
    border-radius: 2px;
}

/* Списки ссылок */
.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-list a::before {
    content: '›';
    color: #007AFF;
    margin-right: 10px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.footer-list a:hover {
    color: white;
}

.footer-list a:hover::before {
    transform: translateX(5px);
}

/* Контакты */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    color: #007AFF;
    font-size: 1.2rem;
    margin-top: 3px;
    min-width: 20px;
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    display: block;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: #007AFF;
}

/* Форма обратного звонка */
.newsletter-text {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.callback-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.form-input {
    flex: 1;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #007AFF;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

.form-input::placeholder {
    color: #888;
}

.form-button {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #007AFF;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.form-button:hover {
    background: #0056CC;
    transform: rotate(90deg);
}

.form-agreement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-agreement input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #007AFF; /* Цвет чекбокса в современных браузерах */
}

.form-agreement label {
    color: #b0b0b0;
    font-size: 0.8rem;
    line-height: 1.4;
    cursor: pointer;
}

/* Разделительная линия */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    margin: 40px 0;
}

/* Нижняя часть футера */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
}

.copyright p:first-child {
    margin-bottom: 5px;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-link {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #007AFF;
}

/* Способы оплаты */
.payment-methods {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-text {
    color: #888;
    font-size: 0.85rem;
}

.payment-icons {
    display: flex;
    gap: 10px;
}

.payment-icons i {
    font-size: 1.5rem;
    color: #b0b0b0;
    transition: color 0.3s ease;
}

.payment-icons i:hover {
    color: white;
}

.payment-icons .fa-cc-visa:hover { color: #1a1f71; }
.payment-icons .fa-cc-mastercard:hover { color: #eb001b; }
.payment-icons .fa-cc-mir:hover { color: #1d6bb4; }
.payment-icons .fa-money-bill-wave:hover { color: #28a745; }
.payment-icons .fa-cc-paypal:hover { color: #003087; }

/* Кнопка "Наверх" */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #007AFF;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 122, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #0056CC;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.4);
}
/* Анимации для плавного появления */
.service-card,
.contact-item,
.footer-title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.animated,
.contact-item.animated,
.footer-title.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Задержки для анимаций */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }
.service-card:nth-child(5) { transition-delay: 0.5s; }
.service-card:nth-child(6) { transition-delay: 0.6s; }

.contact-item:nth-child(1) { transition-delay: 0.1s; }
.contact-item:nth-child(2) { transition-delay: 0.2s; }
.contact-item:nth-child(3) { transition-delay: 0.3s; }
.contact-item:nth-child(4) { transition-delay: 0.4s; }
.btn-outline {
    background-color: transparent;
    color: #007AFF;
    border: 2px solid #007AFF;
}

.btn-outline:hover {
    background-color: #007AFF;
    color: white;
}

/* Добавьте это для лучшей видимости */
.btn-accent {
    background-color: #007AFF;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-accent:hover {
    background-color: #0056CC;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
}






/* ===== АДАПТИВНОСТЬ ===== */

/* Для iPad (768px и меньше) */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}
/* Для iPhone (480px и меньше) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-actions {
        display: none; /* Скрываем контакты в шапке на мобильных */
    }
    
    .menu-toggle {
        display: block; /* Показываем кнопку меню */
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none; /* По умолчанию скрыто */
    }
    
    .nav-menu.active {
        display: flex; /* Показываем при клике */
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }


    
}

/* ===== ПОРТФОЛИО ===== */
.portfolio {
    padding: 100px 0;
    background-color: #f8f9fa;
}

/* Фильтры */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 12px 25px;
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
    border-color: #007AFF;
    color: #007AFF;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: #007AFF;
    color: white;
    border-color: #007AFF;
    box-shadow: 0 5px 15px rgba(0, 122, 255, 0.2);
}

/* Сетка портфолио */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.portfolio-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

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

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

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

/* Изображение в портфолио */
.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 122, 255, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    background: rgba(0, 122, 255, 0.8);
}

.portfolio-view {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: none;
    color: #007AFF;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-view {
    opacity: 1;
    transform: scale(1);
}

.portfolio-view:hover {
    background: #007AFF;
    color: white;
    transform: scale(1.1) !important;
}

/* Информация о работе */
.portfolio-info {
    padding: 25px;
}

.portfolio-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.portfolio-location {
    color: #007AFF;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.portfolio-location::before {
    content: '📍';
}

.portfolio-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.portfolio-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
    font-size: 0.9rem;
}

.meta-item i {
    color: #007AFF;
}

/* CTA под портфолио */
.portfolio-cta {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, #007AFF, #0056CC);
    border-radius: 20px;
    color: white;
}

.portfolio-cta p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.portfolio-cta .btn {
    background: white;
    color: #007AFF;
    font-weight: 600;
}

.portfolio-cta .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

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

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    font-size: 1.8rem;
    color: #333;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #007AFF;
    color: white;
    transform: rotate(90deg);
}

.modal-image-container {
    position: relative;
    height: 500px;
    overflow: hidden;
}

#modalImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.modal-prev,
.modal-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-prev:hover,
.modal-next:hover {
    background: #007AFF;
    color: white;
    transform: scale(1.1);
}

.modal-info {
    padding: 30px;
}

.modal-info h3 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.modal-info p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}
/* Стили для уведомлений */
.form-notification {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.form-notification.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-notification.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

.form-loading {
    text-align: center;
    color: #007AFF;
    margin: 10px 0;
}

.form-loading i {
    margin-right: 8px;
}

.form-group-full {
    margin-bottom: 15px;
}

.form-group-full .form-input {
    width: 100%;
}