

body{
    font-family:"Georgia","Times New Roman",serif;
    background:linear-gradient(140deg,#3b2f2f,#5a3e36);
    margin:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    min-height:100vh;
    padding:40px;
}

.master-container{
    position:relative;
    width:78%;
    max-width:1050px;
    height:560px;
    background:#fffdf9;
    border-radius:26px;
    box-shadow:0 22px 50px rgba(0,0,0,0.45);
    padding:32px;
    margin-bottom:30px;
}

.chart-layer{
    position:absolute;
    top:35px;
    left:35px;
    right:35px;
    bottom:35px;
}

#pointsCanvas{
    pointer-events:none;
    z-index:40;
}

#chartCanvas{
    z-index:20;
}

/* блок управления */

.controls{
    display:flex;
    flex-wrap:wrap;
    gap:18px;
    justify-content:center;
    max-width:1050px;
    background:rgba(255,255,255,0.15);
    padding:22px;
    border-radius:20px;
    color:#fff8f0;
}

.control-group{
    display:flex;
    flex-direction:column;
    align-items:center;
    width:85px;
}

.control-group input{
    width:60px;
    padding:8px;
    border-radius:12px;
    border:1px solid #e7d9c9;
    text-align:center;
    font-size:14px;
}







/* сетка карточек */

.cards-container{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
    padding:12px;
}

/* карточка */

.bs-blog-post.single{

    background:linear-gradient(180deg,#ffffff,#f9f4ec);

    padding:28px;

    border-radius:24px;

    border:1px solid #eadfd2;

    box-shadow:
    0 12px 24px rgba(0,0,0,0.08),
    0 3px 8px rgba(0,0,0,0.05);

    transition:all .28s ease;
}

.bs-blog-post.single:hover{

    transform:translateY(-8px);

    box-shadow:
    0 24px 45px rgba(0,0,0,0.2);
}

.bs-blog-post .ualgan{
    list-style:none;
    margin:0;
    padding:0;
}

.bs-blog-post h2{

    margin:0;
    font-size:21px;
    font-weight:600;
    color:#3b2f2f;
    line-height:1.4;
}


/* категории */

.category-grid *{
    box-sizing:border-box;
}

.category-grid{

    display:flex !important;
    flex-wrap:wrap;

    gap:20px;

    padding:28px;

    background:linear-gradient(130deg,#f7efe5,#efe3d6);

    border-radius:22px;
}

.category-card{

    display:block !important;

    min-width:160px;

    text-align:center;

    padding:16px 32px;

    background:#ffffff;

    color:#4b3a30;

    text-decoration:none;

    border-radius:50px;

    border:1px solid #e4d7c8;

    font-family:"Georgia",serif;

    font-size:15px;

    font-weight:600;

    box-shadow:0 6px 14px rgba(0,0,0,0.08);

    transition:all .25s ease;
}

.category-card:hover{

    background:#8b5e3c;

    color:white;

    transform:translateY(-4px);

    box-shadow:0 16px 28px rgba(0,0,0,0.2);
}


/* footer */

.footer{

    background:#2d1f1f;

    padding:60px 28px;

    font-family:"Georgia",serif;
}

.footer-container{

    max-width:1200px;

    margin:0 auto;
}

.footer-title{

    margin-bottom:28px;

    color:#f8f1e8;

    font-size:20px;
}


/* ссылки */

.category-grid{

    display:flex;

    flex-wrap:wrap;

    gap:18px;
}

.category-card{

    display:inline-block;

    padding:14px 26px;

    background:#ffffff;

    border-radius:30px;

    text-decoration:none;

    color:#5c4638;

    font-size:14px;

    transition:all .3s ease;

    box-shadow:0 6px 12px rgba(0,0,0,0.1);
}

.category-card:hover{

    background:#8b5e3c;

    color:white;

    transform:translateY(-3px);

    box-shadow:0 14px 26px rgba(0,0,0,0.22);
}


/* адаптивность */

@media (max-width:1000px){

.cards-container{
grid-template-columns:repeat(2,1fr);
}

}

@media (max-width:640px){

.cards-container{
grid-template-columns:1fr;
}

}







/* сетка */

.cards-container{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;
}

/* карточка */

.bs-blog-post.single{

    background:#fffdf9;

    padding:30px;

    border-radius:24px;

    border:1px solid #eadfd2;

    box-shadow:0 12px 26px rgba(0,0,0,0.08);

    transition:all .3s ease;
}

.bs-blog-post.single:hover{

    transform:translateY(-7px);

    box-shadow:0 24px 40px rgba(0,0,0,0.18);
}

.bs-blog-post .ualgan{

    list-style:none;

    margin:0;

    padding:0;
}

.bs-blog-post h2{

    margin:0;

    font-size:21px;

    font-weight:600;

    color:#3b2f2f;
}


/* адаптив */

@media (max-width:1000px){

.cards-container{
grid-template-columns:repeat(2,1fr);
}

}

@media (max-width:640px){

.cards-container{
grid-template-columns:1fr;
}

}

