.banner-loading {
    min-height: 400px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.banner-image {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.banner-image.loaded {
    opacity: 1;
}
/* Стили для чекбокса согласия */
.privacy-link {
    color: #0066cc;
    text-decoration: underline;
}

.privacy-link:hover {
    color: #004499;
}

/* Стиль для обязательного поля чекбокса */
.checkbox-label.required:before {
    content: '*';
    color: #e74c3c;
    margin-right: 5px;
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-checkbox-group {
    margin: 20px 0;
    grid-column: 1 / -1;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 2;
}

.form-checkbox {
    display: none;
}

.checkbox-custom {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #3498db;
    border-radius: 4px;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-checkbox:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #3498db;
    font-weight: bold;
}

.checkbox-text {
    color: #333;
}

.privacy-link {
    color: #3498db;
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* Стиль для обязательного чекбокса */
.form-checkbox:required + .checkbox-custom {
    border-color: #e74c3c;
}

/* Стиль при ошибке */
.checkbox-label.error .checkbox-custom {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

.checkbox-label.error .checkbox-text {
    color: #e74c3c;
}


.masterclass-page {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f7ff 100%);
    min-height: 100vh;
}

.masterclass-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.masterclass-page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.masterclass-page-header h1 {
    font-size: 2.5rem;
    color: #00558f;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    font-weight: normal;
    max-width: 800px;
    margin: 0 auto;
}

/* Сетка преимуществ */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 3rem 0;
}

.benefit-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    color: #00558f;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.benefit-card p {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: normal;
    line-height: 1.5;
}

/* Описание типов мастер-классов */
.masterclass-types {
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.masterclass-types h3 {
    color: #00558f;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.types-description p {
    color: #64748b;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.6;
}

/* Детали мастер-классов */
.masterclass-details {
    margin: 4rem 0;
}

.masterclass-details h2 {
    text-align: center;
    color: #00558f;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.detail-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #00558f;
}

.detail-card h3 {
    color: #00558f;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.detail-card p {
    color: #64748b;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: normal;
    line-height: 1.5;
}

.detail-card strong {
    color: #374151;
}

/* Активация текущей страницы в навигации */
.nav-menu li a.active {
    color: white;
    font-weight: bold;
}

/* Адаптивность для страницы мастер-класса */
@media (max-width: 768px) {
    .masterclass-page {
        padding: 1rem 0;
    }
    
    .masterclass-page-container {
        padding: 0 1rem;
    }
    
    .masterclass-page-header h1 {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .benefit-card {
        padding: 1rem;
    }
    
    .benefit-icon {
        font-size: 2.5rem;
    }
    
    .masterclass-types {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .detail-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .masterclass-page-header h1 {
        font-size: 1.8rem;
    }
    
    .masterclass-details h2 {
        font-size: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}



@font-face {
    font-family: 'Journal Sans';
    src: url('fonts/journal-sans_bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

#banner-container {
    width: 100%;
    overflow: hidden;
}



/* ОБЩИЕ СТИЛИ ДЛЯ ВСЕХ БАННЕРОВ */
.banner-image,
.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Изменено с cover на contain чтобы видно все изображение */
    object-position: center;
    display: block;
}

/* Слайдер баннеров */
.banner-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #f8f9fa; /* Фон на случай если есть прозрачные области */
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa; /* Фон для слайда */
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Одиночный баннер */
.single-banner {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa; /* Фон для одиночного баннера */
}

/* Заглушка баннера */
.banner-placeholder {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

/* Кнопки навигации */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #00558f;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Точки навигации */
.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid red;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot.active {
    background: red;
    transform: scale(1.2);
    border-color: red;
}

.dot:hover {
    background: white;
    transform: scale(1.1);
}

/* Прогресс бар */
.progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.progress-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00558f, #cc2129);
    transform: translateX(-100%);
    animation: progress 8000ms linear;
}

@keyframes progress {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

/* АДАПТИВНАЯ ВЫСОТА ДЛЯ БАННЕРОВ 1920×400px (соотношение 4.8:1) */

/* Основная высота рассчитывается от ширины: высота = ширина / 4.8 */
.banner-slider,
.single-banner {
    height: calc(100vw / 4.8); /* 1920 / 400 = 4.8 */
    min-height: 120px; /* Минимальная высота для очень узких экранов */
    max-height: 400px; /* Максимальная высота как в оригинале */
}

/* Дополнительный контейнер для центрирования */
.banner-slider::before,
.single-banner::before {
    content: '';
    display: none;
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ РАЗНЫХ УСТРОЙСТВ */

/* Для очень больших экранов (шире 1920px) */
@media (min-width: 1921px) {
    .banner-slider,
    .single-banner {
        max-width: 1920px;
        margin: 0 auto;
        height: 400px;
    }
}

/* Для десктопов (1200px - 1920px) */
@media (min-width: 1200px) and (max-width: 1920px) {
    .banner-slider,
    .single-banner {
        height: calc(100vw / 4.8);
    }
}

/* Для планшетов (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .banner-slider,
    .single-banner {
        height: calc(100vw / 4.8);
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .prev-btn {
        left: 15px;
    }
    
    .next-btn {
        right: 15px;
    }
    
    .slider-dots {
        bottom: 10px;
    }

    .dot {
        width: 7px;
        height: 7px;
    }
}

/* Для мобильных (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .banner-slider,
    .single-banner {
        height: calc(100vw / 4.8);
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .slider-dots {
        bottom: 8px;
    }
    
    .dot {
        width: 4px;
        height: 4px;
    }
}

/* Для маленьких мобильных (до 479px) */
@media (max-width: 479px) {
    .banner-slider,
    .single-banner {
        height: calc(100vw / 4.8);
        min-height: 100px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .slider-dots {
        bottom: 5px;
    }
    
    .dot {
        width: 4px;
        height: 4px;
    }
    
    .banner-placeholder {
        padding: 20px 10px;
    }
}

/* Для очень узких экранов (меньше 360px) */
@media (max-width: 359px) {
    .banner-slider,
    .single-banner {
        height: calc(100vw / 4.8);
        min-height: 80px;
    }
    
    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .slider-dots {
        bottom: 5px;
    }
}

/* Для горизонтальной ориентации на мобильных */
@media (max-height: 500px) and (max-width: 900px) {
    .banner-slider,
    .single-banner {
        height: calc(100vw / 4.8);
        max-height: 300px;
    }
}

/* Специальный стиль для очень высоких баннеров на узких экранах */
@media (max-width: 480px) and (min-height: 700px) {
    .banner-slider,
    .single-banner {
        height: calc(100vw / 3.5); /* Чуть выше на высоких экранах */
        max-height: 250px;
    }
}

/* Фолбэк для браузеров, которые не поддерживают calc() */
@supports not (width: calc(100vw / 4.8)) {
    .banner-slider,
    .single-banner {
        height: 400px;
    }
    
    @media (max-width: 1920px) {
        .banner-slider,
        .single-banner {
            height: 350px;
        }
    }
    
    @media (max-width: 1200px) {
        .banner-slider,
        .single-banner {
            height: 250px;
        }
    }
    
    @media (max-width: 768px) {
        .banner-slider,
        .single-banner {
            height: 180px;
        }
    }
    
    @media (max-width: 480px) {
        .banner-slider,
        .single-banner {
            height: 120px;
        }
    }
}




.latest-news-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.latest-news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.latest-news-header {
    text-align: center;
    margin-bottom: 3rem;
}

.latest-news-header h2 {
    font-size: 2.25rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.latest-news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.latest-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.latest-news-image-container {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Фиксируем соотношение 1:1 */
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    border-radius: 8px 8px 0 0;
}

.latest-news-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.9s ease;
}

.latest-news-card:hover .latest-news-image-container img {
    transform: scale(1.05);
}

.latest-news-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.latest-news-date {
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}


.latest-news-title {
    font-size: 1rem;
    color: #0f172a;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    font-weight: 600;
    flex-grow: 1;
}

.latest-news-title a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.latest-news-excerpt {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.view-all-link {
    text-align: center;
}

.view-all-link a {
    color: #00558f;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #00558f;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.view-all-link a:hover {
    color: white;
    background: #00558f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 85, 143, 0.3);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .latest-news-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки вместо 1 */
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .latest-news-card {
        margin: 0; /* Убираем отступы */
    }
    
    .latest-news-content {
        padding: 1rem;
    }
    
    .latest-news-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .latest-news-excerpt {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .latest-news-date {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .latest-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .latest-news-content {
        padding: 0.75rem;
    }
    
    .latest-news-title {
        font-size: 0.85rem;
    }
    
    .latest-news-excerpt {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }
}

/* Для экранов меньше 360px - 1 колонка */
@media (max-width: 360px) {
    .latest-news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}



@media (min-width: 769px) and (max-width: 1024px) {
    .latest-news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1025px) {
    .latest-news-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

/* Гарантируем что карточки не растягиваются */
.latest-news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Уменьшаем отступы секции на мобильных */
@media (max-width: 768px) {
    .latest-news-section {
        padding: 2rem 0;
    }
    
    .latest-news-header {
        margin-bottom: 1.5rem;
    }
    
    .latest-news-header h2 {
        font-size: 1.5rem;
    }
}


.latest-news-image-container .image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00558f 0%, #003d6b 100%);
    color: white;
    font-size: 0.9rem;
    flex-direction: column;
    gap: 8px;
}


/*----------------------------------------------------------------------------*/



 

 

body{
    margin: 0;
    font-family: 'Journal Sans', sans-serif;
    font-weight: bold;
    font-size: 20px;
}

/* Навигация */
.navigation{
    background-color: #00558f;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 2rem;
    height: 70px;
    max-width: 1200px;
}

.logo img {
    height: 50px; 
    width: auto;
}

.nav-menu{
    list-style: none;
    display: flex;
    gap: 2em;
    margin: 0;
    padding: 0;
}

.nav-menu li a{
    color: white;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s;
}

.nav-menu li a:hover{
    color: #ccc;
}

/* Мобильное меню */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Анимация кнопки меню */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}


 


 
/* Горизонтальная форма */
.horizontal-form-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4% 0;
}

.form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h1 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.form-header .subtitle {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: normal;
}

.horizontal-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
    margin-bottom: 10;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #374151;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
    font-family: 'Journal Sans', sans-serif;
    font-weight: bold;
    transition: all 0.2s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #00558f;
    box-shadow: 0 0 0 2px rgba(0, 85, 143, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.submit-btn {
    background-color: #00558f;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Journal Sans', sans-serif;
    font-weight: bold;
    white-space: nowrap;
    height: 42px;
}

.submit-btn:hover {
    background-color: #003d6b;
    transform: translateY(-1px);
}

.note {
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: normal;
    padding-top: 1rem;
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* Контактная информация */
.contact-info-section {
    background: white;
    padding: 4rem 0;
    border-top: 1px solid #e2e8f0;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-container h2 {
    text-align: center;
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    margin: 0 0 0.5rem 0;
    color: #00558f;
    font-size: 1.1rem;
}

.contact-details p {
    margin: 0.25rem 0;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: normal;
}

.contact-details a {
    color: #00558f;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Стили для страницы новостей */
.news-page {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 1rem;
}

.page-header .subtitle {
    font-size: 1.2rem;
    color: #64748b;
    font-weight: normal;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.news-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #00558f 0%, #003d6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.news-title {
    font-size: 1.3rem;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-weight: normal;
}

.read-more {
    color: #00558f;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.read-more:hover {
    color: #003d6b;
}

.news-sidebar {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
    font-size: 1.3rem;
    color: #0f172a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #00558f;
}

.archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-list li {
    margin-bottom: 0.5rem;
}

.archive-list a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s;
}

.archive-list a:hover {
    color: #00558f;
}

.news-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination a {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #00558f;
    color: white;
    border-color: #00558f;
}

.pagination .current {
    background: #00558f;
    color: white;
    border-color: #00558f;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #00558f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.s{
    color: #00558f;;
}
.loading-text {
    margin-top: 20px;
    color: #00558f;
    font-size: 1.1rem;
    font-weight: 500;
}

.loading-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Уведомления */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.notification-overlay.show {
    opacity: 1;
    visibility: visible;
}

.notification {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.notification-overlay.show .notification {
    transform: translateY(0);
}

.notification-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.notification-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.notification-message {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.notification-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Иконки */
.custom-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
}

.contact-icon .custom-icon {
    width: 32px;
    height: 32px;
}

.vac {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.vac .custom-icon {
    width: 20px;
    height: 20px;
}

/* МЕДИА-ЗАПРОСЫ ДЛЯ АДАПТИВНОСТИ */

/* Планшеты и маленькие ноутбуки */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .form-row {
        flex-wrap: wrap;
    }
    
    .form-group {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 200px;
    }
    
    .news-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .news-sidebar {
        order: -1;
    }
    



/* Планшеты и большие телефоны */
@media (max-width: 850px) {
    body {
        font-size: 18px;
    }
    
    /* Мобильное меню */
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #00558f;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: none;
        gap: 0;
        z-index: 99;
    }
    
    .nav-menu.active {
        margin-top: -10px;
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
        height: 60px;
    }
    
    .logo img {
        height: 40px;
    }
    
    
    /* Форма */
    .horizontal-form-section {
        padding: 2rem 0.5rem;
    }
    
    .form-container {
        padding: 0 0.5rem;
    }
    
    .horizontal-form {
        padding: 1.5rem 1rem;
        margin: 0 auto;
    }
    
    .form-row {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .form-group {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .form-input, .form-select {
        text-align: center;
        font-size: 16px;
    }
    
    .submit-btn {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .form-header h1 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .form-header .subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    /* Контакты */
    .contact-info-section {
        padding: 2rem 0;
    }
    
    .contact-container {
        padding: 0 1rem;
    }
    
    .contact-container h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    /* Новости */
    .news-container {
        padding: 0 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card {
        margin-bottom: 1rem;
    }
}

/* Телефоны */
@media (max-width: 480px) {
    .test {
        height: 100%;
        font-size: 1.3em;
    }
    
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .horizontal-form {
        padding: 1rem;
    }
}

