/*------------------------------------*\
		АНОНСЫ - КАРТОЧНЫЙ СТИЛЬ
\*------------------------------------*/

.addanons {
	text-align: center;
	font-size: var(--f_14);
	margin-bottom: 30px;
}

.addanons>form>div>input {
	border: 2px solid #2d6ba6;
	border-radius: 8px;
	height: 40px; 
	width: 500px;
	font: 500 14px "Inter", sans-serif; 
	color: var(--c_black);
	outline: none;
	text-align: center;
	background: var(--bg_white);
	transition: all 0.3s ease;
}

.addanons>form>div>input:focus {
	border-color: #1a365d;
	box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.addanons>form>input:last-child {
	height: 40px; 
	width: 120px;
	margin: 15px auto 0;
	background: #1a365d;
	color: white;
	border: none;
	border-radius: 8px;
	font: 500 14px "Inter", sans-serif;
	cursor: pointer;
	transition: all 0.3s ease;
}

.addanons>form>input:last-child:hover {
	background: #2d6ba6;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
}

.anons0 {
	background: transparent;
	margin: 0;
	padding: 20px 0;
}

.anons0>div:nth-child(1) {
	font-family: "Inter", sans-serif;
	font-size: var(--f_24);
	color: #1a365d;
	letter-spacing: var(--kern_0);
	font-weight: 700;
	text-align: center;
	padding: 0 0 30px 0;
}

.anons0>div:nth-child(2) {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 25px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.anons0>div:last-child {
	text-align: center;
	height: auto;
	margin-top: 40px;
}

.anons0>div:last-child a {
	font-family: "Inter", sans-serif;
	font-size: var(--f_14);
	color: #1a365d;
	letter-spacing: var(--kern_0);
	font-weight: 500;
	padding: 12px 24px;
	border: 2px solid #1a365d;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.anons0>div:last-child a:hover {
	background: #1a365d;
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
}

.anons1>a {
	display: block;
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(26, 54, 93, 0.1);
	transition: all 0.3s ease;
	text-decoration: none;
	height: 100%;
}

.anons1>a:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 25px rgba(26, 54, 93, 0.15);
	background-color: #f8fafc;
}

.anons1>a>div:nth-child(1) {
	padding: 20px 15px;
	width: 100%;
	text-align: center;
	background: linear-gradient(135deg, #1a365d, #2d6ba6);
	font-family: "Inter", sans-serif;
	color: var(--c_white);
	letter-spacing: var(--kern_0);
	font-weight: 600;
}

.anons1>a>div:nth-child(1)>div:nth-child(1) {
	font-size: var(--f_32);
	padding: 0 0 5px 0;
	font-weight: 700;
}

.anons1>a>div:nth-child(1)>div:nth-child(2) {
	font-size: var(--f_16);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.anons1>a>div:nth-child(1)>div:nth-child(3) {
	font-size: var(--f_14);
	padding: 8px 0 0 0;
	opacity: 0.9;
}

.anons1>a>div:nth-child(1)>div:nth-child(4) {
	font-size: var(--f_12);
	opacity: 0.7;
	margin-top: 5px;
}

.anons1>a>div:nth-child(2) {
	padding: 20px;
	width: 100%;
	font-family: "Inter", sans-serif;
	color: #2d3748;
	letter-spacing: var(--kern_0);
}

.anons1>a>div:nth-child(2)>div:nth-child(1) {
	font-size: var(--f_16);
	font-weight: 600;
	color: #1a365d;
	padding-bottom: 10px;
	line-height: 1.4;
}

.anons1>a>div:nth-child(2)>div:nth-child(2) {
	font-size: var(--f_14);
	color: #4a5568;
	line-height: 1.5;
	margin-bottom: 8px;
}

.anons1>a>div:nth-child(2)>div:nth-child(3) {
	font-size: var(--f_12);
	color: #718096;
	border-top: 1px solid #e2e8f0;
	padding-top: 12px;
	margin-top: 12px;
}

.anons1 input {
	width: 35px; 
	height: 35px; 
	margin-left: 15px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 1200px) {
	.anons0>div:nth-child(2) {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.anons0>div:nth-child(2) {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	.addanons>form>div>input {
		width: 90%;
		max-width: 400px;
	}
}

/* Анимация появления карточек */
@keyframes cardAppear {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.anons1>a {
	animation: cardAppear 0.5s ease-out;
}

.anons1>a:nth-child(1) { animation-delay: 0.1s; }
.anons1>a:nth-child(2) { animation-delay: 0.2s; }
.anons1>a:nth-child(3) { animation-delay: 0.3s; }
.anons1>a:nth-child(4) { animation-delay: 0.4s; }



/* СТИЛЬ ДЛЯ ПУСТЫХ КАРТОЧЕК */
.no-anons {
	text-align: center;
	padding: 40px 20px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border: 2px dashed #dee2e6;
	border-radius: 12px;
	margin: 20px auto;
	max-width: 600px;
}

.no-anons h3 {
	font-family: var(--f_helva_);
	font-size: 20px;
	color: #6c757d;
	margin-bottom: 10px;
}

.no-anons p {
	font-family: var(--f_helva_);
	font-size: 14px;
	color: #868e96;
}

/* СТИЛИ ДЛЯ ПУСТОГО СОСТОЯНИЯ */
.anons-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--c_slategrey);
    font-family: var(--f_helva_);
    font-size: var(--f_18);
}

.anons-empty img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}
/* Стили для пагинации */

.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}
.pagination a {
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #333;
}
.pagination a.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}
.pagination a:hover {
    background-color: #f0f0f0;
}


/* Стили для модального окна */


.modalanons{
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 10;
}
.modalanons:target {display: block;}
.modalanons>div {
    position: fixed;
    width: 50%;
    margin-left: 25%; 
    margin-top: 5%;
    border: 1px solid var(--c_115883);
    border-radius: 8px;
    background-color: var(--bg_white);
    font-family: var(--f_helva_);
    color: var(--c_151515);
}

.modalanons>div div:nth-child(1) {
    background-color: var(--bg_115883);
    color: var(--c_white);
    padding: 15px 20px;
    font-size: var(--f_18);
    font-weight: bold;
}

.modalanons>div div:nth-child(2) {
    padding: 10px 20px 5px;
    font-size: var(--f_12);
    color: var(--c_4d4b43);
    background-color: var(--bg_rgb235240242);
}

.modalanons>div div:nth-child(3),
.modalanons>div>div:nth-child(4) {
    padding: 15px 20px;
    font-size: var(--f_14);
    line-height: 1.4;
}

.modalanons>div div:nth-child(5) {
    padding: 10px 20px;
    background-color: var(--bg_rgb235240242);
    margin: 5px 0;
    font-size: var(--f_14);
}

.modalanons>div div:nth-child(6) {
    padding: 10px 20px 5px;
    font-size: var(--f_12);
    color: var(--c_4d4b43);
}

.modalanons>div div:nth-child(7) {
    padding: 20px;
    font-size: var(--f_16);
    color: var(--c_115883);
    font-weight: bold;
}

.modalanons>div div:nth-child(8) {
    padding: 10px 20px;
    font-size: var(--f_12);
    color: var(--c_slategrey);
    background-color: var(--bg_rgb235240242);
    border-top: 1px solid var(--bg_e6ebec);
}

.closean {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 24px;
    height: 24px;
    opacity: 0.7;
}
.closean:hover {
    opacity: 1;
}
.closean:before, .closean:after {
    position: absolute;
    left: 11px;
    top: 3px;
    content: ' ';
    height: 18px;
    width: 2px;
    background-color: var(--c_white);
}
.closean:before {
    transform: rotate(45deg);
}
.closean:after {
    transform: rotate(-45deg);
}

.amgan {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--bg_115883);
    color: white;
    border: none;
    padding: 8px 16px;
    font-family: var(--f_helva_);
    font-size: var(--f_14);
    cursor: pointer;
    border-radius: 3px;
}
