/* ====================================================
   Асабісты сайт у стылі 2000-2014
   Канцэпцыя: цэгляная сцяна + папяровыя лісткі-навігацыя
   ==================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Verdana&display=swap');

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

html, body {
    min-height: 100%;
}

html {
    background-image: url('кірпічнаясцяназчбфільтрам.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100%;
    height: 100%;
}

body {
    font-family: Verdana, Geneva, Arial, sans-serif;
    font-size: 13px;
    color: #2b2b2b;
    background: transparent;
    min-height: 100vh;
}

/* На мабільных background-attachment:fixed часта не падтрымліваецца —
   пераключаемся на звычайны рэжым, але carrying праз html, каб не было
   "абрэзкі" фону на доўгіх старонках */
@media (max-width: 768px) {
    html {
        background-attachment: scroll;
        background-size: cover;
    }
}

/* ====================================================
   ШПІЛЬКІ-НАВІГАЦЫЯ (паперкі на сцяне)
   ==================================================== */

.pinboard {
    max-width: 1000px;
    margin: 0 auto;
    padding: 28px 20px 10px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 26px;
}

.pin-note {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #2b2b2b;
    font-family: 'Caveat', 'Comic Sans MS', cursive;
    font-size: 22px;
    font-weight: 700;
    padding: 14px 18px 18px 18px;
    min-width: 90px;
    text-align: center;
    box-shadow: 3px 5px 10px rgba(0,0,0,0.55);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid rgba(0,0,0,0.15);
}

.pin-note:hover {
    transform: scale(1.08) rotate(0deg) !important;
    box-shadow: 4px 7px 14px rgba(0,0,0,0.6);
    z-index: 10;
}

.pin-note.active {
    /* паперка бягучай старонкі вылучаецца больш глыбокім ценем */
    box-shadow: 4px 8px 16px rgba(0,0,0,0.7);
}

/* Цвічок / кнопка-прышпілька зверху ў кожнай паперкі */
.pin-note::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ff6b5b, #8c1a0e 80%);
    box-shadow: 0 2px 3px rgba(0,0,0,0.6);
    z-index: 2;
}

/* Розныя колеры і паварот паперак - як быццам накідана неахайна */
.pin-note.note-yellow { background: #fdf28a; transform: rotate(-4deg); }
.pin-note.note-yellow:nth-of-type(2n) { transform: rotate(3deg); }

.pin-note.note-blue   { background: #bfe3f0; transform: rotate(3deg); }
.pin-note.note-pink   { background: #f6c9d8; transform: rotate(-2deg); }
.pin-note.note-green  { background: #d3eec0; transform: rotate(4deg); }
.pin-note.note-old    { background: #ecdfc0; transform: rotate(-3deg); font-family: 'Caveat', cursive; }
.pin-note.note-white  { background: #fbfbf4; transform: rotate(2deg); }

/* лёгкая тэкстура лінованай паперы для аднаго з тыпаў нататкі */
.pin-note.lined {
    background-image: repeating-linear-gradient(
        white 0px, white 21px, #bcd9ee 22px, white 23px
    );
}

/* ====================================================
   АРКУШ-КАНТЭНТ (асноўны блок старонкі)
   ==================================================== */

.page-sheet {
    max-width: 860px;
    margin: 10px auto 60px auto;
    background: #fdfcf7;
    background-image:
        linear-gradient(rgba(255,255,255,0.0), rgba(0,0,0,0.02));
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.05),
        6px 10px 28px rgba(0,0,0,0.55);
    position: relative;
    padding: 0 0 30px 0;
    border: 1px solid #d8d2bf;
}

/* імітацыя дзірачак ад дзяржака / скотчу па вуглах аркуша */
.page-sheet::before, .page-sheet::after {
    content: "";
    position: absolute;
    width: 70px;
    height: 34px;
    background: rgba(255,255,255,0.35);
    border: 1px solid rgba(0,0,0,0.07);
    top: -14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.page-sheet::before { left: 36px; transform: rotate(-7deg); }
.page-sheet::after   { right: 36px; transform: rotate(6deg); }

.sheet-header {
    background: #800000;
    background-image: linear-gradient(180deg, #9a1c1c 0%, #6e0e0e 100%);
    color: #f5e9c9;
    padding: 18px 28px 14px 28px;
    border-bottom: 4px double #d8b96a;
}

.sheet-header h1 {
    font-family: 'Caveat', 'Comic Sans MS', cursive;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 1px;
}

.sheet-header p.subtitle {
    font-size: 12px;
    font-style: italic;
    color: #e9d8ad;
    margin-top: 2px;
}

.sheet-body {
    padding: 24px 32px 10px 32px;
    line-height: 1.55;
}

.sheet-body h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 19px;
    color: #6e0e0e;
    border-bottom: 1px dashed #c9bfa0;
    padding-bottom: 4px;
    margin: 22px 0 10px 0;
}

.sheet-body h2:first-child { margin-top: 0; }

.sheet-body h3 {
    font-size: 14px;
    color: #444;
    margin: 14px 0 6px 0;
}

.sheet-body a {
    color: #0033cc;
}
.sheet-body a:visited {
    color: #663399;
}

.sheet-body hr {
    border: none;
    border-top: 1px dashed #c9bfa0;
    margin: 18px 0;
}

/* ====================================================
   ВІНТАЖНЫЯ ТАБЛІЦЫ-МАКЕТЫ
   ==================================================== */

table.retro-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 18px 0;
    background: #fffefa;
    border: 2px solid #6e0e0e;
}

table.retro-table th {
    background: #6e0e0e;
    color: #f5e9c9;
    padding: 7px 10px;
    font-size: 12px;
    text-align: left;
    border: 1px solid #4d0a0a;
}

table.retro-table td {
    padding: 7px 10px;
    border: 1px solid #d8d2bf;
    vertical-align: top;
}

table.retro-table tr:nth-child(even) td {
    background: #f3efe2;
}

/* двух- / трохкалонкавая раскладка ўнутры аркуша, як у старых сайтаў */
table.layout-table {
    width: 100%;
    border-collapse: collapse;
}
table.layout-table td {
    vertical-align: top;
    padding: 0 14px 0 0;
}
table.layout-table td.side-col {
    width: 200px;
    border-right: 1px dashed #c9bfa0;
    padding-right: 16px;
}

/* ====================================================
   ВІНТАЖНЫЯ КНОПКІ (плоскія, без 3D, але з рамкай-стылем 2000-х)
   ==================================================== */

.retro-btn {
    display: inline-block;
    background: #e9e2c8;
    border: 1px solid #6e0e0e;
    color: #6e0e0e;
    text-decoration: none;
    font-family: Verdana, sans-serif;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 14px;
    margin: 4px 4px 4px 0;
}
.retro-btn:hover {
    background: #6e0e0e;
    color: #f5e9c9;
}

/* "перфакарта" / марка ў куточку для дэкору */
.stamp-corner {
    float: right;
    border: 2px dashed #999;
    padding: 4px 8px;
    font-size: 10px;
    color: #777;
    transform: rotate(4deg);
    margin: 0 0 10px 14px;
}

/* блок-цытата / "выразка з газеты" */
.clipping {
    background: #f4f0e2;
    border-left: 4px solid #6e0e0e;
    padding: 10px 14px;
    font-style: italic;
    font-size: 12px;
    color: #555;
    margin: 14px 0;
}

/* ====================================================
   ФУТЭР АРКУША
   ==================================================== */

.sheet-footer {
    text-align: center;
    font-size: 11px;
    color: #8a8a8a;
    padding: 14px 20px 4px 20px;
    border-top: 1px dashed #c9bfa0;
    margin: 16px 32px 0 32px;
}

/* ====================================================
   АДАПТЫЎНАСЦЬ ДЛЯ ВУЗКІХ ЭКРАНАЎ
   ==================================================== */

@media (max-width: 600px) {
    .sheet-header h1 { font-size: 28px; }
    .sheet-body { padding: 18px 16px; }
    table.layout-table, table.layout-table tr, table.layout-table td {
        display: block;
        width: 100% !important;
    }
    table.layout-table td.side-col {
        border-right: none;
        border-bottom: 1px dashed #c9bfa0;
        padding: 0 0 10px 0;
        margin-bottom: 10px;
    }
}
