html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}


body {
    font-family: 'Segoe UI', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: #333;
    background-color: #ffffff;
}

/* Header Layout */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: #fff;
    line-height: 1;
}

header p {
    padding-bottom: 10px;
}

h1 {
    line-height: 1;
    padding-bottom: 10px;
}

.header-txt1 {
    position: absolute; 
    bottom: 5px; 
    left: 200px;
    text-align: left;
} 

.header-txt1 p {
    padding: 0;
    margin: 0;
    font-size: 0.7rem;
}

.logo-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.title-block h1 {
    margin: 0;
    color: #1a5a8a;
    font-size: 2rem;
}

.web-link {
    color: #b32d2d;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
}

/* Navigation Block - SWAPPED */
nav {
    background-color: #e9eff5;
    padding: 1px 60px;
    border-top: 1px solid #d1d1d1;
    border-bottom: 1px solid #d1d1d1;
    display: flex;
    justify-content: space-between; /* Ensures left/right separation */
    align-items: center;
}

/* Language on the LEFT */
.lang-wrapper {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #1a5a8a;
    font-weight: 600;
}

.lang-wrapper select {
    margin-left: 8px;
    border: 1px solid #b6c6d6;
    background: #fff;
    padding: 2px 5px;
    color: #1a5a8a;
    cursor: pointer;
}

/* Menu on the RIGHT */
.nav-links {
    display: flex;
    gap: 25px;
}



.nav-links a:hover {
    color: grey;
}

.nav-links a {
    text-decoration: none;
    color: #1a5a8a;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
    padding-left: 10px;
}

.nav-links a::before {
    content: '■';
    font-size: 0.5rem;
    margin-right: 5px;
    vertical-align: middle;
}

.nav-links a.active {
    color: grey;
    /* font-weight: normal; */
}

/* Main Grid */
main {
    flex: 1; 
    padding: 30px 20px;
    display: grid;
    gap: 10px;
    margin: 0 auto;
}

main.index {
    /* grid-template-columns: 1.3fr 1fr 1.3fr;
    padding-top: 40px; */
    grid-template-columns: 1fr;
    padding-top: 20px;
}

main.about {
    grid-template-columns: 1.5fr 0.6fr 1fr;
    padding-top: 40px;
}

main.about.en ul.about-doc-list {
    margin-top: 45px;
}

main.publications {
    grid-template-columns: 1fr 1fr 1fr;
    font-size: 0.7rem;
    grid-row-gap: 0px;
}

main.publications.en {
    grid-row-gap: 0px;
}



main.community {
    grid-template-columns: 1fr 1fr 1fr;
    font-size: 0.7rem;
}

ul.publications-list {
    margin-bottom: 0;
    margin-top: 0;
    padding-bottom: 0;
    padding-top: 0;
}

ul.publications-list li {
    margin-bottom: 0px;
    min-height: 110px;
}

ul.publications-list li:nth-child(1) {
    min-height: 100px;
}


ul.patient-descr {
    list-style: square;
    color: #005475;
}

ul.patient-descr p {
    margin: 0;
    padding: 0;
}

ul.patient-descr li:first-child p {
    font-size: 0.8rem;
}

ul.patient-descr li {
    margin-bottom: 20px;
}

ul.patient-descr h2 {
    color: #005475;
    font-size: 0.9rem;
    font-weight: normal;
}

ul.patient-descr h3 {
    color: #005475;
    font-size: 0.8rem;
    font-weight: bold;
}

main.ru ul.patient-descr li:last-child {
    padding-top: 10px;
}



.comment-box-2 {
    color: black;
    font-style: normal;
    font-size: 0.7rem;
    /* border: 1px dashed black; */
    /* padding: 5px 10px; */
    margin-bottom: 10px;
    text-align: justify;
}

.h-140 {
    /* min-height: 140px; */
    min-height: 100px;
}

a.pdf {
    color: black;
    display: inline-block;
    padding-left: 40px;
    cursor: pointer;
    background-image: url('/images/pdf.png');
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 30px 30px;
    min-height: 30px;
    font-size: smaller;
}

a.pdf:hover {
    background-image: url('/images/pdf1.png');
}

a.pdf:active {
    background-image: url('/images/pdf2.png');
    font-weight: normal;

}


.col-text { 
    /* border: 1px dashed #999;  */
    padding: 0; 
    font-size: 0.8rem; 
    line-height: 1.2;
    text-align: justify; 
}

.col-text h2 {
    font-size: 0.9rem;
    text-align: left;
    margin-top: 0;
}

.col-index-3-inner {
    display: flex;
    flex-direction: column-reverse;
    grid-template-columns: 1fr;
}

.col-verify-inner { background-color: #f4f4f4; padding: 20px; font-size: 0.7rem; text-align: justify; height: auto; }
.col-verify h2 { font-size: 0.85rem; margin-top: 0;}
.diagram-box { border: 1px solid #eee; padding: 10px; text-align: center; margin-bottom: 30px; background: #fafafa; }
.author-box { text-align: center; font-size: 0.85rem; display: flex; flex-direction: column; justify-content: center; }

.author-img { width: 120px; height: 150px; background: #eee; margin:0 auto 15px auto; border: 1px solid #ccc; }

.author2-img { width: 200px; background: #eee; margin: 0 auto 30px auto; }

.col-about {
   font-size: 0.8rem;
   line-height: 1.2;
}

.col-about p {
    margin-bottom: 5px;
}

.comment-box {
    font-size: 0.75rem;
    font-style: italic;
    margin-bottom: 33px;
    text-align: justify;
}

ul.about-doc-list {
    color: #005475;
    padding-left: 15px;
    list-style: square;
    font-weight: normal;
}

/* Footer */
footer {
    background-color: #1a5a8a;
    color: #fff;
    padding: 25px 50px;
    font-size: 0.72rem;
    line-height: 1.2;
}

.footer-copy {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    font-size: 0.5rem;
}
