.site > .main-layout {
    padding-top: 18px;
}

.site-footer-intro,
.site-footer-directory {
    background: linear-gradient(145deg, #171b1e, #141719 70%, #15191b);
}

/* =====================================================================
   PAGE 9 — file-detail.html
   File detail page styles moved from the page's former inline <style> block.
===================================================================== */

/* =========================================================
   PAGE 9 — file-detail.html
   File download detail page: cover/gallery, metadata, install steps and related files.
========================================================= */
.file-detail-page{padding-top:0}
.file-detail-wrap{max-width:100%;}
.file-detail-breadcrumbs{margin-bottom:10px}
.file-detail-card{background:#141618;border:1px solid #262627;border-radius:14px;overflow:hidden;box-shadow:inset 0 1px 0 rgb(255 255 255 / 3%)}
.file-detail-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 22px;border-bottom:1px solid #262627;background:linear-gradient(145deg,#181a1c,#141618 72%)}
.file-detail-kicker{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#7f8790;font-weight:600}
.file-detail-header h1{margin:4px 0 2px;color:#fff;font-size:30px;font-weight:600;line-height:1.1}
.file-detail-subtitle{color:#8f979d;font-size:13px;line-height:1.5}
.file-rating{display:flex;gap:2px;font-size:23px;line-height:1;color:#f2a41d;white-space:nowrap}
.file-gallery-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,29%);gap:14px;min-height:0;height:clamp(320px,31vw,420px);padding:18px;background:#161819;box-sizing:border-box;align-items:stretch}
.file-gallery-main{position:relative;min-width:0;min-height:0;height:100%;border-radius:13px;overflow:hidden;background:#101112;border:1px solid #252729}
.file-gallery-main-link{position:absolute;inset:0;z-index:1;display:block;min-width:0;min-height:0;color:inherit;text-decoration:none;cursor:zoom-in}
.file-gallery-main-link:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.file-gallery-main img{display:block;width:100%;height:100%;min-height:0;object-fit:cover;object-position:center}
.file-gallery-overlay{position:absolute;inset:auto 0 0;height:110px;background:linear-gradient(180deg,transparent,rgba(7,8,9,.82));pointer-events:none}
.file-gallery-caption{position:absolute;left:18px;bottom:14px;color:#fff;font-size:13px;font-weight:500;text-shadow:0 2px 10px rgba(0,0,0,.7)}
.file-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:42px;height:42px;border-radius:12px;border:1px solid rgba(var(--accent-rgb),.34);background:rgba(0,0,0,.45);backdrop-filter:blur(8px);color:#fff;font-size:30px;line-height:1;cursor:pointer;transition:.2s}
.file-gallery-arrow:hover{background:var(--accent);border-color:var(--accent)}
.file-gallery-arrow.prev{left:14px}.file-gallery-arrow.next{right:14px}
.file-gallery-side{display:flex;flex-direction:column;gap:9px;height:100%;min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:5px;overscroll-behavior:contain;scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:var(--accent) #101214}
.file-gallery-side::-webkit-scrollbar{width:7px}
.file-gallery-side::-webkit-scrollbar-track{background:#101214;border-radius:999px}
.file-gallery-side::-webkit-scrollbar-thumb{background:linear-gradient(180deg,var(--accent-deep),var(--accent));border-radius:999px;border:2px solid #101214}
.file-gallery-side::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,var(--accent),var(--accent-hover))}
.file-thumb{display:block;position:relative;flex:1 0 calc(25% - 6.75px);min-height:64px;width:100%;box-sizing:border-box;border:1px solid #2a2d30;border-radius:10px;overflow:hidden;background:#101112;opacity:.76;transition:opacity .2s,border-color .2s,box-shadow .2s,transform .2s}
.file-thumb img{display:block;width:100%;height:100%;min-height:0;object-fit:cover;aspect-ratio:auto}
.file-thumb:hover{opacity:1;border-color:rgba(var(--accent-rgb),.62);box-shadow:0 4px 14px rgba(0,0,0,.24);transform:translateX(-2px)}
.file-thumb.active{opacity:1;border-color:var(--accent);box-shadow:0 0 0 1px rgba(var(--accent-rgb),.28)}
.file-detail-description{padding:22px 24px 20px;border-top:1px solid #262627}
.file-section-heading{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.file-section-heading h2{margin:0;color:#fff;font-size:20px;font-weight:600}
.file-section-icon{width:28px;height:28px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;background:rgba(var(--accent-rgb),.12);color:var(--accent);font-size:14px;flex:0 0 28px}
.file-detail-description p{margin:0 0 12px;color:#a9b0b6;font-size:15px;line-height:1.7}
.file-detail-description p:last-child{margin-bottom:0}
.file-detail-description strong{color:#fff;font-weight:500}
.file-info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 24px 22px}
.file-info-card{padding:12px 14px;border-radius:11px;background:#181a1c;border:1px solid #242629}
.file-info-label{display:block;color:#777f88;font-size:11px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:5px}.file-info-card strong{color:#e9edf0;font-size:14px;font-weight:500}
.file-install-card{margin:0 24px 22px;padding:18px;border-radius:12px;background:linear-gradient(145deg,rgba(var(--accent-rgb),.065),#18191b 64%);border:1px solid rgba(var(--accent-rgb),.18)}
.file-install-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.file-install-step{display:flex;gap:11px;align-items:flex-start;padding:12px;background:rgba(255,255,255,.025);border:1px solid #242629;border-radius:10px}
.file-install-step>span{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:9px;background:var(--accent);color:#fff;font-size:12px;font-weight:600;flex:0 0 28px}.file-install-step b{color:#eef1f3;font-size:13px;font-weight:500}.file-install-step p{margin:4px 0 0;color:#89919a;font-size:12px;line-height:1.55}.file-install-step code{padding:1px 5px;border-radius:5px;background:#101214;color:#b8c0c8;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.file-download-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 24px;background:#17191b;border-top:1px solid #262627}
.file-download-label{display:block;color:var(--accent);font-size:11px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:3px}.file-download-copy strong{display:block;color:#fff;font-size:16px;font-weight:600}.file-download-copy p{margin:4px 0 0;color:#7f8790;font-size:12px}
.file-download-button{position:relative;display:inline-flex;align-items:center;justify-content:space-between;gap:13px;min-width:236px;min-height:62px;padding:9px 13px 9px 11px;border:1px solid rgba(var(--accent-light-rgb),.2);border-radius:13px;background:linear-gradient(135deg,var(--accent) 0%,var(--accent-strong) 55%,var(--accent-deep) 100%);color:var(--white);text-decoration:none;font-size:14px;font-weight:600;box-shadow:0 12px 28px rgba(var(--accent-rgb),.22),inset 0 1px 0 rgba(255,255,255,.15);transition:transform .22s ease,box-shadow .22s ease,filter .22s ease;overflow:hidden}.file-download-button::before{content:"";position:absolute;inset:0;background:linear-gradient(115deg,rgba(255,255,255,.12),transparent 42%);pointer-events:none}.file-download-button:hover{transform:translateY(-2px);filter:brightness(1.08);box-shadow:0 16px 32px rgba(var(--accent-rgb),.3),inset 0 1px 0 rgba(255,255,255,.2);text-decoration:none;color:var(--white)}.file-download-button:focus-visible{outline:2px solid var(--accent-light);outline-offset:3px}.file-download-button-icon{position:relative;display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:10px;background:rgba(0,0,0,.16);color:var(--white)}.file-download-button-icon svg{display:block;width:20px;height:20px}.file-download-button-copy{position:relative;display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}.file-download-button-copy strong{color:var(--white);font-size:14px;line-height:1.2;font-weight:700}.file-download-button-copy small{color:rgba(255,255,255,.78);font-size:10px;line-height:1.3;font-weight:500}.file-download-button-arrow{position:relative;display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border-radius:50%;background:rgba(0,0,0,.15);color:var(--white);font-size:18px;line-height:1;transition:transform .22s ease}.file-download-button:hover .file-download-button-arrow{transform:translateY(2px)}
.file-related-section{margin-top:18px}.file-related-header{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:12px;padding:0 2px}.file-related-header h2{margin:4px 0 0;color:#fff;font-size:22px;font-weight:600}.file-related-all{color:#929aa2;font-size:13px;text-decoration:none}.file-related-all:hover{color:var(--accent)}
.file-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.file-related-card{display:block;background:#141618;border:1px solid #1e1e1e;border-radius:12px;overflow:hidden;text-decoration:none;transition:.2s}.file-related-card:hover{border-color:rgba(var(--accent-rgb),.35);transform:translateY(-2px);text-decoration:none}.file-related-image{aspect-ratio:16/9;background:#0f1112;overflow:hidden}.file-related-image img{display:block;width:100%;height:100%;object-fit:cover}.file-related-body{padding:12px 13px 13px}.file-related-body span{font-size:11px;color:var(--accent);text-transform:uppercase;letter-spacing:.06em}.file-related-body h3{margin:5px 0 5px;color:#f0f3f5;font-size:16px;font-weight:500}.file-related-body p{margin:0;color:#8c949c;font-size:12px;line-height:1.55}
@media (max-width:1100px){.file-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:1100px){.file-gallery-card{grid-template-columns:minmax(0,1fr);height:auto;padding:14px}.file-gallery-main{height:auto;aspect-ratio:16/8.5}.file-gallery-side{height:clamp(82px,11vw,112px);flex-direction:row;gap:9px;overflow-x:auto;overflow-y:hidden;padding:0 0 4px}.file-gallery-side::-webkit-scrollbar{height:7px;width:7px}.file-thumb{flex:0 0 clamp(150px,24%,240px);height:100%;width:auto;min-height:0}.file-thumb img{min-height:0;aspect-ratio:auto}.file-install-grid{grid-template-columns:1fr}.file-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.file-gallery-card{height:auto;padding:10px}.file-detail-header{padding:15px 16px;flex-direction:column;gap:10px}.file-detail-header h1{font-size:24px}.file-gallery-main{height:auto;aspect-ratio:16/9}.file-gallery-side{height:86px;gap:7px}.file-thumb{flex-basis:clamp(124px,34%,190px)}.file-detail-description{padding:18px 16px}.file-detail-description p{font-size:14px}.file-info-grid{padding:0 16px 16px;grid-template-columns:1fr 1fr}.file-install-card{margin:0 16px 16px;padding:14px}.file-download-row{padding:14px 16px;flex-direction:column;align-items:stretch}.file-download-button{width:100%}.file-related-grid{grid-template-columns:1fr}.file-related-header h2{font-size:19px}.file-related-header{align-items:flex-start;flex-direction:column}}

/* File detail link accents. */
.file-detail-description a, .file-detail-content a {
    color: var(--accent-light);
    text-decoration-color: rgba(var(--accent-light-rgb), .42);
}
.file-detail-description a:hover, .file-detail-content a:hover {
    color: var(--accent-pale);
    text-decoration-color: currentColor;
}

/* File detail link accents. */
.file-detail-description a, .file-detail-content a {
    color: var(--accent-light);
    text-decoration-color: rgba(var(--accent-light-rgb), .42);
}
.file-detail-description a:hover, .file-detail-content a:hover {
    color: var(--accent-pale);
    text-decoration-color: currentColor;
}

.file-install-card--map {
    color: #a9b0b6;
}

/* Recommendation */

.file-install-recommendation {
    margin: 0 0 20px;
    padding: 13px 15px;
    border: 1px solid rgba(var(--accent-rgb), .15);
    border-left: 3px solid var(--accent);
    border-radius: 9px;
    background: rgba(255, 255, 255, .025);
}

.file-install-recommendation p {
    margin: 0;
    color: #a9b0b6;
    font-size: 13px;
    line-height: 1.7;
}

.file-install-recommendation strong {
    color: #eef1f3;
    font-weight: 650;
}

.file-install-recommendation a {
    color: var(--accent-light);
    text-decoration: underline;
    text-decoration-color: rgba(var(--accent-light-rgb), .4);
    text-underline-offset: 3px;
    transition: color .18s ease, text-decoration-color .18s ease;
}

.file-install-recommendation a:hover {
    color: var(--accent-pale);
    text-decoration-color: currentColor;
}

/* Content sections */

.file-install-section {
    margin-top: 18px;
}

.file-install-subheading {
    margin: 0 0 11px;
    color: #e9edf0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

/* Archive structure */

.file-install-file-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.file-install-file-list li {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    padding: 11px 12px;
    border: 1px solid #292c2f;
    border-radius: 9px;
    background: rgba(255, 255, 255, .025);
    box-sizing: border-box;
}

.file-install-file-list li code,
.file-install-example-list li code {
    width: fit-content;
    padding: 3px 7px;
    border: 1px solid rgba(var(--accent-rgb), .17);
    border-radius: 6px;
    background: rgba(var(--accent-rgb), .08);
    color: var(--accent-light);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    font-weight: 650;
}

.file-install-file-list li span {
    color: #929ba3;
    font-size: 12px;
    line-height: 1.5;
}

.file-install-file-list li b {
    color: #cbd1d6;
    font-weight: 600;
}

/* Example archive */

.file-install-example-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.file-install-example-list li {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 4px 9px;
    border: 1px solid #292c2f;
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
    box-sizing: border-box;
}

/* Final installation note */

.file-install-note {
    margin-top: 18px;
    padding: 13px 15px;
    border: 1px solid #292c2f;
    border-radius: 9px;
    background: rgba(0, 0, 0, .13);
}

.file-install-note p {
    margin: 0 0 9px;
    color: #a9b0b6;
    font-size: 13px;
    line-height: 1.7;
}

.file-install-note p:last-child {
    margin-bottom: 0;
}

.file-install-note code {
    padding: 2px 5px;
    border-radius: 5px;
    background: #101214;
    color: #c5cdd4;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
}

/* Accessibility */

.file-install-card--map a:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Mobile */

@media (max-width: 560px) {
    .file-install-recommendation {
        margin-bottom: 17px;
        padding: 11px 12px;
    }

    .file-install-recommendation p,
    .file-install-note p {
        font-size: 12px;
        line-height: 1.65;
    }

    .file-install-section {
        margin-top: 16px;
    }

    .file-install-subheading {
        font-size: 13px;
    }

    .file-install-file-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
    }

    .file-install-file-list li {
        padding: 10px 11px;
    }

    .file-install-note {
        margin-top: 16px;
        padding: 11px 12px;
    }
}

/* =========================================================
   FILE DETAIL — RELATED FILES (UCOZ)
   Native markup: ul.uRelatedEntries > li.related-block
========================================================= */

/* Grid container */
.file-related-section ul.uRelatedEntries {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;

    width: 100%;
    margin: 0;
    padding: 0;

    list-style: none;
    box-sizing: border-box;
}

/* Reset Ucoz list items */
.file-related-section ul.uRelatedEntries > li.related-block {
    display: block;
    position: relative;

    min-width: 0;
    width: auto;
    height: auto;

    margin: 0;
    padding: 0;

    overflow: hidden;

    border: 1px solid #1e1e1e;
    border-radius: 12px;

    background: #141618;

    list-style: none;
    box-sizing: border-box;

    transition:
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

/* Remove list markers */
.file-related-section ul.uRelatedEntries > li.related-block::marker {
    content: "";
}

/* Card link */
.file-related-section ul.uRelatedEntries > li.related-block > a {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    overflow: hidden;

    color: inherit;
    text-decoration: none;

    background: transparent;
    box-sizing: border-box;
}

/* Card image */
.file-related-section ul.uRelatedEntries > li.related-block > a > img {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;

    background: #0f1112;
}

/* Card title area */
.file-related-section ul.uRelatedEntries > li.related-block > a > span {
    display: block;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 12px 13px 13px;

    color: #f0f3f5;

    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;

    text-decoration: none;
    overflow-wrap: anywhere;

    background: transparent;
    box-sizing: border-box;

    transition: color .2s ease;
}

/* Hover */
.file-related-section ul.uRelatedEntries > li.related-block:hover {
    border-color: rgba(var(--accent-rgb), .35);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
    transform: translateY(-2px);
    z-index: 1;
}

.file-related-section ul.uRelatedEntries > li.related-block:hover > a > span {
    color: var(--accent-light);
}

/* Keyboard accessibility */
.file-related-section ul.uRelatedEntries > li.related-block > a:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: -3px;
    border-radius: 10px;
}

/* Tablet */
@media (max-width: 1100px) {
    .file-related-section ul.uRelatedEntries {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 560px) {
    .file-related-section ul.uRelatedEntries {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .file-related-section ul.uRelatedEntries > li.related-block > a > span {
        padding: 11px 12px 12px;
        font-size: 15px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .file-related-section ul.uRelatedEntries > li.related-block,
    .file-related-section ul.uRelatedEntries > li.related-block > a > span {
        transition: none !important;
    }

    .file-related-section ul.uRelatedEntries > li.related-block:hover {
        transform: none;
    }
}

/* Блок установки карты */
.file-install-card {
    margin: 0 24px 22px;
    padding: 18px;
    border-radius: 12px;
    background: linear-gradient(
        145deg,
        rgba(var(--accent-rgb), .065),
        #18191b 64%
    );
    border: 1px solid rgba(var(--accent-rgb), .18);
}

/* Заголовок раскрывающегося блока */
.file-install-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

/* Убираем стандартный маркер браузера */
.file-install-summary::-webkit-details-marker {
    display: none;
}

.file-install-summary::marker {
    content: "";
}

/* Подсветка клавиатурного фокуса */
.file-install-summary:focus-visible {
    outline: 2px solid rgba(var(--accent-rgb), .65);
    outline-offset: 5px;
    border-radius: 7px;
}

/* Лёгкий эффект наведения */
.file-install-summary:hover .file-section-icon {
    background: rgba(var(--accent-rgb), .17);
}

/* Шеврон справа */
.file-install-chevron {
    display: block;
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin: 0 4px 4px auto;
    border-right: 1.5px solid #8f979d;
    border-bottom: 1.5px solid #8f979d;
    transform: rotate(45deg);
    transition:
        transform .2s ease,
        border-color .2s ease;
}

.file-install-summary:hover .file-install-chevron {
    border-color: var(--accent);
}

/* Состояние по умолчанию: блок закрыт */
.file-install-card:not([open]) > .file-install-summary {
    margin-bottom: 0;
}

/* Открытое состояние */
.file-install-card[open] > .file-install-summary {
    margin-bottom: 14px;
}

/* Поворот шеврона при раскрытии */
.file-install-card[open] > .file-install-summary .file-install-chevron {
    margin-top: 7px;
    margin-bottom: 0;
    transform: rotate(225deg);
}

/* Отступы на мобильных устройствах */
@media (max-width: 560px) {
    .file-install-card {
        margin: 0 16px 16px;
        padding: 14px;
    }
}
