/* ==============================================================
   base.css — reset, переменные, типографика, container
   ============================================================== */

:root {
    --bg: #FFFFFF;
    --bg-subtle: #FAFAFA;
    --bg-card: #FCFCFC;
    --ink: #0A0A0A;
    --ink-2: #171717;
    --muted: #6B7280;
    --muted-2: #9CA3AF;
    --muted-3: #D1D5DB;
    --border: #E5E7EB;
    --border-subtle: #F0F0F0;
    --accent: #FF5C00;
    --accent-soft: rgba(255, 92, 0, 0.08);
    --success: #10B981;

    --header-height: 57px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--ink-2);
    background: var(--bg);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== SECTION LABEL (общий для всех секций) ===== */
.section-head {
    margin-bottom: 40px;
    max-width: 720px;
}
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 16px;
}
.section-label::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--accent);
}
.section-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 12px;
}
.section-title em {
    font-style: italic;
    font-weight: 500;
    color: var(--accent);
}
.section-sub {
    font-size: 16px;
    color: var(--muted);
    max-width: 620px;
    line-height: 1.55;
}

/* ===== TILE BASE ===== */
.tile {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    position: relative;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
a.tile { text-decoration: none; color: inherit; }
a.tile:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ink);
    color: var(--bg);
    padding: 12px 22px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
    background: #1F1F1F;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.btn-primary svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.btn-primary:hover svg { transform: translateX(2px); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-2);
    padding: 12px 18px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.15s ease;
}
.btn-ghost:hover {
    background: var(--bg-subtle);
    color: var(--ink);
}
