* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background: #3A385B;
    background: linear-gradient(142deg, rgba(58, 56, 91, 1) 0%, rgba(220, 112, 128, 1) 69%, rgba(58, 56, 91, 1) 100%);
    margin: 0;
    padding: 0;
    font-family: Montserrat, arial;


}


/* ============================================ */
/* АНИМИРОВАННЫЙ ФОН ЗАГРУЗКИ */
/* ============================================ */

#preloaderOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    
    /* Анимированный градиентный фон */
    background: linear-gradient(135deg, #fdf2ed, #fef9f6, #fdf2ed, #fff5f0);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
}

#preloaderOverlay.active {
    opacity: 1;
    pointer-events: all;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Текст */
.preloader-text {
    font-size: 15px;
    font-weight: 500;
	margin: -100px 0 0 0;
    color: #e55c2e;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    animation: textFade 1.5s ease-in-out infinite;
}

@keyframes textFade {
    0%, 100% { opacity: 0.6; }
    50%      { opacity: 1; }
}

/* Декоративные круги на фоне */
.preloader-bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(229, 92, 46, 0.10);
    animation: circleFloat 4s ease-in-out infinite;
}

.preloader-bg-circle:nth-child(1) {
    width: 200px;
    height: 200px;
    top: -50px;
    left: -50px;
}

.preloader-bg-circle:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: 10%;
    right: -30px;
    animation-delay: 1s;
}

.preloader-bg-circle:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 30%;
    left: 10%;
    animation-delay: 3.20s;
}

@keyframes circleFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-50px) scale(1.1); }
}




:root {
    --primary: #e55c2e;
    --primary-dark: #d04a1e;
    --secondary: #3a385b;
    --accent-light: #eeab98;
    --accent-warm: #f3dbbb;
    --accent-purple: #a494c7;
    --accent-pink: #eb7c7b;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-secondary: #6c757d;
    --border-light: #e9ecef;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.05);
    --status-bar-height: env(safe-area-inset-top, 0px);
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    padding-bottom: 80px;
}

/* Статус-бар плейсхолдер */
.status-bar-placeholder {
    height: var(--status-bar-height);
    position: sticky;
    top: 0;
    z-index: 101;
    background: rgba(58, 56, 91, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}



/* Верхняя панель */
.app-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    width: 90%;
    margin: 0 5%;
    position: sticky;
    top: var(--status-bar-height);
    z-index: 100;
    height: 85px;
    background: transparent;

}

.app-bar.scrolled {
	display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 0;
    padding: 0 5%;
    position: sticky;
    top: var(--status-bar-height);
    z-index: 100;
    height: 85px;
    /* Полупрозрачный фон с размытием */
    background: rgba(58, 56, 91, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    height: 50px;
	position: relative;
}

.logo a.back{
    position: absolute;
	top: 0px;
	left: 0px;
	width: 50px;
	height: 50px;
	border-radius: 50px;
}

.logo a.back i{
	font-size: 25px;
	margin: 11px 0 0 13px;
	color: #fff;
	vertical-align: middle;
}

.logo img {
    height: 45px;
    width: auto;
}

.app-bar-actions {
    display: flex;
    gap: 4px;
}

.icon-button {
    background: none;
    border: 1px solid #a494c7;
    width: 47px;
    height: 47px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #a494c7;
    font-size: 20px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin: 0 0 0 10px;
    text-decoration: none;
}

.icon-button i {
    font-size: 20px;
}

.icon-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.icon-button:active::before {
    width: 100%;
    height: 100%;
}

/* Основной контент */
.content {
    flex: 1;
}





/* Главный слайдер */
.main-slider-container {
    width: 100%;
    margin: 0 auto 16px;
	position: relative;
}



.main-slider {
    width: 100%;
    height: 420px;
    /* border-radius: 15px; */
}

.main-slider .swiper-slide {
    position: relative;
    /* border-radius: 15px; */
    overflow: hidden;
    -webkit-box-shadow: 0px 4px 11px 0px rgba(37, 35, 70, 0.46);
    -moz-box-shadow: 0px 4px 11px 0px rgba(37, 35, 70, 0.46);
    box-shadow: 0px 4px 11px 0px rgba(37, 35, 70, 0.46);
}

.main-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Улучшенный градиент для лучшей читаемости текста */
.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 24px 24px;
    /* Многослойный градиент для лучшей читаемости */
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 20%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.1) 80%,
        transparent 100%
    );
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content h3 {
    font-size: 30px;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.slide-content p {
    font-size: 15px;
    margin-bottom: 16px;
    opacity: 0.95;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    max-width: 90%;
}

.slide-button {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(229, 92, 46, 0.3);
    letter-spacing: 0.3px;
    text-decoration: none;
    text-shadow: none;
}

.slide-button:active {
    transform: scale(0.96);
    background-color: var(--primary-dark);
    box-shadow: 0 2px 6px rgba(229, 92, 46, 0.3);
}

.main-slider-container {
    position: relative;
    /* width: 90%; */
    width: 100%;
    margin: 0 auto 16px;
}

/* Контейнер прогресс-бара */
.circular-progress-container {
    position: absolute;
    bottom: 22px;
    right: 22px;
    z-index: 20;
    cursor: pointer;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
}

.circular-progress-container:hover {
    transform: scale(1.05);
}

.circular-progress-container:active {
    transform: scale(0.95);
}

/* SVG прогресс-бара */
.circular-progress-bar {
    display: block;
    width: 50px;
    height: 50px;
}

/* Фоновый круг */
.progress-background {
    stroke: rgba(255, 255, 255, 0.25);
    transition: stroke 0.3s ease;
}

/* Круг прогресса */
.progress-fill {
    stroke: var(--primary);
    filter: drop-shadow(0 0 4px rgba(229, 92, 46, 0.5));
    will-change: stroke-dashoffset;
}

/* Иконки внутри */
.progress-icon rect,
.progress-icon polygon {
    fill: white;
    transition: all 0.2s ease;
}

/* Анимация пульсации */
@keyframes progressPulse {
    0% {
        filter: drop-shadow(0 0 4px rgba(229, 92, 46, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(229, 92, 46, 0.6));
    }
    100% {
        filter: drop-shadow(0 0 4px rgba(229, 92, 46, 0.3));
    }
}

.circular-progress-bar:hover .progress-fill {
    animation: progressPulse 2s infinite;
}

/* Адаптация для маленьких экранов */
@media (max-width: 480px) {
    .main-slider {
        height: 300px;
    }
    
    .slide-content h3 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 15px;
        max-width: 100%;
    }
}

/* Адаптация для больших экранов */
@media (min-width: 768px) {
    .main-slider {
        height: 480px;
    }
    
    .slide-content {
        padding: 40px 32px 32px;
    }
    
    .slide-content h3 {
        font-size: 36px;
    }
    
    .slide-content p {
        font-size: 18px;
        max-width: 70%;
    }
}
/* Секция */
.section {
    background-color: var(--white);
    padding: 0 0;
	width: 90%;
	margin: 0 5% 20px 5%;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.4s ease-out;
	border-radius: 15px;
	overflow: hidden;
}

.section_events {
    background-color: var(--white);
    padding: 20px 0 30px 0;
	width: 90%;
	margin: 0 5% 20px 5%;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.4s ease-out;
	border-radius: 15px;
	/* overflow: hidden; */
	position: relative;
}

.top_left_arr{
	position: absolute;
	top: -11px;
	left: 0px;
	width: 13px;
	height: 25px;
	background: url(img/top_left_arr.png) no-repeat;
}

.top_right_arr{
	position: absolute;
	top: -11px;
	right: 0px;
	width: 13px;
	height: 25px;
	background: url(img/top_left_arr.png) no-repeat;
	transform: scaleX(-1);
}

.bottom_left_arr{
	position: absolute;
	bottom: -11px;
	left: 0px;
	width: 13px;
	height: 25px;
	background: url(img/top_left_arr.png) no-repeat;
	transform: scaleY(-1);
}

.bottom_right_arr{
	position: absolute;
	bottom: -11px;
	right: 0px;
	width: 13px;
	height: 25px;
	background: url(img/top_left_arr.png) no-repeat;
	transform: scaleY(-1) scaleX(-1);
}

a.auto_trip {
    padding: 20px;
    width: 100%;
    background: #fff;
    display: flex;
    align-items: stretch;
    gap: 16px;
    text-decoration: none;        /* убираем подчёркивание */
    color: inherit;               /* наследуем цвет текста */
    transition: all 0.3s ease;    /* плавный переход */
}

a.auto_trip:hover {
    background: #f8f9fa;          /* фон при наведении */
    transform: translateY(-2px);  /* лёгкий подъём */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

a.auto_trip:active {
    transform: translateY(0);     /* возврат при нажатии */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

a.auto_trip .icon {
    flex-shrink: 0;
    width: 50px;
    background: #dcdcdc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

a.auto_trip:hover .icon {
    background: var(--primary);
}

a.auto_trip:hover .icon i {
    color: #fff;
}

a.auto_trip .icon i {
    font-size: 24px;
    color: var(--primary);
    transition: color 0.3s ease;
}

a.auto_trip .info {
    flex: 1;
    background: transparent;      /* прозрачный, т.к. фон у ссылки */
}

a.auto_trip .info h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

a.auto_trip:hover .info h3 {
    color: var(--primary);
}

a.auto_trip .info p {
    font-size: 15px;
    margin: 0;
    line-height: 1.1;
    color: var(--text-secondary);
}




.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    margin: 0 0 20px 0;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.section-title i{
    margin: 0 10px 0 0;
	font-weight: 400;
	color: #e55c2e;
}

.section-link {
    color: var(--primary);
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background 0.2s;
	background: #e7e7e7;
	/* border: 1px solid #cfcfcf; */
}

.section-link i {
    font-size: 12px;
    margin-left: 4px;
}

.section-link:active {
    background-color: var(--accent-warm);
}

/* ============================================ */
/* СЛАЙДЕР АФИШИ */
/* ============================================ */
.events-slider-wrapper {
    margin: 20px 0;
}

.events-slider {
    padding: 0 5%;
}

.events-slider .swiper-slide {
    height: auto;
}

.event-card {
    display: block;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.event-card:active {
    transform: scale(0.98);
}

/* Контейнер изображения */
.event-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 140%; /* Вертикальное соотношение 5:7 */
    overflow: hidden;
    background: #f0f0f0;
}

.event-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image {
    transform: scale(1.03);
}

/* Информация поверх фото */
.event-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 12px 12px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.event-category-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 10px;
    background: rgba(229, 92, 46, 0.9);
    color: white;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.event-date-tag {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.event-date-tag i {
    margin-right: 4px;
}

.event-price-tag {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

/* Пушкинская карта */
.event-pushkin-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    color: white;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

/* Название под фото */
.event-card-title {
    padding: 12px 12px 4px 12px;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-location {
    padding: 0 12px 12px 12px;
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-card-location i {
    font-size: 11px;
    color: #e55c2e;
}

/* Градиенты по краям */
#eventsSlider::before,
#eventsSlider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s;
}

#eventsSlider::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.95), transparent);
    opacity: 0;
}

#eventsSlider::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.95), transparent);
    opacity: 1;
}

#eventsSlider[data-swiper-start="true"]::before {
    opacity: 0;
}

#eventsSlider[data-swiper-start="false"]::before {
    opacity: 1;
}

#eventsSlider[data-swiper-end="true"]::after {
    opacity: 0;
}

#eventsSlider[data-swiper-end="false"]::after {
    opacity: 1;
}

/* Адаптив */
@media (min-width: 768px) {
    .event-image-container {
        padding-bottom: 130%;
    }
    
    .event-card-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .event-image-container {
        padding-bottom: 145%;
    }
    
    .event-card-title {
        font-size: 14px;
        padding: 10px 10px 4px 10px;
    }
    
    .event-overlay-info {
        padding: 30px 8px 8px 8px;
    }
    
    .event-category-tag {
        font-size: 10px;
    }
    
    .event-date-tag {
        font-size: 12px;
    }
    
    .event-price-tag {
        font-size: 14px;
    }
}

/* Бейджи времени */
.event-time-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.badge-today {
    background: #e74c3c;
    color: white;
    animation: badgePulse 2s ease-in-out infinite;
}

.badge-tomorrow {
    background: #f39c12;
    color: white;
}

.badge-soon {
    background: #2ecc71;
    color: white;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Сдвигаем Пушкинскую карту, если есть бейдж времени */
.event-time-badge ~ .event-pushkin-badge {
    top: 45px;
}

.badge-live {
    background: #e74c3c;
    color: white;
    animation: badgePulse 1.5s ease-in-out infinite;
}

.badge-live::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    margin-right: 5px;
    animation: liveDot 1.5s ease-in-out infinite;
}

@keyframes liveDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Нижнее меню */
.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -1px 10px rgba(0,0,0,0.03);
    z-index: 90;
    height: 68px;
    border-top: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    background-color: rgba(255,255,255,0.95);
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 20px;
    transition: all 0.2s;
    min-width: 56px;
    font-weight: 500;
    text-decoration: none;
}

.menu-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.menu-item.active {
    color: var(--primary);
    background-color: var(--accent-warm);
}

.menu-center-button {
    background: var(--primary);
    color: white;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(229, 92, 46, 0.3);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 22px;
    margin-top: -20px;
    border: 3px solid var(--white);
}

.menu-center-button i {
    font-size: 22px;
}

.menu-center-button:active {
    transform: scale(0.9);
    box-shadow: 0 2px 6px rgba(229, 92, 46, 0.25);
    background-color: var(--primary-dark);
}

/* Всплывающее меню */
.popup-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.4);
    z-index: 200;
    display: none;
    opacity: 0;
    transition: opacity 0.25s;
    backdrop-filter: blur(2px);
}

.popup-menu-overlay.active {
    display: block;
    opacity: 1;
}

.popup-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-radius: 20px 20px 0 0;
    z-index: 201;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 70vh;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.popup-menu.active {
    transform: translateY(0);
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
}

.popup-header h3 {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.popup-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.popup-close:active {
    background-color: var(--bg-light);
}

.popup-menu-items {
    padding: 4px 0;
}

.popup-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
    letter-spacing: -0.2px;
    text-decoration: none;
}

.popup-item:active {
    background-color: var(--accent-warm);
}

.popup-item-icon {
    width: 32px;
    margin-right: 16px;
    font-size: 20px;
    color: var(--primary);
}

.popup-item-icon i {
    font-size: 20px;
}

/* Пагинация */
.swiper-pagination-bullet {
    background: rgba(255,255,255,0.9) !important;
    opacity: 0.6 !important;
    width: 6px !important;
    height: 6px !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
    opacity: 1 !important;
    width: 18px !important;
    border-radius: 3px !important;
}

::-webkit-scrollbar {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}





    .section_noBG {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      width: 90%;
      margin: 0 5% 20px 5%;
      box-shadow: var(--shadow-sm);
      animation: fadeInUp 0.4s ease-out;
      background: transparent;
      border-radius: 15px;
    }
	
	

    a.min_block {
      background: white;
      border-radius: 15px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      word-break: break-word;
      display: flex;
      flex-direction: column;
	  text-decoration: none;
    }
	
	


    a.min_block .icon {
      width: 100%;
      aspect-ratio: 16 / 9; 
	background: #dcdcdc;
	transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 4rem;
      color: #e55c2e;
      border-radius: 12px 12px 0 0;
      flex-shrink: 0;
    }

    a.min_block h3 {
      font-size: 1.35rem;
      font-weight: 600;
      color: #1a2c3e;
      padding: 0 12px 3px 12px;
      margin-top: 16px;
      margin-bottom: 0;
      letter-spacing: -0.2px;
      text-align: left;
	  transition: all 0.3s ease;
	  
    }


	a.min_block:hover .icon {
		background: #e55c2e;          /* фон при наведении */
		color: #fff;
		transform: translateY(-2px);  /* лёгкий подъём */
	}

	a.min_block:active .icon {
		transform: translateY(0);     /* возврат при нажатии */
	}
	
	a.min_block:hover h3 {
		color: #e55c2e;
		transform: translateY(-2px);  /* лёгкий подъём */
	}

	a.min_block:active h3 {
		transform: translateY(0);     /* возврат при нажатии */
	}

    @media (max-width: 768px) and (orientation: portrait) {
      a.min_block {
        flex-direction: column;
        padding: 8px;
      }
      
      a.min_block .icon {
        width: 100%;
        aspect-ratio: 16 / 9;
        border-radius: 12px 12px 0 0;
        font-size: 3rem;
      }
      
      a.min_block h3 {
        margin-top: 10px;
        font-size: 16px;
      }
    }

    @media (max-width: 768px) and (orientation: landscape) {
      a.min_block {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        padding: 14px;
      }
      
      a.min_block .icon {
        width: 110px;
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 10px;
        font-size: 2.5rem;
      }
      
      a.min_block h3 {
        margin-top: 0;
        font-size: 16px;
        flex: 1;
        text-align: left;
        padding: 0;
      }
    }
    
    @media (max-width: 650px) and (orientation: landscape) {
      a.min_block .icon {
        width: 90px;
        font-size: 2rem;
      }
      a.min_block h3 {
        font-size: 0.9rem;
      }
      a.min_block {
        padding: 12px;
        gap: 12px;
      }
    }
    
    @media (min-width: 769px) and (max-width: 1024px) {
      a.min_block h3 {
        font-size: 1.2rem;
      }
    }





/* Контейнер новостей */
.news_wr {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 90%;
  margin: 0 auto 20px auto;
}

/* Ссылка-обёртка для блока новости */
.block_news_link {
    text-decoration: none;
    display: block;
}

/* Сохраняем все原有 стили для .block_news */
.block_news {
    display: flex;
    gap: 20px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Эффекты наведения переносим на ссылку */
.block_news_link:hover .block_news {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

/* Меняем цвет заголовка при наведении на всю ссылку */
.block_news_link:hover .info h3 {
    color: #e55c2e;
}

/* Остальные стили .img, .info, h3, p оставляем без изменений */
.block_news .img {
	width: 30%;
    position: relative;
    background: #e0e0e0;
    overflow: hidden;
    min-height: 120px; /* или ваша высота */
}

.block_news .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.block_news .img img.loaded {
    opacity: 1;
}

/* Анимация пульсации для скелетона */
.block_news .img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: loading-shimmer 1.5s infinite;
    z-index: 1;
}

.block_news .img.loaded::before {
    display: none;
}

.news-views {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    z-index: 5;
    pointer-events: none; /* Чтобы не мешал клику по ссылке */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}


.news-views i {
    font-size: 11px;
    opacity: 0.9;
}

.news-views span {
    line-height: 1;
}


@keyframes loading-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.block_news .info {
    flex: 1;
    padding: 15px 15px 15px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.block_news .info h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a2c3e;
    transition: color 0.2s ease;
}

.block_news .info p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #555;
}

/* Кнопка "Все" */
.all_news_btn {
    display: inline-block;
    align-self: flex-start;
    margin-top: 10px;
    padding: 10px 25px;
    background: #e55c2e;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.1s ease;
}

.all_news_btn:hover {
    background: #c44a22;
    transform: translateY(-1px);
}

/* Адаптив */
@media (max-width: 650px) {
    .block_news {
        flex-direction: column;
        gap: 0;
    }
    
    .block_news .img {
        width: 100%;
        height: auto;
    }
    
    .block_news .info {
        padding: 15px;
    }
	
	.news-views {
        top: 8px;
        left: 8px;
        padding: 8px 15px;
        font-size: 11px;
    }
    
    .news-views i {
        font-size: 10px;
    }
}




/* Иконка избранного */
.fav-icon {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    padding: 8px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.fav-icon i {
    font-size: 16px;
    color: #ccc;
    transition: all 0.2s;
} 

.fav-icon.active i {
    color: #e74c3c;
}

.fav-icon:hover {
    transform: scale(1.1);
}

.fav-icon:active {
    transform: scale(0.9);
}

/* На детальной странице */
.fav-icon-detail {
    float:left;
    padding: 12px 15px;
    background: #f8f8f8;
    border: 1px solid #cfcfcf;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.fav-icon-detail i {
    font-size: 18px;
    transition: all 0.2s;
}

.fav-icon-detail:hover i {
    color: #e55c2e;
}

.fav-icon-detail.active i {
    color: #e55c2e;
}


/* Страница избранного */
.favorites-empty {
    text-align: center;
    padding: 60px 20px;
}

.favorites-empty i {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.favorites-count {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}