Загрузка данных


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #f4f7fb;
    color: #222;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, #4a6cf7, #7b3fe4);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

header h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

nav {
    background: #2c3550;
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 12px;
    position: sticky;
    top: 0;
    z-index: 10;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: #7b9bff;
}

main {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

section {
    background: white;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

h2 {
    color: #4a6cf7;
    margin-bottom: 15px;
    border-bottom: 2px solid #e3e8f5;
    padding-bottom: 8px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.card {
    background: #f8faff;
    border-left: 4px solid #7b3fe4;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-4px);
}

.card h3 {
    margin-bottom: 8px;
    color: #2c3550;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

.search-box {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.search-box input {
    flex: 1;
    padding: 12px;
    border: 2px solid #d5dbea;
    border-radius: 8px;
    font-size: 1em;
    outline: none;
}

.search-box input:focus {
    border-color: #4a6cf7;
}

.search-box button {
    padding: 12px 25px;
    background: #4a6cf7;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background 0.2s;
}

.search-box button:hover {
    background: #3651cc;
}

#results .result {
    background: #f8faff;
    border: 1px solid #e3e8f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

#results .result h4 {
    color: #4a6cf7;
    margin-bottom: 5px;
}

#results .score {
    font-size: 0.85em;
    color: #888;
    margin-top: 5px;
}

footer {
    text-align: center;
    padding: 20px;
    background: #2c3550;
    color: #ccc;
    font-size: 0.9em;
}