/* ─── Files page ─── */
.fl-wrap {
    color: #e8e0d0;
    padding: 60px 16px 80px;
    position: relative;
    overflow: hidden;
    font-family: 'Rajdhani', sans-serif;
}

.fl-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(180,40,40,0.15) 0%, transparent 65%);
    pointer-events: none;
}

.fl-grid-bg {
    position: absolute;
    inset: 0;
    background-size: 48px 48px;
    pointer-events: none;
    animation: fl-fade 1.5s ease forwards;
}
@keyframes fl-fade { from { opacity: 0; } to { opacity: 1; } }

.fl-inner {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 75px;
    position: relative;
    z-index: 1;
}
main{
    min-height:80vh;
}

@media (max-width:1600px){
    main{
        min-height:78vh;
    }
}

@media (max-width:1440px){
    main{
        min-height:76vh;
    }
}

@media (max-width:1280px){
    main{
        min-height:74vh;
    }
}

@media (max-width:1024px){
    main{
        min-height:72vh;
    }
}

@media (max-width:768px){
    main{
        min-height:70vh;
    }
}

@media (max-width:480px){
    main{
        min-height:68vh;
    }
}

/* ─── Header ─── */
.fl-title {
    text-align: center;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 6px;
    color: #c0a060;
    text-transform: uppercase;
    animation: fl-down .6s ease both;
}
.fl-heading {
    text-align: center;
    margin-bottom: 10px;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #f0e8d8;
    text-transform: uppercase;
    animation: fl-down .6s .1s ease both;
}
.fl-heading span { color: #d3051d; }
main {
    min-height: 100vh!important;
}
.fl-sub {
    text-align: center;
    margin-bottom: 52px;
    font-size: 12px;
    color: rgba(200,180,140,0.35);
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fl-down .6s .2s ease both;
}
.footer, .dp-card {
    background: #080303e0!important;
}
@keyframes fl-down {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── List ─── */
.fl-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fl-up .7s .25s ease both;
}
@keyframes fl-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Card ─── */
.fl-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(11, 3, 3, 0.91);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 5px;
    padding: 20px 14px;
    position: relative;
    transition: border-color .25s, background .25s;
}
.fl-card::before {
    content: '';
    position: absolute;
    top: 0; left: 8%; right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,120,40,0.35), transparent);
}
.fl-card:hover {
    border-color: rgba(200,120,40,0.22);
    background: rgba(255,255,255,0.045);
}

/* ─── Icon ─── */
.fl-card-left { flex-shrink: 0; }

.fl-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 5px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .25s;
}
.fl-card:hover .fl-card-icon {
    border-color: rgba(211,5,29,0.3);
}

/* ─── Body ─── */
.fl-card-body {
    flex: 1;
    min-width: 0;
}
.fl-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #f0e8d8;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
    line-height: 1.2;
}
.fl-card-desc {
    font-size: 12px;
    color: rgba(200,180,140,0.4);
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* ─── Mirrors ─── */
.fl-card-mirrors {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}

.fl-mirror-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    color: rgba(200,180,140,0.6);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all .22s;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.fl-mirror-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(200,120,40,0.1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s;
}
.fl-mirror-btn:hover {
    border-color: rgba(200,120,40,0.5);
    color: #f0c060;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.fl-mirror-btn:hover::before { transform: scaleX(1); }
.fl-mirror-btn:active { transform: translateY(0); }

/* первая кнопка — главная (красная) */
.fl-card-mirrors .fl-mirror-btn:first-child {
    background: rgba(138,0,16,0.35);
    border-color: rgba(211,5,29,0.35);
    color: #f08080;
}
.fl-card-mirrors .fl-mirror-btn:first-child::before {
    background: rgba(211,5,29,0.15);
}
.fl-card-mirrors .fl-mirror-btn:first-child:hover {
    border-color: rgba(211,5,29,0.7);
    color: #ff9090;
    box-shadow: 0 4px 16px rgba(211,5,29,0.25);
}

.fl-mirror-img {
    height: 18px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.7) saturate(0.5);
    transition: filter .22s;
    position: relative;
    z-index: 1;
}
.fl-mirror-btn:hover .fl-mirror-img {
    filter: brightness(1) saturate(1);
}

.fl-mirror-label {
    position: relative;
    z-index: 1;
}
.fl-mirror-size {
    font-size: 10px;
    color: rgba(200,180,140,0.35);
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}
.fl-mirror-arrow {
    opacity: 0.5;
    transition: opacity .22s, transform .22s;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.fl-mirror-btn:hover .fl-mirror-arrow {
    opacity: 1;
    transform: translateY(2px);
}

/* ─── States ─── */
.fl-no-links {
    font-size: 11px;
    color: rgba(200,180,140,0.25);
    letter-spacing: 1px;
}
.fl-empty {
    text-align: center;
    padding: 60px 0;
    font-size: 14px;
    color: rgba(200,180,140,0.25);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ─── CTA блок ─── */
.fl-cta {
    margin-top: 48px;
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(200,120,40,0.18);
    border-radius: 6px;
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
    animation: fl-up .7s .45s ease both;
}

.fl-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 8%; right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,120,40,0.6), transparent);
}
.fl-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(211,5,29,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.fl-cta-deco {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    pointer-events: none;
}
.fl-cta-deco--left {
    left: -30px;
    background: radial-gradient(circle, rgba(211,5,29,0.12) 0%, transparent 70%);
}
.fl-cta-deco--right {
    right: -30px;
    background: radial-gradient(circle, rgba(200,120,40,0.1) 0%, transparent 70%);
}

.fl-cta-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 5px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(211,5,29,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.fl-cta-text {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.fl-cta-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(200,180,140,0.4);
    text-transform: uppercase;
    margin-bottom: 5px;
}
.fl-cta-desc {
    font-size: 17px;
    font-weight: 700;
    color: #f0e8d8;
    letter-spacing: 0.5px;
    line-height: 1.3;
}
.fl-cta-desc span { color: #d3051d; }

.fl-cta-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 28px;
    height: 50px;
    background: #8a0010;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all .22s;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    z-index: 1;
}
.fl-cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, transparent 60%);
    pointer-events: none;
}
.fl-cta-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left .45s;
}
.fl-cta-btn:hover {
    background: #d3051d;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(211,5,29,0.4);
}
.fl-cta-btn:hover::after { left: 160%; }
.fl-cta-btn:active { transform: translateY(0); }

.fl-cta-btn svg {
    transition: transform .22s;
}
.fl-cta-btn:hover svg {
    transform: translateX(4px);
}

/* ─── Responsive ─── */
@media (max-width: 680px) {
    .fl-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px;
    }
    .fl-card-mirrors {
        width: 100%;
    }
    .fl-mirror-btn {
        flex: 1;
        justify-content: center;
    }
    .fl-cta {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        gap: 18px;
    }
    .fl-cta-btn {
        width: 100%;
        justify-content: center;
    }
    .fl-cta-icon { display: none; }
}

/* ─── CTA блок ─── */
.fl-cta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    padding: 28px 32px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    animation: fl-up .7s .4s ease both;
}

.fl-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 8%; right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,120,40,0.5), transparent);
}
.fl-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(211,5,29,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.fl-cta-deco {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    pointer-events: none;
}
.fl-cta-deco--left {
    left: -40px;
    background: radial-gradient(circle, rgba(211,5,29,0.08) 0%, transparent 70%);
}
.fl-cta-deco--right {
    right: -40px;
    background: radial-gradient(circle, rgba(200,120,40,0.06) 0%, transparent 70%);
}

.fl-cta-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 5px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(211,5,29,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.fl-cta-text {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.fl-cta-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(200,180,140,0.4);
    text-transform: uppercase;
    margin-bottom: 5px;
}
.fl-cta-desc {
    font-size: 17px;
    font-weight: 700;
    color: #f0e8d8;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.fl-cta-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    background: #8a0010;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all .22s;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    z-index: 1;
    white-space: nowrap;
}
.fl-cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.fl-cta-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left .45s;
}
.fl-cta-btn:hover {
    background: #d3051d;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(211,5,29,0.4);
}
.fl-cta-btn:hover::after { left: 160%; }
.fl-cta-btn:active { transform: translateY(0); }

.fl-cta-btn svg {
    transition: transform .22s;
}
.fl-cta-btn:hover svg {
    transform: translateX(4px);
}

@media (max-width: 680px) {
    .fl-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 22px 20px;
    }
    .fl-cta-btn {
        width: 100%;
        justify-content: center;
    }
    .fl-card {
        flex-wrap: wrap;
    }
}
.fl-card-mirrors {
    max-width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.fl-card-mirrors::-webkit-scrollbar {
    display: none;
}

.fl-mirror-btn {
    flex-shrink: 0;
}

/* на широких экранах ограничиваем блок зеркал */
@media (min-width: 681px) {
    .fl-card-body {
        min-width: 180px;
        max-width: 260px;
    }
    .fl-card-mirrors {
        flex: 1;
        justify-content: flex-end;
    }
}

/* на средних — зеркала на новую строку */
@media (max-width: 900px) and (min-width: 681px) {
    .fl-card {
        flex-wrap: wrap;
    }
    .fl-card-left {
        flex-shrink: 0;
    }
    .fl-card-mirrors {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding-left: 72px;
    }
}