:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #0b1633;
    --muted: #596780;
    --line: #d8e0ec;
    --primary: #2456d6;
    --primary-dark: #173a91;
    --green: #098a45;
    --orange: #c56c00;
    --red: #b42318;
    --shadow: 0 18px 40px rgba(14, 31, 53, .08);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    position: sticky;
    top: 0;
    z-index: 2;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--primary); color: #fff; font-size: 26px; font-weight: 700;
    text-decoration: none;
}
.brand strong { display: block; font-size: 16px; }
.brand span { display: block; color: var(--muted); font-size: 12px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.nav a {
    color: var(--text);
    padding: 9px 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
}
.nav a.active, .nav a:hover { background: #eef3ff; color: var(--primary); text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 34px 20px 70px; }
.hero {
    display: grid; grid-template-columns: 1.35fr .9fr; gap: 28px; align-items: center;
    padding: 46px 0 30px;
}
.kicker { color: var(--primary); letter-spacing: .15em; text-transform: uppercase; font-weight: 800; font-size: 12px; }
h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.08; margin: 14px 0; }
h2 { font-size: 28px; margin: 0 0 16px; }
h3 { margin: 0 0 8px; }
p { color: #283d61; }
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
}
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.btn, button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 10px 16px;
    border: 1px solid var(--primary); border-radius: 10px;
    background: var(--primary); color: white; font-weight: 800; cursor: pointer;
    font-size: 14px;
}
.btn.secondary, button.secondary { background: #fff; color: var(--text); border-color: var(--line); }
.btn.danger, button.danger { background: var(--red); border-color: var(--red); }
.btn.small, button.small { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.btn:hover { text-decoration: none; background: var(--primary-dark); }
.btn.secondary:hover { background: #eef3ff; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
form { margin: 0; }
label { display: block; font-weight: 700; margin-bottom: 6px; }
input, textarea, select {
    width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px;
    font: inherit; background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-group { margin-bottom: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; }
th, td { border-bottom: 1px solid var(--line); padding: 12px; vertical-align: top; text-align: left; }
th { background: #eef3ff; color: #13264b; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.badge.low { background: #eef7ff; color: #2456d6; }
.badge.medium { background: #fff4db; color: var(--orange); }
.badge.high { background: #fff0ed; color: var(--red); }
.badge.done { background: #e8f8ef; color: var(--green); }
.badge.open { background: #eef3ff; color: var(--primary); }
.flash { padding: 12px 14px; border-radius: 12px; margin: 0 0 18px; border: 1px solid var(--line); background: #fff; }
.flash.success { border-color: #b8e7ca; background: #eefaf3; color: #086234; }
.flash.error { border-color: #ffd4cc; background: #fff0ed; color: var(--red); }
.weather-big { font-size: 56px; line-height: 1; font-weight: 900; margin: 10px 0; }
.muted { color: var(--muted); }
pre {
    background: #09142b; color: #dff3ff; padding: 16px; border-radius: 14px; overflow-x: auto;
    white-space: pre-wrap; word-break: break-word; font-size: 13px;
}
.footer { background: #fff; border-top: 1px solid var(--line); padding: 28px 20px; color: var(--muted); }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.empty { padding: 26px; border: 1px dashed var(--line); border-radius: 14px; background: #fff; color: var(--muted); }
.task-done { opacity: .65; text-decoration: line-through; }
@media (max-width: 820px) {
    .site-header { align-items: flex-start; flex-direction: column; gap: 12px; padding: 14px 18px; }
    .nav { justify-content: flex-start; }
    .hero, .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
}
.news-card h2 { font-size: 22px; line-height: 1.25; margin-top: 12px; }
.news-card { display: flex; flex-direction: column; gap: 8px; }
.news-card .btn { margin-top: auto; align-self: flex-start; }
