        :root {
            --accent: #87FF32;
            --white: #F4FBF3;
            --black: #101413;
            --primary: #2c7873;
            --secondary: #6fb98f;
            --light: #f0f7ee;
            --dark: #004445;
            --slider-start: #87FF32;
            --slider-end: #2ecc71;
            --text-dark: #101413;
            --text-medium: #444444;
            --warning: #FF9A00;
            --good: #2ecc71;
            --low: #e74c3c;
            --danger: #e53935;
            --header-height: 80px;
            --transition: 0.3s ease;
            --header-text-muted: #555555;
        }
        
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Manrope', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, var(--black) 0%, #1a2a2a 100%);
            color: var(--white);
            min-height: 100vh;
            padding: 20px;
            padding-top: calc(var(--header-height) + 30px);
        }
        
        /* Подключение шрифта Surpriz локально */
        @font-face {
            font-family: 'Surpriz';
            src: url('fonts/Surpriz-Regular.woff2') format('woff2'),
                 url('fonts/Surpriz-Regular.woff') format('woff'),
                 url('fonts/Surpriz-Regular.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: var(--white);
            border-radius: 20px;
            box-shadow: 0 20px 50px rgba(16, 20, 19, 0.5);
            overflow: hidden;
            border: 1px solid rgba(135, 255, 50, 0.1);
        }
        
        header {
            background: linear-gradient(135deg, var(--black) 0%, #1a2a2a 100%);
            color: var(--white);
            padding: 30px;
            text-align: center;
            border-bottom: 2px solid var(--accent);
            position: relative;
            overflow: hidden;
        }
        
        header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 20% 80%, rgba(135, 255, 50, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(111, 185, 143, 0.1) 0%, transparent 50%);
            z-index: 0;
        }
        
        .video-notice {
            font-size: 1rem;
            color: var(--accent);
            margin-bottom: 20px;
            background: rgba(135, 255, 50, 0.1);
            padding: 12px;
            border-radius: 10px;
            border: 1px solid rgba(135, 255, 50, 0.3);
            font-weight: 500;
            margin-top: 60px;
        }

        .video-instruction {
            margin-top: 60px;
            margin-bottom: 20px;
            position: relative;
            z-index: 1;
        }

        .video-embed-wrapper {
            width: 100%;
            max-width: 640px;
            margin: 0 auto;
            border-radius: 14px;
            overflow: hidden;
            border: 1px solid rgba(135, 255, 50, 0.3);
            background: rgba(135, 255, 50, 0.05);
            line-height: 0;
            position: relative;
        }

        .video-embed-wrapper iframe {
            display: block;
            width: 100%;
            height: 360px;
            border: 0;
            touch-action: auto;
        }

        .video-fallback-btn {
            display: block;
            text-align: center;
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-dark);
            margin-top: 14px;
            text-decoration: none;
            background: linear-gradient(135deg, #87FF32 0%, #2ecc71 100%);
            border-radius: 8px;
            padding: 14px 20px;
            cursor: pointer;
            touch-action: manipulation;
            -webkit-tap-highlight-color: rgba(135, 255, 50, 0.3);
            transition: all 0.3s;
        }

        .video-fallback-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(135, 255, 50, 0.35);
        }

        @media (max-width: 600px) {
            .video-embed-wrapper iframe {
                height: 220px;
            }
        }
        
        .header-title {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
            margin-top: 40px;
            position: relative;
            z-index: 1;
        }
        
        .header-title-line1 {
            font-family: 'Surpriz', cursive;
            font-size: 3rem;
            font-weight: 800;
            color: var(--accent);
            letter-spacing: 1px;
        }
        
        .header-title-line2 {
            font-size: 1.6rem;
            font-weight: 600;
            color: var(--white);
            margin-top: 5px;
            opacity: 0.9;
        }
        
        .subtitle {
            font-size: 1.1rem;
            color: rgba(244, 251, 243, 0.8);
            margin-top: 10px;
            font-weight: 400;
            position: relative;
            z-index: 1;
        }
        
        .back-btn {
            position: absolute;
            top: 20px;
            left: 20px;
            background: rgba(135, 255, 50, 0.1);
            color: var(--accent);
            border: 1px solid rgba(135, 255, 50, 0.3);
            padding: 10px 20px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
            z-index: 2;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 1rem;
            touch-action: manipulation;
            -webkit-tap-highlight-color: rgba(135, 255, 50, 0.3);
        }
        
        .back-btn::before {
            content: "←";
            font-weight: 800;
            font-size: 1.2rem;
            line-height: 1;
        }
        
        .back-btn:hover {
            background: rgba(135, 255, 50, 0.2);
            transform: translateY(-2px);
        }
        
        @media (max-width: 768px) {
            .header-title-line1 {
                font-size: 2.2rem;
            }
            
            .header-title-line2 {
                font-size: 1.3rem;
            }
            
            .video-notice {
                margin-top: 30px;
            }

            .back-btn {
                position: relative;
                top: 0;
                left: 0;
                margin-bottom: 15px;
                width: 100%;
                text-align: center;
                justify-content: center;
            }
        }
        
        .main-content {
            display: grid;
            grid-template-columns: 1fr;
            gap: 25px;
            padding: 30px;
        }
        
        @media (max-width: 768px) {
            .main-content {
                padding: 15px;
            }
        }
        
        .input-section, .result-section, .plant-section {
            background: var(--white);
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 5px 20px rgba(16, 20, 19, 0.1);
            border: 1px solid rgba(16, 20, 19, 0.1);
            transition: all 0.3s ease;
        }
        
        @media (max-width: 768px) {
            .input-section, .result-section, .plant-section {
                padding: 20px;
            }
        }
        
        .input-section:hover, .result-section:hover, .plant-section:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(16, 20, 19, 0.15);
        }
        
        .section-title {
            color: var(--text-dark);
            border-bottom: 2px solid var(--accent);
            padding-bottom: 15px;
            margin-bottom: 25px;
            font-size: 1.6rem;
            position: relative;
            text-align: center;
            font-weight: 700;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100px;
            height: 2px;
            background: var(--accent);
            margin: 0 auto;
            right: 0;
        }
        
        .section-subtitle {
            font-size: 0.9rem;
            color: var(--text-medium);
            font-weight: normal;
            display: block;
            margin-top: 10px;
            text-align: center;
            width: 100%;
            font-weight: 500;
        }
        
        .input-group {
            margin-bottom: 25px;
            position: relative;
        }
        
        label {
            display: block;
            margin-bottom: 10px;
            font-weight: 600;
            color: var(--text-dark);
            font-size: 1rem;
        }
        
        input, select {
            width: 100%;
            padding: 14px 16px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-size: 1rem;
            transition: all 0.3s;
            background: var(--white);
            color: var(--text-dark);
            font-family: 'Manrope', sans-serif;
        }
        
        input:focus, select:focus {
            border-color: var(--accent);
            outline: none;
            box-shadow: 0 0 0 3px rgba(135, 255, 50, 0.2);
        }
        
        button {
            border: none;
            padding: 16px 30px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 1.1rem;
            font-weight: 700;
            transition: all 0.3s ease;
            font-family: 'Manrope', sans-serif;
        }
        
        button:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(135, 255, 50, 0.3);
        }
        
        button:active {
            transform: translateY(0);
        }
        
        /* Кнопки помощи */
        .help-btn {
            background: linear-gradient(135deg, #87FF32 0%, #2ecc71 100%);
            color: var(--text-dark);
            font-weight: 600;
            width: 100%;
            margin-top: 10px;
        }
        
        .help-btn:hover {
            box-shadow: 0 10px 20px rgba(135, 255, 50, 0.3);
        }
        
        .co2-warning {
            display: none;
            background: rgba(255, 193, 7, 0.15);
            padding: 12px;
            border-radius: 8px;
            margin-top: 12px;
            border: 1px solid rgba(255, 193, 7, 0.3);
            color: var(--text-dark);
            font-weight: 600;
        }
        
        /* Секция детальной настройки растений */
        .plant-section {
            background: var(--white);
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 5px 20px rgba(16, 20, 19, 0.1);
            border: 1px solid rgba(16, 20, 19, 0.1);
        }
        
        .optional-note {
            font-size: 1rem;
            color: var(--text-medium);
            margin-bottom: 20px;
            text-align: center;
            font-weight: 500;
            background: rgba(135, 255, 50, 0.1);
            padding: 15px;
            border-radius: 10px;
            border: 1px solid rgba(135, 255, 50, 0.3);
        }
        
        .plant-group {
            margin-bottom: 20px;
            padding: 15px;
            background: var(--white);
            border-radius: 10px;
            border-left: 4px solid var(--accent);
            border: 1px solid rgba(16, 20, 19, 0.1);
            transition: all 0.3s;
        }
        
        .plant-group:hover {
            box-shadow: 0 5px 15px rgba(16, 20, 19, 0.1);
            border-color: var(--accent);
        }
        
        .plant-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            font-weight: 700;
            color: var(--text-dark);
            font-size: 1.1rem;
        }
        
        .plant-content {
            padding: 15px 0;
        }
        
        .slider-container {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .slider-value-display {
            font-weight: 700;
            color: var(--text-dark);
            text-align: center;
            margin-bottom: 10px;
            font-size: 1.1rem;
        }
        
        .plant-slider {
            -webkit-appearance: none;
            width: 100%;
            height: 10px;
            border-radius: 5px;
            background: linear-gradient(to right, var(--slider-start), var(--slider-end));
            outline: none;
            margin: 15px 0;
            border: 1px solid rgba(16, 20, 19, 0.1);
        }
        
        .plant-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: var(--accent);
            cursor: pointer;
            border: 3px solid var(--white);
            box-shadow: 0 3px 8px rgba(0,0,0,0.3);
        }
        
        .plant-slider::-moz-range-thumb {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: var(--accent);
            cursor: pointer;
            border: 3px solid var(--white);
            box-shadow: 0 3px 8px rgba(0,0,0,0.3);
        }
        
        .info-icon {
            display: inline-block;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--accent);
            color: var(--black);
            text-align: center;
            line-height: 20px;
            font-size: 12px;
            cursor: help;
            margin-left: 8px;
            position: relative;
            user-select: none;
            font-weight: 700;
        }
        
        .info-tooltip {
            display: none;
            position: absolute;
            background: var(--black);
            color: var(--white);
            border-radius: 8px;
            padding: 12px;
            font-size: 0.85rem;
            width: 280px;
            z-index: 1000;
            top: 30px;
            left: 50%;
            transform: translateX(-50%);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            text-align: left;
            border: 1px solid var(--accent);
            font-weight: 400;
            line-height: 1.5;
        }
        
        .info-icon:hover .info-tooltip {
            display: block;
        }
        
        /* Кнопка расчета */
        .calculate-container {
            text-align: center;
            margin: 30px 0;
        }
        
        .calculate-btn {
            width: 280px;
            padding: 18px 30px;
            font-size: 1.3rem;
            background: linear-gradient(135deg, #87FF32 0%, #2ecc71 100%);
            border-radius: 15px;
            font-weight: 800;
            letter-spacing: 0.5px;
            color: var(--text-dark);
        }
        
        /* Результаты */
        .results-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 25px;
        }
        
        @media (max-width: 768px) {
            .results-grid {
                display: block;
                overflow-x: auto;
                white-space: nowrap;
                padding-bottom: 10px;
            }
            
            .results-grid .result-card {
                display: inline-block;
                width: 90%;
                max-width: 350px;
                margin-right: 15px;
                vertical-align: top;
                white-space: normal;
            }
            
            .results-grid .result-card:last-child {
                margin-right: 0;
            }
        }
        
        .result-card {
            background: var(--white);
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 5px 15px rgba(16, 20, 19, 0.08);
            border-left: 4px solid var(--accent);
            border: 1px solid rgba(16, 20, 19, 0.1);
            transition: transform 0.3s ease;
        }
        
        .result-card:hover {
            transform: translateY(-5px);
        }
        
        .result-header {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(16, 20, 19, 0.1);
            font-family: 'Manrope', sans-serif;
        }
        
        .result-value {
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--text-dark);
            margin: 15px 0;
            font-family: 'Manrope', sans-serif;
        }
        
        @media (max-width: 768px) {
            .result-value {
                font-size: 1.8rem;
            }
        }
        
        .result-note {
            font-size: 0.95rem;
            color: var(--text-medium);
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px dashed #e0e0e0;
            font-weight: 500;
        }
        
        .week-dosage {
            font-size: 0.9rem;
            color: var(--text-medium);
            margin-top: 15px;
            border-top: 1px dashed #e0e0e0;
            padding-top: 15px;
        }
        
        .week-dosage ul {
            list-style-type: none;
            padding-left: 5px;
        }
        
        .week-dosage li {
            margin-bottom: 5px;
            padding: 5px 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }
        
        .highlight {
            background-color: rgba(135, 255, 50, 0.15);
            padding: 12px;
            border-radius: 8px;
            margin-top: 15px;
            border: 1px solid rgba(135, 255, 50, 0.3);
            color: var(--text-dark);
            font-weight: 600;
        }
        
        /* Таблицы концентраций */
        .concentration-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
            font-size: 0.75rem;
            min-width: 300px;
        }
        
        @media (max-width: 768px) {
            .concentration-table {
                font-size: 0.7rem;
                min-width: 280px;
                display: block;
                overflow-x: auto;
            }
            
            .concentration-table-wrapper {
                overflow-x: auto;
                margin: 0 -10px;
                padding: 0 10px;
            }
            
            .concentration-table th,
            .concentration-table td {
                padding: 6px;
                min-width: 70px;
            }
        }
        
        .concentration-table th, 
        .concentration-table td {
            padding: 6px;
            text-align: left;
            border-bottom: 1px solid rgba(16, 20, 19, 0.1);
            white-space: nowrap;
        }
        
        .concentration-table th {
            color: var(--text-dark);
            font-weight: 700;
            background: rgba(135, 255, 50, 0.1);
        }
        
        .concentration-table tr:hover {
            background: rgba(135, 255, 50, 0.05);
        }
        
        /* Таблица расхода удобрений */
        .consumption-table-container {
            margin-top: 30px;
            overflow-x: auto;
        }
        
        .consumption-table {
            width: 100%;
            border-collapse: collapse;
            margin: 25px 0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            border-radius: 8px;
            overflow: hidden;
            min-width: 600px;
        }
        
        @media (max-width: 768px) {
            .consumption-table {
                font-size: 0.85rem;
                min-width: 500px;
            }
            
            .consumption-table th,
            .consumption-table td {
                padding: 10px 8px;
            }
        }
        
        .consumption-table th {
            background: linear-gradient(135deg, var(--accent) 0%, #2ecc71 100%);
            color: var(--white);
            padding: 12px;
            text-align: center;
            font-weight: 700;
        }
        
        .consumption-table td {
            padding: 12px;
            border-bottom: 1px solid rgba(16, 20, 19, 0.1);
            text-align: center;
            color: var(--text-dark);
            font-weight: 500;
        }
        
        .consumption-table tr:nth-child(even) {
            background-color: rgba(135, 255, 50, 0.05);
        }
        
        .consumption-table tr:hover {
            background-color: rgba(135, 255, 50, 0.1);
        }
        
        /* Стиль для кнопки экспорта */
        .export-btn {
            background: linear-gradient(135deg, #87FF32 0%, #2ecc71 100%);
            color: var(--text-dark);
            font-weight: 700;
            margin-top: 0;
            width: 100%;
            padding: 18px;
            font-size: 1.05rem;
        }

        .export-buttons-group {
            display: flex;
            flex-direction: column;
            gap: 14px;
            margin-top: 30px;
        }

        .export-btn-recommended {
            box-shadow: 0 0 0 2px var(--accent) inset, 0 5px 15px rgba(135, 255, 50, 0.35);
        }
        
        /* Анимация загрузки для PDF */
        .pdf-loading {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(16, 20, 19, 0.9);
            z-index: 9999;
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }
        
        .pdf-loading.active {
            display: flex;
        }
        
        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 5px solid rgba(135, 255, 50, 0.3);
            border-radius: 50%;
            border-top-color: var(--accent);
            animation: spin 1s ease-in-out infinite;
            margin-bottom: 20px;
        }
        
        .loading-text {
            color: var(--white);
            font-size: 1.2rem;
            font-weight: 600;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* Скрытый контейнер PDF */
        .pdf-page {
            position: absolute;
            left: -9999px;
            top: -9999px;
            width: 800px;
            background: white;
            padding: 40px;
            font-family: 'Manrope', sans-serif;
            margin-bottom: 20px;
            color: #000000;
            font-weight: 500;
        }
        
        .pdf-page-1 {
            page-break-after: always;
        }
        
        .pdf-page-2 {
            page-break-after: always;
        }
        
        .pdf-page-3 {
            page-break-after: always;
        }
        
        .pdf-page-4 {
            page-break-after: always;
        }
        
        /* Специфические стили для PDF таблиц */
        .pdf-page table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
            font-size: 14px;
            color: #000000;
        }
        
        .pdf-page th {
            background-color: #f0f0f0;
            padding: 10px;
            text-align: left;
            border-bottom: 2px solid #87FF32;
            font-weight: 700;
        }
        
        .pdf-page td {
            padding: 8px 10px;
            border-bottom: 1px solid #ddd;
        }
        
        .pdf-page h1, .pdf-page h2, .pdf-page h3 {
            color: #000000;
            font-weight: 700;
        }
        
        .pdf-page h1 {
            color: #87FF32;
        }
        
        /* Стили для таблиц в PDF */
        .pdf-consumption-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            font-size: 12px;
        }
        
        .pdf-consumption-table th {
            background: #f0f0f0;
            padding: 8px;
            text-align: center;
            border: 1px solid #ddd;
            font-weight: 700;
        }
        
        .pdf-consumption-table td {
            padding: 8px;
            border: 1px solid #ddd;
            text-align: center;
        }
        
        .footer-note {
            text-align: center;
            padding: 25px;
            color: var(--text-medium);
            font-size: 0.95rem;
            border-top: 1px solid rgba(16, 20, 19, 0.1);
            background: rgba(16, 20, 19, 0.02);
            font-weight: 500;
        }
        
        .contacts-footer {
            margin-top: 30px;
            padding: 20px;
            border-top: 1px solid rgba(16, 20, 19, 0.1);
        }
        
        .contacts-container {
            display: flex;
            justify-content: center;
            gap: 30px;
            flex-wrap: wrap;
        }
        
        @media (max-width: 768px) {
            .contacts-container {
                flex-direction: column;
                gap: 15px;
            }
        }
        
        .contact-item {
            text-align: center;
        }
        
        @media (max-width: 768px) {
            .contact-item {
                text-align: left;
            }
        }
        
        .contact-label {
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 5px;
            font-size: 1rem;
        }
        
        .contact-value {
            color: var(--text-medium);
            font-weight: 500;
        }
        
        .contact-link {
            color: var(--primary);
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .contact-link:hover {
            color: var(--accent);
            text-decoration: underline;
        }
        
        /* Новые стили для добавленных блоков */
        .water-change-inputs {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            gap: 10px;
            margin-top: 10px;
            align-items: start;
        }

        .calculate-percent-col {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }

        .calculate-percent-caption {
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.02em;
            color: var(--warning, #ff9a00);
            text-align: center;
            white-space: nowrap;
        }
        
        @media (max-width: 768px) {
            .water-change-inputs {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .water-change-inputs .calculate-percent-btn {
                width: 100%;
                margin: 5px 0;
            }

            .calculate-percent-col {
                width: 100%;
            }
        }
        
        .calculate-percent-btn {
            background: linear-gradient(135deg, var(--accent) 0%, #2ecc71 100%);
            color: var(--text-dark);
            padding: 12px 15px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            border: none;
            transition: all 0.3s;
            white-space: nowrap;
        }
        
        .calculate-percent-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(135, 255, 50, 0.3);
        }
        
        .water-change-note {
            margin-top: 10px;
            padding: 8px;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 500;
        }
        
        .water-change-note.warning {
            background-color: rgba(255, 154, 0, 0.15);
            border: 1px solid rgba(255, 154, 0, 0.3);
            color: var(--warning);
        }
        
        .water-change-note.good {
            background-color: rgba(46, 204, 113, 0.15);
            border: 1px solid rgba(46, 204, 113, 0.3);
            color: var(--good);
        }
        
        .water-change-note.error {
            background-color: rgba(231, 76, 60, 0.15);
            border: 1px solid rgba(231, 76, 60, 0.3);
            color: var(--low);
        }
        
        .method-description {
            text-align: center;
            margin: 30px 0;
            padding: 20px;
            background: rgba(135, 255, 50, 0.05);
            border-radius: 15px;
            border-left: 4px solid var(--accent);
            color: var(--text-dark);
            font-weight: 600;
            line-height: 1.6;
        }
        
        .method-section {
            margin-top: 40px;
            background: var(--white);
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 5px 20px rgba(16, 20, 19, 0.1);
            border: 1px solid rgba(16, 20, 19, 0.1);
        }
        
        .method-title {
            color: var(--text-dark);
            border-bottom: 2px solid var(--accent);
            padding-bottom: 15px;
            margin-bottom: 25px;
            font-size: 1.6rem;
            position: relative;
            text-align: center;
            font-weight: 700;
        }
        
        .method-subtitle {
            font-size: 1rem;
            color: var(--text-medium);
            margin-top: 10px;
            text-align: center;
            font-weight: 500;
        }
        
        .two-column-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
            font-size: 0.85rem;
        }
        
        .two-column-table th {
            background: rgba(135, 255, 50, 0.1);
            padding: 10px;
            text-align: center;
            border: 1px solid rgba(16, 20, 19, 0.1);
            font-weight: 700;
            color: var(--text-dark);
        }
        
        .two-column-table td {
            padding: 10px;
            border: 1px solid rgba(16, 20, 19, 0.1);
            text-align: center;
            color: var(--text-dark);
            font-weight: 500;
        }
        
        .two-column-table tr:nth-child(even) {
            background-color: rgba(135, 255, 50, 0.05);
        }
        
        /* Стили для целевых концентраций */
        .target-concentrations {
            background: rgba(135, 255, 50, 0.1);
            padding: 15px;
            border-radius: 10px;
            margin-top: 20px;
            border: 1px solid rgba(135, 255, 50, 0.3);
            text-align: center;
        }
        
        .target-concentrations h4 {
            color: var(--text-dark);
            margin-bottom: 10px;
            font-weight: 700;
        }
        
        .target-values {
            display: flex;
            justify-content: center;
            gap: 30px;
            flex-wrap: wrap;
        }
        
        .target-item {
            text-align: center;
        }
        
        .target-value {
            font-size: 1.2rem;
            font-weight: 800;
            color: var(--text-dark);
        }
        
        .target-label {
            font-size: 0.9rem;
            color: var(--text-medium);
            margin-top: 5px;
        }
        
        /* Стили для предупреждения о подменах */
        .water-change-warning {
            display: none;
            background: rgba(255, 154, 0, 0.15);
            padding: 15px;
            border-radius: 10px;
            margin: 20px 0;
            border: 1px solid rgba(255, 154, 0, 0.3);
            color: var(--warning);
            text-align: center;
            font-weight: 600;
        }
        
        /* Контейнер для таблиц концентраций на мобильных */
        .table-container-mobile {
            overflow-x: auto;
            margin: 0 -10px;
            padding: 0 10px;
        }
        
        /* Для мобильной версии - скролл таблиц */
        .mobile-scroll-container {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
        
        /* Стили для мобильной версии - ОСНОВНЫЕ ИСПРАВЛЕНИЯ */
        @media (max-width: 768px) {
            body {
                padding: 10px;
                overflow-x: hidden;
            }
            
            .container {
                max-width: 100%;
                border-radius: 15px;
                overflow: hidden;
            }
            
            .main-content {
                padding: 15px 10px;
                width: 100%;
                overflow-x: hidden;
            }
            
            .input-section, .result-section, .plant-section, .method-section {
                padding: 20px 15px;
                margin: 10px 0;
                width: 100%;
                max-width: 100%;
                overflow: hidden;
                box-sizing: border-box;
            }
            
            .results-grid {
                display: flex;
                flex-direction: column;
                width: 100%;
                max-width: 100%;
            }
            
            .result-card {
                width: 100%;
                max-width: 100%;
                margin-right: 0;
                margin-bottom: 15px;
                padding: 20px;
                box-sizing: border-box;
            }
            
            .section-title, .method-title {
                font-size: 1.3rem;
                text-align: center;
                padding-bottom: 12px;
                margin-bottom: 20px;
            }
            
            .result-value {
                font-size: 1.6rem;
            }
            
            .consumption-table {
                font-size: 0.8rem;
                min-width: 100%;
                width: 100%;
            }
            
            .concentration-table {
                font-size: 0.65rem;
                min-width: 100%;
                width: 100%;
            }
            
            .two-column-table {
                font-size: 0.75rem;
                min-width: 100%;
                width: 100%;
                overflow-x: auto;
                display: block;
            }
            
            .mobile-scroll-container {
                width: 100%;
                max-width: 100%;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
            
            .header-title-line1 {
                font-size: 1.8rem;
            }
            
            .header-title-line2 {
                font-size: 1.1rem;
            }
            
            .subtitle {
                font-size: 0.9rem;
                padding: 0 10px;
            }
            
            .calculate-btn {
                width: 100%;
                max-width: 100%;
                box-sizing: border-box;
                padding: 16px 20px;
                font-size: 1.2rem;
            }
            
            .calculate-container {
                margin: 20px 0;
                width: 100%;
                padding: 0 10px;
                box-sizing: border-box;
            }
            
            .export-btn {
                width: 100%;
                max-width: 100%;
                box-sizing: border-box;
                padding: 16px 20px;
                font-size: 1.1rem;
                margin: 20px 0;
            }
            
            .method-description {
                margin: 20px 0;
                padding: 15px;
                font-size: 0.9rem;
                line-height: 1.4;
            }
            
            .help-btn {
                width: 100%;
                margin-top: 10px;
                padding: 14px 20px;
                font-size: 1rem;
            }
            
            .consumption-table-container,
            .table-container-mobile,
            .mobile-scroll-container {
                margin: 0;
                padding: 0;
                width: 100%;
                overflow-x: auto;
            }
            
            .week-dosage {
                font-size: 0.85rem;
                padding: 10px 0;
                margin-top: 10px;
            }
            
            .week-dosage ul {
                padding-left: 0;
            }
            
            .week-dosage li {
                padding: 3px 0;
            }
            
            .water-change-inputs {
                grid-template-columns: 1fr;
                gap: 10px;
            }
            
            .water-change-inputs .calculate-percent-btn {
                width: 100%;
                margin: 5px 0;
            }

            .back-btn {
                position: relative;
                top: 0;
                left: 0;
                margin-bottom: 15px;
                width: 100%;
                text-align: center;
                justify-content: center;
            }
            
            .contacts-container {
                flex-direction: column;
                gap: 15px;
            }
            
            .contact-item {
                text-align: left;
            }
        }

/* ============================================================ */
/* ===== ШАПКА (общая для всех страниц сайта) ===== */
/* ============================================================ */

.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 20px 0 20px;
    background: transparent;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.header-wrapper * {
    pointer-events: auto;
}

.header-wrapper.scrolled {
    padding-top: 8px;
    padding-bottom: 8px;
}

.header {
    max-width: 1200px;
    width: 100%;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(16, 20, 19, 0.08);
    padding: 0 16px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.header-wrapper.scrolled .header {
    height: calc(var(--header-height) - 12px);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
    cursor: pointer;
    margin-right: 5px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(135, 255, 50, 0.3);
}

.header-logo-icon {
    cursor: pointer;
    pointer-events: none;
    width: 36px;
    height: 36px;
    background: var(--black);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.header-logo-icon img {
    width: 62%;
    height: 62%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.header-logo:hover .header-logo-icon {
    transform: scale(1.05) rotate(-4deg);
}

.header-logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    cursor: pointer;
    pointer-events: none;
}

.header-logo-text span {
    color: var(--text-dark);
}

.header-logo:hover .header-logo-text {
    color: var(--primary);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    flex-wrap: nowrap;
}

.header-nav li {
    position: relative;
    flex-shrink: 0;
}

.header-nav a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--header-text-muted);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-nav a i {
    font-size: 0.75rem;
    opacity: 0.5;
}

.header-nav a:hover {
    color: var(--text-dark);
    background: rgba(16, 20, 19, 0.05);
}

.header-nav a:hover i {
    opacity: 0.8;
    color: var(--primary);
}

.header-nav a.active {
    color: var(--primary);
    background: rgba(44, 120, 115, 0.08);
}

.header-nav a.active i {
    opacity: 1;
    color: var(--primary);
}

.header-nav a.delivery-btn {
    color: var(--header-text-muted);
    background: transparent;
    border: none;
    padding: 5px 10px;
}

.header-nav a.delivery-btn:hover {
    color: var(--text-dark);
    background: rgba(16, 20, 19, 0.05);
}

/* ===== КНОПКА КОРЗИНЫ В ШАПКЕ ===== */
.header-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--black);
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 700;
    transition: all var(--transition);
}

.header-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 20, 19, 0.25);
}

.header-cart-btn i {
    font-size: 1.25rem;
}

.header-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent);
    color: var(--text-dark);
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--white);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 100;
    flex-shrink: 0;
    margin-left: 5px;
}

.burger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all var(--transition);
    transform-origin: center;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

@media (max-width: 880px) {
    :root {
        --header-height: 64px;
    }

    body {
        padding-top: calc(var(--header-height) + 20px);
    }

    .header {
        padding: 0 14px;
        height: var(--header-height);
        border-radius: 12px;
    }

    .header-wrapper {
        padding: 8px 12px 0 12px;
    }

    .header-wrapper.scrolled .header {
        height: calc(var(--header-height) - 8px);
    }

    .header-logo-text {
        font-size: 0.95rem;
    }

    .header-logo-icon {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    .header-cart-btn {
        padding: 8px 10px;
        margin-left: 4px;
    }

    .header-cart-label {
        display: none;
    }

    .header-cart-btn i {
        font-size: 1.15rem;
    }

    .header-nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        padding: 70px 30px 30px;
        gap: 2px;
        z-index: 60;
        align-items: stretch;
        overflow-y: auto;
        justify-content: flex-start;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .header-nav.open {
        display: flex;
        transform: translateX(0);
    }

    .header-nav a {
        font-size: 1.1rem;
        padding: 14px 18px;
        border-radius: 10px;
        justify-content: flex-start;
        white-space: normal;
        border: none;
        color: var(--text-dark);
    }

    .header-nav a:hover {
        background: rgba(16, 20, 19, 0.05);
    }

    .header-nav a.active {
        background: rgba(44, 120, 115, 0.08);
        color: var(--primary);
    }

    .header-nav a i {
        width: 28px;
        text-align: center;
        font-size: 1.1rem;
        opacity: 0.6;
    }

    .burger {
        display: flex;
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 56px;
    }

    body {
        padding: 8px;
        padding-top: calc(var(--header-height) + 14px);
    }

    .header-wrapper {
        padding: 6px 6px 0 6px;
    }

    .header-logo-text {
        font-size: 0.8rem;
    }

    .header-logo-icon {
        width: 28px;
        height: 28px;
        font-size: 13px;
        border-radius: 7px;
    }

    .header {
        padding: 0 10px;
        border-radius: 10px;
        height: var(--header-height);
    }
}
