:root {
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --primary-blue-light: #dbeafe;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-gray: #f8fafc;
    --bg-gray-light: #f1f5f9;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-lg: 16px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-blue), #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.language-selector {
    display: flex;
    gap: 8px;
}

.language-selector a {
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-gray);
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.language-selector a:hover {
    color: var(--primary-blue);
    background: var(--primary-blue-light);
}

.language-selector .active {
    color: var(--primary-blue);
    background: var(--primary-blue-light);
    border-color: var(--primary-blue);
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f2fff2 0%, #ebf0ff 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-blue-light) 0%, transparent 70%);
    opacity: 0.4;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 1.79rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.23rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue-light);
    transform: translateY(-2px);
}

.btn-arrow {
    transition: transform 0.2s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

/* Features Section */
.features-section {
    padding: 20px 0;
    padding-bottom: 50px;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.feature-card {
    padding: 40px 32px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), #7c3aed);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue-light);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--primary-blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Footer */
.footer {
    padding: 40px 0;
    background: var(--bg-gray);
    border-top: 1px solid var(--border-color);
}

.disclaimer-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: white;
    border-radius: var(--radius);
    border-left: 4px solid #f59e0b;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.disclaimer-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.disclaimer-text {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.63rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .cta-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .disclaimer-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 1.46rem;
    }

    .hero-subtitle {
        font-size: 1.03rem;
    }    
    
    .nav-wrapper {
        flex-direction: column;
        gap: 16px;
    }
}




.detail-row {
    background: var(--bg-gray) !important;
    border-top: none !important;
}

.detail-row td {
    padding: 0 !important;
    border-top: none !important;
}

.parameter-details {
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0 0 var(--radius) var(--radius);
    margin: 0 20px 10px 20px;
    border-left: 3px solid var(--primary-blue);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 140px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.detail-text {
    color: var(--text-gray);
    line-height: 1.5;
    flex: 1;
    font-size: 0.95rem;
}

/* Особые стили для разных типов отклонений */
.row-abnormal-high .parameter-details {
    border-left-color: #ef4444;
    background: rgba(254, 243, 242, 0.6);
}

.row-abnormal-low .parameter-details {
    border-left-color: #3b82f6;
    background: rgba(240, 249, 255, 0.6);
}

.row-near-limit .parameter-details {
    border-left-color: #f59e0b;
    background: rgba(255, 251, 235, 0.6);
}

/* Анимация появления */
.detail-row {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Убираем hover для детальных строк */
.detail-row:hover {
    /*background: var(--bg-gray) !important;
    transform: none !important;*/
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .parameter-details {
        margin: 0 12px 8px 12px;
        padding: 16px;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 6px;
    }
    
    .detail-label {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .parameter-details {
        margin: 0 8px 6px 8px;
        padding: 12px;
    }
    
    .detail-label {
        font-size: 0.85rem;
    }
    
    .detail-text {
        font-size: 0.9rem;
    }
}





/* Дополнение к существующим стилям в styles.css */

/* Обновление цветовой палитры для раздела растений */
.plants-theme .logo-icon {
    background-color: #2e7d32;
}

.plants-theme .logo-text {
    color: #2e7d32;
}

/* Активная ссылка в навигации для растений */
nav a.active[href*="plants"] {
    color: #2e7d32;
    font-weight: 600;
}

nav a.active[href*="plants"]::after {
    background-color: #2e7d32;
}