body {
    background-color: rgb(226, 229, 233);
    display: flex;
    justify-content: center;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    background-image: url(../common_imgs/pattern_whitegray_selected.webp);
    background-size: 300px auto;
    background-position: center;
}

body a{
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    text-decoration: none;
    outline: none;
}

:root {
    --dark_blue: #336699;
    --dark_gray: #4D4D4D;
    --white-gray: #CCCCCC;
}

.login-ref {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: transparent;
    color: #336699; /* dark blue */
    text-decoration: none;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(51, 102, 153, 0.3); /* полупрозрачная граница */
    border-radius: 20px; /* скругленные углы */
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 100;
}

.login-ref:hover {
    color: white;
    background-color: #336699;
    border-color: #336699;
    box-shadow: 0 2px 10px rgba(51, 102, 153, 0.2);
    transform: translateX(4px); /* легкий сдвиг вправо */
}

.login-ref:active {
    transform: translateX(4px) scale(0.98);
}

/* Тонкая полоска при наведении (опционально) */
.login-ref::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 16px;
    width: calc(100% - 32px);
    height: 1px;
    background: #336699;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.login-ref:hover::after {
    transform: scaleX(1);
}

.user-block {
    position: absolute;
    top: 20px;
    left: 20px;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    z-index: 100;
    border: 1px solid rgba(204, 204, 204, 0.3);
}

.user-block:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.user-name {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #4D4D4D;
    letter-spacing: 0.3px;
    position: relative;
    padding-right: 8px;
}

.user-name::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #336699;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M12 4a4 4 0 0 1 4 4a4 4 0 0 1-4 4a4 4 0 0 1-4-4a4 4 0 0 1 4-4m0 10c4.42 0 8 1.79 8 4v2H4v-2c0-2.21 3.58-4 8-4'/%3E%3C/svg%3E");
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M12 4a4 4 0 0 1 4 4a4 4 0 0 1-4 4a4 4 0 0 1-4-4a4 4 0 0 1 4-4m0 10c4.42 0 8 1.79 8 4v2H4v-2c0-2.21 3.58-4 8-4'/%3E%3C/svg%3E");
    margin-right: 8px;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.user-block:hover .user-name::before {
    background-color: #2a577d;
    transform: scale(1.1);
}

.material-icons {
    padding: 10px;
    font-size: 40px;
    width: 40px;
    text-decoration: none;
    margin: 5px 80px;
}

.search-group {
    display: flex;
    flex-direction: column;
}

.tag-search-pannel {
    position: fixed;
    background-color: white;
    border-radius: 7px;
    width: 300px;
    padding: 20px;
    z-index: 20;
    margin-top: 50px;
    box-shadow: 0 0 10px rgb(104, 98, 98);
    display: none;
}

.close-tag-pannel{
    display:flex;
    justify-content:flex-end;
    margin-bottom:20px;
}

.close-tag-pannel button {
    padding: 3px;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    border:2px solid #4D4D4D
}

.close-tag-pannel button:hover {
    background:#c34747
}

.close-tag-pannel img{
    width:20px;
}

.tag-search-pannel form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 15px;
}

.tag-list {
    display: flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:space-between
}

.tag{
    color:#336699;
    font-size:16px;
    font-family:Arial, Helvetica, sans-serif;
    padding:5px;
    border-radius:3px;
    text-align:center;
}

.tag-active {
    background: #c6cbcf;
}

.tag-post-btn{
    margin-top:30px;
    padding:5px 20px;
    border:none;
    font-family:Arial, Helvetica, sans-serif;
    color:white;
    background-color:#336699;
    text-align:center;
    font-size:16px;
    border-radius:5px;
    cursor:pointer;
}

.tag-search-btn {
    margin-top: 20px;
    margin-bottom: 20px;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    background-color: #336699;
    text-align: center;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    padding:5px;
    border:none;
    margin:0 14px;
}

section {
    background-color: white;
    width: 80%;
    min-height: 100vh;
    position: relative;
}

.header {
    display: flex;
    flex-direction: column;
}

.lang-block{
    padding: 10px;
    display: flex;
    align-items:center;
    justify-content: space-between;
}

.lang-block form{
    display: flex;
    justify-content: center;
    align-items: center;
}

.lang-select {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 16px;
    padding: 5px;
    border: 1px solid #336699;
    border-radius: 3px;
    margin-right: 5px;
}

.lang-select option{
    border: 1px solid rgb(31, 122, 201);
}

.translate-btn {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 16px;
    padding: 5px;
    border: none;
    border-radius: 3px;
    background: #CCCCCC;
}

    .translate-btn:hover {
        background-color: #336699;
        color: white;
    }

.author-short-data{
    display: flex;
    flex-direction: column;
    margin: 25px;
}

.s-title{
    color: #336699;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 10px;
    display:flex;
    align-items:center;
    flex-wrap:wrap;
}

.s-title span{
    margin-right:10px;
    margin-bottom:1px
}

.title-logo-img{
    height:20px;
    width:auto;
}

.s-description {
    font-size: 20px;
    color: #4D4D4D;
}

.s-description a{
    color: rgb(31, 122, 201);
}

.h-menu-line {
    background-color: #336699;
    padding-left: 25px;
    color: white;
    display: flex;
}

.h-menu-line a{
    color: white;
    font-size: 18px;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    font-weight: 100;
}

.menu-active{
    background: rgb(110, 140, 178);
}

.main{
    display: flex;
    padding: 25px;
    justify-content:space-between;
}

.blog-part{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-list{
    display: flex;
    gap: 30px;
    flex-wrap:wrap;
    
}

.blog-group{
    display: flex;
    flex-direction: column;
    width: 300px;
    cursor: pointer;
}

.blog-img-container {
    position: relative;
    width: 300px;
    height: 150px;
    overflow: hidden;
    margin-bottom: 10px;
    z-index: 10;
    border-radius: 3px;
    box-shadow: 0 0 10px rgb(104, 98, 98)
}

/*.blog-img-container amp-img{
    width: 300px;
    min-height: 150px;
    position: absolute;
    left: 0;
    top: 0;
}*/

.blog-title {
    font-size: 20px;
    transition: 0.2s;
    color: #336699
}

.blog-title:hover{
    color: rgb(225, 145, 32);
}

.side-bar{
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    position: relative;
    padding-left: 20px;
    padding-right: 20px;
    width: fit-content;
}

.search-input-group{
    display: flex;
    padding: 3px;
    border: 1px solid rgb(104, 98, 98);
    border-radius: 5px;
    width: fit-content;
}

.search-input{
    outline: none;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    border: none;
    background: none;
    width: 250px;
    height: 25px;
    font-size: 16px;
    color: rgb(104, 98, 98);
}

.search-btn{
    background: none;
    border: none;
    cursor: pointer;
}



.search-img{
    height: 22px;
    width: auto;
}

.rubrics{
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    padding-left:14px;
}

.r-title {
    font-size: 25px;
    font-weight: 700;
    color: #4D4D4D;
    margin-bottom: 20px;
}

.cat-list{
    display: flex;
    flex-direction: column;
    width: 295px;
}

.cat-group{
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    padding-bottom: 5px;
    border-bottom: 1px solid rgb(104, 98, 98);
}

.rubric-img{
    height: 20px;
    margin-right: 10px;
}

.cat-group a {
    outline: none;
    text-decoration: none;
    color: #336699;
}

.paginator{
    margin-top: 30px;
}

.paginator form{
    display: flex;
    justify-content: center;
}

.pag-btn{
    background-color: #CCCCCC;
    margin-right: 5px;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    padding:5px 12px;
    text-align: center;
    border: none;
    outline: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.pag-btn:hover{
    background-color: rgb(31, 122, 201);
    color: white;
}

.is-paginated {
    background-color: #336699;
    color: white;
}

.footer {
    padding: 25px;
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #4D4D4D;
    position:relative;
    overflow:hidden;
}

.circle{
    background-color:white;
    width:300px;
    height:300px;
    border-radius:50%;
    position:absolute;
    opacity:0.5;
}

.left-circle {
    top: -120px;
    left: -100px;
    background-color: #336699
}

.right-circle {
    right: -100px;
    bottom: -120px;
    background-color: #808080
}

.f-title {
    color:white;
    font-weight: 600;
    margin-bottom: 20px;
}

.f-desc{
    font-size: 14px;
    color:white
}

.link-container{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;
    margin-top:40px;
    z-index:10;
}

.link-ref img{
    height: 40px;
    width: auto;
}

@media (min-width:826px) and (max-width:1250px) {
    .main{
        flex-direction: column-reverse;
        align-items: center;
    }

    .side-bar{
        align-items: center;
    }
}

@media(max-width:880px){
    .blog-list {
        justify-content: center;
    }
}

@media (min-width:675px) and (max-width:826px){

    body{
        margin: 0;
        padding: 0;
    }

    .main{
        flex-direction: column-reverse;
        align-items: center;
    }

    .side-bar{
        align-items: center;
    }

    section{
        width: 100%;
    }
}

@media (max-width:675px){

    body{
        margin: 0;
        padding: 0;
    }

    .main{
        flex-direction: column-reverse;
        align-items: center;
    }

    .side-bar{
        align-items: center;
    }

    section{
        width: 100%;
    }
}