* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.1) rotate(5deg);
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo h1:hover {
    transform: scale(1.05);
    letter-spacing: 1px;
}

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

.nav-link {
    text-decoration: none;
    color: #4a4a4a;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

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

.header-actions {
    display: flex;
    gap: 15px;
}

.btn-icon {
    background: #f5f5f5;
    border: none;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.btn-icon:hover {
    background: #667eea;
    transform: translateY(-3px) scale(1.05);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
    position: static;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0;
    white-space: nowrap;
    display: inline-block;
    animation: typing 2s steps(60, end) 0.5s forwards;
    clip-path: inset(0 100% 0 0);
}

@keyframes typing {
    from { 
        opacity: 1;
        clip-path: inset(0 100% 0 0);
    }
    to { 
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

.btn-primary {
    background: white;
    color: #667eea;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease 2.5s backwards;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background: white;
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: left;
    margin-bottom: 40px;
    color: #1a1a1a;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    animation: cardAppear 0.35s ease-out forwards;
    will-change: transform;
    z-index: 1;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

.product-card:nth-child(1) { animation-delay: 0s; }
.product-card:nth-child(2) { animation-delay: 0.05s; }
.product-card:nth-child(3) { animation-delay: 0.1s; }
.product-card:nth-child(4) { animation-delay: 0.15s; }
.product-card:nth-child(5) { animation-delay: 0.2s; }
.product-card:nth-child(6) { animation-delay: 0.25s; }
.product-card:nth-child(7) { animation-delay: 0.3s; }
.product-card:nth-child(8) { animation-delay: 0.35s; }

.product-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    z-index: 10 !important;
}

.product-card:active {
    transform: scale(0.98) !important;
}

.product-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

/* Специальная высота для первых шести карточек на главной */
.product-card:nth-child(1) .product-image,
.product-card:nth-child(2) .product-image,
.product-card:nth-child(3) .product-image,
.product-card:nth-child(4) .product-image,
.product-card:nth-child(5) .product-image,
.product-card:nth-child(6) .product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Для каталога - YouTube на 7 позиции, Adobe на 8 позиции и CapCut на 9 позиции */
.products-grid .product-card:nth-child(7) .product-image,
.products-grid .product-card:nth-child(8) .product-image,
.products-grid .product-card:nth-child(9) .product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 80px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

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

.product-badge {
    position: absolute;
    top: 25px;
    right: 12px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    background: white;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-badge.badge-hit {
    background: #FFD700;
    color: #1a1a1a;
    top: 35px;
    right: 12px;
}

.product-badge.badge-category {
    background: white;
    color: #1a1a1a;
    top: 73px;
    right: 12px;
}

/* Для карточек без "Хит" - поднимаем бейджи наверх */
.product-card:nth-child(2) .product-badge.badge-category,
.product-card:nth-child(3) .product-badge.badge-category,
.product-card:nth-child(4) .product-badge.badge-category,
.product-card:nth-child(5) .product-badge.badge-category,
.product-card:nth-child(6) .product-badge.badge-category,
.product-card:nth-child(7) .product-badge.badge-category,
.product-card:nth-child(8) .product-badge.badge-category,
.product-card:nth-child(9) .product-badge.badge-category {
    top: 35px;
}

.product-badge.hot {
    background: white;
    color: #1a1a1a;
}

.product-badge.new {
    background: white;
    color: #1a1a1a;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-info {
    padding: 20px;
    position: relative;
    z-index: 2;
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Специальные стили для первых шести карточек на главной (ChatGPT, Midjourney, VPN, YouTube, Adobe и CapCut) */
.product-card:nth-child(1) .product-info,
.product-card:nth-child(2) .product-info,
.product-card:nth-child(3) .product-info,
.product-card:nth-child(4) .product-info,
.product-card:nth-child(5) .product-info,
.product-card:nth-child(6) .product-info {
    padding: 0px 20px 18px 20px;
    margin-top: -4px;
}

/* Для каталога - YouTube на 7 позиции, Adobe на 8 позиции и CapCut на 9 позиции */
.products-grid .product-card:nth-child(7) .product-info,
.products-grid .product-card:nth-child(8) .product-info,
.products-grid .product-card:nth-child(9) .product-info {
    padding: 0px 20px 18px 20px;
    margin-top: -4px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.product-description {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.4;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-current {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.price-old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.btn-buy {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-buy:hover {
    background: #333;
    transform: scale(1.05);
}

.btn-show-more:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6) !important;
}

.btn-show-more:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
}

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

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.feature-card p {
    font-size: 14px;
    color: #666;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section a {
    display: block;
    color: #aaa;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-section p {
    color: #aaa;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #aaa;
    font-size: 14px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

