@import url('https://fonts.googleapis.com/css2?family=Dela+Gothic+One&family=Geologica&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Geologica', sans-serif;
    background: rgb(28, 28, 28);
    color: white;
}

.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: -1;
    background: black url("/assets/bg/svg-bg.svg") no-repeat center center;
    background-size: cover;
}

.catalog-title {
    margin-top: 72px;
    margin-left: 365px;
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 64px;
    font-weight: 400;
    line-height: 93px;
    color: white;
}

.catalog-container {
    position: absolute;
    top: 285px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 40px;
    column-gap: 40px;
    padding: 0 72px 120px; /* добавлен нижний отступ */
    box-sizing: border-box;
}

.catalog-card {
    width: calc((100% - 3 * 40px - 2 * 72px) / 4);
    aspect-ratio: 292 / 124;
    border-radius: 8px;
    background-color: rgb(28, 28, 28);
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 13px 18px;
    font-size: 20px;
    line-height: 25px;
    font-weight: 400;
    text-align: left;
    text-decoration: none;
    color: white;
}

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: -2px 1px 4px rgba(191, 77, 245, 0.39),
    -7px 4px 8px rgba(191, 77, 245, 0.34),
    -16px 9px 11px rgba(191, 77, 245, 0.2),
    -28px 16px 13px rgba(191, 77, 245, 0.06),
    -44px 25px 14px rgba(191, 77, 245, 0.01);
}

@media (max-width: 1024px) {
    .catalog-container {
        padding: 0 30px 100px;
        column-gap: 30px;
    }

    .catalog-card {
        width: calc((100% - 30px) / 2);
    }
}

@media (max-width: 768px) {
    .catalog-title {
        margin-top: 160px;
        font-size: 36px;
        line-height: 1.2;
        text-align: center;
        margin-left: 0;
    }
}

@media (max-width: 540px) {
    .catalog-container {
        padding: 0 20px 80px;
        column-gap: 20px;
    }

    .catalog-card {
        width: 100%;
    }
}
.back-button {
    position: absolute;
    top: 22%; /* ← стало 120px вместо 30px */
    left: 30px;
    z-index: 1000;
    background: linear-gradient(105deg, #8744a4, #d035e2);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 18px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.back-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(105deg, #9a57c6, #e14ae8);
}

@media (max-width: 480px) {
    .back-button {
        top:230px;
        left: 16px;
        font-size: 14px;
        padding: 8px 14px;
    }
}

@media (max-width: 400px) {
    .back-button {
        top: 240px;
    }
}

@media (max-width: 360px) {
    .back-button {
        top: 240px;
    }
}
:root{
    --tc-bg: rgba(0,0,0,.45);
    --tc-card: rgb(28,28,28);
    --tc-grad-a:#8744a4;
    --tc-grad-b:#d035e2;
    --tc-text:#fff;
}

/* Overlay */
.page-loader{
    position:fixed; inset:0; display:none;
    align-items:center; justify-content:center;
    background: var(--tc-bg);
    backdrop-filter: blur(8px);
    z-index:9999;
}
.page-loader.active{ display:flex; }
body.loader-lock{ overflow:hidden; }

/* Карточка */
.tc-loader-card{
    position:relative;
    min-width: clamp(280px, 60vw, 520px);
    padding:28px 24px 22px;
    border-radius:22px;
    background: var(--tc-card);
    color:var(--tc-text);
    text-align:center;
    box-shadow:
            -3px 18px 39px rgba(140, 0, 255, 0.29),
            -11px 71px 72px rgba(140, 0, 255, 0.26),
            -25px 159px 97px rgba(140, 0, 255, 0.15),
            -45px 283px 115px rgba(140, 0, 255, 0.04);
}

/* Градиентная рамка */
.tc-loader-card::before{
    content:""; position:absolute; inset:-1px;
    border-radius:22px;
    padding:1px;
    background: linear-gradient(105deg,var(--tc-grad-a),var(--tc-grad-b));
    -webkit-mask:
            linear-gradient(#000 0 0) content-box,
            linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events:none;
}

/* Кольцо */
.tc-ring{
    width:96px; height:96px; margin:0 auto 18px;
    border-radius:50%;
    background:
            conic-gradient(from 0turn, var(--tc-grad-a), var(--tc-grad-b) 60%, transparent 60%);
    -webkit-mask:
            radial-gradient(circle 38px, #0000 60%, #000 61%);
    animation: tc-spin 1s linear infinite;
}
@keyframes tc-spin{ to{ transform: rotate(360deg) } }

/* Иконки */
.tc-icons{
    position:absolute; inset:0; pointer-events:none;
}
.tc-icon{
    position:absolute; width:26px; height:26px; opacity:.9;
    filter: drop-shadow(0 0 6px rgba(208,53,226,.35));
}
.tc-icon svg{ width:100%; height:100%; display:block; }
.tc-i1{ left:18%; top:14%; animation: float 3.6s ease-in-out infinite; }
.tc-i2{ right:18%; top:18%; animation: float 3s ease-in-out .2s infinite; }
.tc-i3{ left:22%; bottom:12%; animation: float 3.4s ease-in-out .4s infinite; }
@keyframes float{
    0%,100%{ transform: translateY(0) }
    50%{ transform: translateY(-6px) }
}

/* Текст и прогресс */
.tc-title{
    font-family: 'Dela Gothic One', system-ui, sans-serif;
    font-size: clamp(18px, 2.2vw, 24px);
    letter-spacing:.3px;
    margin: 0 0 6px;
}
.tc-msg{
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size:14px; opacity:.9; margin-bottom:14px;
}

.tc-bar{
    height:8px; border-radius:999px; overflow:hidden;
    background: rgba(255,255,255,.12);
}
.tc-bar>span{
    display:block; height:100%; width:38%;
    background: linear-gradient(105deg,var(--tc-grad-a),var(--tc-grad-b));
    border-radius:inherit;
    animation: indet 1.2s ease-in-out infinite;
}
@keyframes indet{
    0%{ transform: translateX(-100%) }
    50%{ transform: translateX(20%) }
    100%{ transform: translateX(120%) }
}

/* Prefer-reduced-motion */
@media (prefers-reduced-motion: reduce){
    .tc-ring, .tc-icon, .tc-bar>span{ animation: none; }
}
