:root {
    --blue: var(--jp-primary);
    --ink: var(--jp-text);
    --muted: var(--jp-muted);
    --line: var(--jp-border);
    --bg: var(--jp-bg);
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    font-family: var(--jp-font-family);
    color: var(--ink);
    font-size: 14px
}

a {
    text-decoration: none;
    color: inherit
}

button,
input,
select,
textarea {
    font: inherit;
    font-family: var(--jp-font-family);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0)
}

.site-header {
    height: 62px;
    padding: 0 18px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 0 var(--line);
    position: sticky;
    top: 0;
    z-index: 5
}

.brand {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: .03em
}

.brand-dot {
    color: #2885ca
}

.header-action {
    font-size: 12px;
    color: var(--muted)
}

.main-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 14px 14px 95px
}

.search-panel {
    margin-bottom: 14px
}

.search-form {
    display: flex;
    border: 1.5px solid #aeb8c8;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    height: 38px
}

.search-form input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 16px;
    background: transparent
}

.search-form button {
    border: 0;
    background: #fff;
    padding: 0 18px;
    font-size: 28px;
    color: var(--blue);
    cursor: pointer
}

.hero {
    background: linear-gradient(120deg, #103464, #2164ad);
    padding: 26px 22px;
    border-radius: 19px;
    color: #fff;
    margin-bottom: 23px
}

.hero .eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
    color: #bed6f2
}

.hero h1 {
    font-size: 25px;
    line-height: 1.32;
    margin: 12px 0
}

.hero p {
    color: #d4e4f8;
    font-size: 12px
}

.hero-link {
    display: inline-block;
    border: 1px solid #91b8e3;
    padding: 10px 13px;
    border-radius: 10px;
    margin-top: 9px;
    font-weight: 700
}

.section {
    margin: 21px 0
}

.section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px
}

.section-title h2 {
    font-size: var(--jp-font-section);
    margin: 0
}

.section-title span, .meta {
    color: var(--muted);
    font-size: 12px
}

.category-grid {
    display: grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap: 9px
}

.category-tile {
    min-height: 91px;
    text-align: center;
    background: white;
    border-radius: 14px;
    padding: 11px 5px;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    line-height: 1.25
}

.category-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: #e9f1fd;
    color: #2058a3;
    border-radius: 12px;
    font-size: 24px
}

.sort-form {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin: -3px 0 11px;
    color: var(--muted)
}

.sort-form select {
    border: 1px solid var(--line);
    background: white;
    padding: 7px;
    border-radius: 8px
}
