/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Aptos", "Aptos Display", sans-serif;
}

body {
    background-color: #E3E0D7;
    color: #1a1a1a;
    line-height: 1.5;
}

@font-face {
    font-family: 'Jun';
    src: url('../fonts/Jun.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ШАПКА (LOGO + MENU) ===== */
.logo {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.logotxt {
    font-size: 25px;
    color: #1a1a1a;
    line-height: 1.2;
    align-self: flex-end;
    margin-bottom: 17px;
}

.logotxt .bold {
    font-weight: bold;
    margin: 0;
    font-size: 28px;
}

.logotxt .light {
    font-weight: normal;
    margin: 0;
    font-size: 20px;
}

.shapka {
    font-size: 20px;
    color: #1a1a1a;
    line-height: 1.2;
    display: flex;
    align-self: flex-end;
    margin-bottom: 17px;
    margin-left: auto;
    gap: 30px;
    white-space: nowrap;
    flex-wrap: wrap;
}

.shapka a {
    color: #1a1a1a;
    text-decoration: none;
}

.shapka a:hover {
    text-decoration: underline;
}

/* Линия под шапкой */
.line {
    border-top: 5px solid #454e03;
    width: 100%;
    max-width: 1600px;
    margin: 20px auto;
}

/* ===== БЛОК НОВОСТЕЙ (first) ===== */
.first .container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 0;
}

.images-row {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.left-column {
    width: 66.666%;
    display: flex;
    flex-direction: column;
}

.right-column {
    width: 33.333%;
    display: flex;
    flex-direction: column;
}

.image, .image2 {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: #fff;
}

.image-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.caption {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    width: 100%;
    height: auto;
    flex: 1;
}

.caption-author {
    padding: 10px 5px;
    background-color: #373E02;
    color: #ffffff;
}

.caption-info {
    text-align: left;
    padding: 10px 5px;
    background-color: #AAB2B0;
    color: #ffffff;
    display: flex;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 12px;
}

.left-column .caption-author {
    padding: 22px 5px;
    background-color: #373E02;
    color: #ffffff;
    font-weight: bold;
    height: 100%;
    display: flex;
    align-items: center;
}

.left-column .caption-info {
    padding: 20px 5px;
    background-color: #9ba09f;
    display: flex;
    text-decoration: none;
    font-size: 15px;
    height: 100%;
    align-items: center;
}

.right-column .caption-author,
.right-column .caption-info {
    height: 100%;
    display: flex;
    align-items: center;
}

/* ===== КАРТОЧКИ ТАКСОНОВ ===== */
.cards-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.card {
    flex: 1 1 300px;
    min-width: 280px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #1a2e3b;
}

.card-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.read {
    display: inline-block;
    font-size: 20px;
    font-weight: 600;
    color: #985949;
    text-decoration: none;
    transition: color 0.3s;
}

.read:hover {
    color: #985949;
    text-decoration: underline;
}

/* Анимация появления карточек */
.card {
    animation: fadeInUp 0.6s ease-out forwards;
}
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ПУБЛИКАЦИИ И УСТАВ ===== */
.report {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
}

.report-container {
    display: flex;
    gap: 30px;
    width: 100%;
}

.report-left { flex: 2; min-width: 0; }
.report-right { flex: 1; min-width: 0; }

.report-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    max-height: 400px;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.report-title {
    font-size: 22px;
    font-weight: 600;
    color: #373E02;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #985949;
}

.publications-wrapper {
    display: flex;
    gap: 20px;
    flex: 1;
}

.publications-list { flex: 1; }

.pub-list {
    margin: 0;
    padding-left: 20px;
    color: #1a1a1a;
}

.pub-list li {
    margin-bottom: 12px;
    line-height: 1.4;
    font-size: 15px;
}

.pub-list li a {
    color: #1a1a1a;
    text-decoration: none;
}

.pub-list li a:hover {
    text-decoration: underline;
}

.publications-image {
    width: 200px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    align-self: flex-start;
}

.publications-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.charter-image {
    margin-bottom: 25px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

.charter-image a {
    display: block;
    width: 100%;
}

.charter-image img {
    width: 195px;
    height: auto;
    display: inline-block;
    object-fit: contain;
    background-color: #f5f5f5;
    padding: 2px;
    margin: 0 auto;
}

/* ===== ПАРТНЁРЫ ===== */
.parents-container {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
}

.parents-row {
    display: flex;
    width: 100%;
    height: 70px;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.parent-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 15px;
    position: relative;
    background-color: #ffffff;
    transition: background-color 0.2s;
    text-decoration: none;
    color: #1a1a1a;
}

.parent-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 15%;
    width: 4px;
    height: 70%;
    background-color: #1e3a5f;
    border-radius: 2px;
}

.parent-logo {
    width: 60px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.parent-text {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
}

.parent-item:hover {
    background-color: #f5f5f5;
}

/* ===== СТРАНИЦА ОТЧЁТОВ (raports.html) ===== */
.reports-page {
    max-width: 1500px;
    margin: 40px auto;
    padding: 0 20px;
}

.reports-page h1 {
    font-size: 28px;
    color: #373E02;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid #c7561d;
}

.reports-list {
    background: rgba(255, 255, 255, 0.226);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.report-item {
    margin-bottom: 5px;
    border-bottom: 1px solid #c7561d;
}

.report-header {
    display: flex;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    user-select: none;
}

.report-year {
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    flex: 1;
}

.report-arrow {
    font-size: 20px;
    color: #373E02;
    transition: transform 0.4s ease;
    margin-right: 10px;
    width: 24px;
    text-align: center;
}

.report-arrow.rotated {
    transform: rotate(180deg);
}

.report-content {
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
    padding: 0 15px 15px 25px;
    display: none;
    background-color: #f9f9f9af;
    border-radius: 0 0 8px 8px;
    margin-top: 5px;
}

.report-content a {
    color: #985949;
    text-decoration: none;
}

.report-content a:hover {
    text-decoration: underline;
}

/* ===== ФУТЕР ===== */
.site-footer {
    background-color: #1e3a5f;
    color: #ddd;
    padding: 20px 0;
    margin-top: 50px;
    width: 100%;
}

.footer-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-links a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 16px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 13px;
    color: #aaa;
}

/* Гарантия, что текст в карточках не обрезается */
.card, .card-content, .card-description {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}
.card-description {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
}


/* ===== СТРАНИЦА НОВОСТЕЙ (ПОЛНОСТЬЮ НА ОДНОЙ СТРАНИЦЕ) ===== */
.news-full-item {
    padding: 30px 0;
    border-bottom: 1px solid #c7561d;
}

.news-full-item:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 14px;
    color: #985949;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.news-full-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a2e3b;
    margin-bottom: 20px;
    line-height: 1.3;
}

.news-full-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.news-full-gallery img {
    width: auto;
    max-width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Если фото одно — не растягиваем */
.news-full-gallery img:only-child {
    max-width: 100%;
    min-width: 250px;
}

.news-full-text {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.news-full-text p {
    margin-bottom: 15px;
}

.news-full-text ul,
.news-full-text ol {
    margin: 10px 0 15px 25px;
}

.news-full-text li {
    margin-bottom: 5px;
}

.news-link {
    text-align: left;
    color: #985949;
    display: flex;
    text-decoration: none;
    font-size: 16px;
}