/* Стили для страницы магнитометров */

/* Плашка "Страница в разработке" */
.development-notice {
    background: linear-gradient(135deg, var(--theme-color, #11596c) 0%, var(--theme-color2, #062831) 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
    box-shadow: 0 8px 32px rgba(17, 89, 108, 0.3);
    position: relative;
    overflow: hidden;
}

.development-notice::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.development-notice-content {
    position: relative;
    z-index: 1;
}

.development-notice-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.development-notice-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px 0;
    font-family: 'Roboto', sans-serif;
}

.development-notice-text {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
    font-family: 'Roboto', sans-serif;
}

/* Основной контейнер */
.magnetometers-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Заголовок с изображением */
.magnetometers-header {
    margin-bottom: 40px;
}

.magnetometers-header-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.magnetometers-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--theme-color, #1e3a8a);
    margin: 0;
    flex: 1;
}

.magnetometers-header-image {
    flex: 0 0 300px;
}

.magnetometers-header-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Основной текст */
.magnetometers-main-text {
    margin-bottom: 40px;
}

.magnetometers-text {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    text-align: justify;
    text-indent: 30px; /* Красная строка */
    margin-bottom: 20px;
}

/* Подзаголовки */
.magnetometers-subtitle {
    font-size: 32px;
    font-weight: 600;
    color: var(--theme-color, #1e3a8a);
    margin: 40px 0 20px 0;
    border-bottom: 2px solid var(--theme-color, #1e3a8a);
    padding-bottom: 10px;
}

/* Список принципов */
.magnetometers-principle {
    margin-bottom: 40px;
}

.magnetometers-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.magnetometers-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.magnetometers-list li::before {
    content: "•";
    color: var(--theme-color, #1e3a8a);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Конструкция магнитометра */
.magnetometers-construction {
    margin-bottom: 40px;
}

.magnetometers-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.magnetometers-image-item {
    text-align: center;
}

.magnetometers-image-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.magnetometers-image-caption h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--theme-color, #1e3a8a);
    margin: 0 0 8px 0;
}

.magnetometers-image-caption p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Текст после картинок в ПК версии */
.magnetometers-structure-text {
    margin-top: 30px;
}

/* Скрываем мобильную версию текста на ПК */
.magnetometers-structure-text-mobile {
    display: none;
}

/* Показываем десктопную версию текста на ПК */
.magnetometers-structure-text-desktop {
    display: block;
}

/* Технические характеристики */
.magnetometers-specifications {
    margin-bottom: 40px;
}

.magnetometers-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.magnetometers-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.magnetometers-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.magnetometers-table tr:last-child {
    border-bottom: none;
}

.magnetometers-table td {
    padding: 15px 20px;
    font-size: 16px;
    line-height: 1.5;
}

.magnetometers-table tr td:first-child {
    font-weight: 600;
    color: var(--theme-color, #1e3a8a);
    background: #f8fafc;
    width: 60%;
}

.magnetometers-table tr td:last-child {
    color: #333;
    text-align: right;
}

/* Адаптивность */
@media (max-width: 768px) {
    .magnetometers-content {
        padding: 20px 15px;
    }
    
    .magnetometers-title {
        font-size: 36px;
    }
    
    .magnetometers-header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .magnetometers-header-image {
        flex: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .magnetometers-subtitle {
        font-size: 28px;
    }
    
    .magnetometers-text {
        font-size: 16px;
        text-indent: 20px;
    }
    
    .magnetometers-images {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* В мобильной версии текст между картинками */
    .magnetometers-structure-text {
        margin: 20px 0;
    }
    
    /* В мобильной версии картинки идут вертикально */
    .magnetometers-construction .magnetometers-images {
        display: flex;
        flex-direction: column;
    }
    
    /* В мобильной версии показываем мобильный текст, скрываем десктопный */
    .magnetometers-structure-text-mobile {
        display: block;
    }
    
    .magnetometers-structure-text-desktop {
        display: none;
    }
    
    .magnetometers-table td {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .magnetometers-table tr td:first-child {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .magnetometers-title {
        font-size: 28px;
    }
    
    .magnetometers-subtitle {
        font-size: 24px;
    }
    
    .magnetometers-text {
        font-size: 15px;
        text-indent: 15px;
    }
    
    .magnetometers-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Кнопка возврата к разработкам */
.magnetometers-back {
    margin-top: 50px;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.back-to-developments {
    display: inline-block;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--theme-color, #1e3a8a);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.back-button:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-icon {
    font-size: 18px;
    font-weight: bold;
}

.back-text {
    font-size: 16px;
}

@media (max-width: 768px) {
    .back-button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .back-icon {
        font-size: 16px;
    }
    
    .development-notice {
        padding: 30px 20px;
        margin: 30px auto;
    }
    
    .development-notice-icon {
        font-size: 48px;
        margin-bottom: 15px;
    }
    
    .development-notice-title {
        font-size: 24px;
    }
    
    .development-notice-text {
        font-size: 16px;
    }
}