/* -------------------------------------------------
   Общие стили
   ------------------------------------------------- */
:root {
    --primary: #2c3e50;
    --accent:  #e74c3c;
    --bg:      #f9f9f9;
    --code-bg: #1e1e1e;
    --code-fg: #f8f8f2;
    --border:  #ddd;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: #333;
    line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* -------------------------------------------------
   Header & navigation
   ------------------------------------------------- */
.site-header {
    background: var(--primary);
    color: #fff;
    padding: 1rem 2rem;
    text-align: center;
}
.site-header h1 { margin: 0; font-size: 1.8rem; }
.site-nav ul {
    list-style: none;
    margin: .5rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.site-nav li { margin: .3rem .6rem; }
.site-nav a {
    color: #fff;
    font-weight: 500;
    padding: .2rem .5rem;
    border-radius: 4px;
}
.site-nav a:hover { background: rgba(255,255,255,.15); }

/* -------------------------------------------------
   Main content
   ------------------------------------------------- */
.site-main {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.task {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 2rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}
.task h2 {
    margin-top: 0;
    color: var(--primary);
    border-left: 4px solid var(--accent);
    padding-left: .5rem;
}
.task h3 { margin-top: 1rem; color: #555; }

/* -------------------------------------------------
   Code blocks
   ------------------------------------------------- */
.code-block {
    position: relative;
    margin: .8rem 0;
}
.code-block pre {
    background: var(--code-bg);
    color: var(--code-fg);
    overflow-x: auto;
    padding: 1rem;
    border-radius: 4px;
    margin: 0;
    font-size: .92rem;
}
.code-block button.copy-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: .8rem;
    cursor: pointer;
    opacity: .8;
}
.code-block button.copy-btn:hover { opacity: 1; }

/* -------------------------------------------------
   Lists / steps
   ------------------------------------------------- */
.steps { margin-left: 1.2rem; }
.steps li { margin-bottom: .4rem; }

/* -------------------------------------------------
   Footer
   ------------------------------------------------- */
.site-footer {
    text-align: center;
    font-size: .85rem;
    padding: 1rem;
    color: #777;
    border-top: 1px solid var(--border);
}
.site-footer a { color: var(--accent); }