
:root {

    color-scheme: dark;

    --background: #0d0d14;

    --surface: #171722;

    --surface-soft: #20202d;

    --text: #f7f4f1;

    --muted: #aaa6b3;

    --lavender: #b9a7ff;

    --champagne: #e8c98f;

    --coral: #f2a8a0;

    --success: #72d6ad;

    --border: rgba(255, 255, 255, .09);

    --shadow: 0 30px 90px rgba(0, 0, 0, .34);

}



* {

    box-sizing: border-box;

}



html {

    min-height: 100%;

    scroll-behavior: smooth;

    background: var(--background);

}



body {

    min-height: 100vh;

    margin: 0;

    color: var(--text);

    font: 16px/1.65 Inter, -apple-system, BlinkMacSystemFont,

        "Segoe UI", sans-serif;

    background:

        radial-gradient(

            circle at 12% 8%,

            rgba(185, 167, 255, .12),

            transparent 28rem

        ),

        radial-gradient(

            circle at 88% 32%,

            rgba(232, 201, 143, .08),

            transparent 30rem

        ),

        var(--background);

}



a {

    color: inherit;

    text-decoration: none;

}



button,

input,

select,

textarea {

    font: inherit;

}



button,

select {

    cursor: pointer;

}



.container {

    width: min(1180px, calc(100% - 40px));

    margin-inline: auto;

}



.narrow {

    max-width: 820px;

}



.skip-link {

    position: fixed;

    z-index: 1000;

    left: 20px;

    top: 16px;

    padding: 10px 16px;

    border-radius: 12px;

    color: #16131c;

    background: var(--champagne);

    transform: translateY(-150%);

}



.skip-link:focus {

    transform: none;

}



.site-header {

    position: sticky;

    z-index: 20;

    top: 0;

    border-bottom: 1px solid var(--border);

    background: rgba(13, 13, 20, .82);

    backdrop-filter: blur(20px);

}



.header-row {

    min-height: 76px;

    display: flex;

    align-items: center;

    gap: 32px;

}



.brand {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    font-weight: 800;

    letter-spacing: -.02em;

}



.brand-mark {

    width: 40px;

    height: 40px;

    display: grid;

    place-items: center;

    border-radius: 13px;

    color: #17131d;

    font-weight: 900;

    background: linear-gradient(

        135deg,

        var(--lavender),

        var(--champagne),

        var(--coral)

    );

}



.navigation {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-left: auto;

}



.navigation a {

    padding: 10px 14px;

    border-radius: 12px;

    color: var(--muted);
}



.navigation a:hover,

.navigation a[aria-current="page"] {

    color: var(--text);

    background: rgba(255, 255, 255, .06);

}



.button {

    min-height: 48px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 12px 22px;

    border: 0;

    border-radius: 15px;

    color: #17131d;

    font-weight: 800;

    background: linear-gradient(

        135deg,

        var(--lavender),

        var(--champagne)

    );

    box-shadow: 0 15px 35px rgba(185, 167, 255, .16);

}



.button:hover {

    filter: brightness(1.05);

    transform: translateY(-1px);

}



.button-small {

    min-height: 42px;

    padding: 9px 17px;

}



.button-secondary {

    color: var(--text);

    border: 1px solid var(--border);

    background: rgba(255, 255, 255, .04);

    box-shadow: none;

}



.button-disabled {

    cursor: not-allowed;

    color: var(--muted);

    border: 1px solid var(--border);

    background: rgba(255, 255, 255, .03);

    box-shadow: none;

}



.hero {

    padding: clamp(70px, 10vw, 130px) 0;

}



.hero-grid {

    display: grid;

    grid-template-columns: 1.08fr .92fr;

    align-items: center;

    gap: clamp(42px, 8vw, 100px);

}



.eyebrow,

.category-label {

    margin: 0 0 14px;

    color: var(--champagne);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: .16em;

    text-transform: uppercase;

}



h1,

h2,

h3,

p {

    overflow-wrap: anywhere;

}



h1 {

    max-width: 780px;

    margin: 0;

    font-size: clamp(44px, 7vw, 78px);

    line-height: .98;

    letter-spacing: -.055em;

}



h2 {

    margin: 0;

    font-size: clamp(28px, 4vw, 44px);

    line-height: 1.08;

    letter-spacing: -.035em;

}



h3 {

    margin: 0;

    font-size: 22px;

    line-height: 1.2;

    letter-spacing: -.025em;

}



.gradient-text {

    color: transparent;

    background: linear-gradient(

        90deg,

        var(--lavender),

        var(--champagne),

        var(--coral)

    );

    background-clip: text;

    -webkit-background-clip: text;

}



.hero-text,

.page-hero p {

    max-width: 680px;

    margin: 26px 0 0;

    color: var(--muted);

    font-size: clamp(17px, 2.2vw, 21px);

}



.hero-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 32px;

}



.microcopy,

.pricing-note,

.request-reference {

    color: #817c89;

    font-size: 14px;

}



.microcopy {

    margin-top: 20px;

}



.hero-card {

    min-height: 470px;

    position: relative;

    display: flex;

    align-items: end;

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: 36px;

    background:

        linear-gradient(

            145deg,

            rgba(185, 167, 255, .13),

            transparent 45%

        ),

        var(--surface);

    box-shadow: var(--shadow);

}



.visual-orb {

    position: absolute;

    width: 320px;

    height: 320px;

    top: 28px;

    left: 50%;

    border-radius: 44% 56% 60% 40%;

    background: linear-gradient(

        135deg,

        var(--lavender),

        var(--champagne),

        var(--coral)

    );

    filter: blur(1px);

    opacity: .88;

    transform: translateX(-50%) rotate(-12deg);

    box-shadow: 0 30px 90px rgba(185, 167, 255, .25);

}



.hero-card-content {

    position: relative;

    width: 100%;

    padding: 32px;

    background: linear-gradient(

        to top,

        rgba(18, 17, 27, .98),

        rgba(18, 17, 27, .74),

        transparent

    );

}



.hero-card-content h2 {

    margin-top: 20px;

    font-size: 30px;

}



.status {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 8px 12px;

    border: 1px solid var(--border);

    border-radius: 999px;

    color: #dcd8e0;

    background: rgba(255, 255, 255, .04);

    font-size: 13px;

}



.status-dot {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: var(--success);

    box-shadow: 0 0 16px rgba(114, 214, 173, .7);

}



.feature-list {

    margin: 22px 0 0;

    padding-left: 20px;

    color: var(--muted);

}



.section {

    padding: clamp(70px, 9vw, 120px) 0;

}



.section-first {

    padding-top: 30px;

}



.section-soft {

    border-block: 1px solid var(--border);

    background: rgba(255, 255, 255, .018);

}



.section-heading {

    display: flex;

    align-items: end;

    justify-content: space-between;

    gap: 24px;

    margin-bottom: 36px;

}



.text-link,

.card-link {

    color: var(--champagne);

    font-weight: 750;

}



.card-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;

}



.template-card,

.price-card,

.generator-form,

.empty-state,

.notice {

    border: 1px solid var(--border);

    border-radius: 26px;

    background: var(--surface);

    box-shadow: 0 22px 60px rgba(0, 0, 0, .18);

}



.template-card {

    overflow: hidden;

}



.template-preview {

    min-height: 190px;

    position: relative;

    display: grid;

    place-items: center;

    background:

        radial-gradient(

            circle,

            rgba(232, 201, 143, .28),

            transparent 34%

        ),

        linear-gradient(

            135deg,

            rgba(185, 167, 255, .18),

            rgba(242, 168, 160, .08)

        );

}



.template-symbol {

    color: var(--champagne);

    font-size: 66px;

    text-shadow: 0 0 45px rgba(232, 201, 143, .45);

}



.badge {

    position: absolute;

    top: 16px;

    right: 16px;

    padding: 7px 11px;

    border-radius: 999px;

    color: #17131d;

    font-size: 11px;

    font-weight: 850;

    background: var(--champagne);

}



.template-content {

    padding: 24px;

}



.template-content h2 {

    font-size: 24px;

}



.template-content > p:not(.category-label) {

    min-height: 52px;

    color: var(--muted);

}



.template-meta {

    display: flex;

    justify-content: space-between;
gap: 12px;

    margin: 22px 0;

    color: #817c89;

    font-size: 13px;

}



.steps-grid {

    display: grid;

    grid-template-columns: .8fr 1.2fr;

    gap: 70px;

}



.steps {

    display: grid;

    gap: 16px;

    margin: 0;

    padding: 0;

    list-style: none;

}



.steps li {

    display: flex;

    gap: 22px;

    padding: 22px;

    border: 1px solid var(--border);

    border-radius: 20px;

    background: rgba(255, 255, 255, .025);

}



.steps li > span {

    color: var(--lavender);

    font-weight: 850;

}



.steps p {

    margin: 4px 0 0;

    color: var(--muted);

}



.page-hero {

    padding: clamp(64px, 9vw, 110px) 0 50px;

    text-align: center;

}



.page-hero h1,

.page-hero p {

    margin-inline: auto;

}



.generator-form {

    padding: clamp(24px, 5vw, 44px);

}



.field {

    margin-bottom: 24px;

}



.field label {

    display: block;

    margin-bottom: 9px;

    font-weight: 750;

}



.field small {

    display: block;

    margin-top: 7px;

    color: #817c89;

}



textarea,

select,

input[type="text"] {

    width: 100%;

    padding: 14px 16px;

    color: var(--text);

    border: 1px solid rgba(255, 255, 255, .13);

    border-radius: 14px;

    outline: none;

    background: #11111a;

}



textarea {

    resize: vertical;

}



textarea:focus,

select:focus,

input:focus {

    border-color: var(--lavender);

    box-shadow: 0 0 0 3px rgba(185, 167, 255, .13);

}



.form-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;

}



.consent {

    display: flex;

    align-items: start;

    gap: 12px;

    margin: 0 0 26px;

    color: var(--muted);

}



.consent input {

    width: 18px;

    height: 18px;

    margin-top: 4px;

    accent-color: var(--lavender);

}



.notice {

    margin-bottom: 20px;

    padding: 18px 20px;

}



.notice-success {

    color: #c8f4e2;

    border-color: rgba(114, 214, 173, .28);

    background: rgba(114, 214, 173, .08);

}



.pricing-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    align-items: stretch;

    gap: 22px;

}



.price-card {

    position: relative;

    padding: 30px;

}



.price-card-featured {

    border-color: rgba(185, 167, 255, .38);

    background:

        linear-gradient(

            145deg,

            rgba(185, 167, 255, .1),

            transparent

        ),

        var(--surface);

}



.price-card p:not(.category-label) {

    min-height: 78px;

    color: var(--muted);

}



.price {

    margin: 20px 0;

    font-size: 30px;

    font-weight: 850;

}



.pricing-note {

    max-width: 700px;

    margin: 30px auto 0;

    text-align: center;

}



.empty-state {

    padding: 42px;

    color: var(--muted);

    text-align: center;

}



.error-page {

    min-height: 65vh;

    display: grid;

    place-items: center;

    padding: 80px 0;

    text-align: center;

}



.error-page p {

    color: var(--muted);

}



.error-page .hero-actions {

    justify-content: center;

}



.error-code {

    color: transparent;

    font-size: clamp(80px, 18vw, 180px);

    font-weight: 900;

    line-height: .9;

    background: linear-gradient(

        90deg,

        var(--lavender),

        var(--champagne),

        var(--coral)

    );

    background-clip: text;

    -webkit-background-clip: text;

}



.site-footer {

    padding: 46px 0;

    border-top: 1px solid var(--border);

    color: var(--muted);

}



.site-footer p {

    margin: 5px 0 0;

}



.footer-row {

    display: flex;

    justify-content: space-between;

    gap: 30px;

}



.footer-links {

    display: flex;

    flex-wrap: wrap;

    gap: 22px;

}



@media (max-width: 920px) {

    .hero-grid,

    .steps-grid {

        grid-template-columns: 1fr;

    }



    .card-grid,

    .pricing-grid {

        grid-template-columns: repeat(2, 1fr);

    }



    .navigation {

        display: none;

    }



    .header-row .button-small {

        margin-left: auto;

    }

}



@media (max-width: 640px) {

    .container {

        width: min(100% - 28px, 1180px);

    }



    .card-grid,

    .pricing-grid,

    .form-grid {

        grid-template-columns: 1fr;

    }



    .hero-card {

        min-height: 400px;

    }



    .section-heading,

    .footer-row {

        align-items: start;

        flex-direction: column;

    }



    .template-content > p:not(.category-label),

    .price-card p:not(.category-label) {

        min-height: auto;

    }

}



@media (prefers-reduced-motion: reduce) {

    html {

        scroll-behavior: auto;

    }



    *,

    *::before,

    *::after {

        scroll-behavior: auto !important;

        transition: none !important;

        animation: none !important;

    }

}







/* Stage 5: authentication and dashboard */



.header-account {

    display: flex;

    align-items: center;

    gap: 12px;

}



.header-account form {

    margin: 0;

}



.header-login,

.header-logout {

    color: var(--muted);

}



.header-login {

    padding: 10px 12px;

}



.header-logout {

    padding: 9px 12px;

    border: 0;

    background: transparent;

}



.header-login:hover,

.header-logout:hover {

    color: var(--text);

}



.account-link {

    display: flex;

    align-items: center;

    gap: 9px;

    max-width: 250px;

    padding: 8px 12px;

    border-radius: 13px;

    color: var(--text);

    background: rgba(255, 255, 255, .04);

}



.account-link > span:last-child {

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}



.account-credit {

    flex: 0 0 auto;

    color: var(--champagne);

    font-size: 13px;

    font-weight: 800;

}



.flash-area {

    padding-top: 20px;

}



.flash-area .notice {

    margin-bottom: 0;

}



.auth-hero {

    padding-bottom: 32px;

}



.auth-container {

    max-width: 620px;

}



.auth-form {

    width: 100%;

}



.auth-form input[type="email"],

.auth-form input[type="password"],

.auth-form input[type="text"] {

    width: 100%;

    padding: 14px 16px;

    color: var(--text);

    border: 1px solid rgba(255, 255, 255, .13);

    border-radius: 14px;

    outline: none;

    background: #11111a;

}



.auth-submit {

    width: 100%;

}



.auth-switch,

.auth-links {

    margin: 24px 0 0;

    color: var(--muted);

    text-align: center;

}



.auth-switch a,

.auth-links a {

    color: var(--champagne);

    font-weight: 750;

}



.auth-links {

    display: flex;

    justify-content: space-between;

    gap: 20px;

}



.notice-error {

    color: #ffd2d0;

    border-color: rgba(242, 168, 160, .3);

    background: rgba(242, 168, 160, .08);

}



.notice-error p {

    margin: 0;

}



.error-list {

    margin: 10px 0 0;

    padding-left: 22px;

}



.dashboard-hero {

    text-align: left;

}



.dashboard-hero h1,

.dashboard-hero p {

    margin-left: 0;

}



.dashboard-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;

}



.dashboard-card {

    padding: 28px;

    border: 1px solid var(--border);

    border-radius: 26px;

    background: var(--surface);

    box-shadow: 0 22px 60px rgba(0, 0, 0, .18);

}



.dashboard-card h2 {

    font-size: 26px;

}



.dashboard-card > p:not(.category-label) {

    color: var(--muted);

}



.balance-value {

    margin: 10px 0 0;

    color: var(--champagne);

    font-size: clamp(58px, 8vw, 84px);

    font-weight: 900;

    line-height: 1;

    letter-spacing: -.06em;

}



.account-details {

    display: grid;

    gap: 14px;

    margin: 24px 0 0;

}



.account-details div {

    display: flex;

    justify-content: space-between;

    gap: 16px;

    padding-bottom: 12px;

    border-bottom: 1px solid var(--border);

}



.account-details dt {

    color: var(--muted);

}



.account-details dd {

    margin: 0;

    text-align: right;

}



.dashboard-section {

    margin-top: 70px;

}



.transaction-list {

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: 22px;

    background: var(--surface);

}



.transaction-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;

    padding: 20px 22px;

    border-bottom: 1px solid var(--border);

}



.transaction-row:last-child {

    border-bottom: 0;

}



.transaction-row span {

    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 13px;

}



.transaction-amount {

    font-size: 20px;

    font-weight: 850;

}



.transaction-positive {

    color: var(--success);

}



.transaction-negative {

    color: var(--coral);

}



@media (max-width: 1040px) {

    .header-account .account-link > span:last-child {

        display: none;

    }



    .dashboard-grid {

        grid-template-columns: 1fr 1fr;

    }

}



@media (max-width: 760px) {

    .header-login,

    .header-account .button-small,

    .account-link {

        display: none;

    }



    .header-account {

        margin-left: auto;

    }



    .dashboard-grid {

        grid-template-columns: 1fr;

    }



    .auth-links {

        flex-direction: column;

        gap: 10px;

    }

}





/* Stage 6: account security */



.verification-panel {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;

    margin: 0 0 32px;

    padding: 22px;

    border: 1px solid rgba(255, 196, 74, 0.35);

    border-radius: 18px;

    background: rgba(255, 196, 74, 0.08);

}



.verification-panel p {

    margin: 7px 0 0;

    color: var(--text-muted, #b8b8c8);

}



.verification-panel form {

    flex: 0 0 auto;

}



@media (max-width: 720px) {

    .verification-panel {

        align-items: stretch;

        flex-direction: column;

    }



    .verification-panel .button {

        width: 100%;

    }

}




/* Stage 7: catalog, categories and template pages */



.catalog-filters {

    display: grid;

    grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr)) auto;

    align-items: end;

    gap: 14px;

    margin-bottom: 24px;

    padding: 20px;

    border: 1px solid var(--border, rgba(255, 255, 255, .09));

    border-radius: 22px;

    background: rgba(255, 255, 255, .035);

}



.catalog-filters .field {

    margin: 0;

}



.catalog-filter-button {

    min-height: 48px;

}



.category-chips {

    display: flex;

    gap: 10px;

    margin: 0 0 28px;

    padding: 2px 0 8px;

    overflow-x: auto;

    scrollbar-width: thin;

}



.category-chip {

    display: inline-flex;

    align-items: center;

    flex: 0 0 auto;

    gap: 8px;

    padding: 10px 14px;

    border: 1px solid var(--border, rgba(255, 255, 255, .09));

    border-radius: 999px;

    color: var(--text-muted, #aaa6b3);

    background: rgba(255, 255, 255, .025);

    text-decoration: none;

    transition:

        border-color .2s ease,

        background .2s ease,

        color .2s ease;

}



.category-chip:hover,

.category-chip:focus-visible,

.category-chip.is-active {

    border-color: rgba(185, 167, 255, .55);

    color: var(--text, #f7f4f1);

    background: rgba(185, 167, 255, .12);

}



.category-chip span {

    color: var(--champagne, #e8c98f);

    font-size: .82rem;

}



.catalog-summary {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;

    margin-bottom: 20px;

    color: var(--text-muted, #aaa6b3);

}



.catalog-summary p {

    margin: 0;

}



.catalog-summary a {

    color: var(--lavender, #b9a7ff);

}



.catalog-grid .template-card {

    min-width: 0;

}



.template-card h2 a,

.template-card h3 a {

    color: inherit;

    text-decoration: none;

}



.template-card h2 a:hover,

.template-card h3 a:hover {

    color: var(--lavender, #b9a7ff);

}



.template-preview {

    position: relative;

    display: flex;

    min-height: 210px;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    color: inherit;

    text-decoration: none;

}



.template-preview::after {

    position: absolute;

    inset: 0;

    content: "";

    pointer-events: none;

    background:

        radial-gradient(

            circle at 25% 20%,

            rgba(185, 167, 255, .25),

            transparent 38%

        ),

        radial-gradient(

            circle at 75% 75%,

            rgba(232, 201, 143, .18),

            transparent 40%

        );

}



.preview-mode {

    position: absolute;

    z-index: 2;

    right: 14px;

    bottom: 14px;

    padding: 7px 10px;

    border: 1px solid rgba(255, 255, 255, .12);

    border-radius: 999px;

    color: var(--text-muted, #aaa6b3);

    background: rgba(13, 13, 20, .75);

    font-size: .75rem;

    backdrop-filter: blur(10px);

}



.card-actions {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 14px;

    margin-top: auto;

}



.card-actions form {

    margin: 0;

}



.favorite-button {

    display: inline-grid;

    width: 42px;

    height: 42px;

    place-items: center;

    border: 1px solid var(--border, rgba(255, 255, 255, .09));

    border-radius: 50%;

    color: var(--text-muted, #aaa6b3);

    background: rgba(255, 255, 255, .035);

    cursor: pointer;

    font: inherit;

    font-size: 1.1rem;

    transition:

        color .2s ease,

        border-color .2s ease,

        background .2s ease;

}



.favorite-button:hover,

.favorite-button:focus-visible,

.favorite-button.is-active {

    border-color: rgba(242, 168, 160, .55);

    color: var(--coral, #f2a8a0);

    background: rgba(242, 168, 160, .1);

}



.breadcrumbs {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 32px;

    color: var(--text-muted, #aaa6b3);

    font-size: .9rem;

}



.breadcrumbs a {

    color: var(--text-muted, #aaa6b3);

}



.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {

    color: var(--lavender, #b9a7ff);

}



.template-detail-grid {

    display: grid;

    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);

    align-items: center;

    gap: 56px;

}



.template-lead {

    max-width: 720px;

    color: var(--text-muted, #aaa6b3);

    font-size: clamp(1.05rem, 2vw, 1.25rem);

    line-height: 1.7;

}



.template-detail-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin: 28px 0;

}



.template-detail-meta span {

    padding: 10px 13px;

    border: 1px solid var(--border, rgba(255, 255, 255, .09));

    border-radius: 12px;

    color: var(--text-muted, #aaa6b3);

    background: rgba(255, 255, 255, .035);

}



.template-detail-meta strong {

    color: var(--text, #f7f4f1);

}



.template-detail-hero .hero-actions form {

    margin: 0;

}



.template-showcase {

    position: relative;

    display: flex;

    min-height: 430px;

    align-items: flex-end;

    overflow: hidden;

    border: 1px solid var(--border, rgba(255, 255, 255, .09));

    border-radius: 30px;

    background:

        linear-gradient(

            145deg,

            rgba(185, 167, 255, .12),

            rgba(232, 201, 143, .07)

        ),

        var(--surface, #171722);

}



.template-showcase-orb {

    position: absolute;

    top: 12%;

    left: 20%;

    width: 280px;

    height: 280px;

    border-radius: 50%;

    background:

        radial-gradient(

            circle at 35% 30%,

            rgba(255, 255, 255, .68),

            rgba(185, 167, 255, .35) 24%,

            rgba(242, 168, 160, .14) 58%,

            transparent 72%

        );

    filter: blur(4px);

}



.template-showcase-content {

    position: relative;

    z-index: 2;

    width: 100%;

    padding: 28px;

    background:

        linear-gradient(

            to top,

            rgba(13, 13, 20, .94),

            rgba(13, 13, 20, .55),

            transparent

        );

}



.template-showcase-content strong {

    display: block;

    margin: 18px 0 8px;

    font-size: clamp(1.4rem, 3vw, 2.1rem);

}



.template-showcase-content p {

    margin: 0;

    color: var(--text-muted, #aaa6b3);

}



.template-information-grid {

    display: grid;

    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);

    gap: 24px;

}



.content-card {

    padding: clamp(22px, 4vw, 36px);

    border: 1px solid var(--border, rgba(255, 255, 255, .09));

    border-radius: 24px;

    background: var(--surface, #171722);

}



.content-card h2 {

    margin-top: 0;

}



.content-card p {

    color: var(--text-muted, #aaa6b3);

    line-height: 1.75;

}



.template-requirements .feature-list {

    margin-bottom: 0;

}



.template-steps {

    grid-template-columns: repeat(3, minmax(0, 1fr));

}



.template-disclaimer-section {

    padding-top: 0;

}



@media (max-width: 1080px) {

    .catalog-filters {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }



    .catalog-search {

        grid-column: 1 / -1;

    }



    .catalog-filter-button {

        width: 100%;

    }



    .template-detail-grid {

        grid-template-columns: 1fr;

    }



    .template-showcase {

        min-height: 360px;

    }

}



@media (max-width: 760px) {

    .catalog-filters {

        grid-template-columns: 1fr;

        padding: 16px;

    }



    .catalog-search {

        grid-column: auto;

    }



    .catalog-summary {

        align-items: flex-start;

        flex-direction: column;

    }



    .template-detail-meta {

        align-items: stretch;

        flex-direction: column;

    }



    .template-detail-meta span {

        width: 100%;

    }



    .template-detail-hero .hero-actions,

    .template-detail-hero .hero-actions form,

    .template-detail-hero .hero-actions .button {

        width: 100%;

    }



    .template-information-grid {

        grid-template-columns: 1fr;

    }



    .template-steps {

        grid-template-columns: 1fr;

    }



    .template-showcase {

        min-height: 320px;

    }

}



@media (prefers-reduced-motion: reduce) {

    .category-chip,

    .favorite-button {

        transition: none;

    }

}




/* Stage 8A: secure upload and generation queue */



.generator-form input[type="file"] {

    width: 100%;

    padding: 14px;

    border: 1px dashed rgba(185, 167, 255, .4);

    border-radius: 14px;

    color: var(--text-muted, #aaa6b3);

    background: rgba(185, 167, 255, .045);

}



.generator-form input[type="file"]::file-selector-button {

    margin-right: 14px;

    padding: 9px 13px;

    border: 0;

    border-radius: 10px;

    color: #16131f;

    background: var(--lavender, #b9a7ff);

    cursor: pointer;

    font: inherit;

    font-weight: 700;

}



.generation-history {

    margin-top: 42px;

}



.generation-list {

    display: grid;

    gap: 16px;

}



.generation-row {

    display: grid;

    grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);

    gap: 28px;

    padding: 24px;

    border: 1px solid var(--border, rgba(255, 255, 255, .09));

    border-radius: 20px;

    background: var(--surface, #171722);

}



.generation-row-heading {

    display: flex;

    align-items: center;
flex-wrap: wrap;

    gap: 12px;

}



.generation-row-heading strong {

    font-size: 1.08rem;

}



.generation-row-main > p {

    margin: 12px 0;

    color: var(--text-muted, #aaa6b3);

    line-height: 1.6;

}



.generation-status {

    display: inline-flex;

    padding: 6px 9px;

    border: 1px solid var(--border, rgba(255, 255, 255, .09));

    border-radius: 999px;

    color: var(--text-muted, #aaa6b3);

    background: rgba(255, 255, 255, .035);

    font-size: .76rem;

    font-weight: 700;

}



.generation-status-pending {

    border-color: rgba(232, 201, 143, .35);

    color: var(--champagne, #e8c98f);

    background: rgba(232, 201, 143, .08);

}



.generation-status-processing {

    border-color: rgba(185, 167, 255, .4);

    color: var(--lavender, #b9a7ff);

    background: rgba(185, 167, 255, .1);

}



.generation-status-completed {

    border-color: rgba(114, 214, 173, .4);

    color: var(--success, #72d6ad);

    background: rgba(114, 214, 173, .09);

}



.generation-status-failed {

    border-color: rgba(240, 128, 128, .4);

    color: var(--danger, #f08080);

    background: rgba(240, 128, 128, .09);

}



.generation-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

}



.generation-meta span {

    padding: 6px 9px;

    border-radius: 9px;

    color: var(--text-muted, #aaa6b3);

    background: rgba(255, 255, 255, .04);

    font-size: .78rem;

}



.generation-progress {

    align-self: center;

}



.generation-progress-label {

    display: flex;

    justify-content: space-between;

    gap: 12px;

    margin-bottom: 9px;

    color: var(--text-muted, #aaa6b3);

    font-size: .82rem;

}



.generation-progress-track {

    height: 9px;

    overflow: hidden;

    border-radius: 999px;

    background: rgba(255, 255, 255, .07);

}



.generation-progress-track span {

    display: block;

    height: 100%;

    border-radius: inherit;

    background: linear-gradient(

        90deg,

        var(--lavender, #b9a7ff),

        var(--champagne, #e8c98f)

    );

}



.generation-progress code {

    display: block;

    margin-top: 12px;

    overflow: hidden;

    color: var(--text-muted, #aaa6b3);

    font-size: .7rem;

    text-overflow: ellipsis;

    white-space: nowrap;

}



.generation-error {

    color: var(--danger, #f08080) !important;

}



.generation-demo-result {

    color: var(--success, #72d6ad) !important;

}



@media (max-width: 760px) {

    .generation-row {

        grid-template-columns: 1fr;

        gap: 20px;

        padding: 18px;

    }



    .generation-history .section-heading {

        align-items: stretch;

        flex-direction: column;

    }



    .generation-history .section-heading .button {

        width: 100%;

    }

}




/* Stage 8B-1: DeepSeek prompt enhancement */



.prompt-enhancer {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 12px;

}



.prompt-enhancer .button {

    padding: 10px 16px;

    font-size: .88rem;

}



.prompt-enhancer .button[aria-busy="true"] {

    cursor: wait;

    opacity: .65;

}



.prompt-enhancer-status {

    color: var(--text-muted, #aaa6b3);

    font-size: .86rem;

}



.prompt-enhancer-status.is-success {

    color: var(--success, #72d6ad);

}



.prompt-enhancer-status.is-error {

    color: var(--danger, #f08080);

}






/* UI-STAGE-1 */



.ui-controls {

 display: flex;

 align-items: center;

 gap: 8px;

}



.ui-icon-button {

 display: inline-grid;

 width: 42px;

 height: 42px;

 padding: 0;

 place-items: center;

 border: 1px solid var(--border, rgba(255,255,255,.1));

 border-radius: 50%;

 color: var(--text, #f7f4f1);

 background: var(--surface, #171722);

 cursor: pointer;

 font: inherit;

 font-size: 18px;

}



.ui-icon-button:hover,

.ui-icon-button:focus-visible {

 border-color: var(--lavender, #b9a7ff);

 color: var(--lavender, #b9a7ff);

}



html[data-theme="light"] {

 color-scheme: light;

 --bg: #f5f3f0;

 --background: #f5f3f0;

 --surface: #ffffff;

 --surface-soft: #eeeae5;

 --text: #201e25;

 --muted: #68636f;

 --text-muted: #68636f;

 --border: rgba(31, 28, 38, .13);

 --lavender: #6651c8;

 --champagne: #8b641f;

 --coral: #b54d4a;

 --success: #257658;

 --danger: #b83f45;
}



html[data-theme="light"] body {

 color: var(--text);

 background: var(--bg);

}



html[data-theme="light"] .site-header {

 background: rgba(245, 243, 240, .88);

}



html[data-theme="light"] input,

html[data-theme="light"] textarea,

html[data-theme="light"] select,

html[data-theme="light"] .auth-form input[type="email"],

html[data-theme="light"] .auth-form input[type="password"],

html[data-theme="light"] .auth-form input[type="text"] {

 color: var(--text);

 border-color: var(--border);

 background: #fff;

}



html[data-theme="light"] .preview-mode,

html[data-theme="light"] .template-showcase-content {

 color: #f7f4f1;

}



.card-grid {

 grid-template-columns:

  repeat(auto-fit, minmax(min(100%, 240px), 1fr));

 align-items: stretch;

}



.template-card {

 min-width: 0;

 overflow: hidden;

}



.template-preview {

 min-height: 0;

 aspect-ratio: 9 / 16;

 background:

  linear-gradient(145deg, rgba(185,167,255,.16), rgba(232,201,143,.08)),

  var(--surface, #171722);

}



.template-symbol {

 font-size: clamp(42px, 7vw, 78px);

}



.quick-preview-button {

 width: 100%;

 margin-top: 16px;

}



.card-actions .quick-preview-button {

 width: auto;

 margin-top: 0;

 padding: 10px 14px;

 font-size: .84rem;

}



.quick-preview-dialog {

 width: min(920px, calc(100% - 30px));

 max-height: calc(100dvh - 30px);

 padding: 0;

 overflow: auto;

 border: 1px solid var(--border, rgba(255,255,255,.1));

 border-radius: 28px;

 color: var(--text, #f7f4f1);

 background: var(--surface, #171722);

 box-shadow: 0 30px 100px rgba(0,0,0,.55);

}



.quick-preview-dialog::backdrop {

 background: rgba(5, 5, 10, .78);

 backdrop-filter: blur(8px);

}



.quick-preview-shell {

 position: relative;

 display: grid;

 grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr);

}



.quick-preview-close {

 position: absolute;

 z-index: 3;

 top: 14px;

 right: 14px;

 display: grid;

 width: 42px;

 height: 42px;

 padding: 0;

 place-items: center;

 border: 1px solid rgba(255,255,255,.16);

 border-radius: 50%;

 color: #fff;

 background: rgba(13,13,20,.72);

 cursor: pointer;

 font-size: 26px;

}



.quick-preview-visual {

 display: grid;

 min-height: 520px;

 place-items: center;

 background:

  radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), transparent 18%),

  radial-gradient(circle at 50% 45%, rgba(185,167,255,.45), transparent 42%),

  radial-gradient(circle at 70% 75%, rgba(232,201,143,.24), transparent 36%),

  #101019;

}



.quick-preview-visual span {

 font-size: 82px;

}



.quick-preview-content {

 align-self: center;

 padding: clamp(28px, 6vw, 64px);

}



.quick-preview-content h2 {

 margin-top: 8px;

 font-size: clamp(28px, 5vw, 48px);

}



.quick-preview-content > p:not(.eyebrow) {

 color: var(--text-muted, #aaa6b3);

 line-height: 1.7;

}



.quick-preview-meta {

 margin: 22px 0;

 color: var(--champagne, #e8c98f);

 font-weight: 750;

}



.mobile-navigation {

 display: none;

}



.generator-estimate {

 display: flex;

 justify-content: space-between;

 gap: 16px;

 margin: 18px 0;

 padding: 16px 18px;

 border: 1px solid var(--border, rgba(255,255,255,.1));

 border-radius: 16px;

 color: var(--text-muted, #aaa6b3);

 background: var(--surface, #171722);

}



.generator-estimate strong {

 color: var(--text, #f7f4f1);

}



.generator-draft-status {

 display: block;

 min-height: 20px;

 margin-top: 8px;

 color: var(--success, #72d6ad);

}



.skeleton {

 position: relative;

 overflow: hidden;

 color: transparent !important;

 border-radius: 10px;

 background: rgba(255,255,255,.07);

}



.skeleton::after {

 position: absolute;

 inset: 0;

 content: "";

 transform: translateX(-100%);

 background: linear-gradient(

  90deg,

  transparent,

  rgba(255,255,255,.12),

  transparent

 );

 animation: ui-skeleton 1.35s infinite;

}



@keyframes ui-skeleton {

 to {

  transform: translateX(100%);

 }

}



:focus-visible {

 outline: 3px solid var(--lavender, #b9a7ff);

 outline-offset: 3px;

}



@media (max-width: 760px) {

 body {

  padding-bottom: calc(82px + env(safe-area-inset-bottom));

 }



 .site-footer {

  margin-bottom: 0;

 }



 .navigation {

  display: none;

 }



 .header-logout {

  display: none;

 }



 .ui-controls {

  margin-left: auto;

 }



 .ui-icon-button {

  width: 39px;

  height: 39px;

 }



 .mobile-navigation {

  position: fixed;

  z-index: 1000;

  right: 10px;

  bottom: max(10px, env(safe-area-inset-bottom));

  left: 10px;

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  min-height: 66px;

  padding: 7px;

  border: 1px solid var(--border, rgba(255,255,255,.1));

  border-radius: 22px;

  background: rgba(18, 18, 28, .92);

  box-shadow: 0 18px 60px rgba(0,0,0,.4);

  backdrop-filter: blur(18px);

 }



 html[data-theme="light"] .mobile-navigation {

  background: rgba(255,255,255,.92);

 }



 .mobile-navigation a {

  display: flex;

  min-width: 0;

  align-items: center;

  justify-content: center;

  flex-direction: column;

  gap: 3px;

  border-radius: 15px;

  color: var(--text-muted, #aaa6b3);

  text-decoration: none;

 }



 .mobile-navigation a[aria-current="page"] {

  color: var(--text, #f7f4f1);

  background: rgba(185,167,255,.13);

 }



 .mobile-navigation span {

  font-size: 20px;

  line-height: 1;

 }



 .mobile-navigation small {

  font-size: 10px;

 }



 .mobile-navigation .mobile-create {

  color: #17131f;

  background: linear-gradient(

   135deg,

   var(--lavender, #b9a7ff),

   var(--champagne, #e8c98f)

  );

 }



 .card-grid {

  grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;

 }



 .template-content {

  padding: 15px;

 }



 .template-content h2,

 .template-content h3 {

  font-size: 17px;

 }



 .template-content > p:not(.category-label) {

  display: -webkit-box;

  overflow: hidden;

  -webkit-box-orient: vertical;

  -webkit-line-clamp: 3;

  font-size: 13px;

 }



 .template-meta {

  align-items: flex-start;

  flex-direction: column;

  gap: 5px;

  font-size: 12px;

 }



 .card-actions {

  align-items: stretch;

  flex-direction: column;

 }



 .card-actions .quick-preview-button {

  width: 100%;

 }



 .quick-preview-shell {

  grid-template-columns: 1fr;

 }



 .quick-preview-visual {

  min-height: min(52dvh, 430px);

  aspect-ratio: 9 / 12;

 }



 .quick-preview-content {

  padding: 24px;

 }



 .generator-estimate {

  align-items: flex-start;

  flex-direction: column;

 }

}



@media (max-width: 390px) {

 .card-grid {

  grid-template-columns: 1fr;

 }



 .template-preview {

  max-height: 540px;

 }

}



@media (prefers-reduced-motion: reduce) {

 *,

 *::before,

 *::after {

  scroll-behavior: auto !important;

  animation-duration: .01ms !important;

  animation-iteration-count: 1 !important;

  transition-duration: .01ms !important;

 }

}






/* PREMIUM-UI-2026 */



:root {

 --premium-bg: #09090f;

 --premium-surface: rgba(24, 24, 36, .74);

 --premium-surface-strong: rgba(30, 29, 44, .92);

 --premium-line: rgba(255, 255, 255, .095);

 --premium-glow: rgba(169, 145, 255, .22);

 --premium-gold: #f0d39b;

 --premium-purple: #b9a7ff;

 --premium-coral: #f1a9a4;

 --pointer-x: 50vw;

 --pointer-y: 25vh;

}



html {

 scroll-behavior: smooth;

}



body {

 position: relative;

 min-height: 100vh;

 background:

  radial-gradient(

   850px circle at 10% -5%,

   rgba(137, 105, 255, .17),

   transparent 62%

  ),

  radial-gradient(

   720px circle at 92% 8%,

   rgba(232, 201, 143, .11),

   transparent 58%

  ),

  linear-gradient(180deg, #0a0a11 0%, #0d0d14 50%, #09090f 100%);

 background-attachment: fixed;

}



body::before {

 position: fixed;

 z-index: -1;

 inset: 0;

 content: "";

 pointer-events: none;

 background:

  radial-gradient(

   520px circle at var(--pointer-x) var(--pointer-y),

   rgba(185, 167, 255, .075),

   transparent 66%

  );

}



body::after {

 position: fixed;

 z-index: -1;

 inset: 0;

 content: "";

 pointer-events: none;

 opacity: .18;

 background-image:

  linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),

  linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);

 background-size: 64px 64px;

 mask-image: linear-gradient(to bottom, black, transparent 72%);

}



html[data-theme="light"] body {

 background:

  radial-gradient(

   900px circle at 5% -5%,

   rgba(116, 85, 220, .12),

   transparent 60%

  ),

  radial-gradient(

   700px circle at 95% 5%,

   rgba(180, 128, 41, .09),

   transparent 58%

  ),

  linear-gradient(180deg, #faf9f7, #f2efeb);

}



html[data-theme="light"] body::after {

 opacity: .32;

 background-image:

  linear-gradient(rgba(20,18,28,.035) 1px, transparent 1px),

  linear-gradient(90deg, rgba(20,18,28,.035) 1px, transparent 1px);

}



::selection {

 color: #17131f;

 background: var(--premium-gold);

}



.container {

 width: min(100% - 36px, 1240px);

}



.site-header {

 border-bottom: 1px solid rgba(255, 255, 255, .07);

 background: rgba(9, 9, 15, .72);

 box-shadow: 0 8px 40px rgba(0, 0, 0, .16);

 backdrop-filter: blur(24px) saturate(145%);

 -webkit-backdrop-filter: blur(24px) saturate(145%);

}



.header-row {

 min-height: 76px;

}



.brand {

 gap: 11px;

 font-weight: 850;

 letter-spacing: -.025em;

}



.brand-mark {

 position: relative;

 box-shadow:

  inset 0 1px 1px rgba(255,255,255,.32),

  0 10px 30px rgba(185,167,255,.22);

}



.navigation {

 padding: 5px;

 border: 1px solid rgba(255,255,255,.065);

 border-radius: 16px;

 background: rgba(255,255,255,.025);

}



.navigation a {

 position: relative;

 padding: 9px 14px;

 border-radius: 11px;

 transition:

  color .2s ease,

  background .2s ease,

  transform .2s ease;

}



.navigation a:hover,

.navigation a[aria-current="page"] {

 color: var(--text);

 background: rgba(255,255,255,.065);

 transform: translateY(-1px);

}



.hero {

 position: relative;

 overflow: hidden;

 padding-top: clamp(76px, 10vw, 138px);

 padding-bottom: clamp(72px, 10vw, 128px);

}



.hero::before {

 position: absolute;

 top: 5%;

 left: 50%;

 width: min(80vw, 900px);

 height: min(80vw, 900px);

 border: 1px solid rgba(185,167,255,.08);

 border-radius: 50%;

 content: "";

 transform: translateX(-50%);

 pointer-events: none;

 box-shadow:

  0 0 0 70px rgba(185,167,255,.018),

  0 0 0 145px rgba(185,167,255,.012);

}



.hero-grid {

 position: relative;

 z-index: 1;

 align-items: center;

 gap: clamp(46px, 7vw, 94px);

}



.hero h1 {

 max-width: 820px;

 font-size: clamp(48px, 7.4vw, 104px);

 line-height: .94;

 letter-spacing: -.065em;

 text-wrap: balance;

}



.gradient-text {

 display: inline-block;

 color: transparent;

 background:

  linear-gradient(
105deg,

   #fff 0%,

   #cabdff 28%,

   #f0d39b 64%,

   #f3aaa4 100%

  );

 background-clip: text;

 -webkit-background-clip: text;

 filter: drop-shadow(0 12px 34px rgba(185,167,255,.16));

}



.hero-text {

 max-width: 680px;

 font-size: clamp(18px, 2vw, 22px);

 line-height: 1.7;

}



.eyebrow {

 display: inline-flex;

 align-items: center;

 gap: 9px;

 letter-spacing: .13em;

}



.eyebrow::before {

 width: 20px;

 height: 1px;

 content: "";

 background: currentColor;

 box-shadow: 0 0 12px currentColor;

}



.hero-card,

.dashboard-card,

.content-card,

.generator-form,

.transaction-list,

.generation-row {

 border: 1px solid var(--premium-line);

 background:

  linear-gradient(

   145deg,

   rgba(255,255,255,.055),

   rgba(255,255,255,.012)

  ),

  var(--premium-surface);

 box-shadow:

  inset 0 1px 0 rgba(255,255,255,.055),

  0 28px 90px rgba(0,0,0,.26);

 backdrop-filter: blur(18px);

 -webkit-backdrop-filter: blur(18px);

}



.hero-card {

 min-height: 510px;

 border-radius: 36px;

 transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);

 box-shadow:

  inset 0 1px 0 rgba(255,255,255,.08),

  0 45px 120px rgba(0,0,0,.38),

  0 0 80px rgba(185,167,255,.09);

}



.visual-orb {

 animation: premium-float 7s ease-in-out infinite;

 filter:

  blur(2px)

  drop-shadow(0 30px 50px rgba(185,167,255,.24));

}



.status {

 padding: 9px 13px;

 border: 1px solid rgba(114,214,173,.22);

 border-radius: 999px;

 background: rgba(114,214,173,.065);

}



.status-dot {

 box-shadow: 0 0 0 5px rgba(114,214,173,.09);

}



.button {

 position: relative;

 isolation: isolate;

 overflow: hidden;

 min-height: 50px;

 border: 1px solid rgba(255,255,255,.12);

 border-radius: 15px;

 background:

  linear-gradient(

   135deg,

   var(--premium-purple),

   #d3c2ff 48%,

   var(--premium-gold)

  );

 box-shadow:

  inset 0 1px 1px rgba(255,255,255,.42),

  0 12px 32px rgba(139,110,230,.2);

 transition:

  transform .22s ease,

  box-shadow .22s ease,

  filter .22s ease;

}



.button:hover {

 transform: translateY(-2px);

 filter: saturate(1.08);

 box-shadow:

  inset 0 1px 1px rgba(255,255,255,.5),

  0 18px 42px rgba(139,110,230,.28);

}



.button:active {

 transform: translateY(0) scale(.985);

}



.button-secondary {

 color: var(--text);

 border-color: rgba(255,255,255,.11);

 background: rgba(255,255,255,.045);

 box-shadow: inset 0 1px 0 rgba(255,255,255,.05);

 backdrop-filter: blur(14px);

}



.premium-ripple {

 position: absolute;

 z-index: -1;

 width: 12px;

 height: 12px;

 border-radius: 50%;

 pointer-events: none;

 transform: translate(-50%, -50%) scale(0);

 background: rgba(255,255,255,.65);

 animation: premium-ripple .62s ease-out forwards;

}



.section {

 position: relative;

 padding-top: clamp(76px, 9vw, 124px);

 padding-bottom: clamp(76px, 9vw, 124px);

}



.section-heading h2 {

 max-width: 780px;

 font-size: clamp(35px, 5vw, 62px);

 line-height: 1.04;

 letter-spacing: -.048em;

 text-wrap: balance;

}



.card-grid {

 gap: clamp(16px, 2.2vw, 28px);

}



.template-card {

 position: relative;

 isolation: isolate;

 border: 1px solid var(--premium-line);

 border-radius: 26px;

 background:

  radial-gradient(

   400px circle at var(--card-x, 50%) var(--card-y, 20%),

   rgba(185,167,255,.13),

   transparent 48%

  ),

  linear-gradient(

   160deg,

   rgba(255,255,255,.055),

   rgba(255,255,255,.012)

  ),

  rgba(17,17,26,.82);

 box-shadow:

  inset 0 1px 0 rgba(255,255,255,.055),

  0 24px 70px rgba(0,0,0,.2);

 transition:

  transform .32s cubic-bezier(.2,.8,.2,1),

  border-color .32s ease,

  box-shadow .32s ease;

}



.template-card:hover {

 z-index: 2;

 border-color: rgba(185,167,255,.32);

 transform: translateY(-9px);

 box-shadow:

  inset 0 1px 0 rgba(255,255,255,.08),

  0 36px 90px rgba(0,0,0,.34),

  0 0 60px rgba(185,167,255,.07);

}



.template-preview {

 position: relative;

 border-bottom: 1px solid rgba(255,255,255,.07);

 background:

  radial-gradient(

   circle at 30% 20%,

   rgba(255,255,255,.18),

   transparent 19%

  ),

  radial-gradient(

   circle at 50% 45%,

   rgba(185,167,255,.32),

   transparent 42%

  ),

  radial-gradient(

   circle at 78% 82%,

   rgba(232,201,143,.2),

   transparent 37%

  ),

  linear-gradient(155deg, #161322, #0c0c13);

}



.template-preview::before {

 position: absolute;

 inset: 0;

 content: "";

 opacity: .32;

 background-image:

  linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),

  linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);

 background-size: 30px 30px;

 mask-image: linear-gradient(to bottom, black, transparent);

}



.template-symbol {

 position: relative;

 z-index: 1;

 text-shadow:

  0 0 28px rgba(255,255,255,.34),

  0 18px 50px rgba(185,167,255,.36);

 transition: transform .45s cubic-bezier(.2,.8,.2,1);

}



.template-card:hover .template-symbol {

 transform: scale(1.12) rotate(6deg);

}



.template-content {

 display: flex;

 flex: 1;

 flex-direction: column;

 padding: clamp(19px, 2.5vw, 27px);

}



.template-content h2,

.template-content h3 {

 letter-spacing: -.026em;

}



.badge,

.preview-mode,

.generation-status {

 box-shadow: inset 0 1px 0 rgba(255,255,255,.08);

 backdrop-filter: blur(14px);

}



.catalog-filters {

 border-color: var(--premium-line);

 background:

  linear-gradient(

   145deg,

   rgba(255,255,255,.045),

   rgba(255,255,255,.015)

  ),

  rgba(16,16,24,.7);

 box-shadow:

  inset 0 1px 0 rgba(255,255,255,.05),

  0 22px 65px rgba(0,0,0,.18);

 backdrop-filter: blur(20px);

}



.category-chip {

 box-shadow: inset 0 1px 0 rgba(255,255,255,.035);

}



.category-chip:hover,

.category-chip.is-active {

 transform: translateY(-2px);

 box-shadow: 0 12px 28px rgba(0,0,0,.16);

}



input,

textarea,

select,

.generator-form input[type="file"] {

 transition:

  border-color .2s ease,

  box-shadow .2s ease,

  background .2s ease;

}



input:focus,

textarea:focus,

select:focus,

.generator-form input[type="file"]:focus {

 border-color: rgba(185,167,255,.65);

 box-shadow:

  0 0 0 4px rgba(185,167,255,.11),

  0 10px 30px rgba(0,0,0,.12);

}



.dashboard-card,

.content-card {

 position: relative;

 overflow: hidden;

 border-radius: 28px;
}



.dashboard-card::before,

.content-card::before {

 position: absolute;

 inset: 0;

 content: "";

 pointer-events: none;

 background:

  radial-gradient(

   430px circle at var(--card-x, 30%) var(--card-y, 10%),

   rgba(185,167,255,.11),

   transparent 48%

  );

}



.balance-value {

 color: transparent;

 background:

  linear-gradient(

   100deg,

   var(--premium-purple),

   var(--premium-gold)

  );

 background-clip: text;

 -webkit-background-clip: text;

 filter: drop-shadow(0 12px 28px rgba(185,167,255,.15));

}



.generation-progress-track {

 height: 11px;

 border: 1px solid rgba(255,255,255,.045);

 box-shadow: inset 0 2px 6px rgba(0,0,0,.28);

}



.generation-progress-track span {

 position: relative;

 overflow: hidden;

 box-shadow: 0 0 20px rgba(185,167,255,.24);

}



.generation-progress-track span::after {

 position: absolute;

 inset: 0;

 content: "";

 background:

  linear-gradient(

   90deg,

   transparent,

   rgba(255,255,255,.5),

   transparent

  );

 animation: premium-progress 2.1s linear infinite;

}



.quick-preview-dialog {

 border-color: rgba(185,167,255,.22);

 background:

  linear-gradient(

   145deg,

   rgba(255,255,255,.055),

   rgba(255,255,255,.012)

  ),

  rgba(15,15,23,.96);

 box-shadow:

  inset 0 1px 0 rgba(255,255,255,.07),

  0 50px 160px rgba(0,0,0,.7),

  0 0 100px rgba(185,167,255,.1);

}



.quick-preview-visual {

 background:

  radial-gradient(

   circle at 28% 20%,

   rgba(255,255,255,.28),

   transparent 17%

  ),

  radial-gradient(

   circle at 50% 42%,

   rgba(185,167,255,.43),

   transparent 42%

  ),

  radial-gradient(

   circle at 76% 79%,

   rgba(232,201,143,.24),

   transparent 36%

  ),

  linear-gradient(145deg, #171421, #09090f);

}



.mobile-navigation {

 border-color: rgba(255,255,255,.1);

 box-shadow:

  inset 0 1px 0 rgba(255,255,255,.06),

  0 22px 70px rgba(0,0,0,.46);

}



.site-footer {

 border-top: 1px solid rgba(255,255,255,.07);

 background: rgba(8,8,13,.54);

 backdrop-filter: blur(20px);

}



.premium-reveal {

 opacity: 0;

 transform: translateY(24px);

 transition:

  opacity .65s ease var(--reveal-delay, 0ms),

  transform .65s cubic-bezier(.2,.8,.2,1)

  var(--reveal-delay, 0ms);

}



.premium-reveal.is-visible {

 opacity: 1;

 transform: translateY(0);

}



@keyframes premium-float {

 0%,

 100% {

  transform: translate3d(0, 0, 0) scale(1);

 }



 50% {

  transform: translate3d(0, -13px, 0) scale(1.025);

 }

}



@keyframes premium-ripple {

 to {

  opacity: 0;

  transform: translate(-50%, -50%) scale(28);

 }

}



@keyframes premium-progress {

 from {

  transform: translateX(-100%);

 }



 to {

  transform: translateX(100%);

 }

}



html[data-theme="light"] .template-card,

html[data-theme="light"] .dashboard-card,

html[data-theme="light"] .content-card,

html[data-theme="light"] .generator-form,

html[data-theme="light"] .generation-row,

html[data-theme="light"] .transaction-list,

html[data-theme="light"] .catalog-filters {

 border-color: rgba(30,26,40,.11);

 background:

  linear-gradient(

   145deg,

   rgba(255,255,255,.9),

   rgba(255,255,255,.58)

  ),

  rgba(255,255,255,.76);

 box-shadow:

  inset 0 1px 0 #fff,

  0 24px 70px rgba(46,37,68,.09);

}



html[data-theme="light"] .site-header {

 border-bottom-color: rgba(30,26,40,.08);

 box-shadow: 0 8px 32px rgba(46,37,68,.06);

}



html[data-theme="light"] .navigation {

 border-color: rgba(30,26,40,.08);

 background: rgba(255,255,255,.52);

}



html[data-theme="light"] .button-secondary {

 color: var(--text);

 border-color: rgba(30,26,40,.11);

 background: rgba(255,255,255,.72);

}



@media (max-width: 900px) {

 .hero-card {

  min-height: 430px;

  transform: none;

 }



 .hero h1 {

  font-size: clamp(46px, 12vw, 78px);

 }

}



@media (max-width: 760px) {

 .container {

  width: min(100% - 24px, 1240px);

 }



 .header-row {

  min-height: 66px;

 }



 .hero {

  padding-top: 64px;

 }



 .hero h1 {

  font-size: clamp(43px, 13.5vw, 68px);

  line-height: .97;

 }



 .hero-text {

  font-size: 17px;

 }



 .hero-card {

  min-height: 390px;

  border-radius: 28px;

 }



 .section {

  padding-top: 76px;

  padding-bottom: 76px;
}



 .section-heading h2 {

  font-size: clamp(34px, 10vw, 50px);

 }



 .template-card {

  border-radius: 20px;

 }



 .template-card:hover {

  transform: translateY(-4px);

 }



 .quick-preview-dialog {

  width: calc(100% - 18px);

  max-height: calc(100dvh - 18px);

  border-radius: 24px;

 }



 .mobile-navigation {

  background:

   linear-gradient(

    145deg,

    rgba(29,28,42,.94),

    rgba(14,14,22,.94)

   );

 }

}



@media (prefers-reduced-motion: reduce) {

 html {

  scroll-behavior: auto;

 }



 .visual-orb,

 .generation-progress-track span::after {

  animation: none;

 }



 .premium-reveal {

  opacity: 1;

  transform: none;

  transition: none;

 }



 .template-card:hover,

 .button:hover,

 .category-chip:hover {

  transform: none;

 }

}






/* TYPOGRAPHY-CONTRAST-FIX-2026 */



:root {

 --premium-font:

  "Manrope",

  "Inter",

  "SF Pro Display",

  "SF Pro Text",

  -apple-system,

  BlinkMacSystemFont,

  "Segoe UI",

  sans-serif;

}



html,

body,

button,

input,

textarea,

select {

 font-family: var(--premium-font);

}



body {

 font-size: 16px;

 font-weight: 500;

 letter-spacing: -.008em;

}



h1,

h2,

h3,

h4,

h5,

h6 {

 color: var(--text, #f7f4f1);

 font-family: var(--premium-font);

 font-weight: 750;

 line-height: 1.08;

 letter-spacing: -.038em;

 text-wrap: balance;

}



/*

 * Убираем прозрачное заполнение букв.

 * Оно делало части текста невидимыми на светлых участках фона.

 */

.gradient-text,

.hero .gradient-text,

.section-heading .gradient-text {

 color: #f7f4f1 !important;

 background: none !important;

 background-clip: initial !important;

 -webkit-background-clip: initial !important;

 -webkit-text-fill-color: #f7f4f1 !important;

 filter: none !important;

 text-shadow:

  0 2px 2px rgba(0, 0, 0, .25),

  0 14px 42px rgba(185, 167, 255, .15);

}



/* Аккуратный премиальный акцент вместо малоконтрастного градиента. */

.gradient-text::after {

 display: block;

 width: min(180px, 32%);

 height: 3px;

 margin-top: 18px;

 border-radius: 999px;

 content: "";

 background:

  linear-gradient(

   90deg,

   #b9a7ff,

   #e8c98f,

   rgba(232, 201, 143, 0)

  );

 box-shadow: 0 5px 24px rgba(185, 167, 255, .22);

}



/* Более сдержанный размер главного заголовка. */

.hero h1 {

 max-width: 760px;

 margin-bottom: 24px;

 color: #f7f4f1;

 font-size: clamp(40px, 5.2vw, 72px);

 font-weight: 760;

 line-height: 1.02;

 letter-spacing: -.052em;

}



/* Заголовки секций больше не занимают половину экрана. */

.section-heading h2 {

 max-width: 760px;

 color: var(--text, #f7f4f1);

 font-size: clamp(31px, 4vw, 48px);

 font-weight: 740;

 line-height: 1.08;

 letter-spacing: -.043em;

}



.template-detail-hero h1,

.auth-hero h1,

.dashboard-hero h1,

.catalog-hero h1 {

 color: var(--text, #f7f4f1);

 font-size: clamp(36px, 4.8vw, 62px);

 font-weight: 750;

 line-height: 1.04;

 letter-spacing: -.048em;

}



.template-content h2,

.template-content h3 {

 color: var(--text, #f7f4f1);

 font-size: clamp(18px, 2vw, 23px);

 font-weight: 720;

 line-height: 1.18;

 letter-spacing: -.027em;

}



.dashboard-card h2,

.content-card h2 {

 color: var(--text, #f7f4f1);

 font-size: clamp(24px, 3vw, 34px);

 font-weight: 730;

 letter-spacing: -.035em;

}



/* Баланс также получает гарантированно читаемое заполнение. */
.balance-value {

 color: var(--champagne, #e8c98f) !important;

 background: none !important;

 background-clip: initial !important;

 -webkit-background-clip: initial !important;

 -webkit-text-fill-color:

  var(--champagne, #e8c98f) !important;

 filter: none !important;

}



/* Светлая тема: тёмные буквы с гарантированным контрастом. */

html[data-theme="light"] h1,

html[data-theme="light"] h2,

html[data-theme="light"] h3,

html[data-theme="light"] h4,

html[data-theme="light"] h5,

html[data-theme="light"] h6,

html[data-theme="light"] .gradient-text,

html[data-theme="light"] .hero .gradient-text,

html[data-theme="light"] .section-heading .gradient-text {

 color: #211e29 !important;

 -webkit-text-fill-color: #211e29 !important;

 text-shadow:

  0 1px 0 rgba(255, 255, 255, .8),

  0 12px 35px rgba(64, 48, 95, .08);

}



html[data-theme="light"] .hero-text,

html[data-theme="light"] .section-heading p,

html[data-theme="light"] .template-content p {

 color: #5f5968;

}



html[data-theme="light"] .balance-value {

 color: #79591f !important;

 -webkit-text-fill-color: #79591f !important;

}



/* Защита от исчезновения текста при неподдерживаемом background-clip. */

@supports not (-webkit-background-clip: text) {

 .gradient-text,

 .balance-value {

  color: var(--text, #f7f4f1) !important;

  background: none !important;

 }

}



@media (max-width: 760px) {

 .hero h1 {

  font-size: clamp(36px, 10.8vw, 53px);

  line-height: 1.04;

  letter-spacing: -.047em;

 }



 .section-heading h2 {

  font-size: clamp(29px, 8.4vw, 40px);

 }



 .template-detail-hero h1,

 .auth-hero h1,

 .dashboard-hero h1,

 .catalog-hero h1 {

  font-size: clamp(33px, 9.5vw, 48px);

 }



 .gradient-text::after {

  width: 110px;

  margin-top: 14px;

 }

}






/* FINAL-GENERATED-PREVIEWS-2026 */



.template-preview {

 position: relative;

 isolation: isolate;

 overflow: hidden;

}



.generated-template-video {

 position: absolute;

 z-index: 0;

 inset: 0;

 width: 100%;

 height: 100%;

 opacity: 0;

 background: #090910;

 object-fit: cover;

 transform: scale(1.015);

 transition:

  opacity .45s ease,

  transform .8s ease;

}



.template-card.has-generated-preview

.generated-template-video {

 opacity: 1;

}



.template-card.has-generated-preview:hover

.generated-template-video {

 transform: scale(1.05);

}



.template-card.has-generated-preview

.template-symbol {

 opacity: 0;

}



.template-card.has-generated-preview

.template-preview::before {

 z-index: 1;

 opacity: .12;

}



.template-card.has-generated-preview

.preview-mode,

.template-card.has-generated-preview

.badge {

 z-index: 3;

}



.dialog-template-video {

 position: absolute;

 z-index: 2;

 inset: 0;

 width: 100%;

 height: 100%;

 background: #090910;

 object-fit: cover;

}



@media (prefers-reduced-motion: reduce) {

 .generated-template-video {

  transform: none;

  transition: none;

 }



 .template-card.has-generated-preview:hover

 .generated-template-video {

  transform: none;

 }

}

/* REAL-FAL-TEMPLATE-PREVIEWS-START */



.template-preview {

    position: relative;

    overflow: hidden;

    isolation: isolate;

    background: #17151d;

}



.generated-template-video {

    position: absolute;

    inset: 0;

    z-index: 0;

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    pointer-events: none;

    background: #17151d;

    opacity: 0;

    transform: scale(1.01);

    transition:

        opacity 280ms ease,

        transform 650ms ease;

}



.generated-template-video.is-ready {

    opacity: 1;

}



.template-card:hover .generated-template-video.is-ready {

    transform: scale(1.045);

}



.template-preview > :not(.generated-template-video) {

    position: relative;

    z-index: 2;

}



.template-preview::after {

    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:

        linear-gradient(

            to bottom,

            rgba(8, 7, 12, 0.02) 35%,

            rgba(8, 7, 12, 0.62) 100%

        );

}



.template-card.has-real-preview

.template-preview

.template-symbol {

    opacity: 0;

}



.template-showcase.has-real-video {

    position: relative;

    min-height: 520px;

    padding: 0;

    overflow: hidden;

    border-radius: 28px;

    background: #111017;

}



.template-detail-video {

    position: absolute;

    inset: 0;

    display: block;

    width: 100%;

    height: 100%;

    object-fit: contain;

    background: #111017;

}



.real-preview-label {

    position: absolute;

    top: 18px;

    left: 18px;

    z-index: 2;

    padding: 8px 12px;

    border: 1px solid rgba(255, 255, 255, 0.24);

    border-radius: 999px;

    color: #fff;

    background: rgba(15, 13, 20, 0.66);

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);

    backdrop-filter: blur(12px);

    font-size: 13px;

    font-weight: 700;

    line-height: 1.2;

}



.quick-preview-visual {

    position: relative;

    min-height: 420px;

    padding: 0;

    overflow: hidden;

    background: #111017;

}



.quick-preview-video {

    position: absolute;

    inset: 0;

    display: block;

    width: 100%;

    height: 100%;

    object-fit: contain;

    background: #111017;

}



@media (max-width: 760px) {

    .template-showcase.has-real-video {
min-height: 390px;

        border-radius: 22px;

    }



    .quick-preview-visual {

        min-height: 320px;

    }



    .real-preview-label {

        top: 12px;

        left: 12px;

    }

}



@media (prefers-reduced-motion: reduce) {

    .generated-template-video {

        transition: opacity 150ms ease;

        transform: none;

    }



    .template-card:hover .generated-template-video.is-ready {

        transform: none;

    }

}



/* REAL-FAL-TEMPLATE-PREVIEWS-END */

/* HOME-PREMIUM-CAROUSEL-START */



.hero-card.has-preview-carousel {

    position: relative;

    min-height: 560px;

    padding: 0;

    overflow: hidden;

    isolation: isolate;

    border: 1px solid rgba(255, 255, 255, 0.18);

    border-radius: 34px;

    background: #111017;

    box-shadow:

        0 34px 90px rgba(20, 14, 31, 0.25),

        0 10px 35px rgba(20, 14, 31, 0.15);

}



.hero-preview-carousel {

    position: absolute;

    inset: 0;

    overflow: hidden;

    color: #fff;

    background: #111017;

}



.hero-preview-media,

.hero-preview-video,

.hero-preview-shade,

.hero-preview-grain,

.hero-preview-flash {

    position: absolute;

    inset: 0;

}



.hero-preview-media {

    z-index: 0;

    overflow: hidden;

    background:

        radial-gradient(

            circle at 50% 30%,

            #453958,

            #111017 70%

        );

}



.hero-preview-video {

    width: 100%;

    height: 100%;

    object-fit: cover;

    opacity: 0;

    transform: scale(1.035);

    filter: saturate(1.04) contrast(1.03);

    transition:

        opacity 700ms cubic-bezier(.22, .8, .24, 1),

        transform 1400ms cubic-bezier(.18, .8, .22, 1),

        filter 700ms ease;

}



.hero-preview-video.is-active {

    opacity: 1;

    transform: scale(1);

}



.hero-preview-shade {

    z-index: 2;

    pointer-events: none;

    background:

        linear-gradient(

            180deg,

            rgba(8, 7, 13, 0.2) 0%,

            rgba(8, 7, 13, 0.04) 30%,

            rgba(8, 7, 13, 0.38) 58%,

            rgba(8, 7, 13, 0.94) 100%

        ),

        linear-gradient(

            90deg,

            rgba(8, 7, 13, 0.2),

            transparent 60%

        );

}



.hero-preview-grain {

    z-index: 3;

    pointer-events: none;

    opacity: 0.12;

    mix-blend-mode: soft-light;

    background-image:

        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");

}



.hero-preview-flash {

    z-index: 8;

    pointer-events: none;

    opacity: 0;

    transform: translateX(-110%) skewX(-16deg);

    background:

        linear-gradient(

            105deg,

            transparent 24%,

            rgba(255, 255, 255, 0.12) 42%,

            rgba(255, 255, 255, 0.92) 50%,

            rgba(190, 164, 255, 0.3) 58%,

            transparent 76%

        );

}



.hero-preview-top {

    position: absolute;

    top: 22px;

    right: 22px;

    left: 22px;

    z-index: 10;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

}



.hero-preview-status {

    color: #fff;

    border-color: rgba(255, 255, 255, 0.21);

    background: rgba(10, 9, 15, 0.54);

    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);

    backdrop-filter: blur(14px);

}



.hero-preview-counter {

    padding: 8px 11px;

    border: 1px solid rgba(255, 255, 255, 0.2);

    border-radius: 999px;

    color: rgba(255, 255, 255, 0.9);

    background: rgba(10, 9, 15, 0.46);

    backdrop-filter: blur(14px);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.12em;

}



.hero-preview-content {

    position: absolute;

    right: 30px;

    bottom: 88px;

    left: 30px;

    z-index: 10;

}



.hero-preview-category {

    display: inline-flex;

    margin-bottom: 12px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.13em;

    text-transform: uppercase;

}



.hero-preview-link {

    display: block;

    color: #fff;

    text-decoration: none;

}



.hero-preview-title {

    display: block;

    margin-bottom: 10px;

    color: #fff;

    font-size: clamp(27px, 3.2vw, 43px);

    font-weight: 800;

    line-height: 1.02;

    letter-spacing: -0.045em;

    text-wrap: balance;

    transition:

        transform 300ms ease,

        opacity 300ms ease;

}



.hero-preview-description {

    max-width: 460px;

    margin: 0;

    color: rgba(255, 255, 255, 0.76);

    font-size: 15px;

    line-height: 1.55;

    transition:

        transform 300ms ease,

        opacity 300ms ease;

}



.hero-preview-open {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-top: 18px;

    color: #fff;

    font-size: 13px;

    font-weight: 800;

}



.hero-preview-open span {

    transition: transform 220ms ease;

}



.hero-preview-link:hover .hero-preview-open span {

    transform: translateX(5px);

}



.hero-preview-controls {

    position: absolute;

    right: 24px;

    bottom: 24px;

    left: 24px;

    z-index: 12;

    display: grid;

    grid-template-columns: 44px 1fr 44px;

    align-items: center;

    gap: 14px;

}



.hero-preview-arrow {

    width: 44px;

    height: 44px;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.2);

    border-radius: 50%;

    color: #fff;

    background: rgba(13, 11, 18, 0.52);

    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);

    backdrop-filter: blur(14px);

    cursor: pointer;

    transition:

        transform 180ms ease,

        background 180ms ease,

        border-color 180ms ease;

}



.hero-preview-arrow:hover {

    border-color: rgba(255, 255, 255, 0.55);

    background: rgba(255, 255, 255, 0.16);

    transform: scale(1.07);

}



.hero-preview-dots {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

}



.hero-preview-dot {

    width: 7px;

    height: 7px;

    padding: 0;

    border: 0;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.36);

    cursor: pointer;

    transition:

        width 260ms ease,

        background 260ms ease,

        box-shadow 260ms ease;

}



.hero-preview-dot.is-active {

    width: 28px;

    background: #fff;

    box-shadow: 0 0 18px rgba(255, 255, 255, 0.52);

}



/* Подготовка к смене: лёгкая тяга */

.hero-preview-carousel.effect-pull.is-changing

.hero-preview-media {

    animation:

        hero-preview-pull 850ms

        cubic-bezier(.18, .78, .22, 1);

}



/* Подготовка к смене: кинематографическая встряска */

.hero-preview-carousel.effect-shake.is-changing

.hero-preview-media {

    animation:

        hero-preview-shake 850ms

        cubic-bezier(.2, .75, .25, 1);

}



/* Подготовка к смене: световая вспышка */

.hero-preview-carousel.effect-flash.is-changing

.hero-preview-flash,

.hero-preview-carousel.effect-pull.is-changing

.hero-preview-flash,

.hero-preview-carousel.effect-shake.is-changing

.hero-preview-flash,

.hero-preview-carousel.effect-zoom.is-changing

.hero-preview-flash {

    animation:

        hero-preview-flash 850ms ease-in-out;

}



/* Подготовка к смене: мягкий зум */

.hero-preview-carousel.effect-zoom.is-changing

.hero-preview-video.is-active {

    animation:

        hero-preview-zoom 850ms

        cubic-bezier(.18, .8, .22, 1);

}



.hero-preview-carousel.is-changing

.hero-preview-title,

.hero-preview-carousel.is-changing

.hero-preview-description,

.hero-preview-carousel.is-changing
.hero-preview-category {

    opacity: 0.25;

    transform: translateY(7px);

}



@keyframes hero-preview-pull {

    0% {

        transform: translateX(0) scale(1);

    }



    38% {

        transform: translateX(-9px) scale(1.018);

    }



    57% {

        transform: translateX(5px) scale(1.024);

    }



    100% {

        transform: translateX(0) scale(1.035);

    }

}



@keyframes hero-preview-shake {

    0% {

        transform: translate3d(0, 0, 0) scale(1);

    }



    30% {

        transform: translate3d(-3px, 1px, 0) scale(1.012);

    }



    40% {

        transform: translate3d(4px, -2px, 0) scale(1.018);

    }



    52% {

        transform: translate3d(-5px, 2px, 0) scale(1.022);

    }



    65% {

        transform: translate3d(3px, -1px, 0) scale(1.026);

    }



    100% {

        transform: translate3d(0, 0, 0) scale(1.035);

    }

}



@keyframes hero-preview-flash {

    0% {

        opacity: 0;

        transform: translateX(-115%) skewX(-16deg);

    }



    42% {

        opacity: 0;

    }



    58% {

        opacity: 0.82;

    }



    100% {

        opacity: 0;

        transform: translateX(115%) skewX(-16deg);

    }

}



@keyframes hero-preview-zoom {

    0% {

        transform: scale(1);

        filter: saturate(1.04) contrast(1.03);

    }



    68% {

        transform: scale(1.085);

        filter:

            saturate(1.2)

            contrast(1.08)

            brightness(1.06);

    }



    100% {

        transform: scale(1.11);

        filter:

            saturate(1.05)

            contrast(1.04)

            brightness(1);

    }

}



/* Кнопка после карточек */



.home-all-templates-action {

    display: flex;

    justify-content: center;

    margin-top: 42px;

}



.home-all-templates-button {

    position: relative;

    min-width: 280px;

    overflow: hidden;

    box-shadow:

        0 18px 45px rgba(89, 60, 170, 0.2);

}



.home-all-templates-button::after {

    content: "";

    position: absolute;

    top: -80%;

    bottom: -80%;

    left: -45%;

    width: 30%;

    pointer-events: none;

    transform: rotate(18deg);

    background:

        linear-gradient(

            90deg,

            transparent,

            rgba(255, 255, 255, 0.48),

            transparent

        );

    animation: home-button-shine 4.8s ease-in-out infinite;

}



@keyframes home-button-shine {

    0%,

    68% {

        left: -45%;

    }



    100% {

        left: 125%;

    }

}



/* SEO-блок */



.home-seo-showcase {

    position: relative;

    padding-top: 84px;

    padding-bottom: 30px;

}



.home-seo-panel {

    position: relative;

    overflow: hidden;

    padding: clamp(30px, 5vw, 64px);

    border: 1px solid rgba(115, 91, 160, 0.17);

    border-radius: 34px;

    background:

        radial-gradient(

            circle at 90% 10%,

            rgba(149, 111, 255, 0.15),

            transparent 34%

        ),

        radial-gradient(

            circle at 4% 96%,

            rgba(244, 177, 125, 0.13),

            transparent 36%

        ),

        var(--color-surface, #fff);

    box-shadow:

        0 28px 80px rgba(36, 27, 55, 0.09);

}



.home-seo-panel::before {

    content: "";

    position: absolute;

    top: -90px;

    right: -70px;

    width: 230px;

    height: 230px;

    border: 1px solid rgba(121, 91, 183, 0.13);

    border-radius: 50%;

    box-shadow:

        0 0 0 34px rgba(121, 91, 183, 0.035),

        0 0 0 68px rgba(121, 91, 183, 0.025);

}



.home-seo-heading {

    position: relative;

    z-index: 1;

    max-width: 850px;

    margin-bottom: 34px;

}



.home-seo-heading h2 {

    max-width: 760px;

    margin-bottom: 16px;

    text-wrap: balance;

}



.home-seo-heading > p:last-child {

    max-width: 760px;

    margin-bottom: 0;

    font-size: 17px;

    line-height: 1.72;

}



.home-seo-grid {

    position: relative;

    z-index: 1;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;

}



.home-seo-item {

    padding: 23px;

    border: 1px solid rgba(112, 91, 150, 0.14);

    border-radius: 22px;

    background: rgba(255, 255, 255, 0.5);

    backdrop-filter: blur(12px);

}



.home-seo-item span {

    display: grid;

    place-items: center;

    width: 38px;

    height: 38px;

    margin-bottom: 17px;

    border-radius: 12px;

    color: #fff;

    background:

        linear-gradient(

            135deg,

            #8c64e8,

            #5d3eaf

        );

    box-shadow:

        0 10px 24px rgba(96, 61, 178, 0.22);

    font-weight: 800;

}



.home-seo-item h3 {

    margin-bottom: 9px;

    font-size: 17px;

}



.home-seo-item p {

    margin: 0;

    font-size: 14px;

    line-height: 1.65;

}



[data-theme="dark"] .home-seo-item {

    background: rgba(255, 255, 255, 0.035);

}



@media (max-width: 900px) {

    .hero-card.has-preview-carousel {

        min-height: 520px;

    }



    .home-seo-grid {

        grid-template-columns: 1fr;

    }

}



@media (max-width: 620px) {

    .hero-card.has-preview-carousel {

        min-height: 490px;

        border-radius: 25px;

    }



    .hero-preview-top {

        top: 15px;

        right: 15px;

        left: 15px;

    }



    .hero-preview-content {

        right: 20px;

        bottom: 78px;

        left: 20px;

    }



    .hero-preview-controls {

        right: 16px;

        bottom: 16px;

        left: 16px;

        grid-template-columns: 40px 1fr 40px;

        gap: 10px;

    }



    .hero-preview-arrow {

        width: 40px;

        height: 40px;

    }



    .hero-preview-description {

        font-size: 14px;

    }



    .home-all-templates-action {

        margin-top: 30px;

    }



    .home-all-templates-button {

        width: 100%;

        min-width: 0;

    }



    .home-seo-showcase {

        padding-top: 58px;

    }



    .home-seo-panel {

        padding: 26px 20px;

        border-radius: 25px;

    }

}



@media (prefers-reduced-motion: reduce) {

    .hero-preview-media,

    .hero-preview-video,

    .hero-preview-flash,

    .hero-preview-title,

    .hero-preview-description,

    .hero-preview-category,

    .home-all-templates-button::after {

        animation: none !important;

        transition-duration: 100ms !important;

    }

}



/* HOME-PREMIUM-CAROUSEL-END */

/* PREMIUM-SHARE-UI-START */



.creative-share-button {

    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 42px;

    padding: 10px 15px;

    overflow: hidden;

    border: 1px solid rgba(104, 76, 169, 0.2);

    border-radius: 999px;

    color: var(--color-text, #241e2d);

    background:

        linear-gradient(

            135deg,

            rgba(255, 255, 255, 0.94),

            rgba(246, 240, 255, 0.88)

        );

    box-shadow:

        0 10px 25px rgba(79, 50, 141, 0.1);

    font: inherit;

    font-size: 13px;

    font-weight: 800;

    line-height: 1;

    cursor: pointer;

    isolation: isolate;

    transition:

        transform 180ms ease,

        box-shadow 180ms ease,

        border-color 180ms ease;

}



.creative-share-button::before {

    content: "";

    position: absolute;

    inset: -2px;

    z-index: -1;

    opacity: 0;

    background:

        radial-gradient(

            circle at 30% 20%,

            rgba(190, 153, 255, 0.5),

            transparent 42%

        );

    transition: opacity 180ms ease;

}



.creative-share-button::after {

    content: "";

    position: absolute;

    top: -80%;

    bottom: -80%;

    left: -45%;

    width: 28%;

    pointer-events: none;

    transform: rotate(18deg);

    background:

        linear-gradient(

            90deg,

            transparent,

            rgba(255, 255, 255, 0.75),

            transparent

        );

}



.creative-share-button:hover {

    border-color: rgba(104, 76, 169, 0.42);

    box-shadow:

        0 15px 35px rgba(79, 50, 141, 0.18);

    transform: translateY(-2px) scale(1.015);

}



.creative-share-button:hover::before {

    opacity: 1;

}



.creative-share-button:hover::after {

    animation: creative-share-shine 750ms ease;

}



.creative-share-button:active {

    transform: translateY(0) scale(0.97);

}



.creative-share-button:focus-visible {

    outline: 3px solid rgba(126, 89, 219, 0.28);

    outline-offset: 3px;

}



.creative-share-button:disabled {

    cursor: wait;

    opacity: 0.7;

}



.creative-share-button > svg {

    width: 18px;

    height: 18px;

    flex: 0 0 auto;

}



.creative-share-button.is-loading > svg {

    animation: creative-share-loading 800ms linear infinite;

}



.share-card-button {

    margin-left: auto;

}



.share-template-button {

    min-height: 48px;

    padding-right: 19px;

    padding-left: 19px;

    background:
linear-gradient(

            135deg,

            #fff,

            #f1e9ff

        );

}



.hero-preview-top.has-share-button {

    display: grid;

    grid-template-columns: auto 1fr auto;

}



.share-carousel-button {

    justify-self: end;

    min-height: 38px;

    padding: 8px 12px;

    color: #fff;

    border-color: rgba(255, 255, 255, 0.24);

    background: rgba(10, 9, 15, 0.55);

    box-shadow:

        0 12px 32px rgba(0, 0, 0, 0.16);

    backdrop-filter: blur(14px);

}



.hero-preview-top.has-share-button

.hero-preview-counter {

    justify-self: center;

}



.share-quick-button {

    width: 100%;

    margin-top: 12px;

}



.share-video-host {

    position: relative;

}



.share-video-action {

    position: absolute;

    right: 16px;

    bottom: 16px;

    z-index: 20;

}



.share-result-button {

    min-height: 46px;

    padding: 11px 17px;

    color: #fff;

    border-color: rgba(255, 255, 255, 0.27);

    background:

        linear-gradient(

            135deg,

            rgba(99, 65, 183, 0.92),

            rgba(52, 33, 104, 0.94)

        );

    box-shadow:

        0 16px 36px rgba(23, 14, 48, 0.35);

    backdrop-filter: blur(15px);

}



.share-result-button::before {

    background:

        radial-gradient(

            circle at 25% 20%,

            rgba(255, 255, 255, 0.42),

            transparent 44%

        );

}



.premium-share-dialog {

    width: min(94vw, 560px);

    max-width: 560px;

    padding: 0;

    overflow: visible;

    border: 0;

    border-radius: 30px;

    color: var(--color-text, #251f2e);

    background: transparent;

}



.premium-share-dialog::backdrop {

    background: rgba(14, 10, 21, 0.7);

    backdrop-filter: blur(13px);

    animation: premium-share-backdrop 220ms ease both;

}



.premium-share-shell {

    position: relative;

    overflow: hidden;

    padding: 36px;

    border: 1px solid rgba(130, 97, 194, 0.18);

    border-radius: 30px;

    background:

        radial-gradient(

            circle at 100% 0,

            rgba(164, 117, 255, 0.2),

            transparent 38%

        ),

        radial-gradient(

            circle at 0 100%,

            rgba(255, 185, 133, 0.16),

            transparent 38%

        ),

        var(--color-surface, #fff);

    box-shadow:

        0 35px 110px rgba(16, 10, 29, 0.36);

    animation:

        premium-share-enter 380ms

        cubic-bezier(.16, .84, .28, 1) both;

}



.premium-share-glow {

    position: absolute;

    top: -100px;

    right: -90px;

    width: 230px;

    height: 230px;

    border-radius: 50%;

    pointer-events: none;

    background: rgba(143, 99, 238, 0.14);

    filter: blur(2px);

    box-shadow:

        0 0 0 35px rgba(143, 99, 238, 0.045),

        0 0 0 70px rgba(143, 99, 238, 0.025);

}



.premium-share-close {

    position: absolute;

    top: 17px;

    right: 17px;

    z-index: 4;

    display: grid;

    place-items: center;

    width: 38px;

    height: 38px;

    padding: 0;

    border: 1px solid rgba(116, 91, 157, 0.16);

    border-radius: 50%;

    color: inherit;

    background: rgba(255, 255, 255, 0.6);

    font-size: 23px;

    cursor: pointer;

    transition:

        transform 180ms ease,

        background 180ms ease;

}



.premium-share-close:hover {

    transform: rotate(7deg) scale(1.07);

    background: rgba(255, 255, 255, 0.9);

}



.premium-share-icon {

    position: relative;

    z-index: 1;

    display: grid;

    place-items: center;

    width: 58px;

    height: 58px;

    margin-bottom: 24px;

    border-radius: 19px;

    color: #fff;

    background:

        linear-gradient(

            135deg,

            #a475ff,

            #6943c2 58%,

            #442985

        );

    box-shadow:

        0 17px 38px rgba(89, 54, 171, 0.3);

    transform: rotate(-4deg);

}



.premium-share-icon svg {

    width: 26px;

    height: 26px;

}



.premium-share-shell h2 {

    position: relative;

    z-index: 1;

    max-width: 420px;

    margin-bottom: 11px;

    text-wrap: balance;

}



.premium-share-shell > p:not(.eyebrow):not(.premium-share-note) {

    position: relative;

    z-index: 1;

    max-width: 450px;

    margin-bottom: 27px;

    line-height: 1.65;

}



.premium-share-networks {

    position: relative;

    z-index: 1;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 10px;

}



.premium-share-network {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 9px;

    min-width: 0;

    padding: 16px 7px 13px;

    border: 1px solid rgba(114, 86, 166, 0.14);

    border-radius: 18px;

    color: inherit;

    background: rgba(255, 255, 255, 0.54);

    font: inherit;

    cursor: pointer;

    transition:

        transform 180ms ease,

        border-color 180ms ease,

        box-shadow 180ms ease;

}



.premium-share-network:hover {

    border-color: rgba(114, 86, 166, 0.35);

    box-shadow:

        0 13px 28px rgba(64, 42, 109, 0.1);

    transform: translateY(-4px);

}



.premium-share-network strong {

    display: grid;

    place-items: center;

    width: 37px;

    height: 37px;

    border-radius: 12px;

    color: #6841bd;

    background: rgba(117, 77, 205, 0.1);

    font-size: 14px;

}



.premium-share-network span {

    overflow: hidden;

    max-width: 100%;

    font-size: 11px;

    font-weight: 800;

    text-overflow: ellipsis;

}



.premium-share-network.is-primary {

    color: #fff;

    border-color: transparent;

    background:

        linear-gradient(

            145deg,

            #8e65e7,

            #5b38ac

        );

    box-shadow:

        0 14px 30px rgba(87, 52, 167, 0.22);

}



.premium-share-network.is-primary strong {

    color: #fff;

    background: rgba(255, 255, 255, 0.16);

}



.premium-share-network.is-loading strong {

    animation: creative-share-loading 800ms linear infinite;

}



.premium-share-copy {

    position: relative;

    z-index: 1;

    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 100%;

    margin-top: 13px;

    padding: 15px 17px;

    border: 1px solid rgba(114, 86, 166, 0.16);

    border-radius: 16px;

    color: inherit;

    background: rgba(255, 255, 255, 0.5);

    font: inherit;

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;

}



.premium-share-copy strong {

    color: rgba(91, 61, 151, 0.72);

    font-size: 11px;

}



.premium-share-note {

    position: relative;

    z-index: 1;

    margin: 18px 0 0;

    color: var(--color-muted, #746d7c);

    font-size: 11px;

    line-height: 1.5;

    text-align: center;

}



[data-theme="dark"] .creative-share-button {

    color: #fff;

    border-color: rgba(255, 255, 255, 0.13);

    background:

        linear-gradient(

            135deg,

            rgba(69, 53, 94, 0.95),

            rgba(39, 31, 52, 0.96)

        );

}



[data-theme="dark"] .premium-share-shell {

    background:

        radial-gradient(

            circle at 100% 0,

            rgba(146, 96, 255, 0.23),

            transparent 38%

        ),

        radial-gradient(

            circle at 0 100%,

            rgba(194, 111, 69, 0.12),

            transparent 38%

        ),

        #211b29;

}



[data-theme="dark"] .premium-share-network,

[data-theme="dark"] .premium-share-copy,

[data-theme="dark"] .premium-share-close {

    color: #fff;

    background: rgba(255, 255, 255, 0.055);

}



@keyframes creative-share-shine {

    from {

        left: -45%;

    }



    to {

        left: 125%;

    }

}



@keyframes creative-share-loading {

    to {

        transform: rotate(360deg);

    }

}



@keyframes premium-share-backdrop {

    from {

        opacity: 0;

    }



    to {

        opacity: 1;

    }

}



@keyframes premium-share-enter {

    from {

        opacity: 0;

        transform:

            translateY(18px)

            scale(0.96);

    }



    to {

        opacity: 1;

        transform:

            translateY(0)

            scale(1);

    }

}



@media (max-width: 720px) {

    .creative-share-label {

        display: inline;

    }



    .share-card-button {

        width: 42px;

        min-width: 42px;

        padding: 10px;

    }



    .share-card-button .creative-share-label {

        position: absolute;

        width: 1px;

        height: 1px;

        overflow: hidden;

        clip: rect(0, 0, 0, 0);

    }



    .hero-preview-top.has-share-button {

        grid-template-columns: 1fr auto;

    }



    .hero-preview-top.has-share-button

    .hero-preview-counter {

        display: none;

    }



    .share-carousel-button {

        justify-self: end;

    }



    .share-carousel-button .creative-share-label {

        display: none;

    }



    .premium-share-shell {

        padding: 29px 19px 22px;

        border-radius: 25px;

    }



    .premium-share-dialog {

        width: min(94vw, 520px);

    }



    .premium-share-networks {

        grid-template-columns: repeat(2, 1fr);

    }



    .premium-share-network {

        flex-direction: row;

        justify-content: flex-start;

        padding: 12px;
}



    .premium-share-network span {

        font-size: 12px;

    }



    .share-video-action {

        right: 10px;

        bottom: 10px;

    }



    .share-result-button {

        min-height: 42px;

        padding: 10px 13px;

    }

}



@media (prefers-reduced-motion: reduce) {

    .creative-share-button,

    .premium-share-network,

    .premium-share-shell,

    .premium-share-dialog::backdrop,

    .creative-share-button::after {

        animation: none !important;

        transition-duration: 80ms !important;

    }

}



/* PREMIUM-SHARE-UI-END */

/* HOME-SEO-SOFT-DESIGN-START */



/*

 * Мягко соединяем SEO-блок с дизайном главной:

 * без отдельной ярко-белой плашки и жёсткой тени.

 */



.home-seo-showcase {

    position: relative;

    padding-top: 74px;

    padding-bottom: 34px;

}



.home-seo-showcase::before {

    content: "";

    position: absolute;

    top: 12%;

    left: 50%;

    width: min(92vw, 1180px);

    height: 78%;

    border-radius: 50%;

    pointer-events: none;

    transform: translateX(-50%);

    background:

        radial-gradient(

            circle at 30% 50%,

            rgba(132, 96, 205, 0.08),

            transparent 48%

        ),

        radial-gradient(

            circle at 76% 40%,

            rgba(219, 157, 117, 0.07),

            transparent 44%

        );

    filter: blur(36px);

}



.home-seo-panel {

    position: relative;

    overflow: hidden;

    border: 1px solid rgba(104, 82, 139, 0.1);

    background:

        linear-gradient(

            135deg,

            rgba(237, 231, 242, 0.72) 0%,

            rgba(242, 236, 233, 0.66) 48%,

            rgba(231, 224, 239, 0.68) 100%

        );

    box-shadow:

        0 24px 65px rgba(53, 40, 70, 0.055),

        inset 0 1px 0 rgba(255, 255, 255, 0.45);

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

}



.home-seo-panel::before {

    top: -125px;

    right: -105px;

    width: 285px;

    height: 285px;

    border-color: rgba(111, 79, 171, 0.08);

    background:

        radial-gradient(

            circle,

            rgba(139, 101, 210, 0.09),

            transparent 67%

        );

    box-shadow:

        0 0 0 42px rgba(121, 91, 183, 0.022),

        0 0 0 84px rgba(121, 91, 183, 0.014);

}



.home-seo-panel::after {

    content: "";

    position: absolute;

    bottom: -145px;

    left: -120px;

    width: 330px;

    height: 330px;

    border-radius: 50%;

    pointer-events: none;

    background:

        radial-gradient(

            circle,

            rgba(217, 153, 111, 0.075),

            transparent 68%

        );

}



.home-seo-heading {

    position: relative;

    z-index: 2;

}



.home-seo-heading .eyebrow {

    color: #795ba5;

}



.home-seo-heading h2 {

    color: #2f2937;

    letter-spacing: -0.035em;

}



.home-seo-heading > p:last-child {

    color: #68616e;

}



.home-seo-grid {

    position: relative;

    z-index: 2;

}



.home-seo-item {

    position: relative;

    overflow: hidden;

    border: 1px solid rgba(103, 79, 139, 0.085);

    background:

        linear-gradient(

            145deg,

            rgba(255, 255, 255, 0.28),

            rgba(244, 239, 247, 0.18)

        );

    box-shadow:

        0 12px 30px rgba(52, 39, 69, 0.035);

    backdrop-filter: blur(9px);

    -webkit-backdrop-filter: blur(9px);

    transition:

        transform 260ms ease,

        border-color 260ms ease,

        background 260ms ease,

        box-shadow 260ms ease;

}



.home-seo-item:hover {

    border-color: rgba(110, 80, 166, 0.16);

    background:

        linear-gradient(

            145deg,

            rgba(255, 255, 255, 0.4),

            rgba(239, 231, 245, 0.27)

        );

    box-shadow:

        0 17px 38px rgba(52, 39, 69, 0.065);

    transform: translateY(-4px);

}



.home-seo-item span {

    color: #f8f5fb;

    background:

        linear-gradient(

            145deg,

            #8b6abc,

            #674a94

        );

    box-shadow:

        0 10px 23px rgba(89, 62, 132, 0.16);

}



.home-seo-item h3 {

    color: #37303f;

}



.home-seo-item p {

    color: #706977;

}



/* Тёмная тема без яркой белой поверхности. */



[data-theme="dark"] .home-seo-panel {

    border-color: rgba(209, 187, 241, 0.09);

    background:

        linear-gradient(

            135deg,

            rgba(47, 39, 57, 0.86),

            rgba(40, 34, 48, 0.82) 52%,

            rgba(48, 38, 58, 0.84)

        );

    box-shadow:

        0 25px 70px rgba(0, 0, 0, 0.17),

        inset 0 1px 0 rgba(255, 255, 255, 0.035);

}



[data-theme="dark"] .home-seo-heading .eyebrow {

    color: #c2a8eb;

}



[data-theme="dark"] .home-seo-heading h2,

[data-theme="dark"] .home-seo-item h3 {

    color: #f0eaf4;

}



[data-theme="dark"] .home-seo-heading > p:last-child,

[data-theme="dark"] .home-seo-item p {

    color: #bdb4c4;

}



[data-theme="dark"] .home-seo-item {

    border-color: rgba(221, 200, 249, 0.07);

    background:

        linear-gradient(

            145deg,

            rgba(255, 255, 255, 0.035),

            rgba(255, 255, 255, 0.015)

        );

    box-shadow:

        0 13px 34px rgba(0, 0, 0, 0.09);

}



[data-theme="dark"] .home-seo-item:hover {

    border-color: rgba(205, 176, 242, 0.14);

    background:

        linear-gradient(

            145deg,

            rgba(255, 255, 255, 0.055),

            rgba(255, 255, 255, 0.025)

        );

}



/* Мобильная версия ещё спокойнее и компактнее. */



@media (max-width: 620px) {

    .home-seo-showcase {

        padding-top: 52px;

        padding-bottom: 22px;

    }



    .home-seo-panel {

        border-radius: 24px;

        background:

            linear-gradient(

                145deg,

                rgba(237, 231, 242, 0.68),

                rgba(241, 235, 233, 0.61)

            );

        box-shadow:

            0 17px 45px rgba(53, 40, 70, 0.045);

    }



    .home-seo-heading {

        margin-bottom: 25px;

    }



    .home-seo-heading > p:last-child {

        font-size: 15px;

        line-height: 1.68;

    }



    .home-seo-grid {

        gap: 12px;

    }



    .home-seo-item {

        padding: 19px;

        border-radius: 18px;

    }



    [data-theme="dark"] .home-seo-panel {

        background:

            linear-gradient(

                145deg,

                rgba(47, 39, 57, 0.86),

                rgba(39, 33, 47, 0.83)

            );

    }

}



@media (prefers-reduced-motion: reduce) {

    .home-seo-item {

        transition: none;

    }



    .home-seo-item:hover {

        transform: none;

    }

}



/* HOME-SEO-SOFT-DESIGN-END */

/* PWA-INSTALL-UI-START */



#install-app.is-pwa-visible {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    width: auto;

    min-width: 42px;

    padding: 7px 10px 7px 7px;

    border: 1px solid rgba(105, 72, 174, 0.16);

    border-radius: 999px;

    background:

        linear-gradient(

            135deg,

            rgba(255, 255, 255, 0.9),

            rgba(238, 230, 250, 0.88)

        );

    box-shadow:

        0 9px 24px rgba(66, 42, 112, 0.1);

}



#install-app img {

    display: block;

    width: 25px;

    height: 25px;

    border-radius: 8px;

}



.pwa-button-label {

    font-size: 11px;

    font-weight: 800;

}



.pwa-install-dialog {

    width: min(92vw, 500px);

    max-width: 500px;

    padding: 0;

    overflow: visible;

    border: 0;

    border-radius: 30px;

    color: var(--color-text, #2b2532);

    background: transparent;

}



.pwa-install-dialog::backdrop {

    background: rgba(15, 10, 23, 0.7);

    backdrop-filter: blur(13px);

}



.pwa-install-shell {

    position: relative;

    overflow: hidden;

    padding: 35px;

    border: 1px solid rgba(115, 81, 179, 0.15);

    border-radius: 30px;

    background:

        radial-gradient(

            circle at 100% 0,

            rgba(160, 113, 246, 0.18),

            transparent 38%

        ),

        radial-gradient(

            circle at 0 100%,

            rgba(230, 165, 119, 0.12),

            transparent 38%

        ),

        var(--color-surface, #fff);

    box-shadow:

        0 35px 100px rgba(16, 10, 28, 0.34);

    animation:

        pwa-dialog-enter 350ms

        cubic-bezier(.16, .84, .28, 1) both;

}



.pwa-install-close {

    position: absolute;

    top: 17px;

    right: 17px;

    display: grid;

    place-items: center;

    width: 38px;

    height: 38px;

    padding: 0;

    border: 1px solid rgba(112, 82, 160, 0.14);

    border-radius: 50%;

    color: inherit;

    background: rgba(255, 255, 255, 0.55);

    font-size: 23px;

    cursor: pointer;

}



.pwa-install-brand {

    position: relative;

    width: 80px;

    height: 80px;

    margin-bottom: 24px;

}



.pwa-install-brand::after {

    content: "";

    position: absolute;

    inset: 10px;

    z-index: -1;

    border-radius: 24px;

    background: rgba(111, 70, 190, 0.5);

    filter: blur(20px);

}



.pwa-install-brand img {

    display: block;

    width: 72px;

    height: 72px;

    border-radius: 20px;

    box-shadow:

        0 15px 35px rgba(70, 42, 125, 0.28);

}



.pwa-install-shell h2 {

    margin-bottom: 10px;

}



.pwa-install-description {

    margin-bottom: 23px;

    color: var(--color-muted, #746d7c);

    line-height: 1.6;

}



.pwa-install-steps {

    display: grid;

    gap: 10px;

    margin-bottom: 23px;

}



.pwa-install-steps > div {

    display: grid;

    grid-template-columns: 35px 1fr;

    align-items: center;

    gap: 12px;

    padding: 11px 13px;

    border: 1px solid rgba(112, 82, 160, 0.1);

    border-radius: 15px;

    background: rgba(120, 87, 175, 0.045);

}



.pwa-install-steps strong {

    display: grid;

    place-items: center;

    width: 31px;

    height: 31px;

    border-radius: 10px;

    color: #fff;

    background:

        linear-gradient(

            135deg,

            #8f65df,

            #5c3a9e

        );

    font-size: 13px;

}



.pwa-install-steps span {

    font-size: 13px;

    line-height: 1.45;

}



.pwa-install-primary {

    width: 100%;

    min-height: 50px;

}



.pwa-install-note {

    margin: 15px 0 0;

    color: var(--color-muted, #746d7c);

    font-size: 11px;

    line-height: 1.5;

    text-align: center;

}



[data-theme="dark"] #install-app.is-pwa-visible {

    color: #fff;

    border-color: rgba(255, 255, 255, 0.12);

    background:

        linear-gradient(

            135deg,

            rgba(65, 48, 87, 0.96),

            rgba(38, 30, 48, 0.96)

        );

}



[data-theme="dark"] .pwa-install-shell {

    background:

        radial-gradient(

            circle at 100% 0,

            rgba(148, 96, 244, 0.22),

            transparent 38%

        ),

        #211a29;

}



[data-theme="dark"] .pwa-install-close {

    color: #fff;

    background: rgba(255, 255, 255, 0.055);

}



[data-theme="dark"] .pwa-install-steps > div {

    border-color: rgba(255, 255, 255, 0.075);

    background: rgba(255, 255, 255, 0.035);

}



@keyframes pwa-dialog-enter {

    from {

        opacity: 0;

        transform: translateY(18px) scale(0.96);

    }



    to {

        opacity: 1;

        transform: translateY(0) scale(1);

    }

}



@media (max-width: 760px) {

    .header-account {

        gap: 6px;

    }



    .pwa-button-label {

        display: none;

    }



    #install-app.is-pwa-visible {

        width: 40px;

        min-width: 40px;

        height: 40px;

        padding: 6px;
}



    .pwa-install-shell {

        padding: 29px 20px 22px;

        border-radius: 25px;

    }

}



@media (prefers-reduced-motion: reduce) {

    .pwa-install-shell {

        animation: none;

    }

}



/* PWA-INSTALL-UI-END */

/* PWA-DIALOG-VISIBILITY-FIX-START */



/*

 * Явно задаём цвет всем текстам окна установки.

 * !important нужен из-за общих стилей .steps и span.

 */



.pwa-install-dialog,

.pwa-install-shell {

    color: #2f2838 !important;

}



.pwa-install-shell .eyebrow {

    color: #7553a8 !important;

}



.pwa-install-shell h2 {

    color: #292230 !important;

}



.pwa-install-description {

    color: #625a6a !important;

}



.pwa-install-steps,

.pwa-install-steps > div {

    color: #332b3b !important;

}



.pwa-install-steps > div {

    border-color: rgba(104, 74, 158, 0.14) !important;

    background:

        linear-gradient(

            135deg,

            rgba(245, 239, 250, 0.96),

            rgba(237, 230, 244, 0.9)

        ) !important;

    box-shadow:

        inset 0 1px 0 rgba(255, 255, 255, 0.7);

}



.pwa-install-steps span,

.pwa-install-steps b {

    color: #3b3344 !important;

    opacity: 1 !important;

    -webkit-text-fill-color: #3b3344 !important;

}



.pwa-install-steps strong {

    color: #fff !important;

    opacity: 1 !important;

    -webkit-text-fill-color: #fff !important;

    background:

        linear-gradient(

            145deg,

            #9068df,

            #5b3a9c

        ) !important;

    box-shadow:

        0 7px 18px rgba(86, 53, 145, 0.2);

}



.pwa-install-note {

    color: #716879 !important;

}



/* Подтверждение установки. */



.pwa-install-toast {

    position: fixed;

    top: max(18px, env(safe-area-inset-top));

    left: 50%;

    z-index: 100000;

    display: grid;

    grid-template-columns: 45px minmax(0, 1fr) 32px;

    align-items: center;

    gap: 12px;

    width: min(calc(100vw - 28px), 430px);

    padding: 12px 13px;

    border: 1px solid rgba(114, 81, 173, 0.2);

    border-radius: 19px;

    color: #302738;

    background:

        linear-gradient(

            135deg,

            rgba(255, 255, 255, 0.98),

            rgba(242, 235, 250, 0.98)

        );

    box-shadow:

        0 22px 65px rgba(29, 17, 48, 0.26);

    opacity: 0;

    pointer-events: none;

    transform: translate(-50%, -18px) scale(0.97);

    transition:

        opacity 220ms ease,

        transform 320ms cubic-bezier(.16, .84, .28, 1);

}



.pwa-install-toast.is-visible {

    opacity: 1;

    pointer-events: auto;

    transform: translate(-50%, 0) scale(1);

}



.pwa-install-toast-icon {

    display: grid;

    place-items: center;

    width: 45px;

    height: 45px;

    border-radius: 14px;

    color: #fff;

    background:

        linear-gradient(

            145deg,

            #8e66dc,

            #54358f

        );

    box-shadow:

        0 10px 24px rgba(85, 50, 150, 0.25);

    font-size: 21px;

    font-weight: 900;

}



.pwa-install-toast-copy {

    min-width: 0;

}



.pwa-install-toast-copy strong {

    display: block;

    margin-bottom: 3px;

    color: #292130;

    font-size: 14px;

}



.pwa-install-toast-copy span {

    display: block;

    color: #68606f;

    font-size: 12px;

    line-height: 1.4;

}



.pwa-install-toast-close {

    display: grid;

    place-items: center;

    width: 30px;

    height: 30px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    color: #62576e;

    background: rgba(104, 76, 152, 0.08);

    font-size: 18px;

    cursor: pointer;

}



#install-app.is-installed {

    color: #fff !important;

    border-color: transparent !important;

    background:

        linear-gradient(

            135deg,

            #7955bc,

            #503382

        ) !important;

}



[data-theme="dark"] .pwa-install-dialog,

[data-theme="dark"] .pwa-install-shell {

    color: #f4eef8 !important;

}



[data-theme="dark"] .pwa-install-shell .eyebrow {

    color: #cbb0f1 !important;

}



[data-theme="dark"] .pwa-install-shell h2 {

    color: #faf6fc !important;

}



[data-theme="dark"] .pwa-install-description,

[data-theme="dark"] .pwa-install-note {

    color: #c2b7c9 !important;

}



[data-theme="dark"] .pwa-install-steps > div {

    border-color: rgba(224, 203, 250, 0.11) !important;

    background:

        linear-gradient(

            135deg,

            rgba(255, 255, 255, 0.075),

            rgba(255, 255, 255, 0.035)

        ) !important;

}



[data-theme="dark"] .pwa-install-steps span,

[data-theme="dark"] .pwa-install-steps b {

    color: #f0e9f4 !important;

    -webkit-text-fill-color: #f0e9f4 !important;

}



[data-theme="dark"] .pwa-install-toast {

    color: #f6f1f8;

    border-color: rgba(221, 198, 248, 0.12);

    background:

        linear-gradient(

            135deg,

            rgba(47, 38, 58, 0.99),

            rgba(33, 27, 41, 0.99)

        );

}



[data-theme="dark"] .pwa-install-toast-copy strong {

    color: #fff;

}



[data-theme="dark"] .pwa-install-toast-copy span {

    color: #c8becd;

}



[data-theme="dark"] .pwa-install-toast-close {

    color: #eee5f3;

    background: rgba(255, 255, 255, 0.07);

}



@media (max-width: 600px) {

    .pwa-install-steps > div {

        grid-template-columns: 36px minmax(0, 1fr) !important;

        gap: 11px !important;

        padding: 12px !important;

    }



    .pwa-install-steps span {

        display: block !important;

        visibility: visible !important;

        font-size: 13px !important;

        line-height: 1.48 !important;

    }

}



@media (prefers-reduced-motion: reduce) {

    .pwa-install-toast {

        transition: none;

    }

}



/* PWA-DIALOG-VISIBILITY-FIX-END */
/* ADMIN_CONSOLE_UI_2026 */ .admin-console{padding:38px 0 80px;background:radial-gradient(circle at 15% 5%,rgba(124,92,255,.12),transparent 32rem)}.admin-console>.container{width:min(1460px,calc(100% - 36px));margin:auto}.admin-console>.container>header{padding:clamp(28px,5vw,58px);border:1px solid rgba(255,255,255,.12);border-radius:28px;background:radial-gradient(circle at 90% 10%,rgba(255,197,111,.18),transparent 25rem),linear-gradient(135deg,#211c3c,#12121d 68%);box-shadow:0 28px 80px rgba(0,0,0,.35)}.admin-console>.container>header p:first-child{margin:0 0 12px;color:#f2cb8c;font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}.admin-console>.container>header h1{margin:0;color:#fff;font-size:clamp(36px,6vw,68px);line-height:1;letter-spacing:-.045em}.admin-console>.container>header p:last-child{max-width:760px;margin:18px 0 0;color:#b9b8c8;font-size:18px;line-height:1.6}.admin-console>.container>nav{position:sticky;z-index:20;top:12px;margin:20px 0 36px;padding:8px;border:1px solid rgba(255,255,255,.1);border-radius:16px;background:rgba(15,15,24,.9);box-shadow:0 16px 45px rgba(0,0,0,.3);backdrop-filter:blur(18px)}.admin-console>.container>nav p{display:flex;flex-wrap:wrap;gap:8px;margin:0;font-size:0}.admin-console>.container>nav a{display:inline-flex;align-items:center;min-height:40px;padding:8px 15px;border-radius:10px;color:#c7c5d3;font-size:14px;font-weight:750;text-decoration:none}.admin-console>.container>nav a:hover{color:#fff;background:rgba(255,255,255,.08)}.admin-console section{margin-top:38px}.admin-console section>h2{margin:0 0 20px;color:#fff;font-size:clamp(25px,3vw,36px);letter-spacing:-.025em}.admin-console dl{display:grid;grid-template-columns:repeat(6,minmax(140px,1fr));gap:14px;margin:0}.admin-console dl div{padding:21px;border:1px solid rgba(255,255,255,.1);border-radius:20px;background:linear-gradient(145deg,rgba(37,34,56,.96),rgba(22,21,33,.96));box-shadow:0 18px 45px rgba(0,0,0,.2);transition:.2s}.admin-console dl div:hover{transform:translateY(-3px);border-color:rgba(174,151,255,.5)}.admin-console dt{color:#aaa8ba;font-size:13px;line-height:1.45}.admin-console dd{margin:11px 0 0;color:#f2cb8c;font-size:clamp(27px,3vw,41px);font-weight:900;line-height:1;letter-spacing:-.04em}.admin-console form[method=get]{display:grid;grid-template-columns:minmax(240px,1fr) auto auto;align-items:end;gap:12px;margin-bottom:20px;padding:18px;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:rgba(124,92,255,.07)}.admin-console form[method=get] label{grid-column:1/-1;color:#aaa8ba;font-size:13px;font-weight:750}.admin-console input[type=search],.admin-console input[type=number],.admin-console input[type=text]{box-sizing:border-box;width:100%;min-height:44px;padding:10px 13px;color:#fff;border:1px solid rgba(255,255,255,.15);border-radius:11px;outline:none;background:#101019}.admin-console input:focus{border-color:#ad97ff;box-shadow:0 0 0 3px rgba(173,151,255,.15)}.admin-console button,.admin-console form[method=get]>a{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;padding:10px 16px;border:1px solid rgba(173,151,255,.4);border-radius:11px;color:#14121c;background:linear-gradient(135deg,#d9d0ff,#ad97ff);font:inherit;font-weight:850;text-decoration:none;cursor:pointer;transition:.2s}.admin-console form[method=get]>a{color:#fff;background:rgba(255,255,255,.07)}.admin-console button:hover,.admin-console form[method=get]>a:hover{filter:brightness(1.1);transform:translateY(-1px)}.admin-console .table-wrapper{overflow:auto;border:1px solid rgba(255,255,255,.1);border-radius:20px;background:#171722;box-shadow:0 22px 55px rgba(0,0,0,.22)}.admin-console table{width:100%;min-width:1080px;border-collapse:separate;border-spacing:0}.admin-console th{position:sticky;z-index:2;top:0;padding:14px 15px;color:#d8d0ff;border-bottom:1px solid rgba(255,255,255,.1);background:#201e30;font-size:12px;font-weight:850;letter-spacing:.055em;text-align:left;text-transform:uppercase}.admin-console td{padding:15px;border-bottom:1px solid rgba(255,255,255,.07);color:#b9b8c8;font-size:14px;line-height:1.45;vertical-align:top}.admin-console tbody tr:last-child td{border-bottom:0}.admin-console tbody tr:hover td{background:rgba(173,151,255,.055)}.admin-console td strong{color:#fff}.admin-console td small{display:inline-block;max-width:230px;overflow:hidden;color:#858394;text-overflow:ellipsis;white-space:nowrap}.admin-console td form[method=post]{display:grid;grid-template-columns:110px minmax(190px,1fr);gap:9px;min-width:340px}.admin-console td form[method=post] label{color:#aaa8ba;font-size:11px;font-weight:750}.admin-console td form[method=post] button{grid-column:1/-1;min-height:38px;padding:8px 12px;font-size:13px}.admin-console ::-webkit-scrollbar{width:10px;height:10px}.admin-console ::-webkit-scrollbar-track{background:#111119}.admin-console ::-webkit-scrollbar-thumb{border:2px solid #111119;border-radius:20px;background:#514a70}@media(max-width:1200px){.admin-console dl{grid-template-columns:repeat(3,1fr)}}@media(max-width:760px){.admin-console{padding-top:22px}.admin-console>.container{width:calc(100% - 22px)}.admin-console>.container>header{border-radius:21px}.admin-console>.container>nav{top:8px;overflow:auto}.admin-console>.container>nav p{flex-wrap:nowrap}.admin-console>.container>nav a{white-space:nowrap}.admin-console dl{grid-template-columns:repeat(2,1fr)}.admin-console form[method=get]{grid-template-columns:1fr}.admin-console form[method=get] label{grid-column:auto}.admin-console table{min-width:1000px}}@media(max-width:440px){.admin-console dl{grid-template-columns:1fr}.admin-console dl div{padding:18px}}
/* HOME_PREVIEW_FIRST_V1 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: .7rem 0;
    background: rgba(248, 247, 245, .76);
    border-bottom: 1px solid rgba(25, 25, 35, .06);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
}
.header-row {
    min-height: 64px;
    padding: .5rem .65rem .5rem 1rem;
    border: 1px solid rgba(25, 25, 35, .09);
    border-radius: 22px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 16px 50px rgba(20, 18, 35, .08);
}
.brand {
    font-weight: 800;
    letter-spacing: -.035em;
}
.brand-mark {
    box-shadow: 0 8px 24px rgba(108, 76, 255, .28);
}
.navigation {
    padding: .25rem;
    border: 1px solid rgba(25, 25, 35, .07);
    border-radius: 999px;
    background: rgba(25, 25, 35, .035);
}
.navigation a {
    padding: .62rem .9rem;
    border-radius: 999px;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.navigation a:hover {
    background: rgba(255, 255, 255, .9);
    transform: translateY(-1px);
}
.header-account {
    gap: .55rem;
}
.hero {
    padding-top: clamp(1rem, 2.5vw, 2.25rem);
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
}
.hero-grid > .hero-card {
    order: -1;
    width: 100%;
    max-width: 1180px;
    min-height: clamp(420px, 67vh, 720px);
    margin-inline: auto;
    border-radius: clamp(24px, 3vw, 40px);
    box-shadow: 0 30px 90px rgba(20, 18, 35, .16);
    overflow: hidden;
}
.hero-preview-carousel,
.hero-preview-media {
    min-height: inherit;
}
.hero-grid > .premium-reveal:not(.hero-card) {
    width: min(840px, 100%);
    margin-inline: auto;
    text-align: center;
}
.hero h1 {
    max-width: 820px;
    margin-inline: auto;
    font-size: clamp(2.15rem, 5vw, 4.6rem);
    line-height: .98;
    letter-spacing: -.055em;
}
.hero-text {
    max-width: 680px;
    margin-inline: auto;
}
.hero-actions {
    justify-content: center;
}
.hero .microcopy {
    max-width: 640px;
    margin-inline: auto;
}
html[data-theme="dark"] .site-header {
    background: rgba(13, 13, 19, .76);
    border-bottom-color: rgba(255, 255, 255, .07);
}
html[data-theme="dark"] .header-row {
    background: rgba(24, 23, 33, .72);
    border-color: rgba(255, 255, 255, .1);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
}
html[data-theme="dark"] .navigation {
    background: rgba(255, 255, 255, .055);
    border-color: rgba(255, 255, 255, .08);
}
html[data-theme="dark"] .navigation a:hover {
    background: rgba(255, 255, 255, .1);
}
@media (max-width: 760px) {
    .site-header {
        padding: .45rem 0;
    }
    .header-row {
        min-height: 58px;
        padding: .42rem .5rem .42rem .7rem;
        border-radius: 18px;
    }
    .hero-grid {
        gap: 2rem;
    }
    .hero-grid > .hero-card {
        min-height: clamp(330px, 112vw, 540px);
        border-radius: 24px;
    }
    .hero h1 {
        font-size: clamp(2rem, 11vw, 3.25rem);
        line-height: 1;
    }
    .hero-preview-content {
        padding-inline: 1.1rem;
    }
}

/* II_VIDEO_CREATIVE_ADMIN_V1 */
.admin-studio .studio-settings-card {
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid rgba(173, 151, 255, .2);
    border-radius: 24px;
    background: linear-gradient(
        145deg,
        rgba(35, 31, 53, .97),
        rgba(20, 19, 30, .97)
    );
}

.admin-studio textarea,
.admin-studio select {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 11px;
    background: #101019;
}

.studio-template-list {
    display: grid;
    gap: 16px;
}

.studio-template-row {
    display: grid;
    grid-template-columns: minmax(220px, .65fr) minmax(500px, 1.35fr);
    gap: 26px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 22px;
    background: linear-gradient(
        145deg,
        rgba(32, 30, 47, .97),
        rgba(20, 19, 29, .97)
    );
}

.studio-template-identity h3 {
    margin: 13px 0 7px;
    color: #fff;
    font-size: 22px;
}

.studio-template-identity p {
    color: #aaa8ba;
}

.studio-template-identity code {
    color: #d8d0ff;
}

.studio-status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}

.studio-status-live {
    color: #bdf7d7;
    background: rgba(48, 189, 117, .15);
}

.studio-status-beta {
    color: #d9d0ff;
    background: rgba(124, 92, 255, .2);
}

.studio-status-soon {
    color: #f2cb8c;
    background: rgba(242, 203, 140, .12);
}

.studio-template-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 10px;
}

.studio-template-switches {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 15px 0;
    color: #c7c5d3;
}

.creative-lab {
    overflow: hidden;
    background:
        radial-gradient(
            circle at 85% 5%,
            rgba(124, 92, 255, .18),
            transparent 34rem
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(255, 176, 105, .12),
            transparent 30rem
        );
}

.creative-lab-heading {
    display: grid;
    grid-template-columns: 1fr minmax(280px, .65fr);
    align-items: end;
    gap: 30px;
    margin-bottom: 34px;
}

.creative-lab-heading h2 {
    max-width: 760px;
    margin: 8px 0 0;
    font-size: clamp(34px, 5.2vw, 70px);
    line-height: .98;
    letter-spacing: -.055em;
}

.creative-lab-heading > p {
    max-width: 520px;
    color: var(--muted);
    line-height: 1.7;
}

.creative-feature-list {
    border-top: 1px solid rgba(128, 112, 164, .2);
}

.creative-feature-line {
    display: grid;
    grid-template-columns: 56px minmax(240px, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 22px 5px;
    border-bottom: 1px solid rgba(128, 112, 164, .18);
    transition:
        transform .2s ease,
        background-color .2s ease,
        padding .2s ease;
}

.creative-feature-line:hover {
    padding-inline: 18px;
    border-radius: 18px;
    background: rgba(124, 92, 255, .065);
    transform: translateX(4px);
}

.creative-feature-number {
    color: #9078e8;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
}

.creative-feature-line h3 {
    margin: 0 0 5px;
    font-size: clamp(19px, 2.1vw, 28px);
    letter-spacing: -.025em;
}

.creative-feature-line p {
    margin: 0;
    color: var(--muted);
}

.creative-feature-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 13px;
    white-space: nowrap;
}

.creative-feature-status {
    padding: 6px 10px;
    border-radius: 999px;
    color: #d9d0ff;
    background: rgba(124, 92, 255, .13);
    font-size: 12px;
    font-weight: 850;
}

.creative-feature-meta a {
    font-weight: 850;
    text-decoration: none;
}

@media (max-width: 900px) {
    .studio-template-row {
        grid-template-columns: 1fr;
    }

    .studio-template-fields {
        grid-template-columns: repeat(2, 1fr);
    }

    .creative-lab-heading {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .studio-template-fields {
        grid-template-columns: 1fr;
    }

    .creative-feature-line {
        grid-template-columns: 38px 1fr;
        align-items: start;
    }

    .creative-feature-meta {
        grid-column: 2;
        justify-content: flex-start;
        flex-wrap: wrap;
        white-space: normal;
    }
}



/* REAL-NEW-TEMPLATE-PREVIEWS-V2 */



.template-preview {

    position: relative;

    overflow: hidden;

}



.template-preview .generated-template-video,

.template-preview .server-template-video {

    position: absolute;

    inset: 0;

    z-index: 1;

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    background: #111;

}



.template-preview .template-symbol {

    position: relative;

    z-index: 0;

}



.template-preview .badge,

.template-preview .preview-mode {

    position: relative;

    z-index: 2;

}



.creative-feature-line.has-video-preview {

    align-items: center;

}



.creative-feature-preview {

    display: block;

    width: 190px;

    max-width: 100%;

    aspect-ratio: 16 / 9;

    border-radius: 14px;

    object-fit: cover;

    background: #111;

    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);

}



.admin-template-preview {

    display: grid;

    gap: 10px;

    margin: 14px 0;

    padding: 12px;

    border: 1px solid rgba(127, 127, 127, .28);

    border-radius: 14px;

    background: rgba(127, 127, 127, .07);

}



.admin-template-preview video {

    display: block;

    width: min(380px, 100%);

    max-height: 240px;

    border-radius: 10px;

    object-fit: cover;

    background: #111;

}



.admin-template-preview code {

    display: block;

    overflow-wrap: anywhere;

    white-space: normal;

    font-size: 12px;

}



.admin-preview-missing {

    color: #c14545;

    font-weight: 700;

}



/* Заметный блок массовой публикации в админке. */

label:has(input[name="bulk_publish_new"]) {

    display: flex;

    align-items: center;

    gap: 10px;

    margin: 16px 0;

    padding: 16px;

    border: 2px solid #725cff;

    border-radius: 14px;

    background: rgba(114, 92, 255, .13);

    font-weight: 800;

}



input[name="bulk_publish_new"] {

    width: 20px;

    height: 20px;

    accent-color: #725cff;

}



@media (max-width: 760px) {

    .creative-feature-preview {

        width: 100%;

    }



    .creative-feature-line.has-video-preview {

        align-items: stretch;

    }

}





/* HOME-MOBILE-CREATIVE-COMPACT-V4 */

@media (max-width: 760px) {

    .creative-feature-list {

        display: grid;

        gap: 10px;

    }



    .creative-feature-line,

    .creative-feature-line.has-video-preview {

        display: grid;

        grid-template-columns: 28px minmax(96px, 34%) minmax(0, 1fr);

        gap: 8px 10px;

        align-items: start;

        min-width: 0;

        padding: 12px 0;

    }



    .creative-feature-line > .creative-feature-preview {

        grid-column: 2;

        grid-row: 1;

        width: 100%;

        min-width: 0;

        aspect-ratio: 16 / 9;

        border-radius: 10px;

    }



    .creative-feature-line > .creative-feature-number {

        grid-column: 1;

        grid-row: 1;

        line-height: 1.35;

    }



    .creative-feature-line > div:not(.creative-feature-meta) {

        grid-column: 3;

        grid-row: 1;

        min-width: 0;

    }



    .creative-feature-line h3 {

        margin: 0 0 5px;

        font-size: 15px;

        line-height: 1.2;

        word-break: normal;

        overflow-wrap: normal;

        hyphens: none;

    }



    .creative-feature-line > div:not(.creative-feature-meta) p {

        display: -webkit-box;

        margin: 0;

        overflow: hidden;

        font-size: 12px;

        line-height: 1.35;

        -webkit-box-orient: vertical;

        -webkit-line-clamp: 2;

    }



    .creative-feature-line > .creative-feature-meta {

        grid-column: 2 / -1;

        grid-row: 2;

        display: flex;

        flex-flow: row wrap;

        gap: 7px 12px;

        align-items: center;

        min-width: 0;

        font-size: 12px;

    }



    .creative-feature-meta a {

        margin-left: auto;

        white-space: nowrap;

    }

}



@media (max-width: 360px) {

    .creative-feature-line,

    .creative-feature-line.has-video-preview {

        grid-template-columns: 22px 92px minmax(0, 1fr);

        gap: 7px;

    }



    .creative-feature-line h3 {

        font-size: 14px;

    }

}





/* HOME-CAROUSEL-V6-SOUND-AND-LIGHT */

.hero-preview-controls {

    grid-template-columns: 44px 44px minmax(0, 1fr) 44px;
}



.hero-preview-sound {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-size: 17px;

    line-height: 1;

}



.hero-preview-carousel.sound-needs-gesture

.hero-preview-sound {

    border-color: rgba(255, 213, 128, 0.9);

    box-shadow:

        0 0 0 3px rgba(255, 213, 128, 0.2),

        0 10px 24px rgba(0, 0, 0, 0.22);

}



html[data-theme="light"],

body[data-theme="light"],

html.light-theme,

body.light-theme {

    --text-primary: #191620;

    --text-secondary: #514b59;

    --text-muted: #68616f;

    color: #191620;

}



html[data-theme="light"] body,

body[data-theme="light"],

html.light-theme body,

body.light-theme {

    color: #191620;

}



html[data-theme="light"] main,

body[data-theme="light"] main,

html.light-theme main,

body.light-theme main,

html[data-theme="light"] .template-card,

body[data-theme="light"] .template-card,

html[data-theme="light"] .creative-feature-line,

body[data-theme="light"] .creative-feature-line {

    color: #191620;

}



html[data-theme="light"] main h1,

html[data-theme="light"] main h2,

html[data-theme="light"] main h3,

html[data-theme="light"] main h4,

body[data-theme="light"] main h1,

body[data-theme="light"] main h2,

body[data-theme="light"] main h3,

body[data-theme="light"] main h4,

html.light-theme main h1,

html.light-theme main h2,

html.light-theme main h3,

html.light-theme main h4 {

    color: #191620 !important;

    -webkit-text-fill-color: #191620 !important;

}



html[data-theme="light"] main p,

html[data-theme="light"] main li,

html[data-theme="light"] main label,

body[data-theme="light"] main p,

body[data-theme="light"] main li,

body[data-theme="light"] main label,

html.light-theme main p,

html.light-theme main li,

html.light-theme main label {

    color: #514b59;

}



html[data-theme="light"] .hero-preview-content,

body[data-theme="light"] .hero-preview-content,

html.light-theme .hero-preview-content,

body.light-theme .hero-preview-content {

    padding: 14px 16px;

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.82);

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

}



html[data-theme="light"] .hero-preview-title,

html[data-theme="light"] .hero-preview-description,

html[data-theme="light"] .hero-preview-category,

html[data-theme="light"] .hero-preview-open,

body[data-theme="light"] .hero-preview-title,

body[data-theme="light"] .hero-preview-description,

body[data-theme="light"] .hero-preview-category,

body[data-theme="light"] .hero-preview-open,

html.light-theme .hero-preview-title,

html.light-theme .hero-preview-description,

html.light-theme .hero-preview-category,

html.light-theme .hero-preview-open {

    color: #191620 !important;

    -webkit-text-fill-color: #191620 !important;

    text-shadow: none !important;

}



html[data-theme="light"] .hero-preview-description,

body[data-theme="light"] .hero-preview-description,

html.light-theme .hero-preview-description {

    color: #514b59 !important;

    -webkit-text-fill-color: #514b59 !important;

}



html[data-theme="light"] .hero-preview-top,

body[data-theme="light"] .hero-preview-top,

html.light-theme .hero-preview-top {

    color: #191620;

}



html[data-theme="light"] .hero-preview-status,

html[data-theme="light"] .hero-preview-counter,

body[data-theme="light"] .hero-preview-status,

body[data-theme="light"] .hero-preview-counter,

html.light-theme .hero-preview-status,

html.light-theme .hero-preview-counter {

    color: #191620 !important;

    -webkit-text-fill-color: #191620 !important;

    background: rgba(255, 255, 255, 0.84);

}



@media (max-width: 620px) {

    .hero-preview-controls {

        grid-template-columns: 40px 40px minmax(0, 1fr) 40px;

        gap: 8px;

    }



    .hero-preview-sound {

        width: 40px;

        height: 40px;

    }



    html[data-theme="light"] .hero-preview-content,

    body[data-theme="light"] .hero-preview-content,

    html.light-theme .hero-preview-content {

        padding: 11px 12px;

    }

}





/* HOME-CAROUSEL-FINAL-V7 */



.hero-preview-controls {

    grid-template-columns:

        44px 44px minmax(0, 1fr) 44px !important;

}



.hero-preview-sound {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-size: 17px;

    line-height: 1;

}



.hero-preview-carousel.sound-needs-gesture

.hero-preview-sound {

    border-color: rgba(255, 213, 128, 0.95);

    box-shadow:

        0 0 0 3px rgba(255, 213, 128, 0.2),

        0 10px 25px rgba(0, 0, 0, 0.25);

}



/* Dark readable text in light theme. */

html[data-theme="light"] body,

html[data-theme="light"] main,

html[data-theme="light"] header,

html[data-theme="light"] footer,

html[data-theme="light"] section,

html[data-theme="light"] article {

    color: #211e29;

}



html[data-theme="light"] main h1,

html[data-theme="light"] main h2,

html[data-theme="light"] main h3,

html[data-theme="light"] main h4,

html[data-theme="light"] .creative-feature-line h3,

html[data-theme="light"] .template-content h3 {

    color: #211e29 !important;

    -webkit-text-fill-color: #211e29 !important;

}



html[data-theme="light"] main p,

html[data-theme="light"] .creative-feature-meta,

html[data-theme="light"] .creative-feature-status {

    color: #58515f;

}



html[data-theme="light"] .hero-preview-content {

    padding: 14px 16px;

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.86);

    box-shadow: 0 14px 40px rgba(20, 15, 30, 0.12);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

}



html[data-theme="light"] .hero-preview-title,

html[data-theme="light"] .hero-preview-category,

html[data-theme="light"] .hero-preview-open {

    color: #211e29 !important;

    -webkit-text-fill-color: #211e29 !important;

    text-shadow: none !important;

}



html[data-theme="light"] .hero-preview-description {

    color: #58515f !important;

    -webkit-text-fill-color: #58515f !important;

    text-shadow: none !important;

}



html[data-theme="light"] .hero-preview-status,

html[data-theme="light"] .hero-preview-counter {

    color: #211e29 !important;

    -webkit-text-fill-color: #211e29 !important;

    border-color: rgba(33, 30, 41, 0.15);

    background: rgba(255, 255, 255, 0.86);

}



/* Compact mobile list of templates. */

@media (max-width: 760px) {

    .creative-feature-list {

        display: grid;

        gap: 10px;

    }



    .creative-feature-line,

    .creative-feature-line.has-video-preview {

        position: relative;

        display: grid;

        grid-template-columns: 94px minmax(0, 1fr);

        grid-template-rows: auto auto;

        align-items: start;

        gap: 7px 12px;

        min-width: 0;

        padding: 11px;

        border: 1px solid var(--border);

        border-radius: 16px;

    }



    .creative-feature-number {

        display: none;

    }



    .creative-feature-preview {

        grid-column: 1;

        grid-row: 1 / 3;

        width: 94px !important;

        height: 118px !important;

        min-width: 0 !important;

        border-radius: 11px;

        object-fit: cover;

    }



    .creative-feature-line > div:not(.creative-feature-meta) {

        grid-column: 2;

        grid-row: 1;

        min-width: 0;

    }



    .creative-feature-line h3 {

        margin: 0 0 5px;

        font-size: 15px;

        line-height: 1.22;

        word-break: normal;

        overflow-wrap: break-word;

        hyphens: none;

    }



    .creative-feature-line

    > div:not(.creative-feature-meta)

    > p {

        display: -webkit-box;

        margin: 0;

        overflow: hidden;

        font-size: 12px;

        line-height: 1.4;

        -webkit-box-orient: vertical;

        -webkit-line-clamp: 2;

    }



    .creative-feature-meta {

        grid-column: 2;

        grid-row: 2;

        display: flex;

        align-items: center;

        flex-flow: row wrap;

        gap: 5px 10px;

        min-width: 0;

        font-size: 11px;

        line-height: 1.3;

    }



    .creative-feature-meta a {

        margin-left: auto;

        white-space: nowrap;

    }



    .hero-preview-controls {

        grid-template-columns:

            40px 40px minmax(0, 1fr) 40px !important;

        gap: 8px !important;

    }



    .hero-preview-arrow,

    .hero-preview-sound {

        width: 40px;

        height: 40px;
}

}



@media (max-width: 370px) {

    .creative-feature-line,

    .creative-feature-line.has-video-preview {

        grid-template-columns: 78px minmax(0, 1fr);

        gap: 6px 9px;

        padding: 9px;

    }



    .creative-feature-preview {

        width: 78px !important;

        height: 106px !important;

    }



    .creative-feature-line h3 {

        font-size: 14px;

    }

}





/* HOME-MOBILE-CAROUSEL-V8 */



/*

 * На видеослайдере оставляем только компактную ссылку.

 */

.hero-preview-content {

    right: 16px !important;

    bottom: 78px !important;

    left: auto !important;

    width: auto !important;

    max-width: calc(100% - 32px) !important;

    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;

    box-shadow: none !important;

    backdrop-filter: none !important;

    -webkit-backdrop-filter: none !important;

}



.hero-preview-category,

.hero-preview-title,

.hero-preview-description {

    display: none !important;

}



.hero-preview-link {

    display: block !important;

    width: auto !important;

    color: inherit !important;

    text-decoration: none !important;

}



.hero-preview-open {

    display: inline-flex !important;

    align-items: center;

    justify-content: center;

    min-height: 42px;

    padding: 10px 16px;

    border: 1px solid rgba(255, 255, 255, 0.48);

    border-radius: 999px;

    color: #ffffff !important;

    background: rgba(15, 12, 20, 0.72);

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);

    font-size: 13px;

    font-weight: 750;

    line-height: 1;

    letter-spacing: 0;

    white-space: nowrap;

    text-shadow: none !important;

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

}



.hero-preview-open:hover {

    background: rgba(15, 12, 20, 0.9);

    transform: translateY(-1px);

}



html[data-theme="light"] .hero-preview-content {

    background: transparent !important;

    box-shadow: none !important;

}



html[data-theme="light"] .hero-preview-open {

    color: #ffffff !important;

    -webkit-text-fill-color: #ffffff !important;

    background: rgba(25, 21, 31, 0.76);

}



/*

 * Мобильная версия главной страницы.

 */

@media (max-width: 760px) {

    html,

    body {

        max-width: 100%;

        overflow-x: hidden;

    }



    .container {

        width: 100%;

        max-width: 100%;

        min-width: 0;

    }



    .hero-grid,

    .card-grid,

    .creative-lab-heading,

    .creative-feature-list {

        min-width: 0;

    }



    /*

     * Основной видеослайдер.

     */

    .hero-card,

    .hero-preview-carousel,

    .hero-preview-media {

        width: 100%;

        max-width: 100%;

        min-width: 0;

    }



    .hero-preview-content {

        right: 12px !important;

        bottom: 68px !important;

        left: auto !important;

        max-width: calc(100% - 24px) !important;
}



    .hero-preview-open {

        min-height: 38px;

        padding: 9px 13px;

        font-size: 12px;

    }



    /*

     * Популярные шаблоны непосредственно под главным блоком.

     */

    .card-grid {

        display: grid !important;

        grid-template-columns: minmax(0, 1fr) !important;

        gap: 14px !important;

        width: 100%;

    }



    .template-card {

        display: grid !important;

        grid-template-columns: minmax(0, 1fr) !important;

        width: 100% !important;

        min-width: 0 !important;

        max-width: 100% !important;

        overflow: hidden;

    }



    .template-preview,

    .template-content {

        width: 100% !important;

        min-width: 0 !important;

        max-width: 100% !important;

    }



    .template-preview {

        aspect-ratio: 16 / 9;

        height: auto !important;

    }



    .template-preview video {

        width: 100% !important;

        height: 100% !important;

        object-fit: cover;

    }



    .template-content {

        box-sizing: border-box;

    }



    /*

     * Заголовок секции со списком возможностей.

     */

    .creative-lab-heading {

        display: grid !important;

        grid-template-columns: minmax(0, 1fr) !important;

        gap: 12px !important;

        width: 100%;

    }



    .creative-lab-heading > * {

        width: 100%;

        min-width: 0;

        max-width: 100%;

    }



    /*

     * Полностью переопределяем десктопную сетку списка.

     */

    .creative-feature-list {

        display: grid !important;

        grid-template-columns: minmax(0, 1fr) !important;

        gap: 12px !important;

        width: 100% !important;

        max-width: 100% !important;

    }



    .creative-feature-list .creative-feature-line,

    .creative-feature-list .creative-feature-line.has-video-preview {

        display: grid !important;

        grid-template-columns: 96px minmax(0, 1fr) !important;

        grid-template-rows: auto auto !important;

        grid-auto-columns: auto !important;

        align-items: start !important;

        gap: 8px 12px !important;



        width: 100% !important;

        min-width: 0 !important;

        max-width: 100% !important;

        box-sizing: border-box !important;



        margin: 0 !important;

        padding: 11px !important;

        overflow: hidden !important;



        border: 1px solid var(--border) !important;

        border-radius: 16px !important;

    }



    .creative-feature-list .creative-feature-number {

        display: none !important;

    }



    .creative-feature-list .creative-feature-preview {

        grid-column: 1 !important;

        grid-row: 1 / span 2 !important;



        display: block !important;

        width: 96px !important;

        min-width: 96px !important;

        max-width: 96px !important;

        height: 112px !important;

        min-height: 112px !important;

        max-height: 112px !important;



        margin: 0 !important;

        border-radius: 11px !important;

        object-fit: cover !important;

    }



    .creative-feature-list

    .creative-feature-line

    > div:not(.creative-feature-meta) {

        grid-column: 2 !important;

        grid-row: 1 !important;



        width: 100% !important;

        min-width: 0 !important;

        max-width: 100% !important;

        margin: 0 !important;

    }



    .creative-feature-list .creative-feature-line h3 {

        width: 100%;

        min-width: 0;

        margin: 0 0 5px !important;



        font-size: 15px !important;

        line-height: 1.25 !important;

        word-break: normal !important;

        overflow-wrap: anywhere;

        hyphens: none !important;

    }



    .creative-feature-list

    .creative-feature-line

    > div:not(.creative-feature-meta)

    > p {

        display: -webkit-box !important;

        width: 100%;

        min-width: 0;

        margin: 0 !important;

        overflow: hidden !important;



        font-size: 12px !important;

        line-height: 1.4 !important;



        -webkit-box-orient: vertical;

        -webkit-line-clamp: 2;

    }



    .creative-feature-list .creative-feature-meta {

        grid-column: 2 !important;

        grid-row: 2 !important;



        display: flex !important;

        align-items: center !important;

        flex-flow: row wrap !important;

        gap: 5px 9px !important;



        width: 100% !important;

        min-width: 0 !important;

        max-width: 100% !important;

        margin: 0 !important;



        font-size: 11px !important;

        line-height: 1.3 !important;

    }



    .creative-feature-list .creative-feature-meta > * {

        min-width: 0;

    }



    .creative-feature-list .creative-feature-meta a {

        margin-left: auto !important;

        white-space: nowrap;

    }

}



/*

 * Совсем узкие экраны.

 */

@media (max-width: 370px) {

    .creative-feature-list .creative-feature-line,

    .creative-feature-list .creative-feature-line.has-video-preview {

        grid-template-columns: 82px minmax(0, 1fr) !important;

        gap: 7px 9px !important;

        padding: 9px !important;

    }



    .creative-feature-list .creative-feature-preview {

        width: 82px !important;

        min-width: 82px !important;

        max-width: 82px !important;

        height: 104px !important;

        min-height: 104px !important;

        max-height: 104px !important;

    }



    .creative-feature-list .creative-feature-line h3 {

        font-size: 14px !important;

    }



    .creative-feature-list .creative-feature-meta {

        gap: 4px 7px !important;

        font-size: 10px !important;

    }

}





/* HOME-THEME-CAROUSEL-V9 */



/*

 * В видеослайдере отображаются:

 * 1. название текущего шаблона;

 * 2. компактная ссылка «Открыть шаблон».

 *

 * Категория и длинное описание скрыты.

 */

.hero-preview-category,

.hero-preview-description {

    display: none !important;

}



.hero-preview-content {

    right: 16px !important;

    bottom: 76px !important;

    left: 16px !important;



    display: flex !important;

    width: auto !important;

    max-width: none !important;

    padding: 0 !important;



    border: 0 !important;

    background: transparent !important;

    box-shadow: none !important;

    backdrop-filter: none !important;

    -webkit-backdrop-filter: none !important;



    pointer-events: none;

}



.hero-preview-link {

    display: flex !important;

    width: 100% !important;

    min-width: 0 !important;

    align-items: flex-end !important;

    justify-content: space-between !important;

    gap: 14px !important;



    color: #ffffff !important;

    text-decoration: none !important;

    pointer-events: auto;

}



.hero-preview-title {

    display: block !important;

    min-width: 0;

    margin: 0 !important;



    color: #ffffff !important;

    -webkit-text-fill-color: #ffffff !important;



    font-size: clamp(17px, 2vw, 23px) !important;

    font-weight: 800 !important;

    line-height: 1.15 !important;

    letter-spacing: -0.02em !important;



    overflow-wrap: normal !important;

    word-break: normal !important;



    text-shadow:

        0 2px 5px rgba(0, 0, 0, 0.85),

        0 8px 24px rgba(0, 0, 0, 0.72) !important;

}



.hero-preview-open {

    display: inline-flex !important;

    flex: 0 0 auto;

    align-items: center;

    justify-content: center;



    min-height: 40px;

    padding: 9px 15px;



    border: 1px solid rgba(255, 255, 255, 0.44);

    border-radius: 999px;



    color: #ffffff !important;

    -webkit-text-fill-color: #ffffff !important;

    background: rgba(13, 13, 20, 0.76);



    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);



    font-size: 12px !important;

    font-weight: 800 !important;

    line-height: 1 !important;

    white-space: nowrap;

    text-shadow: none !important;



    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

}



.hero-preview-link:hover .hero-preview-open,

.hero-preview-link:focus-visible .hero-preview-open {

    border-color: rgba(255, 255, 255, 0.72);

    background: rgba(13, 13, 20, 0.94);

}



/*

 * Оформление слайдера остаётся тёмным даже в том случае,

 * если пользователь вручную включил светлую тему.

 */

html[data-theme="light"] .hero-preview-content {

    background: transparent !important;

    box-shadow: none !important;

}



html[data-theme="light"] .hero-preview-title {

    color: #ffffff !important;

    -webkit-text-fill-color: #ffffff !important;

}



html[data-theme="light"] .hero-preview-open {

    color: #ffffff !important;

    -webkit-text-fill-color: #ffffff !important;

    background: rgba(13, 13, 20, 0.76) !important;

}



/*

 * Мобильная версия: название не перекрывает элементы управления,

 * кнопка располагается рядом или переносится ниже.

 */

@media (max-width: 760px) {

    .hero-preview-content {

        right: 12px !important;

        bottom: 65px !important;

        left: 12px !important;

    }



    .hero-preview-link {

        gap: 10px !important;

    }



    .hero-preview-title {

        font-size: 16px !important;

        line-height: 1.2 !important;

    }



    .hero-preview-open {

        min-height: 36px;

        padding: 8px 12px;

        font-size: 11px !important;

    }

}



@media (max-width: 430px) {

    .hero-preview-link {

        align-items: flex-start !important;

        flex-direction: column !important;

        gap: 8px !important;

    }



    .hero-preview-title {

        max-width: calc(100% - 8px);

    }



    .hero-preview-open {

        align-self: flex-start;

    }

}



@media (max-width: 370px) {

    .hero-preview-content {

        bottom: 62px !important;

    }



    .hero-preview-title {

        font-size: 15px !important;

    }



    .hero-preview-open {

        min-height: 34px;

        padding: 7px 11px;

        font-size: 10px !important;

    }

}




/* DESKTOP-FEATURE-META-FIX */

@media (min-width: 761px) {

    .creative-feature-line.has-video-preview {

        display: grid !important;

        grid-template-columns: 120px 52px minmax(0, 1fr) auto !important;

        align-items: center !important;

        gap: 20px !important;

    }



    .creative-feature-line .creative-feature-preview {

        grid-column: 1 !important;

    }



    .creative-feature-line .creative-feature-number {

        grid-column: 2 !important;

    }



    .creative-feature-line > div:not(.creative-feature-meta) {

        grid-column: 3 !important;

        min-width: 0;

    }



    .creative-feature-line .creative-feature-meta {

        grid-column: 4 !important;

        display: flex !important;

        align-items: center !important;

        justify-content: flex-end !important;

        gap: 14px !important;

        margin: 0 !important;

        white-space: nowrap;

    }

}

/* FIXED-HEADER-V14-START

 * Шапка всегда закреплена у верхней границы окна.

 */

:root {

    --site-header-height: 76px;

}



html {

    scroll-padding-top: var(--site-header-height);

}



body {

    padding-top: var(--site-header-height) !important;

}



.site-header {

    position: fixed !important;

    z-index: 1000 !important;

    top: 0 !important;

    right: 0 !important;

    bottom: auto !important;

    left: 0 !important;

    width: 100% !important;

    margin: 0 !important;

    transform: none !important;

}



.site-header .header-row {

    min-height: var(--site-header-height);

}



/* FIXED-HEADER-V14-END */
/* SHARE-ICON-ONLY-V2 */
.creative-share-button{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;padding:0!important;border-radius:50%!important;display:inline-grid!important;place-items:center!important;overflow:hidden!important;color:transparent!important;background:rgba(255,255,255,.08)!important;border:1px solid rgba(124,58,237,.55)!important;box-shadow:0 8px 24px rgba(6,182,212,.16)!important;cursor:pointer!important;transition:transform .2s ease,box-shadow .2s ease,background .2s ease!important}
.creative-share-button .creative-share-label,.creative-share-button>svg{display:none!important}
.creative-share-button::before{content:""!important;display:block!important;width:22px!important;height:22px!important;background:linear-gradient(135deg,#8b5cf6,#06b6d4,#f43f5e)!important;-webkit-mask:url(data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%3E%3Cg%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%3E%3Ccircle%20cx=%2218%22%20cy=%225%22%20r=%223%22/%3E%3Ccircle%20cx=%226%22%20cy=%2212%22%20r=%223%22/%3E%3Ccircle%20cx=%2218%22%20cy=%2219%22%20r=%223%22/%3E%3Cpath%20d=%22M8.6%2010.5l6.8-4M8.6%2013.5l6.8%204%22/%3E%3C/g%3E%3C/svg%3E) center/contain no-repeat!important;mask:url(data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%3E%3Cg%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%3E%3Ccircle%20cx=%2218%22%20cy=%225%22%20r=%223%22/%3E%3Ccircle%20cx=%226%22%20cy=%2212%22%20r=%223%22/%3E%3Ccircle%20cx=%2218%22%20cy=%2219%22%20r=%223%22/%3E%3Cpath%20d=%22M8.6%2010.5l6.8-4M8.6%2013.5l6.8%204%22/%3E%3C/g%3E%3C/svg%3E) center/contain no-repeat!important}
.creative-share-button::after{display:none!important}
.creative-share-button:hover{transform:translateY(-2px) scale(1.06)!important;background:rgba(124,58,237,.16)!important;box-shadow:0 10px 30px rgba(124,58,237,.3)!important}
.creative-share-button:focus-visible{outline:3px solid rgba(6,182,212,.5)!important;outline-offset:3px!important}



/* SHARE-TEXT-BUTTON-V3 */

.creative-share-button {

    width: auto !important;

    height: 42px !important;

    min-width: 145px !important;

    min-height: 42px !important;

    padding: 0 20px !important;

    border: 0 !important;

    border-radius: 999px !important;

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    overflow: visible !important;

    color: transparent !important;

    font-size: 0 !important;

    line-height: 1 !important;

    background: linear-gradient(

        135deg,

        #7c3aed 0%,

        #2563eb 48%,

        #06b6d4 100%

    ) !important;

    box-shadow:

        0 8px 22px rgba(37, 99, 235, .32),

        inset 0 1px 0 rgba(255, 255, 255, .25) !important;

    cursor: pointer !important;

    transition:

        transform .2s ease,

        box-shadow .2s ease,

        filter .2s ease !important;

}



.creative-share-button > *,

.creative-share-button .creative-share-label,

.creative-share-button > svg,

.creative-share-button::before {

    display: none !important;

}



.creative-share-button::after {

    content: "Поделиться ✨" !important;

    display: inline-block !important;

    color: #fff !important;

    font-family: inherit !important;

    font-size: 14px !important;

    font-weight: 800 !important;

    line-height: 1 !important;

    letter-spacing: .02em !important;

    white-space: nowrap !important;

}



.creative-share-button:hover {

    transform: translateY(-2px) scale(1.03) !important;

    filter: brightness(1.1) !important;

    box-shadow:

        0 12px 30px rgba(124, 58, 237, .42),

        inset 0 1px 0 rgba(255, 255, 255, .3) !important;

}



.creative-share-button:active {

    transform: translateY(0) scale(.98) !important;

}



.creative-share-button:focus-visible {

    outline: 3px solid rgba(34, 211, 238, .55) !important;

    outline-offset: 3px !important;

}




/* SHARE-RESPONSIVE-FINAL-V4 */



/*

 * Компактная кнопка на ПК и мобильных.

 * Используется настоящий текст из .creative-share-label.

 */

button.creative-share-button {

    position: relative !important;

    box-sizing: border-box !important;

    display: inline-flex !important;

    flex: 0 0 auto !important;

    align-items: center !important;

    justify-content: center !important;



    width: auto !important;

    min-width: 0 !important;

    max-width: 132px !important;

    height: 38px !important;

    min-height: 38px !important;



    margin: 0 !important;

    padding: 0 14px !important;

    overflow: hidden !important;



    border: 1px solid rgba(255, 255, 255, .32) !important;

    border-radius: 999px !important;



    color: #fff !important;

    -webkit-text-fill-color: #fff !important;



    background:

        linear-gradient(

            135deg,

            rgba(124, 58, 237, .94),

            rgba(37, 99, 235, .94)

        ) !important;



    box-shadow:

        0 7px 18px rgba(31, 41, 100, .25),

        inset 0 1px 0 rgba(255, 255, 255, .22) !important;



    font-family: inherit !important;

    font-size: 12px !important;

    font-weight: 800 !important;

    line-height: 1 !important;

    letter-spacing: 0 !important;

    white-space: nowrap !important;



    cursor: pointer !important;

    visibility: visible !important;

    opacity: 1 !important;



    transform: none !important;

    transition:

        transform .18s ease,

        filter .18s ease,

        box-shadow .18s ease !important;

}



/* Убираем сломанные значки и псевдотекст предыдущих правок. */

button.creative-share-button::before,

button.creative-share-button::after,

button.creative-share-button > svg {

    display: none !important;

    content: none !important;

}



/* Возвращаем настоящий текст кнопки. */

button.creative-share-button .creative-share-label {

    position: static !important;

    display: inline !important;



    width: auto !important;

    height: auto !important;

    margin: 0 !important;

    padding: 0 !important;



    overflow: visible !important;

    clip: auto !important;



    color: #fff !important;

    -webkit-text-fill-color: #fff !important;



    font-family: inherit !important;

    font-size: inherit !important;

    font-weight: inherit !important;

    line-height: 1 !important;

    white-space: nowrap !important;



    visibility: visible !important;

    opacity: 1 !important;

}



/* Кнопка внутри верхней строки видеослайдера. */

.hero-preview-top.has-share-button {

    display: grid !important;

    grid-template-columns: auto minmax(0, 1fr) auto !important;

    align-items: center !important;

    gap: 10px !important;

}



.hero-preview-top.has-share-button .hero-preview-counter {

    justify-self: center !important;

}



button.share-carousel-button {

    justify-self: end !important;

    max-width: 122px !important;

}



/* Кнопки в остальных местах не растягиваются. */

button.share-card-button,

button.share-template-button,

button.share-result-button {

    width: auto !important;

    min-width: 0 !important;

}



/* Светлая тема: сохраняем контраст. */

html[data-theme="light"] button.creative-share-button {

    color: #fff !important;

    -webkit-text-fill-color: #fff !important;

    border-color: rgba(69, 42, 135, .24) !important;

}



/* Мобильная версия. */

@media (max-width: 720px) {

    .hero-preview-top.has-share-button {

        grid-template-columns: minmax(0, 1fr) auto !important;

        gap: 8px !important;

    }



    .hero-preview-top.has-share-button .hero-preview-counter {

        display: none !important;

    }



    button.creative-share-button,

    button.share-carousel-button {

        display: inline-flex !important;



        width: auto !important;

        min-width: 0 !important;

        max-width: 108px !important;

        height: 34px !important;

        min-height: 34px !important;



        padding: 0 11px !important;



        font-size: 11px !important;



        visibility: visible !important;

        opacity: 1 !important;

    }



    button.creative-share-button .creative-share-label,

    button.share-carousel-button .creative-share-label {

        position: static !important;

        display: inline !important;



        width: auto !important;

        height: auto !important;



        overflow: visible !important;

        clip: auto !important;



        font-size: 11px !important;



        visibility: visible !important;

        opacity: 1 !important;

    }

}



@media (max-width: 370px) {

    button.creative-share-button,

    button.share-carousel-button {

        max-width: 102px !important;

        height: 32px !important;

        min-height: 32px !important;

        padding: 0 9px !important;

        font-size: 10px !important;

    }



    button.creative-share-button .creative-share-label,

    button.share-carousel-button .creative-share-label {

        font-size: 10px !important;

    }

}



button.creative-share-button:hover {

    filter: brightness(1.1) !important;

    transform: translateY(-1px) !important;

    box-shadow:

        0 9px 22px rgba(67, 56, 202, .32),

        inset 0 1px 0 rgba(255, 255, 255, .25) !important;

}



button.creative-share-button:active {

    transform: scale(.97) !important;

}



button.creative-share-button:focus-visible {

    outline: 3px solid rgba(59, 130, 246, .42) !important;

    outline-offset: 2px !important;

}




/* SHARE-IN-TEMPLATE-META-V5 */



/*

 * Кнопка страницы шаблона теперь располагается

 * в одной строке со стоимостью и временем.

 */

.template-detail-meta > .share-template-button {

    box-sizing: border-box !important;

    position: static !important;



    display: inline-flex !important;

    flex: 0 0 auto !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 0 !important;



    width: auto !important;

    min-width: 0 !important;

    max-width: none !important;

    height: auto !important;

    min-height: 42px !important;



    margin: 0 !important;

    padding: 10px 15px !important;



    overflow: visible !important;



    border: 1px solid rgba(185, 167, 255, .34) !important;

    border-radius: 12px !important;



    color: var(--text, #f7f4f1) !important;

    -webkit-text-fill-color: var(--text, #f7f4f1) !important;



    background:

        linear-gradient(

            135deg,

            rgba(185, 167, 255, .16),

            rgba(232, 201, 143, .10)

        ) !important;



    box-shadow:

        inset 0 1px 0 rgba(255, 255, 255, .08),

        0 7px 20px rgba(0, 0, 0, .12) !important;



    font-family: inherit !important;

    font-size: 14px !important;

    font-weight: 800 !important;

    line-height: 1.45 !important;

    letter-spacing: 0 !important;

    white-space: nowrap !important;



    visibility: visible !important;

    opacity: 1 !important;

    transform: none !important;

}



/* Отключаем старые иконки и псевдотекст. */

.template-detail-meta > .share-template-button::before,

.template-detail-meta > .share-template-button::after,

.template-detail-meta > .share-template-button > svg {

    display: none !important;

    content: none !important;

}



/*

 * Старое правило .template-detail-meta span затрагивает

 * подпись внутри кнопки — полностью его переопределяем.

 */

.template-detail-meta > .share-template-button

.creative-share-label {

    position: static !important;

    display: inline !important;



    width: auto !important;

    height: auto !important;



    margin: 0 !important;

    padding: 0 !important;

    overflow: visible !important;

    clip: auto !important;



    border: 0 !important;

    border-radius: 0 !important;



    color: inherit !important;

    -webkit-text-fill-color: inherit !important;

    background: transparent !important;



    font: inherit !important;

    line-height: inherit !important;

    white-space: nowrap !important;



    visibility: visible !important;

    opacity: 1 !important;

}



.template-detail-meta > .share-template-button:hover {

    border-color: rgba(185, 167, 255, .62) !important;

    background:

        linear-gradient(

            135deg,

            rgba(185, 167, 255, .25),

            rgba(232, 201, 143, .16)

        ) !important;

    box-shadow:

        inset 0 1px 0 rgba(255, 255, 255, .1),

        0 10px 25px rgba(94, 72, 170, .18) !important;

    filter: none !important;

    transform: translateY(-1px) !important;

}



.template-detail-meta > .share-template-button:active {

    transform: scale(.98) !important;

}



html[data-theme="light"]

.template-detail-meta > .share-template-button {

    color: #30283d !important;

    -webkit-text-fill-color: #30283d !important;

    border-color: rgba(102, 81, 200, .25) !important;

    background:

        linear-gradient(

            135deg,

            rgba(102, 81, 200, .10),

            rgba(139, 100, 31, .08)

        ) !important;

}



/*

 * На узком ПК метаданные переносятся аккуратно,

 * не выходя за границы колонки.

 */

.template-detail-meta {

    align-items: center !important;

}



.template-detail-meta > span,

.template-detail-meta > .share-template-button {

    flex: 0 0 auto !important;

}



/* На телефоне характеристики остаются удобными и читаемыми. */

@media (max-width: 760px) {

    .template-detail-meta {

        align-items: stretch !important;

    }



    .template-detail-meta > .share-template-button {

        width: 100% !important;

        max-width: none !important;

        min-height: 44px !important;

        padding: 11px 14px !important;

        font-size: 14px !important;

    }



    .template-detail-meta > .share-template-button

    .creative-share-label {

        width: auto !important;

        font-size: inherit !important;

        text-align: center !important;

    }

}





/* SHARE-META-FIX-V6 */

.template-detail-meta > .share-template-button {

    position: static !important;

    display: inline-flex !important;

    flex: 0 0 auto !important;

    align-items: center !important;

    justify-content: center !important;

    width: auto !important;

    min-width: 0 !important;

    max-width: none !important;

    min-height: 38px !important;

    margin: 0 !important;

    padding: 8px 13px !important;

    white-space: nowrap !important;

    visibility: visible !important;

    opacity: 1 !important;

}



.template-detail-meta > .share-template-button::before,

.template-detail-meta > .share-template-button::after,

.template-detail-meta > .share-template-button > svg {

    display: none !important;

    content: none !important;

}



.template-detail-meta > .share-template-button

.creative-share-label {

    position: static !important;

    display: inline !important;

    width: auto !important;

    height: auto !important;

    margin: 0 !important;

    padding: 0 !important;

    overflow: visible !important;

    clip: auto !important;

    border: 0 !important;

    background: transparent !important;

    color: inherit !important;

    font: inherit !important;

    white-space: nowrap !important;

    visibility: visible !important;

    opacity: 1 !important;

}



@media (max-width: 760px) {

    .template-detail-meta > .share-template-button {

        width: 100% !important;

    }

}





/* CATALOG-CARD-SHARE-IN-META-V8 */

.catalog-grid .template-card .template-meta {

    display: flex !important;

    align-items: center !important;

    justify-content: flex-start !important;

    flex-wrap: nowrap !important;

    gap: 10px !important;

    width: 100% !important;

}



.catalog-grid .template-card .template-meta > span {

    flex: 0 0 auto !important;

    white-space: nowrap !important;

}



.catalog-grid .template-card

.template-meta > .share-card-button {

    position: static !important;

    inset: auto !important;

    display: inline-flex !important;

    flex: 0 0 auto !important;

    align-items: center !important;

    justify-content: center !important;



    width: auto !important;

    min-width: 0 !important;

    max-width: none !important;

    height: 30px !important;

    min-height: 30px !important;



    margin: 0 0 0 auto !important;

    padding: 0 10px !important;



    border-radius: 999px !important;

    overflow: visible !important;

    white-space: nowrap !important;

    visibility: visible !important;

    opacity: 1 !important;

    transform: none !important;



    font-size: 11px !important;

    line-height: 1 !important;

}



.catalog-grid .template-card

.template-meta > .share-card-button > svg,

.catalog-grid .template-card

.template-meta > .share-card-button::before,

.catalog-grid .template-card

.template-meta > .share-card-button::after {

    display: none !important;

    content: none !important;

}



.catalog-grid .template-card

.template-meta > .share-card-button

.creative-share-label {

    position: static !important;

    display: inline !important;



    width: auto !important;

    height: auto !important;

    margin: 0 !important;

    padding: 0 !important;



    clip: auto !important;

    clip-path: none !important;

    overflow: visible !important;



    color: inherit !important;

    -webkit-text-fill-color: currentColor !important;

    font: inherit !important;

    line-height: 1 !important;

    white-space: nowrap !important;

    visibility: visible !important;

    opacity: 1 !important;

}



@media (max-width: 420px) {

    .catalog-grid .template-card .template-meta {

        gap: 7px !important;

    }



    .catalog-grid .template-card

    .template-meta > .share-card-button {

        height: 28px !important;

        min-height: 28px !important;

        padding: 0 8px !important;

        font-size: 10px !important;

    }

}



/* MOBILE-TEMPLATE-FAVORITE-V1 */



/*

 * На компьютере расположение существующей кнопки не меняется.

 * На телефоне JS переносит её внутрь блока предпросмотра шаблона.

 */

@media (max-width: 768px) {

    .template-showcase {

        position: relative !important;

    }



    .template-showcase .mobile-template-favorite {

        position: absolute !important;

        z-index: 30 !important;

        top: 12px !important;

        right: 12px !important;



        display: inline-flex !important;

        visibility: visible !important;

        opacity: 1 !important;



        align-items: center !important;

        justify-content: center !important;



        width: 46px !important;

        min-width: 46px !important;

        height: 46px !important;

        min-height: 46px !important;

        margin: 0 !important;

        padding: 0 !important;



        color: #ffffff !important;

        background: rgba(11, 13, 16, 0.76) !important;

        border: 1px solid rgba(255, 255, 255, 0.48) !important;

        border-radius: 999px !important;

        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;



        -webkit-backdrop-filter: blur(10px) !important;

        backdrop-filter: blur(10px) !important;



        cursor: pointer !important;

        pointer-events: auto !important;

        transform: none !important;

    }



    .template-showcase .mobile-template-favorite:hover,

    .template-showcase .mobile-template-favorite:focus,

    .template-showcase .mobile-template-favorite[aria-pressed="true"],

    .template-showcase .mobile-template-favorite.is-active,

    .template-showcase .mobile-template-favorite.active {

        color: #ff4f70 !important;

        border-color: rgba(255, 79, 112, 0.78) !important;

        background: rgba(35, 12, 19, 0.9) !important;

    }



    .template-showcase .mobile-template-favorite svg {

        display: block !important;

        width: 22px !important;

        height: 22px !important;

        margin: auto !important;

        pointer-events: none !important;

    }



    .template-showcase .mobile-template-favorite span {

        pointer-events: none;

    }



    /*

     * Если у кнопки имеется текст, на мобильном оставляем только значок.

     */

    .template-showcase .mobile-template-favorite .favorite-label,

    .template-showcase .mobile-template-favorite .favorite-text,

    .template-showcase .mobile-template-favorite .template-favorite-text {

        display: none !important;
}

}



/* FOOTER-EMERGENCY-FIX-1787917288 */

footer.uf-footer[data-unified-footer] {

    clear: both !important;

    display: block !important;

    width: 100% !important;

    overflow: hidden !important;

}



footer.uf-footer .uf-wrap {

    display: block !important;

    width: min(1240px, calc(100% - 32px)) !important;

    max-width: 1240px !important;

    margin: 0 auto !important;

}



footer.uf-footer .uf-top {

    display: grid !important;

    grid-template-columns: 1.25fr 1fr 1fr 1fr !important;

    align-items: start !important;

    gap: 20px 38px !important;

}



footer.uf-footer .uf-top > * {

    display: block !important;

    width: auto !important;

    min-width: 0 !important;

    max-width: none !important;

}



footer.uf-footer .uf-links {

    display: flex !important;

    flex-flow: row wrap !important;

    gap: 6px 14px !important;

    margin: 0 !important;

    padding: 0 !important;

    list-style: none !important;

}



footer.uf-footer .uf-payment {

    display: block !important;

    width: 100% !important;

    overflow: hidden !important;

}



footer.uf-footer .uf-logos {

    display: grid !important;

    grid-template-columns: repeat(12, minmax(72px, 92px)) !important;

    justify-content: start !important;

    align-items: center !important;

    gap: 6px !important;

    width: 100% !important;

    overflow: hidden !important;

}



footer.uf-footer .uf-pay {

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    box-sizing: border-box !important;

    width: 92px !important;

    min-width: 92px !important;

    max-width: 92px !important;

    height: 36px !important;

    min-height: 36px !important;

    max-height: 36px !important;

    margin: 0 !important;

    padding: 3px !important;

    overflow: hidden !important;

    border-radius: 7px !important;

    background: #fff !important;

}



footer.uf-footer .uf-pay img,

footer.uf-footer .uf-pay svg {

    display: block !important;

    position: static !important;

    box-sizing: border-box !important;

    flex: none !important;

    width: 86px !important;

    min-width: 0 !important;

    max-width: 86px !important;

    height: 30px !important;

    min-height: 0 !important;

    max-height: 30px !important;

    margin: 0 !important;

    padding: 0 !important;

    object-fit: contain !important;

    object-position: center !important;

    transform: none !important;

    inset: auto !important;

}



@media (max-width: 1050px) {

    footer.uf-footer .uf-logos {

        grid-template-columns: repeat(6, 92px) !important;

    }

}



@media (max-width: 700px) {

    footer.uf-footer .uf-wrap {

        width: calc(100% - 20px) !important;

    }



    footer.uf-footer .uf-top {

        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

        gap: 16px 10px !important;

    }



    footer.uf-footer .uf-intro {

        grid-column: 1 / -1 !important;
}



    footer.uf-footer .uf-logos {

        grid-template-columns: repeat(3, 78px) !important;

        gap: 5px !important;

    }



    footer.uf-footer .uf-pay {

        width: 78px !important;

        min-width: 78px !important;

        max-width: 78px !important;

        height: 32px !important;

        min-height: 32px !important;

        max-height: 32px !important;

    }



    footer.uf-footer .uf-pay img,

    footer.uf-footer .uf-pay svg {

        width: 72px !important;

        max-width: 72px !important;

        height: 26px !important;

        max-height: 26px !important;

    }

}






/* URGENT-TEMPLATES-ACTIONS-V1 */



/*

 * Основная ссылка «Подробнее» занимает свободное пространство,

 * остальные действия карточки остаются компактными.

 */

.catalog-grid .template-card .card-actions {

    display: flex !important;

    align-items: center !important;

    gap: 10px !important;

    width: 100% !important;

}



.catalog-grid .template-card .card-actions .card-link {

    display: inline-flex !important;

    flex: 1 1 auto !important;

    align-items: center !important;

    justify-content: center !important;

    box-sizing: border-box !important;

    width: 100% !important;

    min-width: 0 !important;

    min-height: 44px !important;

    padding: 10px 18px !important;

    border: 1px solid rgba(125, 105, 255, 0.75) !important;

    border-radius: 12px !important;

    background: linear-gradient(135deg, #795cff, #526dff) !important;

    color: #ffffff !important;

    font-weight: 700 !important;

    line-height: 1.2 !important;

    text-align: center !important;

    text-decoration: none !important;

    box-shadow: 0 8px 22px rgba(82, 109, 255, 0.22) !important;

}



.catalog-grid .template-card .card-actions .card-link:hover,

.catalog-grid .template-card .card-actions .card-link:focus-visible {

    background: linear-gradient(135deg, #8a70ff, #6280ff) !important;

    color: #ffffff !important;

    transform: translateY(-1px);

}



/*

 * Компактная кнопка быстрого просмотра.

 * Указаны используемые и резервные селекторы.

 */

.catalog-grid .template-card .card-actions > button,

.catalog-grid .template-card .card-actions > a:not(.card-link),

.catalog-grid .template-card .card-actions .quick-preview-button,

.catalog-grid .template-card .card-actions .quick-preview-trigger,

.catalog-grid .template-card .card-actions .quick-preview-open,

.catalog-grid .template-card .card-actions [data-quick-preview] {

    flex: 0 0 44px !important;

    box-sizing: border-box !important;

    width: 44px !important;

    min-width: 44px !important;

    max-width: 44px !important;

    height: 44px !important;

    min-height: 44px !important;

    padding: 0 !important;

    align-items: center !important;

    justify-content: center !important;

    overflow: hidden !important;

}



/*

 * Ссылка регистрации физически присутствует только в гостевой

 * ветке layout.php. Здесь устраняется возможное скрытие CSS.

 */

header a.button.button-small[href="/register/"] {

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    white-space: nowrap !important;

}



@media (max-width: 640px) {

    header a.button.button-small[href="/register/"] {

        min-height: 38px !important;

        padding: 8px 11px !important;

        font-size: 12px !important;

    }



    .catalog-grid .template-card .card-actions {

        gap: 8px !important;

    }



    .catalog-grid .template-card .card-actions .card-link {

        min-height: 42px !important;

        padding: 9px 12px !important;

    }



    .catalog-grid .template-card .card-actions > button,

    .catalog-grid .template-card .card-actions > a:not(.card-link),

    .catalog-grid .template-card .card-actions .quick-preview-button,

    .catalog-grid .template-card .card-actions .quick-preview-trigger,

    .catalog-grid .template-card .card-actions .quick-preview-open,

    .catalog-grid .template-card .card-actions [data-quick-preview] {

        flex-basis: 42px !important;

        width: 42px !important;

        min-width: 42px !important;

        max-width: 42px !important;

        height: 42px !important;

        min-height: 42px !important;

    }

}

