/* Network Labs Theme */
:root {
    --primary: #00695C;
    --primary-dark: #004D40;
    --secondary: #000000;
    --accent: #1DE9B6;
    --bg-body: #E0F2F1;
    --bg-card: #ffffff;
    --text-main: #333333;
    --text-muted: #546E7A;
    --border: #B2DFDB;
    --code-bg: #263238;
    --code-text: #ECEFF1;
    --shadow: 0 4px 12px rgba(0, 105, 92, 0.15);
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-mono: 'SF Mono', 'Roboto Mono', Menlo, monospace;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background: var(--primary);
    border-bottom: 1px solid var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: white;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

/* Main Content */
main {
    flex: 1;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 2rem;
}

article h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

article h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

article h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-main);
}

article p {
    margin-bottom: 1rem;
}

/* Steps */
.step {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--accent);
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Code Blocks */
pre {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin: 1.5rem 0;
}

/* Example Blocks (No Copy) */
.example-block {
    background: #FFF3E0; /* Light Orange/Yellow */
    border-left: 5px solid #FF9800;
    color: #3E2723;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
    font-family: var(--font-mono);
    user-select: none; /* Disable text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    position: relative;
}

.example-block::before {
    content: "ПРИМЕР";
    display: block;
    font-size: 0.75rem;
    font-weight: bold;
    color: #E65100;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-family: var(--font-main);
}

code {
    font-family: var(--font-mono);
    background: rgba(0, 105, 92, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--primary-dark);
}

pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    margin-top: auto;
}
