*{
    box-sizing: border-box;
}

/* ===== Ч/Б палитра через переменные ===== */
:root{
    --bg: #0b0b0b;         /* фон */
    --bg2: #111111;        /* поверхности (карточки/плитки) */
    --text: #f2f2f2;       /* основной текст */
    --muted: #bdbdbd;      /* приглушенный */
    --border: #2a2a2a;     /* обводки */
    --hover: #ffffff;      /* hover */
    --tooltip: #1a1a1a;    /* тултипы */
}

/* чтобы фон НЕ обрывался на страницах с маленьким контентом */
html{
    background: var(--bg);
}
html, body{
    /* базовый стиль */
    background: var(--bg);
    color: var(--text);
    font-family: "Fira Mono", monospace;
    font-size: 16px;
    line-height: 1.25em;
    margin: 0 auto;
    margin-bottom: 120px;
    max-width: 1100px;
    padding:10px;

    /* чтобы фон тянулся на весь экран */
    min-height: 100vh;

    /* фон с "пятнами" (теперь ч/б) */
    background:
        radial-gradient(900px 500px at 15% 10%, rgba(255,255,255,0.08), rgba(0,0,0,0) 60%),
        radial-gradient(700px 420px at 85% 18%, rgba(255,255,255,0.06), rgba(0,0,0,0) 55%),
        radial-gradient(800px 520px at 50% 55%, rgba(255,255,255,0.05), rgba(0,0,0,0) 62%),
        radial-gradient(900px 600px at 50% 95%, rgba(255,255,255,0.04), rgba(0,0,0,0) 60%),
        linear-gradient(180deg, #0b0b0b 0%, #050505 100%);

    /* ВАЖНО: ставим ПОСЛЕ background, иначе shorthand сбросит */
    background-attachment: fixed;
}

a{
    text-decoration: none;
    color: var(--text);
}

a:hover{
    color: var(--muted);
}

h2,h3{
    font-size: 16px;
    line-height: 1.25em;
    text-transform: uppercase;
    font-weight: normal;
    padding: 0px;
    margin: 0px;
}

p{
    margin: 20px 0px;
    padding: 0px;
}

img,video{
    width: 100%;
    height: auto;
    padding: 0px;
    border-radius: 4px;
}

header{
    position: relative;
    margin: 140px 0px 60px;
    text-transform: uppercase;
}

blockquote{
    margin-left: -20px;
    padding-left: 20px;
    border-left: 1px solid var(--text);
}

nav{
    margin-top: 20px;
}

header nav svg {
    fill: var(--text);
    width: 14px;
}

hr{
    color: var(--text);
}

.feed{
    max-width: 600px;
    margin: 0 auto;
}

.circle{
    position: absolute;
    right: 0;
    width: 57px;
    height: 57px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    border: 2px solid var(--text);
}

.events{
    max-width: 100%;
}

.event{
    position: relative;
    display: flex;
    float: left;
    width: 20px;
    height: 20px;
    background-color: var(--bg2);
    border-radius: 2px;
    margin: 2px;
}

.event:hover::after{
    content: attr(data-title);
    position: absolute;
    left: 80%;
    bottom: 80%;
    z-index: 1;
    background: var(--tooltip);
    font-size: 11px;
    color: var(--text);
    padding: 5px 7px;
    border-radius: 2px;
}

.cell{
    position: relative;
    height: 55px;
    width: 55px;
    background-color: var(--bg2);
    border-radius: 2px;
    margin: 10px;
}

.cell:hover::after{
    content: attr(data-title);
    position: absolute;
    left: 100%;
    bottom: 100%;
    z-index: 1;
    background: var(--tooltip);
    color: var(--text);
    font-size: 11px;
    padding: 7px 10px;
    border-radius: 5px;
}

.gallery{
    display: flex;
    flex-wrap: wrap;
}

.gallery a{
    width: 45%;
    margin-right: 10px;
    margin-bottom: 5px;
}

.gallery img{
    margin: 0;
}

.card{
    border-style: solid;
    border-color: var(--border);
    border-radius: 10px;
    border-width: 1px;
    padding: 10px;
    margin-bottom: 30px;
}

textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin: 10px auto;

    background: #0a0a0a;
    color: var(--text);
    font-size: 16px;
    line-height: 1.2;

    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
    resize: vertical;
}

input{
    box-sizing: border-box;

    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin: 10px auto;

    background: #0a0a0a;
    color: var(--text);
    font-size: 16px;
    line-height: 1.2;

    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

input[type="checkbox"]{
    width: 15px;
    height: 15px;
    accent-color: var(--text);
    background-color: var(--bg2);
    cursor: pointer;
}

input[type="file"]{
    accent-color: var(--text);
    background-color: var(--bg2);
    cursor: pointer;
}


/* ==== КНОПКИ (прозрачные с обводкой, без движения) ==== */
button[type="submit"]{
    background: transparent;
    color: var(--text);

    border: 1px solid var(--muted);
    border-radius: 10px;

    padding: 12px 16px;
    cursor: pointer;
    margin: 5px auto;
    text-transform: uppercase;
}

button[type="submit"]:hover{
    border-color: var(--hover);
    color: var(--hover);
}

/* общий hover для input/textarea (и кнопка отдельно выше) */
input:hover,textarea:hover{
    border-color: var(--hover);
}

td{
    padding: 0 10px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 999px;
    object-fit: cover;
    vertical-align: middle;
}

.avatar-big {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
    margin: 12px 0;
}

/* (опционально) если у вас где-то используется muted */
.muted{
    opacity: 0.75;
}