.tags {
display: inline-block;
text-decoration: none;
transition: all 0.3s ease;
cursor: pointer;
font-size: 24px;
font-weight: 600;
line-height: 1;
color: #132251;
padding: 10px 20px;
border: 1px solid #132251;
border-radius: 25px;
width: fit-content;
height: fit-content;
}

.tags:hover {
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
color: white;

}

.tags:active {
transform: translateY(1px);
}

/* Разные размеры для тегов */
.tags.size-1 { font-size: 12px; padding: 8px 18px; }
.tags.size-2 { font-size: 14px; padding: 10px 20px; }
.tags.size-3 { font-size: 16px; padding: 12px 24px; }
.tags.size-4 { font-size: 18px; padding: 14px 28px; }
.tags.size-5 { font-size: 20px; padding: 16px 32px; }

	   .timeline {
            position: relative;
            max-width: 1200px;
            margin: 0 auto;
            padding-top: 30px;
        }

        /* Вертикальная линия таймлайна */
        .timeline::after {
            content: '';
            position: absolute;
            width: 6px;
            background: linear-gradient(to bottom, #1a3a6c, #2c5282, #3b6cb3, #5a80b8);
            top: 0;
            bottom: 0;
            left: 50%;
            margin-left: -3px;
            border-radius: 10px;
            box-shadow: 0 0 15px rgba(44, 82, 130, 0.4);
        }

        .timeline-item {
            position: relative;
            width: 50%;
            padding: 30px 40px;
            margin-bottom: 50px;
        }

        /* Элементы слева */
        .timeline-item:nth-child(odd) {
            left: 0;
            text-align: right;
        }

        /* Элементы справа */
        .timeline-item:nth-child(even) {
            left: 50%;
        }

        /* Кружок с годом */
        .timeline-year {
            position: absolute;
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, #1a3a6c, #2c5282, #3b6cb3);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            font-weight: bold;
            z-index: 10;
            box-shadow: 0 0 0 6px #eef2f7, 0 5px 15px rgba(0, 0, 0, 0.15);
            border: 3px solid white;
            top: 50%;
            transform: translateY(-50%);
            transition: all 0.3s ease;
        }

        .timeline-year:hover {
            transform: translateY(-50%) scale(1.1);
            box-shadow: 0 0 0 6px #dbe5f3, 0 8px 25px rgba(44, 82, 130, 0.4);
        }

        .timeline-item:nth-child(odd) .timeline-year {
            right: -35px;
        }

        .timeline-item:nth-child(even) .timeline-year {
            left: -35px;
        }

        /* Контент события */
        .timeline-content {
            background: white;
            padding: 30px;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            position: relative;
            transition: all 0.4s ease;
            border: 1px solid #edf2f7;
        }

        .timeline-content:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
            border-color: #cbd5e0;
        }

        .timeline-content::after {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            background: white;
            border-radius: 50%;
            border: 1px solid #edf2f7;
            z-index: -1;
            top: 50%;
            transform: translateY(-50%);
        }

        .timeline-item:nth-child(odd) .timeline-content::after {
            right: -50px;
            box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.05);
        }

        .timeline-item:nth-child(even) .timeline-content::after {
            left: -50px;
            box-shadow: -5px 5px 10px rgba(0, 0, 0, 0.05);
        }

        .timeline-content h2 {
            font-size: 1.9rem;
            margin-bottom: 15px;
            color: #1a3a6c;
            position: relative;
            display: inline-block;
        }

        .timeline-content h2::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, #ff6b6b, #ffa500);
            border-radius: 3px;
            opacity: 0.85;
        }

        .timeline-content p {
            font-size: 1.25rem;
            color: #2d3748;
            margin-top: 15px;
            line-height: 1.7;
        }

        /* Особое оформление для первого события (рождение) */
        .timeline-item:first-child .timeline-content {
            background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
            border: 1px solid #bee3f8;
            border-left: 5px solid #3182ce;
        }

        .timeline-item:first-child .timeline-year {
            background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
            width: 80px;
            height: 80px;
            font-size: 2rem;
        }

        /* Особое оформление для последнего события */
        .timeline-item:last-child .timeline-content {
            background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
            border: 1px solid #c3dafe;
            border-right: 5px solid #4299e1;
        }

        .timeline-item:last-child .timeline-year {
            background: linear-gradient(135deg, #5a67d8, #7f9cf5);
            width: 80px;
            height: 80px;
            font-size: 2rem;
        }


q {
  /* Отключаем ЦСС-кавычки */
  quotes: none;
}

blockquote {
  text-indent: -0.6em; /* Сдвигаем текст в цитатах от скобочки */
  line-height: 1.3;
  color: #747474;
}

h5 {
    display: block;                /* Элемент блочный */
    font-size: 1em !important;             /* Размер шрифта (чуть меньше 1em) */
    font-weight: 700;             /* Жирный шрифт */
    margin-top: 0em;            /* Верхний отступ */
    margin-bottom: 0em;         /* Нижний отступ */
    margin-left: 0;                /* Нет отступа слева */
    margin-right: 0;               /* Нет отступа справа */
    margin-before: 0em;         /* Логический верхний отступ */
    margin-after: 0em;          /* Логический нижний отступ */
}


.news-content {
	display: flex;
	flex-direction: column;
	gap: 10px; 
}

.news-content-title {
	display: flex;
	gap: 225px;
}

.news-content-title h1 {
	margin-top: 0;
	margin-bottom: 0;
	font-size: 32px;
	font-weight: 600;
	line-height: 1.3;
	color: #132251;
}

.news-content-date {
	font-size: 24px;
	font-weight: 600;
	line-height: 1;
	color: #132251;
	padding: 10px 20px;
	border: 1px solid #132251;
	border-radius: 25px;
	width: fit-content;
	height: fit-content;
}

.news-content-image {
	width: 100%;
	max-height: 441px;
	object-fit: cover;
	border-radius: 0 50px 0 0;
}

.news-content-text {
	display: flex;
	flex-direction: column;
	gap: 24px;
	font-size: 20px;
	line-height: 1.4;
	max-width: 1130px;
}

.news-content-text p {
	max-width: 1130px;
}

.news-content-text p:has(img) {
	max-width: unset;
}

.news-content-text p,
.news-content-text span,
.news-content-text a {
	font-size: inherit !important;
	margin-top: 0;
	margin-bottom: 0;
}

.news-content-text img {
	max-width: 100%;
	height: auto;
}

.news-content-text a {
	transition: opacity 0.2s ease-in-out;
}

.news-content-text a:hover {
	opacity: 0.75;
}


@media (max-width: 1200px) {
	.news-content {
		gap: 10px; 
	}

	.news-content-title {
		flex-direction: column;
		gap: 20px;
	}

	.news-content-title h1 {
		font-size: 28px;
		line-height: 1.2;
	}

	.news-content-date {
		font-size: 18px;
		padding: 8px 16px;
		align-self: flex-start;
	}

	.news-content-image {
		max-height: 300px;
	}

	.news-content-text {
		gap: 16px;
		font-size: 16px;
	}
}

@media (max-width: 768px) {
	.news-content {
		gap: 10px; 
	}

	.news-content-title {
		gap: 16px;
	}

	.news-content-title h1 {
		font-size: 24px;
		line-height: 1.2;
	}

	.news-content-date {
		font-size: 16px;
		padding: 8px 14px;
		border-radius: 22px;
	}

	.news-content-image {
		max-height: 240px;
		border-radius: 0 40px 0 0;
	}

	.news-content-text {
		gap: 14px;
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.news-content {
		gap: 10px; 
	}

	.news-content-title {
		gap: 14px;
	}

	.news-content-title h1 {
		font-size: 22px;
		line-height: 1.2;
	}

	.news-content-date {
		font-size: 14px;
		padding: 6px 12px;
		border-radius: 20px;
	}

	.news-content-image {
		max-height: 200px;
		border-radius: 0 32px 0 0;
	}

	.news-content-text {
		gap: 12px;
		font-size: 13px;
	}
}