:root {
    --ink: #081325;
    --ink-soft: #56657d;
    --blue: #0d5cff;
    --blue-dark: #003fc7;
    --blue-soft: #eaf1ff;
    --bg: #f3f6fb;
    --white: #fff;
    --line: #dce5f4;
    --green: #119d66;
    --orange: #f19d36;
    --shadow: 0 18px 50px rgba(18, 45, 97, .1);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--bg);
    font-family: Inter, Arial, Helvetica, sans-serif;
}

.container {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.app {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
    color: #dbe6ff;
    background:
    radial-gradient(circle at 20% 0, rgba(39,112,255,.32), transparent 18rem),
    #07162d;
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 18px 0;
    backdrop-filter: blur(18px);
    background: rgba(244, 247, 252, .82);
    border-bottom: 1px solid rgba(220, 229, 244, .75);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.logo__mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), #69a0ff);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(13, 92, 255, .28);
}

.logo__mark svg { width: 22px; height: 22px; }

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
}

.nav a:hover { color: var(--blue); }

.header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar__label {
    margin: 34px 10px 10px;
    color: #7087b4;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
}

.menu {
    display: grid;
    gap: 7px;
}

.menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 700;
}

.menu a:hover,
.menu a.active {
    color: white;
    background: rgba(255,255,255,.1);
}

.menu__icon {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    color: #83adff;
}

.sidebar__access {
    margin-top: auto;
    padding: 17px;
    background: linear-gradient(150deg, rgba(13,92,255,.35), rgba(255,255,255,.08));
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
}

.sidebar__access span {
    color: #9fb9ec;
    font-size: 11px;
    font-weight: 800;
}

.sidebar__access strong {
    display: block;
    margin: 5px 0 12px;
    color: white;
    font-size: 24px;
}

.sidebar__access button {
    width: 100%;
    min-height: 42px;
    color: #0a2a68;
    background: white;
    border: 0;
    border-radius: 11px;
    font-weight: 900;
}

.main { min-width: 0; padding-top: 52px; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 25;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 76px;
    padding: 14px 30px;
    background: rgba(243,246,251,.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(220,229,244,.8);
}

.breadcrumbs {
    color: #6f7b90;
    font-size: 13px;
    font-weight: 700;
}

.user {
    display: flex;
    align-items: center;
    gap: 11px;
}

.user__avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: white;
    background: linear-gradient(135deg, var(--blue), #74a7ff);
    border-radius: 13px;
    font-weight: 900;
}

.user strong { display: block; font-size: 13px; }
.user span { color: #758198; font-size: 11px; }

.content {
    width: min(1360px, calc(100% - 48px));
    margin: 0 auto;
    padding: 36px 0 60px;
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
    margin-bottom: 22px;
}

.page-head h1 {
    margin: 0 0 8px;
    font-size: clamp(33px, 4vw, 54px);
    line-height: 1;
    letter-spacing: -.055em;
}

.page-head p {
    margin: 0;
    color: var(--ink-soft);
}

.mini-stats {
    display: flex;
    gap: 10px;
}

.mini-stat {
    min-width: 112px;
    padding: 13px 15px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 15px;
}

.mini-stat strong {
    display: block;
    font-size: 19px;
    letter-spacing: -.03em;
}

.mini-stat span {
    color: #748096;
    font-size: 10px;
    font-weight: 800;
}

.search-panel {
    padding: 20px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.search-row {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) 230px;
    gap: 10px;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 54px;
    padding: 0 16px;
    background: #f7f9fd;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.search-field:focus-within {
    border-color: #8db3ff;
    box-shadow: 0 0 0 4px rgba(13,92,255,.08);
}

.search-field svg {
    flex: 0 0 auto;
    width: 22px;
    color: var(--blue);
}

.search-field input {
    width: 100%;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: 0;
}

select {
    width: 100%;
    min-height: 54px;
    padding: 0 14px;
    color: var(--ink);
    background: #f7f9fd;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
}

.primary-btn {
    min-height: 54px;
    padding: 0 20px;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    border: 0;
    border-radius: 14px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(13,92,255,.22);
}

.chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 14px 0 1px;
    scrollbar-width: thin;
}

.chip {
    flex: 0 0 auto;
    padding: 9px 12px;
    color: #43526c;
    background: white;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.chip:hover,
.chip.active {
    color: var(--blue);
    background: var(--blue-soft);
    border-color: #b6ceff;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.result-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.result-head h2 {
    margin: 0;
    font-size: 18px;
}

.result-head span {
    color: #738097;
    font-size: 12px;
}

.results {
    display: grid;
    gap: 12px;
}

.result {
    padding: 20px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    transition: .2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.result:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: #c8d9f7;
}

.result__top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
}

.result__type {
    display: inline-flex;
    padding: 6px 9px;
    color: #0a4bc7;
    background: var(--blue-soft);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.result h3 {
    margin: 11px 0 8px;
    font-size: 20px;
    letter-spacing: -.025em;
}

.result__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 15px;
    color: #6d7a91;
    font-size: 13px;
}

.score {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: var(--green);
    background: #e9f9f2;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 900;
}

.preview {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
}

.preview span {
    padding: 7px 10px;
    color: #4a5870;
    background: #f4f7fb;
    border-radius: 9px;
    font-size: 12px;
}

.result__bottom {
    display: flex;
    justify-content: space-between;
    flex-grow: 1;
    align-items: end;
    gap: 15px;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #edf1f7;
}

.file-format {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #667389;
    font-size: 12px;
    font-weight: 700;
}

.file-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #18774f;
    background: #eaf8f2;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 900;
}

.download-btn {
    min-height: 42px;
    padding: 0 16px;
    color: var(--blue);
    background: var(--blue-soft);
    border: 1px solid #c8daff;
    border-radius: 12px;
    font-weight: 900;
}

.download-btn:hover {
    color: white;
    background: var(--blue);
}

.aside {
    display: grid;
    align-content: start;
    gap: 14px;
}

.aside-card {
    padding: 21px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.aside-card--dark {
    color: white;
    background: linear-gradient(145deg, #081a36, #0b3a9c);
    border: 0;
}

.aside-card h3 {
    margin: 0 0 9px;
    font-size: 18px;
}

.aside-card p {
    margin: 0 0 15px;
    color: #66748b;
    font-size: 13px;
}

.aside-card--dark p { color: #d6e4ff; }

.aside-card__price {
    display: block;
    margin-bottom: 15px;
    font-size: 31px;
    letter-spacing: -.04em;
}

.aside-card button {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    font-weight: 900;
}

.aside-card--dark button {
    color: #0a2a68;
    background: white;
}

.guarantee-line {
    display: flex;
    gap: 10px;
    align-items: start;
    margin-top: 14px;
    color: #cfe0ff;
    font-size: 11px;
}

.guarantee-line i {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    color: #0c48b7;
    background: white;
    border-radius: 50%;
    font-style: normal;
    font-weight: 900;
}

.history {
    display: grid;
    gap: 10px;
    padding: 0;
    list-style: none;
    margin: 0;
}

.history button {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 0;
    color: #52617a;
    background: none;
    border: 0;
    text-align: left;
    font-size: 12px;
}

.history button:hover { color: var(--blue); }
.history small { color: #9aa5b7; }

.empty {
    padding: 50px 25px;
    text-align: center;
    background: white;
    border: 1px dashed #becde5;
    border-radius: 20px;
}

.empty strong {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
}

.empty span {
    color: var(--ink-soft);
    font-size: 13px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(2, 11, 28, .66);
    backdrop-filter: blur(8px);
}

.modal.open { display: grid; }

.modal__box {
    position: relative;
    width: min(500px, 100%);
    padding: 30px;
    background: white;
    border-radius: 26px;
    box-shadow: 0 35px 100px rgba(0,0,0,.28);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #5e6c82;
    background: #f1f4f9;
    border: 0;
    border-radius: 11px;
    font-size: 20px;
}

.modal__badge {
    display: inline-flex;
    padding: 7px 10px;
    color: var(--blue);
    background: var(--blue-soft);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.modal h2 {
    margin: 18px 0 9px;
    font-size: 31px;
    line-height: 1.05;
    letter-spacing: -.04em;
}

.modal p {
    color: var(--ink-soft);
}

.modal__price {
    display: block;
    margin: 22px 0;
    font-size: 43px;
    letter-spacing: -.05em;
}

.modal ul {
    display: grid;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.modal li {
    display: flex;
    gap: 9px;
    color: #45546e;
    font-size: 13px;
}

.modal li::before {
    content: "✓";
    color: var(--green);
    font-weight: 900;
}

.modal__action {
    width: 100%;
    min-height: 51px;
    margin-top: 13px;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    border: 0;
    border-radius: 14px;
    font-weight: 900;
}

            .category-results {
                display: grid;
                grid-template-columns: 1fr 1fr 1fr;
                gap: 20px;
            }

.mobile-menu { display: none; }

@media (max-width: 1080px) {
    .app { grid-template-columns: 1fr }
    .sidebar { align-items: center; padding-inline: 12px; }
    .logo span:last-child,
    .sidebar__label,
    .menu a span:last-child,
    .sidebar__access { display: none; }
    .logo { padding: 0; }
    .menu a { justify-content: center; padding: 13px; }
    .content-grid { grid-template-columns: 1fr; }
    .aside { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .sidebar { display: none; }
    .content { width: min(100% - 24px, 1360px); padding-top: 24px; }
    .topbar { padding: 12px; }
    .breadcrumbs { display: none; }
    .mobile-menu {
    display: inline-flex;
    padding: 10px 12px;
    color: white;
    background: #07162d;
    border-radius: 11px;
    font-weight: 900;
    }
    .page-head { align-items: start; flex-direction: column; }
    .mini-stats { width: 100%; overflow-x: auto; }
    .search-row { grid-template-columns: 1fr; }
    .aside { grid-template-columns: 1fr; }
    .result__top, .result__bottom { align-items: start; }
    .result__bottom { flex-direction: column; }
    .download-btn { width: 100%; }
    .container { width: min(100% - 24px, 1180px); }
}

.footer {
    padding: 26px 0 40px;
    color: #6d788a;
    font-size: 13px;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    padding-top: 25px;
}

.loader {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 9999999;
    display: none;
    align-items: center;
    justify-content: center;
}
.loader-spiner {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: var(--blue-dark);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
.loader.active {
    display: flex;
}

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