body{
    margin:0;
    font-family:Arial,sans-serif;
    background:#0f172a;
    color:white;
    line-height:1.6;
}

/* ================= HEADER ================= */

header{
    padding:90px 20px;
    text-align:center;
    background:linear-gradient(180deg,#111827,#0f172a);
}

header h1{
    font-size:56px;
    margin-bottom:15px;
}

header p{
    font-size:21px;
    color:#cbd5e1;
    max-width:760px;
    margin:auto;
}

/* ================= BUTTON ================= */

.btn{
    display:inline-block;
    margin-top:35px;
    padding:15px 35px;
    background:#2563eb;
    color:white;
    text-decoration:none;
    border-radius:12px;
    font-size:18px;
    transition:0.2s;
}

.btn:hover{
    opacity:0.9;
}

/* ================= SECTIONS ================= */

section{
    padding:70px 20px;
    max-width:1100px;
    margin:auto;
}

h2{
    font-size:34px;
    margin-bottom:30px;
}

/* ================= SITE CARDS ================= */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:22px;
}

/* карточка сайта */
.card{
    background:#1e293b;
    padding:28px;
    border-radius:18px;
    border:1px solid #334155;

    display:flex;
    flex-direction:column;
}

.card h3{
    margin-top:0;
    margin-bottom:12px;
    font-size:22px;
}

.card p{
    color:#cbd5e1;
}

.card .btn{
    margin-top:auto;
}

/* ================= ADMIN LAYOUT ================= */

.admin-wrap{
    max-width:800px;
    margin:40px auto;
    padding:20px;
}

/* top bar */
.top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

/* logout button */
.top a{
    background:#ef4444;
    color:white;
    padding:8px 14px;
    border-radius:8px;
    text-decoration:none;
    font-size:14px;
}

/* ================= FORMS ================= */

form{
    max-width:500px;
    margin-bottom:20px;
}

input, textarea{
    display:block;
    width:100%;
    padding:10px;
    margin-bottom:10px;

    border-radius:8px;
    border:none;

    background:#1e293b;
    color:white;
}

textarea{
    min-height:100px;
    resize:vertical;
}

form button{
    display:block;
    width:100%;
    padding:10px;

    background:#2563eb;
    color:white;

    border:none;
    border-radius:8px;

    cursor:pointer;
}

form button:hover{
    opacity:0.9;
}

/* ================= ADMIN CARD ================= */

.admin-card{
    background:#1e293b;
    padding:15px;
    margin-top:10px;
    border-radius:10px;

    display:flex;
    flex-direction:column;
}

.admin-card p{
    color:#cbd5e1;
	white-space: pre-line;
}

/* footer в админке */
.card-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-top:15px;
    padding-top:10px;

    border-top:1px solid #334155;
}

.small{
    color:#94a3b8;
    font-size:12px;

    max-width:70%;
    word-break:break-word;
}

.del{
    background:#ef4444;
    color:white;

    padding:6px 12px;
    border-radius:8px;

    text-decoration:none;
    font-size:13px;

    white-space:nowrap;
    flex-shrink:0;
}

/* ================= INFO BLOCK ================= */

.info{
    background:#111827;
    border-radius:18px;
    padding:35px;
    border:1px solid #1e293b;
}

/* ================= LOGO ================= */

.logo{
    max-width:320px;
    width:100%;
    height:auto;
    margin-bottom:20px;
}

/* ================= FOOTER ================= */

footer{
    text-align:center;
    padding:35px;
    color:#94a3b8;
    border-top:1px solid #1e293b;
    margin-top:40px;
}

/* ================= STATUS ================= */

.status{
    margin-top:20px;
    color:#cbd5e1;
}

/* ================= TOP BUTTON ================= */

#topBtn{
    position:fixed;
    bottom:25px;
    right:25px;

    width:55px;
    height:55px;

    border:none;
    border-radius:50%;

    background:#2563eb;
    color:white;

    font-size:24px;
    cursor:pointer;

    display:none;
    align-items:center;
    justify-content:center;

    box-shadow:0 4px 15px rgba(0,0,0,0.3);

    transition:0.2s;
    z-index:999;
}

#topBtn:hover{
    opacity:0.9;
    transform:translateY(-2px);
}

/* ================= NAV ================= */

nav{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:25px;

    padding:20px;
    background:#111827;

    border-bottom:1px solid #1e293b;

    flex-wrap:wrap;
}

nav a{
    color:white;
    text-decoration:none;
    font-size:17px;

    padding:10px 18px;
    border-radius:10px;

    transition:0.2s;
}

nav a:hover{
    background:#1e293b;
}

/* USER */

.user-box{
    display:flex;
    align-items:center;
    gap:12px;
}

.avatar{
    width:38px;
    height:38px;

    border-radius:50%;

    background:#2563eb;

    display:flex;
    align-items:center;
    justify-content:center;

    font-weight:bold;
    color:white;
}

/* ================= TIMELINE ================= */

.timeline{
    position:relative;
    margin-top:30px;
    padding-left:30px;
}

.timeline::before{
    content:"";
    position:absolute;
    left:10px;
    top:0;
    bottom:0;
    width:2px;
    background:#334155;
}

.item{
    position:relative;
    margin-bottom:30px;
    padding-left:30px;
}

.dot{
    position:absolute;
    left:0;
    top:6px;
    width:14px;
    height:14px;
    background:#2563eb;
    border-radius:50%;
}

.content h3{
    margin:0 0 5px 0;
}

.content p{
    margin:0;
    color:#cbd5e1;
}

.timeline{
    position:relative;
    margin-top:30px;
    padding-left:35px;
}

.timeline::before{
    content:"";
    position:absolute;
    left:10px;
    top:0;
    bottom:0;
    width:2px;
    background:#334155;
}

.item{
    position:relative;
    margin-bottom:25px;
}

.dot{
    position:absolute;
    left:0;
    top:18px;
    width:12px;
    height:12px;
    background:#2563eb;
    border-radius:50%;
}

.content{
    background:#1e293b;
    border:1px solid #334155;
    border-radius:16px;
    padding:18px 20px;
    box-shadow:0 6px 20px rgba(0,0,0,0.25);
    transition:0.2s;
}

.content:hover{
    transform:translateY(-2px);
    border-color:#3b82f6;
}

.meta{
    margin-bottom:10px;
}

.date{
    display:inline-block;
    font-size:12px;
    color:#cbd5e1;
    background:#0f172a;
    padding:4px 10px;
    border-radius:999px;
    border:1px solid #334155;
}

.content h3{
    margin:0 0 10px 0;
    font-size:20px;
}

.content p{
    margin:0;
    color:#cbd5e1;
    line-height:1.6;

    white-space: normal;
}