/* Негізгі стильдер */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Жоғарғы бет мәзірі */
.header {
    background-color: #2E8B57;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    top: 0;
    z-index: 1000;
}

/* Верхняя панель с контактами */
.top-bar {
    background-color: #1a5c3a;
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item i {
    color: #90ee90;
}

.social-top {
    display: flex;
    gap: 12px;
}

.social-icon {
    color: white;
    text-decoration: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #2E8B57;
    transform: translateY(-2px);
}

/* Основной header */
.main-header {
    background-color: #2E8B57;
    padding: 10px 0;
}

.logo-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    border-radius: 8px;
}

.logo-text h1 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher {
    display: flex;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.lang-btn {
    padding: 8px 15px;
    background-color: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-btn.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cta-btn {
    background-color: #ff7f50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background-color: #ff6347;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Негізгі навигация */
.navbar {
    background-color: #2a7a4e;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    flex: 1;
}

.nav-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-menu a:hover, .nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.15);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 10px;
    z-index: 1001;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Бет тақырыбы */
.page-title {
    background: linear-gradient(to right, #3CB371, #2E8B57);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.page-title h2 {
    font-size: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-top: 10px;
    font-weight: 400;
}

/* Негізгі мазмұн */
.main-content {
    padding: 40px 0;
}

.welcome-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.welcome-card h3 {
    color: #2E8B57;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.welcome-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature {
    text-align: center;
    padding: 25px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature i {
    font-size: 2.5rem;
    color: #2E8B57;
    margin-bottom: 15px;
}

.feature h4 {
    color: #2E8B57;
    margin-bottom: 10px;
}

/* Аяқтау бөлімі */
.footer {
    background-color: #2a2a2a;
    color: #ddd;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.footer-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links h4, .social-links h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #2E8B57;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #444;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #2E8B57;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #aaa;
}

/* Стили для слайдера */
.slider-section {
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.slider-container {
    position: relative;
    max-width: 100%;
    height: 700px;
    overflow: hidden;
}

.slider {
    display: flex;
    width: 400%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slide {
    position: relative;
    width: 25%;
    height: 100%;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 30px;
    padding-top: 60px;
}

.slide-content h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
}

/* Кнопки навигации */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(46, 139, 87, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background-color: rgba(46, 139, 87, 1);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Точки-индикаторы */
.slider-dots {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #2E8B57;
    transform: scale(1.3);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Таймер автопереключения */
.slider-timer {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    z-index: 10;
}

.timer-progress {
    width: 0%;
    height: 100%;
    background-color: #2E8B57;
    transition: width 3s linear;
}

/* Стили для баннеров официальных сайтов */
.official-banners {
    background-color: #f8f9fa;
    padding: 50px 0;
    border-top: 2px solid #e9ecef;
    border-bottom: 2px solid #e9ecef;
    margin: 40px 0;
}

.banners-title {
    text-align: center;
    margin-bottom: 40px;
}

.banners-title h3 {
    color: #2E8B57;
    font-size: 2rem;
    margin-bottom: 10px;
}

.banners-title p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.banners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    align-items: center;
    justify-items: center;
}

.banner-item {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 120px;
    width: 100%;
    max-width: 200px;
}

.banner-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(46, 139, 87, 0.9), transparent);
    color: white;
    padding: 15px 10px 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0;
}

.banner-item:hover .banner-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* about */
.about-section {
    padding: 30px 0;
}

.about-card, .director-card, .mission-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.about-header, .director-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.about-header h3, .director-header h3 {
    color: #2E8B57;
    font-size: 1.8rem;
    margin: 0;
}

.about-icon, .director-icon {
    width: 60px;
    height: 60px;
    background-color: #2E8B57;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background-color: #e9f7ef;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.1);
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: #2E8B57;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-content h4 {
    color: #2E8B57;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-content p {
    color: #555;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Стили для карточки директора */
.director-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.director-photo {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.director-photo img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.director-photo:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(46, 139, 87, 0.9), transparent);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

.director-info h4 {
    color: #2E8B57;
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.director-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.detail-item i {
    color: #2E8B57;
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.detail-item strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.detail-item span {
    color: #2E8B57;
    font-weight: 500;
    font-size: 1.1rem;
}

.education-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.education-section h5 {
    color: #2E8B57;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.education-list {
    list-style: none;
    padding: 0;
}

.education-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.education-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.education-list i {
    color: #2E8B57;
    margin-top: 3px;
    flex-shrink: 0;
}

.director-quote {
    background-color: #e9f7ef;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid #2E8B57;
    position: relative;
}

.director-quote i.fa-quote-left {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #2E8B57;
    opacity: 0.5;
}

.director-quote i.fa-quote-right {
    position: absolute;
    bottom: 15px;
    right: 15px;
    color: #2E8B57;
    opacity: 0.5;
}

.director-quote p {
    font-style: italic;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    padding: 0 20px;
}

/* Стили для карточки миссии */
.mission-card h3 {
    color: #2E8B57;
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mission-card p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.mission-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.mission-item {
    text-align: center;
    padding: 25px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mission-item:hover {
    background-color: #e9f7ef;
    transform: translateY(-5px);
}

.mission-item i {
    font-size: 2.5rem;
    color: #2E8B57;
    margin-bottom: 15px;
}

.mission-item h4 {
    color: #2E8B57;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* contacts */
.contacts-section {
    padding: 30px 0;
}

.contact-info-card, .map-card, .contact-form-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.contact-header, .map-header, .form-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.contact-header h3, .map-header h3, .form-header h3 {
    color: #2E8B57;
    font-size: 1.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-header p {
    color: #666;
    margin-top: 10px;
    font-size: 1.1rem;
}

.organization-info {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 5px solid #2E8B57;
}

.organization-info h4 {
    color: #2E8B57;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.location-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.location-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.location-item i {
    color: #2E8B57;
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.location-item strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.location-item span {
    color: #555;
    font-weight: 500;
    font-size: 1.1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.contact-item-large {
    display: flex;
    gap: 20px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item-large:hover {
    background-color: #e9f7ef;
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: #2E8B57;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-content h4 {
    color: #2E8B57;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-content p {
    color: #555;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2E8B57;
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.map-link:hover {
    color: #1a5c3a;
    gap: 12px;
}

.phone-numbers, .social-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phone-item, .email-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-item a, .email-item a {
    color: #2E8B57;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.phone-item a:hover, .email-item a:hover {
    color: #1a5c3a;
    text-decoration: underline;
}

.phone-item i, .email-item i {
    color: #2E8B57;
    width: 20px;
}

.work-hours, .email-note {
    color: #666;
    font-size: 0.95rem;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-contact {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
}

.social-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
    min-width: 80px;
}

.social-contact-item:hover {
    background-color: #2E8B57;
    color: white;
    transform: translateY(-5px);
}

.social-contact-item i {
    font-size: 1.5rem;
}

.social-contact-item span {
    font-size: 0.9rem;
    text-align: center;
}

/* Карта */
.contact-bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.map-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    color: #666;
    font-size: 1.1rem;
}

.map-placeholder i {
    font-size: 3rem;
    color: #2E8B57;
    margin-bottom: 15px;
}

.map-address {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.map-address p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.map-address i {
    color: #2E8B57;
    margin-top: 3px;
}

/* Форма обратной связи */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #555;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2E8B57;
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: #666;
}

.submit-btn {
    background-color: #2E8B57;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #1a5c3a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.2);
}

/* Дополнительная информация */
.contact-extra-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.extra-info-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.extra-info-item:hover {
    background-color: #e9f7ef;
    transform: translateY(-5px);
}

.extra-icon {
    width: 60px;
    height: 60px;
    background-color: #2E8B57;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.extra-content h4 {
    color: #2E8B57;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.extra-content p {
    color: #555;
    margin-bottom: 8px;
    font-size: 1rem;
}

.extra-content strong {
    color: #333;
}

/* ========== МЕДИА-ЗАПРОСЫ (все в одном месте!) ========== */

/* 1200px и меньше */
@media (max-width: 1200px) {
    .banners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 992px и меньше */
@media (max-width: 992px) {
    .contact-info {
        gap: 10px;
    }
    
    .contact-item span {
        font-size: 0.8rem;
    }
    
    .director-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .director-photo {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .contact-bottom-section {
        grid-template-columns: 1fr;
        display:block;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .location-details {
        grid-template-columns: 1fr;
    }
}

/* 768px и меньше (мобильные устройства) */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .logo-text h1 {
        font-size: 1.1rem;
    }
    
    .page-title h2 {
        font-size: 1.5rem;
    }
    
    .welcome-card {
        padding: 20px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .top-bar {
        display: none;
    }
    
    .header-right {
        flex-direction: column;
        gap: 10px;
        align-items: flex-end;
    }
    
    .lang-switcher {
        order: 2;
    }
    
    .header-cta {
        order: 1;
    }
    
    .cta-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .slider-container {
        height: 350px;
    }
    
    .slide-content {
        padding: 20px;
        padding-top: 50px;
    }
    
    .slide-content h3 {
        font-size: 1.5rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-dots {
        bottom: 80px;
    }
    
    .slider-timer {
        bottom: 60px;
    }
    
    .banners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .banner-item {
        height: 100px;
        max-width: 180px;
    }
    
    .official-banners {
        padding: 30px 0;
    }
    
    .banners-title h3 {
        font-size: 1.5rem;
    }
    
    /* about */
    .about-card, .director-card, .mission-card {
        padding: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .director-details {
        grid-template-columns: 1fr;
    }
    
    .mission-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-header, .director-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    /* contacts */
    .contact-info-card, .map-card, .contact-form-card {
        padding: 20px;
    }
    
    .contact-item-large {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
    
    .social-contact {
        justify-content: center;
    }
    
    .contact-extra-info {
        grid-template-columns: 1fr;
    }
    
    .extra-info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .extra-icon {
        margin: 0 auto;
    }
}

/* 576px и меньше */
@media (max-width: 576px) {
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .logo-text p {
        font-size: 0.8rem;
    }
    
    .nav-menu a {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .slider-container {
        height: 300px;
    }
    
    .slide-content h3 {
        font-size: 1.2rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
    
    .slider-dots {
        bottom: 60px;
    }
    
    .mission-features {
        grid-template-columns: 1fr;
    }
    
    .director-quote p {
        padding: 0;
    }
    
    .contact-header h3, .map-header h3, .form-header h3 {
        font-size: 1.5rem;
    }
    
    .organization-info h4 {
        font-size: 1.3rem;
    }
    
    .map-container {
        height: 300px;
    }
}

/* 480px и меньше */
@media (max-width: 480px) {
    .banners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .banner-item {
        height: 90px;
        max-width: 150px;
    }
    
    .banner-overlay span {
        font-size: 0.75rem;
    }
}
/* Стили для страницы "Галерея" */

.gallery-section {
    padding: 30px 0;
}

/* Статистика галереи */
.gallery-stats {
    background: linear-gradient(135deg, #2E8B57, #3CB371);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    color: white;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-item i {
    font-size: 2.5rem;
    opacity: 0.9;
}

.stat-item h3 {
    font-size: 2.2rem;
    margin: 0 0 5px 0;
    color: white;
}

.stat-item p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

/* Фильтры галереи */
.gallery-filters {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filters-header h3 {
    color: #2E8B57;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.filter-reset {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    color: #666;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.filter-reset:hover {
    background-color: #e9ecef;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #555;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #e9f7ef;
    border-color: #2E8B57;
}

.filter-btn.active {
    background-color: #2E8B57;
    border-color: #2E8B57;
    color: white;
}

.filter-search {
    position: relative;
    max-width: 400px;
}

.filter-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.filter-search input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.filter-search input:focus {
    outline: none;
    border-color: #2E8B57;
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

/* Контейнер галереи */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item-inner {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Видео миниатюры */
.video-thumbnail {
    position: relative;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(46, 139, 87, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-play:hover {
    background-color: rgba(46, 139, 87, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Оверлей галереи */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.overlay-content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: white;
}

.overlay-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.gallery-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.gallery-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-actions {
    opacity: 1;
    transform: translateY(0);
}

.gallery-view, .gallery-like {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: #2E8B57;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.gallery-view:hover, .gallery-like:hover {
    background-color: white;
    transform: scale(1.1);
}

.gallery-like.active {
    color: #e74c3c;
}

/* Кнопка загрузки */
.gallery-load-more {
    text-align: center;
    margin-bottom: 40px;
}

.load-more-btn {
    background-color: #2E8B57;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: #1a5c3a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(46, 139, 87, 0.2);
}

/* Лайтбокс (модальное окно) */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    background-color: white;
    border-radius: 10px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.lightbox-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    height: 100%;
}

.lightbox-media {
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    overflow: hidden;
}

.lightbox-media img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.lightbox-media iframe {
    width: 100%;
    height: 70vh;
    border: none;
}

.lightbox-info {
    padding: 30px;
    background-color: #f8f9fa;
    overflow-y: auto;
}

.lightbox-info h3 {
    color: #2E8B57;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.lightbox-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.lightbox-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #888;
}

.lightbox-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.lightbox-prev, .lightbox-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Информация о галерее */
.gallery-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 5px solid #2E8B57;
}

.info-icon {
    width: 60px;
    height: 60px;
    background-color: #2E8B57;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h4 {
    color: #2E8B57;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.info-content p {
    color: #555;
    line-height: 1.6;
}

.gallery-instructions h4 {
    color: #2E8B57;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.instruction-item {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #2E8B57;
}

.instruction-item h5 {
    color: #2E8B57;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.instruction-item p {
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 992px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lightbox-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    
    .lightbox-media {
        min-height: 300px;
    }
    
    .lightbox-media img,
    .lightbox-media iframe {
        max-height: 50vh;
        height: 50vh;
    }
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .filters-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .filter-reset {
        align-self: flex-end;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon {
        margin: 0 auto;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-stats {
        padding: 20px;
    }
    
    .gallery-filters {
        padding: 20px;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: center;
    }
    
    .lightbox-content {
        max-height: 95vh;
    }
    
    .lightbox-meta {
        flex-direction: column;
        gap: 10px;
    }
}








/* ========== СТИЛИ ДЛЯ СТРАНИЦЫ "ЖАНАЛЫКТАР" ========== */

/* Раздел новостей */
.news-section {
    padding: 20px 0;
}

/* Фильтры новостей */
.news-filters {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.filters-header h3 {
    color: #2E8B57;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-toggle {
    display: flex;
    gap: 5px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 5px;
}

.view-btn {
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: none;
    border-radius: 5px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background-color: #e9f7ef;
    color: #2E8B57;
}

.view-btn.active {
    background-color: #2E8B57;
    color: white;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.filter-btn {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #555;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #e9f7ef;
    border-color: #2E8B57;
}

.filter-btn.active {
    background-color: #2E8B57;
    border-color: #2E8B57;
    color: white;
}

.news-search {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #2E8B57;
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

.search-btn {
    background-color: #2E8B57;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: #1a5c3a;
    transform: translateY(-2px);
}

/* Контейнер новостей */
.news-container {
    margin-bottom: 40px;
}

/* Сеточный вид */
.news-container.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Списковый вид */
.news-container.list-view {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-container.list-view .news-card {
    display: flex;
    max-width: 100%;
}

.news-container.list-view .news-image {
    flex: 0 0 250px;
    height: 200px;
}

.news-container.list-view .news-content {
    flex: 1;
}

/* Карточка новости */
.news-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.events {
    background-color: #3498db;
    color: white;
}

.badge.announcements {
    background-color: #e74c3c;
    color: white;
}

.badge.achievements {
    background-color: #f39c12;
    color: white;
}

.badge.updates {
    background-color: #2ecc71;
    color: white;
}

.badge.parents {
    background-color: #9b59b6;
    color: white;
}

.badge.new {
    background-color: #e74c3c;
    color: white;
}

.badge.important {
    background-color: #f1c40f;
    color: #333;
}

/* Содержимое новости */
.news-content {
    padding: 25px;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #666;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-meta i {
    font-size: 0.9rem;
}

.news-title {
    color: #2E8B57;
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: #1a5c3a;
}

.news-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    background-color: transparent;
    border: 2px solid #2E8B57;
    color: #2E8B57;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: #2E8B57;
    color: white;
    transform: translateY(-2px);
}

.news-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: #e9f7ef;
    color: #2E8B57;
    transform: scale(1.1);
}

/* Пагинация */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.pagination-btn {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    color: #555;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #e9f7ef;
    border-color: #2E8B57;
    color: #2E8B57;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 10px;
}

.page-btn {
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #555;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background-color: #e9f7ef;
    border-color: #2E8B57;
}

.page-btn.active {
    background-color: #2E8B57;
    border-color: #2E8B57;
    color: white;
}

.page-dots {
    color: #999;
    display: flex;
    align-items: center;
    padding: 0 5px;
}

/* Подписка на новости */
.news-subscription {
    background: linear-gradient(135deg, #2E8B57, #3CB371);
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 40px;
    color: white;
}

.subscription-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.subscription-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.subscription-text {
    flex: 1;
}

.subscription-text h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
}

.subscription-text p {
    opacity: 0.9;
    font-size: 1.1rem;
    margin: 0;
}

.subscription-form {
    display: flex;
    gap: 10px;
    min-width: 350px;
}

.subscription-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.subscription-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.subscription-form button {
    background-color: white;
    color: #2E8B57;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.subscription-form button:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

/* Модальное окно новости */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.news-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: white;
    border-radius: 10px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

.modal-header {
    margin-bottom: 25px;
}

.modal-meta {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
}

.modal-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.modal-text h2 {
    color: #2E8B57;
    font-size: 2rem;
    margin-bottom: 20px;
}

.modal-text h3 {
    color: #2E8B57;
    font-size: 1.5rem;
    margin: 25px 0 15px 0;
}

.modal-text p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.modal-text ul, .modal-text ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.modal-text li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.6;
}

.modal-gallery {
    margin: 30px 0;
}

.gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.gallery-preview img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-preview img:hover {
    transform: scale(1.05);
}

.modal-footer {
    padding: 20px 40px;
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-share span {
    color: #666;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 50%;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.facebook:hover {
    background-color: #1877f2;
    color: white;
    border-color: #1877f2;
}

.share-btn.twitter:hover {
    background-color: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.share-btn.whatsapp:hover {
    background-color: #25d366;
    color: white;
    border-color: #25d366;
}

.share-btn.telegram:hover {
    background-color: #0088cc;
    color: white;
    border-color: #0088cc;
}

.modal-print {
    background-color: #2E8B57;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.modal-print:hover {
    background-color: #1a5c3a;
    transform: translateY(-2px);
}

/* Анимация появления карточек */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 1200px) {
    .news-container.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .subscription-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .subscription-form {
        min-width: 100%;
    }
    
    .modal-body {
        padding: 30px;
    }
    
    .modal-text h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .news-container.grid-view {
        grid-template-columns: 1fr;
    }
    
    .news-container.list-view .news-card {
        flex-direction: column;
    }
    
    .news-container.list-view .news-image {
        flex: 0 0 200px;
        width: 100%;
    }
    
    .filters-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .news-search {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 20px;
        max-height: calc(95vh - 100px);
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .news-pagination {
        flex-wrap: wrap;
    }
    
    .pagination-numbers {
        order: 3;
        flex: 1 0 100%;
        justify-content: center;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .news-filters {
        padding: 20px;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: center;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .news-actions {
        align-self: flex-end;
    }
    
    .news-subscription {
        padding: 30px 20px;
    }
    
    .subscription-text h3 {
        font-size: 1.5rem;
    }
    
    .subscription-form {
        flex-direction: column;
    }
    
    .subscription-form input,
    .subscription-form button {
        width: 100%;
    }
    
    .modal-text h2 {
        font-size: 1.5rem;
    }
    
    .modal-text h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .news-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .news-title {
        font-size: 1.2rem;
    }
    
    .modal-meta {
        flex-direction: column;
        gap: 10px;
    }
}