        :root {
            --primary: #6c63ff;
            --primary-dark: #5752d4;
            --secondary: #ff6584;
            --dark: #2a2a3c;
            --light: #f8f9fa;
            --gray: #6c757d;
            --transition: all 0.3s ease;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Poppins', sans-serif;
            background-color: #f5f7ff;
            color: var(--dark);
            overflow-x: hidden;
        }
        
        /* Навигация */
        .navbar {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
            padding: 15px 0;
            transition: var(--transition);
        }
        
        .navbar-brand {
            font-weight: 700;
            font-size: 1.8rem;
            color: var(--primary);
            display: flex;
            align-items: center;
        }
        
        .navbar-brand i {
            margin-right: 8px;
            font-size: 1.5rem;
        }
        
        .nav-link {
            font-weight: 500;
            margin: 0 10px;
            color: var(--dark);
            transition: var(--transition);
            position: relative;
        }
        
        .nav-link:hover {
            color: var(--primary);
        }
        
        .nav-link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            left: 0;
            background-color: var(--primary);
            transition: var(--transition);
        }
        
        .nav-link:hover::after {
            width: 100%;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            border: none;
            padding: 10px 25px;
            border-radius: 50px;
            font-weight: 500;
            transition: var(--transition);
            box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
        }
        
        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
        }
        
        /* Герой секция */
        .hero {
            background: linear-gradient(135deg, #6c63ff, #5752d4);
            color: white;
            padding: 120px 0 100px;
            position: relative;
            overflow: hidden;
        }
        
        .hero::before {
            content: '';
            position: absolute;
            width: 200%;
            height: 200%;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
            background-size: cover;
            top: 0;
            left: 0;
            transform: rotate(15deg);
            z-index: 1;
        }
        
        .hero-content {
            position: relative;
            z-index: 2;
        }
        
        .hero h1 {
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 20px;
        }
        
        .hero p {
            font-size: 1.2rem;
            margin-bottom: 30px;
            opacity: 0.9;
        }
        
        .hero-image {
            position: relative;
            z-index: 2;
            animation: float 6s ease-in-out infinite;
        }
        
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
            100% { transform: translateY(0px); }
        }
        
        /* Секции */
        .section-title {
            text-align: center;
            margin-bottom: 60px;
            position: relative;
        }
        
        .section-title h2 {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--dark);
            display: inline-block;
        }
        
        .section-title h2::after {
            content: '';
            position: absolute;
            width: 80px;
            height: 4px;
            background: linear-gradient(to right, var(--primary), var(--secondary));
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            border-radius: 2px;
        }
        
        /* Поиск и фильтры */
        .search-section {
            background: white;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            margin-bottom: 40px;
        }
        
        .search-box {
            position: relative;
        }
        
        .search-box input {
            width: 100%;
            padding: 15px 20px;
            border-radius: 50px;
            border: 1px solid #e0e0e0;
            font-size: 1rem;
            transition: var(--transition);
        }
        
        .search-box input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
        }
        
        .search-box button {
            position: absolute;
            right: 5px;
            top: 5px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 50px;
            padding: 10px 20px;
            transition: var(--transition);
        }
        
        .search-box button:hover {
            background: var(--primary-dark);
        }
        
        .filter-section {
            margin-top: 20px;
        }
        
        .filter-title {
            font-weight: 600;
            margin-bottom: 15px;
            font-size: 1.1rem;
        }
        
        .filter-options {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .filter-btn {
            background: white;
            border: 1px solid #e0e0e0;
            padding: 6px 15px;
            border-radius: 50px;
            font-size: 0.85rem;
            transition: var(--transition);
            cursor: pointer;
        }
        
        .filter-btn:hover, .filter-btn.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        /* Карточки шаблонов */
        .template-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            transition: var(--transition);
            margin-bottom: 30px;
            position: relative;
        }
        
        .template-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        }
        
        .template-img {
            height: 200px;
            overflow: hidden;
            position: relative;
        }
        
        .template-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }
        
        .template-card:hover .template-img img {
            transform: scale(1.05);
        }
        
        .template-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--secondary);
            color: white;
            padding: 5px 15px;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 500;
        }
        
        .template-content {
            padding: 20px;
        }
        
        .template-title {
            font-weight: 600;
            margin-bottom: 10px;
            font-size: 1.2rem;
        }
        
        .template-theme {
            color: var(--primary);
            font-size: 0.9rem;
            margin-bottom: 10px;
            font-weight: 500;
        }
        
        .template-description {
            color: var(--gray);
            font-size: 0.9rem;
            margin-bottom: 15px;
        }
        
        .template-price {
            font-weight: 700;
            font-size: 1.3rem;
            color: var(--primary);
            margin-bottom: 15px;
        }
        
        .template-actions {
            display: flex;
            gap: 10px;
        }
        
        .template-actions .btn {
            flex: 1;
            padding: 8px 15px;
            border-radius: 8px;
            font-size: 0.9rem;
        }
        
        .btn-outline-primary {
            border: 1px solid var(--primary);
            color: var(--primary);
            transition: var(--transition);
        }
        
        .btn-outline-primary:hover {
            background: var(--primary);
            color: white;
        }
        
        /* Категории */
        .category-card {
            background: white;
            border-radius: 15px;
            padding: 30px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            transition: var(--transition);
            margin-bottom: 30px;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }
        
        .category-card::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 0;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            bottom: 0;
            left: 0;
            transition: var(--transition);
            z-index: -1;
            border-radius: 15px;
        }
        
        .category-card:hover::before {
            height: 100%;
        }
        
        .category-card:hover {
            transform: translateY(-10px);
            color: white;
        }
        
        .category-card:hover .category-icon {
            color: white;
            transform: scale(1.1);
        }
        
        .category-icon {
            font-size: 3rem;
            color: var(--primary);
            margin-bottom: 20px;
            transition: var(--transition);
        }
        
        .category-card h3 {
            font-weight: 600;
            margin-bottom: 15px;
        }
        
        /* Модальное окно покупки */
        .modal-content {
            border-radius: 15px;
            border: none;
            overflow: hidden;
        }
        
        .modal-header {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            border-bottom: none;
            padding: 20px 30px;
        }
        
        .modal-title {
            font-weight: 600;
        }
        
        .btn-close-white {
            filter: invert(1);
        }
        
        .modal-body {
            padding: 30px;
        }
        
        .purchase-info {
            display: flex;
            gap: 20px;
            margin-bottom: 25px;
        }
        
        .purchase-image {
            flex: 0 0 150px;
            border-radius: 10px;
            overflow: hidden;
        }
        
        .purchase-image img {
            width: 100%;
            height: auto;
            display: block;
        }
        
        .purchase-details {
            flex: 1;
        }
        
        .purchase-title {
            font-weight: 600;
            font-size: 1.3rem;
            margin-bottom: 10px;
        }
        
        .purchase-price {
            font-weight: 700;
            font-size: 1.5rem;
            color: var(--primary);
            margin-bottom: 15px;
        }
        
        .purchase-description {
            color: var(--gray);
            margin-bottom: 15px;
        }
        
        .features-list {
            list-style: none;
            padding: 0;
            margin-bottom: 20px;
        }
        
        .features-list li {
            margin-bottom: 8px;
            display: flex;
            align-items: center;
        }
        
        .features-list i {
            color: var(--primary);
            margin-right: 10px;
        }
        
        .payment-options {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .payment-option {
            flex: 1;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 10px;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .payment-option:hover, .payment-option.active {
            border-color: var(--primary);
            background: rgba(108, 99, 255, 0.05);
        }
        
        .payment-option i {
            font-size: 1.5rem;
            margin-bottom: 5px;
            display: block;
        }
        
        .modal-footer {
            border-top: 1px solid #e0e0e0;
            padding: 20px 30px;
        }
        
        /* Модальное окно просмотра */
        .preview-modal .modal-dialog {
            max-width: 90%;
        }
        
        .preview-modal .modal-body {
            padding: 0;
            max-height: 80vh;
            overflow-y: auto;
        }
        
        .preview-image {
            width: 100%;
            display: block;
        }
        
        .preview-nav {
            position: sticky;
            top: 0;
            background: white;
            padding: 15px 20px;
            border-bottom: 1px solid #e0e0e0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 10;
        }
        
        .preview-title {
            font-weight: 600;
            font-size: 1.2rem;
            margin: 0;
        }
        
        .preview-controls {
            display: flex;
            gap: 10px;
        }
        
        .preview-controls button {
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 5px;
            padding: 5px 15px;
            font-size: 0.9rem;
            transition: var(--transition);
        }
        
        .preview-controls button:hover {
            background: var(--primary-dark);
        }
        
        /* Футер */
        footer {
            background: var(--dark);
            color: white;
            padding: 80px 0 30px;
        }
        
        .footer-logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: white;
            margin-bottom: 20px;
            display: inline-block;
        }
        
        .footer-links h5 {
            font-weight: 600;
            margin-bottom: 20px;
            position: relative;
        }
        
        .footer-links h5::after {
            content: '';
            position: absolute;
            width: 40px;
            height: 3px;
            background: var(--primary);
            bottom: -8px;
            left: 0;
        }
        
        .footer-links ul {
            list-style: none;
            padding: 0;
        }
        
        .footer-links li {
            margin-bottom: 10px;
        }
        
        .footer-links a {
            color: #b0b0b0;
            text-decoration: none;
            transition: var(--transition);
        }
        
        .footer-links a:hover {
            color: white;
            padding-left: 5px;
        }
        
        .social-icons {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        .social-icons a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
            transition: var(--transition);
        }
        
        .social-icons a:hover {
            background: var(--primary);
            transform: translateY(-5px);
        }
        
        .copyright {
            text-align: center;
            padding-top: 40px;
            margin-top: 40px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #b0b0b0;
            font-size: 0.9rem;
        }
        
        /* Анимации */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        
        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }
        
        /* Адаптивность */
        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2.5rem;
            }
            
            .section-title h2 {
                font-size: 2rem;
            }
            
            .purchase-info {
                flex-direction: column;
            }
            
            .purchase-image {
                flex: 0 0 auto;
                margin-bottom: 20px;
            }
            
            .preview-modal .modal-dialog {
                max-width: 95%;
            }
        }
		@media (max-width: 991px) {
  .hero-image {
    height: 0; /* блок не занимает место */
  }
}