.tech-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tech-category-tabs {
    display: flex;
    gap: 12px;
    padding: 0 0 16px 0;
    border-bottom: 2px solid var(--border);
}

.tech-category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tech-category-tab:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.tech-category-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
}

.tech-category-tab i {
    font-size: 1.1em;
}

.tech-category-header {
    background: var(--bg-secondary);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.tech-category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.tech-category-title i {
    color: var(--primary);
    font-size: 1.5em;
}

.tech-category-title h3 {
    color: var(--text-primary);
    font-size: 1.4em;
    font-weight: 700;
    margin: 0;
}

.tech-admin-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-change-country {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-change-country:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.btn-change-country:active {
    transform: translateY(0);
}

.btn-change-country i {
    font-size: 1.1em;
}

.tech-rp-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-full);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
}

.tech-rp-display i {
    font-size: 1.2em;
}

.tech-rp-display strong {
    font-size: 1.1em;
    font-weight: 800;
}

.btn-edit-rp {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
}

.btn-edit-rp:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-edit-rp i {
    font-size: 1em;
}

.tech-lines-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 24px;
    overflow: auto;
    flex: 1;
    position: relative;
    cursor: grab;
    max-height: 100vh;
    min-height: 100vh;
}

.tech-lines-container.dragging {
    cursor: grabbing;
    user-select: none;
}

.tech-zoom-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9em;
    font-weight: 600;
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body:not(.dark-mode) .tech-zoom-indicator {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
}

.tech-zoom-indicator.visible {
    opacity: 1;
}

.tech-requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-requirements-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: var(--radius);
    font-size: 0.9em;
    transition: background 0.2s ease;
}

.tech-requirements-list li.req-met {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.tech-requirements-list li.req-unmet {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.tech-requirements-list li::before {
    display: none;
}

.req-check {
    font-weight: bold;
    min-width: 16px;
}

.req-category {
    font-size: 0.8em;
    opacity: 0.7;
    font-style: italic;
}

.tech-connection-line {
    stroke: var(--border);
    stroke-width: 2;
    fill: none;
    transition: stroke 0.3s ease, stroke-width 0.3s ease;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tech-connection-line.active {
    stroke: var(--primary);
    stroke-width: 3;
}

.tech-node:hover ~ .tech-connections .tech-connection-line {
    opacity: 0.5;
}

.tech-lines-container::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.tech-lines-container::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 6px;
}

.tech-lines-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 6px;
    border: 2px solid var(--bg-tertiary);
}

.tech-lines-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.tech-lines-container::-webkit-scrollbar-corner {
    background: var(--bg-tertiary);
}

.tech-lines-container {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-tertiary);
}

.tech-lines-wrapper {
    position: relative;
    min-width: 6000px;
    min-height: 3000px;
    padding: 40px;
    transform-origin: 0 0;
    transition: transform 0.1s ease-out;
}

.tech-line {
    position: absolute;
    top: 0;
    width: 1400px;
    min-height: 2800px;
}

.tech-line:last-child {
    margin-right: 0;
}

.tech-line-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 100;
    margin-bottom: 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body:not(.dark-mode) .tech-line-header {
    background: rgba(255, 255, 255, 0.98);
}

.tech-line-header h4 {
    color: var(--text-primary);
    font-size: 1.2em;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-line-header i {
    color: var(--primary);
}

.tech-nodes-container {
    position: relative;
    min-height: 100%;
    width: 100%;
    padding-top: 100px;
}

.tech-tier {
    position: absolute;
    display: flex;
    flex-direction: row;
    gap: 80px;
    align-items: flex-start;
}

.tech-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.tech-connection-line {
    stroke: var(--border);
    stroke-width: 2;
    fill: none;
    transition: stroke 0.3s ease;
}

.tech-connection-line.active {
    stroke: var(--primary);
    stroke-width: 3;
}

.tech-node {
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    width: 240px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    z-index: 2;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.tech-node:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.tech-node.researched {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.tech-node.available {
    border-color: var(--success);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

.tech-node.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.tech-node.locked:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
}

.tech-node-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.tech-node-name {
    color: var(--text-primary);
    font-size: 0.95em;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.tech-node-icon {
    font-size: 1.2em;
    color: var(--text-tertiary);
}

.tech-node.researched .tech-node-icon {
    color: var(--primary);
}

.tech-node.available .tech-node-icon {
    color: var(--success);
}

.tech-node-year {
    color: var(--text-tertiary);
    font-size: 0.85em;
    font-weight: 500;
}

.tech-node.researched .tech-node-year {
    color: var(--primary);
}

.tech-info-panel {
    position: fixed;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    width: 320px;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 24px;
    z-index: 1000;
    display: none;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.tech-info-panel.visible {
    display: block;
}

.tech-info-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.tech-info-title {
    flex: 1;
}

.tech-info-title h3 {
    color: var(--text-primary);
    font-size: 1.3em;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.tech-info-title .tech-year {
    color: var(--text-tertiary);
    font-size: 0.9em;
    font-weight: 500;
}

.tech-info-close {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    font-size: 1.3em;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.tech-info-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.tech-info-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 16px;
}

.tech-info-status.researched {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.tech-info-status.available {
    background: var(--success);
    color: white;
}

.tech-info-status.locked {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
}

.tech-info-description {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 16px;
}

.tech-info-section {
    margin-bottom: 16px;
}

.tech-info-section h4 {
    color: var(--text-primary);
    font-size: 0.95em;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-info-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-info-section li {
    color: var(--text-secondary);
    font-size: 0.9em;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.tech-info-section li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.tech-research-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tech-research-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.tech-research-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tech-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    margin-top: 16px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.tech-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.tech-legend-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid;
}

.tech-legend-box.researched {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
    border-color: var(--primary);
}

.tech-legend-box.available {
    border-color: var(--success);
    background: transparent;
}

.tech-legend-box.locked {
    border-color: var(--border);
    background: transparent;
    opacity: 0.6;
}

.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 24px;
    text-align: center;
    color: var(--text-secondary);
}

.error-message i {
    color: var(--danger);
}

.error-message h3 {
    color: var(--text-primary);
    font-size: 1.3em;
    font-weight: 600;
    margin: 0;
}

.error-message p {
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 1400px) {
    .tech-info-panel {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        max-height: none;
        margin-top: 16px;
    }
    
    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 768px) {
    .tech-nodes-container {
        gap: 40px;
    }
    
    .tech-node {
        min-width: 140px;
        padding: 10px 12px;
    }
    
    .tech-node-name {
        font-size: 0.85em;
    }
    
    .tech-category-header {
        padding: 16px 20px;
    }
    
    .tech-lines-container {
        padding: 16px;
    }
}

.tech-country-selector {
    padding: 24px;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.country-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.country-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
    transform: translateY(-4px);
}

.country-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.country-card-header i {
    font-size: 1.5em;
    color: var(--primary);
}

.country-card-header h4 {
    margin: 0;
    font-size: 1.2em;
    color: var(--text-primary);
}

.country-card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.country-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95em;
}

.country-info-row i {
    width: 20px;
    text-align: center;
    color: var(--primary);
}

.tech-country-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--primary);
    border-radius: var(--radius);
}

.tech-country-indicator i {
    color: var(--primary);
}

.tech-country-indicator span {
    color: var(--text-secondary);
    font-size: 0.95em;
}

.tech-country-indicator strong {
    color: var(--primary);
    font-weight: 600;
}

.btn-change-country {
    margin-left: auto;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-change-country:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-change-country i {
    font-size: 0.9em;
}

.btn-toggle-hidden {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border: 1px solid #d68910;
    border-radius: var(--radius-full);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.btn-toggle-hidden:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(243, 156, 18, 0.4);
}

.btn-toggle-hidden i {
    font-size: 1.1em;
}

body.dark-mode .tech-connection-line {
    stroke: var(--border);
}

body.dark-mode .tech-node.researched {
    box-shadow: 0 0 25px rgba(129, 140, 248, 0.4);
}

body.dark-mode .country-card {
    background: var(--bg-secondary);
    border-color: var(--border);
}

body.dark-mode .country-card:hover {
    border-color: var(--primary);
}

body.dark-mode .btn-toggle-hidden {
    background: linear-gradient(135deg, #e67e22, #d35400);
    border-color: #c0511f;
}

/* Образование и наука */
.tech-education-science-section {
    margin: 20px 0;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.tech-education-science-section.player-view {
    padding: 16px;
}

.education-science-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.player-view .education-science-container {
    margin-bottom: 0;
}

.param-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.player-view .param-card {
    padding: 16px;
}

.param-value-display {
    text-align: center;
    padding: 20px 0;
}

.param-value-large {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Fira Mono', 'Courier New', monospace;
}

.param-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.param-header i {
    font-size: 1.5em;
    color: var(--primary);
}

.param-header h4 {
    margin: 0;
    font-size: 1.2em;
    color: var(--text-primary);
    font-weight: 700;
}

.param-slider-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.param-slider-wrapper {
    position: relative;
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
}

.param-slider {
    position: absolute;
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    z-index: 2;
    cursor: pointer;
}

.param-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
    transition: all 0.2s ease;
}

.param-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.6);
}

.param-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
    transition: all 0.2s ease;
}

.param-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.6);
}

.param-slider-track {
    position: absolute;
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.param-slider-progress {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border-radius: 4px;
    transition: width 0.2s ease;
}

.param-slider-value {
    min-width: 60px;
    text-align: center;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Fira Mono', 'Courier New', monospace;
    background: var(--bg-secondary);
    padding: 6px 12px;
    border-radius: var(--radius);
    border: 2px solid var(--primary);
}

.param-description {
    font-size: 0.9em;
    color: var(--text-tertiary);
    margin: 0;
    font-style: italic;
}

.param-description strong {
    color: var(--primary);
    font-family: 'Fira Mono', 'Courier New', monospace;
}

.research-formula-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.research-formula-info i {
    font-size: 1.5em;
    color: var(--primary);
}

.research-formula-info p {
    margin: 0;
    font-size: 1em;
    color: var(--text-secondary);
    text-align: center;
}

.research-formula-info strong {
    color: var(--primary);
    font-family: 'Fira Mono', 'Courier New', monospace;
    font-size: 1.1em;
}

.formula-legend {
    font-size: 0.85em !important;
    color: var(--text-tertiary) !important;
    font-style: italic;
}

.btn-save-education-science {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-save-education-science:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-save-education-science:active {
    transform: translateY(0);
}

.btn-save-education-science i {
    font-size: 1.1em;
}

@media (max-width: 1024px) {
    .education-science-container {
        grid-template-columns: 1fr;
    }
}

/* Бонусы от зданий */
.buildings-bonus {
    margin-top: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.2s ease;
}

.buildings-bonus:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.15) 100%);
    transform: translateX(3px);
}

.buildings-bonus i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 1.1em;
}

.education-buildings-bonus i {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.15) 0%, rgba(109, 40, 217, 0.25) 100%);
    color: #6d28d9;
}

.science-buildings-bonus i {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.25) 100%);
    color: #3b82f6;
}

.buildings-bonus span {
    color: var(--text-primary);
}

body.dark-mode .buildings-bonus {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.2) 100%);
}

body.dark-mode .buildings-bonus:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.25) 100%);
}

