
:root{
    --bg:#f5f5f5;
    --surface:#e6e6e6;
    --text:#222;
    --muted:#666;
    --muted-2:#999;
    --card:#ffffff;
    --border:#d9d9d9;
    --radius:12px;
    font-family: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
}
html,body{height:100%;}

body{
    margin:0;
    background:linear-gradient(180deg,var(--bg),#efefef);
    color:var(--text);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:32px;
}

.wrap{
    width:100%;
    max-width:920px;
    background:var(--card);
    border-radius:var(--radius);
    box-shadow:0 8px 30px rgba(0,0,0,0.06);
    border:1px solid var(--border);
    overflow:hidden;
}

header{
    display:flex;
    gap:16px;
    align-items:center;
    padding:28px 28px 20px 28px;
    background:var(--surface);
    border-bottom:1px solid var(--border);
}

.logo{
    display:flex;
    align-items:center;
    gap:14px;
}
.logo .mark{
    width:56px;height:56px;border-radius:10px;display:flex;align-items:center;justify-content:center;
    background:linear-gradient(180deg,var(--surface),#ededed);
    border:1px solid var(--border);
    box-shadow:inset 0 -2px 0 rgba(0,0,0,0.02);
    font-weight:700;font-size:18px;color:var(--muted-2);
}
.logo .title{
    line-height:1; 
}
.logo .title .name{font-size:20px;font-weight:700;letter-spacing:0.6px;color:var(--text)}
.logo .title .subtitle{font-size:12px;color:var(--muted);margin-top:4px}

main{display:flex;gap:32px;padding:28px}
.content{flex:1}
h1{margin:0 0 12px 0;font-size:20px}
p.lead{margin:0 0 18px 0;color:var(--muted)}

.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.card{background:var(--surface);padding:14px;border-radius:10px;border:1px solid var(--border)}
.card h3{margin:0 0 6px 0;font-size:14px}
.card p{margin:0;color:var(--muted);font-size:13px}

aside{width:280px;min-width:220px}
.panel{background:var(--surface);padding:18px;border-radius:10px;border:1px solid var(--border)}
.meta{font-size:13px;color:var(--muted);margin-bottom:12px}

.cta{display:flex;gap:10px;flex-wrap:wrap}
.btn{appearance:none;border:1px solid var(--border);background:transparent;padding:8px 12px;border-radius:8px;font-weight:600;cursor:pointer}
.btn-primary{background:var(--text);color:#fff;border-color:var(--text)}

footer{padding:16px 28px;background:#fafafa;border-top:1px solid var(--border);font-size:13px;color:var(--muted);}

/* mobile */
@media(max-width:760px){
    body{padding:18px}
    main{flex-direction:column;padding:18px}
    aside{width:100%}
}
/* === PDF Viewer Section === */
.pdf-viewer {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 100;
    flex-direction: column;
}

.pdf-viewer header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.pdf-viewer header h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

.pdf-frame {
    flex: 1;
    width: 100%;
    border: none;
    background: var(--card);
}

.pdf-btn {
    appearance: none;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.pdf-btn:hover {
    background: var(--surface);
}
.pdf-btn-primary {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}
.pdf-btn-primary:hover {
    opacity: 0.9;
}

/* Темная темка :) */
@media (prefers-color-scheme: dark) {
    :root {
    --bg: #121212;
    --surface: #1e1e1e;
    --text: #e6e6e6;
    --muted: #aaa;
    --muted-2: #888;
    --card: #1a1a1a;
    --border: #333;
    }

    body {
    background: linear-gradient(180deg, var(--bg), #181818);
    }

    footer {
    background: #161616;
    }

    .logo .mark {
    background: linear-gradient(180deg, #1e1e1e, #252525);
    color: var(--muted-2);
    }

    .btn { border-color: var(--border); color: var(--text);
    }

    .btn-primary {
    background: var(--text);
    color: #000;
    }

    .pdf-viewer {
    background: var(--bg);
    }

    .pdf-btn {
    color: var(--text);
    border-color: var(--border);
    }

    .pdf-btn:hover {
    background: #2a2a2a;
    }
}
.logo .mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}
.logo:hover .mark {
    box-shadow: 0 0 0 2px var(--border);
    transform: scale(1.03);
    transition: 0.2s ease;
}

/* Убираем подчеркивание у ссылки-логотипа */
.logo {
    text-decoration: none;
    color: inherit;
}
.logo:hover {
    text-decoration: none;
}

/* Hover-эффекты для кнопок */
.btn {
    transition: all 0.2s ease;
}
.btn:hover {
    box-shadow: 0 0 0 2px var(--border);
    transform: scale(1.03);
    transition: 0.2s ease;
}

.btn-primary {
    transition: all 0.25s ease;
}
.btn-primary:hover {
    box-shadow: 0 0 0 2px var(--border);
    transform: scale(1.03);
    transition: 0.2s ease;
}

.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  font-size: 12px;
}

.avatar-wrapper {
  position: relative;
  display: inline-block;
}

.avatar {
  border-radius: 50%;
  border: 1px solid var(--border);
  width: 64px;
  height: 64px;
  object-fit: cover;
}

/* Синий значок */
.outside-badge {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #1e90ff;
  border-radius: 50%;
  border: 2px solid var(--card);
  position: absolute;
  bottom: 4px;
  right: 4px;
}

/* Текст под аватаркой */
.member-info {
  text-align: center;
  margin-top: 6px;
}

.member-name {
  font-weight: 600;
}

.member-role {
  color: var(--muted);
}
