:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --blue: #2f80ed;
    --blue-dark: #1d4ed8;
    --radius: 22px;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(47, 128, 237, 0.08), transparent 35%),
        var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

.site-container {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

.site-main {
    min-height: 72vh;
    padding: 28px 0 50px;
}

.card {
    background: var(--card);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.section-title {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;

    width: 46px;
    height: 46px;

    border: 0;
    border-radius: 999px;

    background: var(--blue);
    color: #fff;

    font-size: 22px;
    cursor: pointer;

    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: 0.25s;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   SOFT POLISH ACCENT — без тотальной красной темы
========================================================= */

:root {
    --pl-red: #ef3340;
    --pl-red-dark: #d71920;
    --pl-red-soft: #fff1f3;
}

body {
    background:
        radial-gradient(circle at top left, rgba(47, 128, 237, 0.08), transparent 35%),
        var(--bg) !important;
}

.back-to-top {
    background: #2f80ed !important;
}
