/* brief_template.css */

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

    body {
        font-family: "Inter", sans-serif;
        background: radial-gradient(circle at top, #ffffff, #e7ebf1, #dbe0e8);
        color: #222;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }


    main {
        flex: 1;
        padding: 120px 20px 80px;
    }

    h1 {
        text-align: center;
        font-size: 48px;
        font-weight: 800;
        margin-bottom: 60px;
        background: linear-gradient(135deg, #3d8bfd, #6ea8fe);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        opacity: 0;
        transform: translateY(20px);
        transition: .8s ease;
    }

    .show {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    /* Индикатор загрузки */
    .loading {
        text-align: center;
        font-size: 18px;
        color: #666;
        padding: 40px;
    }

    .spinner {
        border: 4px solid #f3f3f3;
        border-top: 4px solid #3d8bfd;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        animation: spin 1s linear infinite;
        margin: 0 auto 20px;
    }

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

    /* Сетка карточек */
    .template-grid {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
        gap: 30px;
        padding: 20px;
    }

    /* Карточки */
    .card {
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(16px);
        border-radius: 20px;
        padding: 25px;
        border: 1px solid rgba(255,255,255,0.4);
        position: relative;
        min-height: 280px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        transform-style: preserve-3d;
        transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateY(30px);
        opacity: 0;
        transition: transform 0.35s ease, box-shadow .35s ease, opacity .8s ease;
    }

    .card.show {
        opacity: 1;
        transform: perspective(900px) translateY(0);
    }

    .card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 20px;
        pointer-events: none;
        background: radial-gradient(circle at var(--mx) var(--my),
            rgba(0,153,255,0.25),
            transparent 60%
        );
        opacity: 0;
        transition: opacity .3s ease;
    }

    .card:hover::before {
        opacity: 1;
    }

    .card:hover {
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        transform: perspective(900px) translateY(-5px);
    }

    .card-header {
        display: flex;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 20px;
    }

    .template-image {
        width: 80px;
        height: 60px;
        border-radius: 12px;
        border: 2px solid rgba(255,255,255,0.8);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        flex-shrink: 0;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .template-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }

    .text-content {
        flex: 1;
    }

    .template-title {
        font-size: 18px;
        font-weight: 700;
        color: #333;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .template-meta {
        font-size: 13px;
        color: #666;
        line-height: 1.4;
    }

    .template-features {
        font-size: 12px;
        color: #888;
        margin-top: 8px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .feature-tag {
        background: rgba(61, 139, 253, 0.1);
        padding: 4px 8px;
        border-radius: 6px;
        font-size: 11px;
        color: #3d8bfd;
    }

    /* Кнопки */
    .buttons {
        display: flex;
        gap: 12px;
        margin-top: 20px;
        transform: translateZ(40px);
    }

    .btn {
        padding: 12px 20px;
        border-radius: 12px;
        font-size: 14px;
        color: white;
        text-decoration: none;
        background: linear-gradient(135deg, #3d8bfd, #6ea8fe);
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(61,139,253,.3);
        border: none;
        cursor: pointer;
        flex: 1;
        text-align: center;
        font-weight: 500;
    }

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(61,139,253,.5);
    }

    .download {
        background: linear-gradient(135deg, #2ecc71, #27ae60);
        box-shadow: 0 4px 15px rgba(39,174,96,.3);
    }

    .download:hover {
        box-shadow: 0 6px 20px rgba(39,174,96,.5);
    }

    /* Футер */
    footer {
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(16px);
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        padding: 30px 0;
        margin-top: auto;
    }

    .container2 {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        text-align: center;
    }

    footer p {
        color: #333;
        font-size: 16px;
        margin: 0;
    }

    /* Адаптивность */
    @media (max-width: 768px) {
        .nav-main {
            display: none;
        }

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

        h1 {
            font-size: 36px;
            margin-bottom: 40px;
        }

        .template-grid {
            grid-template-columns: 1fr;
            gap: 20px;
            padding: 10px;
        }

        .card {
            min-height: 250px;
            padding: 20px;
        }

        .card-header {
            gap: 15px;
        }

        .template-image {
            width: 70px;
            height: 50px;
        }

        .buttons {
            flex-direction: column;
        }
    }

    @media (max-width: 480px) {
        h1 {
            font-size: 28px;
        }

        .card-header {
            flex-direction: column;
            gap: 15px;
        }

        .template-image {
            align-self: flex-start;
        }
    }
